unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
IE9 jquery ajax post request randomly causing bad request (400), tomcat receives post parameters as 'null' === We have production application where we randomly seeing Bad request response in apache access logs. - Happens only for IE9 users - (Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0). - We have tried to re-produce for same URLs (scenarios) - we are not able re-produce - Tomcat receives all parameters as null and ends-up with null pointer exception. We do have a error page forwarding for exception, but client receives 400-Bad request. Any help would greatly appreciated.
0
[ 2, 13, 660, 518, 487, 8190, 93, 20624, 678, 3772, 21324, 3242, 896, 3772, 13, 5, 7114, 6, 15, 2067, 5782, 8359, 678, 12905, 28, 13, 22, 4215, 211, 22, 800, 3726, 3726, 95, 57, 637, 3010, 113, 95, 21324, 2078, 896, 3772, 1627, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where will this AsyncTask run? === Say I have this code in the `AlertDialog.Builder(context)` of my application. The question is in which `Thread` will it run? final Thread myPrettyOperation = new Thread() { @Override public void run() { //Do some really long operation. } }; class MyPrettyTask extends AsyncTask<Void, Integer, Boolean> { protected Boolean doInBackground( Void... voids) { myPrettyOperation.start(); return true; } protected void onProgressUpdate( Integer... progress) { } protected void onPostExecute(Boolean result) { } } new MyPrettyTask().execute();
0
[ 2, 113, 129, 48, 21, 9507, 20255, 3656, 485, 60, 800, 3726, 3726, 395, 31, 57, 48, 1797, 19, 14, 13, 1, 192, 6767, 4286, 5567, 9, 20904, 5, 1126, 11969, 6, 1, 16, 51, 3010, 9, 14, 1301, 25, 19, 56, 13, 1, 96, 10647, 1, 129...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
facebook plugin Fatal error: Wrong parameters for Exception === how do i fix this? Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /home/content/61/9444961/html/wp-content/plugins/facebook/includes/facebook-php-sdk/base_facebook.php on line 54
0
[ 2, 9090, 10922, 108, 8773, 7019, 45, 1389, 12905, 26, 5391, 800, 3726, 3726, 184, 107, 31, 6098, 48, 60, 8773, 7019, 45, 1389, 12905, 26, 5391, 5, 2558, 11130, 5579, 10066, 872, 636, 15, 175, 5579, 9375, 636, 15, 5391, 5579, 3515, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Texture mapping a curved rectangle in OpenGL [python] === I'm having some problems with the texture mapping in OpenGL in python. I'm trying to draw a rectangle that is curved on the top and on the bottom but so far I've been able to only get it curved on the bottom. Somehow the upper doesn't want to form a curved line. I'm using this function with a parameter of 0.2: def DrawAWobble(y_wobble): R = y_wobble/2.0 - 1/(2.0*y_wobble) glBegin(GL_POLYGON) x = 0.0 while x<2.1: glTexCoord2f(x*0.5, 1.0); glVertex2f(x/2 - 0.5, 0.5 + (R + math.sqrt(R**2 - (1 - x)**2 + 1))) x += 0.1 x = 2.0 while x>-0.1: glTexCoord2f(x*0.5, 0.0); glVertex2f(x/2 - 0.5, -0.5 + (R + math.sqrt(R**2 - (1 - x)**2 + 1))) x -= 0.1 glEnd() The result I'm getting is on the left, while I should get something like the right part of the image. https://dl.dropbox.com/u/68513202/whatiswrong.png
0
[ 2, 12714, 13305, 21, 9279, 27181, 19, 368, 8430, 636, 6448, 11570, 500, 800, 3726, 3726, 31, 22, 79, 452, 109, 1716, 29, 14, 12714, 13305, 19, 368, 8430, 19, 20059, 9, 31, 22, 79, 749, 20, 2003, 21, 27181, 30, 25, 9279, 27, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Custom animation for UINavigationController push not rendering navbar correctly === In a custom segue, I have the following simple transition: - (void) perform { UIViewController *src = (UIViewController *) self.sourceViewController; UIViewController *dst = (UIViewController *) self.destinationViewController; [UIView transitionWithView:src.navigationController.view duration:1 options:UIViewAnimationOptionTransitionFlipFromBottom animations:^{ [src.navigationController pushViewController:dst animated:NO]; } completion:NULL]; } The content view animates fine. However, when executing the animation, the nav bar at the top has a messed up layout (buttons all crammed in the upper left corner, no title), popping into place only when the animation is finished. Anyone know what I've done wrong and how to fix it? Thanks!
0
[ 2, 5816, 6236, 26, 287, 1673, 13227, 857, 12898, 1252, 3250, 52, 15307, 16048, 1850, 12044, 800, 3726, 3726, 19, 21, 5816, 1353, 3982, 15, 31, 57, 14, 249, 1935, 4513, 45, 13, 8, 13, 5, 2625, 1340, 6, 2985, 13, 1, 13, 5661, 4725...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Matlab change a single point in a plot without replotting === So I have a plot of N points in the 2D plane (N can be very large). I am writing a script that is to show the workings of an algorithm. So I have for loops. At each step in the for loop I'd like to change the color of the current point (actually probably make a stem plot with just this point). However, at the end of the step I'd like to remove the coloring of the current point so that I can color the next one. Currently I have to redraw the whole plot (incl. the 2D points). I'm not sure whether Matlab detects such things in the plotting commands but is there a way to do this without redrawing the whole plot?
0
[ 2, 4277, 9086, 753, 21, 345, 454, 19, 21, 3798, 366, 9411, 5639, 1203, 800, 3726, 3726, 86, 31, 57, 21, 3798, 16, 13, 103, 819, 19, 14, 172, 43, 3627, 13, 5, 103, 92, 44, 253, 370, 6, 9, 31, 589, 1174, 21, 3884, 30, 25, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why this simple AppeScript does not works? === I have a Shell Script where I need to create aliases folders on a MacOSX 10.6.X, so, I call osascript to do it with the code below: Source="/Volumes/Test Project/Folder/SubFolder" Destination="/Volumes/Test Project/Dest/" /usr/bin/osascript -e 'tell application "Finder" to make alias file to POSIX file "$Source" at POSIX file "$Destination"' This code return: 29:103: execution error: Finder got an error: AppleEvent handler failed. (-10000) Anyone has a solution?
0
[ 2, 483, 48, 1935, 13, 22306, 8741, 630, 52, 693, 60, 800, 3726, 3726, 31, 57, 21, 3593, 3884, 113, 31, 376, 20, 1600, 15794, 160, 19294, 18, 27, 21, 1572, 759, 396, 332, 9, 379, 9, 396, 15, 86, 15, 31, 645, 13, 4947, 8741, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are module level variables safe when used with uWSGI? === I am seeing an odd error where a variable I create at the module scope -- as in, at the top of the file before any classes or functions are defined -- is behaving differently over time. This variable (let's call it ``_cache``) gets pulled into my classes: _cache = None class XMLGenerator(object): global _cache def __init__(self, parms): if _cache is None: _cache = expensive_query(parms) The results of this cache can be different depending on the context of the request coming into the web services, but I am seeing differing behavior in the resulting XML output between calls to the same service: I can restart the server and everything is great, but eventually the anomalous behavior begins again. Is uWSGI preserving state between requests somehow?
0
[ 2, 50, 12613, 662, 12157, 1834, 76, 147, 29, 13, 14524, 18, 2234, 60, 800, 3726, 3726, 31, 589, 2078, 40, 4210, 7019, 113, 21, 7612, 31, 1600, 35, 14, 12613, 9914, 13, 8, 8, 28, 19, 15, 35, 14, 371, 16, 14, 3893, 115, 186, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why won't type image work? === I'm trying to use a type="image" for a submit button. Not it is not working. <input type="image" SRC="http://bin.xxx/images/free_download_continue.png" name="method_free" value="Free Download"> will not work for <input type="submit" name="method_free" value="<TMPL_VAR lang_free_download>"> When I do this I http://jsfiddle.net/DXBgp/ get an error but when I do this http://jsfiddle.net/EFjbx/ it works
0
[ 2, 483, 230, 22, 38, 1001, 1961, 170, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 21, 1001, 3726, 7, 22039, 7, 26, 21, 12298, 5167, 9, 52, 32, 25, 52, 638, 9, 13, 1, 108, 4881, 1001, 3726, 7, 22039, 7, 13, 18, 5453, 372...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
window.location after insertion in sqlite not working === I am working with phonegap+sqlite. I am trying to insert something. Here is the code- function insertDB() { var sqlI = "INSERT INTO post_data(post_text,pdate) VALUES("Hello, world","23-05-2012"); mydb.transaction( function(transaction) { transaction.executeSql(sqlI, [], nullDataHandler, errorHandler); }); console.log("inserted"); window.location="dashboard.html"; } I am able to insert data when I remove the line `window.location="dashboard.html"` or when i set a delay of 1000ms, and then execute `window.location="dashboard.html"`. But the above code does not work. Why?
0
[ 2, 1463, 9, 19032, 75, 24245, 19, 4444, 10601, 52, 638, 800, 3726, 3726, 31, 589, 638, 29, 1132, 1136, 306, 2430, 18, 1251, 10601, 9, 31, 589, 749, 20, 14692, 301, 9, 235, 25, 14, 1797, 8, 1990, 14692, 9007, 5, 6, 13, 1, 4033,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Opera target Attribute === so the compatibility difference between browsers is driving me nuts more so the rendering of html & css so in opera Version 11.64 <a href="/folder/" target="_blank">link</a> works as expected in firefox but opera doesn't open in new window
0
[ 2, 1877, 2935, 35, 14755, 800, 3726, 3726, 86, 14, 13, 21618, 2841, 128, 16495, 18, 25, 2891, 55, 13771, 91, 86, 14, 15307, 16, 13, 15895, 279, 272, 18, 18, 86, 19, 1877, 615, 547, 9, 3470, 13, 1, 58, 746, 14057, 3726, 7, 118,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
EXC BAD ACCESS occurring when cocos2d calls ccTouchEnded in CCMenu === This only happens once in a while. When I step from a breakpoint in the method called by the menu item when pressed I end up at the end of the method and when I step out I eventually get to ccTouchEnded and then the bad access occurs. Nothing shows up in the debug output window but I get a green arrow pointing to the main method with the error message. Any ideas why this might occur? Thanks.
0
[ 2, 1396, 150, 896, 1381, 10428, 76, 22470, 18, 135, 43, 3029, 8093, 15725, 10726, 19, 8093, 755, 291, 800, 3726, 3726, 48, 104, 5531, 382, 19, 21, 133, 9, 76, 31, 1424, 37, 21, 1442, 3132, 19, 14, 2109, 227, 34, 14, 11379, 9101,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
log4net fallback appender configuration in case of missing config file? === I've got a C# (.NET 3.5) application that extensively use log4net. The log4net configuration resides in the `app.config` file. Configuration is done using `[assembly: XmlConfigurator(Watch = true)]` in `AssemlyInfo.cs` App uses single application-wide logger instance, instantiated in a static constructor of a logger wrapper class: public class Logger{ //.... private static readonly ILog logger; static Logger() { logger = LogManager.GetLogger(Assembly.GetEntryAssembly().GetName().Name); AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; } //.... } The app is designed to be run on distant server, by scheduler, with no human presense, alone in the dark. :) The problem is, in case of missing config file it just silently crashes (no log4net config => no logging). Are there any way to check if there are any appenders in the config, and if not - programmatically add some kind of fallback appender. I'm rather new to log4X loggers family, so, if I'm asking something trivial - please be kind, log4net documentation is really awful. :)
0
[ 2, 6738, 300, 2328, 1080, 1958, 4865, 13630, 8091, 19, 610, 16, 2863, 13, 14093, 2816, 3893, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 272, 5910, 13, 5, 9, 2328, 203, 9, 264, 6, 3010, 30, 7802, 275, 6738, 300, 2328, 9, 14, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Facebook oauth display=wap for old cellphones === Facebook [roadmap][1] states that on July 1st 2012 "The wap dialog display mode will be removed.". I have taken a look at [dialogs overview][2] and available display methods are page, popup, iframe, or touch. None of them are good for wap usage for older cellphones (no touch support). The question is how to make wap visitors see wap version of auth dialog on Facebook? [1]: http://developers.facebook.com/roadmap/ [2]: http://developers.facebook.com/docs/reference/dialogs/
0
[ 2, 9090, 635, 1346, 96, 3042, 3726, 1608, 306, 26, 315, 1667, 7709, 18, 800, 3726, 3726, 9090, 636, 10422, 15022, 500, 2558, 165, 500, 202, 30, 27, 313, 137, 384, 563, 13, 7, 124, 3142, 306, 28223, 3042, 3740, 129, 44, 1974, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Implementing Full Text Search in Analysis Services Cube === I'm creating an SSAS cube (SQL 2012), one of the purposes of which is to expose data to a .NET UI which contains a number of filters/search features, allowing users to query the data. In the existing SQL Server DB, we make use of Full Text Search to help with text-based filters/searches. I've looked around for more information about implementing FTS on an SSAS cube, specifically to search Dimension members and filter by Measure values but it seems to be very thin on the ground. Can FTS be implemented on an SSAS cube? If so, is it recommended or is there a better way of achieving this result?
0
[ 2, 17333, 503, 1854, 2122, 19, 2495, 687, 13682, 800, 3726, 3726, 31, 22, 79, 2936, 40, 13, 8234, 18, 13682, 13, 5, 18, 22402, 563, 6, 15, 53, 16, 14, 4612, 16, 56, 25, 20, 13833, 1054, 20, 21, 13, 9, 2328, 13, 5661, 56, 158...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NSIS installer and parameters === How can I set some variables in my nsis script in compile time? for example: makensis.exe myscript.nsi "buildversion" I want to set buildversion in my script during compile time. Thanks!
0
[ 2, 13, 103, 4557, 16146, 106, 17, 12905, 800, 3726, 3726, 184, 92, 31, 309, 109, 12157, 19, 51, 13, 103, 4557, 3884, 19, 26561, 85, 60, 26, 823, 45, 8236, 4415, 9, 1706, 62, 51, 8741, 9, 2172, 49, 13, 7, 29361, 10898, 7, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
Https binding in WCF throws error === I have a WCF service that needs to hosted using basicHttpBinding using SSL. So my team has installed a SSL certificate with Anonymous authentication enabled and a hardcoded username and password given in IIS. I tried giving this binding <binding name="SecurityByTransport"> <security mode="Transport"> <transport clientCredentialType="Windows" /> </security> </binding> But it still doesnt work. I get this error "Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https]. " Any help would be appreciated. Thanks
0
[ 2, 7775, 18, 8728, 19, 11801, 410, 13566, 7019, 800, 3726, 3726, 31, 57, 21, 11801, 410, 365, 30, 2274, 20, 2812, 568, 2125, 21127, 22260, 568, 13, 18, 18, 255, 9, 86, 51, 173, 63, 4066, 21, 13, 18, 18, 255, 6259, 29, 10364, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
curl get sourcecode GETparams === I want to get the html sourcecode from that page: http://bahn.ltur.com/index/search/?lang=de_DE&searchin=DE-SB-VI&trip_mode=trip_simple&from_spar=Hamburg+Dammtor&to_spar=Leipzig+Hbf&start_datum=01.07.2012&start_time=23%3A49&end_datum=01.07.2012&end_time=23%3A51&SEA_adults=1&trainclass_spar=2 I can access the site when i go to that url. i cannot get the sourcecode via curl. not in bash "curl -iL url > site.html" nor with that php script: i get the startpage (bahn.ltur.com). Code for sending GET request $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,'http://bahn.ltur.com/index/search/?lang=de_DE&searchin=DE-SB-VI&trip_mode=trip_simple&from_spar=Hamburg+Dammtor&to_spar=Leipzig+Hbf&start_datum=01.07.2012&start_time=23%3A49&end_datum=01.07.2012&end_time=23%3A51&SEA_adults=1&trainclass_spar=2'); curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_exec($ch); i also tried to send POST params to that specific page - but no luck. the form is on that page: http://bahn.ltur.com/ with <form [...] method="get">[...] when you hit 'search' you see a short time the url above (blah/index/search/?params[...]). any help?
0
[ 2, 14320, 164, 1267, 9375, 164, 6351, 79, 18, 800, 3726, 3726, 31, 259, 20, 164, 14, 13, 15895, 1267, 9375, 37, 30, 2478, 45, 7775, 6903, 9378, 9, 255, 2517, 9, 960, 118, 25671, 118, 25136, 118, 60, 9949, 3726, 546, 1, 546, 1569...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQLSERVER 2008 tracking data changes, triggers === Some background. I have a normal table, and an "archive" table. The archive table contains a record of every row the normal table has ever had, so we can trace row updates and deletes. The tables are identical, except for archive table having a small number of extra fields (id, datetime, user,insert/update/delete ). The standard table contains one trigger on insert/update/delete. The trigger copies all new rows (insert or update) into archive table, and deleted rows (delete). Some of the columns are nullable. In archive table, all the fields are nullable (apart from the 'archivy' ones. The trigger has no begin try or end try. It has no transaction statements. Any unexpected exceptions knocks the who thing off immediately (reading around, expcetions in troggers abort a whoel batch I think). The trigger contains statements like 'insert into archive.table (field1, field2, field3 etc ) select (field1,field2 etc)' However, I'm concious of the fact that, if any new columns are added to the main table then error-free processing may continue even if the new field is not added into the archive table or the 'insert' statement. I'm not sure that using '*' is a good idea either (field positions, performance, etc) I'm keen for an exception to occur if the columns between main and trigger do not match up. I'm also keen for an exception to occur if any of the fields are missed in the 'insert into archive.table (field1, field2, field3 etc ) select (field1,field2 etc)' I think possibly using an information schema might be useful here. I also note that, in a trigger, a RAISERROR('blah blah',17,1) does NOT abort the entire batch/program/transaction immediately. So, questions then - is this the best (or reasonable) way to track record inserts/updates/deletes? Anyone know of a way to make triggers fail if any changes to columns occur? And how to make raiserror abort the whole batch? Thats not asking too much! Thanks all.
0
[ 2, 4444, 255, 10321, 106, 570, 10353, 1054, 1693, 15, 7286, 18, 800, 3726, 3726, 109, 2395, 9, 31, 57, 21, 1826, 859, 15, 17, 40, 13, 7, 23941, 7, 859, 9, 14, 9250, 859, 1588, 21, 571, 16, 352, 3131, 14, 1826, 859, 63, 462, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to specify branch name on first commit in git? === is it possible to perform a first commit on a new repository using a different branch name than "master" ? Thank you
0
[ 2, 25, 32, 938, 20, 19077, 1686, 204, 27, 64, 9686, 19, 13, 10404, 60, 800, 3726, 3726, 25, 32, 938, 20, 2985, 21, 64, 9686, 27, 21, 78, 24869, 568, 21, 421, 1686, 204, 119, 13, 7, 4594, 7, 13, 60, 3531, 42, 3, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Automatically selecting a TreeViewItem if a TextBox in data template gets focus (not using code) === I have a 2-level TreeView. Level-2 TreeViewItems contain TextBox controls via a data template. What I want: if a TextBox control gets focus, the respective TreeViewItem is selected. I did some research and found this: <Style TargetType="ListViewItem"> <Style.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="true"> <Setter Property="IsSelected" Value="true" /> </Trigger> </Style.Triggers> </Style> [Link][1] This almost works perfectly if I replace ListViewItem by TreeViewItem. But: The first child item always selects its parent item instead of itself. (The other child items work as expected). So it's like <TreeView> <TreeViewItem> <TreeViewItem> <-- this doesn't work <TreeViewItem> <-- this works </TreeViewItem> <TreeViewItem> <TreeViewItem> <-- this doesn't work <TreeViewItem> <-- this works <TreeViewItem> <-- this works </TreeViewItem> <TreeViewItem> <TreeViewItem> <-- this doesn't work <TreeViewItem> <-- this works <TreeViewItem> <-- this works </TreeViewItem> ... </TreeView> Any ideas what I am doing wrong or how to solve this? [1]: http://stackoverflow.com/questions/653524/selecting-a-textbox-item-in-a-listbox-does-not-change-the-selected-item-of-the-l?lq=1
0
[ 2, 7499, 20764, 21, 1541, 4725, 2119, 79, 100, 21, 1854, 5309, 19, 1054, 22894, 3049, 1776, 13, 5, 1270, 568, 1797, 6, 800, 3726, 3726, 31, 57, 21, 172, 8, 3906, 1541, 4725, 9, 662, 8, 135, 1541, 4725, 2119, 79, 18, 3717, 1854, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to prevent TaskDialog from wrapping pszContent? === Often times when our app uses TaskDialog to display a simple dialog box, Windows will wrap the last word of pszContent to a second line. In those scenarios, we'd much prefer the dialog box be widened just a bit and keep pszContent on a single line. Anyone know if this is possible without adding additional buttons to the dialog box? (That's the only workaround I've found after searching online. And not an acceptable workaround for me.) ![Example of silly wrapping that I'd like to avoid.][1] [1]: http://i.stack.imgur.com/QWkrH.png
0
[ 2, 25, 80, 21, 161, 20, 2501, 3005, 4286, 5567, 37, 13437, 351, 6649, 25424, 60, 800, 3726, 3726, 478, 436, 76, 318, 4865, 2027, 3005, 4286, 5567, 20, 3042, 21, 1935, 28223, 1649, 15, 1936, 129, 8118, 14, 236, 833, 16, 351, 6649, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
String from Model not printing out === In my razor view I am trying to access a model that is passed into the view. I know that the contractNumber attribute is being read and has the correct value in it, but it is not printing out. Here is the code from my `Index.vbhtml` file: @Section CUInfo Contract Number: @Model.sessionValues(New HttpSessionStateWrapper(HttpContext.Current.Session)).contractNumber End Section
0
[ 2, 3724, 37, 1061, 52, 7312, 70, 800, 3726, 3726, 19, 51, 14282, 1418, 31, 589, 749, 20, 1381, 21, 1061, 30, 25, 1100, 77, 14, 1418, 9, 31, 143, 30, 14, 1305, 16299, 35, 14755, 25, 142, 1302, 17, 63, 14, 4456, 1923, 19, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to adopt MBean monitoring to finished program? === guys. So, how to handle situation when I already have program written, and now I need to implement MBean monitoring. For example, if I have some method sendMail(), I have to override it with @sendMail from inteface MyMBean, and that's all. No problem, if it is one method and one class. What if I need to do this operation to lots of method, and then write some more like getSum() and so on. Is there any pattern for this purposes? Any tricks. How to write program which could be scaled with MBeans?
0
[ 2, 184, 20, 9512, 13, 10045, 210, 8984, 20, 842, 625, 60, 800, 3726, 3726, 2776, 9, 86, 15, 184, 20, 3053, 1858, 76, 31, 614, 57, 625, 642, 15, 17, 130, 31, 376, 20, 8713, 13, 10045, 210, 8984, 9, 26, 823, 15, 100, 31, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
git fetch only for current branch === I know that I can [fetch any remote branch to any local branch][1], but is there also some kind of shortcut to fetch just from the tracked remote branch to the current tracking local branch (without the need to specify the local and remote branch names explicitly)? [1]: http://stackoverflow.com/questions/6368987/how-do-i-fetch-only-one-branch-of-a-remote-git-repository
0
[ 2, 13, 10404, 18312, 104, 26, 866, 1686, 800, 3726, 3726, 31, 143, 30, 31, 92, 636, 410, 19913, 186, 5388, 1686, 20, 186, 375, 1686, 500, 2558, 165, 500, 15, 47, 25, 80, 67, 109, 825, 16, 502, 4118, 20, 18312, 114, 37, 14, 155...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I revise this to use all of the items in an array? === Here is the code in a function I'm trying to revise. This example works on a single item from an existing array named "stream": list = [{ service: 'service1', user: stream [0], template: { posted:HTML1 + stream[0] + HTML2}} ], The code originally called for manual entry for the `user` value so I switched to an array since I use the same value(s) elsewhere with $.each for HTML stuff. The `stream` array can vary in length so I want to avoid manually writing something like this below since I suspect it would need to match the count of `stream` items (could be anywhere from 1 to 50 or more): list = [{ service: 'service1', user: stream [0], template: { posted:HTML1 + stream[0] + HTML2}}, { service: 'service1', user: stream [1], template: { posted:HTML1 + stream[1] + HTML2}} ], Thanks for your help and guidance! PS This is another attempt at this question and hope it is clearer this time. Still learning.
0
[ 2, 184, 92, 31, 3867, 2628, 48, 20, 275, 65, 16, 14, 3755, 19, 40, 7718, 60, 800, 3726, 3726, 235, 25, 14, 1797, 19, 21, 1990, 31, 22, 79, 749, 20, 3867, 2628, 9, 48, 823, 693, 27, 21, 345, 9101, 37, 40, 3149, 7718, 377, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using strip_tags() and preg_replace() to display text entered in a WYSIWYG/TinyMCE Text Editior === Good morning, Here's the problem: I have some text being entered in via text editor (WYSIWYG/TinyMCE) and being displayed elsewhere as posting. The problem we have is that the text looses its formatting when being displayed as a posting. After digging through the code, I discovered that this was being done with a strip_tags() + echo preg_replace() combo. I'm still new to PHP, but I was able to figure out: - strip_tags() was taking out the formatting (b/c that's how it rolls) - I could add <strong> and <em> to get the bold and italicized text to display - the underlined and strikethrough text are CSS styles and adding the code (as it is saved on the db table) to the strip_tags() list did NOT solve the problem My question is: can I modify the existing code to solve this, or should I use something else (htmlentities() perhaps)? code snippet: <div class="display_text_area"> <?php $text = strip_tags(str_ireplace("</p>", "</p><br/>", $text_detail->description), '<font><ul><li><br/><strong><em><span style="text-decoration: underline;">'); ?> <?php echo preg_replace('/(<br[^>]*>\s*){2,}/', '<br/>', $text); ?> </div> I'm leaving the <span style...> tag here to show that (a) I tried it, and (b) it didn't work. So (c) I know it needs to be removed or modified. Many thanks in advance.
0
[ 2, 568, 4998, 1, 8628, 18, 5, 6, 17, 782, 263, 1, 99, 5119, 5, 6, 20, 3042, 1854, 1297, 19, 21, 5809, 18, 49, 7913, 263, 118, 2864, 93, 79, 1105, 1854, 9392, 49, 248, 800, 3726, 3726, 254, 959, 15, 235, 22, 18, 14, 1448, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NSLog ignored on devices === I am trying to redirect all NSLog output to be able to see all my logs in a UITextView inside the app (for debug purposes, and maybe later to log everything using TestFlight). I can't use the well-known DLog because I want to catch logs from frameworks I don't own. I'm doing this by 'redirecting' stderr to a pipe and reading from this pipe. Anyway, this works well on the simulator and on the device when the app is launched from within Xcode. But, this does not work when the app is launched "by hand" on the device. It seems that NSLog calls have no effect on the device: I don't read anything from the pipe. However, if I manually write on stderr : `fprintf(stderr, "test")` I can read it from the pipe, so the problem is not with stderr but rather with the NSLog function. Why does it do nothing on devices ? Is there a way to make it write on stderr even on the device ? If it is not possible to use NSLog on devices, is there another way to gather logs from external frameworks ? Thank you.
0
[ 2, 13, 2172, 5567, 5424, 27, 4690, 800, 3726, 3726, 31, 589, 749, 20, 302, 14706, 65, 13, 2172, 5567, 5196, 20, 44, 777, 20, 196, 65, 51, 18893, 19, 21, 13, 5661, 11969, 4725, 572, 14, 4865, 13, 5, 1106, 121, 16254, 4612, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
setxkbmap returns 65280 when executed from system call === I am sending std::string cmdStr = "setxkbmap us"; int res = system( cmdStr.c_str() ); and the result is res: 65280 What can be the problem?
0
[ 2, 309, 396, 18167, 15022, 4815, 2074, 13510, 76, 5557, 37, 329, 645, 800, 3726, 3726, 31, 589, 4907, 354, 43, 45, 45, 11130, 2390, 43, 9729, 800, 13, 7, 3554, 396, 18167, 15022, 182, 7, 73, 19, 38, 10719, 800, 329, 5, 2390, 43,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Display VALUE parameter of DICOM image === I'm using the Evil Dicom dll. Currently for one of the tags, Counts Accumulated, I can extract and display the VR parameter, LENGTH parameter and TAG DESCRIPTION parameter. However, I haven't found a way to extract and display the VALUE parameter, i.e. the physical number of the counts accumulated. Everything I have tried up to know keeps giving me errors. Can someone be kind enough to give me an idea how to extract this information?
0
[ 2, 3042, 1923, 18906, 16, 926, 960, 1961, 800, 3726, 3726, 31, 22, 79, 568, 14, 3215, 926, 960, 13, 43, 211, 9, 871, 26, 53, 16, 14, 3383, 18, 15, 9927, 16965, 15, 31, 92, 10962, 17, 3042, 14, 13, 6938, 18906, 15, 1476, 18906,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
print iframe content === I have an html page. The page content a frameset with 2 frame. 1 for menu and 1 for content. <frameset border="4" cols="260, *"> <frame id="menu" name="menu" marginwidth="5" marginheight="5" src="Menu.html" onload="LoadPage();" > <frame id="Main" name="Main" marginwidth="5" marginheight="5" src="" > </frameset> I want to force browser (mostly IE) to print the content of frame "Main" and not everything (menu and main) tank you
0
[ 2, 4793, 31, 8361, 2331, 800, 3726, 3726, 31, 57, 40, 13, 15895, 2478, 9, 14, 2478, 2331, 21, 3523, 3554, 29, 172, 3523, 9, 137, 26, 11379, 17, 137, 26, 2331, 9, 13, 1, 8361, 3554, 1862, 3726, 7, 300, 7, 3313, 18, 3726, 7, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento - Observer/Event for adding option for attribute === I'm searching for an observer/event which will be trigger when an attribute is saved. Example: When a new color, f.e. black is added to the attribute color, then I want to check if I already have this option within my custom table. Does anyone knows such an event? Searched for more than a day ... :( (This one http://www.nicksays.co.uk/magento_events_cheat_sheet/, too) Thanks and greetings, Matthias
0
[ 2, 4723, 17050, 13, 8, 9855, 118, 4943, 38, 26, 4721, 4255, 26, 35, 14755, 800, 3726, 3726, 31, 22, 79, 5792, 26, 40, 9855, 118, 4943, 38, 56, 129, 44, 7286, 76, 40, 35, 14755, 25, 4377, 9, 823, 45, 76, 21, 78, 1665, 15, 398...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Check Null value for an object === I've a code below: class Person { public string FirstName { get; set; } public string LastName { get; set; } public Address address { get; set; } public Person GetFullName() { return new Person { }; } } public class Address { public int Name { get; set; } } I need to check if Person is not null and also the Address it contains. For this the code below works: class Program { static void Main(string[] args) { Person person = new Person(); person.FirstName="bla"; if (person != null && person.address != null) { Console.WriteLine(person.address.Name); } } } Question I've: How does this code executed as person.Address should have thrown Null Exception? if (person != null && person.address != null)
0
[ 2, 2631, 16203, 1923, 26, 40, 3095, 800, 3726, 3726, 31, 22, 195, 21, 1797, 1021, 45, 718, 840, 13, 1, 317, 3724, 64, 7259, 13, 1, 164, 73, 309, 73, 13, 1, 317, 3724, 236, 7259, 13, 1, 164, 73, 309, 73, 13, 1, 317, 3218, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android: How to add another view on top of a native activity === I am new to NDK and I am writing a game using a 3D Engine -Ogre. I have something like this in the manifest pointing to my native lib: <activity android:name="android.app.NativeActivity" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> <!-- Tell NativeActivity the name of or .so --> <meta-data android:name="android.app.lib_name" android:value="OgreAndroidTemplate" /> Then I start this activity by calling this from another java Activity: Intent engineIntent = new Intent( _context, NativeActivity.class); startActivity(engineIntent); However, I want some UI handling on top of my game (etc. menu buttons or advertisements ) , and want this to be handled at java side. Is there any way I can add another view or activity for this on top of my game? Many thanks in advance.
0
[ 2, 13005, 45, 184, 20, 3547, 226, 1418, 27, 371, 16, 21, 1275, 2358, 800, 3726, 3726, 31, 589, 78, 20, 13, 706, 197, 17, 31, 589, 1174, 21, 250, 568, 21, 203, 43, 1406, 13, 8, 5598, 99, 9, 31, 57, 301, 101, 48, 19, 14, 131...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Add hidden values inside an <select> tag === <select name="Country" id="Country" style="width:200px;"> <option value="0">--Select Country--</option> <?php $str_c="SELECT COUNTRY_CODE,COUNTRY_CODE_PARCELFORCE,COUNTRY_DESC FROM COUNTRYS"; $sql_c=mysql_query($str_c,$db) or die(mysql_error()); while($row_c = mysql_fetch_assoc($sql_c)) { $count_no++; ?> <option value="<?php echo $row_c['COUNTRY_CODE_PARCELFORCE'];?>"<?php if($row_c['COUNTRY_DESC']== $row['COUNTRY']) echo 'selected="selected"'?>><?php echo $row_c['COUNTRY_DESC'];?></option> <?php } ?> </select> How can i add hidden variable inside the while loop for the value COUNTRY_CODE?Is it possible to add hidden value like <input type="hidden" name='country_code' value="<?php echo $ro_c['COUNTRY_CODE']?>">,Please help me...Thanks in advance...
0
[ 2, 3547, 3689, 4070, 572, 40, 13, 1, 18, 16964, 1, 3383, 800, 3726, 3726, 13, 1, 18, 16964, 204, 3726, 7, 10741, 7, 4924, 3726, 7, 10741, 7, 1034, 3726, 7, 3976, 43, 96, 45, 4621, 306, 396, 73, 7, 1, 13, 1, 2594, 3309, 1923,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ Passing a multiple class istance as a function argument === It is possible in C++ define a function argument to be of more than one type? #include <iostream> using namespace std; class A { public: void PrintA() { cout << "A" << endl;} }; class B { public: void PrintB() { cout << "B" << endl;} }; class C: public A, public B { public: C(){;} }; class D: public A, public B { public: D(){;} }; /// void __printall__(A*a, B*b){ a->PrintA(); b->PrintB(); } #define printall(a) __printall__(a,a) /// int main(int argc, char *argv[]){ C c; D d; printall(&c); printall(&d); } I want to change the code between the comments with something not using macros. I would not force the pointers cast because I want to preserve the type safety. I would not even introduce another class between C/D and A/B because actually my class hierarchy is a bit more complex of that shown in the code, and it is not desirable to rebase all the class that derive from A or B
0
[ 2, 272, 20512, 2848, 21, 1886, 718, 25, 38, 2416, 28, 21, 1990, 5476, 800, 3726, 3726, 32, 25, 938, 19, 272, 20512, 9267, 21, 1990, 5476, 20, 44, 16, 91, 119, 53, 1001, 60, 6926, 22640, 13, 1, 1963, 11260, 1, 568, 204, 5582, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Restore text value after validtion fail === I use jQuery binding keyup event of an inputText, so value of it will set to span text <h:form id="formId"> <script type="text/javascript"> $(document).ready(function(){ var portletNamespace = '#<portlet:namespace/>\\:formId\\:'; $(portletNamespace+'txtSimpleText').live('keyup',function(){ $(portletNamespace+'spanText').text($(portletNamespace+'txtSimpleText').val()); }); }); </script> <h:inputText id="txtSimpleText" value=""/> <h:inputText required="true" value=""/> <h:outputText id="spanText"></h:outputText > <h:commandButton actionListener="#{myController.someAction}" value="do somthing"/> </h:form> It work fine, but at first times validation fail, I loss my spanText text! only at first time, at second it still there. I only need it in view layer, no need to use it after submit form done. Please show me how to restore my spanText after validation fail ! ps: beacause of some cause I cannot using ajax to store and set value for spanText
0
[ 2, 8454, 1854, 1923, 75, 7394, 3309, 7476, 800, 3726, 3726, 31, 275, 487, 8190, 93, 8728, 1246, 576, 807, 16, 40, 6367, 11969, 15, 86, 1923, 16, 32, 129, 309, 20, 6289, 1854, 13, 1, 252, 45, 4190, 4924, 3726, 7, 4190, 1340, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Backbone.js adding to Collection === In Backbone, I have a collection which is populated with some JSON data which looks like below. [ { "test1": { "firstName": "test", "lastName": "example" }, "test2": { "firstName": "test", "lastName": "example" } } ] Currently im trying to add a new model to the collection holding data like the above. Below is what I am trying var test = new TFS.Test({test1: {firstName: $("#test1 option:selected").val(), score: $("#test1lastName").val()}}, {test2: {firstName: $("#test2 option:selected").val(), score: $("#test2lastName").val()}}); myCollection.add(test); However doing this only populates test1 data and not test2 data. What would be the correct way to add both test1 and test2 data into the model, which could then be added to the collection. Thanks
0
[ 2, 24036, 9, 728, 18, 4721, 20, 1206, 800, 3726, 3726, 19, 24036, 15, 31, 57, 21, 1206, 56, 25, 11111, 29, 109, 487, 528, 1054, 56, 1879, 101, 1021, 9, 636, 13, 1, 13, 7, 10543, 165, 7, 45, 13, 1, 13, 7, 3552, 7259, 7, 45,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
what is use of performSelector in iOS === I am little bit confused regarding **performSelector**. I already googling . but not clear to me. anyone can explain the role of **performSelector**. thanks [self btnClicked]; and [self performSelector:@selector(btnClicked)]; -(void)buttonClicked { NSLog(@"Method Called"; } both are woking fine for me. what is difference between these two. [self btnClicked] and [self performSelector:@selector(btnClicked)];
0
[ 2, 98, 25, 275, 16, 11563, 16964, 248, 19, 13, 7760, 800, 3726, 3726, 31, 589, 265, 1142, 4230, 3467, 13, 1409, 1432, 4190, 3434, 19932, 1409, 9, 31, 614, 162, 5598, 802, 13, 9, 47, 52, 1207, 20, 55, 9, 1276, 92, 3271, 14, 597...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Update only application name in apple story w/o new binary file upload === I already have the released application in Apple Story. I want only to change the application name in the Apple Story (I don't need the new binary upload). Have I to make the new application version and to wait additional two weeks for Apple Review? What is the most quick way to change application name in Apple Story for released application?
0
[ 2, 11100, 104, 3010, 204, 19, 4037, 609, 619, 118, 111, 78, 14171, 3893, 71, 8294, 800, 3726, 3726, 31, 614, 57, 14, 261, 3010, 19, 4037, 609, 9, 31, 259, 104, 20, 753, 14, 3010, 204, 19, 14, 4037, 609, 13, 5, 49, 221, 22, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set SNMP value for custom OID === We have [applied][1] for a [Private Enterprise Number][2] to "reserve" a space in the SNMP MIB "tree" to store some monitoring values. We will, eventually, be assigned a number like: iso.org.dod.internet.private.enterprise.XXX (1.3.6.1.4.1.XXX) We haven't received our allotted PEN yet, but I was hoping to get my project started by simply taking a (temporary, only on my workstation) OID and writing a value to it using [SNMP#Net][3]. I have followed the [set example][4] which works fine (the `sysLocation`, OID `1.3.6.1.2.1.1.6.0`, is set fine). So, next I tried setting a "faked" OID (`1.3.6.1.4.1.99999.1.0`, where `99999` would, eventually, become our allotted PEN). This, however, fails with `ErrorStatus 17`, which, according to [this source][4], should be "The variable cannot be written or created." I have checked my SNMP Agent service and the `private` community which I'm using is set to `READ/CREATE`. I am using C# on Windows 7. Is there something I need to do before I can set my desired value? Do I need to import some kind of "MIB definition" before windows allows me to set a value? What would I need to do in order to (for now test) set values? Maybe I need to "declare" or "register" my desired OID first with the SNMP agent? [1]: http://pen.iana.org/pen/PenApplication.page [2]: http://www.iana.org/assignments/enterprise-numbers [3]: http://www.snmpsharpnet.com/ [4]: http://www.snmpsharpnet.com/content/how-make-snmp-set-request
0
[ 2, 309, 8912, 2554, 1923, 26, 5816, 13, 6516, 800, 3726, 3726, 95, 57, 636, 7753, 15450, 500, 2558, 165, 500, 26, 21, 636, 20181, 6002, 234, 500, 2558, 135, 500, 20, 13, 7, 27590, 7, 21, 726, 19, 14, 8912, 2554, 534, 220, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery Mobile ajax load on external links === I'm developing a JQuery Mobile application which loads from two different domains. (some pages are from example1.com, and other pages are from example2.com , but all of pages are designed by JQuery) As far as I know, if I have a link from example1.com to example2.com, it will fully reload the page. Isn't there any way to do dynamic ajax loading of that page, just like internal links?
0
[ 2, 487, 8190, 93, 3241, 20624, 6305, 27, 4886, 6271, 800, 3726, 3726, 31, 22, 79, 3561, 21, 487, 8190, 93, 3241, 3010, 56, 19069, 37, 81, 421, 15544, 9, 13, 5, 3220, 4434, 50, 37, 823, 165, 9, 960, 15, 17, 89, 4434, 50, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mono is giving me an ArgumentException when i try to import an image (.jpg) in as a bitmap === I am just beginning with C# using mono on the mac. here is my code. Bitmap img1 = new Bitmap(@"~/Desktop/scissor.jpg"); And here is the message i get. System.ArgumentException has been thrown A null reference or invalid value was found [GDI+ status: InvalidParameter] The path is correct ( used the same path to open it through terminal)
0
[ 2, 4129, 25, 1438, 55, 40, 5476, 10066, 872, 76, 31, 1131, 20, 9010, 40, 1961, 13, 5, 9, 12851, 263, 6, 19, 28, 21, 1142, 15022, 800, 3726, 3726, 31, 589, 114, 997, 29, 272, 5910, 568, 4129, 27, 14, 1572, 9, 235, 25, 51, 179...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is average so popular when measuring application performance === When measuring application performance (response time for example) it's so easy to come across averages (mean). `ab`, `httpref` and bunch of other utilities are reporting mean and standard deviation. But from theoretical point of view it doesn't make a lot of sense to me. And there is why. Mean value is good at describing symmetrical distributed population, because in case of symmetrical distribution mean is equal to population mode and expected value. But response times are not distributed symmetrical. They are more like exponential. In this case average tells us nothing. It's more convenient to work with percentile values, which tells us what response time we could afford in what percentage of responses. Am I missing something or mean is popular just because it's very simple to calculate?
0
[ 2, 483, 25, 862, 86, 844, 76, 9937, 3010, 956, 800, 3726, 3726, 76, 9937, 3010, 956, 13, 5, 99, 18, 8782, 870, 85, 26, 823, 6, 32, 22, 18, 86, 2010, 20, 340, 464, 862, 18, 13, 5, 22183, 6, 9, 13, 1, 2297, 1, 15, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to create a scrollable layout === Hi I am trying to make a layout dynamically and it should be scrollable because I will not know how many text fields and edit text fields I should draw. The picture is shown below.![enter image description here][1] [1]: http://i.stack.imgur.com/x6jiS.png
0
[ 2, 184, 20, 1600, 21, 12159, 579, 9106, 800, 3726, 3726, 4148, 31, 589, 749, 20, 233, 21, 9106, 7782, 1326, 17, 32, 378, 44, 12159, 579, 185, 31, 129, 52, 143, 184, 151, 1854, 2861, 17, 9392, 1854, 2861, 31, 378, 2003, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JSON not working with opera mini browser === I'am testing the google maps api by setting up markers on the map. When the map is clicked, it sends an JSON request to a php, save the latitude and longitude in a mysql database and then adds the marker with a javascript function using the google maps api, preety simple. The problem is that it is working with chrome and firefox, but it is not workking from my cellphone with opera mini browser, it is an android 2.3.4. The navigator that comes with the cellphone has no problems in displaying the markers. Code: (2 FUNCTIONS) function agregoCoordenadasEnBaseDeDatos(punto) { // alert(JSON.encode(punto)); punto['a']=punto['$a']; new Request({'url':'insertarMarcador.php?puntoCorchs=' + JSON.encode(punto), 'method':'get', 'onSuccess':function(o){agregarPunto(punto);}, 'onFailure':function(o){alert("Pelate!!! "+o)}}).send(); } function agregarPunto(punto) { var marker = new google.maps.Marker({position: punto, map: first_map, title:'Hola Mundo!!!', icon:'IMAGEFILEURLDELETED.GIF', optimized: false}); google.maps.event.addListener(marker, 'click', function() { first_map.setZoom(8); first_map.setCenter(marker.getPosition()); }); } Question: Is it a known issue ? Do I need to use an if statement regarding which browser is visiting my site? thank you! in advance.
0
[ 2, 487, 528, 52, 638, 29, 1877, 4236, 16495, 800, 3726, 3726, 31, 22, 765, 4431, 14, 8144, 6867, 21, 2159, 34, 2697, 71, 19482, 27, 14, 2942, 9, 76, 14, 2942, 25, 15802, 15, 32, 11350, 40, 487, 528, 3772, 20, 21, 13, 26120, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need help to improve execution time for face detection in OpenCV 2.4.0 === I'm using the cvHaarDetectObjects C function to detect faces in my android application, but the execution time is not fast enough to process a certain number of video frames per second. So, I'm thinking of commenting out code that is unnecessary for me eg I've noticed a lot of branching conditions for the flags and memory allocation statements that can be commented out. The same thing can be done for the functions that are called from cvHaarDetectObjects. Has anyone tried doing this sort of optimization before? Any help is much appreciated.
0
[ 2, 376, 448, 20, 3545, 5769, 85, 26, 276, 11643, 19, 368, 12732, 172, 9, 300, 9, 387, 800, 3726, 3726, 31, 22, 79, 568, 14, 13, 12732, 994, 512, 28262, 23793, 18, 272, 1990, 20, 9092, 4904, 19, 51, 13005, 3010, 15, 47, 14, 576...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
check if html attribute exist and has right value with jquery === Is there a better way for checking an attribute for: 1. it exist. so value must be false if attribute doesn't exist 2. Value is correct (boolean) <!-- language: lang-js --> var isOwner = false; if ($(selectedItem).is('[data-isOwner="True"]') || $(selectedItem).is('[data-isOwner="true"]')) { isOwner = true; } else { isOwner = false; } Now I need to check for True and true... Thanks
0
[ 2, 2631, 100, 13, 15895, 35, 14755, 3182, 17, 63, 193, 1923, 29, 487, 8190, 93, 800, 3726, 3726, 25, 80, 21, 574, 161, 26, 9886, 40, 35, 14755, 26, 45, 137, 9, 32, 3182, 9, 86, 1923, 491, 44, 4997, 100, 35, 14755, 1437, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
iOS - My TextBox spawns a regular keyboard when clicked, how can I set it to spawn a numeric keyboard? === Basically I am new to iOS development. I have several text boxes where I want a user to enter a percentage (not letters) so I will only need a numeric keyboard. When the user has done this I also want them to easily get rid of the keyboard. In the simplest way possible, just treat me like a drunken 5-year-old here, can someone guide me through the steps needed to do this?
0
[ 2, 13, 7760, 13, 8, 51, 1854, 5309, 13, 22860, 18, 21, 1290, 8896, 76, 15802, 15, 184, 92, 31, 309, 32, 20, 13, 22860, 21, 15764, 596, 8896, 60, 800, 3726, 3726, 11374, 31, 589, 78, 20, 13, 7760, 522, 9, 31, 57, 238, 1854, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to play selected combobox item in webbrowser component in c# windows forms? === I have a few flash files listed in my combobox component of my WinForms application. Now if file is selected I want it to be played in webBrowser component, here is the code: Adding files into combobox: private void Form1_Load(object sender, EventArgs e) { string[] filePaths = Directory.GetFiles(@"c:\folder\"); foreach (string s in filePaths) { comboBox1.Items.Add(s); } } Playing flash file: private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { this.webBrowser1.Navigate(comboBox1.SelectedText); //it doesnt work } I can open flash files normally, it looks like I can't pass the selected value from combobox.
0
[ 2, 184, 20, 418, 1704, 22621, 5309, 9101, 19, 10192, 5417, 4104, 5912, 19, 272, 5910, 1936, 1997, 60, 800, 3726, 3726, 31, 57, 21, 310, 4433, 6488, 1510, 19, 51, 22621, 5309, 5912, 16, 51, 628, 4190, 18, 3010, 9, 130, 100, 3893, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring Web: Loading ModelMap from HTTP query parameters === From [spring doc][1] about redirecting: > All model attributes are exposed as HTTP query parameters After redirect, how can I load ModelMap from HTTP query parameters. Can I avoid adding attributes manually ? [1]: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-redirecting-redirect-view
0
[ 2, 1573, 2741, 45, 12797, 1061, 15022, 37, 7775, 25597, 12905, 800, 3726, 3726, 37, 636, 15827, 9765, 500, 2558, 165, 500, 88, 302, 14706, 68, 45, 13, 1, 65, 1061, 13422, 50, 5043, 28, 7775, 25597, 12905, 75, 302, 14706, 15, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I can't get .htaccess to work properly === I am trying to restrict access of particular folder. Here is the code which i have written in .htaccess file. // .htaccess file AuthName "Member's Area Name" AuthUserFile /path/to/password/file/.htpasswd AuthType Basic require valid-user //.htpasswd file username:encryptedpassword abc:abcabc but it shows an error Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster.
0
[ 2, 31, 92, 22, 38, 164, 13, 9, 9020, 20604, 20, 170, 7428, 800, 3726, 3726, 31, 589, 749, 20, 15436, 1381, 16, 1498, 19294, 9, 235, 25, 14, 1797, 56, 31, 57, 642, 19, 13, 9, 9020, 20604, 3893, 9, 12894, 13, 9, 9020, 20604, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Fill a html form without submit, just open the browser with fields filled. In JAVA === I'm developing a JAVA SWING application, and when i click on a button, and I want it to open a browser page with the HTML form fields fully filled(with the data that I want to pass from JAVA application), understood? In this moment i'm using HtmlUnit library, but if you know something better, I'm open to sugestions! This is what i have: WebClient webClient = new WebClient(); HtmlPage page1 = webClient.getPage("http://www.google.com"); HtmlForm form = page1.getFormByName("search"); HtmlButton button = form.getButtonByName("submitSearch"); HtmlTextInput textField = form.getInputByName("searchTxtField"); textField.setValueAttribute("TEST VALUE"); HtmlPage page2 = button.click(); //final line On the final line I submit the form, instead of that, I want it to open a web browser with the text:"TEXT VALUE" in "searchTxtField". HELP ME, please...
0
[ 2, 3509, 21, 13, 15895, 505, 366, 12298, 15, 114, 368, 14, 16495, 29, 2861, 1943, 9, 19, 8247, 800, 3726, 3726, 31, 22, 79, 3561, 21, 8247, 5587, 3010, 15, 17, 76, 31, 10840, 27, 21, 5167, 15, 17, 31, 259, 32, 20, 368, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL insert row for X time === I have an problem: How I can insert a row and delete it in X time? I think something like INSERT the value whit a time stamp and add a task to delete it. But I dont have idea how to add MySQL task and if here is a better method. Thanks you for read.
0
[ 2, 51, 18, 22402, 14692, 3131, 26, 993, 85, 800, 3726, 3726, 31, 57, 40, 1448, 45, 184, 31, 92, 14692, 21, 3131, 17, 27448, 32, 19, 993, 85, 60, 31, 277, 301, 101, 14692, 14, 1923, 5558, 21, 85, 10151, 17, 3547, 21, 3005, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP UBB remover regex produces error === I'm trying to fix a bug in someone's news system, it uses UBB to allow the editors some sort of flexiblity. So for example to allow **bold** text the following regex is used: $message = preg_replace('_\[b\](.*?)\[/b\]_ise', "bold('\\1')", $message); This works fines. However, there is also a function to strip the UBB code for displaying on the front page, which is as follows: $message = preg_replace('_\[b\](.*?)\[/b\]_ise', "\\1", $message); And this regex produces an error, which does not make any sense to me, after all it is the exact same regex. Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: This is bold in /public_html/functions.inc.php on line 122 121 $message = preg_replace('_\[i\](.*?)\[/i\]_ise', "\\1", $message); 122 $message = preg_replace('_\[b\](.*?)\[/b\]_ise', "\\1", $message); 123 $message = preg_replace('_\[u\](.*?)\[/u\]_ise', "\\1", $message);
0
[ 2, 13, 26120, 287, 3490, 4681, 139, 7953, 1706, 6700, 7019, 800, 3726, 3726, 31, 22, 79, 749, 20, 6098, 21, 6256, 19, 737, 22, 18, 996, 329, 15, 32, 2027, 287, 3490, 20, 1655, 14, 12149, 109, 2058, 16, 14409, 49, 6287, 856, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Complicated string data extraction === I want to extract data from given strings, I've managed to do so yet I've encountered some difficulties. I'll give you two strings: "ESS23300RGR","Boorum & Pease 23 Series Columnar Book, Record, 300 Page, Black/Red (23-300-R)","UnbeatableSale, Inc (Amazon Marketplace)","180.80","6.09","http://www.amazon.com/gp/offer-listing/B000DLBVU4/ref=olp_page_next?ie=UTF8&shipPromoFilter=0&startIndex=15&sort=sip&me=&condition=new","http://www.amazon.com/gp/offer-listing/B000DLBVU4/ref=olp_page_next?ie=UTF8&shipPromoFilter=0&startIndex=15&sort=sip&me=&condition=new" "WLJ36210WGR","Basic Round Ring View Binder, 362 Line, 3 Ring, 1" Capacity, 8-1/2" x 5-1/2" Sheet Size, White","Gov Group (Amazon Marketplace)","3.61","7.70","http://www.amazon.com/gp/offer-listing/B0006OF55A/ref=olp_seeall_fm?ie=UTF8&shipPromoFilter=0&startIndex=0&sort=sip&me=&condition=new","http://www.amazon.com/gp/offer-listing/B0006OF55A/ref=olp_seeall_fm?ie=UTF8&shipPromoFilter=0&startIndex=0&sort=sip&me=&condition=new" This is the expression I've used:regexChecker(**"[\\w\\s&\\(\\)-^,]{3,}"**, longString); Using it I've managed to separated perfectly the first string yet the second one not, since it uses , and " as part of some sections. How can I extract the data from the second string similar to the first one? Data needed to be extracted is: SKU,Name,Competitor,Price,Shipping,URL,SourceURL Thanks in advance.
0
[ 2, 8343, 3724, 1054, 16748, 800, 3726, 3726, 31, 259, 20, 10962, 1054, 37, 504, 7887, 15, 31, 22, 195, 1471, 20, 107, 86, 768, 31, 22, 195, 8208, 109, 8075, 9, 31, 22, 211, 590, 42, 81, 7887, 45, 13, 7, 160, 18, 2001, 6571, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
access to ipod library for streaming over upnp === I am implementing an app who should be able to stream music from ipad/iphone to a specific device over upnp. my app should be media server and control point. i am using Platinum SDK and i managed to access itunes library from mac, but not from ipad/iphone Any ideas about how can i make available the itunes library?
0
[ 2, 1381, 20, 31, 10670, 1248, 26, 11920, 84, 71, 8157, 800, 3726, 3726, 31, 589, 17333, 40, 4865, 72, 378, 44, 777, 20, 3766, 232, 37, 31, 8240, 118, 49, 7709, 20, 21, 1903, 3646, 84, 71, 8157, 9, 51, 4865, 378, 44, 941, 8128,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to copy a property declaration to base class === I have a property `A` in all subclasses of base class `Base`. How can I generate an abstract property definition of property `A` into base class `Base`? I know ReSharper's refactoring *Pull Members Up*, but that **moves** the property to base class. I need an **abstract property in base class** and a **overriding** properties in all **sub classes**.
0
[ 2, 184, 20, 4344, 21, 1354, 7098, 20, 1000, 718, 800, 3726, 3726, 31, 57, 21, 1354, 13, 1, 58, 1, 19, 65, 972, 1898, 160, 16, 1000, 718, 13, 1, 8436, 1, 9, 184, 92, 31, 7920, 40, 8502, 1354, 5465, 16, 1354, 13, 1, 58, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would I go about setting a CSS gradient background in JavaScript? === The CSS gradient is described [here](http://webdesignerwall.com/tutorials/cross-browser-css-gradient), but I have no idea how to select for these properties in JavaScript. I would rather not use jQuery for this if at all possible. EDIT: Just doing the following doesn't seem to work... document.getElementById("selected-tab").style.background = "#860432"; document.getElementById("selected-tab").style.background = "-moz-linear-gradient(#b8042f, #860432)"; document.getElementById("selected-tab").style.background = "-o-linear-gradient(#b8042f, #860432)"; document.getElementById("selected-tab").style.background = "-webkit-gradient(linear, 0% 0%, 0% 100%, from(#b8042f), to(#860432))"; document.getElementById("selected-tab").style.background = "-webkit-linear-gradient(#b8042f, #860432)";
0
[ 2, 184, 83, 31, 162, 88, 2697, 21, 272, 18, 18, 17442, 2395, 19, 8247, 8741, 60, 800, 3726, 3726, 14, 272, 18, 18, 17442, 25, 745, 636, 6836, 500, 5, 21127, 6903, 14113, 19862, 106, 6051, 9, 960, 118, 2473, 9819, 192, 18, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Constructor in Symfony2 Controller === Hey How can I define a constructor in Symfony2 controller. I want to get the the logged in user data available in all the methods of my controller, Currently I do something like this in every action of my controller to get the logged in user. $em = $this->getDoctrine()->getEntityManager("pp_userdata"); $user = $this->get("security.context")->getToken()->getUser(); I want to do it once in a constructor and make this logged in user available on all my actions Thanks
0
[ 2, 6960, 248, 19, 13, 7261, 10229, 93, 135, 9919, 800, 3726, 3726, 8409, 184, 92, 31, 9267, 21, 6960, 248, 19, 13, 7261, 10229, 93, 135, 9919, 9, 31, 259, 20, 164, 14, 14, 13, 19287, 19, 4155, 1054, 904, 19, 65, 14, 3195, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Search User By PK vs. Username Performance === I'm defining a custom route for SEO and trying to decide whether the URL should look like site.com/user/userid/username vs site.com/user/username where user is the controller and the other two are self explanatory. Now, when I think about MS's Membership, it stores in the FormsAuthentication.SetAuthCookie the username and the user can be searched using it. I've read another article that says to keep the id and add the username or product name, what have you as having the id allows for faster lookups. What do you think is the best way to go? I'd rather not carry the ID in the url. When I set the authcookie, I could carry it in there instead of the username I guess but it just doesn't feel right that I'd call it with User.Identity.Name, but that's just me. What do you guys think?
0
[ 2, 2122, 4155, 34, 13, 17244, 4611, 9, 4155, 7259, 956, 800, 3726, 3726, 31, 22, 79, 14684, 21, 5816, 858, 26, 13, 18, 3894, 17, 749, 20, 4073, 1472, 14, 287, 6362, 378, 361, 101, 689, 9, 960, 118, 16704, 118, 3699, 5175, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Upload a file to a Dropbox account in C# === Supposing I have a user's log in information for Dropbox (his e-mail and the password), how can I upload a file to his account from C#? Is there any way or shoul I try with another service like Skydrive or Google Drive?
0
[ 2, 71, 8294, 21, 3893, 20, 21, 2804, 5309, 2176, 19, 272, 5910, 800, 3726, 3726, 11128, 14717, 31, 57, 21, 4155, 22, 18, 6738, 19, 676, 26, 2804, 5309, 13, 5, 4398, 13, 62, 8, 8079, 17, 14, 20884, 6, 15, 184, 92, 31, 71, 829...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Crash when I try to alloc a UIPopoverController === Hi I am at my wits end with what I am doing wrong here. Has anyone experienced anything similar? I checked the apple developer forums, google, stack overflow and couldn't find anything. MyViewController *myView; myView = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; //or myView = [[MyViewController alloc]init]; UIPopoverController *popover; popover = [[UIPopoverController alloc] initWithContentViewController:myView]; //always crash at here //i've tried with some others ViewController but it's still crash. Thanks so much.
0
[ 2, 4597, 76, 31, 1131, 20, 65, 2499, 21, 13, 5661, 6057, 2549, 12898, 1252, 800, 3726, 3726, 4148, 31, 589, 35, 51, 9642, 18, 241, 29, 98, 31, 589, 845, 1389, 235, 9, 63, 1276, 3882, 602, 835, 60, 31, 6505, 14, 4037, 10058, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Want to show UserControl page on app startup === I have recently created an application for wp7. Now i am ready submit an update for my app. In the i have added a UserControl page(**contains a dialog box**). I want it to displayed on the MainPage.xaml or in app startup but **only for the first app launch**. I know how to show a MessageBox for the first time but don't know how to show a xaml page. if (!IsolatedStorageSettings.ApplicationSettings.Contains("IsFourthLaunchDone")) { MessageBox.Show("To Enable Full screen mode, go to settings and select Full Screen Browsing."); IsolatedStorageSettings.ApplicationSettings["IsFourthLaunchDone"] = true; } Can anybody help me with this? Thanks in advance for your help!
0
[ 2, 259, 20, 298, 4155, 12898, 2478, 27, 4865, 20205, 800, 3726, 3726, 31, 57, 1989, 679, 40, 3010, 26, 13, 13790, 465, 9, 130, 31, 589, 1451, 12298, 40, 11100, 26, 51, 4865, 9, 19, 14, 31, 57, 905, 21, 4155, 12898, 2478, 5, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shredding data from XML, Importing into Relational Tables (SQL Server 2008) === I have looked everywhere for help on this. I'm new to all this and I'm finding it hard to understand all the documentation on it. Say I have this XML: <footballteams> <team manager="Benitez"> <name>Liverpool</name> <ground>Anfield</ground> </team> <team manager="Mourinho"> <name>Chelsea</name> <ground>Stamford Bridge</ground> </team> <team manager="Wenger"> <name>Arsenal</name> <ground>Highbury</ground> </team> </footballteams> I want to take the data from this and load it into a relational table called footballteams(name,manager,ground). I would like to do this in SQL Server 2008, and from what I have read everywhere a useful method to do this is .nodes() method. But I just can't understand how to use it. Thank you in advance.
0
[ 2, 21045, 3258, 1054, 37, 23504, 15, 9010, 68, 77, 5827, 192, 7484, 13, 5, 18, 22402, 8128, 570, 6, 800, 3726, 3726, 31, 57, 292, 6417, 26, 448, 27, 48, 9, 31, 22, 79, 78, 20, 65, 48, 17, 31, 22, 79, 3007, 32, 552, 20, 136...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python generator output is entire number instead of digits === I just learnt about generators in Python a week back. From what I understood, the 'yield' returns a generator object instead of the, say, an entire array as is. Here is the code I wrote for getting the digits of an integer: def getDigits(m): for d in str(m): yield int(m) This should return the digits of the integer passed to it as a generator object. But when I do: for i in getDigits(123): print i I get the output as: 123 123 123 instead of: 1 2 3 What is going on? Am I doing something wrong?
0
[ 2, 20059, 15286, 5196, 25, 1078, 234, 700, 16, 19076, 800, 3726, 3726, 31, 114, 2484, 38, 88, 20495, 19, 20059, 21, 877, 97, 9, 37, 98, 31, 4014, 15, 14, 13, 22, 93, 8487, 43, 22, 4815, 21, 15286, 3095, 700, 16, 14, 15, 395, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set width of a html tablerow in C# === this is a follow up question to the following question link: http://stackoverflow.com/questions/11112112/how-to-hide-columns-in-asp-net-webform following the answer that i got from the above link, i am using System.Web.UI.HtmlControls.HtmlTableRow i want to set the width of the entire row. How can i do this in C#? any other idea/way you can suggest, please let me know. if you have any more questions, please do not hesitate to ask.
0
[ 2, 184, 20, 309, 9456, 16, 21, 13, 15895, 859, 5417, 19, 272, 5910, 800, 3726, 3726, 48, 25, 21, 1740, 71, 1301, 20, 14, 249, 1301, 3508, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 15974, 12586, 918, 118, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
more outputstream problems...raw data and odd output. what did i do wrong? === I've opened the following input and output bluetooth streams using Apple's External Accessory Framework: session = [[EASession alloc] initWithAccessory:acc forProtocol:protocol]; if (session){ [[session inputStream] setDelegate:self]; [[session inputStream] scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; [[session inputStream] open]; [[session outputStream] setDelegate:self]; [[session outputStream] scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; [[session outputStream] open]; } I'm writing to it like this: uint8_t aByte[] = {0x02, 0x06, 0x04}; [[session outputStream] write:aByte maxLength:4]; NSLog(@"%d", aByte[2]); I'm reading from it like this: case NSStreamEventHasBytesAvailable: NSLog(@"NSStreamEventHasBytesAvailable"); uint8_t readBuf[128]; memset(readBuf, 0, sizeof(readBuf)); NSInteger numberRead = [[session inputStream] read:readBuf maxLength:3]; if(numberRead < 0){ NSError *error = [[session inputStream] streamError]; NSLog(@"%@", [error localizedDescription]); } else if (numberRead > 0) { NSLog(@"numberRead: %d", numberRead); NSLog(@"readBuf: %s", readBuf); } else{ break; } break; I SHOULD be receiving back from the device "AA4" because it's sends me back two alpha characters followed by the 3 byte that was sent to it in the last stream event. The LCD screen on the device is reporting that it has received a 2 a 4 and a 6. And it is reporting that it sent an A and A and a 4. But "NSLog(@"readBuf: %s", readBuf);" always prints: AA + a upside question mark//(can't seem to copy and paste that symbol from xcode) Anyone have any ideas on what I've done wrong? Thanks!
0
[ 2, 91, 5196, 11260, 1716, 9, 9, 9, 12404, 1054, 17, 4210, 5196, 9, 98, 144, 31, 107, 1389, 60, 800, 3726, 3726, 31, 22, 195, 520, 14, 249, 6367, 17, 5196, 705, 15808, 9464, 568, 4037, 22, 18, 4886, 26371, 6596, 45, 3723, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python build goes into infinite loop === When trying to build Python 2.7.3 on Snow Leopard, it seems the Make process gets stuck in an infinite loop. It appears that the configure script gets called over and over, which is odd because it is the configure script that creates the Makefile in the first place. Here's a single run of the loop: Lucas-Wonderleys-MacBook:Python-2.7.3 lucaswonderley$ make /bin/sh ./configure checking for --enable-universalsdk... no checking for --with-universal-archs... 32-bit checking MACHDEP... darwin checking EXTRAPLATDIR... $(PLATMACDIRS) checking machine type as reported by uname -m... i386 checking for --without-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for --with-cxx-main=<compiler>... no checking for g++... g++ configure: WARNING: By default, distutils will build C++ extension modules with "g++". If this is not intended, then set CXX on the configure command line. checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for --with-suffix... checking for case-insensitive build directory... yes checking LIBRARY... libpython$(VERSION).a checking LINKCC... $(PURIFY) $(MAINCC) checking for GNU ld... no checking for --enable-shared... no checking for --enable-profiling... checking LDLIBRARY... libpython$(VERSION).a checking for ranlib... ranlib checking for ar... ar checking for svnversion... found checking for hg... not-found checking for a BSD-compatible install... /usr/bin/install -c checking for --with-pydebug... no checking whether gcc accepts -fno-strict-aliasing... yes checking which compiler should be used... gcc checking whether gcc accepts -OPT:Olimit=0... no checking whether gcc accepts -Olimit 1500... no checking whether gcc supports ParseTuple __format__... no checking whether pthreads are available without options... yes checking whether g++ also accepts flags for thread support... no checking for ANSI C header files... (cached) yes checking asm/types.h usability... no checking asm/types.h presence... no checking for asm/types.h... no checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking process.h usability... no checking process.h presence... no checking for process.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for stdint.h... (cached) yes checking stropts.h usability... no checking stropts.h presence... no checking for stropts.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking thread.h usability... no checking thread.h presence... no checking for thread.h... no checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking sys/audioio.h usability... no checking sys/audioio.h presence... no checking for sys/audioio.h... no checking sys/bsdtty.h usability... no checking sys/bsdtty.h presence... no checking for sys/bsdtty.h... no checking sys/epoll.h usability... no checking sys/epoll.h presence... no checking for sys/epoll.h... no checking sys/event.h usability... yes checking sys/event.h presence... yes checking for sys/event.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/loadavg.h usability... no checking sys/loadavg.h presence... no checking for sys/loadavg.h... no checking sys/lock.h usability... yes checking sys/lock.h presence... yes checking for sys/lock.h... yes checking sys/mkdev.h usability... no checking sys/mkdev.h presence... no checking for sys/mkdev.h... no checking sys/modem.h usability... no checking sys/modem.h presence... no checking for sys/modem.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking for sys/stat.h... (cached) yes checking sys/termio.h usability... no checking sys/termio.h presence... no checking for sys/termio.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking for sys/types.h... (cached) yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking pty.h usability... no checking pty.h presence... no checking for pty.h... no checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking netpacket/packet.h usability... no checking netpacket/packet.h presence... no checking for netpacket/packet.h... no checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking bluetooth.h usability... no checking bluetooth.h presence... no checking for bluetooth.h... no checking bluetooth/bluetooth.h usability... no checking bluetooth/bluetooth.h presence... no checking for bluetooth/bluetooth.h... no checking linux/tipc.h usability... no checking linux/tipc.h presence... no checking for linux/tipc.h... no checking spawn.h usability... yes checking spawn.h presence... yes checking for spawn.h... yes checking util.h usability... yes checking util.h presence... yes checking for util.h... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether sys/types.h defines makedev... yes checking for term.h... yes checking for linux/netlink.h... no checking for clock_t in time.h... yes checking for makedev... yes checking Solaris LFS bug... no checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for uint32_t... yes checking for uint64_t... yes checking for int32_t... yes checking for int64_t... yes checking for ssize_t... yes checking size of int... 4 checking size of long... 8 checking size of void *... 8 checking size of short... 2 checking size of float... 4 checking size of double... 8 checking size of fpos_t... 8 checking size of size_t... 8 checking size of pid_t... 4 checking for long long support... yes checking size of long long... 8 checking for long double support... yes checking size of long double... 16 checking for _Bool support... yes checking size of _Bool... 1 checking for uintptr_t... yes checking size of uintptr_t... 8 checking size of off_t... 8 checking whether to enable large file support... no checking size of time_t... 8 checking for pthread_t... yes checking size of pthread_t... 8 checking for --enable-toolbox-glue... yes checking for --enable-framework... no checking for dyld... always on for Darwin checking SO... .so checking LDSHARED... $(CC) -bundle -undefined dynamic_lookup checking CCSHARED... checking LINKFORSHARED... -u _PyMac_Error checking CFLAGSFORSHARED... checking SHLIBS... $(LIBS) checking for dlopen in -ldl... yes checking for shl_load in -ldld... no checking for library containing sem_init... none required checking for textdomain in -lintl... no checking for t_open in -lnsl... no checking for socket in -lsocket... no checking for --with-libs... no checking for pkg-config... no checking for --with-system-expat... no checking for --with-system-ffi... no checking for --with-dbmliborder... checking for --with-signal-module... yes checking for --with-dec-threads... no checking for --with-threads... yes checking if PTHREAD_SCOPE_SYSTEM is supported... yes checking for pthread_sigmask... yes checking if --enable-ipv6 is specified... yes checking if RFC2553 API is available... yes checking ipv6 stack type... kame using libc checking for OSX 10.5 SDK or later... yes checking for --with-doc-strings... yes checking for --with-tsc... no checking for --with-pymalloc... yes checking for --with-valgrind... no checking for --with-wctype-functions... no checking for dlopen... yes checking DYNLOADFILE... dynload_shlib.o checking MACHDEP_OBJS... MACHDEP_OBJS checking for alarm... yes checking for setitimer... yes checking for getitimer... yes checking for bind_textdomain_codeset... no checking for chown... yes checking for clock... yes checking for confstr... yes checking for ctermid... yes checking for execv... yes checking for fchmod... yes checking for fchown... yes checking for fork... yes checking for fpathconf... yes checking for ftime... yes checking for ftruncate... yes checking for gai_strerror... yes checking for getgroups... yes checking for getlogin... yes checking for getloadavg... yes checking for getpeername... yes checking for getpgid... yes checking for getpid... yes checking for getpriority... yes checking for getresuid... no checking for getresgid... no checking for getpwent... yes checking for getspnam... no checking for getspent... no checking for getsid... yes checking for getwd... yes checking for initgroups... yes checking for kill... yes checking for killpg... yes checking for lchmod... yes checking for lchown... yes checking for lstat... yes checking for mkfifo... yes checking for mknod... yes checking for mktime... yes checking for mremap... no checking for nice... yes checking for pathconf... yes checking for pause... yes checking for plock... no checking for poll... yes checking for pthread_init... no checking for putenv... yes checking for readlink... yes checking for realpath... yes checking for select... yes checking for sem_open... yes checking for sem_timedwait... no checking for sem_getvalue... yes checking for sem_unlink... yes checking for setegid... yes checking for seteuid... yes checking for setgid... yes checking for setlocale... yes checking for setregid... yes checking for setreuid... yes checking for setsid... yes checking for setpgid... yes checking for setpgrp... yes checking for setuid... yes checking for setvbuf... yes checking for snprintf... yes checking for setlocale... (cached) yes checking for setregid... (cached) yes checking for setreuid... (cached) yes checking for setresuid... no checking for setresgid... no checking for setsid... (cached) yes checking for setpgid... (cached) yes checking for setpgrp... (cached) yes checking for setuid... (cached) yes checking for setvbuf... (cached) yes checking for snprintf... (cached) yes checking for sigaction... yes checking for siginterrupt... yes checking for sigrelse... yes checking for strftime... yes checking for sysconf... yes checking for tcgetpgrp... yes checking for tcsetpgrp... yes checking for tempnam... yes checking for timegm... yes checking for times... yes checking for tmpfile... yes checking for tmpnam... yes checking for tmpnam_r... no checking for truncate... yes checking for uname... yes checking for unsetenv... yes checking for utimes... yes checking for waitpid... yes checking for wait3... yes checking for wait4... yes checking for wcscoll... yes checking for _getpty... no checking for chroot... yes checking for link... yes checking for symlink... yes checking for fchdir... yes checking for fsync... yes checking for fdatasync... no checking for epoll... no checking for kqueue... yes checking for ctermid_r... yes checking for flock declaration... yes checking for flock... yes checking for getpagesize... yes checking for broken unsetenv... no checking for true... true checking for inet_aton in -lc... yes checking for chflags... yes checking for lchflags... yes checking for inflateCopy in -lz... yes checking for hstrerror... yes checking for inet_aton... yes checking for inet_pton... yes checking for setgroups... yes checking for openpty... yes checking for forkpty... yes checking for memmove... yes checking for fseek64... no checking for fseeko... yes checking for fstatvfs... yes checking for ftell64... no checking for ftello... yes checking for statvfs... yes checking for dup2... yes checking for getcwd... yes checking for strdup... yes checking for getpgrp... yes checking for setpgrp... (cached) yes checking for gettimeofday... yes checking for major... yes checking for getaddrinfo... yes checking getaddrinfo bug... no checking for getnameinfo... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct stat.st_rdev... yes checking for struct stat.st_blksize... yes checking for struct stat.st_flags... yes checking for struct stat.st_gen... yes checking for struct stat.st_birthtime... no checking for struct stat.st_blocks... yes checking for time.h that defines altzone... no checking whether sys/select.h and sys/time.h may both be included... yes checking for addrinfo... yes checking for sockaddr_storage... yes checking whether char is unsigned... no checking for an ANSI C-conforming const... yes checking for working volatile... yes checking for working signed char... yes checking for prototypes... yes checking for variable length prototypes and stdarg.h... yes checking for socketpair... yes checking if sockaddr has sa_len member... yes checking whether va_list is an array... yes checking for gethostbyname_r... no checking for gethostbyname... yes checking for __fpu_control... no checking for __fpu_control in -lieee... no checking for --with-fpectl... no checking for --with-libm=STRING... default LIBM="" checking for --with-libc=STRING... default LIBC="" checking whether C doubles are little-endian IEEE 754 binary64... yes checking whether C doubles are big-endian IEEE 754 binary64... no checking whether C doubles are ARM mixed-endian IEEE 754 binary64... no checking whether we can use gcc inline assembler to get and set x87 control word... yes checking for x87-style double rounding... no checking whether tanh preserves the sign of zero... yes checking for acosh... yes checking for asinh... yes checking for atanh... yes checking for copysign... yes checking for erf... yes checking for erfc... yes checking for expm1... yes checking for finite... yes checking for gamma... yes checking for hypot... yes checking for lgamma... yes checking for log1p... yes checking for round... yes checking for tgamma... yes checking whether isinf is declared... yes checking whether isnan is declared... yes checking whether isfinite is declared... yes checking whether POSIX semaphores are enabled... yes checking for broken sem_getvalue... yes checking digit size for Python's longs... no value specified checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking size of wchar_t... 4 checking for UCS-4 tcl... no checking whether wchar_t is signed... yes checking what type to use for unicode... unsigned short checking whether byte ordering is bigendian... no checking whether right shift extends the sign bit... yes checking for getc_unlocked() and friends... yes checking how to link readline libs... -lreadline checking for rl_callback_handler_install in -lreadline... yes checking for rl_pre_input_hook in -lreadline... yes checking for rl_completion_display_matches_hook in -lreadline... yes checking for rl_completion_matches in -lreadline... yes checking for broken nice()... no checking for broken poll()... no checking for struct tm.tm_zone... (cached) yes checking for working tzset()... yes checking for tv_nsec in struct stat... no checking for tv_nsec2 in struct stat... yes checking whether mvwdelch is an expression... yes checking whether WINDOW has _flags... no checking for is_term_resized... yes checking for resize_term... yes checking for resizeterm... yes checking for /dev/ptmx... yes checking for /dev/ptc... no checking for %lld and %llu printf() format support... yes checking for %zd printf() format support... yes checking for socklen_t... yes checking for build directories... done configure: creating ./config.status config.status: creating Makefile.pre config.status: creating Modules/Setup.config config.status: creating Misc/python.pc config.status: creating Modules/ld_so_aix config.status: creating pyconfig.h config.status: pyconfig.h is unchanged creating Modules/Setup creating Modules/Setup.local creating Makefile CONFIG_FILES=Makefile.pre CONFIG_HEADERS= /bin/sh config.status config.status: creating Makefile.pre make -f Makefile.pre Makefile /bin/sh ./configure checking for --enable-universalsdk... no Does anyone have any hints as to what could be causing this? Let me know if there's any other information or logs that would be useful.
0
[ 2, 20059, 1895, 1852, 77, 9698, 5293, 800, 3726, 3726, 76, 749, 20, 1895, 20059, 172, 9, 465, 9, 240, 27, 2224, 15446, 15, 32, 2206, 14, 233, 953, 3049, 4549, 19, 40, 9698, 5293, 9, 32, 1780, 30, 14, 1065, 15951, 3884, 3049, 227...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
django how do i find my project name? === i have a pycharm project and, presumably, a django project. Perhaps they are one and the same, perhaps not - i'm unsure as to the distinction. Anyway, in my settings.py folder (which is in the base of the `project` directory, which is what i presume is my pycharm project) i have: ROOT_URLCONF = 'dumpstown.urls' does that mean `dumpstown` is my project name? or my pycharm project name? What is the distinction? Because I *also* have a folder called `dumpstownapp`, and this has all my models.py and view.py files. i would have thought that `dumpstownapp` was the django project, but i really don't know! So, to be concise: in this folder setup folderA folderB views.py models.py <other stuff> templates folder settings.py <other stuff> which is the "django project name" ~ and by that i mean, if i have a UserProfile defined in my models.py (shown above) what would be the `AUTH_PROFILE_MODULE` entry i'd need for it? I'm getting several understandings from the django docs - i'd assume dumpstownapp.models.UserProfile but from the docs i'd get dumpstownapp.UserProfile or maybe my app is called dumpstown? and *then* what do i get? cheers!
0
[ 2, 3857, 14541, 184, 107, 31, 477, 51, 669, 204, 60, 800, 3726, 3726, 31, 57, 21, 7103, 5433, 79, 669, 17, 15, 12411, 15, 21, 3857, 14541, 669, 9, 1774, 59, 50, 53, 17, 14, 205, 15, 1774, 52, 13, 8, 31, 22, 79, 13815, 28, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ruby braces madness === 1 brace: print ( (1..10).collect do |x| x**2 end ) syntax error, unexpected <blah-blah> 2 braces: print (( (1..10).collect do |x| x**2 end )) 149162536496481100=> nil I understand the difference between `print (a) do <...>` and `print(a) do <...>`. But what is the difference in my case? Why two braces is not the same as one?
0
[ 2, 10811, 15646, 18, 13139, 800, 3726, 3726, 137, 15646, 45, 4793, 13, 5, 13, 5, 165, 9, 9, 1036, 6, 9, 15015, 107, 13, 1, 396, 1, 993, 1409, 135, 241, 13, 6, 22649, 7019, 15, 9380, 13, 1, 220, 9396, 8, 220, 9396, 1, 172, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
java object marshalling === when talking about object marshalling in most of the Java-XML data binding APIs, it has been said that the the XML file is recreated from the user defined classes from memory? I'm quite confusing about saying (user defined classes from memory). I know using reflection will help to get the class names and/or fields in case of need for implementing the marshalling process, but how the data (values for the elements or attributes) can be accessed? is there any one can explain this process a little? thanks
0
[ 2, 8247, 3095, 4526, 68, 800, 3726, 3726, 76, 1582, 88, 3095, 4526, 68, 19, 127, 16, 14, 8247, 8, 396, 8184, 1054, 8728, 21, 8954, 15, 32, 63, 74, 87, 30, 14, 14, 23504, 3893, 25, 21119, 43, 37, 14, 4155, 2811, 2684, 37, 1912,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IndexedDB deleteDatabase does not reset version === In Firefox. Init (once) var r, dbname = 'a1', db = mozIndexedDB; First, try { r = db.open(dbname, 5); } catch (ex) { console.log(ex); } r.onupgradeneeded = r.onsuccess = r.onblocked = r.onerror = function (e) { console.log(e); }; you get two events fired as supposed to be. Then close the database, r.result.close() Finally, delete the database, try { r = db.deleteDatabase(dbname); } catch (ex) { console.log(ex); } r.onsuccess = r.onerror = r.onblocked = function (e) { console.log(e); }; deletes successfully. However when I start running the first step scrip (opening db), 'onupgradeneeded' does not get fired and opens database with version it had before it was deleted. Is it bug, or am I doing smth wrong? Thanks.
0
[ 2, 4348, 69, 9007, 19584, 4375, 8436, 630, 52, 23422, 615, 800, 3726, 3726, 19, 535, 18219, 9, 19, 242, 13, 5, 13120, 6, 4033, 761, 15, 13, 9007, 7259, 800, 13, 22, 58, 165, 22, 15, 13, 9007, 800, 13, 18057, 25671, 69, 9007, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Two-Column Layout - Divs Leave Extra Space === Firstly, I'd like to say that I don't want to do this with Javascript. http://jsfiddle.net/WqrBY/2/ In this jsFiddle, I've got two columns but the bottom right div is obviously aligned with the bottom left. I'd like to be able to (without adjusting the markup) move the bottom right div just under the top right (just like how the bottom left is under the top left). I don't want to change the markup because the order of the divs is important when it switches to a one-column layout for smaller screen sizes. Can anyone help me out here?
0
[ 2, 81, 8, 716, 4404, 103, 9106, 13, 8, 13, 12916, 18, 767, 2230, 726, 800, 3726, 3726, 64, 102, 15, 31, 22, 43, 101, 20, 395, 30, 31, 221, 22, 38, 259, 20, 107, 48, 29, 8247, 8741, 9, 7775, 6903, 728, 18, 1707, 12312, 9, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dropbox XAMPP & MySQL === I have relocated my htdocs folder to be within my dropbox folder and would like to do a similar thing with my MySQL databases. I don't know if this is even possible or advisable so would love to hear anyones advice and thoughts. Should I be doing this and if so how?
0
[ 2, 2804, 5309, 993, 765, 3421, 279, 51, 18, 22402, 800, 3726, 3726, 31, 57, 6822, 51, 13, 9020, 13799, 18, 19294, 20, 44, 363, 51, 2804, 5309, 19294, 17, 83, 101, 20, 107, 21, 835, 584, 29, 51, 51, 18, 22402, 6018, 18, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Check for either ADO.NET / OLEDB Connection presence and then insert to DB === I originally posted the [question][1] to check for presence of either ADO.NET/OLEDB connection types. That being resolved, I'd like to know, how to change the code when it comes to inserting to the DB. For example, when the connection type is ADO.NET we use the "Transaction" in the connection type. SqlConnection connection = (SqlConnection)connections[_connectionName].AcquireConnection(transaction); Now if I have the OLEDB connection (instead of ADO.NET), I'd like to handle that situation in this code. What do I need to do. Sorry if I dont sound technical enough, but I am not a C# person. Thanks again for your kind help. [1]: http://stackoverflow.com/questions/11216494/check-for-either-ado-net-oledb-connection-presence
0
[ 2, 2631, 26, 694, 21, 537, 9, 2328, 13, 118, 12116, 9007, 2760, 1970, 17, 94, 14692, 20, 13, 9007, 800, 3726, 3726, 31, 912, 6054, 14, 636, 24652, 500, 2558, 165, 500, 20, 2631, 26, 1970, 16, 694, 21, 537, 9, 2328, 118, 6069, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
converting JSON attributes response to BOOL === If I have a JSON response as follows: "is_following": false, how can I convert this to a BOOL in objective-C? this doesn't seem to be right: [[NSNumber numberWithInt:(int)[profileData valueForKey:@"is_following"]] boolValue];
0
[ 2, 19583, 487, 528, 13422, 1627, 20, 1607, 1823, 800, 3726, 3726, 100, 31, 57, 21, 487, 528, 1627, 28, 2415, 45, 13, 7, 403, 1, 19184, 68, 7, 45, 4997, 15, 184, 92, 31, 8406, 48, 20, 21, 1607, 1823, 19, 7038, 8, 150, 60, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Overloading a Method based upon return types === All -- I have these two methods in one of my classes: public static void DeSerializeFromXml(out cDBData db, string pathToXML) { using (XmlTextReader reader = new XmlTextReader(pathToXML)) { XmlSerializer ser = new XmlSerializer(typeof(cDBData)); db = (cDBData)ser.Deserialize(reader); } } public static void DeSerializeFromXml(out cDatabases db, string pathToXML) { using (XmlTextReader reader = new XmlTextReader(pathToXML)) { XmlSerializer ser = new XmlSerializer(typeof(cDatabases)); db = (cDatabases)ser.Deserialize(reader); } } and they work fine but I was wondering why can't I create an method overload based upon the return type of the method. I thought I read that this was possible somewhere but I am obviously wrong because it doesn't work: public static cDBData DeSerializeFromXml(string pathToXML) { cDBData db; using (XmlTextReader reader = new XmlTextReader(pathToXML)) { XmlSerializer ser = new XmlSerializer(typeof(cDBData)); db = (cDBData)ser.Deserialize(reader); } return db; } public static cDatabases DeSerializeFromXml(string pathToXML) { cDatabases db; using (XmlTextReader reader = new XmlTextReader(pathToXML)) { XmlSerializer ser = new XmlSerializer(typeof(cDatabases)); db = (cDatabases)ser.Deserialize(reader); } return db; } Thanks for your thoughtful responses
0
[ 2, 84, 16866, 21, 2109, 432, 685, 788, 2551, 800, 3726, 3726, 65, 13, 8, 8, 31, 57, 158, 81, 3195, 19, 53, 16, 51, 2684, 45, 317, 12038, 11364, 1746, 106, 2815, 2952, 2665, 396, 8184, 5, 1320, 1745, 220, 18768, 13, 9007, 15, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trying to create my own Phone Dialer from scratch in Eclipse Android === I am trying to create my own Phone Dialer from scratch in Eclipse Android, I did a simple phone layout in the XML with numbers 0-9 and some buttons/imagebuttons. - Basically i put some "buttons" and "imagebuttons" and i understand that i need to do the setOnClickListener thingy in my xxx.java file. something like "Button no1 = (Button) findViewById(R.id.button1); no1.setOnClickListener(new View.OnClickListener()".. i hope i am on the right track.. - I did an "<EditText" on top of the numbers ("buttons" and "imagebuttons") to display the numbers. but nothing come out when i click... I am not sure what i miss out which cause this problem. - I also did a "settings" button in the same XML file, which upon clicking on the button, a toast will pop out which have a couple of clickable icons. I am not too sure on how to do it. I did read some tutorials but mine seems to be not quite right. - hopefully if the above-mentioned points can be rectified, i hope i can try to make the SMS characters to be Unicode, which can limit to lets say 50 characters etc.. but that's still far-fetched for me though.. i'll do this in the later part. I did a google research but i dont quite get the correct info as its just bits and pieces here and there... Actually i want to create this customized phone dialer as i intent to install it in my Mum's 2.1 froyo phone. she like to have it as her birthday present which is in 8 days time. wierd wish but i'll do my best.. Can anyone advise me please? If there a sample code where i can check what i went wrong. I am still very new in JAVA program but i really wish to learn, and i did some self learning from a number websites including here. Thanks in advance.
0
[ 2, 749, 20, 1600, 51, 258, 1132, 11601, 106, 37, 12395, 19, 11652, 13005, 800, 3726, 3726, 31, 589, 749, 20, 1600, 51, 258, 1132, 11601, 106, 37, 12395, 19, 11652, 13005, 15, 31, 144, 21, 1935, 1132, 9106, 19, 14, 23504, 29, 2116,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using XmlDocument.Save() Effectively === I'm working with a .XML document in C# to which I'm selecting nodes from, adding nodes to, and deleting nodes many, many times over a span of my code. All of the XML editing of this document is contained within a class, which other classes call to. Since the Data Access class has no way of telling if the classes using it are done with editing the document, it has no logic as to if/when to save. I *could* save after every modification of the document, but I'm concerned with performance issues. Alternatively I could just assume/hope that it will be saved by the other classes that use it (I created a one-line public method to save the document, so another class can request a save). The second option concerns me as I feel like I should have it globally enforced in some manner to avoid it being called upon and modifications not being committed. To this point there will never be a case where a rollback is needed; any change is a change that should be committed. Does .Net (Or coding design) have a way to balance performance and safety in such a situation?
0
[ 2, 568, 23504, 28132, 9, 19863, 5, 6, 5463, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 13, 9, 396, 8184, 4492, 19, 272, 5910, 20, 56, 31, 22, 79, 20764, 16272, 37, 15, 4721, 16272, 20, 15, 17, 121, 1336, 68, 16272, 151, 15, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to create my own database and store it like godaddy.com? === I am not new to databases at all, however I have always used the limited about of databases that [GoDaddy.com][1] allow me to use. I want to create my own database on my computer using **XAMPP - phpMyAdmin**, how would i go about uploading or use this database that i created on my local computer so that my website has access to it just like i do now on [GoDaddy][1]? What would the `hostname` be? The `user`? The `password`? $hostname = "link-that-godaddy-gives-the-database.hostedresource.com"; $user = "????"; $pass = "????"; $con = mysql_connect($hostname, $user, $pass); [1]: http://www.godaddy.com
0
[ 2, 184, 20, 1600, 51, 258, 6018, 17, 1718, 32, 101, 162, 25078, 9, 960, 60, 800, 3726, 3726, 31, 589, 52, 78, 20, 6018, 18, 35, 65, 15, 207, 31, 57, 550, 147, 14, 1317, 88, 16, 6018, 18, 30, 636, 839, 25078, 9, 960, 500, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Devise + Facebook Omniauth Error on redirect === I am using devise, omniauth & facebook-omniauth for my Rails 3.1 app. After authentication I wanted to redirect the user to the page was viewing. I have used the following code for the same: def facebook @user = Spree::User.find_for_facebook_oauth(request.env["omniauth.auth"], current_user) if @user.persisted? flash[:notice] = "Yipee! You were successfully authorized from your Facebook account!!" sign_in @user, :event => :authentication redirect_to request.referrer end This gives me the following error only at the time of user creation: ActionController::ActionControllerError in Spree::OmniauthCallbacksController#facebook Cannot redirect to nil! The following times when the user has already been created, no errors are shown during & after log in. How do you suggest I fix this? Thanks!
0
[ 2, 29276, 2754, 9090, 14677, 1346, 96, 7019, 27, 302, 14706, 800, 3726, 3726, 31, 589, 568, 29276, 15, 14677, 1346, 96, 279, 9090, 8, 2636, 889, 1346, 96, 26, 51, 2240, 18, 203, 9, 165, 4865, 9, 75, 27963, 31, 417, 20, 302, 1470...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
rails 2 ajax dynamic form fill === I'm writing a plugin for redmine, so it's rails 2 only and I'm pretty new to rails. What I want to do is have my page divided vertically in item list (left) and the form (editor on the right) What I cannot achieve is to be able to click "edit" in a row in the left list which will fill the form on the right and after clicking submit modifying the edited record. I was trying link_to_remote to replace the ld div with another, but nothing works. Here's what I have now. _table pertial rendering the left list part of the view: <td class="buttons"><%= link_to_remote(l(:button_edit), :update => "editcategory", :url => { :controller => 'transaction_categories', :action => 'edit', :id => category.id }, :method => :get )%></td> _editor partial: <div class="editcategory"> <% labelled_tabular_form_for @transaction_category do |f| %> <!--[form:transaction_category]--> <fieldset class="box tabular"> ... </fieldset> <!--[eoform:transaction_category]--> <p> <%= submit_tag l(:button_update) %> </p> <% end %> </div> in the index.html.erb theres the <div class="editcategory"> and finally: def edit @transaction_category = TransactionCategory.find(params[:id]) render :partial => 'editor', :transaction_category => @transaction_category end Now I thing Im doing something terribly wrong ;)
0
[ 2, 2240, 18, 172, 20624, 7782, 505, 3509, 800, 3726, 3726, 31, 22, 79, 1174, 21, 10922, 108, 26, 402, 7640, 15, 86, 32, 22, 18, 2240, 18, 172, 104, 17, 31, 22, 79, 1772, 78, 20, 2240, 18, 9, 98, 31, 259, 20, 107, 25, 57, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
free dragging shapes on android === I tried implementing dragging on android in 2 ways: 1. Canvas with on draw. 2. Relative layout with margins changes on touch. It's not smooth enough, even on strong devices. How can I make dragging faster?
0
[ 2, 551, 13052, 12129, 27, 13005, 800, 3726, 3726, 31, 794, 17333, 13052, 27, 13005, 19, 172, 2847, 45, 137, 9, 9696, 29, 27, 2003, 9, 172, 9, 4543, 9106, 29, 5440, 18, 1693, 27, 1723, 9, 32, 22, 18, 52, 3905, 511, 15, 166, 27,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
Jquery Making a click dynamically === I want to make some clicks with Jquery dynamically onLoad of a page. I found how : $("#pdt1").trigger("click"); I have part of the id into my session display into a string like that "1,3,7" and i want to generate some clicks like that : $("#pdt1").trigger("click"); $("#pdt3").trigger("click"); $("#pdt7").trigger("click"); So i have write that in Jquery : $(document).ready(function () { //Getting my string of Ids var mesId = $('#<%= selectedID.ClientID %>').val(); //Cut my string into an array var subId = mesId.split(','); //Send a click for each id $(subId).each(function (event) { $('#pdt'+ this).trigger("click"); }); }); And obviously, that don't work. I am sure that i get my ids and cut them properly. What i'm not sure is about the each function, and the concatenation. Anyone know how make it work? Thank you.
0
[ 2, 487, 8190, 93, 544, 21, 10840, 7782, 1326, 800, 3726, 3726, 31, 259, 20, 233, 109, 10840, 18, 29, 487, 8190, 93, 7782, 1326, 27, 8294, 16, 21, 2478, 9, 31, 216, 184, 13, 45, 5579, 5, 7, 5910, 9251, 38, 165, 7, 6, 9, 3367,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Django - reverse foeignkey select_related === So, similar questions have been asked before, but I have been unable to find a conclusive answer. Given the following models: class Parent(models.Model): name = models.CharField(max_length=250) class ChildA(models.Model): parent = models.ForeignKey('Parent') class ChildB(models.Model): parent = models.ForeignKey('Parent') How can I get all the children of a given parent? Select related only goes forwards, so that won't work as far as I can tell. Prefetch related seems to only operate when there is an actual field reference in the parent (ie, if the parent has a field that is a m2m with a child) so I don't see how that would work. I'm sure this is something I've just overlooked in the docs, given how rudimentary and common this sort of problem is.
0
[ 2, 3857, 14541, 13, 8, 7006, 16823, 9693, 4237, 5407, 1, 6203, 800, 3726, 3726, 86, 15, 835, 2346, 57, 74, 411, 115, 15, 47, 31, 57, 74, 2343, 20, 477, 21, 28384, 1623, 9, 504, 14, 249, 2761, 45, 718, 4766, 5, 13998, 18, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to handle clicking notifications? === I have this code for notifications which works but whenever I click on the notification the application force closes I don't know why. I want when I click on the notifications for it to be cancelled, I also want to make it timed if it is possible, can you please help me? Here is the code: package egypt.interfaceAct; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.os.Bundle; import android.widget.Toast; public class Notifications extends Activity { NotificationManager nm; int uniqueID = 13393; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); Bundle programNum = getIntent().getExtras(); final String body = programNum.getString("Activity"); final String startTime = programNum.getString("Start"); final String endTime = programNum.getString("End"); nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); nm.cancel(uniqueID); String notify = body + "Start at: " + startTime + " to: " + endTime; Intent intent = new Intent(this,ProgramsList2.class); PendingIntent pi = PendingIntent.getActivity(this, 1, intent, 0); //String body = (String) ((TextView)parent.getChildAt(position)).getText(); String title = "Egypt On The Go"; //String time = body + "\n start at:" + startTime+ "\n end at:" + endTime.get(position); Notification n = new Notification(R.drawable.egypt, notify, System.currentTimeMillis()); n.setLatestEventInfo(this, title, notify, pi); n.defaults = Notification.DEFAULT_ALL; nm.notify(uniqueID, n); n.flags = Notification.FLAG_AUTO_CANCEL; //Intent i = new Intent(this, ProgramsList2.class); //startActivity(i); finish(); } } Here is the logCat maybe it will help: 06-25 19:06:19.818: E/AndroidRuntime(883): Uncaught handler: thread main exiting due to uncaught exception 06-25 19:06:19.824: E/AndroidRuntime(883): java.lang.RuntimeException: Unable to start activity ComponentInfo{egypt.interfaceAct/egypt.interfaceAct.ProgramsList2}: java.lang.NullPointerException 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.os.Handler.dispatchMessage(Handler.java:99) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.os.Looper.loop(Looper.java:123) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread.main(ActivityThread.java:4363) 06-25 19:06:19.824: E/AndroidRuntime(883): at java.lang.reflect.Method.invokeNative(Native Method) 06-25 19:06:19.824: E/AndroidRuntime(883): at java.lang.reflect.Method.invoke(Method.java:521) 06-25 19:06:19.824: E/AndroidRuntime(883): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 06-25 19:06:19.824: E/AndroidRuntime(883): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 06-25 19:06:19.824: E/AndroidRuntime(883): at dalvik.system.NativeStart.main(Native Method) 06-25 19:06:19.824: E/AndroidRuntime(883): Caused by: java.lang.NullPointerException 06-25 19:06:19.824: E/AndroidRuntime(883): at egypt.interfaceAct.ProgramsList2.onCreate(ProgramsList2.java:68) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-25 19:06:19.824: E/AndroidRuntime(883): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) 06-25 19:06:19.824: E/AndroidRuntime(883): ... 11 more Thank you so much
0
[ 2, 184, 20, 3053, 25590, 52, 4634, 18, 60, 800, 3726, 3726, 31, 57, 48, 1797, 26, 52, 4634, 18, 56, 693, 47, 6634, 31, 10840, 27, 14, 52, 4634, 14, 3010, 558, 543, 18, 31, 221, 22, 38, 143, 483, 9, 31, 259, 76, 31, 10840, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Difference between .Equals, IComparable and IComparer === Can someone please explain with example that I can understand about the difference between .Equals, IComparable and IComparer. I was asked this in an interview :( Thanks in advance.
0
[ 2, 2841, 128, 13, 9, 62, 14512, 18, 15, 31, 960, 3574, 579, 17, 31, 960, 3574, 106, 800, 3726, 3726, 92, 737, 2247, 3271, 29, 823, 30, 31, 92, 1369, 88, 14, 2841, 128, 13, 9, 62, 14512, 18, 15, 31, 960, 3574, 579, 17, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Resuming jquery cycle with a delay === I am trying to resume a Jquery cycle plugin slideshow, but only after a delay of X miliseconds. The set up is for the slideshow to play while being hovered over, and to pause while not (while other content is scrolled on top of it essentially) The following code is not registering a delay before it resumes Any help much appreciated <script type="text/javascript"> $(document).ready(function() { // configure the cycle plugin $('.slideshowtwo').cycle({ fx: 'scrollUp', speed: 1000, timeout: 1200, pause: 0 }); $('.slideshowtwo').cycle('pause'); // pause it right away. $('.slideshowtwo').hover( function() { $(this).delay(5000).cycle('resume'); // start playing after delay }, function(){ $(this).cycle('pause'); // pause the slideshow. } ).trigger('hover'); }); </script>
0
[ 2, 10719, 723, 68, 487, 8190, 93, 4150, 29, 21, 7255, 800, 3726, 3726, 31, 589, 749, 20, 13113, 21, 487, 8190, 93, 4150, 10922, 108, 18066, 1544, 15, 47, 104, 75, 21, 7255, 16, 993, 20374, 5007, 18, 9, 14, 309, 71, 25, 26, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery - hide/show buttons on a dialog dynamically === I have a dialog - <div data-role="dialog" id="msg-popup"> <div data-role="header"> <h1>Notification</h1> </div> <div data-role="content" id> <b id="notif-subject"></b> <a href="#notif-details1" id:"show-notif" data-role="button">Show notification</a> <a href="#" data-rel="back" data-role="button">Cancel</a> </div> </div> I want to hide and show the show-notif button dynamically using jquery code. How would I do it? I have tried $("#show-notif").hide(); This did not work for me. Any ideas?
0
[ 2, 487, 8190, 93, 13, 8, 3077, 118, 9303, 12861, 27, 21, 28223, 7782, 1326, 800, 3726, 3726, 31, 57, 21, 28223, 13, 8, 13, 1, 12916, 1054, 8, 661, 413, 3726, 7, 4286, 5567, 7, 4924, 3726, 7, 79, 18, 263, 8, 6057, 576, 7, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Zend Framework 2 Di creates class without parameters === I have the following code in config: <?php return array( 'di' => array( 'instance' => array( 'alias' => array( 'sms_message' => 'Sms\Message', ), 'sms_message' => array( 'parameters' => array( 'from' => 'sobrado.ch', ), ), ), ); And in Message.php class I have a setter (I dont want to use contructor): /** * From * @var string */ protected $from; /** * @param string $from */ public function setFrom($from) { $this->from = $from; } But when I try to load it I get unconfigured object: var_dump($this->getLocator()->get('Sms\Message'));exit; object(Sms\Message)[596] protected 'to' => null protected 'from' => null protected 'body' => null How to make it work?
0
[ 2, 10526, 43, 6596, 172, 926, 9695, 718, 366, 12905, 800, 3726, 3726, 31, 57, 14, 249, 1797, 19, 13, 14093, 2816, 45, 13, 1, 60, 26120, 788, 7718, 5, 13, 22, 1115, 22, 800, 1, 7718, 5, 13, 22, 108, 384, 2416, 22, 800, 1, 771...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Maven Versions Plug-in Skipping Update Check === When I attempt to use `versions:use-releases` my release repository is marked as "disabled", meaning the snapshot dependencies do not get resolved to releases. I don't understand why the repository is considered disabled. Here is the abbreviated debug output from the build: [DEBUG] (f) remoteArtifactRepositories = [ id: snapshots url: http://maven.live.hostname.net/content/repositories/snapshots/ layout: default snapshots: [enabled => true, update => daily] releases: [enabled => true, update => daily] , id: company-nexus url: http://maven.live.hostname.net/content/groups/public/ layout: default snapshots: [enabled => false, update => daily] releases: [enabled => true, update => daily] ] [...] [DEBUG] Looking for a release of promotion-test-central:promotion-test-central:jar:1.6.0-SNAPSHOT [INFO] artifact promotion-test-central:promotion-test-central: checking for updates from snapshots [DEBUG] Reading resolution-state from: /home/tester/.m2/repository/promotion-test-central/promotion-test-central/resolver-status.properties [DEBUG] Writing resolution-state to: /home/tester/.m2/repository/promotion-test-central/promotion-test-central/resolver-status.properties [DEBUG] Skipping update check for artifact promotion-test-central:promotion-test-central (/home/tester/.m2/repository/promotion-test-central/promotion-test-central/maven-metadata-company-nexus.xml) from disabled repository company-nexus (http://hostname/content/groups/public/) I run a setup that mirrors requests to `central` to our Nexus instance, and also specifies a global snapshot repository too: <mirrors> <mirror> <id>mendeley-nexus</id> <mirrorOf>central</mirrorOf> <url>http://maven.live.chonp.net/content/groups/public/</url> </mirror> </mirrors> <profiles> <profile> <id>default</id> <repositories> <repository> <id>snapshots</id> <url>http://maven.live.chonp.net/content/repositories/snapshots/</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>default</activeProfile> </activeProfiles> There exists a release and snapshot version of the dependency in question, and the repository works exactly as expected in all other respects.
0
[ 2, 1216, 3124, 3281, 10922, 8, 108, 27225, 11100, 2631, 800, 3726, 3726, 76, 31, 1735, 20, 275, 13, 1, 10898, 18, 45, 3699, 8, 15202, 18, 1, 51, 830, 24869, 25, 2739, 28, 13, 7, 2906, 579, 43, 7, 15, 1813, 14, 29946, 29411, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Haskell: Difficulty embedding the context (Eq a) into a data declaration === I am writing a simple hash tree structure in the following program `hash_lookup.hs`: module Main where data (Eq a) => HashTable a b = HashChildren (a, [HashTable a b]) | Hash (a, b) deriving (Show) getKey :: HashTable a b -> a getKey (HashChildren (k, hs)) = k getKey (Hash (k, h)) = k lookUp :: [a] -> HashTable a b -> Maybe (HashTable a b) lookUp [] table = return table lookUp _ (Hash _) = Nothing lookUp (p:path) (HashChildren (_, ts) ) = lookUp path ( head ( dropWhile (\x -> (getKey x) /= p) ts ) ) getKey is intended to retrieve the root key of a given HashTable, and lookUp takes a list of strings and is meant to follow the first path it finds until it either reaches the full path or fails (I'm aware that this isn't natural behaviour for a tree but it's what my tutorial wants). I have two questions: 1) Why do I get an error message telling me that `a /= a` (from the final line) is not allowed as there is `No instance for (Eq a)` (the error message in terminal), despite `(Eq a)` in the data declaration? 2) Other than the error I'm getting and the seemingly strange behaviour of the lookup function, is this *good* or *idiomatic* Haskell? Thanks
0
[ 2, 63, 16507, 45, 6967, 11911, 69, 3258, 14, 4141, 13, 5, 18550, 21, 6, 77, 21, 1054, 7098, 800, 3726, 3726, 31, 589, 1174, 21, 1935, 19170, 1541, 1411, 19, 14, 249, 625, 13, 1, 25436, 1, 5810, 576, 9, 252, 18, 1, 45, 12613, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using CJUIautocomplete to fill fields based on arithmetic (Yii Framework) === I've searched all over for an answer to this, but cannot find any clear examples for what I'd like to do. I have worked to provide this functionality in native java script (getDocumentiD) in the past, but I'd like to know the easiest way to do this in the Yii framework. My main issue What I'd like to do is using the CJuiAutoComplete class, autofill particular fields by adding,dividing, or multiplaying values given from PREVIOUSLY entered fields in a form. I would like this to update dynamically as the values are changed. If anyone could outline the appropriate steps or examples, or a link to a guide I would greatly appreciate it! Something I would also like to do I would also like to achieve something similar for one particular field in my form. What I'd like to do is given the input from a previous field e.g (country name), look up my database for that model all corresponding rows that contain that same previously entered country from the form, take the average of an integer in a column for all those rows, and autofill ANOTHER field on the form. Thanks for any help! If anyone could give any clear examples of this I would greatly appreciate it.
0
[ 2, 568, 23396, 5661, 18042, 15990, 20, 3509, 2861, 432, 27, 21211, 13, 5, 93, 2865, 6596, 6, 800, 3726, 3726, 31, 22, 195, 9036, 65, 84, 26, 40, 1623, 20, 48, 15, 47, 1967, 477, 186, 1207, 3770, 26, 98, 31, 22, 43, 101, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do draw2d naming overflow? === I am a java developer that uses the eclipse draw2d, graphiti and GEF framework. Lately it has come to my notice that you are developing similar functionality in javascript, and decided to name your projects with exactly the same name as the existing java projects. Is this a coincidence? If not, I feel that this is a rude thing to do to the long standing java draw2d community, since the name will now confuse people. Why not use draw2djs (since jsdraw2d is already taken). BTW, you have also rendered the description of the [tag:draw2d] irrelevant.
0
[ 2, 483, 107, 2003, 135, 43, 10929, 20285, 60, 800, 3726, 3726, 31, 589, 21, 8247, 10058, 30, 2027, 14, 11652, 2003, 135, 43, 15, 7210, 8793, 17, 3168, 410, 6596, 9, 10434, 32, 63, 340, 20, 51, 3551, 30, 42, 50, 3561, 835, 18548,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Keeping viewmodels up to date with changes in child views === I have a Razor page with 2 child views inserted into it using Html.DisplayFor(): ... @Html.DisplayFor(model => model.ModelObject.Lines, new { IsEditable = Model.ModelObject.CanEdit }) ... @Html.DisplayFor(model => model.Payments, new { DocumentId = Model.ModelObject.Id, CanAddPayments = Model.ModelObject.CanAddPayments }) ... When I call an action from view 2, I need to be able to get the latest in-memory state of the model (imagine lines were added to the document) before saving the model. Unfortunately it seems that all I can get is the model from when the page was first loaded. I CAN see changes to the viewmodel used in the childview. for example, in the payments child view, I can see payments being updateed, but NOT lines that have been updated in the other view. Is here some way I can get see one view's changes form the other or make them change the same object?
0
[ 2, 2882, 1418, 13998, 18, 71, 20, 1231, 29, 1693, 19, 850, 4146, 800, 3726, 3726, 31, 57, 21, 14282, 2478, 29, 172, 850, 4146, 14215, 77, 32, 568, 13, 15895, 9, 2906, 5438, 1106, 5, 6, 45, 13, 9, 9, 9, 13, 1, 15895, 9, 2906,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Splitting a number pattern === I want to now how do i split a string like `44664212666666 into [44664212 , 666666]` or `58834888888888 into [58834, 888888888]` without knowing where the first occurrence of the last recurring digit occurs. so passing it to a function say `seperate(str)` --> `[non_recurring_part, end_recurring digits]`
0
[ 2, 17282, 21, 234, 3732, 800, 3726, 3726, 31, 259, 20, 130, 184, 107, 31, 2132, 21, 3724, 101, 13, 1, 4268, 3526, 25406, 24311, 3526, 3526, 77, 636, 4268, 3526, 3941, 918, 13, 15, 7395, 3526, 3526, 500, 1, 54, 13, 1, 264, 3020, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
js cookie is not shown in chrome developer tools === I created cookie with server side code (c#) and it was shown in chrome developer tools. (Resources->Cookies) now I created it in js and it is not shown there anymore. if I write in the console: "document.cookie" - I can see my cookie, but I want to see it in Resources->Cookies so I can easily delete it when I want to. the code to create the cookie: (from: http://www.w3schools.com/js/js_cookies.asp?output=print) function setCookie(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; } and: setCookie("myCookie", "true", 365);
0
[ 2, 487, 18, 19980, 25, 52, 1721, 19, 13, 12985, 10058, 4672, 800, 3726, 3726, 31, 679, 19980, 29, 8128, 270, 1797, 13, 5, 150, 5910, 6, 17, 32, 23, 1721, 19, 13, 12985, 10058, 4672, 9, 13, 5, 99, 12097, 18, 8, 1, 20840, 1596, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Xpath how to merge to xpaths in to different columns to one row === I need to search in a vaadin table for two strings date and location and when click the row where the two strings are present i made such an xpath .//div[1]/div[2]/div/div[3]/div[1]/table/tbody/tr/td/div[contains(text(), 'PL')] and i want to add another contain [contains(text(),'2012-12-12')]
0
[ 2, 993, 8353, 184, 20, 12666, 20, 993, 8353, 18, 19, 20, 421, 7498, 20, 53, 3131, 800, 3726, 3726, 31, 376, 20, 2122, 19, 21, 3471, 1283, 108, 859, 26, 81, 7887, 1231, 17, 1474, 17, 76, 10840, 14, 3131, 113, 14, 81, 7887, 50, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Erlang/OTP R15B01: ct_line replacement? === Erlang/OTP R14B04 offered [ct_line][1], a parse transformer to insert line numbers (`otp_src_R14B04/lib/common_test/src/ct_line.erl`). I can't find that in R15B01, so I guess it must have been removed. Do you know of a replacement with similar functionality? [1]: http://erldocs.com/R14B04/common_test/ct_line.html
0
[ 2, 13, 106, 9949, 118, 2779, 306, 761, 1193, 220, 3026, 45, 13, 4812, 1, 1143, 4610, 60, 800, 3726, 3726, 13, 106, 9949, 118, 2779, 306, 761, 1419, 220, 3277, 1434, 636, 4812, 1, 1143, 500, 2558, 165, 500, 15, 21, 2017, 870, 800...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...