unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Can't seem to make .offset from the bottom position work in a scroll function === I'm having trouble setting 2 positions on a scroll function using offset. I have created a fiddle so you can see... [http://jsfiddle.net/motocomdigital/SGCHt/10/][1] When you open this fiddle, reduce the fiddle preview viewport down to the similar size of the screenshot below. ![enter image description here][2] **MY PROBLEM** You can see I'm using conditional statements to control the positioning of the blue tabs, depending on what scroll point they are at. The yellow columns represent the tab containers, and I'm tyring to use a `if else` statement to control the bottom positioning so the blue tabs never go outside the yellow containers. But I can't get this to work. My bottom positon offset does not work. var $tab = $('.tab-button'); $tab.css({ top:'10000px' }); $(window).bind("resize.browsersize", function() { var windowHalf = $(window).height() / 2, content = $("#content"), pos = content.offset(); $(window).scroll(function(){ if ($(window).scrollTop() >= pos.top + windowHalf ){ $tab.removeAttr('style').css({ position:'fixed', top:'50%'}); } else if ($(window).scrollTop() >= pos.bottom ){ $tab.removeAttr('style').css({ bottom:'0px'}); } else { $tab.removeAttr('style').css({ top: $(window).height() + 'px' }); } }); }).trigger("resize.browsersize"); ​ Can anyone please help me understand where I'm going wrong. Thanks Josh [1]: http://jsfiddle.net/motocomdigital/SGCHt/10/ [2]: http://i.stack.imgur.com/30tsc.png
0
[ 2, 92, 22, 38, 2260, 20, 233, 13, 9, 1299, 3554, 37, 14, 2129, 649, 170, 19, 21, 12159, 1990, 800, 3726, 3726, 31, 22, 79, 452, 2572, 2697, 172, 3062, 27, 21, 12159, 1990, 568, 17493, 9, 31, 57, 679, 21, 12759, 86, 42, 92, 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...
NSURLConnection does trigger didReceiveData, but the returned data is zero === **Additional question:** Total received data length is now 89973. But converting it into a string using the code below returns a (null) string. **Solved it:** Changed the encoding to NSASCIIStringEncoding and now it works. NSString *responseString = [[NSString alloc] initWithData:receivedData encoding:NSUTF8StringEncoding]; NSLog(@"Received string: %@", responseString); **Solved question:** I am trying to log into a website and get the returned data. Everything is working fine and the redirects work like they should. Also didReceiveData is getting called multiple times, but the strange thing is: The data length is zero. Even if I NSLog the data length from within didReceiveData. Below are both the .m and .h file and the resulting NSLog information. I am pretty new to Objective-C and I am trying to fix this for hours now, but I can't seem to find the cause. I hope someone can have a look for me. This is the .m file #import "SiteConnection.h" @implementation SiteConnection @synthesize username; @synthesize password; // Other - (void) printInstanceVars { - (void) getInformation { // Enable Network Indicator [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; // Set the request URL url = [NSURL URLWithString:@"http://url.com"]; // Create the request using the URL defined above NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:url]; // Change User-Agent to a Browser [request setValue:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1" forHTTPHeaderField:@"User-Agent"]; // Change method to POST [request setHTTPMethod:@"POST"]; // Create POST string NSString *requestData = [NSString stringWithFormat:@"data=value"]; // Append POST string to the request [request setHTTPBody: [requestData dataUsingEncoding:NSUTF8StringEncoding]]; // Initialize the connection NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO]; // Start the connection [connection start]; } - (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response; int statusCode = [httpResponse statusCode]; // http statuscodes between 300 & 400 is a redirect ... if (response && statusCode >= 300 && statusCode < 400) { NSLog(@"Redirecting to : %@ (%u)", [request URL], statusCode); } return request; } - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { [receivedData setLength:0]; NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response; NSLog(@"Response: %u (%@)", [httpResponse statusCode], [NSHTTPURLResponse localizedStringForStatusCode:[httpResponse statusCode]]); } - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { [receivedData appendData:data]; NSLog(@"Receiving data... Length: %d", [receivedData length]); } - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error { NSLog(@"Error: %@", [error localizedDescription]); } - (void)connectionDidFinishLoading:(NSURLConnection *)connection { // Hide Network Indicator [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO]; // Display data length NSLog(@"Total received data: %d", [receivedData length]); // Convert data into string and display it NSString *responseString = [[NSString alloc] initWithData:receivedData encoding:NSUTF8StringEncoding]; NSLog(@"Received string: %@", responseString); //NSLog(@"Cookies: %@", [[NSHTTPCookieStorage sharedHTTPCookieStorage] description]); } This is the .h file #import <Foundation/Foundation.h> @class StatusViewController; @interface SiteConnection : NSObject { NSString *username; NSString *password; NSURL *url; NSMutableData *receivedData; } @property NSString *username; @property NSString *password; // Other - (void) printInstanceVars; - (void) getInformation; @end This is the resulting NSLog: 2012-07-02 15:41:12.578 Vodafone[25051:11303] Response: 200 (no error) 2012-07-02 15:41:12.578 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.580 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.580 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.582 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.583 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.585 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.586 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.587 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.590 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.590 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.591 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.592 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.596 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.601 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.605 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.608 Vodafone[25051:11303] Receiving data... Length: 0 2012-07-02 15:41:12.608 Vodafone[25051:11303] Total received data: 0 2012-07-02 15:41:12.608 Vodafone[25051:11303] Received string:
0
[ 2, 13, 103, 4082, 255, 25996, 872, 630, 7286, 144, 27700, 4375, 15, 47, 14, 587, 1054, 25, 4606, 800, 3726, 3726, 13, 1409, 14854, 9861, 192, 1301, 45, 1409, 600, 420, 1054, 1476, 25, 130, 469, 3483, 4440, 9, 47, 19583, 32, 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...
Delphi How to wait for socket answer inside procedure? === For some specific needs i need to create procedure that waits for socket request (or answer) in dll: TForm1 = class(TForm) ServerSocket1: TServerSocket; ...... procedure MyWaitProc; stdcall; begin Go := false; while not Go do begin // Wating... // Application.ProcessMessages; // Works with this line end; end; procedure TForm1.ServerSocket1ClientRead(Sender: TObject; Socket: TCustomWinSocket); begin MessageBoxA(0, PAnsiChar('Received: '+Socket.ReceiveText), '', MB_OK); Go := true; end; exports MyWaitProc; When I call <code>Application.ProcessMessages</code> everything works fine: application waits for request and then continues. But in my case calling <code>Application.ProcessMessages</code> causes to unlocking main form on host application (not dll's one). When I don't call <code>Application.ProcessMessages</code> application just hangs couse it cannot handle message... So, how to create such a procedure that's wating for socket answer ? Maybe there a way to wait for socket answer without using <code>Application.ProcessMessages</code> ?
0
[ 2, 23030, 184, 20, 1760, 26, 18482, 1623, 572, 7004, 60, 800, 3726, 3726, 26, 109, 1903, 2274, 31, 376, 20, 1600, 7004, 30, 1760, 18, 26, 18482, 3772, 13, 5, 248, 1623, 6, 19, 13, 43, 211, 45, 13, 38, 4190, 165, 800, 718, 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...
How can I remove the glow when you click on a link? === How can I remove the glow when you click on a link? for Android 2.3, Safari/533.1 exapmle http://pic.lg.ua/l/VR6im/fTYa89/2
0
[ 2, 184, 92, 31, 4681, 14, 6839, 76, 42, 10840, 27, 21, 3508, 60, 800, 3726, 3726, 184, 92, 31, 4681, 14, 6839, 76, 42, 10840, 27, 21, 3508, 60, 26, 13005, 172, 9, 240, 15, 25055, 118, 26445, 9, 165, 1396, 2552, 79, 413, 7775, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 my application in context menu? === I know, that I can write "firefox.exe" in command, but when I write my application like "myapp.exe" it doesn't work. If I use full path "C:\...\myapp.exe" it works, but application can be installed anywhere else, so how to write short command? Also, in run utilite when I write myapp.exe it can't find it
0
[ 2, 184, 20, 275, 51, 3010, 19, 4141, 11379, 60, 800, 3726, 3726, 31, 143, 15, 30, 31, 92, 2757, 13, 7, 5929, 18219, 9, 1706, 62, 7, 19, 1202, 15, 47, 76, 31, 2757, 51, 3010, 101, 13, 7, 915, 7753, 9, 1706, 62, 7, 32, 1437,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Attaching multiple files through MIMEs to a document in Lotus Domino === In our enterprise application we need to attach files to a document. We have the filename and the content of the file in a byte array. I found a solution to attach a file to a document with MIMEs: final MIMEEntity body = document.createMIMEEntity(fileName); final MIMEHeader bodyHeader = body.createHeader("Content-Disposition"); final boolean isHeaderValSet = bodyHeader.setHeaderVal("attachment; filename=\"" + fileName + "\""); if (!isHeaderValSet) { throw new ComponentException("Could not set MIME header value."); } body.setContentFromBytes(fileContentOutput, mimeType, MIMEEntity.ENC_IDENTITY_BINARY); final boolean saveSuccessful = document.save(); if (!saveSuccessful) { throw new Exception("Cannot attach file " + fileName + "to document: " + documentUniversalId); } This method seems to work for a file, but when I try to upload another one I get the following exception: > NotesException: Item body already exists Is there a way to attach multiple files to a document, when you only have the name of the file and the contents in a byte array?
0
[ 2, 19514, 68, 1886, 6488, 120, 26193, 18, 20, 21, 4492, 19, 15175, 23320, 800, 3726, 3726, 19, 318, 6002, 3010, 95, 376, 20, 19514, 6488, 20, 21, 4492, 9, 95, 57, 14, 3893, 7259, 17, 14, 2331, 16, 14, 3893, 19, 21, 34, 591, 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...
Knockout checkbox change event sends old value === I'm having a problem with knockout "checked" binding. It seems that "change" event at checkbox return old value, before it is updated(so if it was unchecked it will return false). I don't think that I can subscribe to the value since I have it inside object. <tbody data-bind="foreach: Categories"> <tr> <td><input type="checkbox" data-bind="checked: ShowOpened, event: { change: $root.CategoryChange }" /></td> </tr> </tbody> <script type="text/javascript"> var Category = function (Id, Name, Order, ShowOpened) { this.Id = Id; this.Name = Name; this.Order = Order; this.ShowOpened = ShowOpened; this.IsUpdated = false; this.OldOrder = Order; this.OldShowOpened = ShowOpened; }; var ViewModel = { Categories: ko.observableArray([]), CategoryChange: function(pCategory) { if(pCategory.Order != pCategory.OldOrder || pCategory.ShowOpened != pCategory.OldShowOpened) pCategory.IsUpdated(true); else pCategory.IsUpdated(false); } }; ko.applyBindings(ViewModel); </script> So in this example I have ShowOpened checkbox that can trigger CategoryChange method that will change a variable inside object(that I need later to know what object are updated). But when the chechbox is changed it always send out the old value, triggering method, and then changes the value. Is there any way to fix this?
0
[ 2, 11676, 2631, 5309, 753, 807, 11350, 315, 1923, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 29, 11676, 13, 7, 12542, 69, 7, 8728, 9, 32, 2206, 30, 13, 7, 16229, 7, 807, 35, 2631, 5309, 788, 315, 1923, 15, 115, 32, 25, 6372, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javax.el.PropertyNotFoundException: Target Unreachable, 'null' returned null === I want to add value in database which I need to pass the facility code then need to retrieve the facility id and store it in sector table but i'm unable to pass value Please refer to error below. javax.el.PropertyNotFoundException: /jsp/maintenance/sector.xhtml @60,241 value="#{sectorMainAction.sectorEBean.facilityEBean.facCode}": Target Unreachable, 'null' returned null xhtml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:composite="http://java.sun.com/jsf/composite" xmlns:o="http://openfaces.org/" xmlns:d="http://dcvs.dhl.com/components/custom"> <h:body> <ui:composition template="../../template/commonLayout.xhtml"> <ui:define name="menu"> <ui:include src="../../template/subMenuAfterLogin.xhtml" /> </ui:define> <ui:define name="content"> <div> <h:form id="frmSectorMaintenance"> <div name="form_panel" style="width: 984px"> <h:messages id="comp_messages" showSummary="true" showDetail="false" infoClass="info" infoStyle="Color: #009900;font-size: 11pt" warnClass="warn;" warnStyle="Color: blue;font-size: 11pt" errorClass="error" errorStyle="Color: red;font-size: 11pt" fatalClass="fatal" fatalStyle="Color: red;font-size: 11pt"/> <div class="form_left"> <div> <table> <tr> <td> <br/> <h3>#{message.label_sector_title}</h3> <br/> </td> </tr> <tr> <td style="padding-right:0px;padding-bottom:0px;padding-top:0px;"> <table> <tr> <td style="padding-left:0px;padding-right:1.5px;padding-bottom:0px;padding-top:0px;"> <h:outputLabel value="#{message.maintenance_mode}"></h:outputLabel> </td> <td class="outputText" style="padding-left:0.1em;"> <h:outputText id="modeValue" value="#{sectorMainAction.mode}"></h:outputText> </td> </tr> </table> </td> </tr> <tr> <td> <h:outputLabel value="#{message.label_sector_facility}"></h:outputLabel> <h:inputText label="#{message.label_sector_facility}" id="addfacilityval" value="#{sectorMainAction.sectorEBean.facilityEBean.facCode}" converter="toUpperConverter" maxlength="20" required="true"> <!-- <f:attribute name="pattern" value="[^\|&gt;&lt;]*"/> --> </h:inputText> </td> </tr> <tr> <td> <h:outputLabel value="#{message.label_sector_sectorcode}"></h:outputLabel> <h:inputText label="#{message.label_sector_sectorcode}" id="addsectorcodeval" value="#{sectorMainAction.sectorEBean.sectorCode}" converter="toUpperConverter" maxlength="100" required="true"> <!-- <f:attribute name="pattern" value="[^\|&gt;&lt;]*"/> --> </h:inputText> </td> </tr> <tr> <td> <h:outputLabel value="#{message.label_sector_sectorname}"></h:outputLabel> <h:inputText label="#{message.label_sector_sectorname}" id="addsectornameval" required="true" value="#{sectorMainAction.sectorEBean.sectorName}" converter="toUpperConverter" maxlength="20"> <!-- <f:attribute name="pattern" value="[^\|&gt;&lt;]*"/> --> </h:inputText> </td> </tr> <tr> <td style="padding-left:158px;"> <h:commandButton id="cmdAddSectorConfirm" style="width: 65px;" value="#{message.btn_sector_create}" > <f:ajax execute="@form" render="@form" listener="#{sectorMainAction.doMainConfirm}"/> </h:commandButton> <h:commandButton immediate="true" value="#{message.btn_sector_back}" /> </td> </tr> </table> </div> </div> </div> </h:form> </html> backing bean package com.dhl.ptl.web.bean.maintenance; import java.io.Serializable; import java.util.List; import java.util.Locale; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import org.openfaces.event.AjaxActionEvent; import com.dhl.common.web.jsf.message.MessageUtil; import com.dhl.common.web.jsf.util.JSFUtil; import com.dhl.ptl.business.bean.maintenance.FacilityBusServ; import com.dhl.ptl.business.bean.maintenance.IFacilityBusServ; import com.dhl.ptl.business.bean.maintenance.ISectorBusServ; import com.dhl.ptl.business.bean.maintenance.SectorBusServ; import com.dhl.ptl.persistence.bean.FacilityEBean; import com.dhl.ptl.persistence.bean.SectorEBean; import com.dhl.ptl.persistence.bean.UsersEBean; import com.dhl.ptl.util.BusinessServiceLocator; import com.dhl.ptl.util.ScreenMaintenanceMode; import com.dhl.ptl.web.bean.BasePTLAction; @ManagedBean @SessionScoped public class SectorMainAction extends BasePTLAction implements Serializable{ private static final long serialVersionUID = 7201200879211999835L; private ISectorBusServ sectorBusServ = BusinessServiceLocator.getInstance().getService(SectorBusServ.class); private IFacilityBusServ facilityBusServ = BusinessServiceLocator.getInstance().getService(FacilityBusServ.class); private ScreenMaintenanceMode mode; private SectorEBean sectorEBean;//object represent the add/edit screen private FacilityEBean facilityEBean; private SectorEBean selSectorEBean; private String facilityCode; private String sectorCode; private String createdDate; private boolean disableCode; private List<SectorEBean> listSectorEBean; private List<FacilityEBean> selFacilityEBean; private FacilityEBean facilitySel; private boolean isAddEditValid() { if(sectorEBean.getSectorCode()==null){ String label = MessageUtil.getMessage("label_sector_code"); MessageUtil.addErrorMessage("error_invalid", new String[]{label}); return false; } if(sectorEBean.getSectorName()==null) { String label = MessageUtil.getMessage("label_sector_name"); MessageUtil.addErrorMessage("error_invalid", new String[]{label}); return false; } return true; } private boolean isAddDataValid(){ if(!sectorBusServ.validateSector(sectorEBean)){ String label = MessageUtil.getMessage("label_sector_id"); MessageUtil.addErrorMessage("error_already_exist", new String[]{label}); return false; } return true; } public void doMainConfirm() { String label = MessageUtil.getMessage("label_sector_title"); switch(mode) { case MODIFY: if(! isAddEditValid()) { return; } sectorEBean.setSectorId(sectorEBean.getSectorId()); sectorBusServ.updateSector(sectorEBean); MessageUtil.addInfoMessage("info_save_param", new String[]{label+" with sector code '"+this.sectorEBean.getSectorCode()+"'"}); break; case ADD: if(!isAddEditValid()) { return; } if(!isAddDataValid()){ return; } sectorBusServ.addSector(sectorEBean); MessageUtil.addInfoMessage("info_added_param", new String[]{label+" with sector code '"+this.sectorEBean.getSectorCode()+"'"}); mode=ScreenMaintenanceMode.MODIFY; this.setMode(mode); this.setDisableCode(true); break; default: //logger.warn("no mode found"); } } public ISectorBusServ getSectorBusServ() { return sectorBusServ; } public void setSectorBusServ(ISectorBusServ sectorBusServ) { this.sectorBusServ = sectorBusServ; } public String getFacilityCode() { return facilityCode; } public void setFacilityCode(String facilityCode) { this.facilityCode = facilityCode; } public String getSectorCode() { return sectorCode; } public void setSectorCode(String sectorCode) { this.sectorCode = sectorCode; } public String getCreatedDate() { return createdDate; } public void setCreatedDate(String createdDate) { this.createdDate = createdDate; } public SectorEBean getSelSectorEBean() { return selSectorEBean; } public void setSelSectorEBean(SectorEBean selSectorEBean) { this.selSectorEBean = selSectorEBean; } public List<SectorEBean> getListSectorEBean() { return listSectorEBean; } public void setListSectorEBean(List<SectorEBean> listSectorEBean) { this.listSectorEBean = listSectorEBean; } public IFacilityBusServ getFacilityBusServ() { return facilityBusServ; } public void setFacilityBusServ(IFacilityBusServ facilityBusServ) { this.facilityBusServ = facilityBusServ; } public List<FacilityEBean> getSelFacilityEBean() { return selFacilityEBean; } public void setSelFacilityEBean(List<FacilityEBean> selFacilityEBean) { this.selFacilityEBean = selFacilityEBean; } public boolean isDisableCode() { return disableCode; } public void setDisableCode(boolean disableCode) { this.disableCode = disableCode; } public FacilityEBean getFacilitySel() { return facilitySel; } public void setFacilitySel(FacilityEBean facilitySel) { this.facilitySel = facilitySel; } public ScreenMaintenanceMode getMode() { return mode; } public void setMode(ScreenMaintenanceMode mode) { this.mode = mode; } public SectorEBean getSectorEBean() { return sectorEBean; } public void setSectorEBean(SectorEBean sectorEBean) { this.sectorEBean = sectorEBean; } public FacilityEBean getFacilityEBean() { return facilityEBean; } public void setFacilityEBean(FacilityEBean facilityEBean) { this.facilityEBean = facilityEBean; } }
0
[ 2, 8247, 396, 9, 532, 9, 10890, 106, 1084, 1270, 12235, 10066, 872, 45, 2935, 367, 18700, 579, 15, 13, 22, 4215, 211, 22, 587, 16203, 800, 3726, 3726, 31, 259, 20, 3547, 1923, 19, 6018, 56, 31, 376, 20, 1477, 14, 2646, 1797, 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...
Unification of the design. Be or not to be? === There is a site with responsive design. The main menu and logo take almost the whole first screen on mobile devices. The site owner considers it's not OK and wants to use a menu like a button (like on starbucks.com site, mobile version). But not for the whole site. Only for several pages. In my opinion it's not OK to use different types of navigation on different site pages because it can confuse site visitors. I suggest either to leave it as is or replace the current menu with the new menu on all pages. How can I argue in favour of this? Is it a normal practice to use different navigation methods on different pages or it is not recommended? Are there maybe any articles on the matter?
0
[ 2, 20518, 16, 14, 704, 9, 44, 54, 52, 20, 44, 60, 800, 3726, 3726, 80, 25, 21, 689, 29, 13, 22153, 704, 9, 14, 407, 11379, 17, 6449, 247, 557, 14, 979, 64, 2324, 27, 3241, 4690, 9, 14, 689, 2410, 11944, 32, 22, 18, 52, 585...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a JS widget using Rails === I have one rails application App1 in which there is an Event section.But now I want that there should be a separate Rails App App2 for the Event.And a JS code, that will be used the App1 to fetch all the Event Lists,Event Creation etc.from the App2. Yours suggestions are welcomed. Please suggest me the approach for this. Thanks, gsoni
0
[ 2, 2936, 21, 487, 18, 4807, 43, 3060, 568, 2240, 18, 800, 3726, 3726, 31, 57, 53, 2240, 18, 3010, 4865, 165, 19, 56, 80, 25, 40, 807, 1050, 9, 811, 130, 31, 259, 30, 80, 378, 44, 21, 1725, 2240, 18, 4865, 4865, 135, 26, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Landscape mode not working in MapView === I just got a comment from a user of my app that the landscape mode on my map does't work (I made this app six months ago so I'm not sure but as I recall it the landscape mode used to work fine). The map has a toolbar underneath wich flips normally when the device is changed to landscape mode. The map also flips but right 1/3 of the screen is white (background). Anyone knows whats wrong? Thanks!
0
[ 2, 4453, 3740, 52, 638, 19, 2942, 4725, 800, 3726, 3726, 31, 114, 330, 21, 6484, 37, 21, 4155, 16, 51, 4865, 30, 14, 4453, 3740, 27, 51, 2942, 630, 22, 38, 170, 13, 5, 49, 117, 48, 4865, 490, 818, 1464, 86, 31, 22, 79, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WP7 - Set background image on all pages === My goal is to set a background picture for each page. Consider this structure... /Images/AppBackground.jpg /App.xaml /MainPage.xaml /Page2.xaml My first try was setting it on the rootframe as suggested elsewhere on this site... ;) **App.xaml.cs** ImageBrush brush = new ImageBrush { ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri("/Images/AppBackground.jpg", UriKind.Relative)), Opacity = 0.5d }; this.RootFrame.Background = brush; This will give me an error: `A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll` I tried with and without the starting `/`, tried `UriKind.Absolute`, And without a `UriType` parameter, all will give me the same error. The Image `AppBackground.jpg` has Build Action `Content`. Below code will work just fine. **MainPage.xaml** <Grid x:Name="LayoutRoot"> <Grid.Background> <ImageBrush ImageSource="/Images/AppBackground.jpg"></ImageBrush> </Grid.Background> ... But that's not what I want, I don't want to set it for each page... Anyone any idea what I'm screwing up? ;)
0
[ 2, 13, 13790, 465, 13, 8, 309, 2395, 1961, 27, 65, 4434, 800, 3726, 3726, 51, 1195, 25, 20, 309, 21, 2395, 2151, 26, 206, 2478, 9, 3563, 48, 1411, 9, 9, 9, 13, 118, 22039, 18, 118, 7753, 1958, 8810, 9, 12851, 263, 13, 118, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Filter only users who belong to something in 3rd table === these are my tables: TABLE 'USERS' ID NAME AGE 01 John 22 02 Gloria 27 TABLE 'CITIES' ID USER_ID CITY 22 01 Sacramento 23 02 Phoenix TABLE 'HOBBIES' ID USER_ID HOBBY 88 01 swimming 89 01 reading 90 02 reading Okay, so we have two fellas: John is from Sacramento and likes swimming and reading. Gloria is from Phoenix and only likes reading. I know how to join the first two tables: SELECT * FROM users INNER JOIN cities ON users.id = cities.user_id But how can I join the 'hobbies' table and only display users who like swimming? Thanks a lot, Matthias
0
[ 2, 11945, 104, 3878, 72, 6219, 20, 301, 19, 203, 897, 859, 800, 3726, 3726, 158, 50, 51, 7484, 45, 859, 13, 22, 16704, 18, 22, 4924, 204, 348, 13, 3026, 239, 1024, 13, 3564, 11499, 1298, 859, 13, 22, 150, 3808, 22, 4924, 4155, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jasmine calling beforeEach after tests === I'm writing a Rails app which has the following jasmine spec: describe "buttons", -> beforeEach -> loadFixtures("foo.html") alert("beforeEach: " + $("tr.foo").length) describe ".hide_foo", -> alert(".hide-foo: " + $("tr.foo").length) ... expect($("tr.foo")).toBeHidden() The spec failed with the error: TypeError: Cannot call method 'expect' of null So I put in the alerts. First we see ".hide-foo: 0", and then after I close that "beforeEach: 44" comes up. So clearly the error is because we're calling the `expect` before the fixture is loaded but...why the heck isn't `beforeEach` executed *before each* example? I'm using jasminerice to use the Rails Asset Pipeline to compile my Coffeescript. Versions: $ bundle show jasmine && bundle show jasminerice /home/tmacdonald/.rvm/gems/ruby-1.9.2-p320/gems/jasmine-1.2.0 /home/tmacdonald/.rvm/gems/ruby-1.9.2-p320/gems/jasminerice-0.0.9 Thanks!
0
[ 2, 15885, 2555, 115, 14322, 75, 4894, 800, 3726, 3726, 31, 22, 79, 1174, 21, 2240, 18, 4865, 56, 63, 14, 249, 15885, 12737, 45, 4996, 13, 7, 811, 444, 18, 7, 15, 13, 8, 1, 115, 14322, 13, 8, 1, 6305, 18594, 6418, 18, 5, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I do localization with Appcelerator? === I want to use strings so I don't have to have if statements for every language.
0
[ 2, 184, 107, 31, 107, 375, 1829, 29, 4865, 1105, 1252, 3457, 60, 800, 3726, 3726, 31, 259, 20, 275, 7887, 86, 31, 221, 22, 38, 57, 20, 57, 100, 9015, 26, 352, 816, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to add an element to the first row of a div which contains some elements (jQuery)? === I have some elements as below: <div id="shareswrapper"> <div id="41"> some content blah blah blah... </div> </div> I need to add lets say the below div to `shareswrapper`: <div id="1751"> Some new content here!!!! </div> The output would as below: <div id="shareswrapper"> <div id="1751"> Some new content here!!!! </div> <div id="41"> some content blah blah blah... </div> </div> I used first child but gain no success. `.before()` method wont work for me because I don't know which divs I have inside the shareswrapper. Any suggestion?
0
[ 2, 184, 20, 3547, 40, 4520, 20, 14, 64, 3131, 16, 21, 13, 12916, 56, 1588, 109, 2065, 13, 5, 728, 8190, 93, 6, 60, 800, 3726, 3726, 31, 57, 109, 2065, 28, 1021, 45, 13, 1, 12916, 4924, 3726, 7, 16608, 18, 499, 525, 8763, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Find whether a partiular file is valid PHP file === I want to find out whether a particular file is valid PHP file or not? `php -l filename` only finds our whether it have syntactical errors or not, it is lint. But I also want to find out, that on execution, it will run without error or not? I am running on Ubuntu machine.
0
[ 2, 477, 1472, 21, 141, 49, 7451, 3893, 25, 7394, 13, 26120, 3893, 800, 3726, 3726, 31, 259, 20, 477, 70, 1472, 21, 1498, 3893, 25, 7394, 13, 26120, 3893, 54, 52, 60, 13, 1, 26120, 13, 8, 255, 3893, 7259, 1, 104, 3797, 318, 147...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
reverse engineer vba code excel === I am not a VBA programmer. However, I have the 'unpleasant' task of re-implementing someones VBA code in another language. The VBA code consists of 75 modules which use one massive 'calculation sheet' to store all 'global variables'. So instead of using descriptive variable names, it often uses: = Worksheets("bla").Cells(100, 75).Value or Worksheets("bla").Cells(100, 75).Value = To make things worse, the 'calculation sheet' also contains some formulas. Are there any (free) tools which allow you to reverse engineer such code (e.g. create Nassi–Shneiderman diagram, flowcharts)? Thanks.
0
[ 2, 7006, 2335, 566, 969, 1797, 20700, 800, 3726, 3726, 31, 589, 52, 21, 566, 969, 17968, 9, 207, 15, 31, 57, 14, 13, 22, 1020, 5106, 472, 1830, 22, 3005, 16, 302, 8, 8983, 413, 1130, 68, 737, 18, 566, 969, 1797, 19, 226, 816, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Not receiving UINavigationBarDelegate callbacks === Is there a way to troubleshoot not receiving the NavBarDelegate callbacks? I tried in a test project to just do: [self.navigationController.navigationBar setDelegate:self]; in viewDidLoad and I did receive the callbacks for: - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPushItem:(UINavigationItem *)item { NSLog(@"%s", __FUNCTION__); return YES; } - (void)navigationBar:(UINavigationBar *)navigationBar didPushItem:(UINavigationItem *)item { NSLog(@"%s", __FUNCTION__); } - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item { NSLog(@"%s", __FUNCTION__); return YES; } - (void)navigationBar:(UINavigationBar *)navigationBar didPopItem:(UINavigationItem *)item { NSLog(@"%s", __FUNCTION__); } I did check that my ViewController conforms to this protocol in the interface <UINavigationBarDelegate>. In viewWillAppear:, I check if my class conforms to the protocol with: if ([self conformsToProtocol:@protocol(UINavigationBarDelegate)]) { NSLog(@"yes I conform"); } And I do get the NSLog message saying my class conforms, but I do not get the callbacks. As it works in a test project, and it doesn't work here, I'm trying to figure out other ways to troubleshoot this. Any thoughts? Thanks.
0
[ 2, 52, 3396, 287, 1673, 13227, 857, 1850, 24249, 3322, 645, 1958, 18, 800, 3726, 3726, 25, 80, 21, 161, 20, 2572, 12511, 52, 3396, 14, 16048, 1850, 24249, 3322, 645, 1958, 18, 60, 31, 794, 19, 21, 1289, 669, 20, 114, 107, 45, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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: set activity orientation BEFORE onCreate, but not in manifest (HDMI plugged in issue) === I can perfectly manage orientation change programatically, by using `setRequestedOrientation` in `onCreate`. Everything works really fine, until I plug a HDMI cable. After this, the tablet "wants" to be in landscape mode. So when I open an activity, it shows first in "landscape" and then right after it shows in "portrait", (because I'm calling setRequestedOrientation(variable_with_orientation_desired_by_the_user), where variable=ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, in "onCreate"). As you can "see", my app keeps rotating on every activity the user opens; If I set the orientantion for activity in the manifest, this problem is partially gone, since the orientation in manifest is the same that the user has picked up. If they are different, the same behavior starts again. I tried this, but with no success: @Override public void onCreate(final Bundle saved) { setRequestedOrientation(ScreenOrientation); super.onCreate(icicle); } So, is there any way to tell to android what orientantion it must create my activity, before it does create it? (But it cannot be in manifest)
0
[ 2, 13005, 45, 309, 2358, 10245, 115, 27, 6037, 1373, 15, 47, 52, 19, 13160, 13, 5, 252, 43, 1435, 29039, 19, 1513, 6, 800, 3726, 3726, 31, 92, 5759, 4705, 10245, 753, 625, 721, 8438, 15, 34, 568, 13, 1, 3554, 99, 10351, 69, 97...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Invalid insert order when use @Inheritance JPA attribute === I have Eclipselink persistence provider tuned on DB2 DB. Where is 3 tables which simplified definition are listed below: CREATE TABLE root ( id CHAR(32) NOT NULL PRIMARY KEY, rec_type VARCHAR(20) ); CREATE TABLE derived ( id CHAR(32) NOT NULL PRIMARY KEY, ... ); ALTER TABLE derived ADD CONSTRAINT fk_derived_to_root FOREIGN KEY (id) REFERENCES root(id); CREATE TABLE secondary ( derived_id NOT NULL PRIMARY KEY, ... ); ALTER TABLE secondary ADD CONSTRAINT fk_secondary_to_derived FOREIGN KEY (derived_id) REFERENCES derived(id); Java entity classes for these entities are listed below, RootEntity: @javax.persistence.Table(name = "ROOT") @Entity @DiscriminatorColumn(name = "REC_TYPE") @Inheritance(strategy = InheritanceType.JOINED) public class RootEntity { private String id; @javax.persistence.Column(name = "ID") @Id @GeneratedValue(generator = "system-uuid") public String getId() { return id; } public void setId(String id) { this.id = id; } private String principalType; @Column(name = "PRINCIPAL_TYPE") public String getPrincipalType() { return principalType; } public void setPrincipalType(String principalType) { this.principalType = principalType; } ... } DerivedEntity: @javax.persistence.Table(name = "DERIVED") @Entity @DescriminatorValue("DERIVED") public class DerivedEntity extends RootEntity { private SecondaryEntity secondaryEntity; @OneToOne(mappedBy = "derived_id") public SecondaryEntity getSecondaryEntity() { return secondaryEntity; } public void setSecondaryEntity(SecondaryEntity secondaryEntity) { this.secondaryEntity = secondaryEntity; } ... } I see no derived table insertion in the test logs: --INSERT INTO ROOT (ID, REC_TYPE) VALUES (?, ?) bind => [241153d01c204ed79109ce658c066f4c, Derived] --INSERT INTO SECONDARY (DERIVED_ID, ...) VALUES (?, ...) bind => [241153d01c204ed79109ce658c066f4c, ...] Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.ibm.db2.jcc.am.fo: DB2 SQL Error: SQLCODE=-530, SQLSTATE=23503, SQLERRMC=SCHEM.SECONDARY.FK_SECONDARY_TO_DERIVED, DRIVER=3.57.82 So question is: why Eclipselink don't insert new record into `DERIVED` table prior to insertion to `SECONDARY` table? P.S. Everything is working fine when no `SECONDARY` table (`ROOT` and `DERIVED` tables only) or no inheritance used (`DERIVED` tables generates id).
0
[ 2, 16671, 14692, 389, 76, 275, 13, 1, 108, 1694, 242, 2416, 487, 1060, 35, 14755, 800, 3726, 3726, 31, 57, 11652, 6258, 28584, 11747, 6768, 43, 27, 13, 9007, 135, 13, 9007, 9, 113, 25, 203, 7484, 56, 13, 11268, 5465, 50, 1510, 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...
Add/Remove Item to different type of ItemsSources at runtime dynamically === Add/Remove Item to different type of ItemsSources at runtime dynamically Hi all, I want to ask interesting two questions about add and remove item dynamically from different type of sources. Actually my questions are relate to each other. Question 1 : For example there are 3 class. Of Course there maybe many class and list; Class1 (Id, Prop1, Prop2) Class2 (Id, Prop5, Prop6) Class3 (Id, Prop10, Prop20) . . List<Class1> lstClass1 = new List<Class1>(); List<Class2> lstClass2 = new List<Class2>(); List<Class3> lstClass3 = new List<Class3>(); DataGrid1.ItemsSourse = lstClass1; DataGrid2.ItemsSourse = lstClass2; DataGrid3.ItemsSourse = lstClass3; I have a toolbar control and set page information to toolbar at runtime. In toolbar.cs code, I get type of datasource and I should add or remove Item dynamically to lists. I don't want to write if statements as below because I can add many Class, datasources and pages when I develope my project. if (type == class1) { lstClass1.Add(new Class1()); } else if (type == class2) { lstClass2.Add(new Class2()); } else if (type == class3) { lstClass3.Add(new Class3()); } I should create instance Class 1 or 2 or 3.. what type of ItemsSource and add this. How can i achieve this dynamically ? Question 2 : I am using Entity FrameWork. I convert ItemsSources to IEditableCollection and I can add new item as lstClass1.AddNewItem() but I have navigation properties which are bound to dataGrids and I can not convert them to IEditableCollection. So I must dynamically add Item to ItemsSources of navigation properties according to type. Actually its same question as Question1. How can i achieve testEntity.testNavigationProp.Add(new testType()); Please help..
0
[ 2, 3547, 118, 99, 16598, 9101, 20, 421, 1001, 16, 3755, 12097, 18, 35, 485, 891, 7782, 1326, 800, 3726, 3726, 3547, 118, 99, 16598, 9101, 20, 421, 1001, 16, 3755, 12097, 18, 35, 485, 891, 7782, 1326, 4148, 65, 15, 31, 259, 20, 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...
Force a ViewScoped Bean Reinitialization after User Click on Browser Back Button (Force Fresh HTTP Request) === Im using Mojarra 2.1.3, NetBeans 7.0.1, Primefaces 3.2. I have a few dynamic xhtml pages backed by ViewScoped backing beans in my application. Each of the pages has p:dataTable which display List<> from the backing bean. The problem occurs when a user navigate to a different page with the details of each item in the datatable. Upon browing the detail information, a user will most likely hit on the browser back button to return to the list. And so I implemented a filter like this in my application. @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpReq = (HttpServletRequest) request; HttpServletResponse httpRes = (HttpServletResponse) response; if (!httpReq.getRequestURI().startsWith(httpReq.getContextPath() + ResourceHandler.RESOURCE_IDENTIFIER)) { // Skip JSF resources (CSS/JS/Images/etc) httpRes.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. httpRes.setHeader("Pragma", "no-cache"); // HTTP 1.0. httpRes.setDateHeader("Expires", 0); // Proxies. } chain.doFilter(request, response); } But I have one problem, as explained here: http://stackoverflow.com/questions/9766307/how-to-move-user-to-timeout-page-when-session-expires-if-user-click-on-browser the browser should instead send a fullworthy fresh HTTP request to the server. But in my case it didn't. I see instead the ubiquituous Webpage has expired page which is in my opinion not a user friendly experience. What I want is NOT for it to load from browser cache but instead create a fresh request to the server and display the right page (Not the Webpage has Expired Page). Is it possible. Please help. Thanks a lot.
0
[ 2, 558, 21, 1418, 11555, 43, 15322, 302, 27313, 1829, 75, 4155, 10840, 27, 16495, 97, 5167, 13, 5, 8774, 3180, 7775, 3772, 6, 800, 3726, 3726, 797, 568, 1873, 6300, 525, 172, 9, 165, 9, 240, 15, 4275, 863, 5950, 453, 9, 387, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to properly add form in jQuery? === I have a function in jQuery which adds to my `jsp` view a form in this way: $("#mydiv").append("<form class=\"sendMessage\" id=\"" + item.message_id + "\">" + "<input type=\"submit\" value=\"Delete\" />" + "</form><br />"); }); I would like to maintain submitting this form action. So I have written this function: $(".sendMessage").submit(function(event) { alert("sendMessage"); }); Unfortunately this isn't working. However when I have added simply my form directly to my `jsp` view, my submit function has worked. <form class="sendMessage"> <input type="submit" value="Delete" /> </form> What am I doing wrong?
0
[ 2, 184, 20, 7428, 3547, 505, 19, 487, 8190, 93, 60, 800, 3726, 3726, 31, 57, 21, 1990, 19, 487, 8190, 93, 56, 10621, 20, 51, 13, 1, 728, 3401, 1, 1418, 21, 505, 19, 48, 161, 45, 5579, 5, 7, 5910, 915, 12916, 7, 6, 9, 22358...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Content Editable div problems with editing === I have problems with editing content editable div (it is styled to look like a text area). I am right now showing this html inside the div. <p> Hey [Recipient Name], </p> <p> I'm using <b>Planning Simple&trade;</b> to organize <b>Ranni Hill Mud Race</b>. Click on the RSVP button below to check out the details and get involved. </p> <p> Hope to see you there! <br>prince </p> You can see the page here `http://96.126.109.96:850/test_invitation`. Here the invitation content is displayed in a content editable div. If I try to replace a whole paragraph, the whole content is distorted. Is there a way to fix this? Or is there a customizable WYSIWYG editor which can edit HTML and can be applied this kind of style?
0
[ 2, 2331, 9392, 579, 13, 12916, 1716, 29, 9510, 800, 3726, 3726, 31, 57, 1716, 29, 9510, 2331, 9392, 579, 13, 12916, 13, 5, 242, 25, 1034, 43, 20, 361, 101, 21, 1854, 217, 6, 9, 31, 589, 193, 130, 3187, 48, 13, 15895, 572, 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...
NSS Shared DB not working with SunPKCS11 === I have configured NSS 3.12.4 to work with my java program using SunPKCS11 provider in FIPS mode and everything works great. Now i am following the steps mentioned in https://blogs.oracle.com/meena/entry/what_s_new_in_nss1 to make NSS work as a shared database. When i configured NSS in shared db mode, secmod.db file gets replaced with pkcs11.txt as expected. But now SunPKCS11 failed to initialize, since there seems to be a check for secmod.db during initialization. I also tried prefixing configDir with sql:, but that also dont work. I am getting following exception. Caused by: java.io.FileNotFoundException: /etc/nss/secmod.db at sun.security.pkcs11.Secmod.initialize(Secmod.java:181) at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:179) Anyone tried NSS shared db with java or any way to work around this problem?
0
[ 2, 13, 2172, 18, 2592, 13, 9007, 52, 638, 29, 939, 17244, 6824, 1306, 800, 3726, 3726, 31, 57, 28895, 13, 2172, 18, 203, 9, 918, 9, 300, 20, 170, 29, 51, 8247, 625, 568, 939, 17244, 6824, 1306, 11747, 19, 6028, 1919, 3740, 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...
using NuSOAP in Model === I should get the available products list and their prices from another server by WSDL (and NuSOAP). No views is needed (and no controllers I think); So I create a model with no tables (because I don't want to store server data) And use `App:import('Vendor', 'path_to_nusoap.php')` at the beginning of my model file. Let's see my model: <?php App::uses('AppModel', 'Model'); App::import('Vendor', 'nusoap' . DS . 'nusoap.php'); /** * MyModel Model * */ class MyModel extends AppModel { public $useTable = false; public $client = new nusoap_client('url', 'WSDL'); public function products(){ $products = $client->call('getProductsList'); //// return $products; } public function prices(){ $prices = $client->call('getPricesList'); //// return $prices; } } but it causes an error (on that line: `public $client`) Now, the questions: 1. How to solve that error? (use a contractor function?) 2. Am I wrong to use this functions on model? (instead of controller) Sorry for my terrible English. Thanks.
0
[ 2, 568, 3152, 656, 2552, 19, 1061, 800, 3726, 3726, 31, 378, 164, 14, 904, 1985, 968, 17, 66, 7334, 37, 226, 8128, 34, 619, 18, 8643, 13, 5, 290, 3152, 656, 2552, 6, 9, 90, 4146, 25, 851, 13, 5, 290, 90, 9919, 18, 31, 277, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can any one explain this refers to === I am not able to figure it out the what the following one refers. public interface LocaleDAO<M extends LocaleModel> extends Dao { } Here the Localmodel is also an another interface extends model public interface LocaleModel extends Model { } here I just want to know what the <M extends LocaleModel> refers to. Whether the LocalDao is extends the Localmodel? Can anyone explain me....
0
[ 2, 92, 186, 53, 3271, 48, 3806, 20, 800, 3726, 3726, 31, 589, 52, 777, 20, 1465, 32, 70, 14, 98, 14, 249, 53, 3806, 9, 317, 6573, 375, 69, 6281, 1, 79, 9073, 375, 62, 13998, 1, 9073, 13, 17104, 13, 1, 13, 1, 235, 14, 375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
iOS GDataXMLElement set element value === I'm using GDataXML in iOS and I'm trying to figure out how to change a node's value (i.e. the content of the equivalent element in the original XML file). I have an NSArray of elements that were returned from an XPath query. However, I can't seem to find the right function to change or set the value. I would basically like to do the following: for (GDataXMLElement *element in elementArray) { [element setValue:myVal]; } But there's no setValue method available for GDataXMLElement, nor for GDataXMLNode. The closest is setValue:forKey as follows: [element setValue:myVal forKey:myKey]; But I can't figure out what myKey should be. When I use [element name] I get the error "this class is not key value coding-compliant for the key [element name]. I'm totally lost, help please!
0
[ 2, 13, 7760, 489, 18768, 396, 8184, 27567, 309, 4520, 1923, 800, 3726, 3726, 31, 22, 79, 568, 489, 18768, 396, 8184, 19, 13, 7760, 17, 31, 22, 79, 749, 20, 1465, 70, 184, 20, 753, 21, 15421, 22, 18, 1923, 13, 5, 49, 9, 62, 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...
implement/show styled RSS Feed in PHP (wordpress) === I have an amazon link http://www.amazon.de/rss/new-releases/videogames/ I'd like to have it shown on a place of my choice. I have an external php file in which the rss feed should show up as kind of list. Has somebody an idea of getting this working without plugin? Thanks a lot folks! AD
0
[ 2, 8713, 118, 9303, 1034, 43, 13, 1224, 18, 4063, 19, 13, 26120, 13, 5, 9587, 5890, 6, 800, 3726, 3726, 31, 57, 40, 8059, 3508, 7775, 6903, 6483, 9, 3812, 6931, 9, 546, 118, 1224, 18, 118, 2681, 8, 15202, 18, 118, 14785, 16648, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 - Membership does not work if server date is bigger than 07-15-2012 === I absolutely have no idea what can cause this problem but membership does not work. When I press the login button I get nothing, but just a postback. Both username and password text boxes get emptied. Even if I type wrong username and password I don't get the warning message.But if I change the server date to <= 07-15-2012 then it works. I'm guessing it's something related with the membership tables but can't find where exactly.
0
[ 2, 28, 306, 9, 2328, 13, 8, 4363, 630, 52, 170, 100, 8128, 1231, 25, 6197, 119, 13, 2984, 8, 1193, 8, 3212, 800, 3726, 3726, 31, 6916, 57, 90, 882, 98, 92, 1679, 48, 1448, 47, 4363, 630, 52, 170, 9, 76, 31, 901, 14, 6738, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Application will enter foreground refresh application state === In application will enter foreground, I empty my core data tables and repopulate with updated data. The only problem is some of my view controllers have a reference to an NSMangedobject which becomes invalid when the application enters foreground. A way around this is to make a property for the variables where I can't lose the information. This works fine, but I would rather freeze the entity objects. Is this possible?
0
[ 2, 3010, 129, 2830, 26, 62, 8810, 24905, 3010, 146, 800, 3726, 3726, 19, 3010, 129, 2830, 26, 62, 8810, 15, 31, 2424, 51, 2884, 1054, 7484, 17, 302, 6057, 12383, 29, 6372, 1054, 9, 14, 104, 1448, 25, 109, 16, 51, 1418, 9919, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to save OpenXML Word.docx in SQL for free text search (C#) === Could please anyone help me to save my Word.docx (OpenXML) document in SQL Server (C#). In my scenario I have to do the free text search on that document in SQL. I have made my sql table indexable but dont know how to insert that OpenXML document in that table. Anyone's help will really be appreciated. Regards!
0
[ 2, 184, 20, 2079, 368, 396, 8184, 833, 9, 13799, 396, 19, 4444, 255, 26, 551, 1854, 2122, 13, 5, 150, 5910, 6, 800, 3726, 3726, 110, 2247, 1276, 448, 55, 20, 2079, 51, 833, 9, 13799, 396, 13, 5, 10157, 396, 8184, 6, 4492, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set Osmdroid to never expire tiles? === I want to set up Osmdroid to use pre-fetched tiles in offline mode. I downloaded an area in ZIP format. The problem is that zip file has 100 MB size and this will reduce performance of the app and in some devices with limited resources, the app crashes. I unzipped file and I changed the tile extension to .tile and everything was ok until yesterday. Yesterday osmdroid expired all tile and deleted them! I want to know is there a way to set up Osmdroid to never expire tiles?
0
[ 2, 184, 20, 309, 13, 759, 79, 43, 18524, 20, 243, 25910, 14836, 60, 800, 3726, 3726, 31, 259, 20, 309, 71, 13, 759, 79, 43, 18524, 20, 275, 782, 8, 28998, 14836, 19, 168, 1143, 3740, 9, 31, 23887, 40, 217, 19, 12133, 2595, 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...
C# TimeSpan Not Displaying Days === I am writing an app that uses the TimeSpan object. Specifically I am using the constructor TimeSpan(int32, int32, int32, int32). However, when I output my results to an Excel file the TimeSpans display in the format hh:mm:ss where I was expecting dd:hh:mm:ss. With the data I have right now all of the days are 0 -- but then I was expecting 00:hh:mm:ss instead of the shorter format. Any advice is appreciated. Regards.
0
[ 2, 272, 5910, 436, 3206, 52, 17418, 509, 800, 3726, 3726, 31, 589, 1174, 40, 4865, 30, 2027, 14, 436, 3206, 3095, 9, 3524, 31, 589, 568, 14, 6960, 248, 436, 3206, 5, 6391, 3125, 15, 19, 38, 3125, 15, 19, 38, 3125, 15, 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...
RTSP Stream in Google Web Toolkit Widget === All, I was wondering if it was possible to pull in a RTSP Stream into a Google Web Toolkit application. If anyone has done so I would greatly appreciate it if you would describe how you did it in GWT and what jars or other files you used. Thanks, MPH
0
[ 2, 13, 5256, 3401, 3766, 19, 8144, 2741, 5607, 13703, 4807, 43, 3060, 800, 3726, 3726, 65, 15, 31, 23, 5712, 100, 32, 23, 938, 20, 2201, 19, 21, 13, 5256, 3401, 3766, 77, 21, 8144, 2741, 5607, 13703, 3010, 9, 100, 1276, 63, 677,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Redirecting users to a URL if a variable consists of spaces === If the variable below consists of no characters, just any number of spaces, I would like to redirect the user to a URL using `header("Location: URL"); exit();`. How can I do that? $comment = mysql_real_escape_string($_POST['comment']);
0
[ 2, 302, 14706, 68, 3878, 20, 21, 287, 6362, 100, 21, 7612, 2043, 16, 7644, 800, 3726, 3726, 100, 14, 7612, 1021, 2043, 16, 90, 1766, 15, 114, 186, 234, 16, 7644, 15, 31, 83, 101, 20, 302, 14706, 14, 4155, 20, 21, 287, 6362, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to compare money in sql server === I need use case condition in sql server, the datatype is money, the condition is money>= 100, here is my code: insert into table1 ( Col1, Col2, Col3 ) select ColA, ColB, case ColC when ColC >=100 then 'Y' else 'N' end I got an error: Incorrect syntax near '>'. How do I compare money in sql? Thanks for your help.
0
[ 2, 184, 20, 11590, 875, 19, 4444, 255, 8128, 800, 3726, 3726, 31, 376, 275, 610, 2874, 19, 4444, 255, 8128, 15, 14, 1054, 4474, 25, 875, 15, 14, 2874, 25, 875, 1, 3726, 808, 15, 235, 25, 51, 1797, 45, 14692, 77, 859, 165, 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...
Some events not working on FF? === When my webpage is loading, I use javascript to detect which browser is visiting the website and adjust the text size onload. This works all of the time on Firefox without any problems. However, on the page I have two text inputs aligned ontop of each other (so the bottom one cannot be modified, to bypass the text dimming when the textbox is disabled). When the user types in the box, the idea is that there is an asterisk at the end of the text. My code for this is below. It is loaded onkeyup and onchange. This works perfectly in Chrome and Safari, but fails to work on Firefox. Any ideas why? `function textcopy(form) { var text = consoleText.value; consoleText2.value = text+"*"; }`
0
[ 2, 109, 963, 52, 638, 27, 13, 2460, 60, 800, 3726, 3726, 76, 51, 2741, 6486, 25, 12797, 15, 31, 275, 8247, 8741, 20, 9092, 56, 16495, 25, 4803, 14, 2271, 17, 14328, 14, 1854, 1072, 27, 8294, 9, 48, 693, 65, 16, 14, 85, 27, 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...
Import NCover or Instrumentation .Coverage files back into TFS 2010. so it shows up in the build summary report === My project has their tests using the NUnit framework, specifically 2.5.9. My build process currently creates nunit xml files, and then I convert them into .trx and publish them into TFS using mstest.exe. Now, I need to report back code coverage to TFS and show up in the build summary reports. I can create NCover results to xml, and was hoping I could include the NCover results into the NUnit xml and then convert it into the .TRX format and then import to TFS, but that's not going to work. But, it does look like the .TRX file can accept some code coverage information, according to the vsts.xsd, but I'm not sure if it is a file reference or other metrics. I can also create .Coverage result files using Visual Instrumentation using an example from here: http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/c7cd8dab-fed9-4fc4-9773-bdb047ad5958 So, I know I can publish unit test to TFS. The question is can I publish ncover or .coverage results BACK to TFS 2010?
0
[ 2, 9010, 13, 103, 14069, 54, 18235, 13, 9, 14069, 1303, 6488, 97, 77, 13, 11720, 18, 498, 9, 86, 32, 1285, 71, 19, 14, 1895, 14740, 1330, 800, 3726, 3726, 51, 669, 63, 66, 4894, 568, 14, 10210, 242, 6596, 15, 3524, 172, 9, 264...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
knitr and UTF8 encoding === A few days ago, I started writing on a german R-Script. Unfortunately, the following code chunk doesn't work when I `knit()` the document: @ <<>>= äö <- ordered(c(1,3,2,2)) @ Can anyone help me solve this problem?
0
[ 2, 13, 18371, 139, 17, 287, 11720, 457, 19608, 800, 3726, 3726, 21, 310, 509, 1464, 15, 31, 373, 1174, 27, 21, 548, 761, 8, 8741, 9, 6200, 15, 14, 249, 1797, 15009, 1437, 22, 38, 170, 76, 31, 13, 1, 18371, 5, 6, 1, 14, 4492,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How create UIHit YesNoNull? === I need create UIHint to be able to connect it to any type, and it worked: If the checkbox is selected the data are visible if the checkbox is not selected then the data should be hidden and passed null. But `@Html.EditorForModel()` not worked. In model: [UIHint("_YesNoNull")] [DisplayName("Ссылка на место проведения")] public string VenueUrl { get; set; } _YesNoNull control: @{ Guid guid = Guid.NewGuid(); var propertyName = this.ViewData.ModelMetadata.PropertyName; } <script type="text/javascript"> $(function () { $('#@(propertyName)_checkbox').click(function () { var checked = $(this).attr('checked'); if (checked != undefined) { $(this).val(true); } else { $(this).val(false); } }); }); </script> @Html.CheckBox("checkbox", false) @Html.EditorForModel()//not worked source html: <div class="editor-label"> <label for="VenueUrl">Ссылка на место проведения</label> </div> <div class="editor-field"> <script type="text/javascript"> $(function () { $('#VenueUrl_checkbox').click(function () { alert(VenueUrl); var checked = $(this).attr('checked'); if (checked != undefined) { $(this).val(true); } else { $(this).val(false); } }); }); </script> <input id="VenueUrl_checkbox" name="VenueUrl.checkbox" type="checkbox" value="true" /><input name="VenueUrl.checkbox" type="hidden" value="false" /> <span class="field-validation-valid" data-valmsg-for="VenueUrl" data-valmsg-replace="true"></span> </div>
0
[ 2, 184, 1600, 13, 5661, 10242, 1643, 251, 4215, 211, 60, 800, 3726, 3726, 31, 376, 1600, 13, 5661, 7359, 38, 20, 44, 777, 20, 6379, 32, 20, 186, 1001, 15, 17, 32, 577, 45, 100, 14, 2631, 5309, 25, 1704, 14, 1054, 50, 4560, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adobe Flash for server and website === I need to run a .swf file on my website.I have a web hosting service( non dedicated). I wanted to know if it's mandatory for the user's browser to have adobe flash plugin or is there some other way out( for eg is there any way to install Adobe flash on the server, just like we insatll php support on server and then the user's browser or computer does not require to have php to run the code. Can we similarly install adobe flash on server and discard the necessity for the user to have adobe flash plugins in their browsers?)
0
[ 2, 20299, 4433, 26, 8128, 17, 2271, 800, 3726, 3726, 31, 376, 20, 485, 21, 13, 9, 18, 15263, 3893, 27, 51, 2271, 9, 49, 57, 21, 2741, 10637, 365, 5, 538, 2360, 6, 9, 31, 417, 20, 143, 100, 32, 22, 18, 12605, 26, 14, 4155, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# extract content from HTML Document === I was wondering how can i do something similar to facebook when a link is posted or like shortening link services that can get the title of the page and its content. Example: http://i.stack.imgur.com/UdFkr.png My ideia is to get only the plain text from a web page, for example if the url is an article of a newspapper how can i get only the news's text, like showed in the image. For now i have been trying to use the HtmlAgilityPack but i can never get the text clean. Note: the app is for Windows Phone 7. Thanks.
0
[ 2, 272, 5910, 10962, 2331, 37, 13, 15895, 4492, 800, 3726, 3726, 31, 23, 5712, 184, 92, 31, 107, 301, 835, 20, 9090, 76, 21, 3508, 25, 6054, 54, 101, 502, 6286, 3508, 687, 30, 92, 164, 14, 581, 16, 14, 2478, 17, 82, 2331, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to play multiple sound files simultaneously? === For my application I need to play multiple tracks simultaneously and some kinf of listener to know when a track is finished. SoundPool seems to be the obvious choice, but unfortunately I could't find a solution to get notified when a track ends. I also thought about using multiple instances of Android's MediaPlayer, but I'm afraid of getting performance issues. Are there any other options?
0
[ 2, 184, 20, 418, 1886, 646, 6488, 6888, 60, 800, 3726, 3726, 26, 51, 3010, 31, 376, 20, 418, 1886, 1633, 6888, 17, 109, 6399, 410, 16, 21772, 20, 143, 76, 21, 792, 25, 842, 9, 646, 13378, 2206, 20, 44, 14, 4674, 1837, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Win32com.client com_error === Today suddenly I am getting following error. import win32com.client xl=win32com.client.Dispatch("Excel Application") Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> xl=win32com.client.Dispatch("Excel Application") File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 108, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 85, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147221005, 'Invalid class string', None, None) What is wrong?
0
[ 2, 628, 3125, 960, 9, 150, 18513, 38, 13, 960, 1, 29992, 800, 3726, 3726, 786, 1605, 31, 589, 1017, 249, 7019, 9, 9010, 628, 3125, 960, 9, 150, 18513, 38, 993, 255, 3726, 4181, 3125, 960, 9, 150, 18513, 38, 9, 2906, 23661, 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...
Containing child element within parent in css === I have a horizontal jquery-ui drag drop list contained in a wrapper in which elements are added dynamically. (The width of each element is 223px and each time a new element is added, the list width is increased by 223px) $("#list_wrapper").animate({ width: "+=446" }, 'slow') $("#list_items").animate({ width: "+=223" }, 'slow') The style for these two elements are: #list_wrapper{ width:672px; position:relative; } #list_items { height: 290px; width: 672px; position: relative; padding: 0 0 0 2px; z-index: 0; cursor: e-resize; border-width: 0 2px; } Now, to browse through the list, we can either drag the list or I have created navigation button for convenience. The navigation buttons shift the "#list_items" elements 223px right or left each time they are clicked: $("#btn_next").click(function () { $("#list_items").animate({ left: "-=223" }, 100); }); $("#btn_prev").click(function () { $("#list_items").animate({ left: "+=223" }, 100); To make sure the list doesn't go out of the view, i have added these properties to .draggable. $("#list_items").draggable({ axis: "x", containment: "parent" }); This makes sure that list remains within the container("#cart_wrapper") when dragged BUT when the navigation buttons are used, this method fails. So, is there any css trick that can be applied to keep the list within it's parent while using navigation buttons?
0
[ 2, 3503, 850, 4520, 363, 4766, 19, 272, 18, 18, 800, 3726, 3726, 31, 57, 21, 10095, 487, 8190, 93, 8, 5661, 5501, 2804, 968, 3437, 19, 21, 28051, 19, 56, 2065, 50, 905, 7782, 1326, 9, 13, 5, 124, 9456, 16, 206, 4520, 25, 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...
User update profile and mysql update === I will give as example user profile edit page. There are 12 different fields inside form (age, gender, smoking, drinking, ...). All those fields are in single table. When user saves data, mysql update statement is used to set all data, even if only one field has been changed. UPDATE profile SET age=22, smoke=1, drink=1, ... But I am wondering if this is a correct way. Is better way to first check which field was changed and SET data only for this field? To accomplish this, I would put all current values in hidden input. It would look something like this: <input type="hidden" name="oldAge" value="<?php echo $age; ?>" /> <input type="text" name="age" value="<?php echo $age; ?>" /> <input type="hidden" name="oldGender" value="<?php echo $gender; ?>" /> <input type="text" name="gender" value="<?php echo $gender; ?>" /> <?php //... if($_POST['oldAge']!=$_POST['age']){ $updateQuery .= ", age=$_POST['age']"; } if($_POST['oldGender']!=$_POST['gender']){ $updateQuery .= ", gender=$_POST['gender']"; } //... ?> In this way fewer data are set and this could make better mysql performance. Does this make any sense or is it just unecessary complicating things?
0
[ 2, 4155, 11100, 5296, 17, 51, 18, 22402, 11100, 800, 3726, 3726, 31, 129, 590, 28, 823, 4155, 5296, 9392, 2478, 9, 80, 50, 390, 421, 2861, 572, 505, 13, 5, 1303, 15, 4552, 15, 10238, 15, 4854, 15, 13, 9, 9, 9, 6, 9, 65, 273,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Equivalent of 'where' fortran keyword in Java? === I'm writing a Java program in which I'm checking a list against a string, and then doing stuff to that. In fortran I'd write something along the lines of where(list(:)==stringToCheck){ ... statements ... } Instead I have a headache of a block of for-loops, if staments and breaks all over the place. No perhaps I could neaten the code a little but it still feels far more inefficient than fortran. Is there a Java equivilant?
0
[ 2, 4602, 16, 13, 22, 2798, 22, 26, 17685, 1246, 9587, 19, 8247, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 8247, 625, 19, 56, 31, 22, 79, 9886, 21, 968, 149, 21, 3724, 15, 17, 94, 845, 3217, 20, 30, 9, 19, 26, 17685, 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...
Decouple GWT Asynchronous callbacks === I have the following problem: I am trying to model a process using GWT, where i have a couple of views with a couple of submit buttons. And pressing button1 will create a server interaction and if everything was ok, the next view will be loaded. My problem is now that I get really nasty spaghetti code (just very highlevel to show you what i mean): onClick { AsyncCallback { onSuccess { load new view with another clickhandler and an asynccallback } } } Is there some way to create some kind of abstraction or something? Maybe a state pattern? How? Thanks a lot!
0
[ 2, 121, 17856, 413, 14094, 38, 21, 16023, 1291, 645, 1958, 18, 800, 3726, 3726, 31, 57, 14, 249, 1448, 45, 31, 589, 749, 20, 1061, 21, 953, 568, 14094, 38, 15, 113, 31, 57, 21, 1335, 16, 4146, 29, 21, 1335, 16, 12298, 12861, 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...
Callback and n Entry box widgets not functioning Tkinter === In the code below I need to return all values returned (but for each row separately) but I have tried lambda and failed and I'm not getting anywhere AGAIN. I also have the callback definition where it previously worked and when I click in a box, it deletes the grey writing so I can continue to input in black. If possible I would like to add the value return for the entry box at the end of my callback function rather than keeping 'numberwritten' and 'callback'..Is this possible? The number of boxes added is equal to self.number_boxes and can be from 1 to n. Thank you. self.numbers = [StringVar() for i in xrange(self.number_boxes) ] for i in xrange(self.number_boxes): self.clicked.append(False) self.choice_title = Label(self.frame_table, bg=self.mycolour, borderwidth=0, width=10) self.choice_title.grid(row=1, column=self.column, columnspan=self.number_boxes, sticky="nsew", padx=1, pady=1) self.choice_titles.append(self.choice_title) self.box = Entry(self.frame_table,bg='white',borderwidth=0, width=10, justify="center", textvariable=self.numbers[i], fg='grey') self.box.grid(row=row_number+add,column=self.column+i, sticky='nsew', padx=1, pady=1) self.box.insert(0, "Value %g" % float(i+1)) self.box.bind("<Button-1>", lambda event, index=i : self.callback(event)) self.boxes.append(self.box) self.number.trace('w',self.numberwritten ) def numberwritten(self): print self.number[i].get() def callback(self, event): for self.box in self.boxes: if (self.clicked == [False]): self.box.delete(0, END) self.box.config(fg='black') self.clicked = True
0
[ 2, 645, 1958, 17, 13, 103, 2792, 1649, 4807, 43, 3060, 18, 52, 14175, 13, 38, 1767, 815, 800, 3726, 3726, 19, 14, 1797, 1021, 31, 376, 20, 788, 65, 4070, 587, 13, 5, 811, 26, 206, 3131, 10714, 6, 47, 31, 57, 794, 13, 24187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CLEARCASE_XPN not parsed as variable in clearcase command === I meet a problem that when I run clearcase command `ct find . -branch 'brtype(my_branch)' -exec "echo %CLEARCASE_XPN%"`, `%CLEARCASE_XPN%` not parsed as a variable and the output is: <br>%CLEARCASE_XPN% <br>%CLEARCASE_XPN% <br>%CLEARCASE_XPN% But I'm sure `CLEARCASE_XPN` is the variable denotes the whole path of the found file. Can anybody help? OS is linux, shell is tcsh, thanks!
0
[ 2, 1207, 10325, 1, 396, 17479, 52, 2017, 18, 69, 28, 7612, 19, 1207, 10325, 1202, 800, 3726, 3726, 31, 1255, 21, 1448, 30, 76, 31, 485, 1207, 10325, 1202, 13, 1, 4812, 477, 13, 9, 13, 8, 23014, 13, 22, 5145, 4474, 5, 915, 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...
UIColor for UITextView border === According to this answer: http://stackoverflow.com/q/2647164/927822 I can use premixed colors like blackColor, blueColor etc... I want to use my own color though, made from UIColor colorWithRed: ... ratingText.layer.borderColor = [[UIColor colorWithRed:33 green:95 blue:139 alpha:1] CGColor]; The border then is not displayed. How could I bridge the UIColor to CGColor, or do I miss anything else? Help is greatly appreciated - thx!
0
[ 2, 13, 5661, 11282, 26, 13, 5661, 11969, 4725, 1862, 800, 3726, 3726, 496, 20, 48, 1623, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 1251, 118, 2409, 2918, 13700, 118, 4327, 4130, 2287, 31, 92, 275, 782, 21049, 5268, 101, 319, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
BaseAdapter class in Application class === I have wrote a class which is extend BaseAdapter class and the code is list as follow:\ public class ImageAdapter extends BaseAdapter { int mGalleryItemBackground; private Context mContext; public ArrayList<Drawable> drawablesFromUrl = new ArrayList<Drawable>(); public ImageAdapter(Context c) { mContext = c; } public void addItem(Drawable item) { drawablesFromUrl.add(item); } public int getCount() { return drawablesFromUrl.size(); } public Drawable getItem(int position) { return drawablesFromUrl.get(position); } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { // if it's not recycled, initialize some attributes imageView = new ImageView(mContext); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView.setPadding(8, 8, 8, 8); } else { imageView = (ImageView) convertView; } imageView.setImageDrawable(drawablesFromUrl.get(position)); return imageView; }//View getView }//class ImageAdapter Now I want to use the object "drawablesFromUrl.get(position)" into another activity and one of the solution is write this class in "Application class" so that I can use the object anywhere in my app. But don't know how to implement? Or is there any other solution can solve my problem? Thanks!
0
[ 2, 1000, 27576, 106, 718, 19, 3010, 718, 800, 3726, 3726, 31, 57, 738, 21, 718, 56, 25, 7206, 1000, 27576, 106, 718, 17, 14, 1797, 25, 968, 28, 1740, 45, 1, 317, 718, 1961, 27576, 106, 9073, 1000, 27576, 106, 13, 1, 19, 38, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CENTOS - blocked ports issue === I'm trying to establish a connection to Apple Push Notification Service through a remote machine which runs CENTOS. Unfortunately it seems that the related ports, 2195, 2196 are somewhat blocked. When I telnet from my local osx it seems to work fine: $ telnet gateway.sandbox.push.apple.com 2195 Trying 17.149.34.66... Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is '^]'. However when I telnet from my remote server it gives a timeout error. So far, I tried to disable the iptables but it hasn't worked. [root@centos01 ~]# service iptables save [root@centos01 ~]# service iptables stop Is there any other component that can block my connection to remote machines on certain ports ? Thanks, Hadar.
0
[ 2, 5802, 759, 13, 8, 8388, 9551, 1513, 800, 3726, 3726, 31, 22, 79, 749, 20, 4088, 21, 2760, 20, 4037, 3250, 52, 4634, 365, 120, 21, 5388, 1940, 56, 1461, 5802, 759, 9, 6200, 32, 2206, 30, 14, 1597, 9551, 15, 852, 3836, 15, 85...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Onsubmit function not working === My onsubmit function is not working. My PHP file has two forms. Both form tags have an onsubmit attribute that links to the same javascript file. The first form's onsubmit is working. The function being called by the second form has been simplified to this: <code>function UserDataCheck() { return false; } </code> The form tag is <code>form name='user_form' method='post' onsubmit='return UserDataCheck();</code> This tag is enclosed within <> and double quotes and echo-ed out in a PHP file. Please help. This is driving me crazy! Earlier I was doing some data checking in the UserDataCheck() but I stripped all of that away to see if I could even use onsubmit to stop the user from submitting! NO SUCCESS.
0
[ 2, 27, 7563, 5130, 1990, 52, 638, 800, 3726, 3726, 51, 27, 7563, 5130, 1990, 25, 52, 638, 9, 51, 13, 26120, 3893, 63, 81, 1997, 9, 156, 505, 3383, 18, 57, 40, 27, 7563, 5130, 35, 14755, 30, 6271, 20, 14, 205, 8247, 8741, 3893,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Use Twig Extension in controller === I have a slugify method in an Twig Extension which i would like to use in some cases in a controller, f.e with redirects. Is there an easy way for this? How could i access functions from Twig Extensions in the controller? Or do i have to make the slugify method somewere as a helper in order to use it in the code and in twig?
0
[ 2, 275, 19690, 3896, 19, 9919, 800, 3726, 3726, 31, 57, 21, 15850, 8612, 2109, 19, 40, 19690, 3896, 56, 31, 83, 101, 20, 275, 19, 109, 1871, 19, 21, 9919, 15, 398, 9, 62, 29, 302, 14706, 18, 9, 25, 80, 40, 2010, 161, 26, 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...
Strange error in Java === Can anyone tell why this error because if you put your work in the terminal? Here's the code. I use this code to compile all files in a folder. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Compiles { public static void main(String[] args) { List<String> compileFileCommand = new ArrayList<String>(); List<String> files = new FileList().getListFile(); List<String> libs = new ListLib().getListFile(); compileFileCommand.add("/opt/java/bin/javac"); for(int i = 0; i < files.size(); i++) { if(files.get(i).equals("Compiles.java")) continue; if(files.get(i).equals("Compile.java")) continue; String fileJar = new CreateFolder().currentData() + "/" + files.get(i) + " -cp lib/"; // for (int y = 0; y < libs.size(); y++) // { // fileJar += libs.get(y) + ":"; // if(libs.size() -1 == y) // fileJar += libs.get(y); // } fileJar += libs.get(0); compileFileCommand.add(fileJar); Process compile_process; try { compile_process = new ProcessBuilder(compileFileCommand) .redirectErrorStream(true).start(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return; } try { compile_process.waitFor(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } BufferedReader reader = new BufferedReader(new InputStreamReader( compile_process.getInputStream())); String line = null; try { line = reader.readLine(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } while (line != null) { System.out.println(line); try { line = reader.readLine(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } } The error is as follows javac: invalid flag: temp_11.07.2012/CreateFolder.java -cp lib/gdata-media-1.0.jar Usage: javac <options> <source files> use -help for a list of possible options These are examples of data and this is what gives
0
[ 2, 2578, 7019, 19, 8247, 800, 3726, 3726, 92, 1276, 494, 483, 48, 7019, 185, 100, 42, 442, 154, 170, 19, 14, 3855, 60, 235, 22, 18, 14, 1797, 9, 31, 275, 48, 1797, 20, 26561, 65, 6488, 19, 21, 19294, 9, 9010, 8247, 9, 1963, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wpf Reactive Extensios react when mouse is not over two elements === I'm trying to learn more about reactive extensions but i find it quite hard to find a real world example so i can train myself. I few days ago i found myself writing some ToggleButton Mouse Enter, Leave Checked Unchecked events, and now i am wondering if i could simplify it using reactive extensions. Here is the goal: Given a ToggleButton, when hovering over and it's not checked, a popup should show, the popup should close if the mouse is not over the button or the popup If i press the toggle button (Checked) the popup should stay open until the button is unchecked (ignoring mouse enter leave events) after which the mouse hover behavior should kick in again. And if the Popup is closed externaly the toggle button should be automatically unchecked. (I know that this could be implemented using a few bindings and data triggers but i want to exercise my reactive extensions logic) Right now i have the following: private void ToggleButton_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { if (!ToggleButton.IsChecked ?? false) Popup.IsOpen = true; } private void ToggleButton_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) { if (!Popup.Child.IsMouseOver && !(TaskManagerTab.IsChecked ?? false)) { Popup.IsOpen = false; return; } popup.Child.MouseLeave += Popup_MouseLeave; } void Popup_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) { Popup.Child.MouseLeave -= Popup_MouseLeave; if (!ToggleButton.IsMouseOver && !(ToggleButton.IsChecked ?? false)) { Popup.IsOpen = false; return; } } private void ToggleButton_CheckedChanged(object sender, System.Windows.RoutedEventArgs e) { Popup.IsOpen = ToggleButton.IsChecked ?? false; if (Popup.IsOpen) Popup.Closed += Popup_Closed; } void Popup_Closed(object sender, System.EventArgs e) { Popup.Closed -= Popup_Closed; ToggleButton.IsChecked = false; } } I would a rough version but i really don't know how to begin. Thank you!
0
[ 2, 619, 7721, 25541, 1396, 8710, 7760, 7749, 76, 7567, 25, 52, 84, 81, 2065, 800, 3726, 3726, 31, 22, 79, 749, 20, 2484, 91, 88, 25541, 17529, 47, 31, 477, 32, 1450, 552, 20, 477, 21, 683, 126, 823, 86, 31, 92, 1528, 992, 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...
http post does not work in ios 4.2 but works fine in iOS 5.0 & iOS 5.1 === I am making a **http post** service call in my application where I pass all my data through the header only. It works fine in iOS 5.0 and iOS 5.1 but strangely does not work in other versions like iOS 4.2 and iOS 4.3. Passing all the data in the body tag also did not help. I have tried a lot but could not a get a clue why this is happening. Is there any difference between making http POST request in iOS 5.1 and other devices. thanks in advance Ratikant
0
[ 2, 7775, 678, 630, 52, 170, 19, 13, 7760, 268, 9, 135, 47, 693, 1123, 19, 13, 7760, 331, 9, 387, 279, 13, 7760, 331, 9, 165, 800, 3726, 3726, 31, 589, 544, 21, 13, 1409, 21127, 678, 1409, 365, 645, 19, 51, 3010, 113, 31, 147...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Heroku remote MongoDB connect with php === Im getting error while connecting to remote mongoDb from Heroku facebook app Class 'Mongo' not found I guess mongo driver isnt supported out of box? How can i install it on heroku? Thanks
0
[ 2, 36, 9266, 5388, 3521, 5474, 220, 6379, 29, 13, 26120, 800, 3726, 3726, 797, 1017, 7019, 133, 6440, 20, 5388, 3521, 5474, 220, 37, 36, 9266, 9090, 4865, 718, 13, 22, 2111, 839, 22, 52, 216, 31, 2321, 3521, 839, 2425, 8441, 1827,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
how to get the next autoincrement value in sql === i am creating a winform application in c#.and using sql database.i have one table name employee_master having fields like Id,name,address and phone no,Id is auto increment and all other datatypes are varcahr.<br> I am Using this Code To get Next Auto Increment Value<br> `string s = "select max(id) as Id from Employee_Master";`<br> `SqlCommand cmd = new SqlCommand(s, obj.con);`<br> ` SqlDataReader dr = cmd.ExecuteReader();`<br> ` dr.Read();`<br> ` int i = Convert.ToInt16(dr["Id"].ToString());`<br> ` txtId.Text = (i + 1).ToString();`<br> I am Displaying In textBox.But When Last row from table is deleted.Still i get that value which is recently deleted in textbox<br> so How to get Next Auto increment value in textBox.<br> thanks in advance
0
[ 2, 184, 20, 164, 14, 328, 3108, 28461, 1923, 19, 4444, 255, 800, 3726, 3726, 31, 589, 2936, 21, 628, 4190, 3010, 19, 272, 5910, 9, 290, 568, 4444, 255, 6018, 9, 49, 57, 53, 859, 204, 7362, 1, 4594, 452, 2861, 101, 4924, 15, 72...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Buddy Algorithm Implementation using Linked Lists in C === I have implemented a basic buddy algorithm in C using arrays. I wanted to implement the same using linked lists but I'm unable to do so. I would be grateful if anyone provides the code for the same. thanks in advance
1
[ 2, 9065, 9083, 6123, 568, 4727, 7227, 19, 272, 800, 3726, 3726, 31, 57, 6807, 21, 2125, 9065, 9083, 19, 272, 568, 7718, 18, 9, 31, 417, 20, 8713, 14, 205, 568, 4727, 7227, 47, 31, 22, 79, 2343, 20, 107, 86, 9, 31, 83, 44, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Command pattern with menu system === I have a menu system and every menu item is a command. My problem is if you for instance choose my menu item "New member" you come to a panel which will have a form and a button to complete the member form and creates the member. If this button also is a command I don't understand how it should be solved. According to the command pattern, all the commands are created in the client, but the commands have no access to other command , or do they?
0
[ 2, 1202, 3732, 29, 11379, 329, 800, 3726, 3726, 31, 57, 21, 11379, 329, 17, 352, 11379, 9101, 25, 21, 1202, 9, 51, 1448, 25, 100, 42, 26, 4851, 3538, 51, 11379, 9101, 13, 7, 2681, 322, 7, 42, 340, 20, 21, 4113, 56, 129, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Saving managed object context creates deadlock in iOS 5's performBlock === I've been looking for a solution for this problem for a long time and have yet reached one. I'm developing an iOS app with core data. I've created two managed object contexts (MOC) which point to the same persistent store coordinator. One MOC (referred as self.moc) is initiated with main queue concurrency whereas the other mov (referred as self.bmoc) is initiated with private queue concurrency. I've made sure that self.moc only runs on the main thread and self.bmoc only runs within its `performBlock` or `performBlockAndWait` block. However, I've encountered this strange situation where my app freezes on the `[self.bmoc save:nil]` line. Since the save action is executed within the `performBlock` block, I don't see a reason for it to reach a deadlock. Since it freezes on that line, I can't receive an error even if I use `[self.bmoc save:&error]` rather than `nil`. Below is the code which will reproduce the problem. Although I have many functions similar to the one below, only **this one** creates the problem. I fail to figure the cause of the problem and any insights are greatly appreciated. Thank you! -(void)createEmptyUserData { [self.bmoc performBlock:^{ User* user = [NSEntityDescription insertNewObjectForEntityForName:@"User" inManagedObjectContext:self.bmoc]; /* sets user object */ [self.bmoc save:nil]; }]; } Note: This piece of code is executed in main thread.
0
[ 2, 7599, 1471, 3095, 4141, 9695, 828, 3966, 19, 13, 7760, 331, 22, 18, 2985, 12048, 800, 3726, 3726, 31, 22, 195, 74, 699, 26, 21, 4295, 26, 48, 1448, 26, 21, 175, 85, 17, 57, 768, 664, 53, 9, 31, 22, 79, 3561, 40, 13, 7760,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 - generating a grid from a list of words === Currently this script takes the words from the list and generates a grid, giving the words random positions each time. When the words are generated I want them to be split into individual characters, into cells next to each other so the word still makes sense - how do I do this? var listOfWords = ["mat", "cat", "dog", "pit", "pot", "fog", "log", "pan", "can", "man", ]; var shuffledWords = listOfWords.slice(0, 12); shuffledWords.sort(function() { return 0.5 - Math.random(); }); var table = $('<table class="tablestyle">'); var rows = 6; var cols = 2; var tr; var index; for (var row = 0; row < rows; row++) { tr = $('<tr>'); for (var col = 0; col < cols; col++) { index = (row * cols) + col; $('<td>').text(shuffledWords[index]).appendTo(tr); } tr.appendTo(table); } table.appendTo('body'); $('<table>' + innerTable + '</table>').appendTo('body');
0
[ 2, 487, 8190, 93, 13, 8, 13500, 21, 7354, 37, 21, 968, 16, 715, 800, 3726, 3726, 871, 48, 3884, 1384, 14, 715, 37, 14, 968, 17, 7920, 18, 21, 7354, 15, 1438, 14, 715, 5477, 3062, 206, 85, 9, 76, 14, 715, 50, 6756, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 make mainMenu send all action to specific NSWindowController? === Short answer is inside the title :) Explaining: in my MainMenu.xib i have only *the Main Menu* of the application, that must be same for all `NSWindow`s i open. There is one particular `NSWindowController` that has, let me say, all answers about when menu item must be enabled (via `case`s on `selector` in `validateUserInterfaceItem`) and what to do with all actions. When `NSWindow` associated with that `NSWindowController` is currently focused, there is no problem, but as i focus on another `NSWindow` all menus are grayed... So, how can i force the responder chain to querry always that particular `NSWindowController`?
0
[ 2, 184, 233, 407, 755, 291, 2660, 65, 1028, 20, 1903, 13, 2172, 27508, 12898, 1252, 60, 800, 3726, 3726, 502, 1623, 25, 572, 14, 581, 13, 45, 6, 10225, 45, 19, 51, 407, 755, 291, 9, 5845, 220, 31, 57, 104, 1637, 124, 407, 1137...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 hide Application Window when its EXE has been called from a Process? === I'm running an application's EXE **from a Service**. But what i'm attempting to do is hide the application EXE's Window. Here is my code: Process process = new Process(); process.StartInfo.FileName = "C:\Program Files (x86)\MyFolder\MyApp.exe"; process.StartInfo.CreateNoWindow = true; process.StartInfo.UseShellExecute = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.Start(); Despite all of the above, the window is yet seen. Can anyone please suggest a solution? Thanks and Regards, Siddhant
0
[ 2, 184, 20, 3077, 3010, 1463, 76, 82, 1396, 62, 63, 74, 227, 37, 21, 953, 60, 800, 3726, 3726, 31, 22, 79, 946, 40, 3010, 22, 18, 1396, 62, 13, 1409, 2665, 21, 365, 1409, 9, 47, 98, 31, 22, 79, 6314, 20, 107, 25, 3077, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery addmethod using Group is not working properly === I am using group in jquery addmethod like below : $('form[id=#formID]').validate({ groups: { datemultiple: "dobDay1 dobMonth1 dobYear1" }, I am using a custom method here. The method is defined as datemultiple which is as follows : jQuery.validator.addMethod("datemultiple", function(value, element, params) { var thisDay = $(params[0]).val(); var thisMonth = $(params[1]).val(); var thisYear = $(params[2]).val(); var dtStr = thisMonth+"/"+thisDay+"/"+thisYear; var msg = isDate(dtStr); if(dtStr == '00/00/0000' && params[3] == '0') { return true; } else if(dtStr == '00/00/0000' && params[3] == '1'){ return false; } else if(msg != '' ) { var pattern = new RegExp(/^([0-9]{2,4})-(0[1-9]|1[0-2])-([0-3][0-9])$/); return (pattern.test(value)); } else { return true; } }, 'Please select a valid date'); I am using this method for two different date field or more. Date field is a dropdown of three fields whose id's are different and defined in the group "dobDay1", "dobMonth1", "dobYear1". Now I have multiple number of date element in my html like "dobDay2", "dobMonth2", "dobYear2" & "dobDay3", "dobMonth3", "dobYear3" & "dobDay4", "dobMonth4", "dobYear4" and so on. In case of validating the second date field or third field or the other I am **NOT** getting the error if it contains any or not even the empty checking for that particular field. Please help me and tell me the exact way of doing the validation in those rest of the fields. To make you understand I am attaching a link here. You will get two date fields there: Date of Claim First Date field is validating perfectly but second one is not working. Now if I want to validate the second date field which is showing blank what should I do? [Validation Link][1] [1]: http://www.megafileupload.com/en/file/360447/dev-jpg.html
0
[ 2, 487, 8190, 93, 3547, 5909, 1807, 43, 568, 214, 25, 52, 638, 7428, 800, 3726, 3726, 31, 589, 568, 214, 19, 487, 8190, 93, 3547, 5909, 1807, 43, 101, 1021, 13, 45, 5579, 5, 22, 4190, 2558, 1340, 3726, 5910, 4190, 1340, 500, 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...
Layout going to top while soft keyboard showing in android === I am using ActivityGroup. in this i have one requirement like messaging user image and username showing on top of the layout and message editbox and send button are in bottom of the layout. while click on editbox my user details user image and name going to top and not showing on screen. if i use WindowsoftInputMode="adjudtResize" my tabs coming to up. if is use WindowsoftInputMode="adjustSpan|adjudtResize" only tabs not coming up and again my user details going up. is there any solution to show user details and tab abr should be at bootom. please anybody help me i am getting frustrated.
0
[ 2, 9106, 228, 20, 371, 133, 1856, 8896, 3187, 19, 13005, 800, 3726, 3726, 31, 589, 568, 2358, 8024, 9, 19, 48, 31, 57, 53, 8981, 101, 26437, 4155, 1961, 17, 4155, 7259, 3187, 27, 371, 16, 14, 9106, 17, 2802, 9392, 5309, 17, 2660...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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'm good iOS Developer, what next? === I've studied iOS with stanford's CS193P Class and several online tutorials. I believe by now I have achieved a good point in iOS programming (I developed a fully functioning app for iPhone and iPad too, it communicates with web server, fetches news, navigates through several tabs and navigation. etc...) anyway, my question is, I want to go step farther. I want to be a professional iOS developer not just an iOS developer. So, which technical stuff that the market requires most? on which parts should I really focus in order to become professional iOS developer? Any references will be very appreciated. Thanks in advance.
2
[ 2, 31, 22, 79, 254, 13, 7760, 10058, 15, 98, 328, 60, 800, 3726, 3726, 31, 22, 195, 1449, 13, 7760, 29, 8382, 22, 18, 272, 18, 21879, 306, 718, 17, 238, 2087, 29724, 18, 9, 31, 985, 34, 130, 31, 57, 3153, 21, 254, 454, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Scroll bar set on Bar chart in android using achartengine === In my project i have to display the bar chart for 30 days with daily net amount. On starting bar chart activity the 30 days every bar values are in congested with other bar values. After gets zoom on screen then only the values are set in x-axis value correctly. I need the values should arranged in corresponding x-axis .The above ranged bar values should shown by setting up scroll bar positions. Please help me if anyone known it.
0
[ 2, 12159, 748, 309, 27, 748, 1795, 19, 13005, 568, 21, 5433, 38, 16847, 800, 3726, 3726, 19, 51, 669, 31, 57, 20, 3042, 14, 748, 1795, 26, 712, 509, 29, 1954, 4275, 2006, 9, 27, 1422, 748, 1795, 2358, 14, 712, 509, 352, 748, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android Intent to other class not working === I have an intent to another class and all it does it just flag up errors. I am using some code that i got from a answer to a question i [asked][1]. My package name is : `com.exercise.AndroidAlarmService` The class i am trying to call is : `.Hello` Below is how i am calling the class, buts its not working. I am not an expert in android so a explanation in beginners terms would be appreciated. Log.i("Service", "onStart() is called"); Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); callIntent.setClassName("com.exercise.AndroidAlarmService", ".Hello"); startActivity(callIntent); [1]: http://stackoverflow.com/questions/11174061/calling-an-activity-from-a-service
0
[ 2, 13005, 6936, 20, 89, 718, 52, 638, 800, 3726, 3726, 31, 57, 40, 6936, 20, 226, 718, 17, 65, 32, 630, 32, 114, 3157, 71, 11908, 9, 31, 589, 568, 109, 1797, 30, 31, 330, 37, 21, 1623, 20, 21, 1301, 31, 636, 20310, 69, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to create video alarm in Iphone? === I need to create a video alarm in IPhone app. Is it possible to create such app ? Thanks
1
[ 2, 25, 32, 938, 20, 1600, 763, 6490, 19, 21024, 60, 800, 3726, 3726, 31, 376, 20, 1600, 21, 763, 6490, 19, 21024, 4865, 9, 25, 32, 938, 20, 1600, 145, 4865, 13, 60, 3669, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
getAttribute("name") unescapes html? === We have some custom JS scripts to deal with tooltip which are put in a dom attribute (tooltip) when we render the page. however when i try to retrieve this tooltips (displayed as divs) string javaScript seems to automatically unescape the attribute value. is this normal behavior? and is there a way to avoid this? The problem i have is that &lt;email@example.org&gt; turn into (invalid) html. example for reproduction: <div tltip ="&lt;text&gt;" id="escaped" /> <div tltip ="<text>"id="notescaped" /> js: a = document.getElementById("escaped").getAttribute("tooltip"); b = document.getElementById("notescaped").getAttribute("tooltip"); a.match("<"); //returns true (unexpected) a.match("<"); //returns true (expected) a == b; // returns true (unexpected)
0
[ 2, 164, 721, 14755, 5, 7, 7259, 7, 6, 13, 6763, 13109, 18, 13, 15895, 60, 800, 3726, 3726, 95, 57, 109, 5816, 487, 18, 17505, 20, 1183, 29, 5607, 10169, 56, 50, 442, 19, 21, 11859, 35, 14755, 13, 5, 20799, 10169, 6, 76, 95, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 UnInstall Microsoft Enterprise Library 3.1 assembly from our machine? === Anyone of you just tell me how to uninstall Microsoft Enterprise Library 3.1 assemblies from our machine? As soon as possible please.
0
[ 2, 184, 20, 367, 108, 21300, 7099, 6002, 1248, 203, 9, 165, 1475, 37, 318, 1940, 60, 800, 3726, 3726, 1276, 16, 42, 114, 494, 55, 184, 20, 367, 108, 21300, 7099, 6002, 1248, 203, 9, 165, 21066, 37, 318, 1940, 60, 28, 651, 28, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
jQuery.form uploadProgress never called === I'm trying to write a WordPress plugin that uploads a video using the Vimeo API. I am trying to provide a progress bar for the upload to the user can see that it is working. To produce the status bar I am using the jQuery.Form plugin and accessing the uploadProgress callback but I cannot get the callback to fire. I am using Chrome 19 so the upload and file API's should be available to the browser. I have been copying the code from the jQuery.Form demo, which works on their page but has no effect on mine. - http://jquery.malsup.com/form/progress.html The little Chrom notification in the bottom left of the screen is showing the upload percentage so I am confident that the file is being sent. Thoughts? <form method="POST" action="<?php echo $endpoint; ?>" id="vimeo_upload_form" enctype="multipart/form-data"> <p> <label>Upload video to Vimeo</label> <input type="hidden" name="ticket_id" value="<?php echo $token; ?>" id="ticket_id"/> <input type="hidden" name="chunk_id" value="0" id="chunk_id"/> <input type="file" name="file_data" id="file_data"/> </p> <p> <input type="submit" name="" value="upload"> </p> </form> jQuery(document).ready(function($) { status_msg = $("#status_msg") console.log(status_msg) percent = $("#percentage") bar = $("#bar") $('#vimeo_upload_form').ajaxForm({ beforeSend: function() { status_msg.empty(); var percentVal = '0%'; bar.width(percentVal) percent.html(percentVal); }, uploadProgress: function(event, position, total, percentComplete) { var percentVal = percentComplete + '%'; bar.width(percentVal) percent.html(percentVal); }, complete: function(xhr) { status_msg.html(xhr.responseText); } }); });
0
[ 2, 487, 8190, 93, 9, 4190, 71, 8294, 2740, 13026, 243, 227, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 833, 5890, 10922, 108, 30, 71, 8294, 18, 21, 763, 568, 14, 1790, 790, 111, 21, 2159, 9, 31, 589, 749, 20, 1181, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
color histogram of a image to a file and load it back? === how can i save a color histogram of a image to a file and load it back?I'm using opencv 2.3.1.Normaly the histogram will store in a MatND object.What i weant is to store that MatND object in xml/yml and load it back as a MatND object.
1
[ 2, 1665, 33, 38, 20476, 16, 21, 1961, 20, 21, 3893, 17, 6305, 32, 97, 60, 800, 3726, 3726, 184, 92, 31, 2079, 21, 1665, 33, 38, 20476, 16, 21, 1961, 20, 21, 3893, 17, 6305, 32, 97, 60, 49, 22, 79, 568, 368, 12732, 172, 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...
Access C# Socketobject from PHP === Is it possible to open a socket in a C# Windows Service and pass this SocketObject to PHP that I can write on this socket? Or would it be a better idea to call a function in the windowsservice from php where I pass the socketid an my data I want to write? It's all on the same computer. Thanks
0
[ 2, 1381, 272, 5910, 18482, 23793, 37, 13, 26120, 800, 3726, 3726, 25, 32, 938, 20, 368, 21, 18482, 19, 21, 272, 5910, 1936, 365, 17, 1477, 48, 18482, 23793, 20, 13, 26120, 30, 31, 92, 2757, 27, 48, 18482, 60, 54, 83, 32, 44, 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 to secure Backbone.js === I have a Backbone application which handles public and private stuff. Public => Login, Registration, News, etc. Private => Chatting, other user specific information. To secure the entire application I have a session-based authentication mechanism in node.js. This mechanism secures the backend-api. Now the question is how I can secure the front-end. 1. How do I secure routes in Backbone 2. How could I secure modules (requireJs) in Backbone One idea I had was to split up the front-end into public and private and the server decides if it grants access to the private-assets. What other front-end-secure concepts are out there?
0
[ 2, 184, 20, 4315, 24036, 9, 728, 18, 800, 3726, 3726, 31, 57, 21, 24036, 3010, 56, 3053, 18, 317, 17, 932, 3217, 9, 317, 800, 1, 6738, 108, 15, 8587, 15, 996, 15, 2722, 9, 932, 800, 1, 25169, 15, 89, 4155, 1903, 676, 9, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How create a distinctiveness for android app via Flex? === I'm making a android app and I'm using Flash Builder. I want to make a membership may register once on each phone. What should I use for this? IMEI? PhoneName?
0
[ 2, 184, 1600, 21, 7296, 720, 26, 13005, 4865, 1197, 14409, 60, 800, 3726, 3726, 31, 22, 79, 544, 21, 13005, 4865, 17, 31, 22, 79, 568, 4433, 14960, 9, 31, 259, 20, 233, 21, 4363, 123, 2243, 382, 27, 206, 1132, 9, 98, 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, 0, 0, 0, 0, 0, 0, 0...
Div not to display if no results found - === I have an area on my page of coloured swatches (and the tile AVAIALBLE COLOURS) that i only want to display if there is a result for them in the database. here is my code: private function getWTVariationHighlights($productId, $variationId) { $output_str = ""; $output_str .="<div class=\"mainProductSwatchesTitle\"><b>AVAILABLE COLOURS</b>\n"; $output_str .= "<div class=\"mainProductSwatches\">\n"; $sql = "select voptionid, vovalue from [|PREFIX|]product_variation_options where vovariationid=$variationId and (voname='Colour' or voname='Color')"; $result = $this->db->Query($sql); while ($row = $this->db->fetch($result)) { $sql = "select * from [|PREFIX|]variation_option_highlight where variation_option_id=" . $row['voptionid'] . " and product_id=" . $productId; $result2 = $this->db->Query($sql); if($row2 = $this->db->fetch($result2)){ if($row2['thumb_location']){ $output_str .= "<a href=\"#\" onmouseover=\"changeMain('" . $row2['location'] . "')\"><img src=\"" . $GLOBALS['ShopPath'] . "/product_images/hfh_highlight_images/" . $row2['thumb_location'] . "\" /></a>\n"; } } } $output_str .= "</div>\n"; $output_str .= "<script type=\"text/javascript\">\n"; $output_str .= "function changeMain(src)\n"; $output_str .= "{\n"; $output_str .= "document.getElementById('phthumb').src = '" . $GLOBALS['ShopPath'] . "/product_images/hfh_highlight_images/' + src;\n"; $output_str .= "}\n"; $output_str .= "</script>\n"; return $output_str; }
0
[ 2, 13, 12916, 52, 20, 3042, 100, 90, 1736, 216, 13, 8, 800, 3726, 3726, 31, 57, 40, 217, 27, 51, 2478, 16, 16246, 18279, 5370, 13, 5, 290, 14, 13, 9802, 13656, 2815, 2854, 8739, 6, 30, 31, 104, 259, 20, 3042, 100, 80, 25, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Chrome extension global variable weirdness === I have the following code in the popup.js of a chrome extension. var tt; chrome.tabs.query({ active: true, currentWindow: true, windowType: 'normal' }, function (tabs) { tt = 5; }); document.getElementById('elm').textContent = tt; But the weird thing is value of tt is undefined when accessed out side of the function, but it shows "5" if the `document.getElementById('elm').textContent = tt;` is put inside the function. So why is the variable value is not retained when the control exit the function ? What am I doing wrong here ? This code runs when the popup is shown. I.e. when the browser action's button is clicked and I simplified the code be readable. Actually I'm trying to get the current tab's id in to a variable. But nothing works.
0
[ 2, 13, 12985, 3896, 2062, 7612, 5455, 720, 800, 3726, 3726, 31, 57, 14, 249, 1797, 19, 14, 1675, 576, 9, 728, 18, 16, 21, 13, 12985, 3896, 9, 4033, 13, 38, 38, 73, 13, 12985, 9, 15783, 18, 9, 8190, 93, 5, 1, 1348, 45, 1151, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Javascript array sort multiple keys clobber previous sorts? === In this environment, I only have access to intrinsic Javascript functions, so cannot load external libraries. When trying to sort by 3 keys, inner, middle, and outer, only my last sort seems to be preserved. function Claim(claimNumber, lastName, claimStatus, record) { this.claimNumber = claimNumber; this.lastName = lastName; this.claimStatus = claimStatus; this.record = record; } function sortLastName(a, b) { var o1 = a["lastName"].toUpperCase(); var o2 = b["lastName"].toUpperCase(); if (o1 < o2) return -1; if (o1 > o2) return 1; return 0; } function sortClaimNumber(a, b) { var o1 = a["claimNumber"].toUpperCase(); var o2 = b["claimNumber"].toUpperCase(); if (o1 < o2) return -1; if (o1 > o2) return 1; return 0; } function sortClaimStatus(a, b) { var o1 = ("00" + a["claimStatus"].toUpperCase()).substr(-2); var o2 = ("00" + b["claimStatus"].toUpperCase()).substr(-2); if (o1 < o2) return 1; if (o1 > o2) return -1; return 0; } var claimListArray = buildClaimList(record); claimListArray.sort(sortClaimStatus); claimListArray.sort(sortClaimNumber); claimListArray.sort(sortLastName); The output should look like (lastname asc, claimnumber asc, claimstatus desc): AARDVARK 111222A 15 AARDVARK 111222A 6 AARDVARK 111222A 1 AARDVARK 222555C 8 AARDVARK 222555C 4 BANKS 123132Z 78 but instead looks like: AARDVARK 111222A 15 AARDVARK 222555C 4 AARDVARK 111222A 1 AARDVARK 222555C 8 AARDVARK 111222A 6 BANKS 123132Z 78 That is to say, only the lastName sort is preserved, as if the first two sorts did not happen. Is there something about arrays and sorting that I'm missing that ignores previous sorts? Is there a better approach?
0
[ 2, 630, 8247, 8741, 7718, 2058, 1886, 5534, 7383, 17031, 1158, 14357, 60, 800, 3726, 3726, 19, 48, 2307, 15, 31, 104, 57, 1381, 20, 22892, 8247, 8741, 3719, 15, 86, 1967, 6305, 4886, 8649, 9, 76, 749, 20, 2058, 34, 203, 5534, 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...
iOS: Referring back to first view controller from a popover VC === I'm currently trying to finish off my university iPad application. The purpose of it is to provide a live google/apple maps view of the campus with overlays of annotations and MKPolygons. This all works fine. I've now added a button that loads a popover (the second view controller) with a table of the campus buildings (which are themselves objects of CampusBuilding, where the coordinates are stored) as well as a search box, and this is all fine. What I'm looking to do is when the user selects a row, the map view centres on that specific building. I've written a method below which works fine when I reference it from the maps view controller itself. But how would I do this from the second view controller? Here's the method that is present in the first view controller: - (void)setLat:(CLLocationDegrees)lat setLon:(CLLocationDegrees) lon{ MKCoordinateSpan span; span.latitudeDelta = (double) .003; span.longitudeDelta = (double).003; //Define the default region to focus on MKCoordinateRegion region; region.span=span; region.center=CLLocationCoordinate2DMake (lat,lon); //set the default region to 'region' [_mapView setRegion: region animated:YES]; [_mapView regionThatFits:region]; } Now in the second view controller, it works fine as a table view controller. I've set it up so when the user selects a row it loads a new view. I also tried to initiate an object of the first view controller and then wrote this: FirstViewController* firstVC; [firstVC setLat:building.latValue setLon:building.lonValue]; It all compiles but no movement happens, I assume because I'm initiating a new object, rather than referring to the one that is currently active. Is there a way to do this? Comments on how I can improve the code are always welcome, I'm relatively new to this. Thanks
0
[ 2, 13, 7760, 45, 7378, 97, 20, 64, 1418, 9919, 37, 21, 1675, 2549, 13, 8990, 800, 3726, 3726, 31, 22, 79, 871, 749, 20, 2106, 168, 51, 155, 31, 8240, 3010, 9, 14, 2131, 16, 32, 25, 20, 1181, 21, 515, 8144, 118, 24212, 6867, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GDB with multiple files of MySQL source code === I am trying to use gdb with MySQL source code which is written in C/C++. In mysql-test/t, I create a custom test case file say example.test and then debug it by using the following line of code /mysql-test-run --gdb example Now I want to see the flow of execution as it changes from one function in a file to another in some different file. i am not sure of how the execution changes, so I cant pre define the break points. Any solution to how I can get to see the flow with multiple files of source code?
0
[ 2, 489, 9007, 29, 1886, 6488, 16, 51, 18, 22402, 1267, 1797, 800, 3726, 3726, 31, 589, 749, 20, 275, 489, 9007, 29, 51, 18, 22402, 1267, 1797, 56, 25, 642, 19, 272, 118, 150, 20512, 9, 19, 51, 18, 22402, 8, 10543, 118, 38, 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...
custom navigation bar in xcode is cutting the image === /*enter code here */ UIImage *image = [UIImage imageNamed: @"top-bar.png"]; UIImageView *imageview = [[UIImageView alloc] initWithImage: image]; // set the text view to the image view self.navigationItem.titleView = imageview; I am using this code for custom navigation bar but the image is cutting out . Although the image width is same as device width. Any idea, how to solve this. ![enter image description here][1] [1]: http://i.stack.imgur.com/8ZvOU.png
0
[ 2, 5816, 8368, 748, 19, 993, 9375, 25, 5378, 14, 1961, 800, 3726, 3726, 13, 118, 2483, 13679, 1797, 235, 1637, 118, 13, 5661, 22039, 1637, 22039, 800, 636, 5661, 22039, 1961, 11482, 45, 13, 1, 7, 3880, 8, 1850, 9, 306, 2723, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NodeJS: stdin text not egal === I use `process.stdin.setEncoding('utf8');` But when i listen a event `'data'`, the text isn't egal. process.stdin.on('data', function (text) { if (text === 'q') console.log('ouiiiiiiiiii'); else console.log(text); }); I type 'q' but don't display "ouiiiiiiiii", and the text is q... but the `text === 'q'` is to false, why ? thanks I think it's due to the encoding, but i don't know.
0
[ 2, 15421, 728, 18, 45, 354, 3653, 1854, 52, 13, 62, 4941, 800, 3726, 3726, 31, 275, 13, 1, 16835, 9, 384, 3653, 9, 3554, 219, 15458, 5, 22, 1982, 410, 457, 22, 6, 73, 1, 47, 76, 31, 3834, 21, 807, 13, 1, 22, 18768, 22, 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...
Designing a point system in Spring === I have a lot of existing data in my database already, and want to develop a points mechanism that computes a score for each user based on what actions they do. I am implementing this functionality in a pluggable way, so that it is independent of the main logic, and relies on Spring events being sent around, once an entity gets modified. The problem is what to do with the existing data. I do not want to start collecting points from now, but rather include all the data until now. What is the most practical way to do this? Should I design my plugins in such a way as to provide for an index() method, which will force my system to fetch every single entity from the database, send an EntityDirtyEvent, to fire the points plugins, for each one, and then update it, to let points get saved next to each entity. That could result in a lot of overhead, right? The simplest thing would be to create a complex stored procedure, and then make the index() call that stored procedure. That however, seems to me like a bad thing either. Since I will have to write the logic for computing the points in java anyway, why have it once again in SQL? Also, in general I am not a fan of splitting business logic into the different layers. Has anyone done this before? Please help.
0
[ 2, 15026, 21, 454, 329, 19, 1573, 800, 3726, 3726, 31, 57, 21, 865, 16, 3149, 1054, 19, 51, 6018, 614, 15, 17, 259, 20, 2803, 21, 819, 6534, 30, 23909, 18, 21, 1618, 26, 206, 4155, 432, 27, 98, 3078, 59, 107, 9, 31, 589, 173...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Changing branches seems to delete a file === I clone a repo from our git server, then checkout a tracked branch followed by git status; git indicates a file is deleted. No work was done in the repo, only git commands in the this order: git clone <myrepo> git branch - indicates on master branch git status - reports working directory is clean git checkout <release-branch> git status - shows a file has been deleted Doing an 'ls <file>' fails, indicates the file really is deleted. gitk shows the red node indicating local uncommitted changes, but no changes were made in the repo, just a checkout to the branch. The parent commit has the file when looking at the tree in gitk git checkout -- <file> brings the file back. However if I clone the same repo, but include the branch, then do a status, the file is present: git clone -b <release-branch> <myrepo> git status - reports working directory is clean ls <file> - shows file exists This is repeatable by several different people on different systems. Why did changing branches cause this file to be deleted?
0
[ 2, 4226, 4395, 2206, 20, 27448, 21, 3893, 800, 3726, 3726, 31, 13871, 21, 302, 1638, 37, 318, 13, 10404, 8128, 15, 94, 2631, 1320, 21, 15535, 1686, 709, 34, 13, 10404, 1782, 73, 13, 10404, 6475, 21, 3893, 25, 19584, 9, 90, 170, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How is it better to alert the visitor they made a mistake while filling a form in javascript? === I have was just wondering when you are validating the data from a for using JS, what is the better way to alert them they have made a mistake and need to correct it? I have seen some sites just pop up alert boxes while others display a warning next to the input/textarea box. Could you please tell me which way is the better one? Thank you very much! Best Regards, Stefany
4
[ 2, 184, 25, 32, 574, 20, 7863, 14, 10875, 59, 117, 21, 5643, 133, 7702, 21, 505, 19, 8247, 8741, 60, 800, 3726, 3726, 31, 57, 23, 114, 5712, 76, 42, 50, 7394, 1880, 14, 1054, 37, 21, 26, 568, 487, 18, 15, 98, 25, 14, 574, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
eclipe rap demo source code === I was going through the eclipse RAP tutorials,examples and Demos. From the official site I got some demo. Any idea how to get the source codes for that demos? I tried to get through CVS access. But could not find the demo source code. Request you to help on this. Following is the site which is having demo. [enter link description here][1] [1]: http://rap.eclipsesource.com/rapdemo/examples#input
0
[ 2, 6695, 6013, 62, 4888, 8376, 1267, 1797, 800, 3726, 3726, 31, 23, 228, 120, 14, 11652, 4888, 29724, 18, 15, 29041, 18, 17, 19494, 9, 37, 14, 989, 689, 31, 330, 109, 8376, 9, 186, 882, 184, 20, 164, 14, 1267, 11358, 26, 30, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery dialog opens collapsed === I wrote this code implemented in a much bigger solution. the point was to add an asp:ImageButton to an asp:GridView. Clicking this image button would trigger a javascript call to a JQuery dialog. This dialog is bound to a div containing an asp:BulletedList. Simple enough, and I got it to work, but when I click the button and the dialog opens, it shows up collapsed to only the title bar. I can resize and expand the window to show the contents but I'd like it to open to the right size from the get go. Setting the Resizable option to false just blocks it in collapsed mode and I can't see the data anymore. Also, opening the source code from the rendered page in IE displays an empty div (the div used by the dialog) while the dialog is collapsed to the title bar, but after I expand the window and display my BulletedList data, displaying the source code by right clicking the bullet list still shows an empty div... Here is the code, the gridview is a lot bigger and item templates are used because each column has a specific header and footer but I took out all the non-related stuff. #.ascx file# ###The Javascript:### <!-- language: lang-js --> function ShowReferedTasks() { $('#litReferedTasks').dialog({ autoOpen: true, modal: true, minHeight: 150, minWidth: 500, resizable: true }); } ###The gridview containing the button that triggers the dialog:### <!-- language: lang-html --> <ext:GridView ID="gvTaskParameters" runat="server" AutoGenerateColumns="False" DataKeyNames="TaskParameterID" ShowFooter="<%# _isAdmin %>" ShowHeaderWhenEmpty="True" ShowFooterWhenEmpty="True" EmptyDataText="Aucun paramètre disponible" AllowPaging="True" PagerSettings-Mode="NextPreviousFirstLast" OnPageIndexChanging="gvTaskParameters_PageIndexChanging" OnRowCancelingEdit="gvTaskParameters_RowCancelingEdit" OnRowEditing="gvTaskParameters_RowEditing" OnRowDeleting="gvTaskParameters_RowDeleting" OnRowUpdating="gvTaskParameters_RowUpdating" OnRowCommand="gvTaskParameters_RowCommand" OnRowDataBound="gvTaskParameters_RowDataBound" OnDataBound="gvTaskParameters_DataBound"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:ImageButton ID="ibViewTasks" runat="server" CausesValidation="False" CommandName="ViewTasks" ImageAlign="Middle" ImageUrl="../../js/jquery-ui-1.8.19.custom/development-bundle/demos/images/icon-docs-info.gif" AlternateText="<%$ resources:resource, images_VoirTaches %>" CommandArgument='<%# Eval("TaskParameterID") %>' /> <%--<input id="ibViewTasks" class="ui-state-default ui-corner-all" type="image" src="../../js/jquery-ui-1.8.19.custom/development-bundle/demos/images/icon-docks-info.gif" value="button" />--%> </ItemTemplate> </asp:TemplateField> </Columns> </ext:GridView> ###The div bound to the dialog:### <!-- language: lang-html --> <div id="litReferedTasks" class="" title="Tâches Référées" style="background-color: White; position: absolute;"> <div style="padding-left: 25px; padding-bottom: 25px; padding-right: 25px;"> <asp:BulletedList ID="blReferedTasks" runat="server" DisplayMode="Text"> </asp:BulletedList> </div> </div> #Code Behind in C#:# <!-- language: lang-cs --> else if (e.CommandName == "ViewTasks") { TaskParameterMapManager mgr = new TaskParameterMapManager(DatabaseConnection); int id = Convert.ToInt32(e.CommandArgument.ToString()); var ts = mgr.GetTasks(id).OrderBy(t => t.TaskDescription); this.blReferedTasks.DataSource = ts.ToList(); this.blReferedTasks.DataTextField = "TaskDescription"; this.blReferedTasks.DataBind(); ScriptManager.RegisterStartupScript(this, this.GetType(), "Key_ShowReferedTasks", "ShowReferedTasks();", true); }
0
[ 2, 487, 8190, 93, 28223, 8965, 7355, 800, 3726, 3726, 31, 738, 48, 1797, 6807, 19, 21, 212, 6197, 4295, 9, 14, 454, 23, 20, 3547, 40, 28, 306, 45, 22039, 811, 444, 20, 40, 28, 306, 45, 16375, 4725, 9, 25590, 48, 1961, 5167, 83...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Expressjs: How to share route middleware accross routes === I have defined multiple route middleware and want to share them across multiple routes/controllers. Here is my setup: app.js requires ./routes/index.js: // load fs module var fs = require('fs'); // import routing files module.exports = function(app){ fs.readdirSync(__dirname).forEach(function(file) { if (file == "index.js") return; var name = file.substr(0, file.indexOf('.')); require('./' + name)(app); }); }; index.js loads all routes automaticly in the dir. A possible routes file can look like: module.exports = function(app) { app.get('/contacts', function(req, res, next) { // routing stuff }); }; Now I got route middleware: function isAuthenticated(req, res, next) { if (!req.session.authenticated) return next(new Error('user not authenticated')); }; function loadUser(req, res, next) { var query = User.findById(req.session.user_id); query.populate('contacts'); query.exec(function(err, user) { if (err) return next(err); req.user = user; next(); }); } which I want to use like: var User = require('../models/user'); module.exports = function(app) { app.get('/contacts', isAuthenticated, loadUser, function(req, res, next) { res.json(req.user.contacts); }); }; I also would like to avoid requiring them accross all routing files. A possible solution would also be: // load fs module var fs = require('fs'); var routeMiddleware = { loadUser: function(req, res, next) { // logic }, isAuthenticated: function(req, res, next) { // logic }, }; // import routing files module.exports = function(app){ fs.readdirSync(__dirname).forEach(function(file) { if (file == "index.js") return; var name = file.substr(0, file.indexOf('.')); require('./' + name)(app, routeMiddleware); }); }; but I think not the best...
0
[ 2, 2999, 728, 18, 45, 184, 20, 1891, 858, 772, 5011, 21, 150, 7703, 5050, 800, 3726, 3726, 31, 57, 2811, 1886, 858, 772, 5011, 17, 259, 20, 1891, 105, 464, 1886, 5050, 118, 12898, 1252, 18, 9, 235, 25, 51, 18161, 45, 4865, 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...
Unable to download Application on ipad2 === I am facing a problem for the last couple of days regarding the downloading of the application on ipad. What I have done is hosted the .ipa and .plist on my IIS server and installed the certificates on the server.Actually i am giving the https link for downloading the application. Whenever,the service is hit from the ipad end,sometimes the error occurs:"Cannot connect to the server or otherwise unable to download at this time and retry many times" but not able to download I am sending the code for .plist file and the html on which we are calling the .plist file. **Code for plist Section** <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>https://<ServerName>:<PortNumber>/abcV.ipa</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>abc</string> <key>bundle-version</key> <string>1.0</string> <key>kind</key> <string>software</string> <key>subtitle</key> <string>abcV.25</string> <key>title</key> <string>abcV.25</string> </dict> </dict> </array> </dict> </plist> I am calling the itms services in the body as: <a href="itms-services://?action=download- manifest&url=https://<ServerIP>:<PortNumber>/abc.plist">Install the app</a> Any help will be appreciated.. Thanks
0
[ 2, 2343, 20, 7121, 3010, 27, 31, 8240, 135, 800, 3726, 3726, 31, 589, 4325, 21, 1448, 26, 14, 236, 1335, 16, 509, 3467, 14, 7121, 68, 16, 14, 3010, 27, 31, 8240, 9, 98, 31, 57, 677, 25, 2812, 14, 13, 9, 15796, 17, 13, 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...
What's the difference between project references and project dependencies? === I have a simple solution in Visual Studio 2010 containing a few static libraries, a few DLLs, and an executable. Some libraries depend one another (for example the DLL needs two static lib projects to be built before building the DLL itself), and it seems there are two way to achieve this: 1) If I right click on the solution I can select "Project dependencies..." and set the build order 2) I can right click on the DLL project and select Properties->Framework and References and then add a new reference. What is the difference between #1 and #2? What is the better way to express a build dependency between two projects in Visual Studio 2010?
0
[ 2, 98, 22, 18, 14, 2841, 128, 669, 7231, 17, 669, 29411, 60, 800, 3726, 3726, 31, 57, 21, 1935, 4295, 19, 3458, 1120, 498, 3503, 21, 310, 12038, 8649, 15, 21, 310, 13, 43, 211, 18, 15, 17, 40, 1396, 17194, 5924, 9, 109, 8649, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adjust the screen in pdfViewer === I have an application that views pdfs, the problem is that the pdf out of the screen, and if I zoom out the pdf is not focused. ![image1][1] ![enter image description here][2] Any ideas? Thank you [1]: http://i.stack.imgur.com/ELAdL.png [2]: http://i.stack.imgur.com/dtFhc.png
0
[ 2, 14328, 14, 2324, 19, 13, 11124, 4725, 106, 800, 3726, 3726, 31, 57, 40, 3010, 30, 4146, 13, 11124, 18, 15, 14, 1448, 25, 30, 14, 13, 11124, 70, 16, 14, 2324, 15, 17, 100, 31, 19469, 70, 14, 13, 11124, 25, 52, 2604, 9, 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...
Using random in php mysql can't random id? === I have a sample code products(id, name) 1 | Apple 2 | Sony 3 | Nokia 4 | Samsung 5 | LG 6 | Motorola 7 | Ekricson And mysql: SELECT id, name FROM `products` AS prod ORDER BY RAND(prod.id) LIMIT 5 When i run code is result is: 4 | ... 7 | ... 1 | ... 5 | ... 6 | ... But next ... is result is: 4 | ... 7 | ... 1 | ... 5 | ... 6 | ... Id not change when run random, how to fix ix
0
[ 2, 568, 5477, 19, 13, 26120, 51, 18, 22402, 92, 22, 38, 5477, 4924, 60, 800, 3726, 3726, 31, 57, 21, 5717, 1797, 1985, 5, 1340, 15, 204, 6, 137, 13, 1, 4037, 172, 13, 1, 8283, 203, 13, 1, 24294, 268, 13, 1, 22981, 331, 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...
How to set a Windows folder's permissions using SID's in Delphi === Just now I'm looking at fixing a localization bug with a small application that get's fired during the install of a software package. The small application essentially brute forces permissions on our own folder within Application Data to set EVERYONE to full access. The problem arises with EVERYONE not being localized. I know I need to use SID's, which for EVERYONE, is `S-1-1-0`. I can't find a WinAPI function for setting permissions using an SID. The function just now uses `BuildExplicitAccessWithName` and `SetNamedSecurityInfo` as shown below function setfullaccess(foldername:string):boolean; //B2415 MDE var pDACL: PACL; pEA: PEXPLICIT_ACCESS_A; R: DWORD; begin result := true; pEA := AllocMem(SizeOf(EXPLICIT_ACCESS)); BuildExplicitAccessWithName(pEA, 'EVERYONE', GENERIC_ALL{GENERIC_READ},GRANT_ACCESS, SUB_CONTAINERS_AND_OBJECTS_INHERIT{NO_INHERITANCE}); R := SetEntriesInAcl(1, pEA, nil, pDACL); if R = ERROR_SUCCESS then begin if SetNamedSecurityInfo(pchar(foldername), SE_FILE_OBJECT,DACL_SECURITY_INFORMATION, nil, nil, pDACL, nil) <> ERROR_SUCCESS then result := false; LocalFree(Cardinal(pDACL)); end else result := false;//ShowMessage('SetEntriesInAcl failed: ' + SysErrorMessage(R)); end; Which functions should I be looking at using instead?
0
[ 2, 184, 20, 309, 21, 1936, 19294, 22, 18, 5572, 18, 568, 7027, 22, 18, 19, 23030, 800, 3726, 3726, 114, 130, 31, 22, 79, 699, 35, 20047, 21, 375, 1829, 6256, 29, 21, 284, 3010, 30, 164, 22, 18, 3899, 112, 14, 16146, 16, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Page fixing position in IE8 === I am working on a page that is working fine in all of the browsers that I need it to be, however when viewed in IE8 it appears fine to begin with but if you change the viewport size the position of a few elements remain static and do not flow with the rest of the page. Is this a common IE bug that I've just never seen before? The page is built using HTML5 CSS3 and then using the HTML shiv solution to make it work for older IE versions. There is loads of code to be pasting into a thread so I wondered if it was something thats common because I cant find much when I tried to search! Thanks in advance
0
[ 2, 2478, 20047, 649, 19, 13, 660, 457, 800, 3726, 3726, 31, 589, 638, 27, 21, 2478, 30, 25, 638, 1123, 19, 65, 16, 14, 16495, 18, 30, 31, 376, 32, 20, 44, 15, 207, 76, 6084, 19, 13, 660, 457, 32, 1780, 1123, 20, 2348, 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...