unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Why doesn't this jQuery .each loop through json data correctly? === Here's my ajax call: $.ajax({ url: 'url-to-json', type: 'POST', dataType: 'json', cache: 'false', data: { lat: lat, lng: lng } }).done(function(data) { $.each(data, function(a) { alert(data[a]); }); }); Here's the json it's iterating over: [ {"Id":"4c75bd5666be6dcb9f70c10f","Name":"BXtra","EnglishName":null,"Lat":35.7515869140625,"Lng":139.33872985839844}, {"Id":"4c5160a1d2a7c9b655d51211","Name":"セブンイレブン 武蔵野台店","EnglishName":null,"Lat":35.750205993652344,"Lng":139.33448791503906}, ... ] But instead of actually giving me access to the properties of each item in the json array, it literally loops through each character in the array, one by one. What am I doing wrong?
0
[ 2, 483, 1437, 22, 38, 48, 487, 8190, 93, 13, 9, 14322, 5293, 120, 487, 528, 1054, 12044, 60, 800, 3726, 3726, 235, 22, 18, 51, 20624, 645, 45, 5579, 9, 6881, 7522, 5, 1, 287, 6362, 45, 13, 22, 911, 255, 8, 262, 8, 728, 528, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
NSPredicate with joints doesn't work before managedobjectcontext saves the database === I'm having a strange issue with core-data. This predicate always work : NSEntityDescription *entity = [NSEntityDescription entityForName:@"Types" inManagedObjectContext:managedObjectContext]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"nature = %@", @"myNature"]; ... But this one does not until the managedObjectContext saves the database : NSEntityDescription *entity = [NSEntityDescription entityForName:@"Collections" inManagedObjectContext:managedObjectContext]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY types.nature = %@", @"myNature"]; ... (in the model, a Collection references * Types) Do you know why the managedObjectContext can't make a joint until database is saved ? Is there a way to do so ? Thanks a lot
0
[ 2, 13, 2172, 3515, 4673, 1373, 29, 2266, 18, 1437, 22, 38, 170, 115, 1471, 23793, 1126, 11969, 16815, 14, 6018, 800, 3726, 3726, 31, 22, 79, 452, 21, 2578, 1513, 29, 2884, 8, 18768, 9, 48, 28712, 550, 170, 13, 45, 13, 2172, 2291...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 correct to use delegates as properties in C#? === I need to create a class with two properties: 1. LogOutput 2. ExceptionOutput These properties (Actions<>) send a message or a exception depending on the target function. This target function is set via properties. Currently, I have this functional code: public class Output { private Action<string> logOutput; private Action<Exception, string> exceptionOutput; public Action<string> LogOutput { set { this.logOutput = value; } get { return this.logOutput; } } public Action<Exception, string> ExceptionOutput { set { this.exceptionOutput = value; } get { return this.exceptionOutput; } } public Output() : this(null, null) { } public Output(Action<string> logAction, Action<Exception, string> exceptionAction) { this.logOutput = logAction; this.exceptionOutput = exceptionAction; } public void WriteLogMessage(string format, params object[] args) { if (this.logOutput != null) logOutput(string.Format(format, args)); } public void WriteExceptionMessage(Exception ex, string format, params object[] args) { if (this.exceptionOutput != null) exceptionOutput(ex, string.Format(format, args)); } } And this is my form code: private void MainForm_Load(object sender, EventArgs e) { // my Output object Output myOutput = new Output(); // set properties myOutput.ExceptionOutput = this.WriteExceptionMessageToTextBox; myOutput.LogOutput = this.WriteLogMessageToTextBox; // test myOutput.WriteLogMessage("this is my log message to text box"); myOutput.WriteExceptionMessage(new Exception("this is my exception"), "this is my exception message to text box"); } private void WriteLogMessageToTextBox(string message) { // nothing to do here if (this.txtBox.IsDisposed) return; if (this.InvokeRequired) { BeginInvoke(new MethodInvoker(delegate() { WriteLogMessageToTextBox(message); })); } else { // write to text box this.txtBox.AppendText(message + Environment.NewLine); } } private void WriteExceptionMessageToTextBox(Exception ex, string message) { // nothing to do here if (this.txtBox.IsDisposed) return; if (this.InvokeRequired) { BeginInvoke(new MethodInvoker(delegate() { WriteExceptionMessageToTextBox(ex, message); })); } else { string msg = ""; msg += string.Format("Program:{0}", message); msg += string.Format("Message{0}", ex.Message); msg += string.Format("StackTrace:{0}", ex.StackTrace); msg += string.Format("Source:{0}", ex.Source); // write to text box this.txtBox.AppendText(msg + Environment.NewLine); } } It is correct this model? There is another way to do this?
0
[ 2, 25, 32, 4456, 20, 275, 10845, 28, 3704, 19, 272, 5910, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 718, 29, 81, 3704, 45, 137, 9, 6738, 1320, 4881, 172, 9, 5391, 1320, 4881, 158, 3704, 13, 5, 8645, 18, 1, 6, 2660, 21, 280...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
StyleCop Suppressions not Working === I've been trying to suppress a few StyleCop warnings and I'm not having any luck. Here is some informationt that may be helpful. - StyleCop Version: 4.4.0.9 - Warnings to Suppress: SA1600, SA1633, SA1634 ## What I've Tried ## - Local suppression - Project level .StyleCop file suppression - Solution level .StyleCop file suppression - Both of the aforementioned at the same time - Merging of solution level .StyleCop file with project level .StyleCop file - Merging with parent files and removing the project level .StyleCop file - Holding one leg up, one hand behind my head, one eye closed, and rebuilding the solution... At any rate, I'm running out of options to suppress these messages, I hope that somebody can help!
0
[ 2, 1034, 9734, 19594, 18, 52, 638, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 12451, 21, 310, 1034, 9734, 3590, 18, 17, 31, 22, 79, 52, 452, 186, 5419, 9, 235, 25, 109, 676, 38, 30, 123, 44, 15600, 9, 13, 8, 1034, 9734, 615,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
CSS - repeat other then background === I have got set in CSS that some image is background, and when it is over with I want to repeat or I want to continue with other image something like this: `ul.smenu .menu_tlacidlo:hover { background:url(images/sluzby_menu_btn_hover_2.png); background-repeat: "url(images/sluzby_menu_btn_line.png)"; width:142px; height: 22px; }` Is there way to do it?
0
[ 2, 272, 18, 18, 13, 8, 6830, 89, 94, 2395, 800, 3726, 3726, 31, 57, 330, 309, 19, 272, 18, 18, 30, 109, 1961, 25, 2395, 15, 17, 76, 32, 25, 84, 29, 31, 259, 20, 6830, 54, 31, 259, 20, 1816, 29, 89, 1961, 301, 101, 48, 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...
How do i optimize my jquery function === I want to perform some operations on the gridview (asp.net 4.0). So, to achieve this i have written a jquery function which i am calling on pageload but, because this function takes some time for execution my grid performance degrades (IE 8). Can i optimize it someway? $.each($("#divTab2GridInquiries").find("tr").not(":first"), function () { var tr = $(this); var val = tr.find("input[id*='hdnLineStatus']").val(); var btnDelete = tr.find("div[id='divBtnDelete']"); var btnTobeDeleted = tr.find("div[id='divBtnTobeDeleted']"); if (val == "N") { btnDelete.hide(); btnTobeDeleted.hide(); } if (val == "S") { tr.css("background-color", "#99FF99"); tr.find("input").css("background-color", "#99FF99"); btnDelete.show(); btnTobeDeleted.hide(); } if (val == "D") { tr.css("background-color", "#FFFF99"); tr.find("input").css("background-color", "#FFFF99"); btnDelete.show(); btnTobeDeleted.hide(); } //From user rights if ($("input[id*='hdnTab2ShowDelete']").val() != "Y") { btnTobeDeleted.hide(); //btnDelete.show(); } });
2
[ 2, 184, 107, 31, 22864, 51, 487, 8190, 93, 1990, 800, 3726, 3726, 31, 259, 20, 2985, 109, 1311, 27, 14, 7354, 4725, 13, 5, 472, 306, 9, 2328, 268, 9, 387, 6, 9, 86, 15, 20, 4689, 48, 31, 57, 642, 21, 487, 8190, 93, 1990, 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...
Eclipse SWT CompositeScroll to always show vertical bar === Is it possible to ALWAYS show the VerticalBar even though there is nothing to scroll?
0
[ 2, 11652, 8783, 38, 12639, 3862, 8694, 20, 550, 298, 7035, 748, 800, 3726, 3726, 25, 32, 938, 20, 550, 298, 14, 7035, 1850, 166, 362, 80, 25, 626, 20, 12159, 60, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
format edit text as US phone number1(xxx)-xxxx you type in android? === I have been trying to find simple solution to format the phone number as user types . I do not want to use any library for formatting . ANy ideas on how to do it ?
0
[ 2, 2595, 9392, 1854, 28, 182, 1132, 234, 165, 5, 13290, 6, 8, 396, 13290, 42, 1001, 19, 13005, 60, 800, 3726, 3726, 31, 57, 74, 749, 20, 477, 1935, 4295, 20, 2595, 14, 1132, 234, 28, 4155, 2551, 13, 9, 31, 107, 52, 259, 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...
Hot to get all indexed field names EmbeddedSolrServer? === I would like to get all the dynamic field names in an index file. Is there a way to do it using solr java api? Thanks, Rathi
0
[ 2, 1047, 20, 164, 65, 4348, 69, 575, 1817, 12138, 5594, 139, 10321, 106, 60, 800, 3726, 3726, 31, 83, 101, 20, 164, 65, 14, 7782, 575, 1817, 19, 40, 4348, 3893, 9, 25, 80, 21, 161, 20, 107, 32, 568, 7176, 139, 8247, 21, 2159, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
key for download bucket in amazon s3 using java === public class downloads3 { private static String bucketName = "s3-upload-sdk-sample-akiaj6ufcgzvw7yukypa"; **private static String key = "__________________________________";** public static void main(String[] args) throws IOException { AmazonS3 s3Client = new AmazonS3Client(new PropertiesCredentials( downloads3.class.getResourceAsStream( "AwsCredentials.properties"))); try { System.out.println("Downloading an object"); S3Object s3object = s3Client.getObject(new GetObjectRequest( bucketName, key)); System.out.println("Content-Type: " + s3object.getObjectMetadata().getContentType()); displayTextInputStream(s3object.getObjectContent()); // Get a range of bytes from an object. GetObjectRequest rangeObjectRequest = new GetObjectRequest( bucketName, key); rangeObjectRequest.setRange(0, 10); S3Object objectPortion = s3Client.getObject(rangeObjectRequest); System.out.println("Printing bytes retrieved."); displayTextInputStream(objectPortion.getObjectContent()); } catch (AmazonServiceException ase) { System.out.println("Caught an AmazonServiceException, which" + " means your request made it " + "to Amazon S3, but was rejected with an error response" + " for some reason."); System.out.println("Error Message: " + ase.getMessage()); System.out.println("HTTP Status Code: " + ase.getStatusCode()); System.out.println("AWS Error Code: " + ase.getErrorCode()); System.out.println("Error Type: " + ase.getErrorType()); System.out.println("Request ID: " + ase.getRequestId()); } catch (AmazonClientException ace) { System.out.println("Caught an AmazonClientException, which means"+ " the client encountered " + "an internal error while trying to " + "communicate with S3, " + "such as not being able to access the network."); System.out.println("Error Message: " + ace.getMessage()); } } private static void displayTextInputStream(InputStream input) throws IOException { // Read one text line at a time and display. BufferedReader reader = new BufferedReader(new InputStreamReader(input)); while (true) { String line = reader.readLine(); if (line == null) break; System.out.println(" " + line); } System.out.println(); } } I'm trying to download objects from amazon s3 bucket using java. but it doesn't seemed to work on and keep giving me error as of below. what is the correct key to be input? access key? or secret key? Downloading an object Caught an AmazonServiceException, which means your request made it to Amazon S3, but was rejected with an error response for some reason. Error Message: The specified key does not exist. HTTP Status Code: 404 AWS Error Code: NoSuchKey Error Type: Client Request ID: F9548FC068DB1646 needs some advice on this. thankyou!
0
[ 2, 1246, 26, 7121, 12433, 19, 8059, 13, 18, 240, 568, 8247, 800, 3726, 3726, 317, 718, 7121, 18, 240, 13, 1, 932, 12038, 3724, 12433, 7259, 800, 13, 7, 18, 240, 8, 576, 8294, 8, 18, 43, 197, 8, 6101, 5106, 8, 4713, 6881, 379, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Enabling front-end comment editing in Wordpress === I'm working with a rather unconventional use case for Wordpress. I've created a site available only to registered users, and after they've submitted a comment to a post, the form to submit a new comment disappears. It's replaced by a textarea displaying the content of their comment (and only their comment - not the comments of others). I cannot figure out how to actually allow the user to edit their comment using the textarea field. I've spent hours searching Google, the Wordpress documentation, and Stack Exchange with little luck. This is the closest I've come... <form name="post" action="<?php echo get_option('siteurl'); ?>/wp-admin/comment.php?action=editcomment&c=<?php comment_ID() ?>" method="post" id="post"> <textarea><?php comment_text() ?></textarea> <input class="btn" type="submit" name="submit" value="Update" /> </form> Unfortunately, that just redirects you to the backend editor for the comment. I'd like to process the update entirely on the front end. Anyone have any insights on where to start?
0
[ 2, 13168, 431, 8, 2451, 6484, 9510, 19, 833, 5890, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 864, 25769, 275, 610, 26, 833, 5890, 9, 31, 22, 195, 679, 21, 689, 904, 104, 20, 3801, 3878, 15, 17, 75, 59, 22, 195, 7368, 21, 648...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 change the color of UITableViewCell selected view? === How to change the gray color when cell been selected? ![enter image description here][1] [1]: http://i.stack.imgur.com/VKphG.jpg
0
[ 2, 184, 20, 753, 14, 1665, 16, 13, 11193, 579, 4725, 9725, 1704, 1418, 60, 800, 3726, 3726, 184, 20, 753, 14, 2030, 1665, 76, 1667, 74, 1704, 60, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 636, 165, 500, 45, 777...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0...
Get second last key value .net C# === I need to be able to get out a value from a string. Essentially I always have something like: "1_1,5,8215,886,1142,1,7,64" I need to know what the second last number is, i.e. the 7. Note that the 7 can be 1 or more digits.... Thanks in advance! C#, .net 3.5
0
[ 2, 164, 153, 236, 1246, 1923, 13, 9, 2328, 272, 5910, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 164, 70, 21, 1923, 37, 21, 3724, 9, 7398, 31, 550, 57, 301, 101, 45, 13, 7, 165, 1, 165, 15, 264, 15, 4075, 1193, 15, 3020, 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...
Intercepts all requests that come from Flex client (Blazeds) === I want to authenticate user requests that come from blazeds client like web applications. But I have no idea how blazeds handle the client sessions. So I thought to intercepts all requests and check whether the authenticated user is in the HttpSession. Can anyone tell me this is OK or not and are there any other ways to do it? Thanks!
0
[ 2, 18324, 18, 65, 12279, 30, 340, 37, 14409, 6819, 13, 5, 26218, 43, 18, 6, 800, 3726, 3726, 31, 259, 20, 14351, 1373, 4155, 12279, 30, 340, 37, 9849, 43, 18, 6819, 101, 2741, 3767, 9, 47, 31, 57, 90, 882, 184, 9849, 43, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Programatically mute audio out === May be its not allowed to mute whole iphone (as not approved by app store), but is there a way to programmatically control (preferably mute) audio out from my application which is transmitting audio over voip?
0
[ 2, 625, 721, 8438, 20562, 4023, 70, 800, 3726, 3726, 123, 44, 82, 52, 1159, 20, 20562, 979, 21024, 13, 5, 472, 52, 3469, 34, 4865, 1718, 6, 15, 47, 25, 80, 21, 161, 20, 625, 6732, 1326, 569, 13, 5, 3515, 2407, 4801, 20562, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0...
Getting locale format for Windows === how can I get correct locale's format for Windows in Delphi ? I trying to do next FormatSettings := TFormatSettings.Create(LCID); but this doesn't work fine if set shortdate format as example **'07-13\2012'**. and variable will be equal **`FormatSettings = 'MM/dd\yyyy' ?????`**
0
[ 2, 1017, 375, 62, 2595, 26, 1936, 800, 3726, 3726, 184, 92, 31, 164, 4456, 375, 62, 22, 18, 2595, 26, 1936, 19, 23030, 13, 60, 31, 749, 20, 107, 328, 2595, 19831, 18, 13, 45, 3726, 13, 38, 23588, 19831, 18, 9, 6037, 1373, 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...
View Layout_Margin doesn't work inside the FrameLayout === I have a `frameLayout` and inside this layout there are several Views, and I want to margin each view from the top to a specific distance . I have tried the following code, but it seems that it doesn't work FrameLayout lytBoard = (FrameLayout) findViewById(R.id.lytBoard); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(width, height); params.setMargins((int)board.cells.get(i).x1, (int)board.cells.get(i).y1, 0, 0); CellView cv = new CellView(getApplicationContext()); cv.setLayoutParams(params); lytBoard.addView(cv); Cell View class: public class CellView extends View { public CellView(Context context) { super(context); // TODO Auto-generated constructor stub } public void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ super.onMeasure(widthMeasureSpec, heightMeasureSpec); int size = Math.min(getMeasuredWidth(), getMeasuredHeight()); setMeasuredDimension(size, size); } }
0
[ 2, 1418, 9106, 1, 1615, 5831, 1437, 22, 38, 170, 572, 14, 3523, 4414, 1320, 800, 3726, 3726, 31, 57, 21, 13, 1, 8361, 4414, 1320, 1, 17, 572, 48, 9106, 80, 50, 238, 4146, 15, 17, 31, 259, 20, 5440, 206, 1418, 37, 14, 371, 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...
storing objects in ResourceSelectionHistory of FilteredItemsSelectionDialog istead of string === I have been following the tutorial here. In the advanced tutorial ResourceSelectionHistory stores the selected items and the retrieves it when the dialog is relaunched. I wanted the ResourceSelectionHistory to store objects and not just strings, is there i way to do that. I also want to open the items from workbench history. Thanks in advance c yah!
0
[ 2, 25615, 3916, 19, 2566, 5033, 16853, 16, 25090, 2119, 79, 18, 18, 5033, 4286, 5567, 31, 6849, 16, 3724, 800, 3726, 3726, 31, 57, 74, 249, 14, 29724, 235, 9, 19, 14, 2255, 29724, 2566, 5033, 16853, 4134, 14, 1704, 3755, 17, 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...
.Net Bing Map soap service limit === Do you know, if the bing map soap service using has daily limit? For example daily query is 1.000 I am using route service for calculate ways and distances between cities.
0
[ 2, 13, 9, 2328, 18080, 2942, 6447, 365, 4496, 800, 3726, 3726, 107, 42, 143, 15, 100, 14, 18080, 2942, 6447, 365, 568, 63, 1954, 4496, 60, 26, 823, 1954, 25597, 25, 137, 9, 3993, 31, 589, 568, 858, 365, 26, 18469, 2847, 17, 1573...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to set ssl in play 2.0 application ? === Hi i am working on a play 2.0 application . I want to enable ssl for that application to make https.I followed this documentation https://github.com/playframework/Play20/pull/339 , but not working .How to make https.Can any one tell me Please ? Thank you in Advance.
0
[ 2, 184, 20, 309, 13, 18, 18, 255, 19, 418, 172, 9, 387, 3010, 13, 60, 800, 3726, 3726, 4148, 31, 589, 638, 27, 21, 418, 172, 9, 387, 3010, 13, 9, 31, 259, 20, 9240, 13, 18, 18, 255, 26, 30, 3010, 20, 233, 7775, 18, 9, 49...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
incorrect syntax === can some one help me with this sql statement, im getting an error incorrect syntax near the keyword WHERE SqlCommand scInsertCostSpilt = new SqlCommand("INSERT INTO [ASSETS_CC] ([DEPT], [CC], [PER_CENT]) WHERE ASSET_NO] = @AssetNumber)" + "Values (@AssetNumber, @Dept, @CC, @PerCent)" , DataAccess.AssetConnection);
0
[ 2, 18867, 22649, 800, 3726, 3726, 92, 109, 53, 448, 55, 29, 48, 4444, 255, 3331, 15, 797, 1017, 40, 7019, 18867, 22649, 424, 14, 1246, 9587, 113, 4444, 255, 16239, 13, 18, 4484, 18, 6767, 15155, 18, 10091, 38, 800, 78, 4444, 255, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Making dynamic line chart using jfree chart in java === how can i create dynamic line chart using jFree chart in java which is show data of 2 hours before and also provide a blank space where data show for 2 hours later from current time.For example suppose current time is 4pm ,so the chart display data from 2pm to 6pm.Here 2pm to 4pm the chart show a line and 4pm to 6pm provide a blank space which is fill time to time when the graph is moving that mean the tail of this graph is starting from middle and move right. similar like stock market chart.
0
[ 2, 544, 7782, 293, 1795, 568, 487, 4639, 1795, 19, 8247, 800, 3726, 3726, 184, 92, 31, 1600, 7782, 293, 1795, 568, 487, 4639, 1795, 19, 8247, 56, 25, 298, 1054, 16, 172, 974, 115, 17, 67, 1181, 21, 6463, 726, 113, 1054, 298, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-NDK: undefined reference to libssl function === I am very new to Android, compiling, and linking in general. I do not know which details are important with my problem, so I will just tell you everything. If you see anything strange or incorrect, please let me know. I built the libcrypto.so and libssl.so libraries in the Android-NDK. I wrote native code which uses a function in openssl.so (and openssl.so uses functions in libssl.so). The code compiles, however I receive an "undefined reference" error when linking: ./obj/local/armeabi/objs/pki_send/pki_send.o: In function `main': /home/android/nativeserver/jni/pki_send.c:27: undefined reference to `RSA_generate_key' collect2: ld returned 1 exit status make: *** [obj/local/armeabi/pki_send] Error 1 I searched on Google and found a person with the same problem as me, she is even calling the same function (except this person is not building for Android): http://ubuntuforums.org/showthread.php?t=1081028. I'll quote the part of her post here that is relevant to my problem: > When I remove an argument [to the function which causes the "undefined reference"] the compiler says that there's too few arguments and when I add an argument the compiler says there's too many arguments, so it seems like there is "some" kind of reference to the correct function. There's some linking going on wrongly perhaps? I noticed this same behaviour. She solved her problem by compiling with the -lssl setting, which tells the compiler to use the openssl library. For me to do this, I changed the module in the Android.mk file from this: LOCAL_LDLIBS += -ldl to this: LOCAL_LDLIBS += -lssl -lcrypto -ldl I included -lcrypto just to be safe, since libssl depends on libcrypto. Now when I run ndk-build, I receive the following error: /home/android/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lssl collect2: ld returned 1 exit status make: *** [obj/local/armeabi/pki_send] Error 1 This error shows that "ld" cannot find libssl.so. I have both libcrypto.so and libssl.so in my jni directory. I ideally wanted to find a way to add the jni directory to the search path of "ld", but I could not figure this out. I attempted to solve this problem by adding libssl.so and libcrypto.so to the following directory: /android-ndk-r8/platforms/android-8/arch-arm/usr/lib (I believe that "ld" searches here for libraries). Once I did this, I ran ndk-build again and received an "undefined reference" error: ./obj/local/armeabi/objs/pki_send/pki_send.o: In function `main': /home/android/nativeserver/jni/pki_send.c:27: undefined reference to `RSA_generate_key' collect2: ld returned 1 exit status make: *** [obj/local/armeabi/pki_send] Error 1 From here, I am clueless as to how to proceed. Just in case it is important, here is the code in my Android.mk file: LOCAL_PATH := $(call my-dir) APP_PLATFORM := android-8 include $(CLEAR_VARS) LOCAL_MODULE := crypto LOCAL_SRC_FILES := libcrypto.so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../include/ include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := ssl LOCAL_SRC_FILES := libssl.so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../include/ include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_SRC_FILES := pki_send.c LOCAL_MODULE := pki_send LOCAL_SHARED_LIBRARIES := ssl crypto LOCAL_LDLIBS += -lssl -lcrypto -ldl LOCAL_MODULE_TAGS := optional include $(BUILD_EXECUTABLE)
0
[ 2, 13005, 8, 706, 197, 45, 367, 13439, 2801, 20, 13, 8326, 18, 18, 255, 1990, 800, 3726, 3726, 31, 589, 253, 78, 20, 13005, 15, 24378, 15, 17, 12585, 19, 297, 9, 31, 107, 52, 143, 56, 3289, 50, 681, 29, 51, 1448, 15, 86, 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...
Widgets crashing for some users === I sell a collection of widgets on the Play Store, and this includes a clock and battery widget, which use AlarmManagers to update themselves occasionally. A customer emailed me today saying that my widgets were crashing, and he submitted the error log. He isn't the first person to have submitted because of this error, and it always comes from the Clock or the Battery widget. It looks like this: java.lang.RuntimeException: Unable to start receiver com.nickavv.cleanwidgets.ClockWidgetSmall: java.lang.NullPointerException at android.app.ActivityThread.handleReceiver(ActivityThread.java:2419) at android.app.ActivityThread.access$1500(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1322) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:5008) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at android.app.PendingIntent.getActivity(PendingIntent.java:206) at com.nickavv.cleanwidgets.ClockWidgetSmall.updateAppWidget(ClockWidgetSmall.java:40) at com.nickavv.cleanwidgets.ClockWidgetSmall.onReceive(ClockWidgetSmall.java:296) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2408) ... 10 more He's the only person to have contacted me about it though. I know that he's running the stock Android 4.x Sense 4.0 launcher, I don't know what the small subset of other users with this issue are running. The line of code in question at ClockWidgetSmall.java:40 is just a PendingIntent declaration: PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); I don't really understand what's wrong, and it's hard for me to fix something like this when I'm not seeing the same behavior on any of my test devices (one a CM7 Android 2.3 phone, and an Android 4.0 tablet, and a Nexus 7 with 4.1) Has anybody seen something like this before, and if so, how did you fix it?
0
[ 2, 4807, 43, 3060, 18, 14604, 26, 109, 3878, 800, 3726, 3726, 31, 3344, 21, 1206, 16, 4807, 43, 3060, 18, 27, 14, 418, 1718, 15, 17, 48, 1103, 21, 4229, 17, 5044, 4807, 43, 3060, 15, 56, 275, 6490, 22256, 18, 20, 11100, 1366, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Intercepting link with intent-filter doesn't work === I want to intercept link so it will open my app, just like opening maps.google.com opens Maps app. I have read other thread in SO about this but I don't know why I can't get this working. I have this in my AndroidManifest <activity android:name="com.my_app.my_app.AppActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" android:host="flickr.com" /> <data android:scheme="http" android:host="www.flickr.com" /> </intent-filter> </activity> I tested with real device, using Dolphin browser. I entered www.flickr.com in address bar and it doesn't show any selection for selecting apps. Is there something I missing here?
0
[ 2, 18324, 68, 3508, 29, 6936, 8, 11924, 815, 1437, 22, 38, 170, 800, 3726, 3726, 31, 259, 20, 18324, 3508, 86, 32, 129, 368, 51, 4865, 15, 114, 101, 1214, 6867, 9, 16111, 4875, 9, 960, 8965, 6867, 4865, 9, 31, 57, 1302, 89, 93...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a functions variables with an object's values === Normally I would set a functions variables with something like this: var width = null; var height = null; if(options) { if(options.width) width = options.width; if(options.height) height = options.height; } Is there a way to simplify this with something like: var width = null; var height = null; if(options) { for(var val in options) { val = options[val]; } } In this simple example it doesn't seem like a big benefit, but in a situation where I have a multitude of variables to set with values from a single object (in such a way that say...ajax does it), it would be much easier to just loop the object and do it that way.
0
[ 2, 309, 21, 3719, 12157, 29, 40, 3095, 22, 18, 4070, 800, 3726, 3726, 4147, 31, 83, 309, 21, 3719, 12157, 29, 301, 101, 48, 45, 4033, 9456, 800, 16203, 73, 4033, 2947, 800, 16203, 73, 100, 5, 25458, 4710, 6, 13, 1, 100, 5, 254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 it that when i close the program and reload it all my user inputed button names have gone? === Hi me again I've come across another problem following my last 2 questions. http://stackoverflow.com/q/11690108/1557944 and http://stackoverflow.com/q/11691017/1557944. What happens is when label4 is admin when you click the button an input box appears asking for the button name and if label4 is anything else then it adds the text of the button to different boxes. This all works fine the problem I'm having is when i close the program and then re open it all the buttons text has been removed. So in short what im asking is how to i make it save to the button so that if i close the program and re open it the text stays on all the buttons. The Code i have for the button is. Dim Button As Button = DirectCast(sender, Button) If Label4.Text = "Admin" Then With DirectCast(sender, Button) .Text = InputBox("Button Name", "Button Name", .Text) End With Else Me.TransactionBindingSource.AddNew() Product_NameTextBox.Text = Button.Text Try Me.ProductTableAdapter.FillByProductName(Me.Database1DataSet.Product, Product_NameTextBox.Text) Catch ex As System.Exception System.Windows.Forms.MessageBox.Show(ex.Message) End Try ProductTextBox.Text = Button.Text GroupTextBox.Text = GroupTextBox1.Text AmountTextBox.Text = AmountTextBox1.Text PriceTextBox.Text = PriceTextBox1.Text TimeTextBox.Text = TimeOfDay DateTextBox.Text = DateString Me.Validate() Me.TransactionBindingSource.EndEdit() Me.TransactionTableAdapter.Update(Me.Database1DataSet) Timer2.Enabled = True TransNameLB.Items.Add(Button.Text) TransPriceLB.Items.Add(PriceTextBox.Text) Dim sum As Double For x As Integer = 0 To TransPriceLB.Items.Count - 1 sum += Val(TransPriceLB.Items.Item(x).ToString) Next TextBox1.Text = sum.ToString QTYDrinksTB.Text = TransNameLB.Items.Count End If Thanking you in advance for any help provided Craig
0
[ 2, 483, 25, 32, 30, 76, 31, 543, 14, 625, 17, 27339, 32, 65, 51, 4155, 6367, 69, 5167, 1817, 57, 1042, 60, 800, 3726, 3726, 4148, 55, 188, 31, 22, 195, 340, 464, 226, 1448, 249, 51, 236, 172, 2346, 9, 7775, 6903, 25325, 2549, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Taking MSSQL query into another MSSQL query and find matches === So I have the following: SELECT data, encrypteddata, CONVERT(varchar, DecryptByKey(encrypteddata)) AS 'decrypteddata' FROM table Given the key it outputs the original data field, encrypted data field and decrypted data field as a temp field. All good. What I have been trying to do is get that result, and just make another AS field and say "Match" with true or false if it is a match or not. I've tried SELECT data, encrypteddata, CONVERT(varchar, DecryptByKey(encrypteddata)) AS 'decrypteddata' COUNT(distinct(decrypteddata)) FROM table WHERE COUNT (distinct(decrypteddata)) >1 group by data This just gives me an error at the first COUNT about syntax. Does anyone have a suggestion how I could do this?
0
[ 2, 741, 4235, 18, 22402, 25597, 77, 226, 4235, 18, 22402, 25597, 17, 477, 1717, 800, 3726, 3726, 86, 31, 57, 14, 249, 45, 5407, 1054, 15, 29403, 18768, 15, 8406, 5, 3311, 5433, 15, 121, 11435, 779, 4237, 5, 219, 11435, 69, 18768, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
AVAudioPlayer eliminating one second pause between sound files === I am using multiple instances of `AVAudioPlayer` to play multiple sound files in a succession. I am noticing that there is a roughly one second pause when two different sound files are played. Is it possible to eliminate this one second pause? I call `[myPlayer prepareToPlay]` for each player ahead of time already.
0
[ 2, 13656, 6785, 111, 14049, 17653, 53, 153, 6911, 128, 646, 6488, 800, 3726, 3726, 31, 589, 568, 1886, 13946, 16, 13, 1, 4961, 6785, 111, 14049, 1, 20, 418, 1886, 646, 6488, 19, 21, 7676, 9, 31, 589, 18130, 30, 80, 25, 21, 4457,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 create a virtual io device in Linux that proxies data to real device? === I have an interesting problem. I am working on an embedded box with multiple instances of Linux running each on an ARM processor. They are connected over internal 1GBps network. I have a serial port device node attached to processor A (Lets say Linux-A running on it). I have a program running on processor B (Lets say on Linux-B) access the serial port device as if it is attached to Linux-B locally. <br> My program invokes term i/o type api calls on device node to control tty echo, character mode input. What I am wondering is if there is a way to create a virtual serial device that is available on Linux-B somehow talking to real serial device on Linux-A over internal network.<br> I am thinking something along the lines of:<br> Linux-B has /dev/ttyvirtual. Anything that gets written to it gets transported over network socket to Linux-A serialserver. The serial server exrcises the api calls on real device lets say /dev/ttys0. Any data waiting on ttyps0 gets transported back to /dev/ttyvirtual. What are all the things involved to get this done fast? Thanks<br> Videoguy
0
[ 2, 184, 1600, 21, 6599, 13, 1963, 3646, 19, 13024, 30, 895, 396, 1596, 1054, 20, 683, 3646, 60, 800, 3726, 3726, 31, 57, 40, 4883, 1448, 9, 31, 589, 638, 27, 40, 12138, 1649, 29, 1886, 13946, 16, 13024, 946, 206, 27, 40, 813, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Problems with SPAsyncLoading waitUntilLoaded === I have issues with loading playlists using the SPAsyncLoading class. Sometimes the call does not return at all, sometimes after a long time. I use the following code to load a playlist from a url: NSString *playlistUrl = [Config instance].playlistUrl; [SPPlaylist playlistWithPlaylistURL:[NSURL URLWithString:playlistUrl] inSession:[SPSession sharedSession] callback:^(SPPlaylist *pl) { playlist = pl; playlist.delegate = self; [SPAsyncLoading waitUntilLoaded:playlist then:^(NSArray *array) { NSLog(@"playlist loaded"); }]; }]; I use the following code to load all of the users playlists: SPPlaylistContainer *userPlayLists = [[SPSession sharedSession] userPlaylists]; [SPAsyncLoading waitUntilLoaded:userPlayLists then:^(NSArray *result) { SPPlaylistContainer *userPlayLists = (SPPlaylistContainer*) [result objectAtIndex:0]; [SPAsyncLoading waitUntilLoaded:userPlayLists.playlists then:^(NSArray *result) { NSLog(@"playlists loaded"); }]; }]; In case of loading all of the users playlists sometimes 0 playlists are loaded, sometimes all playlists are available but the last waitUntilLoaded won't return. Is there something wrong with my code?
0
[ 2, 1716, 29, 6954, 9507, 150, 16866, 1760, 12772, 22546, 800, 3726, 3726, 31, 57, 1549, 29, 12797, 27063, 18, 568, 14, 6954, 9507, 150, 16866, 718, 9, 1030, 14, 645, 630, 52, 788, 35, 65, 15, 1030, 75, 21, 175, 85, 9, 31, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Changing From Informix Syntax to Oracle === So I have been tasked with converting some scripts previously written in perl referencing an Informix database to be compatible with a new Oracle database. I thought I would start out by going through the individual scripts and looking for function calls that may vary syntactically between Informix and Oracle. And I had been able to find the Oracle equivalent for most of the function calls I came across, however this one has me a little stumped: where f.writetime > current - interval(xxx) day to day I was just wondering if anyone with Informix/Oracle experience knew exactly what that function meant, particularly the <code>(xxx)</code> part and what the oracle equivalent might be?
0
[ 2, 4226, 37, 10361, 4028, 22649, 20, 15759, 800, 3726, 3726, 86, 31, 57, 74, 14605, 29, 19583, 109, 17505, 1343, 642, 19, 416, 255, 13, 29254, 40, 10361, 4028, 6018, 20, 44, 14961, 29, 21, 78, 15759, 6018, 9, 31, 289, 31, 83, 79...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
iPhone Losing Cookie === I'm writing a webapp in PHP that remembers if a user is logged in. It sets a cookie and if that cookie is present and validated, the user doesn't need to login. It works properly from a desktop, but on the iPhone, as soon as I close the tab and relaunch it, the cookie is gone. Is there something I'm missing? I can't see why cookies would be removed when tabs are closed. It would defeat the purpose of many of them.
0
[ 2, 21024, 2281, 19980, 800, 3726, 3726, 31, 22, 79, 1174, 21, 2741, 7753, 19, 13, 26120, 30, 1518, 18, 100, 21, 4155, 25, 13, 19287, 19, 9, 32, 3415, 21, 19980, 17, 100, 30, 19980, 25, 734, 17, 7394, 1669, 15, 14, 4155, 1437, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
GWT RequestFactory loading gif === I wanna know when RequestFactory start, and show a loading gif, then on finish hide this. But RequestFactory can send multiple changes in one request so. How can I know when started and finished the request?
0
[ 2, 14094, 38, 3772, 17455, 93, 12797, 489, 821, 800, 3726, 3726, 31, 11024, 143, 76, 3772, 17455, 93, 799, 15, 17, 298, 21, 12797, 489, 821, 15, 94, 27, 2106, 3077, 48, 9, 47, 3772, 17455, 93, 92, 2660, 1886, 1693, 19, 53, 3772,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0...
Compare multiple CSV files with Python === I am looking to compare multiple CSV files with Python, and output a report. The number of CSV files to compare will vary, so I am having it pull a list from a directory. Each CSV has 2 columns: the first being an area code and exchange, the second being a price. e.g. 1201007,0.006 1201032,0.0119 1201040,0.0106 1201200,0.0052 1201201,0.0345 The files will not all contain the same area codes and exchanges, so rather than a line by line comparison, I need to use the first field as the key. I then need to generate a report that says: file1 had 200 mismatches to file2, 371 lower prices than file2, and 562 higher prices than file2. I need to generate this to compare each file to each other, so this step would be repeated against file3, file4...., and then file2 against files3, etc. I would consider myself a relative noob to Python. Below is the code I have so far which just grabs the files in the directory and prints prices from all files with a total tally. import csv import os count = 0 #dir containing CSV files csvdir="tariff_compare" dirList=os.listdir(csvdir) #index all files for later use for idx, fname in enumerate(dirList): print fname dic_read = csv.reader(open(fname)) for row in dic_read: key = row[0] price = row[1] print price count += 1 print count
0
[ 2, 11590, 1886, 272, 18, 710, 6488, 29, 20059, 800, 3726, 3726, 31, 589, 699, 20, 11590, 1886, 272, 18, 710, 6488, 29, 20059, 15, 17, 5196, 21, 1330, 9, 14, 234, 16, 272, 18, 710, 6488, 20, 11590, 129, 7392, 15, 86, 31, 589, 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...
C++: Interface vtable === Do interfaces (polymorphic class solely with pure virtual functions) have a vtable? Since interfaces do not implement a polymorphic function themself and cant be directly constructed there would be no need for the linker to place a vtable. Is that so? Im especially concerned about the MSVC compiler.
0
[ 2, 272, 20512, 45, 6573, 566, 5924, 800, 3726, 3726, 107, 6573, 18, 13, 5, 17108, 12498, 596, 718, 9748, 29, 4267, 6599, 3719, 6, 57, 21, 566, 5924, 60, 179, 6573, 18, 107, 52, 8713, 21, 3446, 12498, 596, 1990, 105, 8411, 17, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Twitter Follow a page Query === I want to know that how to follow a page on Twitter using android application?? Thankyou in advance.
0
[ 2, 10623, 1740, 21, 2478, 25597, 800, 3726, 3726, 31, 259, 20, 143, 30, 184, 20, 1740, 21, 2478, 27, 10623, 568, 13005, 3010, 60, 60, 3531, 245, 19, 3612, 9, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
i am creating an mp3 streaming app using lastfm api need help in parsing json webservice === here is my webxervice url http://ws.audioscrobbler.com/2.0/?method=artist.getSimilar&api_key=xxx... and want to parse the following json webservice http://www.last.fm/api/rest please help me to parse it and display in listview. thanks in advance.
0
[ 2, 31, 589, 2936, 40, 4628, 240, 11920, 4865, 568, 236, 5223, 21, 2159, 376, 448, 19, 2017, 18, 68, 487, 528, 2741, 11449, 800, 3726, 3726, 235, 25, 51, 2741, 396, 106, 18507, 287, 6362, 7775, 6903, 10268, 9, 7150, 7760, 7638, 137...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ComboBox is not updating === The Binding on the ComboBox Categories is not updating when a Division is selected. When a division is selected the ProjectCategories Property does get populated with two results, but the view does not update. If I send ProjectCategories as a ref through to ProjectCategoriesGetByDivisionId() then the binding does update. I don't want to pass references to my model and data classes. How can I have the binding update without changing my model and data classes? Here is the Divisions ComboBox that changes the value of the binding for the Categories ComboBox. <ComboBox x:Name="Divisions" ItemsSource="{Binding Divisions}" DisplayMemberPath="Name" SelectedValuePath="DivisionId"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <cmd:EventToCommand Command="{Binding DivisionChanged}" CommandParameter="{Binding ElementName=Divisions, Path=SelectedItem}" /> </i:EventTrigger> </i:Interaction.Triggers> </ComboBox> The ComboBox that isn't updating <ComboBox x:Name="Categories" ItemsSource="{Binding Categories}" DisplayMemberPath="Name" SelectedValuePath="CategoryId" /> The method that gets fired when the Divisions SelectedChanged event is fired. private void DivisionChanged(Division d) { ProjectCategories = ProjectCategory.GetByDivisionId(d.DivisionId); } ViewModel Property the ComboBox is binding to public ObservableCollection<ProjectCategory> ProjectCategories { get { return projectCategories; } set { projectCategories = value; if (base.PropertyChangedHandler != null) base.PropertyChangedHandler(this, new PropertyChangedEventArgs("ProjectCategories")); } } Model Method that is called public static ObservableCollection<ProjectCategory> GetByDivisionId(int divisionId) { return ProjectData.ProjectCategoriesGetByDivisionId(divisionId); } I think the rest is self explanitory. public static ObservableCollection<ProjectCategory> ProjectCategoriesGetByDivisionId(int divisionId) { ObservableCollection<ProjectCategory> projectCategory = new ObservableCollection<ProjectCategory>(); SqlConnection conn = null; try { conn = new SqlConnection(connectionString); SqlCommand cmd = new SqlCommand("TRK_ProjectCategory_GetByDivisionId", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@DivisionId", SqlDbType.Int).Value = divisionId; conn.Open(); SqlDataReader sdr = cmd.ExecuteReader(); while (sdr.Read()) projectCategory.Add(ObjectConstructors.ProjectCategoryConstructor(sdr)); } catch (Exception ex) { ErrorHandler.EmailLog("MineralsData", "public static ObservableCollection<ProjectCategory> ProjectCategoriesGetByDivisionId(int divisionId)", ex.ToString(), string.Empty); throw ex; } finally { if (conn != null) conn.Close(); conn = null; } return projectCategory; } public static ProjectCategory ProjectCategoryConstructor(SqlDataReader dr) { ProjectCategory ec = new ProjectCategory(); ec.CategoryId = dr["CategoryId"].SDR_GetInt(); ec.Name = dr["Name"].SDR_GetString(); ec.Description = dr["Description"].SDR_GetString(); ec.LastModified = dr["LastModified"].SDR_GetDateTime(); ec.ModifiedBy = dr["ModifiedBy"].SDR_GetString(); return ec; } Thanks for any help.
0
[ 2, 22621, 5309, 25, 52, 71, 43, 1880, 800, 3726, 3726, 14, 8728, 27, 14, 22621, 5309, 6422, 25, 52, 71, 43, 1880, 76, 21, 460, 25, 1704, 9, 76, 21, 460, 25, 1704, 14, 669, 14375, 1596, 1354, 630, 164, 11111, 29, 81, 1736, 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...
Search bar and search display controller with segue === Never called when a search table cell is tapped - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"Show Detail"]) { Player *player = [self.fetchedResultsController objectAtIndexPath:[self.tableView indexPathForSelectedRow]]; [segue.destinationViewController setPlayer:player]; } } **This filters the list correctly, but the prepareForSegue is never called when a search table cell is tapped.** - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Player Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } if (tableView == self.tableView) { // normal table view population Player *player = [self.fetchedResultsController objectAtIndexPath:indexPath]; cell.textLabel.text = [[NSString alloc] initWithFormat:@"#%@ %@ %@", player.number, player.firstName, player.lastName]; cell.detailTextLabel.text = [[NSString alloc] initWithFormat:@"%@", player.position]; [cell.imageView setImageWithURL:[NSURL URLWithString:player.photo] placeholderImage:[UIImage imageNamed:@"playerplaceholder.jpg"]]; } else if(tableView == self.searchDisplayController.searchResultsTableView) { // search view population Player *player = [self.filteredFetchedResultsController objectAtIndexPath:indexPath]; cell.textLabel.text = [[NSString alloc] initWithFormat:@"#%@ %@ %@", player.number, player.firstName, player.lastName]; cell.detailTextLabel.text = [[NSString alloc] initWithFormat:@"%@", player.position]; [cell.imageView setImageWithURL:[NSURL URLWithString:player.photo] placeholderImage:[UIImage imageNamed:@"playerplaceholder.jpg"]]; } return cell; }
0
[ 2, 2122, 748, 17, 2122, 3042, 9919, 29, 1353, 3982, 800, 3726, 3726, 243, 227, 76, 21, 2122, 859, 1667, 25, 11218, 13, 8, 13, 5, 2625, 1340, 6, 3515, 1060, 99, 1106, 870, 3982, 45, 5, 5661, 4416, 2806, 870, 3982, 1637, 6, 870, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Know if GKAchievement is Completed? === i have build an objectives for my game and everything works just fine accept the part of making the objectives not be called any more after any of them is completed. i know there is a Property of the `GKAchievement` Class "completed" wich is a boolean that returns yes when the Achievement is 100 precent done. here is the method that called when a Achievement is 100 precent done it passes id wich is the Achievement identifier and report the acheeee : - (void)AchivmentDidAchive:(id)Achivment{ NSString *identifier = Achivment; NSLog(@"%@",identifier); self.achivment = [[GKAchievement alloc]initWithIdentifier:identifier]; self.achivment.showsCompletionBanner = YES; if (!self.achivment.completed) { self.achivment.percentComplete = 100; NSLog(@"Reproting!"); [self.achivment reportAchievementWithCompletionHandler: ^(NSError *error) { }]; } else { NSLog(@"Achivment Completed!"); } } what i am trying to do here is to set the precent completed to 100 and report it so in the next time ie want get called again. but it always works... any better idea for how to handle this?
0
[ 2, 184, 92, 31, 143, 100, 489, 657, 15874, 195, 1130, 25, 1066, 60, 800, 3726, 3726, 31, 57, 1895, 40, 12471, 26, 51, 250, 17, 796, 693, 114, 1123, 3440, 14, 141, 16, 544, 14, 12471, 52, 44, 227, 186, 91, 75, 186, 16, 105, 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...
Rails is attempting to render remotely... but not === I'm working on a rails application and am attempting to convert the 'event_calendar' gem's "next month" link into an ajax response. I set the link to remote: def month_link(month_date) link_to I18n.localize(month_date, :format => "%B"), {:month => month_date.month, :year => month_date.year}, remote: true end told it to respond to js... respond_to do |format| format.html format.js { render text: "help me!" } end And it works! Started GET "/calendar/2012/6" for 127.0.0.1 at 2012-07-03 15:27:42 -0500 Processing by CalendarController#index as JS Parameters: {"year"=>"2012", "month"=>"6"} Event Load (0.3ms) SELECT "events".* FROM "events" WHERE (('2012-05-27 05:00:00.000000' <= end_at) AND (start_at< '2012-07-01 05:00:00.000000')) ORDER BY start_at ASC Rendered text template (0.0ms) Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 0.3ms) *well*... except for the part where it doesn't actually render anything I pass it. If I just tell it to `format.js` w/o the render, it doesn't actually respond to a js file. **What could cause a render to not display?**
0
[ 2, 2240, 18, 25, 6314, 20, 16535, 23288, 9, 9, 9, 47, 52, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 2240, 18, 3010, 17, 589, 6314, 20, 8406, 14, 13, 22, 4943, 38, 1, 3430, 219, 2542, 22, 8551, 22, 18, 13, 7, 20021, 1617, 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...
Regular expression for version and sotware name === I have: TYPO3 4.2 is installed on machine ... Winamp is installed on machine ... Winrar 3.20 is installed on machine ... How can i make a regular expression for separating the software package name in a sentence. Above there is an example for a software\version, but the sentence is not always the same, and also there are times where the version is not displayed. Any hints how can the re be? I found this topic but it is just for version: http://stackoverflow.com/questions/6618868/regular-expression-for-version-numbers
0
[ 2, 1290, 1803, 26, 615, 17, 86, 38, 5011, 204, 800, 3726, 3726, 31, 57, 45, 22550, 240, 268, 9, 135, 25, 4066, 27, 1940, 13, 9, 9, 9, 628, 10158, 25, 4066, 27, 1940, 13, 9, 9, 9, 628, 15011, 203, 9, 1323, 25, 4066, 27, 194...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Can't insert geospatial in spring-data-neo4j === I'm using neo4j spatial index, this is my pom.xml <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-cypher-dsl</artifactId> <version>1.6</version> </dependency> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-spatial</artifactId> <version>0.6</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> <version>2.0.1.RELEASE</version> </dependency> I keep getting an error "GeometryNode Not indexed with RTree". Is it the problem about the mismatch version of my library? I haven't got any clue how to fix this error. This is how I declare my node entity. @Indexed(indexType = IndexType.POINT, indexName = "landmarkLayer") String wkt; public void setLocation(float lon, float lat) { this.wkt = String.format("POINT( %.2f %.2f )", lon, lat); } What's wrong? Thanks so much for your help
0
[ 2, 92, 22, 38, 14692, 6389, 18, 10563, 192, 19, 1573, 8, 18768, 8, 556, 111, 300, 728, 800, 3726, 3726, 31, 22, 79, 568, 4368, 300, 728, 14472, 4348, 15, 48, 25, 51, 16214, 9, 396, 8184, 13, 1, 19038, 8883, 1, 13, 1, 8024, 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...
Oracle SQL - Matching a phone format === I want to find datas that **do not** match the following pattern : - any number of separator - 2 numbers - any number of separator - 2 numbers - any number of separator - 2 numbers - any number of separator - 2 numbers - any number of separator - 2 numbers - any number of separator To do that, I use this query, but it does not seem to work : select distinct regexp_replace(phonenumber, '[0-9]', '') from coord where REGEXP_LIKE(phonenumber, '^[ ./]{*}[0-9]{2}[ ./]{*}[0-9]{2}[ ./]{*}[0-9]{2}[ ./]{*}[0-9]{2}[ ./]{*}[0-9]{2}[ ./]{*}$') What did I do wrong ?
0
[ 2, 15759, 4444, 255, 13, 8, 10120, 21, 1132, 2595, 800, 3726, 3726, 31, 259, 20, 477, 1054, 18, 30, 13, 1409, 537, 52, 1409, 730, 14, 249, 3732, 13, 45, 13, 8, 186, 234, 16, 1353, 3574, 3457, 13, 8, 172, 2116, 13, 8, 186, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
thread exiting with uncaught exception: NO stack trace === My application is causing a force closes somewhere but instead of getting a FATAL EXCEPTION with the usual (and very informative) stack trace in my LogCat, I receive only the following 3 lines: 06-27 07:08:54.769: W/dalvikvm(14351): threadid=20: thread exiting with uncaught exception (group=0x4001d7f0) 06-27 07:08:54.796: W/dalvikvm(14351): threadid=21: thread exiting with uncaught exception (group=0x4001d7f0) 06-27 07:08:54.796: I/Process(14351): Sending signal. PID: 14351 SIG: 9 This is in DEBUG mode with NO FILTERS applied on the LogCat! - What could be causing this behavior? - Is there a way to tell what's causing this exception?
0
[ 2, 9322, 24999, 29, 16061, 12647, 5391, 45, 90, 7566, 5565, 800, 3726, 3726, 51, 3010, 25, 3242, 21, 558, 543, 18, 3493, 47, 700, 16, 1017, 21, 8773, 5391, 29, 14, 3820, 13, 5, 290, 253, 10361, 3366, 6, 7566, 5565, 19, 51, 6738,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Custom Brush Colors === I'm trying to make custom brushes for my android painting app. I have managed to get .png brushes and use that as a bitmap and redraw it. it works fine but i can't change the colour. Tried using the `setcolorfilter` and `colormatrixfilter` doesnt seem to be working. Anyone know ho i can do this? private Bitmap mBitmapBrush; private Vector2 mBitmapBrushDimensions; private List<Vector2> mPositions = new ArrayList<Vector2>(100); private Paint mPanit; public MyView(Context c) { super(c); mPath = new Path(); mBitmapPaint = new Paint(Paint.DITHER_FLAG); mBitmapBrush = BitmapFactory.decodeResource(c.getResources(),R.drawable.brush1); mBitmapBrushDimensions = new Vector2(mBitmapBrush.getWidth(), mBitmapBrush.getHeight()); } @Override protected void onDraw(Canvas canvas) { canvas.drawColor(0xFFAAAAAA); canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint); for (Vector2 pos : mPositions) { canvas.drawBitmap(mBitmapBrush, pos.a, pos.b, mPanit); } invalidate(); } When i tried using the Colormatrixfilter the .set function was giving an error.
0
[ 2, 13005, 5816, 7588, 5268, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 5816, 25079, 26, 51, 13005, 2469, 4865, 9, 31, 57, 1471, 20, 164, 13, 9, 306, 2723, 25079, 17, 275, 30, 28, 21, 1142, 15022, 17, 402, 12404, 32, 9, 32, 693...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 nyroModal not working === i'm trying to use nyromodal on django to load a page where my login form is. The url for login page is : /login/ html : <a href="/login/" class="nyroModal">Login</a> javascript : $(function() { $('.nyroModal').nyroModal(); }); i don't know if i need to modify my views, so i'm just using code like : if request.method == 'POST': (some code here) else: (some code here) i mean by not working is, i expecting a result like facebook photo thumbnail or reddit's login page, but what i got is only a 'normal' page, no ajax (don't know what word best describe it), thx guys
0
[ 2, 3857, 14541, 3071, 661, 20756, 52, 638, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 3071, 661, 20756, 27, 3857, 14541, 20, 6305, 21, 2478, 113, 51, 6738, 108, 505, 25, 9, 14, 287, 6362, 26, 6738, 108, 2478, 25, 13, 45, 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...
BadRequestError: Only ancestor queries are allowed inside transactions === from google.appengine.ext import db class Parent(db.Model): app_id = db.StringProperty() class Child(db.Model): app_id = db.ReferenceProperty(Parent,collection_name='children') type = db.StringProperty() count = db.IntegerProperty() @db.transactional def increment_counter(app,childName): childA = Child.all().ancestor(app).filter('type =',childName).get() if childA is not None: obj = db.get(childA.key()) obj.counter += 1 obj.put() else: childA = Child(app_id=app.key(),type=childName,count=0) childA.put() increment_counter(Parent.all().filter('app_id =',app_id).get().key(),childKey) This fails with the title error on the put() if childA is empty. In my head I want to attach a new child entity to the single Parent entity I'm working with in the transaction if it's not already present, otherwise do an increment. Why is this not regarded as an ancestor query and what should I be doing instead to get the effect I'm after?
0
[ 2, 896, 99, 10351, 29992, 45, 104, 14628, 9386, 2829, 50, 1159, 572, 13147, 800, 3726, 3726, 37, 8144, 9, 7753, 16847, 9, 1706, 38, 9010, 13, 9007, 718, 4766, 5, 9007, 9, 13998, 6, 45, 4865, 1, 1340, 800, 13, 9007, 9, 11130, 108...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Retrieve database values once a day and change the html file served for that day === As a was coding my donation website on my "Totals Page" i realized that i dont need to fetch from the database and calculate the totals for the past year, month, or week every time a user loads the page. To save resources i was thinking of running a script once a day that would calculate those totals and display them as html text, then change them agian the next time the script ran. I have heard about cron job but have no idea how i would impliment it and was hoping to get some insight here. thanks
0
[ 2, 11917, 6018, 4070, 382, 21, 208, 17, 753, 14, 13, 15895, 3893, 423, 26, 30, 208, 800, 3726, 3726, 28, 21, 23, 13, 15458, 51, 15390, 2271, 27, 51, 13, 7, 20148, 18, 2478, 7, 31, 1896, 30, 31, 1049, 376, 20, 18312, 37, 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...
Inno-Setup checking file location prior to installation, then using it during installation === I need to check for the location of a file during program installation utilizing inno setup. I then need inno setup to use the location of that file in the "Filename" line to create a desktop ICON for program initialization. I have the code for the "Icons" option working fine with the exception of how to do the above. Here is the line of code I am currently using; Name: "{commondesktop}\SA - NH Bricscad V12"; Filename:"**c:\program files\septic assistant\new hampshire\support\**SA - NH Bricscad V12.exe"; IconFilename: "C:\Program Files\Septic Assistant\New Hampshire\Support\Bricscadlogo.ico"; Comment: "Septic Assistant the only Septic Design Program" Hi-Lited section would be the path to the exe file that I need inno setup to search for. Any assistance with this would be very much appreciated. Bruce
0
[ 2, 19, 251, 8, 3554, 576, 9886, 3893, 1474, 1313, 20, 7758, 15, 94, 568, 32, 112, 7758, 800, 3726, 3726, 31, 376, 20, 2631, 26, 14, 1474, 16, 21, 3893, 112, 625, 7758, 19894, 19, 251, 18161, 9, 31, 94, 376, 19, 251, 18161, 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...
How to find all substrings of a String with start and end indices === I've recently written some Scala code which processes a String, finding all its sub-strings and retaining a list of those which are found in a dictionary. The start and end of the sub-strings within the overall string also have to be retained for later use, so the easiest way to do this seemed to be just to use nested for loops, something like this: for (i <- 0 until word.length) for (j <- i until word.length) { val sub = word.substring(i, j + 1) // lookup sub in dictionary here and add new match if found } As an exercise, I decided to have a go at doing the same thing in Haskell. It seems straightforward enough without the need for the sub-string indices - I can use something like [this approach](http://stackoverflow.com/a/5377754/241990) to get the sub-strings, then call a recursive function to accumulate the matches. But if I want the indices too it seems trickier. How would I write a function which returns a list containing each continuous sub-string along with its start and end index within the "parent" string? For example `tokens "blah"` would give `[("b",0,0), ("bl",0,1), ("bla",0,2), ...]`
0
[ 2, 184, 20, 477, 65, 972, 11130, 18, 16, 21, 3724, 29, 799, 17, 241, 19, 8779, 18, 800, 3726, 3726, 31, 22, 195, 1989, 642, 109, 25975, 1797, 56, 5102, 21, 3724, 15, 3007, 65, 82, 972, 8, 11130, 18, 17, 14151, 21, 968, 16, 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...
Android lanscape orientation. Emulator doesn't respond === http://img13.imageshost.ru/img/2012/07/16/image_500339b1a89df.jpg Good day! I've faced with a problem - Android emulator doesn't respond on orientation change. Version 2.3.3. You can see home screen on the picture. In my app I have 2 folder - layout, layout-land - and I expect Android to do turn for me (setContentView(R.layout.main) should chose right layout), as it was said in the book. Both files have name main.xml
0
[ 2, 13005, 6178, 13109, 10245, 9, 3579, 14868, 1437, 22, 38, 4590, 800, 3726, 3726, 7775, 6903, 1660, 263, 1543, 9, 22039, 18, 11694, 9, 1820, 118, 1660, 263, 118, 3212, 118, 2984, 11698, 12626, 22039, 1, 6000, 26074, 220, 165, 58, 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...
Choosing Haskell libraries for project === I've been learning Haskell for some time now and with every new programming language I learn I do a little project that requires working with a mail server and publishing RSS and Atom content. The only problem is, I can't seem to find decent packages for these or at least can't find any reviews of packages. So I'll ask the community: Any preferred packages for interacting with a mail server? (IMAP, POP3 etc) Any preffered packages for publishing an RSS and/or Atom feed? Failing that, any preferred package for general XML? Any suggestions for a minimalistic, low friction webserver to bind all of that together? Thanks in advance.
0
[ 2, 10883, 63, 16507, 8649, 26, 669, 800, 3726, 3726, 31, 22, 195, 74, 2477, 63, 16507, 26, 109, 85, 130, 17, 29, 352, 78, 3143, 816, 31, 2484, 31, 107, 21, 265, 669, 30, 4781, 638, 29, 21, 4216, 8128, 17, 3107, 13, 1224, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do I access local .properties variable? Java Swing correct variable usage === What is it that is causing me to not be able to use the 'strAppName' variable in this code? I have it commented now showing `/*strAppName*/` here; `JFrame frame = new JFrame(/*strAppName*/);` When I run `System.out.println(strAppName);` it shows up in the Eclipse console with the application name. Thanks! package base; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.io.*; import java.util.*; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.SwingUtilities; public class StickyNotes extends JFrame { private static final long serialVersionUID = 1L; public final static String SAVE_CHANGES = "Save changes?"; public final static String TITLE_AYS = "Are You Sure?"; private void createStickyNotesGUI() { Properties configProperties = new Properties(); try { FileInputStream fileInputStream = new FileInputStream("resources/config.properties"); configProperties.load(fileInputStream); String strAppName = configProperties.getProperty("appName"); //System.out.println(strAppName); fileInputStream.close(); // better in finally block ?? /* http://en.wikipedia.org/wiki/.properties */ } catch (Exception ex){ //TODO System.out.println("Exception: " + ex); } /* LoadPropertiesExample config = new LoadPropertiesExample(); config.loadProps2(); config.sayHello();*/ // Create and set up the window. JFrame frame = new JFrame(/*strAppName*/); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLayout(new FlowLayout(FlowLayout.LEFT)); // Add Main Menu MainMenuBar mainMenu = new MainMenuBar(); frame.setJMenuBar(mainMenu.createMainMenuBar(frame)); // Add Content Pane // can I pass a layout object? frame.setContentPane(ContentPaneCreator.createContentPane()); // contentPane.add(scrollPane, BorderLayout.CENTER); // Add Tool Bar ToolBarCreator toolBar = new ToolBarCreator(); frame.getContentPane().add(toolBar.createToolBar(), BorderLayout.NORTH); // Add Label frame.getContentPane().add( LabelCreator.createLabel(frame, "use Swing and JavaFX together."), BorderLayout.NORTH); // Display the window. frame.setExtendedState(JFrame.MAXIMIZED_BOTH); // TODO /*set configuration to remember frame size*/ frame.setVisible(true); } public void doExit(JFrame frame) { boolean fDirty = true; if (fDirty) switch (JOptionPane.showConfirmDialog(StickyNotes.this, SAVE_CHANGES, TITLE_AYS, JOptionPane.YES_NO_OPTION)) { case JOptionPane.YES_OPTION: // if (doSave()) frame.dispose(); break; case JOptionPane.NO_OPTION: frame.dispose(); } else frame.dispose(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new StickyNotes().createStickyNotesGUI(); } }); } }
0
[ 2, 184, 107, 31, 1381, 375, 13, 9, 10890, 106, 3915, 7612, 60, 8247, 5587, 4456, 7612, 7514, 800, 3726, 3726, 98, 25, 32, 30, 25, 3242, 55, 20, 52, 44, 777, 20, 275, 14, 13, 22, 5253, 3421, 7259, 22, 7612, 19, 48, 1797, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Setting up SVN Server to work on Apache 2.2.22 (64 bits - already installed) and Windows 7 (64 bits) === I'm trying to setup a SVN Server 1.7.5 on my development workstation which has the following tools **already working**: * [Apache Server 2.2.22 **(64 bits)** - VC10 from Apache Lounge][1] * [PHP 5.4.3 VC9-TS **(64 bits)** from Anindya's Blog][2] * XDebug 2.2.0 VC9 for PHP 5.4.x TS **(64 bits)** from Xdebug.org * MySQL CE 5.5.24 **(64 bits)** MSI installer from MySQL Dev. Web Site * NetBeans IDE 7.2 RC1 with JRE 7 update 5 **(64 bits)** from NetBeans Web Site * Windows 7 Professional Edition **(64 bits)** As you can see, all used tools are 64 bits. My headache starts when I try to include SVN server to the toolset. Well, before posting this message in this forum, I found many very good SVN solutions for Windows 64 bits such as Visual SVN Server, Subversion Edge from CollabNet and uberSVN from WanDisco. However, all of them install an embedded Apache Server along with SVN Server. So, as I already have an Apache server working and well configured with all my personal needs, I would totally avoid having two different Apache servers just because of SVN. I have also searched on the web in order to know whether I could install either VisualSVN or Subversion Edge without their embedded Apache server, but it seems it's not an option. In my opinion, the only way to use my currently working Apache server is if I could find the SVN binaries for Apache 2.2.22 64bits. As additional information, also searching many forums on the web, it seems that no SVN 64 bits libraries are released just because there are already good enough free tools in the market for this purpose such as the aforementioned ones. The price is that they also come with the Apache server which I really don't want. I would fully apreeciate your help in this regard. Best Regards. [1]: http://www.apachelounge.com/download/win64/binaries/httpd-2.2.22-win64.zip [2]: http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
0
[ 2, 2697, 71, 13, 18, 16578, 8128, 20, 170, 27, 17140, 172, 9, 135, 9, 2287, 13, 5, 3470, 10181, 13, 8, 614, 4066, 6, 17, 1936, 453, 13, 5, 3470, 10181, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 18161, 21, 13, 18, 16578, 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...
Why is my listview Black? === I have this code for my listview <ListView android:id="@android:id/list" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="match_parent" android:scrollbarStyle="insideOverlay" android:background="@android:color/white" android:cacheColorHint="@android:color/white" android:fadingEdgeLength="16dip" /> and I have the theme "Holo.Light.DarkActionBar" in my activity. I tried changing the style of the listview to the same thing, but I am not getting the right colors. In the layout editor in eclipse it shows this: ![enter image description here][1] but on my phone I am getting this: ![getting][2] you can't see the white in the background of the picture on my phone because of the webpage, but behind the listview it is white. But If I applied a theme to the activity, why won't it change colors? Anyone know what I am doing wrong? Thanks! [1]: http://i.stack.imgur.com/rUJIw.png [2]: http://i.stack.imgur.com/8Jjrh.png
0
[ 2, 483, 25, 51, 968, 4725, 319, 60, 800, 3726, 3726, 31, 57, 48, 1797, 26, 51, 968, 4725, 13, 1, 5739, 4725, 13005, 45, 1340, 3726, 7, 1, 290, 18524, 45, 1340, 118, 5739, 7, 23504, 2172, 45, 290, 18524, 3726, 7, 21127, 6903, 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...
Powershell Concatenation === I'm trying to write a simple line of code that will delete various user files from a C Disk for various servers. I was wondering, how do you concatenate with Powershell to get the pathway to a server? For instance, this is what I'm trying to do, but Powershell isn't recognizing the + symbol as concatenation I think: remove-item "\\$server" + '\C$\Documents and Settings\a409126' -force -recurse -whatif I get an error saying: Remove-Item : A positional parameter cannot be found that accepts argument '+'.
0
[ 2, 414, 15984, 1065, 9530, 7914, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 1935, 293, 16, 1797, 30, 129, 27448, 617, 4155, 6488, 37, 21, 272, 8582, 26, 617, 17595, 9, 31, 23, 5712, 15, 184, 107, 42, 1065, 9530, 8820, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 missing Gen File === My android gen file all of a sudden disappeared. I have tried using Clean to regenerate it, but nothing is happening. I also tried restarting eclipse. Any suggestions?
0
[ 2, 13005, 2863, 4380, 3893, 800, 3726, 3726, 51, 13005, 4380, 3893, 65, 16, 21, 4224, 4115, 9, 31, 57, 794, 568, 2745, 20, 29608, 32, 15, 47, 626, 25, 4942, 9, 31, 67, 794, 22767, 68, 11652, 9, 186, 18389, 60, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
ASP.Net MVC3 SQL Nullable === I'm currently working on an ASP.Net MVC3 project. I have it set up so my sql database creates it's tables based off of classes I've created and I need to know if there's a way to set it so that the variables can be null for example: public class Cart { [Key] public int RecordId { get; set; } public string CartId { get; set; } public int VideoId { get; set; } public int CandyId { get; set; } public int Count { get; set; } public System.DateTime DateCreated { get; set; } public virtual Video Video { get; set; } public virtual Candy Candy { get; set; } } Is there a way to set the VideoId and Candy Id so that they can be null? The way they're coming up right now is as foreign keys to other tables. Any and all help is highly appreciated.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 240, 4444, 255, 16203, 579, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 40, 28, 306, 9, 2328, 307, 8990, 240, 669, 9, 31, 57, 32, 309, 71, 86, 51, 4444, 255, 6018, 9695, 32, 22, 18, 7484, 432, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Content Collapsible jquery mobile === I have a problem with jQuery Mobile 1.1.0 accordion ( http://jquerymobile.com/test/docs/content/content-collapsible.html ) I have a page with more accordion, and when I press to open / close the section brings me back to the top of the page. I have already set: ajaxEnabled: false; hashListeningEnabled: false; linkBindingEnabled: false; this is my code: <!-- anagrafica --> <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="c"> <h3>Scheda cliente</h3> <!-- Dati azienda --> <div data-role="collapsible" data-collapsed="true" data-content-theme="c" class="grid-scheda"> <h3>Anagrafica</h3> <form id="dati-azienda"> <div data-role="fieldcontain"> <label for="ragionesociale">Ragione Sociale:</label> <input type="text" name="ragionesociale" id="ragionesociale" class="required fullsize" /> </div> <div data-role="fieldcontain"> <label for="indirizzo">Indirizzo:</label> <input type="text" name="indirizzo" id="indirizzo" class="fullsize" /> </div> <div data-role="fieldcontain"> <label for="localita">Localit&agrave;:</label> <input type="text" name="localita" id="localita" class="large" /> <input type="text" name="cap" id="cap" class="small" placeholder="CAP" /> </div> <div data-role="fieldcontain"> <label for="pi">Partita IVA:</label> <input type="number" name="pi" id="pi" class="fullsize" /> </div> <div data-role="fieldcontain"> <label for="fisso">Fisso:</label> <input type="number" name="fisso" id="fisso" class="medium" /> <input type="number" name="fax" id="fax" class="medium" placeholder="Fax" /> </div> <div data-role="fieldcontain"> <label for="mobile">Mobile:</label> <input type="number" name="mobile" id="mobile" class="fullsize" /> </div> <div data-role="fieldcontain"> <label for="mail">Mail:</label> <input type="text" name="mail" id="mail" class="fullsize" /> </div> <!-- <div data-role="fieldcontain"> <fieldset data-role="controlgroup"> <legend>Altre sedi:</legend> <input type="checkbox" name="checkbox-0" style="margin-top:0px;" id="checkbox-mini-0" data-mini="true" /> <label for="checkbox-mini-0">Si</label> </fieldset> </div> --> <fieldset class="ui-grid-a"> <label>&nbsp;</label> <div class="ui-block-b"><button rel="dati-azienda" type="submit" class="submit submitBTN" data-theme="b">Salva</button></div> </fieldset> </form> </div><!-- /Dati Azienda --> <!-- Dati Referente --> <div data-role="collapsible" data-content-theme="c" class="grid-scheda"> <h3>Dati Referente</h3> <form id="dati-referente"> <div data-role="fieldcontain"> <label for="cognome">Referente:</label> <input type="text" name="cognome" id="cognome" class="small2" placeholder="Cognome" /> <input type="text" name="nome" id="nome" class="small2" placeholder="Nome"/> <input type="text" name="dt_nascita" id="dt_nascita" class="small2" placeholder="Data nascita"/> </div> <div data-role="fieldcontain"> <label for="posizione">Posizione:</label> <input type="text" name="posizione" id="posizione" class="medium" /> <input type="text" name="reperibilita" id="reperibilita" class="medium" placeholder="Reperibilit&agrave;" /> </div> <div data-role="fieldcontain"> <label for="mobile">Mobile:</label> <input type="number" name="mobile" id="mobile" class="medium" /> <input type="number" name="fisso" id="fisso" class="medium" placeholder="Fisso" /> </div> <div data-role="fieldcontain"> <label for="mail">Mail:</label> <input type="text" name="mail" id="mail" class="fullsize" /> </div> <div data-role="fieldcontain"> <label for="referente2">Referente alternativo:</label> <input type="text" name="referente2" id="referente2" class="fullsize" /> </div> <fieldset class="ui-grid-a"> <label>&nbsp;</label> <div class="ui-block-b"><button rel="dati-referente" type="submit" class="submit submitBTN" data-theme="b">Salva</button></div> </fieldset> </form> </div><!-- /Dati referente --> <!-- caratteristiche --> <div data-role="collapsible" data-content-theme="c" class="grid-scheda"> <h3>Caratteristiche</h3> <div data-role="fieldcontain"> <label for="x">Consistenza attiva:</label> <input type="text" name="x" id="x" class="small" /> </div> </div><!-- /caratteristiche --> <!-- registrazione --> <div data-role="collapsible" data-content-theme="c" class="grid-scheda"> <h3>Registrazione 190</h3> <form id="registrazione"> <div data-role="fieldcontain"> <label for="userid">User ID:</label> <input type="text" name="userid" id="userid" class="small2" /> <input type="text" name="passw" id="passw" class="small2" placeholder="Password" /> <input type="date" name="dt_registrazione" id="dt_registrazione" class="small2" /> </div> <?php for($i=1;$i<=2;$i++) { ?> <div data-role="fieldcontain"> <label for="analisi_ft_num">Analisi Fattura:</label> <input type="text" name="analisi_ft_num[]" id="analisi_ft_num" class="medium" placeholder="Nr. Fattura" /> <input type="date" name="dt_doc[]" class="medium" /> </div> <?php } ?> <div data-role="fieldcontain"> <label for="codice_cliente">Codice Cliente:</label> <input type="text" name="codice_cliente" id="codice_cliente" class="medium" /> <input type="text" name="ciclo_fatturazione" id="ciclo_fatturazione" class="medium" placeholder="Ciclo Fatturazione" /> </div> <fieldset class="ui-grid-a"> <label>&nbsp;</label> <div class="ui-block-b"><button rel="registrazione" type="submit" class="submit submitBTN" data-theme="b">Salva</button></div> </fieldset> </form> </div><!-- /registrazione --> </div> <!-- /anagrafica --> Thanks in advice
0
[ 2, 2331, 9470, 2552, 18, 3426, 487, 8190, 93, 3241, 800, 3726, 3726, 31, 57, 21, 1448, 29, 487, 8190, 93, 3241, 137, 9, 165, 9, 387, 20753, 13, 5, 7775, 6903, 728, 8190, 93, 12571, 9, 960, 118, 10543, 118, 13799, 18, 118, 25424,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Excel 2007 VBA Macro Stops when userform called === I've been building a macro for a few weeks, and all of a sudden part doesn't work properly. When I try to call a userform via .Show, for some reason the marco stops running right there and then, and highlights the ".show" line. (Even if I jump to the userform box, the buttons are not functional.) If I press F5 it starts to run again, but I obviously don't want the code to stop running in the middle of the program. Any idea why this could happen, especially when it didn't used to happen?
0
[ 2, 20700, 624, 566, 969, 9069, 6604, 76, 4155, 4190, 227, 800, 3726, 3726, 31, 22, 195, 74, 353, 21, 9069, 26, 21, 310, 1342, 15, 17, 65, 16, 21, 4224, 141, 1437, 22, 38, 170, 7428, 9, 76, 31, 1131, 20, 645, 21, 4155, 4190, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
when may JNI require copying arrays of primitive types? === I'm primarily a C++ programmer, but I'm considering using Java for a project. I will need to use some SSE intrinsics for performance reasons (these can give a huge boost in speed even relative to plain C++). As I understand it, the way to do this in Java is to use JNI and call the SSE intrinsics in C. However, what I read in the JNI documentation unnerved me a bit, as it says that the JVM may or may not create copies of the arrays being sent to C and back. Assuming a state-of-the-art implementation, say, OpenJDK 7, when should I actually expect copying when I request a pointer into byte[], short[], int[] or float[] ? *So far, all I found was some contradicting claims. To be accepted, an answer would have to convince me: e.g. provide evidence or cite sources rather than just express an opinion/guess.*
0
[ 2, 76, 123, 487, 889, 4077, 4344, 68, 7718, 18, 16, 11473, 2551, 60, 800, 3726, 3726, 31, 22, 79, 2257, 21, 272, 20512, 17968, 15, 47, 31, 22, 79, 5154, 568, 8247, 26, 21, 669, 9, 31, 129, 376, 20, 275, 109, 13, 9557, 22892, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reordering Variadic Parameters === I have come across the need to reorder a variadic list of parameters that is supplied to the constructor of a struct. After being reordered based on their types, the parameters will be stored as a tuple. My question is how this can be done so that a modern C++ compiler (e.g. `g++-4.7`) will not generate unnecessary load or store instructions. That is, when the constructor is invoked with a list of parameters of variable size, it efficiently pushes each parameter into place based on an ordering over the parameters' types. Here is a concrete example. Assume that the base type of every parameter (without references, pointers, or qualifiers) is either `char`, `int`, or `float`. How can I make it so that all the parameters of base type `char` appear first, followed by all of those of base type `int` (which leaves the parameters of base type `float` last). The relative order in which the parameters were given should not be violated within sublists of homogeneous base type. Example: `foo::foo()` is called with arguments `float a, char&& b, const float& c, int&& d, char e`. The tuple tupe is `std::tuple<char, char, int, float, float>`, and it is constructed like so: `tuple_type{std::move(b), e, std::move(d), a, c}`. Consider the struct defined below, and assume that the metafunction `deduce_reordered_tuple_type` is already implemented. How would you write the constructor so that it works as intended? If you think that the code for `deduce_reodered_tuple_type`, would be useful to you, I can provide it; it's a little long. template <class... Args> struct foo { // Assume that the metafunction deduce_reordered_tuple_type is defined. typedef typename deduce_reodered_tuple_type<Args...>::type tuple_type; tuple_type t_; foo(Args&&... args) : t_{reorder_and_forward_parameters<Args>(args)...} {} }; Thank you very much for your help!
0
[ 2, 302, 7861, 68, 4033, 549, 4673, 12905, 800, 3726, 3726, 31, 57, 340, 464, 14, 376, 20, 302, 7861, 21, 4033, 549, 4673, 968, 16, 12905, 30, 25, 7949, 20, 14, 6960, 248, 16, 21, 13, 10346, 9, 75, 142, 302, 7861, 69, 432, 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, 1, 1, 1, 1, 1, 1, 1...
Xquery with string-join, one parameter is string and other is number === I want to list respective Year with Total No of Orders. <Sample> <Sample> <Year>2010</Year> <Order>20,000</Order> </Sample> <Sample> <Year>2011</Year> <Order>20,000</Order> <Order>35,000</Order> </Sample> <Sample> <Year>2012</Year> <Order>20,000</Order> <Order>23,000</Order> <Order>40,000</Order> </Sample> </Samples> I am expecting output as - Year Orders 2010 1 2011 2 2012 3 As the number of `<Order>` elements will itself tell me the total number of Orders, I tried with the following in BaseX - for $x in doc("Sample")/Samples/Sample return <li>{string-join ( ($x/Year/@Y, count($x/Orders)) , " # ")}</li> But I am getting error and its obvious because I am using integer instead of string in the `string-join` function. Or is there any other way to get the same output?
0
[ 2, 993, 8190, 93, 29, 3724, 8, 1636, 108, 15, 53, 18906, 25, 3724, 17, 89, 25, 234, 800, 3726, 3726, 31, 259, 20, 968, 7390, 159, 29, 600, 90, 16, 3204, 9, 13, 1, 6101, 5106, 1, 13, 1, 6101, 5106, 1, 13, 1, 731, 1, 2751, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Creating own dialog class, String reference problems with R.java === I just making a class thats supposed to be a simple "Do you want to exit?" dialog for each of my activites in my application, and i have some questions. Im a beginner with OOP so dont be mad. So this is my ExitDialog class: public class ExitDialog extends Dialog implements OnClickListener { private Button dialogOk; private Button dialogCancel; private TextView dialogText; public ExitDialog(Context context) { super(context); final Dialog dialog = new Dialog(context, R.style.DialogAnim); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.exitdialog); dialogOk = (Button)dialog.findViewById(R.id.dialogOk); dialogCancel = (Button)dialog.findViewById(R.id.dialogCancel); dialogText = (TextView)dialog.findViewById(R.id.dialogText); //How to reach any reference from R.java ? // //dialogOk.setText(getString(R.string.Yes)); //ialogText.setText(getString(R.string.Exit)); dialogOk.setOnClickListener(this); dialogCancel.setOnClickListener(this); dialog.show(); } @Override public void onClick(View v) { if(v == dialogOk) { Log.i("ExitDialog", "dialogOk clicked"); this.dismiss(); } } } I have 3 questions for you: How can i reach my application's **R.java file for String references**? As you see i commented out the **getString(R.string.Yes)** and **getString(R.string.Exit)** functions because i cannot use it in this outer class. Any suggestions about who can i do this? Second question is about **.dismiss()**. If i call **this.dismiss()**, my dialog just dont go away it is stays on screen, why is it occurs? How to dismiss then? Third question is: How to get the parent activity from this outer dialog class? I need it to call **.finish()** on it, so my app can exit. Any suggestions will be greatly appreciated. Thanks.
0
[ 2, 2936, 258, 28223, 718, 15, 3724, 2801, 1716, 29, 761, 9, 1004, 1385, 800, 3726, 3726, 31, 114, 544, 21, 718, 30, 18, 2293, 20, 44, 21, 1935, 13, 7, 537, 42, 259, 20, 4350, 60, 7, 28223, 26, 206, 16, 51, 13, 19516, 6359, 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...
Jquery Mobile: How to redirect iphone App to System Preferences === I'm planning to redirect a user of my app to SYSTEM PREFFERENCES when my code detects that user has no internet connection. is there a possible way to do this? thank you :)
0
[ 2, 487, 8190, 93, 3241, 45, 184, 20, 302, 14706, 21024, 4865, 20, 329, 9808, 18, 800, 3726, 3726, 31, 22, 79, 2334, 20, 302, 14706, 21, 4155, 16, 51, 4865, 20, 329, 782, 6866, 2940, 18, 76, 51, 1797, 9092, 18, 30, 4155, 63, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 prepoulate UISearchDisplayController with results before the user starts typing in the SearchBar? === I would like to show past searches immediately after the search bar becomes active. but even though the datasource has these values, the search display controller doesn't call the table view methods until the user starts typing. Is there a way to force this on UISearchDisplayController?
0
[ 2, 25, 80, 21, 161, 20, 782, 1638, 12383, 13, 5661, 25136, 2906, 5438, 12898, 1252, 29, 1736, 115, 14, 4155, 3244, 25266, 19, 14, 2122, 1850, 60, 800, 3726, 3726, 31, 83, 101, 20, 298, 640, 19994, 1375, 75, 14, 2122, 748, 2633, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 write to a file in a globally-installed Node module? === Context ------- I am developing a [Node module](https://github.com/MattiSG/Watai) to be installed as a CLI executable. Hence, I am packaging it for usage with NPM, and [advising](http://npmjs.org/doc/json.html#preferGlobal) to install it [globally](http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/). Problem ------- However, as a CLI program, I'd like to write to a log file. This works fine on a local install, but of course less fine in a global install: the program is placed in `/usr/local/lib/…` by NPM, which has to be run as `sudo` to write there. Then, when a user then tries to run the tool, it fails due to `EACCES`: the log folder and files can not be created. Steps taken ----------- I successfully used a [`postinstall` script](http://npmjs.org/doc/scripts.html) to create the logging destinations while still su (`mkdir log && touch log/execution.log`), but those files are then owned by `nobody`, and may not be opened by the tool. The problem shifts a bit, but ends up being quite the same. Question -------- What would you advise? I have thought of the following solutions: 1. Write the log file in the execution CWD. This is ugly, and not so safe since the CWD could be not writable too. 2. Write the log file to a preset writable log file, such as `~/.mytool/log`, but I don’t like at all spreading files all over the user’s machine. 3. Ask the user for a log file destination. Extremely annoying. 4. `chmod 666` the global log file. Less ugly but insecure. Is there any common practice to handle such an issue?
0
[ 2, 184, 20, 2757, 20, 21, 3893, 19, 21, 18861, 8, 108, 21300, 69, 15421, 12613, 60, 800, 3726, 3726, 4141, 13, 8, 8, 8, 8, 8, 8, 8, 31, 589, 3561, 21, 636, 251, 546, 12613, 500, 5, 21127, 18, 6903, 10404, 20926, 9, 960, 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...
Unable to detect completion of TTS (callback) android. === I am developing android application in which I am using text to speech conversion.What I need when I open my application run text to speech conversion. After completion of this I want to do some thing.My code looks like public class Mainactivity extends Activity implements OnInitListener, OnUtteranceCompletedListener{ private static int REQ_CODE = 1; private TextToSpeech tts = null; private boolean ttsIsInit = false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); startTextToSpeech(); } private void startTextToSpeech() { Intent intent = new Intent(Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(intent, REQ_CODE); } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQ_CODE) { if (resultCode == Engine.CHECK_VOICE_DATA_PASS) { tts = new TextToSpeech(this, this); } else { Intent installVoice = new Intent(Engine.ACTION_INSTALL_TTS_DATA); startActivity(installVoice); } } } public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { ttsIsInit = true; int result = tts.setOnUtteranceCompletedListener(this); if (tts.isLanguageAvailable(Locale.ENGLISH) >= 0) tts.setLanguage(Locale.ENGLISH); tts.setPitch(5.0f); tts.setSpeechRate(1.0f); HashMap<String, String> myHashAlarm = new HashMap<String, String>(); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_ALARM)); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "SOME MESSAGE"); tts.speak("hi how are you?", TextToSpeech.QUEUE_FLUSH, myHashAlarm); } } @Override public void onDestroy() { if (tts != null) { tts.stop(); tts.shutdown(); } super.onDestroy(); } @Override public void onUtteranceCompleted(String uttId) { Toast.makeText(Mainactivity.this,"done", Toast.LENGTH_LONG).show(); if (uttId.equalsIgnoreCase("done")) { Toast.makeText(Mainactivity.this,"inside done", Toast.LENGTH_LONG).show(); } } } When I open my application text to speech working fine. But how to detect whether text to speech completed or not.Need help..... Thank you.....
0
[ 2, 2343, 20, 9092, 5392, 16, 13, 38, 38, 18, 13, 5, 9200, 1958, 6, 13005, 9, 800, 3726, 3726, 31, 589, 3561, 13005, 3010, 19, 56, 31, 589, 568, 1854, 20, 2974, 6263, 9, 608, 31, 376, 76, 31, 368, 51, 3010, 485, 1854, 20, 297...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Use Jquery/Ajax to Load A Page Within A Page, Without Refreshing === I am a PHP programmer, and up until now I've had very little experience using Jquery and/or Ajax. When answering, please keep this in mind. I've searched the web, and found no solutions for my problem. So now I'm turning to you guys for help! Okay, so.. my problem is that I would like to use a DIV to load a page within a page. Seems simple enough - BUT, I would like to do this WITHOUT refreshing the entire page. Here is my example: browse.php --> Lists all of the items that I currently have for sale on my site. This page can be incredibly long, and taxing to reload (especially on slower connections). editcart.php --> This is the page that I would like to load within browse.php. It allows the user to add/remove a specific item from their cart. Is there any way that I can load editcart.php on browse.php WITHOUT refreshing browse.php? Thanks in advance for your help!
0
[ 2, 275, 487, 8190, 93, 118, 6881, 7522, 20, 6305, 21, 2478, 363, 21, 2478, 15, 366, 27134, 800, 3726, 3726, 31, 589, 21, 13, 26120, 17968, 15, 17, 71, 163, 130, 31, 22, 195, 41, 253, 265, 1496, 568, 487, 8190, 93, 17, 118, 248...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Join two tables containing two foreign keys === I'm pretty amateur when it comes to writing SQL, so maybe this is an easy one for someone? I have two tables as follows: **Table1 - DeviceName, DeviceID, AlternateID** * MyPhone, 333, AAA * HerPhone, 444, CCC **Table2 - PhoneID, ProgramName** * 333, AngryBirds * CCC, Evernote As you can see, Table2 uses two different PhoneID types from Table1 (DeviceID and AlternateID). I'm looking a sql statement that will result in output like: * MyPhone, AngryBirds * HerPhone, Evernote Appreciate any assistance. Cheers, Mark
0
[ 2, 1865, 81, 7484, 3503, 81, 1228, 5534, 800, 3726, 3726, 31, 22, 79, 1772, 3852, 76, 32, 1624, 20, 1174, 4444, 255, 15, 86, 913, 48, 25, 40, 2010, 53, 26, 737, 60, 31, 57, 81, 7484, 28, 2415, 45, 13, 1409, 5924, 165, 13, 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...
Opening a Telerik Grid on click event of link inside main telerik grid === I have a master telerik grid (MVC). One of the column has a Link attached to it. Upon clicking the link i want to open a partial view which display the detail information as a pop up. How can i achieve something like this? Please advice. Any example or anything. Thanks, Vivek
0
[ 2, 1214, 21, 4338, 6639, 7354, 27, 10840, 807, 16, 3508, 572, 407, 4338, 6639, 7354, 800, 3726, 3726, 31, 57, 21, 1129, 4338, 6639, 7354, 13, 5, 79, 8990, 6, 9, 53, 16, 14, 4698, 63, 21, 3508, 3638, 20, 32, 9, 685, 25590, 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...
CGContextRestoreGState: invalid context 0x0 === I'm trying to draw a simple system of lines, but when I try running the code in terminal (running OS X Lion) or DrPython I receive an error (CGContextRestoreGState: invalid context 0x0). I'm running python 2.7. import pygame as pg pg.init() screen = pg.display.set_mode((640,480)) l1 = 1.0 * L l2 = 0.5377 * L l3 = 0.2867 * L hip = (100,100) knee = (hip[0] + math.sqrt(2) * l1, hip[1] + math.sqrt(2) * l1) ankle = (knee[0] + math.sqrt(2) * l2, knee[1] + math.sqrt(2) * l2) toe = (ankle[0] + l3, ankle[1]) pg.draw.lines(screen, (0, 0, 0), False, [hip, knee, ankle, toe], 1) while True: for event in pg.event.get(): if event.type == pg.QUIT: raise SystemExit
0
[ 2, 13, 15123, 1126, 11969, 99, 16828, 263, 3859, 45, 16671, 4141, 713, 396, 387, 800, 3726, 3726, 31, 22, 79, 749, 20, 2003, 21, 1935, 329, 16, 1560, 15, 47, 76, 31, 1131, 946, 14, 1797, 19, 3855, 13, 5, 11325, 13, 759, 993, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
colorbox not loading in firefox === I am trying to use colorbox to load content onto the screen. It works perfectly fine in chrome but it does not work in firefox? here's the http://theconfluencegroup.com/client/decibel-successes Please click the link - click to view more info this is the link in question it will work in chrome but not in firefox?
0
[ 2, 1665, 5309, 52, 12797, 19, 535, 18219, 800, 3726, 3726, 31, 589, 749, 20, 275, 1665, 5309, 20, 6305, 2331, 1204, 14, 2324, 9, 32, 693, 5759, 1123, 19, 13, 12985, 47, 32, 630, 52, 170, 19, 535, 18219, 60, 235, 22, 18, 14, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 closure instances 5.3 === This a little hard for me to explain, but I'll try my best. I'm trying to find the best way to create an instance of a closure. Below is an example of how I am creating and accessing the closure: $myvar->parse('var1, var2', function () { //my code }); I then loop through the strings by exploding the comma and put it into an array like so. $array = array(); $array['var1'] = closure(); $array['var2'] = closure(); Later on in my code I use call_user_func to execute the function. Now, the issue I'm having is that when i access $array['var1'] it calls the closure without any problem. But when I access $array['var2'] it does nothing. I've been looking at stackoverflow and google for a while without much luck. Do I need to use pointers (tried without success) or create a new instance of it somehow? I currently only have access to php 5.3 on my server, so I can't use any of the awesome stuff in 5.4 :( I'd really appreciate any feedback and advice you may have. Thanks in advanced!
0
[ 2, 13, 26120, 7790, 13946, 331, 9, 240, 800, 3726, 3726, 48, 21, 265, 552, 26, 55, 20, 3271, 15, 47, 31, 22, 211, 1131, 51, 246, 9, 31, 22, 79, 749, 20, 477, 14, 246, 161, 20, 1600, 40, 4851, 16, 21, 7790, 9, 1021, 25, 40,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Does the apple push notification distribution certificate signing request need to be the same as that used for the distribution cert to sign the app? === I have an existing app that I have created, and I have recently configured push notifications. When configuring, I am asked to upload a certificate signing request (CSR). I no longer have the original CSR that I used to publish my app. Is this the CSR I need to upload to the push notification configuration to receive my push notification certificate? I have my distribution cert with private key available. I have tried to create a new CSR to upload to the developer portal to retrieve my push notification certificate. When I combine this file with my private key (p12 file) and attempt to connect to the push notification server I get the following error: error setting private key 42600:error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:/SourceCache/OpenSSL098/OpenSSL098-44/src/crypto/x509/x509_cmp.c:406: Is this happening because of the new CSR I used to create the push notification cert?
0
[ 2, 630, 14, 4037, 3250, 52, 4634, 2523, 6259, 5479, 3772, 376, 20, 44, 14, 205, 28, 30, 147, 26, 14, 2523, 13, 17580, 20, 1676, 14, 4865, 60, 800, 3726, 3726, 31, 57, 40, 3149, 4865, 30, 31, 57, 679, 15, 17, 31, 57, 1989, 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...
Fingerprint on Java Web Start === I need help, When I start my application I get the following message: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at com.digitalpersona.onetouch.jni.Matcher.<clinit>(Matcher.java:8) at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl$EnrollmentImpl.<init>(DPFPEnrollmentFactoryImpl.java:40) at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl.createEnrollment(DPFPEnrollmentFactoryImpl.java:20) at Formularios.CapturaHuella.<init>(CapturaHuella.java:245) at Formularios.CapturaHuella$10.run(CapturaHuella.java:561) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.otmcjni") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkLink(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at com.digitalpersona.onetouch.jni.MatchingLibrary.<clinit>(MatchingLibrary.java:16) ... 19 more
0
[ 2, 21564, 27, 8247, 2741, 799, 800, 3726, 3726, 31, 376, 448, 15, 76, 31, 799, 51, 3010, 31, 164, 14, 249, 2802, 45, 5391, 19, 9322, 13, 7, 3885, 38, 8, 4943, 38, 2005, 4185, 8, 387, 7, 8247, 9, 9949, 9, 10066, 872, 108, 273...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 OperationalError at / (1045, "Access denied for user 'root'@'localhost' (using password: YES)") === Well, it refuses to work with 'root', but my settings are: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'stroiset74', # Or path to database file if using sqlite3. 'USER': 'stroiset74', # Not used with sqlite3. 'PASSWORD': '*****', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } Interestingly, manage.py validate and manaage.py syncdb still run without errors. Thank you in advance.
0
[ 2, 3857, 14541, 5656, 29992, 35, 13, 118, 13, 5, 1036, 2520, 15, 13, 7, 20604, 5265, 26, 4155, 13, 22, 14032, 22, 1, 22, 15580, 11694, 22, 13, 5, 12655, 20884, 45, 1643, 6, 7, 6, 800, 3726, 3726, 134, 15, 32, 10864, 20, 170, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, Menu in top position? === I followed the guide at: http://developer.android.com/guide/topics/ui/menus.html And have created an options menu. But the menu sits at the top right of my app and I want it at the bottom, like a tab menu. Any ideas where I am going wrong?
0
[ 2, 13005, 15, 11379, 19, 371, 649, 60, 800, 3726, 3726, 31, 709, 14, 3378, 35, 45, 7775, 6903, 26051, 106, 9, 290, 18524, 9, 960, 118, 17599, 118, 3880, 8354, 118, 5661, 118, 755, 267, 9, 15895, 17, 57, 679, 40, 6368, 11379, 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...
Is setting objects in the session that already exist useful in a Java web app? === In our Java web application which uses Struts 1, we have a lot of code that essentially does this: HttpSession session = httpServletRequest.getSession(); MyObject myObject = session.getAttribute(MY_OBJECT_KEY); //code that mutates myObject - setting properties or whatever session.setAttribute(MY_OBJECT_KEY, myObject); My question: Is the last line, session.setAttribute(..) necessary? It seems pointless to me - 'myObject' and 'session.getAttribute(..)' refer to the same location in memory, right? So re-setting the attribute in the session should not be required? Does this do anything I am not aware of? The object does not implement HttpSessionBindingListener which is mentioned in the documentation. I feel like I need to double check because this is done all over this app and I certainly don't want to break anything just because I am cleaning up code. Thanks
0
[ 2, 25, 2697, 3916, 19, 14, 3723, 30, 614, 3182, 4811, 19, 21, 8247, 2741, 4865, 60, 800, 3726, 3726, 19, 318, 8247, 2741, 3010, 56, 2027, 18316, 18, 137, 15, 95, 57, 21, 865, 16, 1797, 30, 7398, 630, 48, 45, 7775, 7202, 5991, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Last Minute Scope Changes? Sure Why Not? === Does anyone have articles they can send about the dangers of introducing last minute requirements or scope in a software release? Common sense right? However, it's human nature to ignore common sense. I have a bunch of business stakeholders who claim to have all this "IT/Software Engineering" experience in a previous life but yet repeatedly ask why they cannot add scope during or sometimes even after UAT.
0
[ 2, 236, 2038, 9914, 1693, 60, 562, 483, 52, 60, 800, 3726, 3726, 630, 1276, 57, 3376, 59, 92, 2660, 88, 14, 3589, 18, 16, 11442, 236, 2038, 4786, 54, 9914, 19, 21, 2306, 830, 60, 757, 1259, 193, 60, 207, 15, 32, 22, 18, 585, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 parse to a type in Scala === I'm trying to write a parser in Scala that gradually builds up a concrete type hierarchy. I started with: private def word = regex(new Regex("[a-zA-Z][a-zA-Z0-9-]*")) private def quicktoken: Parser[Quicktoken] = "/" ~> word <~ "/" <~ (space?) ^^ { new Quicktoken(_) } which is fine. /hello/ will get parsed to a quicktoken Now I want to add the quicktoken to a composite expression. I have a class class MatchTokenPart(word:String,quicktoken:RewriteWord){ } I would have thought that I could write... private def matchTokenPartContent: Parser[MatchTokenPart] = word<~equals~quicktoken ^^ { case word~quicktoken => new MatchTokenPart(word, quicktoken)} but it doesn't work. It says that word is of type Option[String] and quicktoken of type String. What am I missing?
0
[ 2, 184, 20, 2017, 870, 20, 21, 1001, 19, 25975, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 2017, 4104, 19, 25975, 30, 5305, 1895, 18, 71, 21, 4105, 1001, 14417, 9, 31, 373, 29, 45, 932, 6312, 833, 800, 7953, 1706, 5, 2681...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 capture Sybase RAISERROR in Mybatis-Spring? === I am trying to capture error messages in my Java code from stored procedures in Sybase using `RAISERROR`, but nothing is being caught, even though when I call the proc directly I can see the error is thrown. I understand that Mybatis-Spring > translates MyBatis exceptions into Spring DataAccessException So I have coded my Mapper class thusly: void insertData(Data toInsert) throws Exception, DataAccessException; I'm trying to catch both of these exceptions, but nothing is caught. Does anyone have any ideas? Thanks, Stephen
0
[ 2, 184, 20, 3683, 10315, 8436, 6623, 18, 29992, 19, 51, 4900, 403, 8, 15827, 60, 800, 3726, 3726, 31, 589, 749, 20, 3683, 7019, 7561, 19, 51, 8247, 1797, 37, 8214, 8876, 19, 10315, 8436, 568, 13, 1, 29206, 139, 248, 1, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ant script for sudo type installation of software === I need to write Ant build script to install software in linux env. I have written something like <exec dir="${dir}" executable="/bin/sh"> <arg value="installsoftware.sh"/> </exec> But the problem I get "You must have administrator or root privilege to execute". I need to run the installation with Sudo and give password to execute installsoftware.sh. Can someone help me on writing ant script to invoke sudo type installations? thanks in advance
0
[ 2, 376, 40, 38, 3884, 26, 13, 18, 18601, 1001, 7758, 16, 2306, 800, 3726, 3726, 31, 376, 20, 2757, 40, 38, 1895, 3884, 20, 16146, 2306, 19, 13024, 1957, 710, 9, 31, 57, 642, 301, 101, 13, 1, 1706, 3319, 13, 9035, 3726, 7, 4403...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Can't push gems to private gem server === We're developing some gems in-house and want to host them on a local gem server to then use with bundler. When I try to push a gem to the server, I get a 404 for `/api/v1/gems`. This happens on our actual server and when I try to run it locally on my laptop (both are on gem v1.8.24). Here's the Terminal session that's running the gem server: $ gem --version 1.8.24 $ gem server Server started at http://0.0.0.0:8808 Server started at http://[::ffff:0.0.0.0]:8808 Here's me trying to push an arbitrary gem: $ gem --version 1.8.24 $ gem push --host http://127.0.0.1:8808 awesome_print-1.0.2.gem Pushing gem to http://127.0.0.1:8808... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD><TITLE>Not Found</TITLE></HEAD> <BODY> <H1>Not Found</H1> `/api/v1/gems' not found. <HR> <ADDRESS> WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) at 127.0.0.1:8808 </ADDRESS> </BODY> </HTML> Is there a command-line option I need to specify to tell `gem server` to accept pushes? Or am I missing something else?
0
[ 2, 92, 22, 38, 3250, 8551, 18, 20, 932, 8551, 8128, 800, 3726, 3726, 95, 22, 99, 3561, 109, 8551, 18, 19, 8, 1682, 17, 259, 20, 2015, 105, 27, 21, 375, 8551, 8128, 20, 94, 275, 29, 10194, 139, 9, 76, 31, 1131, 20, 3250, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Placing php variables into mysql query === If you don't want to get a full summary of what I'm trying to do skip to (Problem starts here) I'm setting up my new site and came across a problem. What I'm basically trying to do is to assign ads to specific countries. So for example if your from the UK you would be shown ads that we have in our UK inventory. So I gathered some data from Google on how to detect a user's country based on their IP. I've made a function which does this perfectly. $ip_address= $_SERVER['REMOTE_ADDR']; `function ip_location($ip){` $parts = explode('.', $ip); $numeric_ip = $parts[3] + (256 * $parts[2]) + (256 * 256 * $parts[1]) + (256 * 256 * 256 * $parts[0]); $sql = "SELECT country FROM iptocountry WHERE lower_bound <= $numeric_ip AND upper_bound >= $numeric_ip LIMIT 1"; $result = mysql_query($sql); $country = mysql_result($result, 0); return $country; } `$country = ip_location($ip_address);` `echo $country;` // Always echos the correct country (Problem Starts here) So this function works fine. After making this function I created a MYSQL query which uses the data from that function to select an ad to show a user. Here is where the problem starts. When I type this query $sql= "SELECT * FROM `nuevo__htmlad` WHERE `country` = 'united kingdom' AND `active` = 1 ORDER BY RAND() LIMIT 1"; using `country`= 'united kingdom' it works fine but when I put `country`= '$country' Nothing works it never displays an ad. Can anyone help me understand why this query doesn't work when I place the php variable inside it. This actually is the first time something this simple has troubled me so much. Any help would be appreciated
0
[ 2, 5861, 13, 26120, 12157, 77, 51, 18, 22402, 25597, 800, 3726, 3726, 100, 42, 221, 22, 38, 259, 20, 164, 21, 503, 14740, 16, 98, 31, 22, 79, 749, 20, 107, 12532, 20, 13, 5, 2740, 2854, 79, 3244, 235, 6, 31, 22, 79, 2697, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get AdMob working for Android 2.3.3 === I followed the instructions for adding AdMob in my app and I compiled my code againest the suggested API Level and it compiles fine and when I try to test the application on either an emulator or my device it does not work, the application crashes as soon as I navigate to the activity that has the AdMob. I searched and tried all the threads in stack overflow and non of them seems to work for me, I was surprised when other people who posted the same problem that they say it's working for them after someone has answered them but their solution doesn't seem to work for crashing the app which no one complained about. I tried many versions of AdMob from 4 until the latest one 6 and non seem to work. Any help or suggestion where I am doing something wrong? By the way, I even started a new app which is 4.0.3 and still the app crashes. Thanks
0
[ 2, 184, 92, 31, 164, 21, 43, 1293, 220, 638, 26, 13005, 172, 9, 240, 9, 240, 800, 3726, 3726, 31, 709, 14, 7650, 26, 4721, 21, 43, 1293, 220, 19, 51, 4865, 17, 31, 9316, 51, 1797, 188, 1430, 14, 2347, 21, 2159, 662, 17, 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...
Is there a feature in Java Spring Cache to recalculate value assync if ttl expired, until than return value from cache? === Is there a way to configure cache behavior like assync recalculation cache if TTL? As a query might be too heavy - i would prefer to return value from cache, but also i whant to trigger recalculation, until value has been recalculated - return it from cache
0
[ 2, 25, 80, 21, 1580, 19, 8247, 1573, 16522, 20, 302, 16304, 12383, 1923, 28, 9507, 150, 100, 13, 38, 7786, 15524, 15, 163, 119, 788, 1923, 37, 16522, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 1065, 15951, 16522, 3257, 101, 28, 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...
What is the result of an ldap_search_ext call for trusted domains and sub-controllers? === If domainA has a one-way trust with domainB, what will be the result of the following query? ldap_simple_bind(domainA-controller) ldap_search_ext(userPrincipalName=user@domainB) Will the controller deliver a referral to domainB which needs to be followed? Will the query deliver a reference that has to be followed? Will the controller do the reference lookup itself and deliver the results? In a similar vein, if domainA has its directory tree spread over several sub-controllers, will the query deliver a reference to be followed? Or will it be done under the covers at the server level?
0
[ 2, 98, 25, 14, 829, 16, 40, 644, 20472, 1, 25136, 1, 1706, 38, 645, 26, 9968, 15544, 17, 972, 8, 12898, 1252, 18, 60, 800, 3726, 3726, 100, 4603, 58, 63, 21, 53, 8, 1443, 1527, 29, 4603, 220, 15, 98, 129, 44, 14, 829, 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...
Custom View (MacOS) === I need to use a custom view (NSView *mainContent) and swap the view with a different nib based on the user selection from a NSPopUpButton. The IBAction method for the popup button looks like this: - (IBAction)menuSelected:(NSPopUpButton *)sender { NSInteger index = [sender indexOfSelectedItem]; NSLog(@"Selected button index is %ld", index); [dynamicTitle.cell setTitle:[self returnSectionTitle:index]]; NSLog(@"%@", dynamicTitle.stringValue); switch (index) { case 0: Sect1 = [[Sect1_View alloc] initWithNibName:@"Sect1_View" bundle:nil]; maincontent = Sect1.view; [maincontent release]; break; case 1: Sect2 = [[Sect2_View alloc] initWithNibName:@"Sect2_View" bundle:nil]; break; case 2: Sect3a = [[Sect3a_View alloc] initWithNibName:@"Sect3a_View" bundle:nil]; break; case 3: Sect3b = [[Sect3b_View alloc] initWithNibName:@"Sect3b_View" bundle:nil]; break; case 4: Sect3c = [[Sect3c_View alloc] initWithNibName:@"Sect3c_View" bundle:nil]; break; case 5: Sect4 = [[Sect4_View alloc] initWithNibName:@"Sect4_View" bundle:nil]; break; default: break; } } This doesn't seem to retrieve the new nib, any suggestions on how to accomplish this? Thanks.
0
[ 2, 5816, 1418, 13, 5, 6893, 759, 6, 800, 3726, 3726, 31, 376, 20, 275, 21, 5816, 1418, 13, 5, 2172, 4725, 1637, 6232, 25424, 6, 17, 17150, 14, 1418, 29, 21, 421, 1781, 220, 432, 27, 14, 4155, 3155, 37, 21, 13, 2172, 6057, 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...
"Login Required" when creating Google Calendar event via PHP cURL? === I've found this question numerous times, but I can't find a single instance of a solution, so I'm trying myself. I'm creating a simple web application to help my employer schedule events to a Google Calendar. I've created the calendar, registered it with the Google API and have written cURL functions to check for existing appointments and return times & dates. I'm hung up on the function to create new events. The function I've written (with some variable names expanded for clarity) follows: function post_cal($url, $header, $post_content) { global $authtoken, $curlDefaults; $request = $url; $headers = array('Content-Type: application/json; Authorization: OAuth ' . $authtoken . $header); $options = array ( CURLOPT_URL => $request, CURLOPT_HTTPHEADER => $headers, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $post_content, ); $ch = curl_init(); curl_setopt_array($ch, ($curlDefaults + $options)); $result = curl_exec($ch); curl_close($ch); $json = json_decode($result, true); return $json; } I get a "401 - Login Required" error object when I try to run the post_cal function like so: $scheduled = post_cal('https://www.googleapis.com/calendar/v3/calendars/xxxxxx/events, '', $apptInfo); The cURL function is almost identical to the functions I have in place to read events & return existing values - both of which work fine! I use the same $authtoken variable, collected via a refresh token with the "https://www.googleapis.com/auth/calendar" scope explicitly defined. I have read and re-read the Google OAuth documentation but can't seem to find exactly where this error is coming from. $apptInfo is an array, encoded to JSON, with the appointment information and includes a start & end time, summary and description. I know this can be done more easily with the PHP library provided by Google, or with the Zend/GData framework. However, I am using this project as a way to teach myself PHP - I have very little experience with it prior to now - and would like to at least understand where the Login error is coming from, and how I might overcome it, before falling back on existing shortcuts. I have the luxury of time on my side since this is not a necessary project; it's just something I'm trying to help out with. Can anyone explain to me what I'm doing wrong, or what further information I'd need to share to isolate the issue? I'd hate to miss this as a learning opportunity! Thanks!
0
[ 2, 13, 7, 5567, 108, 1390, 7, 76, 2936, 8144, 7036, 807, 1197, 13, 26120, 14320, 60, 800, 3726, 3726, 31, 22, 195, 216, 48, 1301, 1548, 436, 15, 47, 31, 92, 22, 38, 477, 21, 345, 4851, 16, 21, 4295, 15, 86, 31, 22, 79, 749, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Google Places API: Does textSearch supports multiple page results? === I am trying to get next page of results from textSearch call using next_page_token parameter but always get REQUEST DENIED error. According to http://stackoverflow.com/questions/11248434/accessing-additional-results-in-google-places-search there is bug in documentation and pagetoken should be used instead of page_token. I tried both and it does not work for me. I can't find anywhere in documntation if multiple pages results available for textSearch.
0
[ 2, 8144, 1489, 21, 2159, 45, 630, 1854, 25136, 6747, 1886, 2478, 1736, 60, 800, 3726, 3726, 31, 589, 749, 20, 164, 328, 2478, 16, 1736, 37, 1854, 25136, 645, 568, 328, 1, 6486, 1, 262, 2853, 18906, 47, 550, 164, 3772, 5265, 7019, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 sum up a fetched result's number property based on the object's category? === I have a `NSFetchRequest` that is returning all my saved objects (call them `Item`s) and storing them in an `NSMutableArray`. Each of these `Item`s have a category, an amount, and some other properties. My goal is to check the category of each `Item` and store the sum of the amounts for objects of the same category. So if I had these `Item`s: - Red; 10.00 - Blue; 20.00 - Green; 5.00 - Red; 5.00 - Green; 15.00 then I would have an array or other type of container than has: - Red; 15.00 - Blue; 20.00 - Green; 20.00 **What would be the best way to organize the data in such a manner?** I was going to create a object class (call it `Totals`) that just has the category and amount. As I traverse through the fetch results in a for-loop, add `Item`s with the same category in a `Totals` object an store them in a `NSMutableArray`. The problem I ran into with that is that I'm not sure how to check if an array contains a `Totals` object with a specific property. Specifically, a category that already exists. So if 'Red' exists, add the amount to it, otherwise create a new `Totals` object with category 'Red' and a the first `Item`'s amount. Thanks.
0
[ 2, 184, 20, 3907, 71, 21, 13, 28998, 829, 22, 18, 234, 1354, 432, 27, 14, 3095, 22, 18, 3230, 60, 800, 3726, 3726, 31, 57, 21, 13, 1, 2172, 410, 19913, 99, 10351, 1, 30, 25, 2485, 65, 51, 4377, 3916, 13, 5, 9200, 105, 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...
does not work to post to the database first click(second click work) === I have a big problem. I have a feature where you should replace "password". but when the user clicks on submit first time, leaving Hands = "false" in var_dump. If you do the same process again and it works great! has any had a similar problem? VIEW: public function View(){ $NavigationView = New NavigationView(); return " <div class='change'> <form name='login' id='RegisterUserForm' method='Post' action='" . $NavigationView -> GetPersonIndex() . "'> <p> <label class='label' for='password'><h2 id='changelabel' >New Password</h2></label> </p> <p> <input type='password' size='20' name='$this->pass' id='name' class='text'/> </p> <input type='hidden' id='submithidden' value='true' name='" . NavigationView::Personindex . "'/> <input type='submit' name='submit' id='submit' value='Change Password'/> </form> </div> "; } CONTROLLER : if($PersonChangeView->TriedToChangePassword()){ var_dump($PersonChangeView->GetPassword(),$Username); $kalle = $UserHandler->ChangePassword($PersonChangeView->GetPassword(),$Username); var_dump($kalle); }
0
[ 2, 630, 52, 170, 20, 678, 20, 14, 6018, 64, 10840, 5, 5007, 10840, 170, 6, 800, 3726, 3726, 31, 57, 21, 580, 1448, 9, 31, 57, 21, 1580, 113, 42, 378, 3934, 13, 7, 6201, 9587, 7, 9, 47, 76, 14, 4155, 10840, 18, 27, 12298, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Unfortunately application has stopped in android emulator === I am new in android development. I am using Eclipse Helios and AVD 15. I am trying with a tiny program Sliding Drawer. Whenever I want to run it, compiler shows no error but in Emulator shows "Unfortunately <program name> has stopped. I uninstall it then run it for several times, Clean project, eliminate each warning still it coming. When I run it on debug mode , the console shows:- [2012-07-18 12:03:34 - sliding drawer] ------------------------------ [2012-07-18 12:03:34 - sliding drawer] Android Launch! [2012-07-18 12:03:34 - sliding drawer] adb is running normally. [2012-07-18 12:03:34 - sliding drawer] Performing sliding.drawer.SlidingdrawerActivity activity launch [2012-07-18 12:03:34 - sliding drawer] Automatic Target Mode: launching new emulator compatible AVD 'And_em_1.5' [2012-07-18 12:03:34 - sliding drawer] Launching a new emulator with Virtual Device ![android debug image][1]'And_em_1.5' [2012-07-18 12:03:54 - sliding drawer] New emulator found: emulator-5554 [2012-07-18 12:03:54 - sliding drawer] Waiting for HOME ('android.process.acore') to be launched... [2012-07-18 12:05:33 - sliding drawer] HOME is up on device 'emulator-5554' [2012-07-18 12:05:33 - sliding drawer] Uploading sliding drawer.apk onto device 'emulator-5554' [2012-07-18 12:05:33 - sliding drawer] Installing sliding drawer.apk... [2012-07-18 12:06:33 - sliding drawer] Success! [2012-07-18 12:06:33 - sliding drawer] Starting activity sliding.drawer.SlidingdrawerActivity on device emulator-5554 [2012-07-18 12:06:36 - sliding drawer] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=sliding.drawer/.SlidingdrawerActivity } [2012-07-18 12:06:38 - sliding drawer] Attempting to connect debugger to 'sliding.drawer' on port 8633 I am sending my code: #.java file# package sliding.drawer; import android.app.Activity; import android.os.Bundle; public class SlidingdrawerActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } #main.xml file# <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <SlidingDrawer android:id="@+id/drawer" android:layout_width="320dip" android:layout_height="440dip" android:orientation="vertical" android:handle="@+id/handle" android:content="@+id/content"> <ImageView android:id="@+id/handle" android:layout_width="48dip" android:layout_height="48dip" android:contentDescription="@string/s" android:src="@drawable/ic_launcher" /> <AnalogClock android:background="#D0A0A0" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </SlidingDrawer> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </RelativeLayout> Then a window comes with thread status. #Threads# ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1956 ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1981 ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 123 ActivityThread$H.handleMessage(Message) line: 1147 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 137 ActivityThread.main(String[]) line: 4424 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 511 ZygoteInit$MethodAndArgsCaller.run() line: 784 ZygoteInit.main(String[]) line: 551 NativeStart.main(String[]) line: not available [native method] As I am new in android I am getting mad. Please help me. Thanks..
0
[ 2, 6200, 3010, 63, 1175, 19, 13005, 3579, 14868, 800, 3726, 3726, 31, 589, 78, 19, 13005, 522, 9, 31, 589, 568, 11652, 21937, 18, 17, 14026, 43, 357, 9, 31, 589, 749, 29, 21, 3228, 625, 7609, 11641, 9, 6634, 31, 259, 20, 485, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
open failed: EBUSY (Device or resource busy) - Motorola Xoom === i have a strange error in my App. In my app it is possible to download a zipFile, read the content as what it is and also delete it. Its doesn't matter what exactly it is. Problem: Only on the Motorola Xoom (version 4.0.4) i can download the file, unzip it, i can read the data and i can delete everything. But if i try to Download the file again and while it unzip the file and copy the files to SD-Card it crashes with the error EBUSY (Device or resource busy). 1. Why is it working only the first time? 2. What means that error? 3. Why i get this error only on the Xoom? i can't find any solution for that. On all other devices it works fine, no errors or problems. LogCat: > 07-18 12:27:46.774: E/PrepareMagTask(10057): IOException 07-18 12:27:46.774: E/PrepareMagTask(10057): java.io.FileNotFoundException: /mnt/sdcard/Android/data/com.ticmobile.pressmatrix.android/files/content/23760/emag.db: open failed: EBUSY (Device or resource busy) 07-18 12:27:46.774: E/PrepareMagTask(10057): at libcore.io.IoBridge.open(IoBridge.java:406) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.io.FileOutputStream.<init>(FileOutputStream.java:88) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.io.FileOutputStream.<init>(FileOutputStream.java:73) 07-18 12:27:46.774: E/PrepareMagTask(10057): at com.ticmobile.pressmatrix.android.util.io.ZipHelper.uncompressEntry(ZipHelper.java:35) 07-18 12:27:46.774: E/PrepareMagTask(10057): at com.ticmobile.pressmatrix.android.task.PrepareMagTask.doInBackground(PrepareMagTask.java:271) 07-18 12:27:46.774: E/PrepareMagTask(10057): at com.ticmobile.pressmatrix.android.task.PrepareMagTask.doInBackground(PrepareMagTask.java:1) 07-18 12:27:46.774: E/PrepareMagTask(10057): at android.os.AsyncTask$2.call(AsyncTask.java:264) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 07-18 12:27:46.774: E/PrepareMagTask(10057): at java.lang.Thread.run(Thread.java:856) 07-18 12:27:46.774: E/PrepareMagTask(10057): Caused by: libcore.io.ErrnoException: open failed: EBUSY (Device or resource busy) 07-18 12:27:46.774: E/PrepareMagTask(10057): at libcore.io.Posix.open(Native Method) 07-18 12:27:46.774: E/PrepareMagTask(10057): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) 07-18 12:27:46.774: E/PrepareMagTask(10057): at libcore.io.IoBridge.open(IoBridge.java:390) 07-18 12:27:46.774: E/PrepareMagTask(10057): ... 11 more It crashes at line 35 in my ZipHelper class: FileHelper.copy(zipFile.getInputStream(entry), new FileOutputStream(outputFile), modify); getInputStream(entry) ... and i really dont know why? Is there a method to wait for the device or recourse, when it is busy? This is happened every time i try to unzip the file, the app tries it 5 time (Downloading -> Unzip) and it crashes every time.
0
[ 2, 368, 1702, 45, 13, 62, 3822, 93, 13, 5, 546, 18507, 54, 6577, 4394, 6, 13, 8, 2586, 2268, 13, 13955, 2636, 800, 3726, 3726, 31, 57, 21, 2578, 7019, 19, 51, 4865, 9, 19, 51, 4865, 32, 25, 938, 20, 7121, 21, 12133, 16877, 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...
Fluid column layout with fixed pixel margins between them? === I dont want to use JS for this, **only a css solution please**. I want the columns inside of a containing div to fit inside equally i.e each one is a third of the width of the container. I have achieved this here - http://jsfiddle.net/yFxZX/ However, on top of this, I also want `10px margin` between the columns, with the first column kissing the left edge of the container, and the right column kissing the right edge of the container. see image below for crude mock up. As the browser is re-sized or parent container changes width I want the columns to resize accordingly to fill the space but the margins between them to remain fixed at 10px. **Can this be done without JS?** ![enter image description here][1] [1]: http://i.stack.imgur.com/pSO83.jpg
0
[ 2, 6250, 4698, 9106, 29, 3535, 18146, 5440, 18, 128, 105, 60, 800, 3726, 3726, 31, 1049, 259, 20, 275, 487, 18, 26, 48, 15, 13, 1409, 4965, 21, 272, 18, 18, 4295, 2247, 1409, 9, 31, 259, 14, 7498, 572, 16, 21, 3503, 13, 12916,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 tweet a image in iOS4 === I want to tweet a image which I would be sending from my app.I am using Twitter_Oauth API for my application. For updating status I use: [_engine sendUpdate:@"This is my tweet"]; But how to tweet a image ? sorry, i didnt find any relevant documentation...
0
[ 2, 184, 20, 20224, 21, 1961, 19, 13, 7760, 300, 800, 3726, 3726, 31, 259, 20, 20224, 21, 1961, 56, 31, 83, 44, 4907, 37, 51, 4865, 9, 49, 589, 568, 10623, 1, 111, 1346, 96, 21, 2159, 26, 51, 3010, 9, 26, 71, 43, 1880, 1782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Phonegap. Retrieving result of a query === I've started to create a sample phonegap app for Adnroid and I came across some problems with DB: I'm going to create a daoObject using oop javascript which should be resposible for communication with database. So I've got sth like this: function RegistrationNumbersDatabaseDao(){ // my DAO object this.database = new DatabaseObject().getDatabase; this.countAllRecords = function(){ this.database.transaction(function(tx){ tx.executeSql('SELECT * FROM REGISTRATION_NUMBERS', [], function(tx, results) { var len = results.rows.length; alert(len); // <-- I'm very interested in retrieving 'len' value }); }); } } Till now everything is fine - I see the alert box with number of records (of course I should use count* but its not a problem for now). But what I would like to achieve is to create a function which returns a number (int) of records in my db. So, I want to use it as follows: // daoObject is created earlier var x = daoObject.getCount(); How can I deal with it? Could you help me? ;) Later I'll need to return some collection of objects and do sth with it, so understanding the basics is very important for me... Cheers Radek
0
[ 2, 1132, 1136, 306, 9, 13, 6239, 3272, 8397, 829, 16, 21, 25597, 800, 3726, 3726, 31, 22, 195, 373, 20, 1600, 21, 5717, 1132, 1136, 306, 4865, 26, 21, 43, 103, 18524, 17, 31, 281, 464, 109, 1716, 29, 13, 9007, 45, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...