unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Camera intent for ACTION_IMAGE_CAPTURE does not appear on Samsung Galaxy Nexus(4.0.2) === I use following code take a Picture from camera and to obtain picture's path. ... Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_IMAGE_CAPTURE); // image capture ... @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Log.d(TAG, "onActivityResult:" + resultCode + " request:" + requestCode); switch (requestCode) { case CAMERA_IMAGE_CAPTURE: Uri selectedImageUri = data.getData(); userImagePath = getPath(selectedImageUri); break; } } It works good on emulator and on different devices. But on Samsung Galaxy Nexus(4.0.2) it does not launches Camera app. But it returns RESULT_OK to onActivityResult and I see no exceptions in LogCat. Please give me and advice how to solve this issue. Thanks in advance!
0
[ 2, 3336, 6936, 26, 1028, 1, 22039, 1, 4666, 6418, 630, 52, 1893, 27, 22981, 9358, 28674, 5, 300, 9, 387, 9, 135, 6, 800, 3726, 3726, 31, 275, 249, 1797, 247, 21, 2151, 37, 3336, 17, 20, 5545, 2151, 22, 18, 2013, 9, 13, 9, 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...
fprintf (serial communication) in matlab === I'm trying to communicate with differential drive mobile robot via matlab functions and .mex files. I can succesfully move the robot with command: ref = serial('COM1'); set(ref,'BaudRate', 9600); fopen(ref); fprintf(ref,'C,1000,1000'); out = fscanf(ref) fclose(ref) delete(ref) However, the function that I made which includes `fprintf` does not work: function r = Move(ref,left,right) fprintf(ref,'C,left,right'); out = fscanf(ref) I'am aware that the problem is different string used in command `fprintf` (i.e. 'C,1000,1000' is not equal to 'C,left,right'), but I can't resolve this problem. Sorry if this is too trivial.
0
[ 2, 398, 10299, 410, 13, 5, 4104, 2815, 3291, 6, 19, 4277, 9086, 800, 3726, 3726, 31, 22, 79, 749, 20, 8709, 29, 12086, 1493, 3241, 8288, 1197, 4277, 9086, 3719, 17, 13, 9, 79, 1706, 6488, 9, 31, 92, 21792, 5052, 5655, 780, 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...
Using JqGrid with TreeGrid + GridDnd === I have been trying to implement the JqGrid with the TreeGrid and GridDnD functionality for some time now and I'm having trouble. I've seen it done before so I know it can be done. Here is the code I use to create the TreeGrid, which works as desired: $("#documentmanagementtree").jqGrid({ url: '<%: Url.Action("GetDocumentManagementFolderStructure", "Document") %>', datatype: 'json', mtype: 'post', colNames: ['Id','Type', '<%: Html.TranslateUiElement(Function(x) x.SharedTranslations.EntityTypeCaption) %>', '<%: Html.TranslateUiElement(Function(x) x.DocumentTranslations.FileNameCaption)%>', '<%: Html.TranslateUiElement(Function(x) x.DocumentTranslations.DocumentFileSizeCaption) %>', '<%: Html.TranslateUiElement(Function(x) x.DocumentTranslations.LastCheckinDateCaption)%>', '<%: Html.TranslateUiElement(Function(x) x.DocumentTranslations.DocumentDownloadCaption) %>'], colModel: [ { name: 'id', index: 'id', hidden: true }, { name: 'type', index: 'type', hidden: true }, { name: 'icon', index: 'icon', width: 5, align: 'left' }, { name: 'name', index: 'name', width: 15 }, { name: 'size', index: 'size', width: 5, sortable: false, align: 'right' }, { name: 'lastcheckindate', index: 'lastcheckindate', width: 10, align: 'center', sorttype: 'date', datefmt: '<%= Html.GetGridDateFormat()%>' }, { name: 'downloadlink', index: 'downloadlink', width: 5, align: 'center' } ], height: 'auto', width: 1013, sortname: 'id', treeGrid: true, cellEdit: true, treeGridModel: 'adjacency', treedatatype: "json", ExpandColumn: 'icon' }); Now, when I implement the GridDnD feature, (Which I have working correctly in other pages) nothing happens. Although, when I comment out the "treeGrid: true" line from the jqGrid code, I can drag and drop successfully. Note: I connect with '#' because I implement the jqGrid to drag and drop unto itself, which I have working with jquery's droppable, and it works nicely. $("#documentmanagementtree").gridDnD({ connectWith: '#' }); So the issue stands that I cannot get the TreeGrid to work with GridDnd, although I can get both pieces of functionality working separately just fine and I know it can be done because I've seen demos of this happening (of which I cannot reproduce the results). Let me know of anything you can suggest to help, thank you all in advance.
0
[ 2, 568, 487, 1251, 16375, 29, 1541, 16375, 2754, 7354, 43, 706, 800, 3726, 3726, 31, 57, 74, 749, 20, 8713, 14, 487, 1251, 16375, 29, 14, 1541, 16375, 17, 7354, 43, 706, 18548, 26, 109, 85, 130, 17, 31, 22, 79, 452, 2572, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Check if XML has two different types of element node how to bring it in output XML using XSLT === I already have an input XML <tutorial> <lessons> <lesson> chapter1 unit 1 page1 </lesson> <lesson> unit 1 </lesson> </lessons> </tutorial> The output should be <Geography> <historical> <social> <toc1> <toc> <chapter> chapter1 <chapter> <unit> unit 1 </unit> <pages> page1 </pages> </toc> </toc1> <social> </historical> </Geography> actually i am getting confused here <lesson> chapter1 unit 1 page1 </lesson> <lesson> unit 1 </lesson> here i need two outpus for the first lesson i need it as above output for the second lesson i need it as output like below <historical> <social> <toc1> <toc> <unit> unit 1 </unit> <toc> </toc1> <social> </historical> but sometimes i will get both type in xml i am totally confused how to do this. can any one guide me here it can be in both XSLT1.0 and XSLT2.0 Regards Karthic
0
[ 2, 2631, 100, 23504, 63, 81, 421, 2551, 16, 4520, 15421, 184, 20, 1499, 32, 19, 5196, 23504, 568, 993, 18, 255, 38, 800, 3726, 3726, 31, 614, 57, 40, 6367, 23504, 13, 1, 2473, 9819, 192, 1, 13, 1, 923, 4710, 1, 13, 1, 923, 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...
method to obtain a rand value bigger than value of system.currentTimeInMillis === I'm trying to build a method that return a rand value bigger than value get from System.currentTimeInMillis. I use `Random` object.how can I obtain a value that have min range as System.currentTimeInMillis?
0
[ 2, 2109, 20, 5545, 21, 11310, 1923, 6197, 119, 1923, 16, 329, 9, 17657, 891, 108, 8702, 403, 800, 3726, 3726, 31, 22, 79, 749, 20, 1895, 21, 2109, 30, 788, 21, 11310, 1923, 6197, 119, 1923, 164, 37, 329, 9, 17657, 891, 108, 8702...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
nested postDelayed in Handler Android === I am trying to use a nested postDelayed because I need to do something delayed for 30 seconds, then do something else delayed in 5 minutes, then repeat both events in the cycle again from the start. I just can't seem to get it right. code I have sofar: private void on_delayed(long period_off){ Delayed = new Runnable() { public void run() { something.enable(context); something.enable_else(context, true); off_delayed(DisabledAfter); // and disable both again delayed Handler.postDelayed(Delayed, EnabledAfter); } }; Handler.postDelayed(Delayed, EnabledAfter); }//end method private void off_delayed(long period_on){ Delayed = new Runnable() { public void run() { something.disable(context); something.disable_else(context, false); on_delayed(EnabledAfter); //Handler.postDelayed(Delayed, DisabledAfter); } }; Handler.postDelayed(Delayed, DisabledAfter); }//end method The problem with this is runs fine the first run, but then seems to stack on top of each other...and all delays are borked. I need to execute the both `Runnable`s in exactly 5 minutes and 30 seconds, then repeat the process.
0
[ 2, 5618, 69, 678, 546, 4414, 69, 19, 24641, 13005, 800, 3726, 3726, 31, 589, 749, 20, 275, 21, 5618, 69, 678, 546, 4414, 69, 185, 31, 376, 20, 107, 301, 8241, 26, 712, 2582, 15, 94, 107, 301, 962, 8241, 19, 331, 902, 15, 94, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Translate system similar to gettext with no acces system locale === I have a shit hosting and I can't generate system locales for the languages of the web. I can't acces to do it. I need another translate software that must not use system locales. Exists another good translate system to do this? PD: A Good system, not variables in a file. Tank's
0
[ 2, 20628, 329, 835, 20, 164, 11969, 29, 90, 7602, 160, 329, 375, 62, 800, 3726, 3726, 31, 57, 21, 2920, 10637, 17, 31, 92, 22, 38, 7920, 329, 375, 160, 26, 14, 2556, 16, 14, 2741, 9, 31, 92, 22, 38, 7602, 160, 20, 107, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get reference from property info in c# === I need to recursively go thru all properties in my class and if the property happens to be a string I need to do some custom logic. Please advise what I need to put at the line of recursion. (sorry I dont know how to format my c# code while posting here. 4 spaces did not indent for some reason so I have attached my vs screenshot also. Right click image and do view image for full size. ![enter image description here][1]) void ProcessAllStrings<T>(ref T objToRip) { BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; Type typeParameterType = typeof (T); foreach (PropertyInfo p in typeParameterType.GetProperties(flags)) { Type currentNodeType = p.PropertyType; if (currentNodeType == typeof (String)) { //here I do my custom string handling. Code deleted } //if non primitive and non string then recurse. (nested/inner class instances) // see http://stackoverflow.com/questions/4444908/detecting-native-objects-with-reflection else if (currentNodeType != typeof (object) && Type.GetTypeCode(currentNodeType) == TypeCode.Object) { //I need to get the reference to this property which happens to be a nested class //but propertyInfo only provides GetValue(). No GetReference available.. ProcessAllStrings(ref "dont know what to put here"); } } } [1]: http://i.stack.imgur.com/7vQm2.jpg thanks
0
[ 2, 184, 20, 164, 2801, 37, 1354, 15404, 19, 272, 5910, 800, 3726, 3726, 31, 376, 20, 302, 24244, 102, 162, 19637, 65, 3704, 19, 51, 718, 17, 100, 14, 1354, 5531, 20, 44, 21, 3724, 31, 376, 20, 107, 109, 5816, 7085, 9, 2247, 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...
Iphone Display Date Picker on TextField click === Okay so I followed this thread: http://stackoverflow.com/questions/7308754/datepicker-by-clicking-on-textfield I imported both of the following protocols: @interface ViewController : UIViewController<UIActionSheetDelegate, UITextFieldDelegate> { Then in the implementation I use the following: - (void)viewDidLoad { textField.delegate = self; [super viewDidLoad] } Lastly, I put the actual code to display the date picker (from the thread). I also linked it all up in the IB. //Date Picker - (void)textFieldDidBeginEditing:(UITextField *)aTextField{ [aTextField resignFirstResponder]; pickerViewPopup = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil]; UIDatePicker *pickerView = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 44, 0, 0)]; pickerView.datePickerMode = UIDatePickerModeDate; pickerView.hidden = NO; pickerView.date = [NSDate date]; UIToolbar *pickerToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)]; pickerToolbar.barStyle = UIBarStyleBlackOpaque; [pickerToolbar sizeToFit]; NSMutableArray *barItems = [[NSMutableArray alloc] init]; UIBarButtonItem *flexSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:self action:nil]; [barItems addObject:flexSpace]; UIBarButtonItem *doneBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneButtonPressed:)]; [barItems addObject:doneBtn]; UIBarButtonItem *cancelBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelButtonPressed:)]; [barItems addObject:cancelBtn]; [pickerToolbar setItems:barItems animated:YES]; [pickerViewPopup addSubview:pickerToolbar]; [pickerViewPopup addSubview:pickerView]; [pickerViewPopup showInView:self.view]; [pickerViewPopup setBounds:CGRectMake(0,0,320, 464)]; } -(void)doneButtonPressed:(id)sender{ //Do something here here with the value selected using [pickerView date] to get that value [pickerViewPopup dismissWithClickedButtonIndex:1 animated:YES]; } -(void)cancelButtonPressed:(id)sender{ [pickerViewPopup dismissWithClickedButtonIndex:1 animated:YES]; } Whenever I click on the TextField though, I get this: ![enter image description here][1] What am I doing wrong? [1]: http://i.stack.imgur.com/OHANh.png
0
[ 2, 21024, 3042, 1231, 2036, 106, 27, 1854, 1109, 10840, 800, 3726, 3726, 1705, 86, 31, 709, 48, 9322, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 23647, 24964, 12918, 8209, 16855, 106, 8, 779, 8, 150, 10129, 68, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 use git format-patch on initial commit === I need to get patch file for inital commit (which is not empty) for our review process, but I'm confused as `git format-patch` command only makes it from branch that is on initial commit not including it. Seems it must be some obvious move but I'm completely missing it.
0
[ 2, 184, 20, 275, 13, 10404, 2595, 8, 23661, 27, 2104, 9686, 800, 3726, 3726, 31, 376, 20, 164, 7331, 3893, 26, 19, 242, 192, 9686, 13, 5, 2140, 25, 52, 2424, 6, 26, 318, 1487, 953, 15, 47, 31, 22, 79, 4230, 28, 13, 1, 10404,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 group by quarter/3-month period (or any custom time period) in SQLite? === Here is my table in comma-delimited form: date, number 2010-09-02, 2 2010-10-01, 3 2011-01-01, 4 2011-02-01, 5 2011-03-01, 6 2011-05-05, 7 There doesn't seem to be a 'quarter' datetime function in SQLite's syntax, so I was wondering if there's a workaround for this.
0
[ 2, 184, 20, 214, 34, 2650, 16842, 8, 6444, 620, 13, 5, 248, 186, 5816, 85, 620, 6, 19, 4444, 10601, 60, 800, 3726, 3726, 235, 25, 51, 859, 19, 11951, 58, 8, 546, 23012, 505, 45, 1231, 15, 234, 498, 8, 2545, 8, 3564, 15, 172,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Estimate SQL query time === If SELECT attr FROM t WHERE attr2>=0 LIMIT 10000; took about 0.26 sec. How much time (very roughly) would SELECT attr FROM t WHERE attr2>700; take to run? mysql> EXPLAIN SELECT attr FROM t WHERE attr2>700; +----+-------------+---------------+------+---------------+------+---------+------+--------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+---------------+------+---------------+------+---------+------+--------+-------------+ | 1 | SIMPLE | t | ALL | NULL | NULL | NULL | NULL | 769111 | Using where | +----+-------------+---------------+------+---------------+------+---------+------+--------+-------------+
0
[ 2, 10243, 4444, 255, 25597, 85, 800, 3726, 3726, 100, 5407, 35, 6384, 37, 13, 38, 113, 35, 6384, 135, 1, 3726, 387, 4496, 332, 3993, 73, 199, 88, 713, 9, 2409, 9265, 9, 184, 212, 85, 13, 5, 7864, 4457, 6, 83, 5407, 35, 6384, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Function Interposition in Linux (write function) === Please, how can I recover the buffer of the original write ? size_t write(int fd, const void *buf, size_t count) { static size_t (*write_func)(int, const void *, size_t) = NULL; /* get reference to original (libc provided) write */ if (!write_func) { write_func = (size_t(*)(int, const void *, size_t)) dlsym(RTLD_NEXT, "write"); } } Thank you so much for help
0
[ 2, 1990, 1480, 9339, 19, 13024, 13, 5, 23716, 1990, 6, 800, 3726, 3726, 2247, 15, 184, 92, 31, 7635, 14, 17497, 16, 14, 501, 2757, 13, 60, 1072, 1, 38, 2757, 5, 6391, 398, 43, 15, 11608, 38, 11364, 1637, 2345, 410, 15, 1072, 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...
Colored ListView === Is it possible to set different colors for different rows in (dynamic) ListView? I know that I can set background colors e.g. on item click event listener, but I wonder is there a way to set colors dynamically while adding items to adapter?
0
[ 2, 10133, 968, 4725, 800, 3726, 3726, 25, 32, 938, 20, 309, 421, 5268, 26, 421, 11295, 19, 13, 5, 20985, 6, 968, 4725, 60, 31, 143, 30, 31, 92, 309, 2395, 5268, 13, 62, 9, 263, 9, 27, 9101, 10840, 807, 21772, 15, 47, 31, 266...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
namedValuePairs not being passed, instead are empty === I'm trying to write a basic account creation for an android project using PHP. I post the script the email, password, and nickname and it queries a database for duplicates and inserts the info if none found. If i just run the php script it works fine, but does not when i try to post the stuff from android. Here is the code: public String createUser(String email, String pass, String nick) { ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("email", email)); nameValuePairs.add(new BasicNameValuePair("password", pass)); nameValuePairs.add(new BasicNameValuePair("nick", nick)); InputStream is = null; String reply = null; try { HttpClient httpclient = new DefaultHttpClient(); // must store something locally to define this url // if the url ever changes, gotta make sure droids know without // requiring an update HttpPost httppost = new HttpPost(STR_PHP_USER); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); is = entity.getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader( is, "iso-8859-1"), 8); reply = reader.readLine(); Log.e("createUser", "php response is "+reply); is.close(); } catch (Exception e) { Log.e("log_tag", "Error in http connection " + e.toString() + " getCreateUserResult_HTTPPost"); } return reply; } The script should return 0 for double fail, 1 for email fail, 2 for nick fail, and 3 for success. From the android project i am always getting 0, becuase there is already a user in the database with an empty name and nick. also, "print_r($_GET, true));" results in " Array ( ) if i run the android project to make a user, but i get Array ( [email] => Random@someplace.org [password] => somepassword [nick] => RandoTheMagnificent ) if i do it from a browser. Any ideas?
0
[ 2, 377, 15165, 11541, 1224, 52, 142, 1100, 15, 700, 50, 2424, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 2125, 2176, 2502, 26, 40, 13005, 669, 568, 13, 26120, 9, 31, 678, 14, 3884, 14, 8517, 15, 20884, 15, 17, 7157, 17, 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...
RunOnce command executed from SetupComplete.cmd after SysPrep doesn't work, while it works fine from Windows === OS: Windows 7 Embedded 64-bit (Template used: Application compatibility) I'm trying to run another script (SetupComplete2.cmd) after SetupComplete.cmd runs and the computer reboots. I added this line in the SetupComplete.cmd: REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v Setup /t REG_SZ /d "cmd.exe /C C:\Windows\Setup\Scripts\SetupComplete2.cmd" /f This command works great from Windows, I tested it several times, but it doesn't work when ran from SetupComplete.cmd for some reason... Can anyone tell me what am I missing? Or, can anyone here suggest a way to run another script, just once, after the initial setup reboot? I need to run another script beacuse I am renaming the computer in the SetupComplete.cmd script, and I am auto-installing applications in SetupComplete2.cmd that depend on the new computer name, I can't rename the computer and install applications right after, since the computer rename didn't take full effect until a reboot took place, am I wrong?
0
[ 2, 485, 13120, 1202, 5557, 37, 18161, 15990, 9, 9095, 43, 75, 10315, 18, 3515, 306, 1437, 22, 38, 170, 15, 133, 32, 693, 1123, 37, 1936, 800, 3726, 3726, 13, 759, 45, 1936, 453, 12138, 4384, 8, 3326, 13, 5, 9577, 6554, 147, 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...
Capybara & rspec combination can't work together, hanging on it for 2 days === I am new to capybara & rspec and i wrote a simple test(under spec/requests) to test the my root path: # encoding: utf-8 require 'spec_helper' describe "select a course" do before { visit root_path } it "should render main page well" do puts page.html page.should have_xpath("//ul[@class='thumbnails']/li[1]") end end The root page contains both static and dynamic content which indeed contains the above xpath statement by firefinder verification. But the test failed. The reason was that after "visit root_path", the result(page.html) only contained the static part of the whole root. I don't know why. I then try standalone capybara without rails & rspec and it worked correctly. The spec_helper.rb: # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'capybara/rspec' require 'capybara/rails' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} RSpec.configure do |config| # ## Mock Framework # # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: # # config.mock_with :mocha # config.mock_with :flexmock # config.mock_with :rr # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures config.fixture_path = "#{::Rails.root}/spec/fixtures" # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true. config.use_transactional_fixtures = true # If true, the base class of anonymous controllers will be inferred # automatically. This will be the default behavior in future versions of # rspec-rails. config.infer_base_class_for_anonymous_controllers = false end root page: <div class="row"> <%= render partial: 'shared/courses_category', object: @big_categories, as: 'courses_big_categories' %> <div class="span9 courses"> <ul class="thumbnails"> <% @courses.each do |course| %> <%= render(partial: 'shared/course', object: course) %> <% end %> </ul> </div> </div> And it should looked like: <ul class="thumbnails"> <li class="span3"> <div class="thumbnail"> <a href="/courses/2"><img src="http://placehold.it/260x180" alt="掌握ruby"></a> <div class="caption"> <h5>掌握ruby</h5> <p class="course-summary">够fashin够cool的动态语言,应用广泛,简洁直观,让你一生受用</p> <a class="btn btn-primary" href="/select_courses/buy/2">购买</a>&nbsp; <a class="btn" href="/select_courses/store/2">收藏</a> <span class="course-price">¥200</span> </div> </div> </li> But the result(not including the header and footer) was as follows: <div class="row"> <div class="span3 courses-category-panel"> <h2>课程分类</h2> </div> **<div class="span9 courses"> <ul class="thumbnails"></ul> </div>** </div> We could see that the following dynamic parts are NOT generated: <%= render partial: 'shared/courses_category', object: @big_categories, as: 'courses_big_categories' %> <% @courses.each do |course| %> <%= render(partial: 'shared/course', object: course) %> <% end %> Could anyone see this problem or help it?
0
[ 2, 2605, 93, 13259, 279, 13, 1224, 12610, 3733, 92, 22, 38, 170, 429, 15, 4505, 27, 32, 26, 172, 509, 800, 3726, 3726, 31, 589, 78, 20, 2605, 93, 13259, 279, 13, 1224, 12610, 17, 31, 738, 21, 1935, 1289, 5, 4579, 12737, 118, 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...
WCF and Apache Configuration === I'm working with a WCF Service. Basically I want it to get info from my C# methods, they execute SQL Stored Procedures. Last part of the process is for some PHP to consume the WCF. So, I'm new to PHP/apache, and all the info and examples I've found on the web, when it comes to endpoints we have to configure web.config for SSIS. The question I'd like to ask you is: What should I take into consideration for configuring the WCF in Apache?
0
[ 2, 11801, 410, 17, 17140, 8091, 800, 3726, 3726, 31, 22, 79, 638, 29, 21, 11801, 410, 365, 9, 11374, 31, 259, 32, 20, 164, 15404, 37, 51, 272, 5910, 3195, 15, 59, 15644, 4444, 255, 8214, 8876, 9, 236, 141, 16, 14, 953, 25, 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...
Visual Studio 2010 Bug: DirectoryInfo Name = Debug === I'm experiencing something odd. Whenever I attempt to create a [DirectoryInfo][1] object in my code and pass it the root drive (`C:`), that object's Name property is set to "Debug", and the Parent is set to the `{bin}` folder. I don't try to replicate Windows Explorer very often, so I don't know if this is something common or not. I was getting this on my development PC at home, and now it is doing it here at work. Does anyone else get this or is it just me? ![code window][2] [1]: http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.aspx [2]: http://i.stack.imgur.com/BFW8M.png
0
[ 2, 3458, 1120, 498, 6256, 45, 16755, 108, 4120, 204, 800, 121, 16254, 800, 3726, 3726, 31, 22, 79, 15138, 301, 4210, 9, 6634, 31, 1735, 20, 1600, 21, 636, 10197, 93, 108, 4120, 500, 2558, 165, 500, 3095, 19, 51, 1797, 17, 1477, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Knowing when a jquery queue is finished === I'm using two jQuery queues and i want one of them to dequeue after another is finished. How can I know if the first one is finished? Should I use a third queue??! Here is what I have: var $q = $({}); $q.queue('firstQ', function (next) { // blah blah next(); }); $q.queue('secondQ', function (next) { // blah blah next(); }); $q.dequeue("firstQ"); $q.dequeue("secondQ");
0
[ 2, 2506, 76, 21, 487, 8190, 93, 22521, 25, 842, 800, 3726, 3726, 31, 22, 79, 568, 81, 487, 8190, 93, 22521, 18, 17, 31, 259, 53, 16, 105, 20, 121, 2005, 4185, 75, 226, 25, 842, 9, 184, 92, 31, 143, 100, 14, 64, 53, 25, 842...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Extending LinearLayout Null Reference === I want to be able to instantiate a new custom LinearLayout class based on a layout defined in xml. No matter what I do, at runtime, the LinearLayout and all of my TextViews throw a null reference exception. transferListRow.axml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp"> <TextView android:id="@+id/transferSerial" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" android:gravity="center" /> <TextView android:id="@+id/transferModel" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" android:gravity="center" /> <TextView android:id="@+id/transferSite" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" android:gravity="center" /> <Button android:id="@+id/transferDelete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" android:gravity="center" android:src="@drawable/delete" /> </LinearLayout> TransferListRow.cs Attempt 1: sealed class TransferListRow : LinearLayout { private readonly Context _context; public TransferListRow(Context context, string serial, string model, string site) :base(context) { _context = context; LayoutInflator inflator = (LayoutInflator) _context.GetSystemService(Context.LayoutInflaterService); inflator.Inflate(Resource.Layout.transferListRow, null); TextView s = (TextView) FindViewById(Resource.Id.transferSerial); s.Text = serial; TextView m = (TextView) FindViewById(Resource.Id.transferModel); m.Text = model; TextView st = (TextView) FindViewById(Resource.Id.transferSite); st.Text = site; } } TransferListRow.cs Attempt 2: sealed class TransferListRow : LinearLayout { private readonly Context _context; public TransferListRow(Context context, string serial, string model, string site) :base(context) { _context = context; LinearLayout layout = (LinearLayout) FindViewById(Resource.Layout.transferListRow); TextView s = (TextView) layout.FindViewById(Resource.Id.transferSerial); s.Text = serial; TextView m = (TextView) layout.FindViewById(Resource.Id.transferModel); m.Text = model; TextView st = (TextView) layout.FindViewById(Resource.Id.transferSite); st.Text = site; AddView(s); AddView(m); AddView(st); } } End goal would be from my main activity be able to do something like this in a button click event: mainLayout.AddView(new TransferListRow(this, "serial", "model", "site"));
0
[ 2, 8176, 6745, 4414, 1320, 16203, 2801, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 6322, 15882, 21, 78, 5816, 6745, 4414, 1320, 718, 432, 27, 21, 9106, 2811, 19, 23504, 9, 90, 1161, 98, 31, 107, 15, 35, 485, 891, 15, 14, 6745, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 much bandwidth does a medium size blog consumes === I have a medium size blog where i publish around 40 posts a month, all the posts do included images , i also offer downloads on my blog which have approx size of 2mb. **IMAGES** I host all of images on photobucket, flickr and other image hosting sites to make sure i am not counting them with my bandwidth. **INTERNAL IMAGES** Internal blog images like logo and other required stuff is under one sprite image **DOWNLOAD FILES** All the downloading files are kept on a free 000webhost server, which i manage to download using FTP. As far as i know the downloads bandwidth will not be counting to my actual website server **HERE IS THE QUESTION** I am planning to switch to MAX CDN with their initial 1TB plan, now i am not in the condition to renew to plan at least before 10 months. So what you guys think should that 1TB is enough for a medium size blog i have or should i look for a better option. Thanks & Looking for some great help
0
[ 2, 184, 212, 23392, 630, 21, 4152, 1072, 8146, 16447, 18, 800, 3726, 3726, 31, 57, 21, 4152, 1072, 8146, 113, 31, 10824, 140, 1417, 9868, 21, 1617, 15, 65, 14, 9868, 107, 506, 3502, 13, 15, 31, 67, 1994, 7121, 18, 27, 51, 8146, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Render xml (from an exe) to a new window === I'm trying to render (on client side) some XML data retrieved from an EXE (on server side). I can't add any link to an XSLT stylesheet in the XML data, so I'm looking for a javascript function that could transform the XML through my XSLT (which can be stored on the server). Currently, my webpage opens the XML using : onclick="openWindow('Exe/the_url_and_args')" I have no problem in creating an XSLT but I don't know how to call that file using javascript ! Can't find anything relevant googling :( Many thanks !
0
[ 2, 16535, 23504, 13, 5, 2665, 40, 1396, 62, 6, 20, 21, 78, 1463, 800, 3726, 3726, 31, 22, 79, 749, 20, 16535, 13, 5, 218, 6819, 270, 6, 109, 23504, 1054, 3685, 37, 40, 1396, 62, 13, 5, 218, 8128, 270, 6, 9, 31, 92, 22, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I need to resize pictures according to the visitors viewport === Folks, please be gentle, I am not a professional programmer, just a site admin and I need some help. Here is my problem: I am running a web site, with php. I would like to show pictures to my members, but I would like those pictures to remain within specific size limits, so they do not cause the visitors to scroll horizontally in order to view the whole picture. So far, I have limited the size of uploaded pictures to 800x600 as a least common denominator. However, I believe that users with larger monitors should be allowed to see larger pictures, so I plan to remove that 800x600 limit, but I still would like to make sure that the image displayed wouldn't be larger than the visitor viewport (actually let's say 2/3's of the viewport). Now, I understand that php runs on the server and javascript runs on the client and that there is no easy way to pass the viewport dimensions to the php code, I tried and failed miserably, so that is clear. But I've also read (especially in this site) that there are ways to do it, using JQuery and/or Ajax. My main problem? I do not know how to program in Javascript, JQuery or Ajax. So my question is: What exactly should I include in my php file to cause the client to return the browser width to the php file or my html template, in order to use the browser width in the <img src="blablah.jpg" width="browser_width*2/3"> statement my program generates? If I understand this right, when a visitor asks to see a page and my server send them the result of my page, there should be some code, which will send me back the browser width, then the server will resend the page, using the value it received. Am I correct in that? If that's the way it works, it would be ideal if I could get that browser width value and store it in a php global variable, so that not every page is generated twice. Can that be done? Please be very specific, as I said, I am a newbie on these things. Needless to say, any help would be greatly appreciated. Many thanks for your attention. P.S.: I have already download and installed JQuery in my server, but I have no idea how to use it for this problem.
0
[ 2, 31, 376, 20, 302, 10454, 3104, 496, 20, 14, 4531, 1418, 1993, 800, 3726, 3726, 14563, 15, 2247, 44, 5654, 15, 31, 589, 52, 21, 736, 17968, 15, 114, 21, 689, 21, 43, 2160, 17, 31, 376, 109, 448, 9, 235, 25, 51, 1448, 45, 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...
When designing a UI interface for MDPI and HDPI ANdroid how do i beat the height issue? === Having designed an interface for HDPI in Fireworks (480x800) and now moving it over ready for an MDPI version (320x480) i've come across an issue Proportionally, the HDPI screen is slightly taller than the MDPI screen. I know my images will resize, but even still am losing some space height wise Evyerthing fits on screen beautifully on HDPI version....but now its resized down to MDPI the smaller proportion in height means i'm more stuck for space. How does one avoid this issue? I asked the developer if the space between elements can be altered for the MDPI version (eg, on a screen with 8 text fields.... the space between the fields is shortened), he said it will work on percentage of the screen etc.....that's all ok...problem is that A 480x800 screen -- if this is downsized (proportionally width and height) to a width of 320, the height ends up as 533, not 480. Therefore i lose 53 pixels in height. Have I got confused? How do i sort this out? Much thanks
0
[ 2, 76, 15026, 21, 13, 5661, 6573, 26, 8138, 2159, 17, 8590, 2159, 13005, 184, 107, 31, 1800, 14, 2947, 1513, 60, 800, 3726, 3726, 452, 1006, 40, 6573, 26, 8590, 2159, 19, 18916, 13, 5, 16318, 396, 8464, 6, 17, 130, 1219, 32, 84,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Connecting to SAP DB using ODBC === I'd like to access a SAPDB database using ODBC so i've installed the latest ODBC driver from http://www.sapdb.org/ I'm trying to create a connection using the following connection string: DRIVER={SAP DB (Unicode)};SERVER=192.168.12.11;DATABASE=ADQ;UID=ADQTEST;PASSWORD=TESTABC; However I get the following error message: [SAP AG][SQLOD32 DLL][SAP DB] Invalid authorization specification;-4008 POS(1) Unknown user name/password combination I'm fairly certain that the username/password I'm using is correct (we've verified multiple times). I also don't think it's a general network problem since if I give it a non-existing database it actually complains about the "database not running". Only with the correct database I get the invalid authorization error. I'd very much appreciate any hints anyone might be able to give me. Best regards, Thomas
0
[ 2, 6440, 20, 7508, 13, 9007, 568, 12340, 7229, 800, 3726, 3726, 31, 22, 43, 101, 20, 1381, 21, 7508, 9007, 6018, 568, 12340, 7229, 86, 31, 22, 195, 4066, 14, 5736, 12340, 7229, 2425, 37, 7775, 6903, 6483, 9, 18, 2552, 9007, 9, 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...
cxf Web Service doesn't update === I've constructed a CXF Webservice like so - Interface: package de.arvato.icssa.services; import javax.jws.WebService; @WebService public interface TestService { String sayHi(String text); boolean startProcess(String mail, String processName, String locale); } Implementation: package de.arvato.icssa.endpoints; import javax.jws.WebService; import java.util.*; import de.arvato.icssa.util.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import de.arvato.icssa.db.HibernateUtil; import de.arvato.icssa.db.worker.TaskWorker; import de.arvato.icssa.services.TestService; @WebService(endpointInterface="de.arvato.icssa.services.TestService") public class TestServiceImpl implements TestService{ private Log log = LogFactory.getLog(this.getClass()); @Override public String sayHi(String text) { System.out.println("sayHi called"); return "Hello " + text; } public boolean startProcess(String mail, String processName, String locale) { <<<<<CODE>>>>>> } } cxf.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <jaxws:endpoint id="testService" implementor="de.arvato.icssa.endpoints.TestServiceImpl" address="/TestService" /> </beans> Important part of web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/cxf.xml</param-value> </context-param> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/TestService</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/TestService/*</url-pattern> </servlet-mapping> This generally worked fine. My Method "startProcess" used to have 2 parameters (omitting the "locale") - I recently added it, restarted my Tomcat 6.0 Webserver which I've integrated into the "Servers" Eclipse plugin - but that Method will still only accept 2 parameters and run the old code that I've had inside that method before added the third parameter. Any ideas about how I can do a "hard" re-deploy of that webservice? Thanks!
0
[ 2, 272, 396, 410, 2741, 365, 1437, 22, 38, 11100, 800, 3726, 3726, 31, 22, 195, 2096, 21, 272, 396, 410, 2741, 11449, 101, 86, 13, 8, 6573, 45, 6030, 121, 9, 512, 1385, 262, 9, 596, 8234, 9, 11449, 18, 73, 9010, 8247, 396, 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...
alignment of an image within a jpanel === I am currently trying to visualize a couple of images with two JTextAreas below. The following happens: The images are centered and the text within the JTextAreas is left aligned. I would like to be able to also display the images on the left. I am using the following code to make the panel public MetaboliteInfo(SwingEngine se) { super(); Engine engine = se.getEngine(); engine.addApplicationEventListener(this); VPathway vp = engine.getActiveVPathway(); if(vp != null) vp.addSelectionListener(this); this.gdbManager = se.getGdbManager(); this.se = se; setLayout (new BorderLayout()); panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); scroll = new JScrollPane(panel); add (scroll, BorderLayout.CENTER); }
0
[ 2, 12448, 16, 40, 1961, 363, 21, 487, 3206, 532, 800, 3726, 3726, 31, 589, 871, 749, 20, 3458, 2952, 21, 1335, 16, 3502, 29, 81, 487, 11969, 17760, 18, 1021, 9, 14, 249, 5531, 45, 14, 3502, 50, 10583, 17, 14, 1854, 363, 14, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to enable cookies for all browser using c# === In my project am using cookies and working fine.Here comes the problem, when cookies are disabled for browser then what to do?
0
[ 2, 184, 20, 9240, 19396, 26, 65, 16495, 568, 272, 5910, 800, 3726, 3726, 19, 51, 669, 589, 568, 19396, 17, 638, 1123, 9, 6836, 1624, 14, 1448, 15, 76, 19396, 50, 10154, 26, 16495, 94, 98, 20, 107, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to style the text of a UITableViewCell? === How to style the text of a UITableViewCell using Three20 TTStyledTextLabel ? I tried : TTStyledTextLabel* label = [[[TTStyledTextLabel alloc] init] autorelease]; NSInteger i = ...; NSString *s = [NSString stringWithFormat:@"%@ <font color='red'>(%d)</font>", [dic objectForKey:@"name"], i]; label.text = [TTStyledText textFromXHTML:s lineBreaks:NO URLs:NO]; [cell.textLabel addSubview:label]; but the cell just keeps blank. Any idea?
0
[ 2, 184, 20, 1034, 14, 1854, 16, 21, 13, 11193, 579, 4725, 9725, 60, 800, 3726, 3726, 184, 20, 1034, 14, 1854, 16, 21, 13, 11193, 579, 4725, 9725, 568, 132, 1323, 13, 38, 38, 4381, 43, 11969, 21018, 13, 60, 31, 794, 13, 45, 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...
Posting Photo To Friends Timeline Using Graph Api === Not Able To Post On Timeline I want To Post Image On User's Friend's Timeline Help array('method' => 'GET', 'relative_url' => '/'.$user.'/friends'), $friends_list = json_decode($batchResponse[1]['body'], TRUE); $batchPost[] = array('method' => 'POST', 'relative_url' => "/$value/feed", 'body' => http_build_query($body));
0
[ 2, 15669, 3056, 20, 954, 18398, 568, 7210, 21, 2159, 800, 3726, 3726, 52, 777, 20, 678, 27, 18398, 31, 259, 20, 678, 1961, 27, 4155, 22, 18, 860, 22, 18, 18398, 448, 7718, 5, 22, 5909, 1807, 43, 22, 800, 1, 13, 22, 3060, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML blank spaces in email === A VB6 applications sends a HTML email. Please have a look at the code below. The email received has all the blank spaces stripped out i.e. all of the spaces on line 7 are stripped out and the email sent says: "this is a test". Is there a way to send a HTML email with all of the spaces. strMailText = strMailText & "<b><font size=""2"" face=""Arial""><br>Test Email</font></b><br><br>" strMailText = strMailText & "<table border='1'>" strMailText = strMailText & "<tr>" strMailText = strMailText & "<td><b><font size=""2"" face=""Arial"">Test Column</font></b></td>" strMailText = strMailText & "</tr>" strMailText = strMailText & "<td><font size=""2"" face=""Arial"">This is a test</font></td>" strMailText = strMailText & "<tr>" strMailText = strMailText & "table" SendEMail strEmailServer, "test@test.com", strEMailTo, _ "Test Email", strMailText, True
0
[ 2, 13, 15895, 6463, 7644, 19, 8517, 800, 3726, 3726, 21, 13, 20468, 379, 3767, 11350, 21, 13, 15895, 8517, 9, 2247, 57, 21, 361, 35, 14, 1797, 1021, 9, 14, 8517, 420, 63, 65, 14, 6463, 7644, 10841, 70, 31, 9, 62, 9, 65, 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...
Chrome for IOS not opening new window correctly in iframe === I'm trying to open a link in a new window in Chrome for iOS inside an iframe but Chrome for iOS doesn't open the link in a new window, instead the browser opens the link in the same window and not in a new window. The same for popups. Very strange. Example: ------------- test.html ------------- <iframe src="iframe.html" width="500" height="250"></iframe> ------------ iframe.html ------------ <SCRIPT type="text/javascript"> function open_popup() { window.open('http://www.google.com', '_blank', ''); } </SCRIPT> <a href="http://www.google.com" target="_blank">New window</a><br> <a href="#" onclick="open_popup();">New popup</a> ---------------- End ---------------- The links opens in a new window when browsing directly to iframe.html but not when browsing to test.html Is this by design or is it a bug in Chrome for iOS? If it is a bug, does anyone know how to report this bug? (Safari for iOS opens the links in a new window when browsing to test.html)
0
[ 2, 13, 12985, 26, 13, 7760, 52, 1214, 78, 1463, 12044, 19, 31, 8361, 800, 3726, 3726, 31, 22, 79, 749, 20, 368, 21, 3508, 19, 21, 78, 1463, 19, 13, 12985, 26, 13, 7760, 572, 40, 31, 8361, 47, 13, 12985, 26, 13, 7760, 1437, 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...
multiple string replace by position in python === I need to replace a string in a string with an augmented string. My question is, with every replace the positions of the strings in info and the original string change: How can I update it in a pythonic way? str = 'If you do not know where you are going, any road will get you there.' info = {'you': [(3, 3), (25, 3)], 'get you': [(54, 7)], 'know': [(14, 4)]} # replace 'you' from info with '<b>you</b>' and 'know' with '<i>know</i>' # results in str = 'If <b>you</b> do not <i>know</i> where <b>you</b> are going, any road will get you there.' info = {'you': [(6, 3), (42, 3)], 'get you': [(75, 7)], 'know': [(24, 4)]} Kind regards, Matthias
0
[ 2, 1886, 3724, 3934, 34, 649, 19, 20059, 800, 3726, 3726, 31, 376, 20, 3934, 21, 3724, 19, 21, 3724, 29, 40, 22392, 3724, 9, 51, 1301, 25, 15, 29, 352, 3934, 14, 3062, 16, 14, 7887, 19, 15404, 17, 14, 501, 3724, 753, 45, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jquery ui resizable update image dimensions === I'm using jquery ui resizable to resize image and [this plugin to rotate it][1] [1]: http://code.google.com/p/jqueryrotate/wiki/Examples Now when i rotate it let's say `90` degrees `resizable` doesn't know that i did that, so i need to somehow update it or maybe kill it and run it again? Either way i'm not so sure how to do it, could some one help me out with that?
0
[ 2, 487, 8190, 93, 13, 5661, 10719, 3186, 579, 11100, 1961, 9913, 800, 3726, 3726, 31, 22, 79, 568, 487, 8190, 93, 13, 5661, 10719, 3186, 579, 20, 302, 10454, 1961, 17, 636, 1565, 10922, 108, 20, 21448, 32, 500, 2558, 165, 500, 636...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I implement this sound but it is in my other layers as well === The switch button appears in all my other layers and I was wondering if there is a way to only appear in a certain layer. .h file UISwitch *muteSwitch; .m file muteSwitch = [[ UISwitch alloc ] initWithFrame: CGRectMake(0, 290, 0, 0) ]; muteSwitch.on = YES; [muteSwitch addTarget:self action:@selector(soundOnOrOff:) forControlEvents:UIControlEventValueChanged]; [[[CCDirector sharedDirector] openGLView] addSubview:muteSwitch]; [muteSwitch release]; - (void)soundOnOrOff:(id)sender { if ([[SimpleAudioEngine sharedEngine] mute]) { // This will unmute the sound [[SimpleAudioEngine sharedEngine] setMute:0]; } else { //This will mute the sound [[SimpleAudioEngine sharedEngine] setMute:1]; } }
0
[ 2, 31, 8713, 48, 646, 47, 32, 25, 19, 51, 89, 9124, 28, 134, 800, 3726, 3726, 14, 5521, 5167, 1780, 19, 65, 51, 89, 9124, 17, 31, 23, 5712, 100, 80, 25, 21, 161, 20, 104, 1893, 19, 21, 1200, 5385, 9, 13, 9, 252, 3893, 287,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
AjaxBehaviorEvent primefaces3.2 === My problem are tha he return null but if I look when debug in source .. submittedValue have correct date. idUni = (Entity) event.getComponent().getAttributes() .get("value"); idUni = (Entity) event.getComponent().getAttributes() .get("submittedValue"); Any Idea????
0
[ 2, 20624, 863, 20358, 5377, 6645, 1621, 6413, 18, 240, 9, 135, 800, 3726, 3726, 51, 1448, 50, 10565, 24, 788, 16203, 47, 100, 31, 361, 76, 121, 16254, 19, 1267, 13, 9, 9, 7368, 15165, 57, 4456, 1231, 9, 4924, 8843, 800, 13, 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...
Deserialization of xml Entity Framework object with null children === I have got issues with EF and xml de/serialization. I managed to serialized EF object in xml files but I am stuck with the deserialization of those files. My serialize function : public static void SerializeIntoFile(object inputObject, string fileName) { DataContractSerializer serializer = new DataContractSerializer(typeof(Form)); using (XmlWriter wr = XmlWriter.Create(new StringBuilder(fileName))) { serializer.WriteObject(wr, inputObject); } } My deserialize function : public static T DeserializeFromStream<T>(Stream stream) { DataContractSerializer dataContract = new DataContractSerializer(typeof(Form)); return (T)dataContract.ReadObject(stream); } This function is call in silverlight with this function : private void FilePicker(object sender, System.Windows.RoutedEventArgs e) { var filepicker = new OpenFileDialog(); bool? userClickedOK = filepicker.ShowDialog(); if (userClickedOK == true) { var form = SerialisationHelper.DeserializeFromStream<Form>(filepicker.File.OpenRead()); } } And the input xml file : <?xml version="1.0" encoding="utf-8"?> <Form xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/SuiviAT.WebService.EFModel"> <EntityKey xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data" z:Id="i2" xmlns="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses"> <d2p1:EntityContainerName> SuiviATModelContainer </d2p1:EntityContainerName> <d2p1:EntityKeyValues i:nil="true" /> <d2p1:EntitySetName> FormSet </d2p1:EntitySetName> </EntityKey> <Id> 0 </Id> <Rows> <Row z:Id="i3"> <EntityKey xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Data" z:Id="i4" xmlns="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses"> <d4p1:EntityContainerName> SuiviATModelContainer </d4p1:EntityContainerName> <d4p1:EntityKeyValues i:nil="true" /> <d4p1:EntitySetName> RowSet </d4p1:EntitySetName> </EntityKey> <Form z:Ref="i1" /> <FormId> 0 </FormId> <FormReference xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses"> <d4p1:EntityKey xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Data" i:nil="true" /> </FormReference> <Id> 0 </Id> <Label> Couleur </Label> <Type> String </Type> <Value> Bleu </Value> </Row> </Rows> </Form> After the deserialization the returned object have is children null and I don't know why ... If someone could help me it would be appreciate ! Thanks!
0
[ 2, 1746, 106, 2815, 1829, 16, 23504, 9252, 6596, 3095, 29, 16203, 391, 800, 3726, 3726, 31, 57, 330, 1549, 29, 11599, 17, 23504, 121, 118, 4104, 2815, 1829, 9, 31, 1471, 20, 27877, 11599, 3095, 19, 23504, 6488, 47, 31, 589, 4549, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Overflow excpetion when reading decimal values from MS-SQL server === I'm wondering whether this is a bug or if I'm going something wrong. I'm loading values with an SqlDataReader from an SQL2008 database but under certain circumstances, it fails to convert the sql-values into .net-values. (.NET 4.0) I have traced it down to an test-case which demonstrates the actual problem: Working example: "select convert(decimal(38, 19), 260000 ) as test" rs.GetValue(1); --> returns 260000 (decimal) Not working exmaple: "select convert(decimal(36, 26), 260000 ) as test" rs.GetValue(1); --> throws System.OverflowException: Conversion overflows. at System.Data.SqlClient.SqlBuffer.get_Decimal() at System.Data.SqlClient.SqlBuffer.get_Value() at System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) at System.Data.SqlClient.SqlDataReader.GetValues(Object[] values) I have examined the actual values that the SQL server retured. They differ that the non-working one uses 4 integers to express the value, the working one only 3. I did also check the sourcecode with .net Reflector which unveiled that an exception is thrown if the value exists of more then 3 values, but I dont understand the mechanics behind them. So, I'm wondering whether this is a genuine bug in the .net framework.
0
[ 2, 20285, 1396, 150, 1664, 3309, 76, 1876, 26380, 4070, 37, 4235, 8, 18, 22402, 8128, 800, 3726, 3726, 31, 22, 79, 5712, 1472, 48, 25, 21, 6256, 54, 100, 31, 22, 79, 228, 301, 1389, 9, 31, 22, 79, 12797, 4070, 29, 40, 4444, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
windows integration library click event in windows explorer === ---> I got a chance to work in outlook 2007 Add-in. ---> In VS2010 with a outlook2007 Add-in Template I'm started the development, when i run the applicationt outlook automatically started.with some Functions ,events I'm able complete our requirement. ---> Now we got a requirement on Windows Add-in ,by using a windows Application template I'm started the Development. by taking the reference of two DLLs(using Microsoft.WindowsAPICodePack.Shell;using Microsoft.WindowsAPICodePack.Dialogs;) I'm able to tweak some windows integration functionality, Like Adding/Deleting Libraries and Folders. ---> Could any body conform that, is there any predefined template available in VS2010 for windows Add-in with C#..? ---> I Just go ahead with windows Application template.why I took this choice is, I have to show a Login Form when a user click on a Library and validate the user.Does it is the right approach to complete the windows integration requirement..?Please conform...? Issue :- currently I'm unable capture the Click event of the added Library. if I do this I'm able to show the LoginForm. and authentication process. can some body help me to capture the Click Event of a Library in windows explorer.I'm using Windows-7 O/S & VS2010 Professional. Regards Rafi Syed DSTWS Pvt Ltd
0
[ 2, 1936, 8078, 1248, 10840, 807, 19, 1936, 8520, 800, 3726, 3726, 13, 8, 8, 8, 1, 31, 330, 21, 1504, 20, 170, 19, 19837, 624, 3547, 8, 108, 9, 13, 8, 8, 8, 1, 19, 4611, 2751, 29, 21, 19837, 2727, 3547, 8, 108, 22894, 31, 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...
PHP-FPM-like running of Ruby Apps === PHP has PHP-FPM, a pool of PHP processes that run, are managed, go away and respawn, etc. This pool can be used for a bunch of different applications across a system. You set up nginx and tell it to forward requests on a particular port (or unix socket), and the worker handles the rest. It is really, **really** useful when you're on a resource-constrained box running a lot of little apps that aren't frequently. I have not seen anything like this for Ruby, in that Rails takes a while to start and is a self-contained app that runs, rather than PHP was has one or more arbitrary entry points in the form of files that you can throw at it. **Am I correct in my assumption that you can't do the FPM-style app free-for-all with Ruby?** *(I am aware of Heroku and already use it for side-projects, but I'm more interested in learning more how things work under the covers.)*
0
[ 2, 13, 26120, 8, 12087, 79, 8, 1403, 946, 16, 10811, 4865, 18, 800, 3726, 3726, 13, 26120, 63, 13, 26120, 8, 12087, 79, 15, 21, 3067, 16, 13, 26120, 5102, 30, 485, 15, 50, 1471, 15, 162, 229, 17, 302, 22860, 15, 2722, 9, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex - is it possible to find overlaping groups? === i'm new to regex and just want to know if its possible to find "overlaping" groups in the matches. assume the following string: > 20122 0029431 7094 0111 5890 i want now all matches which are: 4number+space+4number+space+4number what i tried is this: [0-9]{4}[\s][0-9]{4}[\s][0-9]{4} but this just gave me: 9431 7094 0111 what i want are these matches: - 9431 7094 0111 - 7094 0111 5890 is this possible with regex?
0
[ 2, 7953, 1706, 13, 8, 25, 32, 938, 20, 477, 15406, 68, 1170, 60, 800, 3726, 3726, 31, 22, 79, 78, 20, 7953, 1706, 17, 114, 259, 20, 143, 100, 82, 938, 20, 477, 13, 7, 2549, 11873, 68, 7, 1170, 19, 14, 1717, 9, 7158, 14, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Fixed size std::vector === I'm currently in the process of changing the way I access my data structures, and I'm reviewing one of two solutions in the general case for vectors of vectors. My incentive is simple; I want cache locality without giving up my interfaces. Yes, it has been profiled, and it was found wanting. I know the max-size of my vectors at compile time, but they won't always be reaching the max. Common case is about 80%, and the total size of each vector is to be relatively small. If I reach that max, I have made an error in logic somewhere, and want it to throw an error. The first solution that came to mind, was to use a Pool allocator with std::vector, seemed like a good idea, but maybe a bit messy; having not used allocators properly before, I wasn't too sure of the solution. I'm not much of a fan for storing the data separate to its owners, and I want the implementation to be as transparent as possible. The second solution works great for me at the moment, but I want to make it a little bit less in line. At the moment, it is thus: class Foo { public: std::array<Bar, 10> bars; size_t used; void add(int var1, int var2) { if (used >= bars.max_size()) throw "Error"; bars[used] = Bar(var1, var2); ++used; } void remove(size_t idx) { bars[idx] = bars.back(); --used; // bars.back().~Bar(); // should happen, not sure if safe } } Which, as mentioned, works great. However, if I wanted to move this solution elsewhere, I'd rather not have to implement it again, and have proper semantics in terms of destruction (similar to that of an *actual* vector). So, I was wondering what a good solution could be? Currently, I've started wrapping an `std::array`, but it is starting to get messy, and I'm sure this is a solved problem? **Reading the below code is *not* necessary to answer the question.** template <typename T, size_t N> class fixed_vector { std::array<T, N> m_array; size_t m_size; public: fixed_vector() : m_size(0) {} auto empty() -> decltype(m_array.empty()) { return m_size == 0; } size_t size() const { return m_size; } auto max_size() -> decltype(m_array.max_size()) const { return m_array.size(); } auto capacity() -> decltype(m_array.max_size()) const { return m_array.size(); } auto data() -> decltype(m_array.data()) { return m_array.data(); } auto front() -> decltype(m_array.front()) { return m_array.front(); } auto back() -> decltype(m_array.back()) { return *(m_array.begin() + m_size); } auto begin() -> decltype(m_array.begin()) { return m_array.begin(); } auto end() -> decltype(m_array.end()) { return m_array.begin() + m_size; } auto at()(size_t i) -> decltype(m_array.at(i)) { return m_array.at(i); } // TODO, should throw if < capacity auto operator[](size_t i) -> decltype(m_array[i]) { return m_array[i]; } // "vector" operations void assign() { /* ... */ } void insert() { /* ... */ } void clear() { /* ... */ } void swap() { /* ... */ } void erase() { /* ... */ } void resize(size_t n, T val = T()) { if (m_size == n) throw 0; if (m_size > N) throw -1; if (n > m_size) { std::fill(this->end(), this->begin() + N, val); } else { for (size_t i = 0; i < n; ++i) { this->pop_back(); } } m_size = n; } void pop_back() { if (m_size <= 0) throw -2; this->back().~T(); --m_size; } void push_back(T val) { if (m_size > N) throw -3; this->back() = val; ++m_size; } }; FWIW, sorry about (ab)use of decltype, I've come from doing several months of `D` where this was a little simpler in terms of type deduction.
0
[ 2, 3535, 1072, 354, 43, 45, 45, 28033, 800, 3726, 3726, 31, 22, 79, 871, 19, 14, 953, 16, 4226, 14, 161, 31, 1381, 51, 1054, 3815, 15, 17, 31, 22, 79, 18046, 53, 16, 81, 6776, 19, 14, 297, 610, 26, 7497, 18, 16, 7497, 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...
Searching for a distributed algorithm to distribute some objects === I'm searching an algorithm to solve the following problem: There are n software components which are able to communicate over multicast. Moreover there is a pool with m objects. Every sw component knows what that pool contains. The obejcts have different values. Depending on the value I want distribute the objects to the sw components. That means: objects with a greater value have to be prefered, objects with a lower value have to be neglected (for example when all sw components can't take more obejcts). It is very important, that no object is distributed more than once. When one object is assigned to a sw component it must not be assigned to another sw component. Furthermore I want to realise the whole thing as a distributed algorithm, that means without a central unit which excecutes that distribution. Any ideas?
0
[ 2, 5792, 26, 21, 4387, 9083, 20, 14751, 109, 3916, 800, 3726, 3726, 31, 22, 79, 5792, 40, 9083, 20, 8402, 14, 249, 1448, 45, 80, 50, 13, 103, 2306, 5090, 56, 50, 777, 20, 8709, 84, 1889, 6146, 9, 9353, 80, 25, 21, 3067, 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...
YouTube - how to determine which ads are scheduled to play === Is there a way to determine which ads (and any information about those ads) are schedule to play, from any particular youtube request or URI? TYIA
0
[ 2, 7330, 13, 8, 184, 20, 3746, 56, 16236, 50, 3758, 20, 418, 800, 3726, 3726, 25, 80, 21, 161, 20, 3746, 56, 16236, 13, 5, 290, 186, 676, 88, 273, 16236, 6, 50, 4345, 20, 418, 15, 37, 186, 1498, 7330, 3772, 54, 13, 3594, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Check for each images if it's visible. If none is visible, do something === $("img").each(function() { if($(this).is(':hidden')) { $("p#nothing").show(); } }); This doesn't work but I really can't find out why. What needs to happen: check all images whether they are visible. If none of them is visible, show a paragraph. Thanks.
0
[ 2, 2631, 26, 206, 3502, 100, 32, 22, 18, 4560, 9, 100, 2369, 25, 4560, 15, 107, 301, 800, 3726, 3726, 5579, 5, 7, 1660, 263, 7, 6, 9, 14322, 5, 22359, 5, 6, 13, 1, 100, 5, 4403, 5, 1565, 6, 9, 403, 5, 22, 45, 1822, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Non-Model Driven Return page in MVC === I am creating my first MVC website. On the site, I need to create a page that allows a user to choose from a object stored in my model database, enter some additional data (in text fields), and then click a button and do a calculation returning a table of results. These results will not be stored in the database. Also, this table of data could change in the number of columns etc that are turned based on what object is chosen. What is the best way to do this with MVC? It is not a standard CRUD operation and all of the MVC tutorials I have research only really cover CRUD operations.
0
[ 2, 538, 8, 13998, 5355, 788, 2478, 19, 307, 8990, 800, 3726, 3726, 31, 589, 2936, 51, 64, 307, 8990, 2271, 9, 27, 14, 689, 15, 31, 376, 20, 1600, 21, 2478, 30, 2965, 21, 4155, 20, 3538, 37, 21, 3095, 8214, 19, 51, 1061, 6018, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
FlexMonkey: Generate Flex Unit Tests; error #3013 === i'm trying to generate flex unit tests from flexmonkey and all i get is this error: Error #3013; but no explanation. Anyone have any idea what is going on? Thanks for any helpful tips!
0
[ 2, 14409, 2111, 4237, 45, 7920, 14409, 1237, 4894, 73, 7019, 11489, 387, 1543, 800, 3726, 3726, 31, 22, 79, 749, 20, 7920, 14409, 1237, 4894, 37, 14409, 2111, 4237, 17, 65, 31, 164, 25, 48, 7019, 45, 7019, 11489, 387, 1543, 73, 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, 0...
joomla: how to create news ticker xml file? === I got this extensions and all i want to konw is how i am able to get the news ticker from xml file and how should I carete this file i tried this one and it not working any help plz ??? xml file http://www.4shared.com/document/uNJ9sdmD/newsxml.html extension link http://extensions.joomla.org/extensions/news-display/articles-display/news-tickers-a-scrollers/6633?qh=YToxMDp7aTowO3M6NDoibmV3cyI7aToxO3M6MzoibmV3IjtpOjI7czo3OiJuZXduZXNzIjtpOjM7czo1OiInbmV3cyI7aTo0O3M6NToibmV3J3MiO2k6NTtzOjY6Im5ld2VseSI7aTo2O3M6NToibmV3cyciO2k6NztzOjY6Im5ld3MnLCI7aTo4O3M6NjoiJ25ldycsIjtpOjk7czo2OiInbmV3cyciO30%3D
0
[ 2, 2640, 2636, 531, 45, 184, 20, 1600, 996, 8809, 106, 23504, 3893, 60, 800, 3726, 3726, 31, 330, 48, 17529, 17, 65, 31, 259, 20, 5191, 499, 25, 184, 31, 589, 777, 20, 164, 14, 996, 8809, 106, 37, 23504, 3893, 17, 184, 378, 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...
Problems with the XML format === I'm creating a wesite which communicates with the server through xml's. In my localhost everything works perfectly fine. Although when upload my website to the server instead of this xml format: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <quser xmlns="http://www...ckp" xmlns:atom="http://www.w3.org/2005/atom"> <username>name</username> </quser> I;m taking this one: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> < :quser xmlns: ="http://www2.macs.hw.ac.uk/ckp" xmlns:atom="http://www.w3.org/2005/atom"> < :username>readered</ :username> <:quser> I declare in my model the following package-info.class @javax.xml.bind.annotation.XmlSchema ( namespace="http://www../ckp", elementFormDefault=XmlNsForm.QUALIFIED, xmlns = { @javax.xml.bind.annotation.XmlNs( prefix=" ", namespaceURI="http://www..ckp"), @javax.xml.bind.annotation.XmlNs( prefix="atom" ,namespaceURI="http://www.w3.org/2005/atom") } ) package model.login; import javax.xml.bind.annotation.*; As i told you in my localhost is working perfectly fine but in the server even if i change the prefix(just for testing i set it prefix="xs") doesn't adopt the changes. Only in my localhost adopt it. Its very wired if you think that the changes i made in my loclhost,when i debug and upload the code on the server should contain them. Moreover, i realise that i forgot some JAXB libraries into the WEB-INF. Just for testing i insert my libs and into the main program library. Then i took and in my localhost the same xml format as in the server. So i decide to delete these libraries from both places. After this in my localhost everything works again but in the server not. Please if anyone face or knows something regard to this issue to give me some instructions.
0
[ 2, 1716, 29, 14, 23504, 2595, 800, 3726, 3726, 31, 22, 79, 2936, 21, 95, 9097, 56, 8709, 18, 29, 14, 8128, 120, 23504, 22, 18, 9, 19, 51, 375, 11694, 796, 693, 5759, 1123, 9, 419, 76, 71, 8294, 51, 2271, 20, 14, 8128, 700, 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...
could not resolve property: Date of: using DateTimeOffset (NHibernate 3.2.0.4000) === I recently got an exception from NHibernate when trying to access the `Date` property of a `DateTimeOffset` property. var v1 = nhSession.Query<MyType>.Where(o => o.DateTimeOffsetProperty.Date == DateTimeOffset.Now.Date).ToList(); I would have thought this would have "just worked." What is the best solution to this problem?
0
[ 2, 110, 52, 9854, 1354, 45, 1231, 16, 45, 568, 1231, 891, 1299, 3554, 13, 5, 13880, 15191, 8820, 203, 9, 135, 9, 387, 9, 300, 3993, 6, 800, 3726, 3726, 31, 1989, 330, 40, 5391, 37, 12109, 15191, 8820, 76, 749, 20, 1381, 14, 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...
ORACLE Web Service Array Parameter Input === would like to create an Oracle Native Web Service which takes in a set of *one or more* license numbers, and returns the status of each license number. The service is a function along these lines: create or replace FUNCTION get_Use_Permits ( permit_number(s) IN ??? ) RETURN XMLTYPE AS v_XML XMLTYPE; BEGIN begin if permit_numbers IS NOT NULL then SELECT XMLELEMENT("STATUS_CODES", XMLAGG(XMLELEMENT("STATUS_CODE", STAT_CDE))) INTO v_XML FROM PERMIT_TABLE p WHERE p.pmt_nbr IN permit_numbers; end if; end; RETURN v_XML; END; Does anyone know how to pass in a parameter like this into the service? Thanks!
0
[ 2, 15759, 2741, 365, 7718, 18906, 6367, 800, 3726, 3726, 83, 101, 20, 1600, 40, 15759, 1275, 2741, 365, 56, 1384, 19, 21, 309, 16, 1637, 849, 54, 91, 2483, 3962, 2116, 15, 17, 4815, 14, 1782, 16, 206, 3962, 234, 9, 14, 365, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 bounds on abstract parameters: a use case concerning ordering === I have a family of containers, of the form trait Value { type Internal implicit def order:Internal => Ordering[Internal] def value:Internal } I want to be able to define an ordering for a specific subtype of Value, using the ordering on the Internal type, like: object Value { implicit def order[V <: Value]:Ordering[V] = Ordering((_:V).value) } However, the compiler says that there is no implicit ordering available for V#Internal, even though such an ordering was specified in the trait. Is there a way to achieve what I'm trying to do?
0
[ 2, 1418, 4138, 18, 27, 8502, 12905, 45, 21, 275, 610, 6477, 15775, 800, 3726, 3726, 31, 57, 21, 190, 16, 18988, 15, 16, 14, 505, 19356, 1923, 13, 1, 1001, 3117, 20290, 6312, 389, 45, 6280, 5025, 800, 1, 15775, 2558, 6280, 5025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Copy row to another sheet in excel using VBA === First off, I have never used VBA (or VB for that matter), so keep that in mind. I am trying to copy a row to another sheet in my workbook. So whenever any change in row 2 will happen in sheet1, that row should be copied in row 2 on sheet2. If row 3 is modified in sheet1, row 5 should be modified on sheet2. I want there to be an empty row between each row on sheet2. I am going to try and create a new table with VBA to place inside this empty row. Anyways, I am getting an error on my Selection.Paste line. I have very limited knowledge (an hours worth) on VBA, so I could be completely off on what I am trying to do. Private Sub Worksheet_Change(ByVal Target As Range) 'Do not worry about column headers If Target.Row = 1 Then Exit Sub 'On Error GoTo ErrHandler Application.EnableEvents = False 'This might be necessary? Sheet1.Rows(Target.Row).Select Selection.Copy Sheet1.Rows(Target.Row).Copy If Target.Row = 2 Then Sheet2.Rows(Target.Row).Select Selection.Paste Else Sheet2.Select Sheet2.Rows(Target.Row + Target.Row - 1).Select Selection.Paste End If ErrHandler: Application.EnableEvents = True 'This might be necessary? End Sub
0
[ 2, 4344, 3131, 20, 226, 6125, 19, 20700, 568, 566, 969, 800, 3726, 3726, 64, 168, 15, 31, 57, 243, 147, 566, 969, 13, 5, 248, 13, 20468, 26, 30, 1161, 6, 15, 86, 643, 30, 19, 594, 9, 31, 589, 749, 20, 4344, 21, 3131, 20, 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...
How do I know if this variable is a file handle? === Say I have this code: function doFileStuff(){ var file = ""; try { file = fileOpen(filePath); // do stuff with file } finally { fileClose(file); } } If the `fileOpen()` process fails, the `fileClose()` call will error. What I need to do is this sort of thing (pseudocode): if (isFile(file)){ fileClose(file); } I know I can test if file is an empty string still, and this works for me here, but it's not testing what I should be testing: whether `file` is a file handle. I can check the object's Java class, but this again sounds a bit hacky to me, and there should be a CFML way of doing it. There should be something like just `isFile()`, shouldn't there? I can't find anything like this in the docs. Any thoughts / tips? I have gone into more depth in my investigations on my [blog][1]. it's too wordy for here. [1]: http://adamcameroncoldfusion.blogspot.co.uk/2012/07/how-do-i-know-if-this-variable-is-file.html
0
[ 2, 184, 107, 31, 143, 100, 48, 7612, 25, 21, 3893, 3053, 60, 800, 3726, 3726, 395, 31, 57, 48, 1797, 45, 1990, 107, 16877, 384, 5386, 5, 6, 1, 4033, 3893, 800, 13, 7, 7, 73, 1131, 13, 1, 3893, 800, 3893, 10157, 5, 16877, 835...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Turning a bean to Json in java === I have a class that I want to turn into JSON, but the constructor does not allow me. The class is called CourseKeyInfo: public class CourseKeyInfo { private String courseKey; private String institutionID; public CourseKeyInfo(String courseKey, String institutionId) { this.courseKey = courseKey; this.institutionID = institutionId; } public String getCourseKey() { return courseKey; } public void setCourseKey(String courseKey) { this.courseKey = courseKey; } public String getInstitutionID() { return institutionID; } public void setInstitutionID(String institutionID) { this.institutionID = institutionID; } } I use `JSONObject body = new JSONObject(responseEntity);` to turn it into json but it give me "The constructor JSONObject(CourseKeyInfo) is undefined" error. Any idea how I can turn my class into json?
0
[ 2, 2101, 21, 15322, 20, 487, 528, 19, 8247, 800, 3726, 3726, 31, 57, 21, 718, 30, 31, 259, 20, 805, 77, 487, 528, 15, 47, 14, 6960, 248, 630, 52, 1655, 55, 9, 14, 718, 25, 227, 674, 4237, 108, 4120, 45, 317, 718, 674, 4237, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Passing a data bound value to code behind? === I am trying to pass a variable that is being returned from a model. I have the following: <%#Eval("Name").ToString().HtmlEnc()%> <span style="font-weight:normal;">&nbsp;&nbsp; <%= StartingDate %>&nbsp;&nbsp; Census=<%=getCensus() %>&nbsp;&nbsp; Acuity=<%=getAcuityByDepartment(FromDate, Eval("Name").ToString())%>&nbsp;&nbsp; <%= EndDate %>&nbsp;&nbsp; Census=<%=getCensus() %> &nbsp;&nbsp; Acuity=<%=getAcuityByDepartment(ToDate, Eval("Name").ToString())%></span> The eval statement is getting the name of a department. I want to pass that into the method I have to return a number. However this doesn't work. I have also tried the following: <%string DepartmentName = Eval("Name").ToString().HtmlEnc(); %> <%DepartmentName %> <span style="font-weight:normal;">&nbsp;&nbsp; <%= StartingDate %>&nbsp;&nbsp; Census=<%=getCensus() %>&nbsp;&nbsp; Acuity=<%=getAcuityByDepartment(FromDate, DepartmentName %>&nbsp;&nbsp; <%= EndDate %>&nbsp;&nbsp; Census=<%=getCensus() %> &nbsp;&nbsp; Acuity=<%=getAcuityByDepartment(ToDate, DepartmentName )%></span> This had no such luck either. Does anyone have any ideas how I can pass this variable along or am I going to have to find another way? Thanks!
0
[ 2, 2848, 21, 1054, 4138, 1923, 20, 1797, 439, 60, 800, 3726, 3726, 31, 589, 749, 20, 1477, 21, 7612, 30, 25, 142, 587, 37, 21, 1061, 9, 31, 57, 14, 249, 45, 13, 1, 11881, 5910, 62, 3377, 5, 7, 7259, 7, 6, 9, 262, 11130, 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...
OpenSAML 3DES keysize === I am using OpenSAML to encrypt my SAML response.I changed my algorithm from AES to TRIPLEDES as below and now it started throwing me exception of //Data encryption parameters - secret key EncryptionParameters encParams = new EncryptionParameters(); encParams.setAlgorithm(EncryptionConstants.ALGO_ID_BLOCKCIPHER_TRIPLEDES); java.security.InvalidParameterException: Wrong keysize: must be equal to 112 or 168 com.sun.crypto.provider.DESedeKeyGenerator.engineInit(DashoA13*..) javax.crypto.KeyGenerator.init(DashoA13*..) javax.crypto.KeyGenerator.init(DashoA13*..) I know I need to set the key size to 168 but how do I set it in OpenSAML using EncryptionParameters?
0
[ 2, 368, 6101, 255, 203, 3196, 1246, 10454, 800, 3726, 3726, 31, 589, 568, 368, 6101, 255, 20, 1957, 11435, 51, 1113, 255, 1627, 9, 49, 1015, 51, 9083, 37, 21, 160, 20, 4684, 3196, 28, 1021, 17, 130, 32, 373, 6033, 55, 5391, 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...
Django view function does not seem to work. === Here are you 2 functions in my django views. The first one and the second should do the same thing. But when I used the first function, it says "outside function" on the last line, which is "return HttpResponse(output)". Why is that? Thanks, Shiyam def main_page(request): output = ''' <html> <head><title>%s</title></head> <body> <h1>%s</h1><p>%s</p> </body> </html> ''' % ( 'Django Learning', 'Welcome', 'WYou can share book marks here!' ) return HttpResponse(output) def main_page(request): title_sowl = "Django Learning" header_sowl = "Welcome" text_sowl = "You can share book marks here" output = u"<html><head><title>%s</title></head><body><h1>%s</h1><p>%s</p></body></html>" % (title_sowl,header_sowl,text_sowl) return HttpResponse(output)
0
[ 2, 3857, 14541, 1418, 1990, 630, 52, 2260, 20, 170, 9, 800, 3726, 3726, 235, 50, 42, 172, 3719, 19, 51, 3857, 14541, 4146, 9, 14, 64, 53, 17, 14, 153, 378, 107, 14, 205, 584, 9, 47, 76, 31, 147, 14, 64, 1990, 15, 32, 898, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 you determine your permissions in AWS S3 through the Java SDK? === I know you can try to read the ACLs or Bucket Policies through the Java SDK, but is there any easy way to just check if you have read and/or write permissions to a bucket and/or its contents? I don't see any "haveReadPermissions()" method or anything in the AmazonS3 class, but maybe I'm missing something? I find it hard to believe there's no easy way to check permissions.
0
[ 2, 184, 107, 42, 3746, 154, 5572, 18, 19, 21, 10268, 13, 18, 240, 120, 14, 8247, 13, 18, 43, 197, 60, 800, 3726, 3726, 31, 143, 42, 92, 1131, 20, 1302, 14, 21, 5316, 18, 54, 12433, 4845, 120, 14, 8247, 13, 18, 43, 197, 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...
Why VM Tracker is empty? === I'm using Allocations template to profile my app on iPhone, but VM Tracker is always empty. Why? How to make it show data? ![enter image description here][1] [1]: http://i.stack.imgur.com/NVAab.png
0
[ 2, 483, 13, 20147, 792, 106, 25, 2424, 60, 800, 3726, 3726, 31, 22, 79, 568, 16840, 18, 22894, 20, 5296, 51, 4865, 27, 21024, 15, 47, 13, 20147, 792, 106, 25, 550, 2424, 9, 483, 60, 184, 20, 233, 32, 298, 1054, 60, 13, 187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 maps & fusion tables API with multiple layers === i'm trying to show a transit route map that allows the user to click on checkboxes to filter by direction. i keep getting the "data may still be loading.." error that does not seem to resolve on refresh/zooming/etc. there are two layers (one with routes and the other with stops) that reference two google fusion tables. the same directional filter feeds into the queries for both tables (i.e., NB filters for both stop and route) i've tried showing only one layer (by commenting out the other) and both seem to work fine on their own. also, the stops data table has about 600 entries, so i don't think this is a limit issue? this is the code in the `<head>` <script type="text/javascript"> function initialize() { // Change these variables for each route var routeNumber = '257'; // Route number as string var mapLatitude = 37.9985; // Center of map latitude var mapLongitude = -122.5372; // Center of map longitude var zoomLevel = 13; // Map zoom level // Map display options var myOptions = { center: new google.maps.LatLng(mapLatitude, mapLongitude), zoom: zoomLevel, mapTypeId: google.maps.MapTypeId.ROADMAP }; // Create map var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); // Create fusion table layers var stopLayer = new google.maps.FusionTablesLayer(); var routeLayer = new google.maps.FusionTablesLayer(); filterMap(routeLayer, stopLayer, map, routeNumber); // Call filter function on click action google.maps.event.addDomListener(document.getElementById('NB'), 'click', function() { filterMap(routeLayer, stopLayer, map, routeNumber); }); google.maps.event.addDomListener(document.getElementById('SB'), 'click', function() { filterMap(routeLayer, stopLayer, map, routeNumber); }); // Filter function to create query function filterMap(routeLayer, stopLayer, map, routeNumber) { var where = generateWhere(); if (where) { if (!routeLayer.getMap()) { routeLayer.setMap(map); } if (!stopLayer.getMap()) { stopLayer.setMap(map); } routeLayer.setOptions({ query: { select: 'Location', from: '1RG-EcymqePVLwa-7lmmkQVdn0RCW4fjQJFouTsc', where: "'Route Number' LIKE " + routeNumber + " AND " + where } }); stopLayer.setOptions({ query: { select: 'latitude', from: '1GTjjCaqkYTM3IDhrt2x8pWO73wCu7KTM1bbEcG8', where: "'Marin Transit Routes' LIKE '%" + routeNumber + "%' AND " + where } }); } else { stopLayer.setMap(null); } } // Generates string of checked options to feed into query function generateWhere() { var filter = []; var directions = document.getElementsByName('direction'); for (var i = 0, direction; direction = directions[i]; i++) { if (direction.checked) { var directionName = direction.value.replace(/'/g, '\\\''); filter.push("'" + directionName + "'"); } } var where = ''; if (filter.length) { where = "'Direction' IN (" + filter.join(',') + ')'; } return where; } } </script> this is the code in the `<body>` <div id="map_canvas" style="width:700px; height:500px"></div> <div> <input type="checkbox" checked="checked" name="direction" id="NB" value="NB" /><label>NB</label> <input type="checkbox" checked="checked" name="direction" id="SB" value="SB" /><label>SB</label> </div>
0
[ 2, 8144, 6867, 279, 11117, 7484, 21, 2159, 29, 1886, 9124, 800, 3726, 3726, 31, 22, 79, 749, 20, 298, 21, 5234, 858, 2942, 30, 2965, 14, 4155, 20, 10840, 27, 2631, 5309, 160, 20, 11945, 34, 1400, 9, 31, 643, 1017, 14, 13, 7, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to cache a hashmap in ruby on rails === I have a view which has a drop down and a couple of partials.The drop down has list of countries. I select a state and click on submit. Based on the selection of the country the partial displays the states with checkbox for each state. I select the checkboxes and click on submit. This should save the states with the country as a key in a hashmap. When i select another country and another list of states, this data should get added to the old hashmap that is already created. I surfed the net and every one says not to use global variables. I tried to cache the hashmap but i'm getting 'cannot dump hash with default proc' error. Please find my view, contoller and partials below. There is no model as i was told that there should not be a model. home.html.erb <%= form_for :country_name, :remote => true, :method => "get", :url => {:action => "show"} do |f| %> <%= f.select :countrynames, options_for_select(@countries, @countries.first)%> //defaults to the first value as selected <%= f.submit "Submit country"%> Partial: <%= form_for :state_selection, :remote => true, :method => "get", :url => {:action => "final_submission"} do |f| %> <% @hash_map[@selected_country].each do |i| %> <%= f.check_box(i)%> <%= f.label("#{i}")%> <br /> <% end %> <br /><br /><br /> <%= f.submit :value => @selected_country%> <% end %> Controller: class Countries < ApplicationController def show @selected_country = params[:county_name][:countrynames] respond_to do |format| format.js //i created a .js.erb file which renders the above partial into home.html.erb end end def final_submission @states_selected = params[:state_selection]//the above partial submits a hashmap of state names with statename as key and checked or unchecked as value @country_selected = params[:commit] respond_to do |format| format.js//here i created another .js.erb file that will render another partial which will display the country selected and its states end end another partial: <%= @country_selected%> <% @states_selected.each do|key, value| %> <% if(value == '1') %> <%= key%> <br /> <%end%> <%end%> Now i need to create a hashmap here so that it can store the current selected values, and the add the second selection values to it. Please let me know where should i initialize the hasmap such that it is not initialized again and again or let me know how can i cache a hash map. Thank you for your patience
0
[ 2, 25, 80, 21, 161, 20, 16522, 21, 19170, 15022, 19, 10811, 27, 2240, 18, 800, 3726, 3726, 31, 57, 21, 1418, 56, 63, 21, 2804, 125, 17, 21, 1335, 16, 7284, 18, 9, 124, 2804, 125, 63, 968, 16, 1166, 9, 31, 5407, 21, 146, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Rendering the AppStore page in HTML === I'm looking for anyway that allow me to see the AppStore page in HTML instead than the actual view (http://i.imgur.com/AeEv1.png) Anyone got a solution? Thank you!
0
[ 2, 15307, 14, 4865, 16828, 2478, 19, 13, 15895, 800, 3726, 3726, 31, 22, 79, 699, 26, 2774, 30, 1655, 55, 20, 196, 14, 4865, 16828, 2478, 19, 13, 15895, 700, 119, 14, 3463, 1418, 13, 5, 21127, 6903, 49, 9, 1660, 11147, 9, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
How to setup java cv in eclipse for android === Can some one tell me how should i set up java cv in eclipse to use android image processing programme.what are the steps i should follow when installing java cv.I need to know is open cv can use in eclipse also. Thanks for the help..!!
0
[ 2, 184, 20, 18161, 8247, 13, 12732, 19, 11652, 26, 13005, 800, 3726, 3726, 92, 109, 53, 494, 55, 184, 378, 31, 309, 71, 8247, 13, 12732, 19, 11652, 20, 275, 13005, 1961, 5511, 2866, 9, 608, 50, 14, 2382, 31, 378, 1740, 76, 25429...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 overlap days into a single "day" === Okay, so. I've got a database which has a column of timestamps. The start of the "day" is 7am. So, say for today, it would start at 0700 on 6/25/12, and end at 0700 on 6/26/12. I'm needing to do calculations within that 24 hour time span. Now, I'm thinking of doing a query that gets all information starting at 0700 + 24 hours, but I'm not 100% on how to phrase said query. Thanks for any and all help.
0
[ 2, 184, 20, 15406, 509, 77, 21, 345, 13, 7, 1185, 7, 800, 3726, 3726, 1705, 15, 86, 9, 31, 22, 195, 330, 21, 6018, 56, 63, 21, 4698, 16, 436, 4919, 1919, 9, 14, 799, 16, 14, 13, 7, 1185, 7, 25, 453, 765, 9, 86, 15, 395, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the max length for the text of a description in a Visual Studio template? === The Visual Studio docs do not specify a max length on the [text for the description of a template][1]. Yet I have found that if the description is too long and on one line, it gets completely replaced with an assembly name of the template file (really weird) or if it is on multiple lines then it just truncates it. Curious if the single line length limit is the same as the multi-line limit. [1]: http://msdn.microsoft.com/en-us/library/3ysk82cz%28v=vs.100%29.aspx
0
[ 2, 98, 25, 14, 2049, 1476, 26, 14, 1854, 16, 21, 5318, 19, 21, 3458, 1120, 22894, 60, 800, 3726, 3726, 14, 3458, 1120, 9765, 18, 107, 52, 19077, 21, 2049, 1476, 27, 14, 636, 11969, 26, 14, 5318, 16, 21, 22894, 500, 2558, 165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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++/CLI nullptr incorrectly treated as "int" === I am writing a managed wrapper in C++/CLI (VS2010) for a third-party unmanaged library. In the code, I have a method that looks like this: if(oldState != _state && UnitStateChanged != nullptr) UnitStateChanged(this, gcnew UnitStateChangedEventArgs(oldState, _state)); The "nullptr" generates the following error: >error C2446: '!=' : no conversion from 'int' to 'UnitStateChangedEventHandler ^' The compiler seems to treat any use of "nullptr" as an "int", even on something as simple as this: Object^ temp = nullptr; Everything i've read indicates that the compiler will figure it out on it's own, but that doesn't seem to be the case. Is there a setting that I'm missing (other than /clr or #pragma managed)?
0
[ 2, 272, 20512, 118, 150, 1210, 16203, 4417, 139, 22870, 4789, 28, 13, 7, 6391, 7, 800, 3726, 3726, 31, 589, 1174, 21, 1471, 28051, 19, 272, 20512, 118, 150, 1210, 13, 5, 710, 18, 2751, 6, 26, 21, 422, 8, 9635, 367, 177, 8030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Array of Objects Crashes During Initialization === I have an array of objects - so essentially an array of object references. Inside the class that I am referencing, there is another reference. I need to initialize this data structure but during init, it crashes. I am trying to initialize the reference inside the referenced class but it always remains null, so there is some Java "thing" that I don't understand yet. This seems so simple yet so frustrating. Here's a dumbed-down example of the problem: public class ref1 { public int myInt; } public class ref2 { public ref1 myRef; } public ref2 buffer[]; int i; // Code to initialize the above data structures: buffer = new ref2[255]; for (i=0; i<255; i++) { buffer[i] = new ref2(); buffer[i].myRef = new ref1(); // (1) ALWAYS returns null???? } Eventually the code above will crash with a "ArrayOutOfBoundsException" at the line where I have the (1) marker. The second thing I notice in the debugger is that myRef is always set to null. Why is it that I cannot create and reference a ref1 object????? If I comment out the line marked with (1), there's no exception trap, so the problem is there. Thanks for anyone who can explain this to a total noob...
0
[ 2, 8247, 7718, 16, 3916, 21563, 112, 2104, 1829, 800, 3726, 3726, 31, 57, 40, 7718, 16, 3916, 13, 8, 86, 7398, 40, 7718, 16, 3095, 7231, 9, 572, 14, 718, 30, 31, 589, 13, 29254, 15, 80, 25, 226, 2801, 9, 31, 376, 20, 2104, 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...
dynamically update a webpage with celery and ajax in django === I need to display some analytics to the user; however, occasionally these analytics can take a while to crunch (sometimes 2-5 seconds). Instead of waiting on these results, I think I would like to have them updated in a dynamic way on the webpage. I already have celery implemented in a limited way, but what I would like to do is send some tasks to celery, have the screen render, and once the function is complete, send the return value to the webpage to by udpated. Once the task is created, should I monitor its status, or once its complete can I just send the json to the webpage directly? some code examples would be helpful. Thank you.
0
[ 2, 7782, 1326, 11100, 21, 2741, 6486, 29, 11692, 3849, 17, 20624, 19, 3857, 14541, 800, 3726, 3726, 31, 376, 20, 3042, 109, 26320, 20, 14, 4155, 73, 207, 15, 4533, 158, 26320, 92, 247, 21, 133, 20, 13, 13555, 13, 5, 9310, 172, 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...
Attribute variable name to a named vector === I have a string and and a number cID = 'x1' num = 1 I want to create a named vector nvec = c(x1 = num) but when I do the following, R interprets `cID` as `'cID'` and not as `'x1'`. nvec = c(cID = num)
0
[ 2, 35, 14755, 7612, 204, 20, 21, 377, 7497, 800, 3726, 3726, 31, 57, 21, 3724, 17, 17, 21, 234, 13, 10220, 800, 13, 22, 396, 165, 22, 13, 6336, 800, 137, 31, 259, 20, 1600, 21, 377, 7497, 13, 103, 195, 150, 800, 272, 5, 396,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 link external stylesheet only if javascript is enabled === I have a page that I want to be styled differently depending on whether javascript is enabled or not. code: <link rel="stylesheet" href="./css/main.css" type="text/css" /> <noscript> <link rel="stylesheet" href="./css/noscript.css" type="text/css" /> </noscript> My problem is that noscript.css only overwrites some attributes, not all. So since main.css have a lot more styling in it it also applies. Only styles that are overwritten looks good. If I remove the link to main.css the page looks as I want it. Is there any way to "reset" all previous style to default, or disable the link to main.css on noscript? Thank you!
0
[ 2, 184, 20, 3508, 4886, 1034, 17627, 104, 100, 8247, 8741, 25, 9338, 800, 3726, 3726, 31, 57, 21, 2478, 30, 31, 259, 20, 44, 1034, 43, 12670, 4758, 27, 1472, 8247, 8741, 25, 9338, 54, 52, 9, 1797, 45, 13, 1, 6258, 13, 7256, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MYSQL DAYNAME() issue === I have a table in a database with the columns d_monday, d_tuesday, d_wednesday, d_thursday, d_friday, d_saturday, d_sunday The values for these are either 0 or Monday, Tuesday, Wednesday, Thursday etc depending on the day. in my select statement I'm using SELECT * from DEALS WHERE d_monday=DAYNAME(NOW()) OR d_tuesday=DAYNAME(NOW()) to find out whether the day name matches up with todays day, if it does then it returns results otherwise it doesn't display anything. For some reason it's returning results when I haven't any value set for that specific day. Any idea what could be the issue?
0
[ 2, 51, 18, 22402, 208, 7259, 5, 6, 1513, 800, 3726, 3726, 31, 57, 21, 859, 19, 21, 6018, 29, 14, 7498, 13, 43, 1, 2111, 1185, 15, 13, 43, 1, 2473, 160, 1185, 15, 13, 43, 1, 458, 43, 2696, 1185, 15, 13, 43, 1, 96, 9679, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get all parameter names along with their values in stored procedure which is being executed === Im using sql server 2012, is there any possible way to get all the parameters of a stored procedure along with the values passed to it. I need these things to build a xml. I mean this should happen in the procedure which being executed and it should be common for all the procedures. For example, let us suppose we have to procedures, 1. uspSave, @name='test' @age=20 2. uspDelete @id=2 now in uspSave procedure, i need to get @name, @age and the values 'test', 20 and in uspDelete, i should get @id with value 2. For getting the column names, i tried this, select parameter_name from information_schema.PARAMETERS where specific_name=OBJECT_NAME(@@procid) now is it possible to loop through the result of above query and can we get the values.
0
[ 2, 184, 20, 164, 65, 18906, 1817, 303, 29, 66, 4070, 19, 8214, 7004, 56, 25, 142, 5557, 800, 3726, 3726, 797, 568, 4444, 255, 8128, 563, 15, 25, 80, 186, 938, 161, 20, 164, 65, 14, 12905, 16, 21, 8214, 7004, 303, 29, 14, 4070,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
android: How to insert a bottom aligned view without layout.xml? === I want to insert views dynamically by using addView method, like this. TextView view = new TextView(this); view.setText("foo"); ViewGroup parentView = (ViewGroup) findViewById(R.id.main_layout); parentView.addView(view); How can I align bottom the inserted view?
0
[ 2, 13005, 45, 184, 20, 14692, 21, 2129, 13, 12740, 1418, 366, 9106, 9, 396, 8184, 60, 800, 3726, 3726, 31, 259, 20, 14692, 4146, 7782, 1326, 34, 568, 3547, 4725, 2109, 15, 101, 48, 9, 1854, 4725, 1418, 800, 78, 1854, 4725, 5, 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...
Handling drag and touch inside onTouch === How to distinguish between Touch and drag in android... I want to create a listview in which people can drag and drop list items,that too with out using a handle... What I have tried and failed is.. case MotionEvent.ACTION_DOWN: mIsClickX = x; mIsClickY = y; and case MotionEvent.ACTION_UP: if(x == mIsClickX &&y == mIsClickY){ return super.onTouchEvent(ev); } Which doesn't work... Thanks in advance for all your valuable suggestions
0
[ 2, 7988, 5501, 17, 1723, 572, 27, 15725, 800, 3726, 3726, 184, 20, 9705, 128, 1723, 17, 5501, 19, 13005, 9, 9, 9, 31, 259, 20, 1600, 21, 968, 4725, 19, 56, 148, 92, 5501, 17, 2804, 968, 3755, 15, 887, 266, 29, 70, 568, 21, 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...
Repeating an image based on div size === I have been working on a site that requires cross browser compatibility (including earlier IE's) and I have a sidebar that uses gradients but it turned out that it is about a million times easier to use a set background image, I have the height of the image repeating properly by taking the height of it based off the main container but I want to do the same the width of it. I am aware of how to stretch the div based on the size of others but I want to know how I can have a conditional statement that will repeat the image y until the end of the div so it doesn't just move the set image!
0
[ 2, 17389, 40, 1961, 432, 27, 13, 12916, 1072, 800, 3726, 3726, 31, 57, 74, 638, 27, 21, 689, 30, 4781, 919, 16495, 13, 21618, 13, 5, 3970, 1201, 13, 660, 22, 18, 6, 17, 31, 57, 21, 270, 1850, 30, 2027, 17442, 18, 47, 32, 412...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Logback: "Could not find Janino library on the class path" === I'm getting error message `Could not find Janino library on the class path. Skipping conditional processing.` What should I incude in classpath to fix this (lib and version)?
0
[ 2, 6738, 1958, 45, 13, 7, 13431, 52, 477, 2262, 3252, 1248, 27, 14, 718, 2013, 7, 800, 3726, 3726, 31, 22, 79, 1017, 7019, 2802, 13, 1, 13431, 52, 477, 2262, 3252, 1248, 27, 14, 718, 2013, 9, 27225, 21206, 5511, 9, 1, 98, 378,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0...
Searching Entity in AppEngine with Optional Property === Im using JPA in Google App Engine. I have a profile entity with many properties, (e.g. from name to hobbies). I allow users to search for the profile entity. Properties for searching are optional. If users did not enter a value for a property, it is excluded in the query. So, different combinations of provided properties in searching will have different query as well. The condition in the query is dynamic, it depends on the provided properties while a user is searching. I have something below for all the properties. if( ! profile.getLocation().equals("") ) condition += " AND p.location = '" + profile.getLocation() + "' "; The problem is that it requires a lot of indexing. What will be the other approach on this? I think it will require hundreds of index for the different combination of properties provided. Thanks.
0
[ 2, 5792, 9252, 19, 4865, 16847, 29, 12832, 1354, 800, 3726, 3726, 797, 568, 487, 1060, 19, 8144, 4865, 1406, 9, 31, 57, 21, 5296, 9252, 29, 151, 3704, 15, 13, 5, 62, 9, 263, 9, 37, 204, 20, 13908, 5893, 18, 6, 9, 31, 1655, 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...
ASP.NET MVC HttpPostedFileBase storage === In ASP.NET MVC, to upload a file I simply use `<input type="file" ... />`, and the action I post the form to takes an `HttpPostedFileBase` as parameter. So far, so good. Now the question is: Does the `HttpPostedFileBase` only contain metadata and reference a temporary file on the server's disk, or does the object contain the actual bytes? This is important because of scalability, since I have a scenario where it would be very convenient to keep the `HttpPostedFileBase` in the session, but I'm afraid this might quickly fill up the server's memory if the object contains the actual bytes of the uploaded file.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 7775, 6962, 69, 16877, 8436, 4326, 800, 3726, 3726, 19, 28, 306, 9, 2328, 307, 8990, 15, 20, 71, 8294, 21, 3893, 31, 1659, 275, 13, 1, 108, 4881, 1001, 3726, 7, 16877, 7, 13, 9, 9, 9, 13, 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...
When using paperclip on Rails3, the character @ gets erased from the file name when uploading === I'm not sure if this is a paperclip issue. Tried it on gitlab and the same thing happened. I have a back end for an iOS app written in Rails, and when I upload an image file with the @ character in the filename, it gets erased upon uploading, if I have a file named, aaa@2x.jpg it gets saved as aaa2x.jpg This is a problem because iOS apps presume that retina supported images are named with the @2x prefix, no clue why such an odd one. I can regex the file name post upload and change it in the database and rename the file, but that seems like an odd hack to do, anyone have any idea whats happening? How to have the file name saved properly to begin with?
0
[ 2, 76, 568, 1397, 150, 6013, 27, 2240, 18, 240, 15, 14, 925, 13, 1, 3049, 25513, 37, 14, 3893, 204, 76, 71, 16866, 800, 3726, 3726, 31, 22, 79, 52, 562, 100, 48, 25, 21, 1397, 150, 6013, 1513, 9, 794, 32, 27, 13, 10404, 9086...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Youtube API subscribers count not updating === I have explained about this problem via video please see the video here: [Strange Problem About Youtube API][1] I am having a strange problem about youtube API . For example http://gdata.youtube.com/feeds/api/users/tryingtobesikh the above api return with the subscribers count. But when someone subscribe , it doesnt update instantly after refresh. But the strange thing is , it updates when i press f5(refresh) two times at once. Don't know what is the problem, may be some cache prob? I am working on a script where i need to check if someone subscribed or not intantly. If the user subscribed do this , if didn't do something else. So i need instant subscribers count changes. Any type of help will be really appreciated. [1]: http://www.youtube.com/watch?v=Q9YaNxJIK8I
0
[ 2, 7330, 21, 2159, 19549, 2468, 52, 71, 43, 1880, 800, 3726, 3726, 31, 57, 2897, 88, 48, 1448, 1197, 763, 2247, 196, 14, 763, 235, 45, 636, 21516, 1448, 88, 7330, 21, 2159, 500, 2558, 165, 500, 31, 589, 452, 21, 2578, 1448, 88, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Allow scrollbar to overlap? === I've got a site with 3 pages, one of which has a scrollbar. When switching between a page without and the page with the scrollbar, the navigation bar changes places, and the transition looks terrible. This is because I have a css/div-based layout, and it centers itself on the window. So, since it will only be covering white space, is there a way to make the scrollbar sit on top of the page, instead of shrinking the page to be next to it?
0
[ 2, 1655, 12159, 1850, 20, 15406, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 689, 29, 203, 4434, 15, 53, 16, 56, 63, 21, 12159, 1850, 9, 76, 13027, 128, 21, 2478, 366, 17, 14, 2478, 29, 14, 12159, 1850, 15, 14, 8368, 748, 1693,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
VBA code to find group of files in a folder, always in the same order, and paste specific cells into master file === I have an excel vba problem that I am trying to solve and after scouring the internet and many forums, i have been unsuccessful. question 1: Is it possible to open file BrianJohnson.xlsx if the cell in a2 says Brian Johnson (or even BrianJohnson)? there will be about 30 files that I would like to open like this so the master file can use cell references in other sheets and things will not get screwy. Sub aaron_gather() ' ' aaron_gather Macro Dim bestandopen Application.ScreenUpdating = False On Error Resume Next 'if there are no 12 sheets bestandopen = Dir("H:\Americorps\*") Do Until bestandopen = "" If bestandopen = "" Then Exit Do If Not bestandopen = "Americorps Master Sheet 1.xlsm" Then Workbooks.Open "H:\Americorps\" & bestandopen ThisWorkbook.Sheets(1).Cells(Rows.Count, 1).End(xlUp).Offset(1) = ActiveWorkbook.Name For i = 1 To 12 ThisWorkbook.Sheets("Total Hours").Cells(Rows.Count, 1).End(xlUp).Offset(, i) = ActiveWorkbook.Sheets(i).Range("E43") Next i ThisWorkbook.Sheets("Total Hours").Columns.AutoFit Workbooks(bestandopen).Close End If bestandopen = Dir Loop End Sub
0
[ 2, 566, 969, 1797, 20, 477, 214, 16, 6488, 19, 21, 19294, 15, 550, 19, 14, 205, 389, 15, 17, 640, 62, 1903, 2934, 77, 1129, 3893, 800, 3726, 3726, 31, 57, 40, 20700, 566, 969, 1448, 30, 31, 589, 749, 20, 8402, 17, 75, 11530, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 make a login first page to enter into the joomla based website? === i am very beginner in web development and making my first project website. please help me i want to make a website in joomla 2.5. i want to use a login page to enter into the website because for the moment i want keep everything behind the door. only users with password will enter into the site. i tried to search on the below link but could not succeed. http://docs.joomla.org/Screen.menus.edit.15#Internal_Link_-_User please anyone help me. alot of thanks in Advance)))
0
[ 2, 184, 20, 233, 21, 6738, 108, 64, 2478, 20, 2830, 77, 14, 2640, 2636, 531, 432, 2271, 60, 800, 3726, 3726, 31, 589, 253, 26931, 19, 2741, 522, 17, 544, 51, 64, 669, 2271, 9, 2247, 448, 55, 31, 259, 20, 233, 21, 2271, 19, 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...
Facebook app that returns names of friends of friends that have app installed === I have an idea for an app that rests largely on this concept. Is this possible at all, or would it be considered a breach of privacy? The app that is being checked for is the app that is doing the checking (if that makes sense), not just a general check for mutual apps.
0
[ 2, 9090, 4865, 30, 4815, 1817, 16, 954, 16, 954, 30, 57, 4865, 4066, 800, 3726, 3726, 31, 57, 40, 882, 26, 40, 4865, 30, 760, 18, 2679, 27, 48, 2420, 9, 25, 48, 938, 35, 65, 15, 54, 83, 32, 44, 724, 21, 9333, 16, 9226, 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...
How to put additional text in select dropdown in foreign key entry in jqgrid === jqGrid populated from remote json data contains select column with additional data in display name: colModel:[ {name:'ship',editable: true,edittype:"select",editoptions:{value:"FE:FedEx (3 days);IN:InTime (1 days);TN:TNT (1 month);AR:ARAMEX (2 months)"}}, ... ], Data contains FedEx, InTime, TNT, ARAMEX names: var mydata2 = [ {id:"12345",name:"Desktop Computer",note:"note",stock:"Yes",ship:"FedEx"}, {id:"23456",name:"Laptop",note:"Long text ",stock:"Yes",ship:"InTime"}, {id:"34567",name:"LCD Monitor",note:"note3",stock:"Yes",ship:"TNT"}, {id:"45678",name:"Speakers",note:"note",stock:"No",ship:"ARAMEX"}, {id:"56789",name:"Laser Printer",note:"note2",stock:"Yes",ship:"FedEx"}, {id:"67890",name:"Play Station",note:"note3",stock:"No", ship:"FedEx"}, {id:"76543",name:"Mobile Telephone",note:"note",stock:"Yes",ship:"ARAMEX"}, {id:"87654",name:"Server",note:"note2",stock:"Yes",ship:"TNT"}, {id:"98765",name:"Matrix Printer",note:"note3",stock:"No", ship:"FedEx"} ]; If inline or form editing is used, select element is empty. for example if column contains FedEx Then line 411 in createEl https://github.com/tonytomov/jqGrid/blob/master/js/grid.common.js#L411 if (!msl && ($.trim(sv[0]) == $.trim(vl) || $.trim(sv[1]) == $.trim(vl))) { ov compares "FedEx" with "FedEx (3 days)" and does nor find match. How to show additional text in select dropdown ? Is it possible/resonable to add 1 months, 3 months etc as additional column to select dropdown and force jqGrid createEl to ignore them on comparion or other idea ?
0
[ 2, 184, 20, 442, 1351, 1854, 19, 5407, 2804, 2968, 19, 1228, 1246, 2792, 19, 487, 1251, 16375, 800, 3726, 3726, 487, 1251, 16375, 11111, 37, 5388, 487, 528, 1054, 1588, 5407, 4698, 29, 1351, 1054, 19, 3042, 204, 45, 3313, 13998, 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...
Does @synthesize something = _something; autocreate the variable _something too? === I understand that @synthesize autocreates the getters and setters for an instance variable. When I specify the = _something part, I understand that this informs the compiler/runtime that I want it to use a particular backing variable for the getters/setters. Does objective-c autocreate the _something variable along with my getters/setters or should I be defining that instance variable in my interface/implementation file? Thanks!
0
[ 2, 630, 13, 1, 9507, 124, 10454, 301, 800, 13, 1, 9099, 73, 3108, 6037, 1373, 14, 7612, 13, 1, 9099, 266, 60, 800, 3726, 3726, 31, 1369, 30, 13, 1, 9507, 124, 10454, 3108, 6037, 7759, 14, 164, 6052, 17, 309, 6052, 26, 40, 4851...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Merging multiple rows as separate columns using keys from second table === I have two tables. Users: int player_id varchar player_name Games: int game_id int player_id1 int player_id2 I want to make a query that takes in a player id as a parameter, and returns info on each game, along with the player's name. So far, what I have is the following: SELECT game_id, player_id1, player_id2, from GAMES, GAME_STATES where player_id1=@playerid or player_id2=@playerid The part I'm stuck at is a simple way to have it return the names of players along with the player ids. The returning query would have 5 columns, one of the game id, two for each player id, and two for each of their names. One solution I thought of is SELECT game_id, player_id1, (select player_name from USERS where player_id=player_id1) as player_name1, player_id2, (select player_name from USERS where player_id=player_id2) as player_name2, from GAMES, GAME_STATES where player_id1=@playerid or player_id2=@playerid However, this seems like a lot of extra work on the database since there would be 2 more queries per row returned. If I have to do that, I'm wondering if making requests for names as a second query on the client side is a better option. Then the client could create a list of unique ids, and do one query for all of them. I'm not too worried about latency since the client and server are in the same data center. Thank you for your help. -Nick
0
[ 2, 18842, 1886, 11295, 28, 1725, 7498, 568, 5534, 37, 153, 859, 800, 3726, 3726, 31, 57, 81, 7484, 9, 3878, 45, 19, 38, 517, 1, 1340, 4033, 5433, 517, 1, 7259, 466, 45, 19, 38, 250, 1, 1340, 19, 38, 517, 1, 1340, 165, 19, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where i can fing complete manual about style of dialog window? === Where i can fing complete manual about style of dialog window? I've create custom dialog dialog = new Dialog(this, style); As result i want to change background of title and buttons region(footer).
2
[ 2, 113, 31, 92, 398, 68, 1279, 5132, 88, 1034, 16, 28223, 1463, 60, 800, 3726, 3726, 113, 31, 92, 398, 68, 1279, 5132, 88, 1034, 16, 28223, 1463, 60, 31, 22, 195, 1600, 5816, 28223, 28223, 800, 78, 28223, 5, 1565, 15, 1034, 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...
Extern functions in C vs C++ === In `*.h` header files of a `C` library, should one declare functions as `extern void f()` or only `void f()`. Case 1, when using only in `C`, case 2 when using from `C++`.
0
[ 2, 1396, 8766, 3719, 19, 272, 4611, 272, 20512, 800, 3726, 3726, 19, 13, 1, 2483, 9, 252, 1, 157, 106, 6488, 16, 21, 13, 1, 150, 1, 1248, 15, 378, 53, 10123, 3719, 28, 13, 1, 1706, 8766, 11364, 398, 5, 6, 1, 54, 104, 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...
Make an application replace existing Application === I have 2 Applications 1 with Ads and 1 without Ads. I created one without ads and then copied the project in eclipse. I named the new project AdFree. I then proceeded to add Ads to the other project. Now, both Projects have the same com.mycompany.myapp name so when I tried to upload it it said I already had a project with that name even though the APK's where named differently. I want it so if they have the Free (Ad based version) version and they purchase the one without ads, it will replace the Free Version that is already there.
0
[ 2, 233, 40, 3010, 3934, 3149, 3010, 800, 3726, 3726, 31, 57, 172, 3767, 137, 29, 16236, 17, 137, 366, 16236, 9, 31, 679, 53, 366, 16236, 17, 94, 18225, 14, 669, 19, 11652, 9, 31, 377, 14, 78, 669, 21, 43, 4639, 9, 31, 94, 88...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 load function different results to URL === The following function triggers a search function and loads their results into a container. For some unknown reason, unlike if one types the URL and query into the browser bar, it only seams to work if their are 5 or more characters in the search.???? function searchelectors(q){ t=$(q).val().replace(" ","+"); $('.searchelectors').load('<?php echo 'http://'.$site_url.$site_uri;?>?q=' + t + ' .searchelectors',function(){ $('.searchelectors .wheel').slideUp(200); }); }
0
[ 2, 487, 8190, 93, 6305, 1990, 421, 1736, 20, 287, 6362, 800, 3726, 3726, 14, 249, 1990, 7286, 18, 21, 2122, 1990, 17, 19069, 66, 1736, 77, 21, 12147, 9, 26, 109, 2562, 1215, 15, 2822, 100, 53, 2551, 14, 287, 6362, 17, 25597, 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...
Flip iPhone viewController after few seconds to show data change === I want to flip animation of view on button click, so that I can change text and images on same view controller and it can give cool animation in my iPhone app. I have used this code perviously for flip transition:- [self.navigationController pushViewController: viewControllerName animated:NO]; [UIView setAnimationDuration: 0.7]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO]; [UIView commitAnimations]; but it will push a new viewcontroller that I don't want. ***I want flip this animation on same view*** ***Please Help.***
0
[ 2, 8805, 21024, 1418, 12898, 1252, 75, 310, 2582, 20, 298, 1054, 753, 800, 3726, 3726, 31, 259, 20, 8805, 6236, 16, 1418, 27, 5167, 10840, 15, 86, 30, 31, 92, 753, 1854, 17, 3502, 27, 205, 1418, 9919, 17, 32, 92, 590, 2700, 6236...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
URI formating URL === All I have the the following lines of code... (.net 3.5) string URL = "http://api.linkedin.com/v1/people/url=http%3a%2f%2fuk.linkedin.com%2fpub%2fjulian-welby-everard%2f0%2fb97%2f416"; UriBuilder uri = new UriBuilder(URL); this returns a URL in the URI object of http://api.linkedin.com/v1/people/url=http://uk.linkedin.com/pub/julian-welby-everard/0/b97/416 which as been decoded, I do not what this to happen so I tried to encoded the data twice giving string URL = "http://api.linkedin.com/v1/people/url=http%253a%252f%252fuk.linkedin.com%252fpub%252fjulian-welby-everard%252f0%252fb97%252f416"; UriBuilder uri = new UriBuilder(URL); this now returns the URL as follows http://api.linkedin.com/v1/people/url=http%253a%252f%252fuk.linkedin.com%252fpub%252fjulian-welby-everard%252f0%252fb97%252f416 note that it has not decoded anything this time, i was hoping that it would decode just like the first attempt but as this had been double encoded it would return the string in the correct format. So the question is as follows, I can I stop the URI object from decoding the supplied URL so I can pass the correct data accross to the HttpWebRequest. Julian
0
[ 2, 13, 3594, 2595, 68, 287, 6362, 800, 3726, 3726, 65, 31, 57, 14, 14, 249, 1560, 16, 1797, 9, 9, 9, 13, 5, 9, 2328, 203, 9, 264, 6, 3724, 287, 6362, 800, 13, 7, 21127, 6903, 2552, 49, 9, 6258, 69, 108, 9, 960, 118, 710, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Fusion Tables query speed === I'm trying to implement the autocomplete logics available in the Fusion Tables interface using just client side JavaScript: ![enter image description here][1] So far I found this, which works great: https://developers.google.com/fusiontables/docs/samples/autocomplete It allows me to retrieve all the values for a property, grouped together, so I can autocomplete them. The issue is that it's **extremely** slow. The query "SELECT 'Store Name', COUNT() " + 'FROM ' + tableId + " GROUP BY 'Store Name' takes up to 10 seconds to run, each time. This is because my table is quite big with more than 150 thousand rows. However, the *native* interface from the screenshot above is **dead fast**. I tried looking into the code and see what type of query they were making (maybe they have a cache of these results), but I cannot find anything to lead me to a solution. Any ideas? My thinking is that if the Google native interface is doing it, then there most definitely is a way for me to do it as well... I want to avoid having to use a third party server to cache these results, that would be an easy fix, and it's not the solution to my problem. [1]: http://i.stack.imgur.com/AQljR.png
0
[ 2, 11117, 7484, 25597, 1362, 800, 3726, 3726, 31, 22, 79, 749, 20, 8713, 14, 3108, 15990, 7085, 18, 904, 19, 14, 11117, 7484, 6573, 568, 114, 6819, 270, 8247, 8741, 45, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to return enum from JNI === In java I have: public class MyClass{ public enum STATUS { ONE = 1, TWO = 2 } public native STAUS nativeGetStatus(); ... private STATUS state = nativeGetStatus(); //returns enum } I want native method 'nativeGetStatus' to return this enum value. JNI returning integer and comapring with value of enum in java is an option, but was wondering is it possible to return value via jobject and assign it directly to state ? if yes how? Regards, Krt
0
[ 2, 184, 20, 788, 1957, 723, 37, 487, 889, 800, 3726, 3726, 19, 8247, 31, 57, 45, 317, 718, 51, 1898, 1, 317, 1957, 723, 1782, 13, 1, 53, 800, 137, 15, 81, 800, 172, 13, 1, 317, 1275, 6419, 267, 1275, 3060, 10631, 267, 5, 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...
Duplicated code vs easy merging === I have working code in master. I need to create new app as a new branch, which has additional functionality, that is similar with what is already in master. I also need from time to time do merging changes from master to new branch. I've tried following approaches: 1. Create new classes separately, despite of they have similar functionality + There's no problems with git merge master - There's duplicated code 2. Create abstract classes for common functionality, then inherit from it old master classes and new branch classes + There's no duplicated code - There's permanent problems with git merge master So which way is preferred? Or is there correct (another) solution?
0
[ 2, 19429, 43, 1797, 4611, 2010, 18842, 800, 3726, 3726, 31, 57, 638, 1797, 19, 1129, 9, 31, 376, 20, 1600, 78, 4865, 28, 21, 78, 1686, 15, 56, 63, 1351, 18548, 15, 30, 25, 835, 29, 98, 25, 614, 19, 1129, 9, 31, 67, 376, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get data from property list into an NSArray programmatically? === I have generated a property list which save some hospital names. Now I want to get the names into an array from that plist. please help me. Thanx in advance.
0
[ 2, 184, 20, 164, 1054, 37, 1354, 968, 77, 40, 13, 103, 4964, 2787, 625, 6732, 1326, 60, 800, 3726, 3726, 31, 57, 6756, 21, 1354, 968, 56, 2079, 109, 980, 1817, 9, 130, 31, 259, 20, 164, 14, 1817, 77, 40, 7718, 37, 30, 351, 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, 0, 0, 0, 0, 0, 0...
can't set an image in ListView in winform (c#) === I am working on WinMobile and running my code on the emulator. My code for setting the image is: ImageList il = new ImageList(); if (File.Exists(@"online1.BMP")) il.Images.Add((Image)new Bitmap(@"c:\online1.BMP")); For some reason, the condition is always FALSE, although the file exists in the folder. Does the "File.Exists" function refers to the phone's library? or the computer's (as I assume)?
0
[ 2, 92, 22, 38, 309, 40, 1961, 19, 968, 4725, 19, 628, 4190, 13, 5, 150, 5910, 6, 800, 3726, 3726, 31, 589, 638, 27, 628, 12571, 17, 946, 51, 1797, 27, 14, 3579, 14868, 9, 51, 1797, 26, 2697, 14, 1961, 25, 45, 1961, 5739, 631...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...