Tag Archives: oop

Apache running in infinite loop, request URI too long

Questions: I want to read a value from cookie and pass that value as a query string, for that i have used the following rules **1 : “RewriteCond %{HTTP_COOKIE} !^preferenceLocale=([^;]+) [NC] RewriteRule ^/*(.*) http://192.168.132.148/cs/Satellite?pagename=YBWrapper&ybdomain=%{HTTP_HOST}&ybpage=$1&%{QUERY_STRING} [P]”** if cookie value is available then i need to execute fallowing set of condition and rule, **2 :”RewriteCond %{HTTP_COOKIE} preferenceLocale=([^;]+)… Read More »

Eclipse Map and Reduce Plugin & Hadoop Tutorial

Questions: I’m brand new to Hadoop and I’m following this Yahoo Tutorial (http://developer.yahoo.com/hadoop/tutorial/). I’m currently trying to configure eclipse and the map and reduce plugin to connect to the virtual machine. One of the settings I need to configure is the hadoop.job.ugi. It does not appear under the Advanced Settings tab of the plugin. Without… Read More »

Nginx rewrite HTTP to HTTPS says redirect loop?

Questions: I am trying to redirect all HTTP traffic to HTTPS,so when i got to www.domain.com it goes to https://www.domain.com. This is my current .conf file – server { listen 80; #listen [::]:80; server_name www.domain.net; rewrite ^(.*) https://www.domain.net$1 permanent; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/www.domain.net; include other.conf; #error_page 404 /404.html; location ~… Read More »

.htaccess 500 Error – Internal Redirect Loop

Questions: What might be causing an infinite redirect loop in my rewrite rules, given that /some/virtual/host is a virtual host pointing to a differently-named physical location? Normally I would check logs, but this is a staging/production environment largely beyond my control. For the same reason, using an .htaccess inside the offending directory is not an… Read More »

Infinite loop in CTE when parsing self-referencing table

Questions: I’m using the following Common Table Expression to parse self-referencing table. But the CTE does not work, produces and infinite loop and generates an error: Msg 530, Level 16, State 1, Line 1 The statement terminated. The maximum recursion 100 has been exhausted before statement completion. How to modify this CTE to get it… Read More »

Job failed Exception hadoop

Questions: I am using multi text output formate to create multiple files of a single file i.e each line on new file. This is my code: public class MOFExample extends Configured implements Tool { private static double count = 0; static class KeyBasedMultipleTextOutputFormat extends MultipleTextOutputFormat<Text, Text> { @Override protected String generateFileNameForKeyValue(Text key, Text value, String… Read More »

Nested XML XSL for-each loop

Questions: I am having trouble reading out my nested for-each loops. For some reason, it doesn’t loop under the direct nodes. The trouble seems to be with the tages.My first loop happens after I open the table, and I loop through the whole table for the admin reports and nest the second node underneath it.… Read More »

VBa conditional delete loop not working

Questions: I am running the following code on a spreadsheet: Do While i <= 100000 If Not Cells(i, 4) = “String” Then Cells(i, 4).EntireRow.Delete End If i = i + 1 Loop There are plenty of entries with not “String” but they do not get deleted. When I copy this piece of code to a… Read More »

Call hierarchy of async functions inside a loop?

Questions: There’s a async call I’m making that queries a database on a service, but this service has a limit of how many it can output at once, so I need to check if it hit its limit through the result it sends and repeat the query until it doesn’t. Synchronous mockup : var query_results… Read More »