unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Listview hags whole application on fastscrolling === I am creating an application which is totally based on listview. Initaially my listview add 10 items after scrolling it again adds next 10 items and so on. when i fast scroll on listview my listview stops responding or the shows the dialog application stops responding. How should i need to do so that listview will not app and load data smoothly without hanging the app. Any help is appricated. Thanks
0
[ 2, 968, 4725, 13641, 18, 979, 3010, 27, 1512, 28166, 800, 3726, 3726, 31, 589, 2936, 40, 3010, 56, 25, 5139, 432, 27, 968, 4725, 9, 19, 3188, 49, 1326, 51, 968, 4725, 3547, 332, 3755, 75, 13, 28166, 32, 188, 10621, 328, 332, 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...
manually start a view controller using storyboards. === I am trying to manually start a view controller using storyboards. That is written in code as opposed to wiring it up. I tried: self initWithNibName:(NSString *) bundle:(NSBundle *) but I am not sure if they are classed as nibs or what they are classed as in storyboards. Any help would be great thanks!
0
[ 2, 23671, 799, 21, 1418, 9919, 568, 609, 2806, 18, 9, 800, 3726, 3726, 31, 589, 749, 20, 23671, 799, 21, 1418, 9919, 568, 609, 2806, 18, 9, 30, 25, 642, 19, 1797, 28, 3499, 20, 12701, 68, 32, 71, 9, 31, 794, 45, 1119, 19, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stof Doctrine Extension === I'm using version 1.0.x of [StofDoctrineExtensionBundle][1] with [doctrine extensions version 2.1][2] on symfony 2.0.15. I would like to set fallback in the controller; I tried this $this->getRequest()->getSession()->setLocale('de'); $em = $this->getDoctrine()->getEntityManager(); $translation_listener=new \Stof\DoctrineExtensionsBundle\Listener\TranslationListener; $translation_listener->setTranslationFallback(false); $translation_listener->setTranslatableLocale('de'); $em->getEventManager()->addEventSubscriber($translation_listener); $entities = $em->getRepository('FrontendBundle:Question')->findAll(); but this code doesn't control the translation fallback set to true in config.yml. How can I control fallback in my controller? [1]: https://github.com/stof/StofDoctrineExtensionsBundle/tree/1.0.x [2]: https://github.com/l3pp4rd/DoctrineExtensions/tree/doctrine2.1.x
0
[ 2, 354, 1041, 7521, 3896, 800, 3726, 3726, 31, 22, 79, 568, 615, 137, 9, 387, 9, 396, 16, 636, 384, 1041, 13799, 38, 7850, 1706, 25573, 9930, 413, 500, 2558, 165, 500, 29, 636, 13799, 38, 7850, 17529, 615, 172, 9, 165, 500, 2558...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 <link> (not rel="stylesheet") allowed to be used in <body>? === The new [schema.org][1] by Google, Yahoo and MS recommends usage of the `<link>` attribute to display the status of products in an online shop: <div itemscope itemtype="http://schema.org/Offer"> <span itemprop="name">Blend-O-Matic</span> <span itemprop="price">$19.95</span> <link itemprop="availability" href="http://schema.org/InStock"/>Available today! </div> Yet, [according to w3schools.org][2] `<link>` is only allowed in head sections: > Note: This element goes only in the head section, but it can appear any number of times. I am not used to W3C style, so I was not able to understand the exact [definition by W3C][3]. Can anybody help me: Is it really allowed to use `<link>` within the body (in HTML5, as schema.org uses HTML5 tags) or do Google, Yahoo and MS break the standard? [1]: http://schema.org/ [2]: http://www.w3schools.com/html5/tag_link.asp [3]: http://www.w3.org/TR/html5/semantics.html#the-link-element
0
[ 2, 25, 13, 1, 6258, 1, 13, 5, 1270, 13, 7256, 3726, 7, 4381, 17627, 7, 6, 1159, 20, 44, 147, 19, 13, 1, 9760, 1, 60, 800, 3726, 3726, 14, 78, 636, 7526, 540, 9, 5583, 500, 2558, 165, 500, 34, 8144, 15, 23553, 17, 4235, 123...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
array to structure casting === I have these three structures, typedef struct serial_header { int zigbeeMsgType; int seqNumber; int commandIdentifier; int dest; int src; }serial_header_t; typedef struct serial_packet { serial_header_t header; int data[]; } serial_packet_t; and last one is typedef struct readAttributePacket { int u8SourceEndPointId; int u8DestinationEndPointId; int u16ClusterId; int bDirectionIsServerToClient; int u8NumberOfAttributesInRequest; int bIsManufacturerSpecific; int u16ManufacturerCode; int pu16AttributeRequestList[]; }readAttributePacket_t; I am troubling with this code, i just want to cast the data[] array which reside in serial_packet_t into readAttributePacket_t structure. I think the data[] should be data[]={0x01,0x01,0x04,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x01}; I need to cast those data to readAttributePacket_t structure. But this below code showing wrong. void main() { int a[]= {0x32,0x00,0x31,0x69,0x69,0x00,0x00,0x01,0x01,0x04,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x01}; int i; readAttributePacket_t *p; serial_packet_t *data; data = (serial_packet_t*)&a; for(i=0;i<20;i++){ printf(" %02x \n",a[i]); } p = (readAttributePacket_t *)&data->data; printf("\nu8SourceEndPointId:%x \nu8DestinationEndPointId:%x \nu16ClusterId:%04x \nbDirectionIsServerToClient:%x \nu8NumberOfAttributesInRequest:%x \nbIsManufacturerSpecific:%x \nu16ManufacturerCode:%04x",p->u8SourceEndPointId, p->u8DestinationEndPointId, p->u16ClusterId, p->bDirectionIsServerToClient, p->u8NumberOfAttributesInRequest, p->bIsManufacturerSpecific, p->u16ManufacturerCode); getch(); } the output should be like u8SourceEndPointId=01 u8DestinationEndPointId=01 u16ClusterId=0402 bDirectionIsServerToClient=00 u8NumberOfAttributesInRequest=02 bIsManufacturerSpecific=00 u16ManufacturerCode=0000 pu16AttributeRequestList[0]=0000 pu16AttributeRequestList[1]=0001 but my code is showing different values. please help me out from this problem. Thank you...
0
[ 2, 7718, 20, 1411, 9087, 800, 3726, 3726, 31, 57, 158, 132, 3815, 15, 1001, 13862, 13, 10346, 5956, 1, 1743, 106, 13, 1, 19, 38, 13, 16594, 8506, 79, 18, 263, 4474, 73, 19, 38, 13, 18, 18550, 16299, 73, 19, 38, 1202, 13384, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I display Google AJAX Feed API using jQuery Mobile? === Recently,I'm Using Google Feed API to display the feed in normal listview and it works.I did my best,but I have no idea how to transform the normal listview into a mobile-friendly list view using jQuery Mobile. here's my code. > google.load("feeds", "1"); > > //<![CDATA[ > var getRssFeeds = function (_id, _urls, _maxLength) { > if(!_id || !_urls || (!(_urls instanceof Array))) return; > var entryNum =30; > var maxLength = (_maxLength)? _maxLength : 0 ; > > var entriesArray = new Array(); > var complete = 0; > > var init = function () { > for(var i=0 ; i < _urls.length ; i++){ > > var feed = new google.feeds.Feed(_urls[i]); > feed.setNumEntries(entryNum); > feed.load(function(result) { > if (!result.error) { > for (var i = 0; i < result.feed.entries.length; i++) { > var entry = result.feed.entries[i]; > entriesArray.push(entry); > var pdate = new Date(entry.publishedDate); > var arr = entriesArray[(entriesArray.length-1)]; > arr.sortDate = pdate.getTime(); > arr.siteTitle = result.feed.title; > arr.siteUrl = result.feed.link; > } > } > complete++; > if(_urls.length == complete) echo(); > }); > } > }; > > var echo = function () { > entriesArray.sort (function (b1, b2) { return b1.sortDate < b2.sortDate ? 1 : -1; } ); > //this.entriesArray.sort (function (b1, b2) { return b1.sortDate > b2.sortDate ? 1 : -1; } ); > var feedLength = (_maxLength)? _maxLength : entriesArray.length; > var container = document.getElementById(_id); > var html='<dl>'; > for (var i = 0; i < feedLength; i++) { > var entry = entriesArray[i]; > var pdate = new Date(entry.publishedDate); > var Y = pdate.getFullYear(); > var m = pdate.getMonth() + 1; > m = (m < 10)? "0" + m:m; > var d = pdate.getDate(); > d = (d < 10)? "0" + d:d;/ > var date = Y + "." + m + "." + d ; > > html += '<li>'; > html += '<img src="http://favicon.st-hatena.com/?url=' +entry.link + '" />'; > html += ' <a href="' + entry.link + '" target="_blank">' + entry.title + '</a>(' + date + ')'; > html += '<img src="http://b.hatena.ne.jp/entry/image/large/' + entry.link + '" />'; > html += '<img src="http://tools.tweetbuzz.jp/imgcount?url=' + entry.link + '"/>'; > > > > > } > html += '</li>'; > container.innerHTML += html; > }; > > google.setOnLoadCallback(init); > }; > > > getRssFeeds("feeds", [ > > "http://feeds.feedburner.com/hatena/b/hotentry" > ]); > > //]]>' Any help/advice would be greatly appreciated...thanks in advance.
0
[ 2, 184, 92, 31, 3042, 8144, 20624, 4063, 21, 2159, 568, 487, 8190, 93, 3241, 60, 800, 3726, 3726, 1989, 15, 49, 22, 79, 568, 8144, 4063, 21, 2159, 20, 3042, 14, 4063, 19, 1826, 968, 4725, 17, 32, 693, 9, 49, 144, 51, 246, 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...
MSBUILD: Mapping data between itemgroup === i have two itemgroup <ItemGroup> <Device Include="device1"> <Cdname>code1</Cdname> </Device> <Device Include="device2"> <Cdname>code2</Cdname> </Device> <Device Include="device3"> <Cdname>code3</Cdname> </Device> <Device Include="device4"> <Cdname>code4</Cdname> </Device> <Device Include="device4"> <Cdname>code4</Cdname> </Device> <Device Include="device5"> <Cdname>code5</Cdname> </Device> <Device Include="device6"> <Cdname>code6</Cdname> </Device> <Device Include="device7"> <Cdname>code7</Cdname> </Device> <Device Include="device8"> <Cdname>code8</Cdname> </Device> <Device Include="device9"> <Cdname>code9</Cdname> </Device> <Device Include="device10"> <Cdname>code10</Cdname> </Device> ------- <Device Include="device1000"> <Cdname>code1000</Cdname> </Device> </ItemGroup> and <ItemGroup> <Gpdname Include="d:\gpd\gpd1.GPD"> <GPDFile>gpd1.GPD</GPDFile> </Gpdname> <Gpdname Include="d:\gpd\gpd2.GPD"> <GPDFile>gpd2.GPD</GPDFile> </Gpdname> </ItemGroup> My target is as follows <Target Name="CopyGPD" Inputs="@(Gpdname)" Outputs="d:\%(Device.Cdname)\drvs\gpd\%(GPDFile)"> <Message Text="Copying %(Gpdname.GPDFile) file"></Message> <Copy SourceFiles="@(Gpdname)" DestinationFiles="d:\%(Device.Cdname)\drvs\gpd\%(GPDFile)"/> </Target> When copying process is done gpd1.GPD and gpd2.GPD are copied from d:\gpd to d:\\drvs\gpd\gpd1.GPD and d:\\drvs\gpd\gpd2.GPD But i want to copy it to d:\code1\drvs\gpd\gpd1.GPD d:\code1\drvs\gpd\gpd2.GPD d:\code2\drvs\gpd\gpd1.GPD d:\code2\drvs\gpd\gpd2.GPD d:\code3\drvs\gpd\gpd1.GPD d:\code3\drvs\gpd\gpd2.GPD d:\code4\drvs\gpd\gpd1.GPD d:\code4\drvs\gpd\gpd2.GPD d:\code5\drvs\gpd\gpd1.GPD d:\code5\drvs\gpd\gpd2.GPD etc------------------ d:\code1000\drvs\gpd\gpd1.GPD d:\code1000\drvs\gpd\gpd2.GPD Please help
0
[ 2, 4235, 29361, 45, 13305, 1054, 128, 9101, 8024, 800, 3726, 3726, 31, 57, 81, 9101, 8024, 13, 1, 2119, 79, 8024, 1, 13, 1, 546, 18507, 468, 3726, 7, 546, 18507, 165, 7, 1, 13, 1, 6324, 7259, 1, 9375, 165, 1, 118, 6324, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cuustom UserNamePasswordValidator with return value? === I tarted to develop a REST API for my c#/.net app by WCF. I use basic HTTP authentication by a customized UserNamePasswordValidator. It authenticates my API methods. It based on this sample code and I could make it work without any problem: public class CustomUserNameValidator : UserNamePasswordValidator { public override void Validate(string userName, string password) { if (null == userName || null == password) { throw new ArgumentNullException("You must provide both the username and password to access this service"); } if (!(userName == "user1" && password == "test") && !(userName == "user2" && password == "test")) { throw new FaultException("Unknown Username or Incorrect Password"); } } } When authentication fails, I can't send back nothing but a '401 Unauthorized' to the client. I know it is the way it should be, but is it possible somehow send back some information in xml format back to my caller in this case? Some customized error message or some more detailed info. If not, my client has only authentication failed http info, and it is not enough in my case. Thanks a lot!
0
[ 2, 3141, 267, 6015, 4155, 7259, 6201, 9587, 18506, 43, 3457, 29, 788, 1923, 60, 800, 3726, 3726, 31, 2475, 1427, 20, 2803, 21, 760, 21, 2159, 26, 51, 272, 5910, 118, 9, 2328, 4865, 34, 11801, 410, 9, 31, 275, 2125, 7775, 27963, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get value entered in UI created with the new HtmlService === I can get/access the value of the UI elements using, e.parameter.elementname or app.getElementById(id) if i create UI using UiApps or GUI builder like, app.add(app.loadComponent("MyGui")); app.getElementbyId('textbox1').setText("Hi"); If i use, HtmlService.createHtmlOutputFromFile('myPage'); How can i get the values entered in the html form - elements ?
0
[ 2, 184, 20, 164, 1923, 1297, 19, 13, 5661, 679, 29, 14, 78, 13, 15895, 11449, 800, 3726, 3726, 31, 92, 164, 118, 20604, 14, 1923, 16, 14, 13, 5661, 2065, 568, 15, 13, 62, 9, 6351, 7307, 9, 27567, 7259, 54, 4865, 9, 3060, 27567...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows Gadget getting data from Excel === Good day, I am attempting to write a sidebar gadget for Vista/Windows 7 that retrieves data from an Excel spreadsheet. I cannot get the code to retrieve the data from the spreadsheet. It doesn't appear to run the code to get the data from the spreadsheet. I've searched multiple sites/code libraries and I can't see anything that I may have missed but I'm sure I'm missing something fundamental (I'm not a java programmer) in the syntax or something. I would greatly appreciate it if anyone could point out the error so that I can get this working. Thank you very much for your time! Gadget Code- <html> <head> <title> Get data from excel sheet </title> <link rel="stylesheet" type="text/css" href="styles.css" /> <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script> <script language="javascript" > function refreshData() { oExcel = new ActiveXObject('Excel.Application'); oWkBooks = oExcel.Workbooks.Open("C:\\MTDSales.xlsx"); oExcelSheet = oWkBooks.Worksheets(1); oExcelSheet.Activate(); oExcel.ActiveWorkbook.RefreshAll(); oExcel.ActiveWorkbook.SaveAs("C:\\MTDSales.xlsx"); oWkBooks.Close(); location.reload(); } function fetchData() { $('#msg').html("Loading..."); $('#msg').show(); var oExcel; var oExcelSheet; var oWkBooks; var cols; var table = document.getElementById('smallPanel'); var cells = table.getElementsByTagName('td'); oExcel = new ActiveXObject('Excel.Application'); oWkBooks = oExcel.Workbooks.Open("C:\\MTDSales.xlsx"); oExcelSheet = oWkBooks.Worksheets(1); oExcelSheet.Activate(); var value1 = oExcel.ActiveSheet.Cells(6, 19).Value; document.getElementById('a2').innerHTML = value1; var value2 = oExcel.ActiveSheet.Cells(8, 19).Value; document.getElementById('f2').innerHTML = value2; var value3 = oExcel.ActiveSheet.Cells(7, 19).Value; document.getElementById('b2').innerHTML = value3; $('#msg').hide(); oWkBooks.Close(); } </script> <style type="text/css"> .ms-grid1-main { border-left: .75pt solid black; border-right-style: none; border-top: .75pt solid black; border-bottom: .75pt solid black; background-color: white; } .ms-grid1-tl { font-weight: normal; color: black; border-left-style: none; border-right: .75pt solid black; border-top-style: none; border-bottom-style: none; background-color: white; } .auto-style3 { text-align: center; border: 1px solid #000000; font-weight: bold; } </style> </head> <body id="mainBody"> <script language="javascript" type="text/javascript"> System.Gadget.onDock = Dock; System.Gadget.onUndock = unDock; $('#bigPanel').hide(); $('#smallPanel').show(); window.onload = System.Gadget.docked ? Dock : unDock; $(document).ready(fetchData); window.setInterval(fetchData, 3600000); function Dock() { $('#bigPanel').hide(); $('#smallPanel').show(); $('#mainBody').css("width", '140px'); $('#mainBody').css("height", '187px'); }; function unDock() { $('#bigPanel').show(); $('#smallPanel').hide(); $('#mainBody').css("width", '1010px'); $('#mainBody').css("height", '500px'); } </script> <center> <div style="" id="content"> <span id="msg"></span>&nbsp;&nbsp;&nbsp; <a href='javascript:fetchData()'>Get Data</a> <div id="smallPanel"> <table id="smallPanel" border="1" cellpadding="2" cellspacing="2" style="width: 130px; color: #000000; font-size: 8px; font-weight: bold;"> <tr> <td colspan="4" style="text-align: center; "> <strong style="color: #000000">Sales MTD</strong> </td> </tr> <tr> <td id='a1' style='text-align: center; font-weight: bold; color: #000000; width: 149px; '>Actual MTD</td> <td id='f1' style='text-align: center; font-weight: bold; color: #000000; width: 149px;'>Forecast MTD</td> <td id='b1' style='text-align: center; font-weight: bold; color: #000000; width: 149px;'>Budget MTD</td> </tr> <tr> <td id='a2' style='text-align: center; color: #000000; font-weight: bold; width: 149px;'></td> <td id='f2' style='text-align: center; color: #000000; font-weight: bold; width: 149px;'></td> <td id='b2' style='text-align: center; color: #000000; font-weight: bold; width: 149px;'></td> </tr> <tr> <td id='a3' style='text-align: center; color: #000000; font-weight: bold; width: 149px;'>GM %</td> <td id='f3' style='text-align: center; color: #000000; font-weight: bold; width: 149px; '>By Area</td> <td id='b3' style='text-align: center; color: #000000; font-weight: bold; width: 149px; '>By Product</td> </tr> </table> </div> </div> </center> </body> </html>
0
[ 2, 1936, 25661, 1017, 1054, 37, 20700, 800, 3726, 3726, 254, 208, 15, 31, 589, 6314, 20, 2757, 21, 270, 1850, 25661, 26, 13520, 118, 27508, 18, 453, 30, 11917, 18, 1054, 37, 40, 20700, 1789, 17627, 9, 31, 1967, 164, 14, 1797, 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...
In SSRS report manager can not see New folder, new dat source, upload file etc. options? === I am trying to use report manager to deploy report. I am newbie on SSRS. When i opened report manger URL i see something like this. ![enter image description here][1] ![enter image description here][2] So I could not find any way to upload rdl/create dataset etc. When I googled I got following image. ![enter image description here][3] ![enter image description here][4] Here there are options to deploy report..what could be the reason I am not bale to see this? [1]: http://i.stack.imgur.com/cKyTD.png [2]: http://i.stack.imgur.com/pmoTl.png [3]: http://i.stack.imgur.com/xKyex.jpg [4]: http://i.stack.imgur.com/mtbJR.jpg
0
[ 2, 19, 22118, 18, 1330, 1382, 92, 52, 196, 78, 19294, 15, 78, 1331, 38, 1267, 15, 71, 8294, 3893, 2722, 9, 6368, 60, 800, 3726, 3726, 31, 589, 749, 20, 275, 1330, 1382, 20, 17617, 1330, 9, 31, 589, 78, 5893, 27, 22118, 18, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a silverlight enabled WCF service in a different project === I want to develop a Silverlight enabled WCF service out of the target web page. Is it possible ? There is not template in the WCF projects tab. And if yes how? Maybe will be possible to create it like usual and then move it (copy it) to a WCF project.
0
[ 2, 184, 20, 1600, 21, 1172, 3130, 9338, 11801, 410, 365, 19, 21, 421, 669, 800, 3726, 3726, 31, 259, 20, 2803, 21, 1172, 3130, 9338, 11801, 410, 365, 70, 16, 14, 2935, 2741, 2478, 9, 25, 32, 938, 13, 60, 80, 25, 52, 22894, 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...
get the top page(masterpage) using javascript === I'am using a masterpage and inside the is an iframe and inside the iframe i sometimes have another iframe. So i want to get the masterpage using javascript. I am using this but for some reason it loops and never stops. <script type="text/javascript" language='javascript'> var wind = window; while(wind.parent!=null) { wind=wind.parent; } wind.document.getElementById('consultar processos').style.color = "#D10759"; </script>
0
[ 2, 164, 14, 371, 2478, 5, 4594, 6486, 6, 568, 8247, 8741, 800, 3726, 3726, 31, 22, 765, 568, 21, 1129, 6486, 17, 572, 14, 25, 40, 31, 8361, 17, 572, 14, 31, 8361, 31, 1030, 57, 226, 31, 8361, 9, 86, 31, 259, 20, 164, 14, 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...
Userscripts error in Chrome === I'm not working with userscripts at the moment, I just noticed the following error when checking the Network tab for the page I'm working on to see what it's doing (It's taking forever to serve my GET request). `Uncaught ReferenceError: unsafeWindow is not defined` `chrome-extensions://bpcnnanbbiobnpfamcdpkopledhphmh/fbex.js:864` Can anyone tell me what this is? Thanks!
0
[ 2, 4155, 8741, 18, 7019, 19, 13, 12985, 800, 3726, 3726, 31, 22, 79, 52, 638, 29, 4155, 8741, 18, 35, 14, 688, 15, 31, 114, 2711, 14, 249, 7019, 76, 9886, 14, 982, 6523, 26, 14, 2478, 31, 22, 79, 638, 27, 20, 196, 98, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Symfony2: Difference between those metodology "Embedded Form" and "Data Transformer" === Consider the following scenario We have a simple database that involves two entities: `user` and `category`.<br/> For our hypothesis let's say that a `user` can have only a type of `category` and a `category` can be associated with *n* `users`. Now, consider a web page where a `user` - say `ROLE_ADMINISTRATOR` - could edit user table and associate them to a different one `category`.<br/> As far I know (and I'm still new to symfony in general) if I use Doctrine and symfony2 in tandem, with - let's say - annotation method, i'll have two entity (php classes). <hr> **Embedded form** <br> I will create a form that will show the `user` and, for show - and persist, of course! - also his `category` I "choose" to follow the "embedded form" strategy. <br/> Having said that the entity has been created, i'll have to create a form for `category` (suppose that into `formBuilder` I'll add only `id` attribute of the `category`).<br/> After that I have to add to `formBuilder` of UserType class the previous form and, with "some kind of magic" the form will render (after the appropriate operations) as magic and just as magically, when i'll post it (and bind, and so on) back all the informations will be persists onto database **Data Transformers**<br/> A.K.A. trasnform an input of a form into an object and vice versa.<br/> In that way I'll have to define a - let's say - `CategorySelectorType` that into his builder, will add a Class (service ?) that will do those transformations. <br/> Now we define the data transformer itself that will implement the `DataTransofmerInterface` (with his method and so on...) <br/> The next step will be register that entity into services and add into `UserType` the form that will use this service. <hr> So I don't understand any "strong" difference between those two metodology but "reusability" of the service. Somebody can offer me a different point of view and explain me the differenes, if any?
0
[ 2, 13, 7261, 10229, 93, 135, 45, 2841, 128, 273, 798, 5648, 4202, 13, 7, 1503, 4283, 7424, 505, 7, 17, 13, 7, 18768, 8007, 106, 7, 800, 3726, 3726, 3563, 14, 249, 12705, 95, 57, 21, 1935, 6018, 30, 6569, 81, 12549, 45, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Grails 2.0.X Auto Reloading === I have grails 2.0.4 installed with STS 2.9.2, I am facing an issue that Auto Reloading of controllers and even CSS files is not happening. I have tried below methods 1) grails clean 2) Deleted the project under %user_home%/.grails/projects/% 3) crated a new project Is there any workaround for this
0
[ 2, 489, 7301, 18, 172, 9, 387, 9, 396, 3108, 27339, 68, 800, 3726, 3726, 31, 57, 489, 7301, 18, 172, 9, 387, 9, 300, 4066, 29, 354, 18, 172, 9, 518, 9, 135, 15, 31, 589, 4325, 40, 1513, 30, 3108, 27339, 68, 16, 9919, 18, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get a list of days or a number of days in a month with GWT? === What is counter part of this code in GWT ? I want to get the number of days of a month in the client side. I searched Google and StackOverFlow but didn't get anything. public int returnAllDaysOf(2012,6){ Calendar calendar = Calendar.getInstance(); calendar.set(2012, Calendar.FEBRUARY, 1); int daysOfFeb = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); return daysOfFeb; } Thanks in advance for your help.
0
[ 2, 184, 20, 164, 21, 968, 16, 509, 54, 21, 234, 16, 509, 19, 21, 1617, 29, 14094, 38, 60, 800, 3726, 3726, 98, 25, 2105, 141, 16, 48, 1797, 19, 14094, 38, 13, 60, 31, 259, 20, 164, 14, 234, 16, 509, 16, 21, 1617, 19, 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...
xml schema definition issue === what is the xml schema for the following input: <?xml version="1.0" encoding="utf-16"?> <string>&lt;!--This file generated by the XMLPull tool on 06/29/2012 03:24:18 AM--&gt; &lt;!--Datasource: UTS - Ticket--&gt; &lt;DATASET&gt;&lt;DATAROW&gt;&lt;TicketDesc&gt;Test Data. Do not Close.&lt;/TicketDesc&gt;&lt;/DATAROW&gt;&lt;/DATASET&gt;</string> to this: <?xml version="1.0" encoding="UTF-16"?><!--This file generated by the XMLPull tool on 6/29/2012--><!--Datasource: UTS - Ticket--><DATASET><DATAROW TicketDesc="Test Data. Do not Close."/></DATASET>
0
[ 2, 23504, 23874, 5465, 1513, 800, 3726, 3726, 98, 25, 14, 23504, 23874, 26, 14, 249, 6367, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 3726, 7, 1982, 410, 8, 1091, 7, 60, 1, 13, 1, 11130, 1, 1569, 255, 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...
scope of resources === I've been working with android for about 6 months now and I've yet to come across an answer to this so I will ask it here. What is the scope of android layout resources? Are all android resources placed into a global name space? If so should I be creating unique names for resource across all of my layouts? I have a large app with many activities and layouts and I like to reuse names for simplicity, my layouts for example have a common name that is familiar to me and I don't have to refer back to the layout. I know that setContentView() associates the layout with the activity, however, findViewById() seems to show all resources in the package. I don't know if this is just an eclipse 'feature' that I can not worry about or if I should be using unique names for all of my resources??
0
[ 2, 9914, 16, 2566, 800, 3726, 3726, 31, 22, 195, 74, 638, 29, 13005, 26, 88, 400, 818, 130, 17, 31, 22, 195, 768, 20, 340, 464, 40, 1623, 20, 48, 86, 31, 129, 1349, 32, 235, 9, 98, 25, 14, 9914, 16, 13005, 9106, 2566, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why isn't the JButton depressing? === I have a very simple example. A button on the bottom of the screen that says "hi" and when its clicked it prints "hello" to the console. However, When I press the button, it doesn't change visually. Its the same with the other JSwing interactors, but for a SSCCE, here you go. import acm.program.*; import javax.swing.*; import java.awt.event.*; public class SimpleGUI extends ConsoleProgram { public void init() { JButton hi = new JButton("Hi"); add(hi, SOUTH); addActionListeners(); } public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if (cmd.equals("Hi")) println("Hello there sexy"); } }
0
[ 2, 483, 2532, 22, 38, 14, 487, 811, 444, 28828, 60, 800, 3726, 3726, 31, 57, 21, 253, 1935, 823, 9, 21, 5167, 27, 14, 2129, 16, 14, 2324, 30, 898, 13, 7, 1822, 7, 17, 76, 82, 15802, 32, 12202, 13, 7, 11515, 7, 20, 14, 8650...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can't resubmit Open Graph Action to Facebook === I submitted a watch action for Open Graph approval. It was rejected and the status shows: Watch - Movie, TV Show, TV Episode - Changes Needed · Get Code How do I resubmit: "Changes Needed" is not a clickable link and all of the changes were on "my" web site... and I don't see any kind of submit button anywhere for this action. Please make changes below and resubmit for review. 1.) If your app publishes built-in watch actions for video, you must give users clear, ongoing, and in-context messaging (such as on the page where the user watches the video) that their watch actions will be published on Facebook. 2.) If you plan on using an in-line control, your app needs to explain to users how the control works, including the fact that the app will publish watches to the user's timeline when sharing is enabled. 3.) You must provide users with the ability to remove any video stories you publish to Facebook, and include this option on the same page where you host the video content. 4.) Watch actions may only be published only after the user has watched at least 10 seconds of the video content. Once you have made the appropriate changes please re–submit. https://developers.facebook.com/docs/opengraph/actions/builtin/#watch
0
[ 2, 92, 22, 38, 302, 7563, 5130, 368, 7210, 1028, 20, 9090, 800, 3726, 3726, 31, 7368, 21, 1455, 1028, 26, 368, 7210, 4988, 9, 32, 23, 4682, 17, 14, 1782, 1285, 45, 1455, 13, 8, 1308, 15, 983, 298, 15, 983, 942, 13, 8, 1693, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to plot an arbitrary equation === Assuming that parsing the equation would not be a problem, how can I make an algorithm to plot an arbitrary equation, given a specific canvas size? As in, getting the coordinates of all the pixels to highlight? I've tried just repeatedly calculating Y given X, but it comes out looking sloppy. This is not a homework question.
0
[ 2, 184, 20, 3798, 40, 17237, 8020, 800, 3726, 3726, 11704, 30, 2017, 18, 68, 14, 8020, 83, 52, 44, 21, 1448, 15, 184, 92, 31, 233, 40, 9083, 20, 3798, 40, 17237, 8020, 15, 504, 21, 1903, 9696, 1072, 60, 28, 19, 15, 1017, 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...
Does Mac/IOS use the same sys/socket.h as the Linux kernel? === I am going to be porting the 39dll libraries to Linux. This lib has been ported to Mac and IOS already and i was wondering if the sys/socket.h stuff needs to be re-written. You can find the libs in question [HERE][1] and [HERE][2] Does anyone know? Ive done some google searching and looked at sever of the "suggested" articles to no avail. Some article suggested that it "might" work, but i need a more definitive answer. [1]: http://www.vetragames.com/Stuff/39dylib/39dylibsource.zip [2]: http://www.host-a.net/dl/0/19773928711358
0
[ 2, 630, 1572, 118, 7760, 275, 14, 205, 10315, 18, 118, 18, 5668, 1198, 9, 252, 28, 14, 13024, 17007, 60, 800, 3726, 3726, 31, 589, 228, 20, 44, 1295, 68, 14, 4890, 43, 211, 8649, 20, 13024, 9, 48, 13, 8326, 63, 74, 1295, 69, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
target images inside a div by it's name === I'm trying to create a button that resizes down images inside it's div, function aumenta(){ var mydiv = $('div[name|="visualizacoes"]'); var curr_width = parseInt(mydiv.style.width); var curr_height = parseInt(mydiv.style.height); if (curr_width < 4123) { mydiv.style.width = (curr_width + 412) +"px"; mydiv.style.height = (curr_height + 466) +"px"; } } it's not working, maybe this is not the way to get the element's name? My problem is that i have several div's hidden that show up on menu click, I'm trying to get all of them to resize even if they're hidden, that's why im targeting it's name, could be the class as well!! Please help! Thanks
0
[ 2, 2935, 3502, 572, 21, 13, 12916, 34, 32, 22, 18, 204, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 5167, 30, 10719, 13569, 125, 3502, 572, 32, 22, 18, 13, 12916, 15, 1990, 21, 9472, 10985, 5, 6, 1, 4033, 51, 12916, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
fileupload control does nothing when trying to upload a file with 14mb === I'm having this weird problem right now and after a few searches on the web I couldn't find anything related to it, basically, when I try to send a .TXT file with 14mb via a FileUpload ASP.NET control it does nothing, the page post back when I click on the upload button but the "click" event doesn't fire the weird thing is that if I try to send a small file, let's say, 100kb the upload works just fine and the event is triggered the way is supposed to there's no exception and no error at all, the page simply posts back without firing any event, I even changed the maxRequestLength on my web.config still no luck: <httpRuntime executionTimeout="43200" maxRequestLength="40960"/> I tried to upload via Internet Explorer 9 and Firefox 12, both with the same odd behavior
0
[ 2, 3893, 576, 8294, 569, 630, 626, 76, 749, 20, 71, 8294, 21, 3893, 29, 513, 5024, 800, 3726, 3726, 31, 22, 79, 452, 48, 5455, 1448, 193, 130, 17, 75, 21, 310, 19994, 27, 14, 2741, 31, 711, 22, 38, 477, 602, 1597, 20, 32, 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...
How to convert ImageIO.write(input, file, cos) to use in Android === Im a getting errors from some code developed in Java that want to use in Android. ImageIO.write(input, file, cos)
0
[ 2, 184, 20, 8406, 1961, 1963, 9, 23716, 5, 108, 4881, 15, 3893, 15, 326, 18, 6, 20, 275, 19, 13005, 800, 3726, 3726, 797, 21, 1017, 11908, 37, 109, 1797, 885, 19, 8247, 30, 259, 20, 275, 19, 13005, 9, 1961, 1963, 9, 23716, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
unique column values in radgrid === I'm using the Telerik rad grid, user can directly enter data to the grid. I am using "EditForms" edit mode to update/delete records in the radgrid. I have a requirement where only unique values for a grid column must be allowed. How do I implement this?
0
[ 2, 2619, 4698, 4070, 19, 4944, 16375, 800, 3726, 3726, 31, 22, 79, 568, 14, 4338, 6639, 4944, 7354, 15, 4155, 92, 1703, 2830, 1054, 20, 14, 7354, 9, 31, 589, 568, 13, 7, 69, 242, 4190, 18, 7, 9392, 3740, 20, 11100, 118, 24249, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Extract FPS from tcprobe text using Regex === I have the following info being returned when I run tcprobe -i on a video file: [tcprobe] RIFF data, AVI video [avilib] V: 30.000 fps, codec=MJPG, frames=1599, width=640, height=480 [avilib] A: 8000 Hz, format=0x01, bits=8, channels=1, bitrate=64 kbps, [avilib] 54 chunks, 427248 bytes, CBR [tcprobe] summary for PICT1120.AVI, (*) = not default, 0 = not detected import frame size: -g 640x480 [720x576] (*) frame rate: -f 30.000 [25.000] frc=0 (*) audio track: -a 0 [0] -e 8000,8,1 [48000,16,2] -n 0x1 [0x2000] (*) bitrate=64 kbps length: 1599 frames, frame_time=33 msec, duration=0:00:53.299 I would like to use regex to extract the frame rate (on line 2) please can anyone advise on how I can do this (just the no of frames, and not any of the surrounding text). PS. Please bare in mind that the fps will vary as I will be using this script on various different video files. Thanks
0
[ 2, 10962, 13, 12087, 18, 37, 13, 6668, 2740, 863, 1854, 568, 7953, 1706, 800, 3726, 3726, 31, 57, 14, 249, 15404, 142, 587, 76, 31, 485, 13, 6668, 2740, 863, 13, 8, 49, 27, 21, 763, 3893, 45, 636, 6668, 2740, 863, 500, 761, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HelpSystem doesn't work in Delphi XE2 with a few projects === Create any application in Delphi XE2 and press F1 to run help system. You'll see the help article or the following window (for search string 'function'): ![enter image description here][1] I have an application for Delphi XE2. When I open it and press F1 help system opens only the following window (for search string 'function'): ![enter image description here][2] If you'll open the first project again (after the second) help system opens the same window as on the second project (incorrect). I have tried to delete the following files: .dproj, .dof, .identcache, .otares - but with no success. How to fix this issue? P.S. I have legal Delphi XE2 but without support and can't contact Embarcadero support directly. Thanks for the help! [1]: http://i.stack.imgur.com/vGHw1.png [2]: http://i.stack.imgur.com/BTNUW.png
0
[ 2, 448, 10724, 1437, 22, 38, 170, 19, 23030, 13, 13012, 135, 29, 21, 310, 2314, 800, 3726, 3726, 1600, 186, 3010, 19, 23030, 13, 13012, 135, 17, 901, 398, 165, 20, 485, 448, 329, 9, 42, 22, 211, 196, 14, 448, 2002, 54, 14, 249...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
boost directory_iterator receiving SIGABRT === I'm using boost/filesystem for iterating directory and add them to Zip file on MacOSX + XCode3. My original logic looks like this path targetDir( "Volumes/data/some_directory" ); directory_iterator it( targetDir ), eod; std::string filename; std::string strPath; // I tried both of two types of making loop for( ; it != eod ; ++it ) { path const& p = *it; filename = p.filename(); if( is_directory(p) ) { strPath = strDirectory + filename + string("/"); // Initially I wanted this logic to be recursive(these code block is a part of PackDirectory) PackDirectory( archive, strPath, lpszPackFile ); } else if( is_regular_file(p) ) { strPath = strDirectory + filename; // add this file to specified Zip file here } } then function returns here. The problem arises after returning this function, specifically when destructor of directory_iterator is called, I guess. It seems it deletes invalid pointer, and receiving SIGABRT. Program sometimes crashes like below, and sometimes it freezes when I hit step over, XCode says "stepping over" but nothing proceeds with call stack disappearing. AND the point is, problem remains even if I don't do anything inside the loop, which means when variables are simply created and function returned. for more information, call stack looks like this when program crashes. #0 0x93f86c5a in __kill #1 0x93f86c4c in kill$UNIX2003 #2 0x940195a5 in raise #3 0x9402f6e4 in abort #4 0x93f2c575 in free #5 0x00134aea in dir_itr_close [inlined] at v2_operations.cpp:1300 #6 0x00134aea in ~dir_itr_imp [inlined] at operations.hpp:877 #7 0x00134aea in checked_delete<boost::filesystem2::detail::dir_itr_imp<boost::filesystem2::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem2::path_traits> > > [inlined] at checked_delete.hpp:34 #8 0x00134aea in boost::detail::sp_counted_impl_p<boost::filesystem2::detail::dir_itr_imp<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> > >::dispose at v2_operations.cpp:78 #9 0x00136583 in boost::detail::sp_counted_base::weak_release at sp_counted_base_pt.hpp:97 It goes into ~dir_itr_imp, so it seems it reaches correct destructor after passing type checking. Did I do something wrong with directory_iterator? If someone went through this problem, please let me know.
0
[ 2, 10419, 16755, 1, 242, 106, 3457, 3396, 8858, 2297, 5256, 800, 3726, 3726, 31, 22, 79, 568, 10419, 118, 16877, 10724, 26, 32, 106, 1880, 16755, 17, 3547, 105, 20, 12133, 3893, 27, 1572, 759, 396, 2754, 993, 9375, 240, 9, 51, 501...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL INSERT (BASIC) === I am trying to do a batch insert into a database, to try and make my life a bit easier - However, I keep getting an issue when trying to insert. I think my problem is it contains a * (however I'm not sure). Any suggestions? sorry for the newbie question. Error: > #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use > near 's Wall, liking, commenting on or sharing one of your Page posts, > answering a Que' at line 3 INSERT INTO `bushell_stats`.`stats` (`id`, `name`, `description`) VALUES (NULL, 'page_stories', 'The number of stories created about your Page'), (NULL, 'page_storytellers*', 'The number of people sharing stories about your page. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place Note that currently only the weekly value is in real-time if you set until=now in the request'), (NULL, 'page_stories_by_story_type', 'The number of stories about your Page by story type'), (NULL, 'page_storytellers_by_story_type', 'The number of people talking about your Page, by story type'), (NULL, 'page_storytellers_by_age_gender', 'The number of People Talking About the Page by user age and gender'), (NULL, 'page_storytellers_by_country', 'The number of People Talking About the Page by user country'), (NULL, 'page_storytellers_by_locale', 'The number of People Talking About the Page by user language'), (NULL, 'page_impressions', 'The total number of impressions seen of any content associated with your Page'), (NULL, 'page_impressions_unique', 'The number of people who have seen any content associated with your Page'), (NULL, 'page_impressions_paid', 'The number of impressions of a Sponsored Story or Ad pointing to your Page'), (NULL, 'page_impressions_paid_unique', 'Number of people who saw a sponsored story or Ad about your Page'), (NULL, 'page_impressions_organic', 'The number of times your posts were seen in News Feed or Ticker or on visits to your Page. These impressions can be Fans or non-Fans'), (NULL, 'page_impressions_organic_unique', 'The number of people who visited your Page, or saw your Page or one of its posts in News Feed or Ticker. These impressions can be Fans or non-Fans'), (NULL, 'page_impressions_viral', 'The number of impressions of a story published by a friend about your Page. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place'), (NULL, 'page_impressions_viral_unique', 'The number of people who saw your Page or one of its posts from a story published by a friend. These stories include liking your Page, posting to your Page's Wall, liking, commenting on or sharing one of your Page posts, answering a Question you posted, RSVPing to one of your events, mentioning your Page, phototagging your Page or checking in at your Place'), (NULL, 'page_impressions_by_story_type', 'Total impressions of stories published by a friend about your Page by story type'), (NULL, 'page_impressions_by_story_type_unique', 'The number of people who saw a story about your Page by story type'), (NULL, 'page_impressions_by_city_unique', 'The number of people who have seen any content associated with your Page by city'), (NULL, 'page_impressions_by_age_gender_unique', 'The number of people who have seen any content associated with your Page by age and gender grouping'), (NULL, 'page_impressions_frequency_distribution', 'The number of people your Page reached broken down by how many times people saw any content about your Page'), (NULL, 'page_impressions_viral_frequency_distribution', 'The number of people your Page reached from a story published by a friend, broken down by how many times people saw stories about your Page'), (NULL, 'page_engaged_users', 'The number of people who engaged with your Page. Engagement includes any click'), (NULL, 'page_consumptions', 'The number of times people clicked on any of your content without generating a story'), (NULL, 'page_consumptions_unique', 'The number of people who clicked on any of your content without generating a story'), (NULL, 'page_consumptions_by_consumption_type', 'The number of times people clicked on any of your content without generating a story, by type'), (NULL, 'page_consumptions_by_consumption_type_unique', 'The number of people who clicked on any of your content without generating a story, by type'), (NULL, 'page_places_checkin_total', 'The number of times people checked into a place'), (NULL, 'page_places_checkin_total_unique', 'The number of people who checked into a place'), (NULL, 'page_places_checkin_mobile', 'The number of times people checked into a place using mobile phones'), (NULL, 'page_places_checkin_mobile_unique', 'The number of people who checked into a place using mobile phones'), (NULL, 'page_places_checkins_by_age_gender', 'gender and age of people who checked in at your Place'), (NULL, 'page_places_checkins_by_locale', 'top locales of people who checked into your Place'), (NULL, 'page_places_checkins_by_country', 'top countries of people who checked into your Place'), (NULL, 'page_negative_feedback', 'The number of times people took a negative action (e.g., un-liked or hid a post)'), (NULL, 'page_negative_feedback_unique', 'The number of people who took a negative action (e.g., un-liked or hid a post)'), (NULL, 'page_negative_feedback_by_type', 'The number of times people took a negative action broken down by type (see negative feedback types)'), (NULL, 'page_negative_feedback_by_type_unique', 'The number of people who took a negative action broken down by type see negative feedback types)'), (NULL, 'page_fans', 'The total number of people who have liked your Page.'), (NULL, 'page_fans_locale', 'Aggregated language data about the people who like your Page based on the default language setting selected when accessing Facebook.'), (NULL, 'page_fans_city', 'Aggregated Facebook location data, sorted by city, about the people who like your Page.'), (NULL, 'page_fans_country', 'Aggregated Facebook location data, sorted by country, about the people who like your Page'), (NULL, 'page_fans_gender_age', 'Aggregated demographic data about the people who like your Page based on the age and gender information they provide in their user profiles.'), (NULL, 'page_fan_adds', 'The number of new people who have liked your Page.'), (NULL, 'page_fan_adds_unique', 'The number of new people who have liked your Page.'), (NULL, 'page_fans_by_like_source', 'This is a breakdown of the number of Page likes from the most common places where people can like your Page (see like sources).'), (NULL, 'page_fans_by_like_source_unique', 'The number of people who liked your Page, broken down by the most common places where people can like your Page (see like sources).'), (NULL, 'page_fan_removes', 'Unlikes of your Page'), (NULL, 'page_fan_removes_unique', 'Unlikes of your Page'), (NULL, 'page_friends_of_fans', 'The number of people who are friends of the Fans of your Page (estimated)'), (NULL, 'page_tab_views_login_top_unique', 'The number of users logged into Facebook who saw tabs on your Page'), (NULL, 'page_tab_views_login_top', 'The number of times users logged into Facebook saw tabs on your Page'), (NULL, 'page_views', 'Page views'), (NULL, 'page_views_unique', 'Page Views from users logged into Facebook'), (NULL, 'page_views_login', 'Page Views from users logged into Facebook'), (NULL, 'page_views_login_unique', 'Page Views from users logged into Facebook'), (NULL, 'page_views_logout', 'Page views from users not logged into Facebook'), (NULL, 'page_views_external_referrals', 'Top referrering external domains sending traffic to your Page.'), (NULL, 'page_posts_impressions', 'The number of impressions that came from all of your posts'), (NULL, 'page_posts_impressions_unique', 'The number of people who saw any of your Page posts'), (NULL, 'page_posts_impressions_paid', 'The number of impressions of your Page posts in an Ad or Sponsored Story'), (NULL, 'page_posts_impressions_paid_unique', 'The number of people who saw your Page posts in an Ad or Sponsored Story'), (NULL, 'page_posts_impressions_organic', 'The number of impressions of your posts in News Feed or Ticker or on your Page'), (NULL, 'page_posts_impressions_organic_unique', 'The number of people who saw your Page posts in News Feed or Ticker, or on your Page's Wall'), (NULL, 'page_posts_impressions_viral', 'The number of times users saw your posts via stories published by their friends'), (NULL, 'page_posts_impressions_viral_unique', 'The number of people who saw your Page posts via a story from a friend'), (NULL, 'page_posts_impressions_frequency_distribution', 'The number of people who saw your Page posts, broken down by how many times people saw your posts'), (NULL, 'post_stories*', 'The number of stories generated about your Page post'), (NULL, 'post_storytellers*', 'The number of unique people who created a story about your Page post'), (NULL, 'post_stories_by_action_type*', 'The number of stories created about your Page post, by action type'), (NULL, 'post_storytellers_by_action_type*', 'The number of unique people who created a story about your Page post, by action type'), (NULL, 'post_impressions*', 'The number of times your Page post was seen'), (NULL, 'post_impressions_unique*', 'The number of people who saw your Page post'), (NULL, 'post_impressions_paid*', 'The number of impressions of your Page post in an Ad or Sponsored Story'), (NULL, 'post_impressions_paid_unique*', 'The number of people who saw your Page post in an Ad or Sponsored Story'), (NULL, 'post_impressions_organic*', 'The number of impressions of your post in Newsfeed, Ticker, or on your Page's Wall'), (NULL, 'post_impressions_organic_unique*', 'The number of people who saw your post in their Newsfeed or Ticker or on your Page's Wall'), (NULL, 'post_impressions_viral*', 'The number of impressions of your Page post in a story generated by a friend'), (NULL, 'post_impressions_viral_unique*', 'The number of people who saw your page post in a story from a friend'), (NULL, 'post_impressions_by_story_type*', 'The number of times this post was seen via a story published by a friend of the person viewing the post'), (NULL, 'post_impressions_by_story_type_unique*', 'The number of people who saw your page post in a story from a friend, by story type'), (NULL, 'post_consumptions*', 'The number of times people clicked on anywhere in your posts without generating a story'), (NULL, 'post_consumptions_unique*', 'The number of people who clicked anywhere in your post without generating a story'), (NULL, 'post_consumptions_by_type*', 'The number of times people clicked on anywhere in your posts without generating a story, by consumption type'), (NULL, 'post_consumptions_by_type_unique*', 'The number of people who clicked anywhere in your post without generating a story, by consumption type'), (NULL, 'post_engaged_users*', 'The number of people who clicked anywhere in your posts'), (NULL, 'post_negative_feedback*', 'The number of times people took a negative action in your post (e.g. hid it)'), (NULL, 'post_negative_feedback_unique*', 'The number of people who took a negative action in your post (e.g., hid it)'), (NULL, 'post_negative_feedback_by_type*', 'The number of times people took a negative action in your post broken down by type'), (NULL, 'post_negative_feedback_by_type_unique*', 'The number of people who took a negative action in your post broken down by type')
0
[ 2, 4444, 255, 14692, 13, 5, 26467, 6, 800, 3726, 3726, 31, 589, 749, 20, 107, 21, 13064, 14692, 77, 21, 6018, 15, 20, 1131, 17, 233, 51, 201, 21, 1142, 4950, 13, 8, 207, 15, 31, 643, 1017, 40, 1513, 76, 749, 20, 14692, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calculate matrix of pairwise differences for large number of sequences? === I would like to calculate the number of pairwise differences between a long list of sequences, and put it back into a matrix form. I have a few hundred genetic sequences, and each sequence is already aligned and has the same length (about 300 characters). I'm not looking for one of the edit distance algorithms (hamming's, leveinstein's, etc) but instead would like to get the number of absolute differences between two sequences. The sequences would have to be compared at each character position. For example, Sequence 1: "GAT-ACA" Sequence 2: "AT-GCGA" Number of differences: 6 (The dash is there to allow the sequences to be aligned, and my sequences may also include dashes). Would there be any efficient way to do this using python (or other language), with a short computing time? I also asked this question in R, initially intending to do it that way, but it turned out too slow to be feasible to apply to several hundred sequences. Thank you!
0
[ 2, 18469, 8187, 16, 2146, 10474, 4921, 26, 370, 234, 16, 11173, 60, 800, 3726, 3726, 31, 83, 101, 20, 18469, 14, 234, 16, 2146, 10474, 4921, 128, 21, 175, 968, 16, 11173, 15, 17, 442, 32, 97, 77, 21, 8187, 505, 9, 31, 57, 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...
Sending a byte array over REST which contains encrypted data === I use the following code to encrypt some data and I want to move the decryption code to a server so need to send the cipherData (which is a byte [] array ) to my server over REST BigInteger modulus = new BigInteger("blah"); BigInteger exponent = new BigInteger("blah"); RSAPublicKeySpec keySpec = new RSAPublicKeySpec(modulus, exponent); KeyFactory encryptfact = KeyFactory.getInstance("RSA"); PublicKey pubKey = encryptfact.generatePublic(keySpec); String dataToEncrypt = "Hello World"; /** * Encrypt data */ Cipher encrypt = Cipher.getInstance("RSA"); encrypt.init(Cipher.ENCRYPT_MODE, pubKey); byte[] cipherData = encrypt.doFinal(dataToEncrypt.getBytes()); System.out.println("cipherData: " + new String(cipherData)); /** * Decrypt data */ BigInteger privatemodulus = new BigInteger("blah"); BigInteger privateexponent = new BigInteger("blah"); RSAPrivateKeySpec privateKeySpec = new RSAPrivateKeySpec(privatemodulus, privateexponent); PrivateKey privateKey = encryptfact.generatePrivate(privateKeySpec); Cipher decrypt = Cipher.getInstance("RSA"); decrypt.init(Cipher.DECRYPT_MODE, privateKey); byte[] decData = decrypt.doFinal(cipherData); System.out.println(new String(decData)); This works fine. I was hoping I could just create a new String with the cipherData as a parm When I try this with the above example I get the following error byte[] decData = decrypt.doFinal(new String(cipherData).getBytes()); javax.crypto.BadPaddingException: Data must start with zero at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:308) at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:255) at com.sun.crypto.provider.RSACipher.a(DashoA13*..) at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..) at com.test.EncryptTest.main(EncryptTest.java:52) Any ideas?
0
[ 2, 4907, 21, 34, 591, 7718, 84, 760, 56, 1588, 29403, 1054, 800, 3726, 3726, 31, 275, 14, 249, 1797, 20, 1957, 11435, 109, 1054, 17, 31, 259, 20, 780, 14, 121, 11435, 872, 1797, 20, 21, 8128, 86, 376, 20, 2660, 14, 23525, 18768,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to do an Android animation combining video, audio and images? === Is it possible to combine video, audio and images in an Android animation. As an example, 1. Start with a video 2. At the end of the video, load a series of images and play an audio 3. Finish with a video or an image. Would the layout be loaded into a videoplayer or an imageview. Pointers and links would be appreciated.
0
[ 2, 25, 32, 938, 20, 107, 40, 13005, 6236, 12803, 763, 15, 4023, 17, 3502, 60, 800, 3726, 3726, 25, 32, 938, 20, 12287, 763, 15, 4023, 17, 3502, 19, 40, 13005, 6236, 9, 28, 40, 823, 15, 137, 9, 799, 29, 21, 763, 172, 9, 35, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting timer interval based on stopwatch value === i want my timer interval to be set based on stopwatch value. Stopwatch calculates the execution time of function and this execution time should be set for my timer interval. Timer t=new Timer(timercallbackfunc,null,0,elapsedtime); Pls provide pointers with the code example.
0
[ 2, 2697, 85, 139, 14422, 432, 27, 747, 9054, 1923, 800, 3726, 3726, 31, 259, 51, 85, 139, 14422, 20, 44, 309, 432, 27, 747, 9054, 1923, 9, 747, 9054, 18469, 18, 14, 5769, 85, 16, 1990, 17, 48, 5769, 85, 378, 44, 309, 26, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Haskell type synonym === I'm trying to understand what the following type synonym from Yesod is doing. `type HtmlUrlI18n msg url = Translate msg -> Render url -> Html` I could not find an example in learn you some haskell or the haskell wikibook of a type synonym with `->` present. Any links or explanations are much appreciated. Thanks.
0
[ 2, 63, 16507, 1001, 9344, 800, 3726, 3726, 31, 22, 79, 749, 20, 1369, 98, 14, 249, 1001, 9344, 37, 1643, 5648, 25, 845, 9, 13, 1, 4474, 13, 15895, 911, 1210, 1087, 103, 4235, 263, 287, 6362, 800, 20628, 4235, 263, 13, 8, 1, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL Date Var changing after if condition === SELECT DATEDEBUT, DATEFIN INTO DebutReserv2, FinReserv2 FROM RESERVATION WHERE IDCODEBARRES = v_codebarre ORDER BY DATEDEBUT LIMIT 0, 1; RETURN(Concat(DebutReserv2, ",", FinReserv2)); If ((DebutReserv2 <= curdate()) and (FinReserv2 >= curdate())) THEN RETURN(Concat(DebutReserv2, ",", FinReserv2)); Having a bit of a problem here. In the first return, DebutReserv2 and FinReserv2 have a value assigned to them by the first select, but as soon as I pass the first if, the value of both variables change (And we are in the same loop). This code is also in a cursor.
0
[ 2, 51, 18, 22402, 1231, 4033, 4226, 75, 100, 2874, 800, 3726, 3726, 5407, 5210, 62, 811, 15, 1231, 5617, 77, 893, 99, 10321, 135, 15, 4361, 99, 10321, 135, 37, 8733, 113, 4924, 9375, 18164, 18, 800, 566, 1, 9375, 18164, 389, 34, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python finding repeating sequence in list of integers? === I have a list of lists and each list has a repeating sequence. I'm trying to count the length of repeated sequence of integers in the list: list_a = [111,0,3,1,111,0,3,1,111,0,3,1] list_b = [67,4,67,4,67,4,67,4,2,9,0] list_c = [1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,23,18,10] Which would return: list_a count = 4 (for [111,0,3,1]) list_b count = 2 (for [67,4]) list_c count = 10 (for [1,2,3,4,5,6,7,8,9,0]) Any advice or tips would be welcome. I'm trying to work it out with re.compile right now but, its not quite right.
0
[ 2, 20059, 3007, 17389, 4030, 19, 968, 16, 13820, 18, 60, 800, 3726, 3726, 31, 57, 21, 968, 16, 7227, 17, 206, 968, 63, 21, 17389, 4030, 9, 31, 22, 79, 749, 20, 2468, 14, 1476, 16, 4251, 4030, 16, 13820, 18, 19, 14, 968, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GCM: MulticastResult - which result is from which device? === Following the last section in the [GCM: Getting Started][1] guide, there's some book-keeping to be done after receiving the results. Quoting from the guide: > It's now necessary to parse the result and take the proper action in the following cases: > > - If the message was created but the result returned a canonical registration ID, it's necessary to replace the current registration > ID with the canonical one. > - If the returned error is NotRegistered, it's necessary to remove that registration ID, because the application was uninstalled from > the device. > > Here's a code snippet that handles these 2 conditions: > > if (result.getMessageId() != null) { > String canonicalRegId = result.getCanonicalRegistrationId(); > if (canonicalRegId != null) { > // same device has more than on registration ID: update database > } > } else { > String error = result.getErrorCodeName(); > if (error.equals(Constants.ERROR_NOT_REGISTERED)) { > // application has been removed from device - unregister database > } > } The guide above refers to a **single** result, and not to the multicast case. I'm not sure how to handle the multicast case: ArrayList<String> devices = new ArrayList<String>(); for (String d : relevantDevices) { devices.add(d); } Sender sender = new Sender(myApiKey); Message message = new Message.Builder().addData("hello", "world").build(); try { MulticastResult result = sender.send(message, devices, 5); for (Result r : result.getResults()) { if (r.getMessageId() != null) { String canonicalRegId = r.getCanonicalRegistrationId(); if (canonicalRegId != null) { // same device has more than on registration ID: update database // BUT WHICH DEVICE IS IT? } } else { String error = r.getErrorCodeName(); if (error.equals(Constants.ERROR_NOT_REGISTERED)) { // application has been removed from device - unregister database // BUT WHICH DEVICE IS IT? } } } } catch (IOException ex) { Log.err(TAG, "sending message failed", ex); } I submit a list of devices, and receive back a list of results. The Result object doesn't contain the registration id, but only a canonical id if the first is obsolete. It is undocumented if the two lists are co-related (ie. preserves order and size). How can I be sure which result refer to which device? [1]: http://developer.android.com/guide/google/gcm/gs.html#server-app
0
[ 2, 489, 9095, 45, 1889, 6146, 29955, 13, 8, 56, 829, 25, 37, 56, 3646, 60, 800, 3726, 3726, 249, 14, 236, 1050, 19, 14, 636, 10362, 79, 45, 1017, 373, 500, 2558, 165, 500, 3378, 15, 80, 22, 18, 109, 360, 8, 15880, 20, 44, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
We are trying to fit automation in agile sprints. Is this realistic & achievable. Does it really give real time benefit to manual QA? === If automation needs to be fit into agile sprints; not sure how to address below points: 1. How can automation team estimate their time required for automation before starting of new sprint 2. Since it's agile one also may need to maintain old scripts. Maintenance activity would eat up new script development time and per agile all script development needs to be done in same sprint. So is planning automation within sprint is a realistic goal. Does automation needs to be planned for all stories getting developed in same sprint? Please let me know your thoughts!
0
[ 2, 95, 50, 749, 20, 2742, 23217, 19, 27475, 6672, 18, 9, 25, 48, 12786, 279, 21, 1594, 2443, 579, 9, 630, 32, 510, 590, 683, 85, 4234, 20, 5132, 7234, 60, 800, 3726, 3726, 100, 23217, 2274, 20, 44, 2742, 77, 27475, 6672, 18, 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...
Adding a Custom Object to an ArrayAdapter. How to grab Data? === This is what I have so far: The Custom Object: class ItemObject { List<String> name; List<String> total; List<String> rating; public ItemObject(List<ItemObject> io) { this.total = total; this.name = name; this.rating = rating; } } The Call to the Adapter: List<String> names, ratings, totals; ItemObject[] io= new ItemObject[3]; io[0] = new ItemObject(names); io[1] = new ItemObject(rating); io[2] = new ItemObject(totals); adapter = new ItemAdapter(Items.this, io); setListAdapter(adapter); Assuming the above looks ok, my questions is how would I set up the ItemAdapter, it's constructor, and unwrap the three List's from the object. And then, in the getView, assign these things: each matching position to: TextView t1 = (TextView) rowView.findViewById(R.id.itemName); TextView t2 = (TextView) rowView.findViewById(R.id.itemTotal); RatingBar r1 = (RatingBar) rowView.findViewById(R.id.ratingBarSmall); For example, position 0 in the array "names" to t1. Position 0 in the array "totals" to t1. Position 0 in the array "ratings" to r1.
0
[ 2, 4721, 21, 5816, 3095, 20, 40, 7718, 27576, 106, 9, 184, 20, 4931, 1054, 60, 800, 3726, 3726, 48, 25, 98, 31, 57, 86, 463, 45, 14, 5816, 3095, 45, 718, 9101, 23793, 13, 1, 968, 1, 11130, 1, 204, 73, 968, 1, 11130, 1, 600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
toggle button event not working on various devices === I am testing my application on various models and I have realized that the toggle button ON and OFF event is not working. This is the list of devices: Samsung YS5360 Samsung Galaxy Note Samsung S Plus HTC Sensation XE HTC Wildfire S Motorola RAZR LG Optimus Black Sony Ericsson Xperia neo V I am not sure what I am doing wrong as I have followed all Android specifications. These events work on other devices. May I have some help please,anyone?
0
[ 2, 20, 263, 4875, 5167, 807, 52, 638, 27, 617, 4690, 800, 3726, 3726, 31, 589, 4431, 51, 3010, 27, 617, 2761, 17, 31, 57, 1896, 30, 14, 20, 263, 4875, 5167, 27, 17, 168, 807, 25, 52, 638, 9, 48, 25, 14, 968, 16, 4690, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rough mapping between system configuration and no of threads === Recently I configured thread pool in apache tomcat 6.0 to run maximum 100 threads(in my laptop). To check whether it was working, I did apache benchmark as follows ab -n 1000 -c 100 http://localhost:8080/helloworld It worked fine.But when I increased the maximum threads in the pool to 1000 and number of concurrent requests to 1000, my system crashed. So I am wondering If there is a way to find the approximate number of threads that a machine with particular configuration can handle.(Of course it depends on various factors like the task the thread is performing ,amount of i/o,etc,.).
0
[ 2, 4182, 13305, 128, 329, 8091, 17, 90, 16, 20396, 800, 3726, 3726, 1989, 31, 28895, 9322, 3067, 19, 17140, 2067, 5782, 400, 9, 387, 20, 485, 2979, 808, 20396, 5, 108, 51, 12294, 6, 9, 20, 2631, 1472, 32, 23, 638, 15, 31, 144, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending back multiple results from PHP via AJAX === i have setup some ajax, which i am just testing now, pretty much the idea behind it is to send some data from dropdown boxes to a php script, do some calculations and then return the result, it does it well and returns the result, but now rather than just sending back one result and outputting that, i want to send back multiple results and output them, i am able to send multiple data to the php script, so i am sure i can send multiple back. Anyway it only sends the first result back and not the rest. Here is the AJAX <script> $("document").ready(function (){ $(".add_extension").change(function(){ var m = document.getElementById('meter_square'); var meter_square = m.options[m.selectedIndex].value; var s = document.getElementById('story_height'); var story_height = s.options[s.selectedIndex].value; $.ajax({ type: "GET", url: "script.php", data: { meter_square: meter_square, story_height: story_height }, dataType: "json", statusCode: { 200: function (result, result2) { $("#expected_gain").html(result.value); $("#house_price").html(result2.value2); } } }); }) }); </script> And here is the php script <?php $meter_square = $_GET["meter_square"]; $story_height = $_GET["story_height"]; $result = $meter_square + $story_height; $result2 = $meter_square * $story_height; echo json_encode(array("value" => $result, "value2" => $result2)); ?> You can see that i have already tried to give it a go from what i thought might work, if you need any other code or want me to remove the code i added which doesn't work, then let me know. Thanks for all and any help
0
[ 2, 4907, 97, 1886, 1736, 37, 13, 26120, 1197, 20624, 800, 3726, 3726, 31, 57, 18161, 109, 20624, 15, 56, 31, 589, 114, 4431, 130, 15, 1772, 212, 14, 882, 439, 32, 25, 20, 2660, 109, 1054, 37, 2804, 2968, 8120, 20, 21, 13, 26120,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 install4j to package === I am building a software with JavaFx2.2,which uses the lastest JRE (7u6).But when making it into an installer,I met with a big problem,that is,the size of the installer is very large.The reason is I use same JRE two twice! First,I used FatJar(a Eclipse plugin) to export a jar,and the JRE7u6 is included together with other libararies.Then I used Install4J to create a JRE bundle which contains the JRE7u6,and create a installer.It did actually work! The whole steps was recorded in my blog: www.cnblog.com/yinger But the size of the installer is more than 60MB,too big! Can anyone help me? Thanks!
0
[ 2, 184, 20, 275, 16146, 300, 728, 20, 6030, 800, 3726, 3726, 31, 589, 353, 21, 2306, 29, 8247, 16488, 135, 9, 135, 15, 2140, 2027, 14, 236, 1430, 487, 99, 13, 5, 465, 291, 379, 6, 9, 811, 76, 544, 32, 77, 40, 16146, 106, 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...
Problems when trying to set up VS C++ express with directX 11 SDK === I'm desperately trying to set up my directX SDK with visual studio C++ express 2010. I have the directX SDK installed. I've been following multiple tutorials, and here's where I'm at: In the properties for my project, when I go to Configuration Properties -> VC++ Directories, I have $(DXSDK_DIR)Include;$(IncludePath) in my include directories and $(DXSDK_DIR)Lib\x86;$(LibraryPath) in my source directories. And under Linker -> input, I have dxerr.lib;dxguid.lib;d3dx9.lib;d3dx10.lib;d3d9.lib;%(AdditionalDependencies) for Additional Dependencies. And this is set to all configurations. And for some reason, when I go to my Solution Explorer, my External Directories folder is completely empty. No folder at all. And when I try to add a main file and add the following code: #include "systemclass.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow) { SystemClass* System; bool result; // Create the system object. System = new SystemClass; if(!System) { return 0; } result = System->Initialize(); if(result) { System->Run(); } System->Shutdown(); delete System; System = 0; return 0; } it brings up the error >c:\users\adil\documents\visual studio 2010\projects\really getting pissed\really getting pissed\main.cpp(4): fatal error C1083: Cannot open include file: 'systemclass.h': No such file or directory. And when I do try to look for that folder in my hard drive, there's absolutely nothing! And when I try to compie it without this code (i.e without adding the main file), I get the following error: >C:\Users\Adil\Documents\Visual Studio 2010\Projects\pleaseDXpleaework\Debug\pleaseDXpleaework.exe : fatal error LNK1120: 1 unresolved externals So even when I try linking it, it doesn't want to work! What am I doing wrong here?
0
[ 2, 1716, 76, 749, 20, 309, 71, 4611, 272, 20512, 2999, 29, 1744, 396, 547, 13, 18, 43, 197, 800, 3726, 3726, 31, 22, 79, 9832, 749, 20, 309, 71, 51, 1744, 396, 13, 18, 43, 197, 29, 3458, 1120, 272, 20512, 2999, 498, 9, 31, 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...
ASP.NET MVC ActionResult not showing image on IPad === I have a JQuery datepicker that populates an image src using a Url.Action. <script type="text/javascript"> $(function () { $('#datepicker').datepicker({ inline: true, altField: '#selecteddate', altFormat: 'dd-mm-yy', onSelect: function () { var date = $('#datepicker').datepicker('option', 'dateFormat', 'yy-mm-dd'); $('#diary img').attr( 'src', '<%= Url.Action("Image") %>/' + date.val().toString()); } }); }); </script> The image is an in memory bitmap converted to a png using the following action on my controller public class ImageResult : ActionResult { Image image; public ImageResult(Image image) { this.image = image; } public override void ExecuteResult(ControllerContext context) { context.HttpContext.Response.Clear(); context.HttpContext.Response.ContentType = "image/png"; image.Save(context.HttpContext.Response.OutputStream, ImageFormat.Png); image.Dispose(); } } The image displays fine however the image src does not have an extension so it shows as /2012-07-11 how can I add the extension .png? as without I believe it stops it showing on an Ipad.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 1028, 29955, 52, 3187, 1961, 27, 31, 8240, 800, 3726, 3726, 31, 57, 21, 487, 8190, 93, 1231, 16855, 106, 30, 1675, 12383, 18, 40, 1961, 13, 18, 5453, 568, 21, 287, 6362, 9, 8645, 9, 13, 1, 8741,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CRM 2011 Developer Toolkit Cannot Add Entity Id as Image Parameter from CRM Explorer === I've got a problem with my CRM Explorer from dev toolkit. I installed this from SDK. Why can't I choose entity id as parameters when I want to set up my plug-in step image? I have to _remember_ to manually add it in RegisterFile.crmregister and it would be overwrited once I add other fields from the CRM Explorer. I can of course choose the entity id from Plugin Registration Tool after the plug-ins solution being deployed using the Developer Toolkit. Does anyone experience the same as me?
0
[ 2, 6186, 79, 542, 10058, 5607, 13703, 1967, 3547, 9252, 4924, 28, 1961, 18906, 37, 6186, 79, 8520, 800, 3726, 3726, 31, 22, 195, 330, 21, 1448, 29, 51, 6186, 79, 8520, 37, 9664, 5607, 13703, 9, 31, 4066, 48, 37, 13, 18, 43, 197,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an R command to trigger the download of a file from Rstudio Server? === When working with Rstudio Server, it is very easy to download a file from the server with File>More>Export... The web browser will automatically start downloading. Is there a way to generate this download with an R command ?
0
[ 2, 25, 80, 40, 761, 1202, 20, 7286, 14, 7121, 16, 21, 3893, 37, 761, 21026, 8128, 60, 800, 3726, 3726, 76, 638, 29, 761, 21026, 8128, 15, 32, 25, 253, 2010, 20, 7121, 21, 3893, 37, 14, 8128, 29, 3893, 1, 1995, 1, 1706, 1993, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CascadingDropDown items not changes in MultiView === i have control hirarchy in my page as : GridView (user list) MultiView --View1 ----Button1 --View2 ----UserControl ------5 DropDownLost + 5 CascadingDropDown (user location: country, province,city,...) Scenario: when a row selected from gridview, multiview switches on view1 ,when button1 clicks mutiview switches on view 2. if there is no multiview on page , every thing works fine and user location loades in dropdown lists. but at multiview existence, only location of first selected user displayed in dropdowns in all next grid item selection. the web service call happens correctly in any selection but the display of dropdowns never changed. is there any fix to this problem?
0
[ 2, 7167, 13489, 68, 12361, 2968, 3755, 52, 1693, 19, 1889, 4725, 800, 3726, 3726, 31, 57, 569, 13, 5551, 8027, 93, 19, 51, 2478, 28, 13, 45, 7354, 4725, 13, 5, 16704, 968, 6, 1889, 4725, 13, 8, 8, 4725, 165, 13, 8, 8, 8, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
change edittext cursor color === how can I change edittext cursor's color programmatically ? in android 4.0 and abow, cursor color is white. and if edittext background is also white, it becomes invisible.
0
[ 2, 753, 9392, 11969, 29588, 1665, 800, 3726, 3726, 184, 92, 31, 753, 9392, 11969, 29588, 22, 18, 1665, 625, 6732, 1326, 13, 60, 19, 13005, 268, 9, 387, 17, 21, 12230, 15, 29588, 1665, 25, 359, 9, 17, 100, 9392, 11969, 2395, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
UITableView multiple selection. selects random row automatically with selected row === I have 30 rows in uitable view and I am attempting to select multiple rows and set them to checked. Whenever I select one row, automatically another row is selected and checked with the desired row. Here is my code: #pragma mark - #pragma mark Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [listOfItems count]; } // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell... NSString *cellValue = [listOfItems objectAtIndex:indexPath.row]; cell.text = cellValue; return cell; } #pragma mark - #pragma mark Table view delegate - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath]; if ([selectedCell accessoryType] == UITableViewCellAccessoryNone) { if(count < 3) { [selectedCell setAccessoryType:UITableViewCellAccessoryCheckmark]; [selectedIndexes addObject:[NSNumber numberWithInt:indexPath.row]]; count++; } NSLog(@"Count: %d", count); NSLog(@"Items I selected @ %d:", indexPath.row); NSLog(@"Items I selected: %@", selectedIndexes); } else { [selectedCell setAccessoryType:UITableViewCellAccessoryNone]; [selectedIndexes removeObject:[NSNumber numberWithInt:indexPath.row]]; count --; NSLog(@"Items I de-selected @ %d:", indexPath.row); } [tableView deselectRowAtIndexPath:indexPath animated:NO]; NSMutableString *resultlearning = [[NSMutableString alloc]init]; for (int i = 0; i < [listOfItems count]; i++) { NSIndexPath *path = [NSIndexPath indexPathForRow:i inSection:0]; //[tableView scrollToRowAtIndexPath:path atScrollPosition:UITableViewScrollPositionMiddle animated:NO]; UITableViewCell *cell = [tableView cellForRowAtIndexPath:path]; if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { [resultlearning appendFormat:@"%@, ",cell.textLabel.text]; } } if (resultlearning.length > 2) { [resultlearning replaceCharactersInRange:NSMakeRange(resultlearning.length-1, 1) withString:@""]; } NSLog(@"Result: %@",resultlearning); }
0
[ 2, 13, 11193, 579, 4725, 1886, 3155, 9, 5407, 18, 5477, 3131, 7499, 29, 1704, 3131, 800, 3726, 3726, 31, 57, 712, 11295, 19, 13, 11193, 579, 1418, 17, 31, 589, 6314, 20, 5407, 1886, 11295, 17, 309, 105, 20, 6505, 9, 6634, 31, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
R function to parse command line arguments === I have the following function below, which I am using to parse command line arguments, so that I can run `R` scripts from the command line: parseArguments <- function() { text1 <- commandArgs(TRUE) eval(parse(text=gsub("\\s", ";", gsub("--","", text1)))) args <- list() for( ar in ls()[! ls() %in% c("text1", "args")] ) {args[ar] <- get(ar)} return (args) } Here is a CLI session output when I attempted to call an `R` script that uses the above function to parse CL arguments, using following command line arguments: ./myscript.R --param1='XLIF' --param2='ESX' --param3=5650.0 --param4=5499.2 --param5=0.0027397260274 --param6='Jul' --riskfreerate=0.817284313119 --datafile='/path/to/some/datafile.csv' --imagedir='/path/to/images' --param7=2012 --param8=2 Error in parse(text = gsub("\\s", ";", gsub("--", "", text1))) : 8:10: unexpected '/' 7: riskfreerate=0.817284313119 8: datafile=/ ^ Calls: parseArguments -> eval -> parse Execution halted Help?
0
[ 2, 761, 1990, 20, 2017, 870, 1202, 293, 10553, 800, 3726, 3726, 31, 57, 14, 249, 1990, 1021, 15, 56, 31, 589, 568, 20, 2017, 870, 1202, 293, 10553, 15, 86, 30, 31, 92, 485, 13, 1, 139, 1, 17505, 37, 14, 1202, 293, 45, 2017, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 efficient is to return very large data in F#? === Suppose you have a Matrix class in F# and you overload the (+) operator. Then, we will have something like this: type Matrix(n : int, m : int) = ... static member (+) (A : Matrix, B : Matrix) = let res = new Matrix(A.Dim1, A.Dim2) // suppose A and B have the same dimension ... // compute here the sum res Comparing to C/C++, we would have something like this: static const Matrix operator+(const Matrix& A, const Matrix& B) { Matrix res(A.Dim1(), A.Dim2()); ... // compute here the sum return res; } Now, observe that in F#, the matrix `res` is allocated in the **heap memory**, in contrast with the C++ version, that allocates `res` in the **stack memory**. So far so good. Observe what happens when we want a "*reference*" to the result of the sum operation in both versions: Matrix result = A + B; // deep copy in C++ (because res has to be destroyed after its return) let result = A + B // shallow copy in F# (res was allocated in the heap memory) Am I missing something here or the (+) operator in F# ends up being more efficient than its counterpart in C/C++?
0
[ 2, 184, 8243, 25, 20, 788, 253, 370, 1054, 19, 398, 5910, 60, 800, 3726, 3726, 5787, 42, 57, 21, 8187, 718, 19, 398, 5910, 17, 42, 84, 8294, 14, 13, 5, 2430, 6, 6022, 9, 94, 15, 95, 129, 57, 301, 101, 48, 45, 1001, 8187, 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 to create website thumb nail from URL in C#.net? === Is it any way to create thumbnail image from any website URL? When I write any URL Link into textbox then I have show thumbnail of entered URL. How can I achieve in C#.net.. suggest me.
0
[ 2, 184, 20, 1600, 2271, 5078, 11250, 37, 287, 6362, 19, 272, 5910, 9, 2328, 60, 800, 3726, 3726, 25, 32, 186, 161, 20, 1600, 5078, 325, 947, 1961, 37, 186, 2271, 287, 6362, 60, 76, 31, 2757, 186, 287, 6362, 3508, 77, 1854, 5309,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Repeat Event Calendar based - Database Design === I have got similar question to: http://stackoverflow.com/questions/2481937/how-to-best-handle-exception-to-repeating-calendar-events. My questions is regarding the database design. I have some event running indefinitely however sometimes the end date is known. Lets say i am creating one event to take one medicine so i know when it is going to start but i don't know when it need to be stopped, it will depend on the progress and how the doctor advises. Now the interesting bit is, though i will be taking medicine everyday at particular time, for some day it can CHANGE (Time, Dose etc). So, i will have one table storing the medication name, dose, start date etc. Questions: 1. Should there be physical record for each day [As its subject to change on particular date]. But there can be millions of record if we start to store for each date. 2. Alternatively, i can have exception for the date user is changing the details. 3. Or i can create record for 6 months and when the time will get closer either user can increase or system will increase automatically if the event is still going. I wonder how Google calendar handles repeat indefinably. Your suggestion will be appreciated. Pankaj.
0
[ 2, 6830, 807, 7036, 432, 13, 8, 6018, 704, 800, 3726, 3726, 31, 57, 330, 835, 1301, 20, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 24135, 11426, 118, 1544, 8, 262, 8, 4936, 8, 3203, 413, 8, 10066, 872, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.NET - How is explicit cast with "as" different (internally) from (someType)someobject, and why? === I understand that when you use an explicit cast like this: (someType)someobject you can get an invalid cast exception if `someobject` is not really `someType`. As well I understand that when you cast with `as` like this: someObject as someType someObject is just rendered `null` if it isn't really `someType`. How are these evaluated differently and why?
0
[ 2, 13, 9, 2328, 13, 8, 184, 25, 14990, 1325, 29, 13, 7, 472, 7, 421, 13, 5, 6280, 103, 1326, 6, 37, 13, 5, 3220, 4474, 6, 3220, 23793, 15, 17, 483, 60, 800, 3726, 3726, 31, 1369, 30, 76, 42, 275, 40, 14990, 1325, 101, 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...
PHP echoing without masquerading === I've heard about a possibility to echo a string (e.g. HTML) without masquerading every quote. As I remember, it looks something like this: <?php ECHO SOME_NAME <div style="background-color: green;">The quotes here doesn't have to be masqueraded</div> SOME_NAME ?> But I don't know how it actually really works. Can you help me? Greez, Florian
0
[ 2, 13, 26120, 19810, 366, 4885, 8190, 1283, 68, 800, 3726, 3726, 31, 22, 195, 752, 88, 21, 4813, 20, 8117, 21, 3724, 13, 5, 62, 9, 263, 9, 13, 15895, 6, 366, 4885, 8190, 1283, 68, 352, 16371, 9, 28, 31, 1518, 15, 32, 1879, 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...
Framework for generating BPEL in runtime? === I need to generate BPEL xml code in runtime. The only way I can do it now is to create xml document with "bare hands" using dom API. But there must be a framework that could ease such work incorporating some kind of object model. Do you any? I guess it should look something like this: BPELProcessFactory.CreateProcess().addSequence etc... Do you know any? Thanks!
0
[ 2, 6596, 26, 13500, 334, 6686, 19, 485, 891, 60, 800, 3726, 3726, 31, 376, 20, 7920, 334, 6686, 23504, 1797, 19, 485, 891, 9, 14, 104, 161, 31, 92, 107, 32, 130, 25, 20, 1600, 23504, 4492, 29, 13, 7, 969, 99, 473, 7, 568, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
multiple controllers in Areas and Main site === I have multiple controllers one in Areas /Areas/Demo/Admin/AdminController and other in main site /Controller/Admin/AdminController Now getting error Multiple types were found that match the controller named 'Admin'. How to resolve the issue? Better if I can change something in Areas/Demo as I have to use same Areas on multiple sites.
0
[ 2, 1886, 9919, 18, 19, 924, 17, 407, 689, 800, 3726, 3726, 31, 57, 1886, 9919, 18, 53, 19, 924, 13, 118, 17760, 18, 118, 19274, 118, 1283, 2160, 118, 1283, 2160, 12898, 1252, 17, 89, 19, 407, 689, 13, 118, 12898, 1252, 118, 1283...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Complex DataBinding === I hope here can someone help me. I'm frustrated. So here is my problem: I've got a list of attributes, this attributes are properties for controls. Now I must have a binding between my propertgrid and the control themself. My control template looks like this: <DataTemplate x:Key="LabelVisualObject" DataType="{x:Type ContentControl}"> <ContentControl Content="{Binding}" ContentTemplateSelector="{StaticResource LabelLayoutTemplateSelector}"> <ContentControl.Style> <Style TargetType="{x:Type ContentControl}"> <Style.Triggers> <DataTrigger Binding="{Binding Path=Properties, Converter={StaticResource PropertyConverter}, ConverterParameter=VisualizationObjectTypeAttribute.Layout.Name}" Value="Layout_OneLine"> <Setter Property="ContentTemplate" Value="{StaticResource LabelOneLineVisualObject}"/> </DataTrigger> <DataTrigger Binding="{Binding Path=Properties, Converter={StaticResource PropertyConverter}, ConverterParameter=VisualizationObjectTypeAttribute.Layout.Name}" Value="Layout_TwoLines"> <Setter Property="ContentTemplate" Value="{StaticResource LabelTwoLinesVisualObject}"/> </DataTrigger> </Style.Triggers> </Style> </ContentControl.Style> </ContentControl> </DataTemplate> PropertyConverter [ValueConversion(typeof(IEnumerable<IPropertyEditorAttribute>), typeof(object))] public class PropertyConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null && value is IEnumerable<IPropertyEditorAttribute>) { IEnumerable<IPropertyEditorAttribute> list = value as IEnumerable<IPropertyEditorAttribute>; foreach (IPropertyEditorAttribute cur in list) { if (cur.Name.Equals(parameter.ToString(), StringComparison.InvariantCultureIgnoreCase)) { return cur.Value; } } } return null; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } Well, my oppertunity is, when the users changes the layout in the propertygrid, the trigger should react and change the template. Does anyone know, how i can do this?? greets Patrik
0
[ 2, 1502, 1054, 22260, 800, 3726, 3726, 31, 1376, 235, 92, 737, 448, 55, 9, 31, 22, 79, 10645, 9, 86, 235, 25, 51, 1448, 45, 31, 22, 195, 330, 21, 968, 16, 13422, 15, 48, 13422, 50, 3704, 26, 8671, 9, 130, 31, 491, 57, 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...
Working with special characters derived from a filename in a zip file === This question concerns a Tomcat 7 web application, connected to a MySQL (5.5.16) database. When I open a zip file, that has filenames encoded in windows-1252 charset, the characters seem to be interpreted correctly by Java: ZipFile zf = new ZipFile( zipFile, Charset.forName( "windows-1252" ) ); Enumeration entries = zf.entries(); while( entries.hasMoreElements() ) { ZipEntry ze = ( ZipEntry ) entries.nextElement(); if( ! ze.isDirectory() ) { String name = ze.getName(); System.out.println( name ); //prints correct filenames, e.g. café.pdf } } (Omitting the Charset object in the ZipFile constructor would cause an exception.) The filenames in the zip file are printed correctly to standard output, including diacritics. But, when I subsequently try to store the filename in a database, the e-acute is replaced with a question mark (as seen with the mysql console client). I had no problems inserting special characters from the web application into MySQL before. When I execute an INSERT with é in Java source code: statement.executeUpdate( "insert into files (filename) values ('café.pdf')" ); the é shows up well in MySQL. Also, my log file shows a comma instead of é: caf‚.pfd Does anyone know what could be happening here?
0
[ 2, 638, 29, 621, 1766, 3981, 37, 21, 3893, 7259, 19, 21, 12133, 3893, 800, 3726, 3726, 48, 1301, 4823, 21, 2067, 5782, 453, 2741, 3010, 15, 2587, 20, 21, 51, 18, 22402, 13, 5, 264, 9, 264, 9, 1091, 6, 6018, 9, 76, 31, 368, 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...
combine validation functions in jquery and replace class name === I'm validating my form for required fields, and wish to replace the class "standard_input" with the class "standard_input_error" but my following code won't work. Also, is it possible to combine functions so that I don't need to write a function for each id that requires validation (there are some text fields that don't require validation, so I can't use it for the entire form). Thanks in advance. $('#firstname').blur(function() { if( !$(this).val() ) { $(this).addClass('standard_input_error'); } }); Firstname * <input type="text" id="firstname" name="firstname" class="standard_input"> Last Name* <input type="text" id="lastname" name="lastname" class="standard_input"> another * <input type="text" id="another" name="another" class="standard_input"> another 2 <input type="text" id="another2" name="another2" class="standard_input"> Field * <input type="text" id="fieldb" name="fieldb" class="standard_input"> Blah blah <input type="text" id="blah" name="blah" class="standard_input"> Checkbox 1* <input type="checkbox" checked="checked" id="cbox1" name="cbox1" /> Blah bla 1 <input type="checkbox" checked="checked" id="blabla" name="blabla" /> Blee blee1* <input type="checkbox" checked="checked" id="blee" name="blee" /> bloblo 1 <input type="checkbox" checked="checked" id="blo" name="blo" />
0
[ 2, 12287, 27999, 3719, 19, 487, 8190, 93, 17, 3934, 718, 204, 800, 3726, 3726, 31, 22, 79, 7394, 1880, 51, 505, 26, 1390, 2861, 15, 17, 2536, 20, 3934, 14, 718, 13, 7, 15566, 1, 108, 4881, 7, 29, 14, 718, 13, 7, 15566, 1, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How I can Merge two datatable into one datatable in c# === I have tow datatables and i want to merge them and want the output like this; Table1 values: FirstName LastName AAA BBB AAA BBB Table2 values: * FullName CCC CCC * now i want that FullName's value and FirstName's value merge into One column of Firstname and out should be like that after merging.... FirstName LastName AAA BBB AAA BBB CCC CCC Both out tables have the column of FirstName and LastName from dtable1 and FullName from dtable2
0
[ 2, 184, 31, 92, 12666, 81, 1054, 5924, 77, 53, 1054, 5924, 19, 272, 5910, 800, 3726, 3726, 31, 57, 20, 499, 1054, 5924, 18, 17, 31, 259, 20, 12666, 105, 17, 259, 14, 5196, 101, 48, 73, 859, 165, 4070, 45, 64, 7259, 236, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 we can validate a textbox input in webform? === please can anyone tell me how to validate a text box while iam moving from one text box to another. it must show an error picture after the text box and it should changes textbox border colour. iam new to web designing . please help me Thanks in advance
0
[ 2, 184, 95, 92, 7394, 1373, 21, 1854, 5309, 6367, 19, 2741, 4190, 60, 800, 3726, 3726, 2247, 92, 1276, 494, 55, 184, 20, 7394, 1373, 21, 1854, 1649, 133, 31, 765, 1219, 37, 53, 1854, 1649, 20, 226, 9, 32, 491, 298, 40, 7019, 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...
System.Security.SecurityException C# 2.0 windows service === I`m tring to install my windows service on Windows 7 x64 And getting this error An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer. System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete. this is my `MyWindowsServiceInstaller` code: var processInstaller = new ServiceProcessInstaller(); var serviceInstaller = new ServiceInstaller(); processInstaller.Account = ServiceAccount.LocalSystem; serviceInstaller.DisplayName = "My Service"; serviceInstaller.StartType = ServiceStartMode.Manual; serviceInstaller.ServiceName = "My Service"; this.Installers.Add(processInstaller); this.Installers.Add(serviceInstaller); i have set my application name to start up project Here is bat file @ECHO OFF REM The following directory is for .NET 2.0 set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727 set PATH=%PATH%;%DOTNETFX2% echo Installing MyService... echo --------------------------------------------------- InstallUtil /i ConsoleApplication5.exe echo --------------------------------------------------- echo Done. pause This service is not only my computer if i will solve this problem it would be solved for any other computers? Thanks
0
[ 2, 329, 9, 17749, 9, 17749, 10066, 872, 272, 5910, 172, 9, 387, 1936, 365, 800, 3726, 3726, 31, 1, 79, 13, 38, 2090, 20, 16146, 51, 1936, 365, 27, 1936, 453, 993, 3470, 17, 1017, 48, 7019, 40, 5391, 2437, 112, 14, 3001, 1958, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 best pass methods into methods of the same class === I have this C++ class that one big complicated method `compute` that I would like to feed with a "compute kernel", a method of the same class. I figure I would do something along the lines of class test { int compute(int a, int b, "pass in add or multiply as f()") { int c=0; // Some complex loops { c += f(a,b) // } return c; } int add(int a, int b){a+b;} int multiply(int a, int b){a*b;} ... } but I'm not sure how I would pass in `add` or `multiply`. An alternative to this approach would be to pass in an `ENUM` of some sort to specify `add()` or `multiply()`, but I wanted to avoid a `switch` or `if` inside the loops. What's best practice here?
0
[ 2, 184, 20, 246, 1477, 3195, 77, 3195, 16, 14, 205, 718, 800, 3726, 3726, 31, 57, 48, 272, 20512, 718, 30, 53, 580, 8343, 2109, 13, 1, 11103, 6567, 1, 30, 31, 83, 101, 20, 4063, 29, 21, 13, 7, 11103, 6567, 17007, 7, 15, 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...
breakpoints don't trigger in code loaded from nib === Breakpoints appear to be ignored in code loaded from a nib file with initWithWindowNibName. Back in the old NeXTSTEP days I vaguely having to perform an extra step as the code in the nib is not present at the debugger startup to apply the breakpoints. But can not recall what that was. I've tried setting a breakpoint in the main code to trigger after the nib load is complete to give the breakpoints a chance to be applied to the loaded code, but this hasn't worked. I am certain that the code in the nib is being executed.
0
[ 2, 1442, 3132, 18, 221, 22, 38, 7286, 19, 1797, 8572, 37, 1781, 220, 800, 3726, 3726, 1442, 3132, 18, 1893, 20, 44, 5424, 19, 1797, 8572, 37, 21, 1781, 220, 3893, 29, 19, 242, 1410, 27508, 889, 220, 7259, 9, 97, 19, 14, 315, 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...
C# : Problems After Deployment (visual 2010- Access database) === we used accese database && crystal report first error message appeare: An not load file or assembly ‘ CrystalDecisions.WindowesForms.Version=3.0.2000.0, Culture neutral. Public Key Token=692fb5521e1304’ or one of its dependencies . The system cannot find specified. second error message: Operation must use an updatable query. please help us thank u all.
1
[ 2, 272, 5910, 13, 45, 1716, 75, 10475, 13, 5, 20893, 498, 8, 1381, 6018, 6, 800, 3726, 3726, 95, 147, 7602, 4635, 6018, 279, 1569, 4282, 1330, 64, 7019, 2802, 1893, 62, 45, 40, 52, 6305, 3893, 54, 1475, 13, 1, 4282, 29450, 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...
PHP convert server time to EST Time === How to convert the server time to EST Time. I used date("Y-m-d H:i:s") to store the server time. I want to convert this to EST time. $dt = new DateTime($timestamp); $dt->setTimeZone(new DateTimeZone('EST')); echo $dt->format('H:i:s'); But it is not displaying the correct result. Please help me. Thanks
0
[ 2, 13, 26120, 8406, 8128, 85, 20, 11186, 85, 800, 3726, 3726, 184, 20, 8406, 14, 8128, 85, 20, 11186, 85, 9, 31, 147, 1231, 5, 7, 93, 8, 79, 8, 43, 746, 45, 49, 45, 18, 7, 6, 20, 1718, 14, 8128, 85, 9, 31, 259, 20, 8406,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pagination for custom module in joomla 2.5 === We have already created custom module for searching but pagination not working. we have used following code for pagination. jimport( 'joomla.html.pagination' ); $pagNav = new JPagination(6, 0, 5); $pageNav = new JPagination( $db->loadResult(), $lim0, $lim ); echo $pagNav->getListFooter();
0
[ 2, 19006, 108, 857, 26, 5816, 12613, 19, 2640, 2636, 531, 172, 9, 264, 800, 3726, 3726, 95, 57, 614, 679, 5816, 12613, 26, 5792, 47, 19006, 108, 857, 52, 638, 9, 95, 57, 147, 249, 1797, 26, 19006, 108, 857, 9, 2170, 1993, 5, 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...
Javascript positioning tree node === I need know the position on each node of this tree, I am using javaScript I am trying but still having problem on overlapping/spacing ![a busy cat](http://dl.dropbox.com/u/49962071/temp/1.jpg) ![Family Tree] I have child list of each node.<br></br> A=> C, B, D <br></br> C=> E, F, G<br></br> so on. Please help me.
0
[ 2, 8247, 8741, 649, 68, 1541, 15421, 800, 3726, 3726, 31, 376, 143, 14, 649, 27, 206, 15421, 16, 48, 1541, 15, 31, 589, 568, 8247, 8741, 31, 589, 749, 47, 174, 452, 1448, 27, 23854, 118, 18, 10055, 68, 13, 187, 2558, 58, 4394, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Display rand() + rand() in cout in c++ === Im desiging a maths quiz as practice of C++ as im a beginner. I've assigned random numbers using the following code: int random_integer = rand(); int random_integer2 = rand(); my problem is that i can't get cout to display what the results of the random number will be (which is basically my equation) i only know this expression, which i've tried both with and without quoatations cout << "random_integer + random_integer2";
1
[ 2, 3042, 11310, 5, 6, 2754, 11310, 5, 6, 19, 272, 1320, 19, 272, 20512, 800, 3726, 3726, 797, 1746, 49, 2762, 21, 5057, 18, 17667, 28, 1345, 16, 272, 20512, 28, 797, 21, 26931, 9, 31, 22, 195, 2467, 5477, 2116, 568, 14, 249, 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...
webdriver wait for one of a multiple elements to appear === I there a way to get a webDriverWait to wait for one of a number of elements to appear and to act according based on which element appears? At the moment I do a webdriverwait within a try loop and if a timeout exception occurs I run the alternative code which waits for the other element to appear. This seems clumsy. Is there a better way? Here is my (clumsy) code: try: self.waitForElement("//a[contains(text(), '%s')]" % mime) do stuff .... except TimeoutException: self.waitForElement("//li[contains(text(), 'That file already exists')]") do other stuff ... It involves waiting an entire 10 seconds before I looks to see if the message that the file already exists on the system waitForElement just does WebDriverWaits like so def waitForElement(self, xPathLocator, untilElementAppears=True): self.log.debug("Waiting for element located by:\n%s\nwhen untilElementAppears is set to %s" % (xPathLocator,untilElementAppears)) if untilElementAppears: if xPathLocator.startswith("//title"): WebDriverWait(self.driver, 10).until(lambda driver : self.driver.find_element_by_xpath(xPathLocator)) else: WebDriverWait(self.driver, 10).until(lambda driver : self.driver.find_element_by_xpath(xPathLocator).is_displayed()) else: WebDriverWait(self.driver, 10).until(lambda driver : len(self.driver.find_elements_by_xpath(xPathLocator))==0) Anybody got any suggestions to accomplish this in a more efficient way? A
0
[ 2, 2741, 21752, 1760, 26, 53, 16, 21, 1886, 2065, 20, 1893, 800, 3726, 3726, 31, 80, 21, 161, 20, 164, 21, 2741, 21752, 8195, 20, 1760, 26, 53, 16, 21, 234, 16, 2065, 20, 1893, 17, 20, 601, 496, 432, 27, 56, 4520, 1780, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading from a file directly into a 2D list python === Here is the contents of my .log file Current Date & Time, Trans, Elapsed Time, Response Time, Trans Rate, Wed Jul 18 10:03:1, 5, 0.37 sec, 0.00 sec, 13.51 t/s, Wed Jul 18 10:03:5, 5, 0.45 sec, 0.00 sec, 11.11 t/s, Wed Jul 18 10:04:0, 5, 0.91 sec, 0.00 sec, 5.49 t/s, Wed Jul 18 10:22:4, 12, 0.79 sec, 0.00 sec, 15.19 t/s, Wed Jul 18 10:23:0, 12, 0.56 sec, 0.00 sec, 21.43 t/s, Wed Jul 18 10:23:1, 12, 0.53 sec, 0.00 sec, 22.64 t/s, I want to put these values directly into a 2D list in python, but every solution I have found just creates a list item for each row. I want the value of a list slot to be one comma separated value. EG row 3 column 2 in the list would store 5. It's probably quite simple but I've been searching and searching and found nothing to do it this way. Any help much appreciated. Cheers.
0
[ 2, 1876, 37, 21, 3893, 1703, 77, 21, 172, 43, 968, 20059, 800, 3726, 3726, 235, 25, 14, 8478, 16, 51, 13, 9, 5567, 3893, 866, 1231, 279, 85, 15, 2982, 15, 13, 62, 17057, 43, 85, 15, 1627, 85, 15, 2982, 1684, 15, 12914, 16323, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
error in show data by date wise in grid === i have tried to show a data by date wise but i didn't get the answer exactly, please help me.. public void gettoday() { con.Open(); { string strview = "select MRNO,MaterialCode,Description,Specification,Category as Cat,Source as Sor,Population as Pop, StockInStores as Stock,MRRating as Rating,PreparedBy,PreparedDate,CheckedBy,CheckedDate,ApprovedBy,ApprovedDate from tbl_KKSMaterialRaise where PreparedDate between (getdate()-1) and (getdate()+1)"; SqlCommand cd = new SqlCommand(strview, con); SqlDataReader reader = cd.ExecuteReader(); GridView1.DataSource = reader; GridView1.DataBind(); } con.Close(); }
0
[ 2, 7019, 19, 298, 1054, 34, 1231, 6714, 19, 7354, 800, 3726, 3726, 31, 57, 794, 20, 298, 21, 1054, 34, 1231, 6714, 47, 31, 223, 22, 38, 164, 14, 1623, 1890, 15, 2247, 448, 55, 9, 9, 317, 11364, 164, 15260, 5, 6, 13, 1, 1065,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way I can Pass xml ,start,limit in store.load? === I`m new to extjs,I need to pass a xml(xml data that`s loading grid),and start value,and limit.How can I do this in 'store.load'??? I actually need to display data in grid,with current pagenumber,and with limit. Is there a way???plz help
0
[ 2, 25, 80, 21, 161, 31, 92, 1477, 23504, 13, 15, 13680, 15, 20565, 19, 1718, 9, 8294, 60, 800, 3726, 3726, 31, 1, 79, 78, 20, 1396, 38, 728, 18, 15, 49, 376, 20, 1477, 21, 23504, 5, 396, 8184, 1054, 30, 1, 18, 12797, 7354, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Bouncy castle 1.47 and standard JCE === I am trying to create some helper methods to create (and sign) CSR, self signed certificates etc... I already had some methods implemented with now-deprecated functionality. In the interest of keeping up with the latest, I have upgraded bouncycastle to 1.47 which seems to be largely different and I was wondering two things: 1) I can't seem to track down a concise list of examples. Due to the added verbosity of the code now necessary to accomplish similar things as before, this would be very welcome. 2) It seems unreasonably hard to work with bouncycastle while mixing in classic JCE stuff, at least much more so then before. Is there a reason for this? As an example of the latter, take the generation of a csr, it used to be as simple as doing this: org.bouncycastle.jce.PKCS10CertificationRequest request = new org.bouncycastle.jce.PKCS10CertificationRequest(type.toString(), subject, pair.getPublic(), null, pair.getPrivate()); Where subject is a "javax.security.auth.x500.X500Principal", the private & public key stem from a general "java.security.KeyPair" etc. Now I have something like: public byte[] generatePKCS10(KeyPair pair, SignatureType type, X500Principal subject) throws IOException { PKCS10CertificationRequestBuilder builder = new PKCS10CertificationRequestBuilder( new X500Name(subject.getName()), SubjectPublicKeyInfo.getInstance(pair.getPublic()) ); AlgorithmIdentifier sigAlgId = new DefaultSignatureAlgorithmIdentifierFinder().find(type.toString()); AlgorithmIdentifier digAlgId = new DefaultDigestAlgorithmIdentifierFinder().find(sigAlgId); AsymmetricKeyParameter keyParam = PrivateKeyFactory.createKey(pair.getPrivate().getEncoded()); try { ContentSigner signer = new BcRSAContentSignerBuilder(sigAlgId, digAlgId).build(keyParam); PKCS10CertificationRequest csr = builder.build(signer); ContentVerifierProvider verifier = new JcaContentVerifierProviderBuilder().setProvider(new BouncyCastleProvider()).build(pair.getPublic()); csr.isSignatureValid(verifier); return csr.getEncoded(); } catch (OperatorCreationException e) { throw new IOException(e); } catch (PKCSException e) { throw new IOException(e); } } Is there a whole host of easy conversion utilities or overloaded methods or JCE-specific implementations that I'm missing? It does not help that a lot of google-searches highlight old (read: deprecated) ways of doing things.
0
[ 2, 5963, 14386, 1339, 137, 9, 2918, 17, 1236, 487, 1105, 800, 3726, 3726, 31, 589, 749, 20, 1600, 109, 448, 106, 3195, 20, 1600, 13, 5, 290, 1676, 6, 272, 18, 139, 15, 1119, 908, 6259, 18, 2722, 9, 9, 9, 31, 614, 41, 109, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Widgets don't respond when re-added through code === I am working on a launcher. It let's users add widgets from the list, it works fine. I store information about the widget (PackageName, ClassName and it's co-ordinates on the screen) in my database when the user adds one to the screen. When the application is restarted (or the device itself) I add those (user selected) widgets back through code: // APPWIDGET_HOST_ID is any number you like appWidgetManager = AppWidgetManager.getInstance(this); appWidgetHost = new AppWidgetHost(this, APPWIDGET_HOST_ID); AppWidgetProviderInfo newAppWidgetProviderInfo = new AppWidgetProviderInfo(); // Get an id int appWidgetId = appWidgetHost.allocateAppWidgetId(); // Get the list of installed widgets List<AppWidgetProviderInfo> appWidgetInfos = new ArrayList<AppWidgetProviderInfo>(); appWidgetInfos = appWidgetManager.getInstalledProviders(); for(int j = 0; j < appWidgetInfos.size(); j++) { if (appWidgetInfos.get(j).provider.getPackageName().equals(PackageName) && appWidgetInfos.get(j).provider.getClassName().equals(ClassName)) { // Get the full info of the required widget newAppWidgetProviderInfo = appWidgetInfos.get(j); break; } } // Create Widget AppWidgetHostView hostView = appWidgetHost.createView(this, appWidgetId, newAppWidgetProviderInfo); hostView.setAppWidget(appWidgetId, newAppWidgetProviderInfo); // Add it to your layout RelativeLayout widgetLayout = (RelativeLayout) findViewById(R.id.widgetLayout); widgetLayout.addView(hostView); The widget is successfully added to the layout but it seems like it's not enabled/updated. It doesn't respond to clicks (for instance, Analog Clock) and doesn't show any data (for instance, Music player widget), although I have put this: @Override protected void onStart() { super.onStart(); appWidgetHost.startListening(); } @Override protected void onStop() { super.onStop(); appWidgetHost.stopListening(); } I am stuck on it since quite a long time. Searched a lot but it seems I'm the only one in this world with this problem.
0
[ 2, 4807, 43, 3060, 18, 221, 22, 38, 4590, 76, 302, 8, 14854, 69, 120, 1797, 800, 3726, 3726, 31, 589, 638, 27, 21, 19755, 9, 32, 408, 22, 18, 3878, 3547, 4807, 43, 3060, 18, 37, 14, 968, 15, 32, 693, 1123, 9, 31, 1718, 676, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mixing freopen and ncurses === I'm having issues in mixing `freopen` of `stdin` together with ncurses library. What I do is to reopen the stdin to a file, parse it through flex+bison, then I should revert it back and start ncurses. Code for the swap is the following: void switchStdin(const char *newStream) { fflush(stdin); fgetpos(stdin, &pos); fd = dup(fileno(stdin)); freopen(newStream, "r", stdin); } void revertStdin() { fflush(stdin); dup2(fd, fileno(stdin)); close(fd); clearerr(stdin); fsetpos(stdin, &pos); } In my lexer this is what I do: void parse() { Utils::switchStdin("./filename.ext"); yyparse(); Utils::revertStdin(); } and in the main file I just do something like parse(); initscr(); keypad(stdscr, TRUE); noecho(); cbreak(); ... Now, if I don't comment the `revertStdin` it just halts when launching, if instead I comment it, parsing does work but the ncurses gui is unresponsive and blinks from time to time. Since both parts do work when independently used I guess there is some caveat in mixing them in a sequential manner that I'm missing. Does anyone have a clue?
0
[ 2, 5826, 8969, 10157, 17, 9276, 9679, 160, 800, 3726, 3726, 31, 22, 79, 452, 1549, 19, 5826, 13, 1, 10185, 10157, 1, 16, 13, 1, 384, 3653, 1, 429, 29, 9276, 9679, 160, 1248, 9, 98, 31, 107, 25, 20, 21398, 14, 354, 3653, 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...
My android app worked yesterday on device, but it doesn't run right now === I'm new on this about android development, and I didn't know anything about debugging with device from Eclipse until now. My problem is very simple. Yesterday, I created an .apk to load on my device to test somethings, but when I load the same file.apk, it didn't work. I don't know what conditions could be affect to device (key license, race conditions for device,...), but I didn't update anything I remember. If you need more information about this problem, I'll answer it. (Sorry if my English isn't so fluid) Thanks in advance
0
[ 2, 51, 13005, 4865, 577, 7124, 27, 3646, 15, 47, 32, 1437, 22, 38, 485, 193, 130, 800, 3726, 3726, 31, 22, 79, 78, 27, 48, 88, 13005, 522, 15, 17, 31, 223, 22, 38, 143, 602, 88, 121, 16254, 2762, 29, 3646, 37, 11652, 163, 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...
Runtime Error R6034 in C# program === I'm loading in C# a C++/CLI wrapper dll (to a native C++ dll) and if I compile my tool in release mode I'm getting R6034 runtime error and A dynamic link library (DLL) initialization failed. (Exception from HRESULT: 0x8007045A). Scheme: C# tool ---> reference to C++/CLI wrapper ---> static load (implicit) native C++ dll (Additional Dependencies -> lib file) It seems that something is wrong with the loading process of the C++ library (but I don't have problems in Debug Mode)! Any hints or ideas!? Thx
0
[ 2, 485, 891, 7019, 761, 3374, 3965, 19, 272, 5910, 625, 800, 3726, 3726, 31, 22, 79, 12797, 19, 272, 5910, 21, 272, 20512, 118, 150, 1210, 28051, 13, 43, 211, 13, 5, 262, 21, 1275, 272, 20512, 13, 43, 211, 6, 17, 100, 31, 2656...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change color of selected item from Multiselect ListView === I have a list view as : <ListView android:id="@+id/ListView01" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:cacheColorHint="@android:color/transparent" /> In corresponding activity i have set elements in listview as listView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_multiple_choice, phoneContactList)); listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in above code , `phoneContactList` is an arrayList. How can change the color of selected item from this listview? Thank You.
0
[ 2, 184, 20, 753, 1665, 16, 1704, 9101, 37, 1889, 18, 16964, 968, 4725, 800, 3726, 3726, 31, 57, 21, 968, 1418, 28, 13, 45, 13, 1, 5739, 4725, 13005, 45, 1340, 3726, 7, 1, 2430, 1340, 118, 5739, 4725, 3026, 7, 13005, 45, 4414, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does GetServerVariable("HTTP_URL") return different value depending on the pipeline mode === In IIS, why does calling GetServerVariable("HTTP_URL") of the HttpWorkerRequest class result in different values depending on the pipeline mode? When running under Integrated mode, it returns the raw url (that the server sees e.g, "/SomeUrl/Default.ashx"). While under Classic mode it seems like the value is the url that was typed into the browser (my url router maps for example /someurl to that specific handler).
0
[ 2, 483, 630, 164, 10321, 106, 8220, 579, 5, 7, 21127, 1, 911, 255, 7, 6, 788, 421, 1923, 4758, 27, 14, 12250, 3740, 800, 3726, 3726, 19, 595, 18, 15, 483, 630, 2555, 164, 10321, 106, 8220, 579, 5, 7, 21127, 1, 911, 255, 7, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
phonegap localstorage and JS object oriented === I have the following method: DBConnection.prototype.successHandler = function(){ console.log("DB_INFO: Schema created"); for (k in this) console.log(k); this.setStatus(DB_STATUS_OK); } That I call in a transaction like this: DBConnection.prototype.createSchema = function(){ try { this.c2db.transaction( function(tx){ tx.executeSql('CREATE TABLE IF NOT EXISTS person(id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL DEFAULT "");', [], this.nullDataHandler, this.errorHandler); tx.executeSql("INSERT INTO person(id, name) VALUES (NULL, 'miloud');", [], this.nullDataHandler, this.errorHandler); }, this.errorHandler, this.successHandler ); } catch(e){ console.log ("DB_ERROR: error during insert with message: " + e) return; } } the problem is that I get: Uncaught TypeError: Object [object Window] has no method 'setStatus' which is clearly telling that what I am accessing is not the DBConnection instance that I am using when I am in success callback. How come? What is this refering to inside this callback? is there a way to overcome this problem? EDIT Callbacks are defined as: DBConnection.prototype.errorHandler = function(errorMsg){ console.log("DB_ERROR: error creating schema with msg " + errorMsg.message); } DBConnection.prototype.successHandler = function(){ console.log("DB_INFO: Schema created"); for (k in this) console.log(k); this.setStatus(DB_STATUS_OK); } And setStatus method as DBConnection.prototype.setStatus = function(str_status){ localStorage.setItem(db_name, str_status); } Thx !
0
[ 2, 1132, 1136, 306, 375, 18, 2153, 1303, 17, 487, 18, 3095, 13, 6800, 800, 3726, 3726, 31, 57, 14, 249, 2109, 45, 13, 9007, 25996, 872, 9, 2740, 262, 4474, 9, 29245, 3203, 1252, 800, 1990, 5, 6, 1, 8650, 9, 5567, 5, 7, 9007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
merging two dataset with common colums === I have a client database, that should update to a server database. From each client table i collect a dataset, and extra values (columns) for the server table. This should be inserted into the server tables, but i get errors in the code: Public Sub Sync_Table(ByVal GatheringID As Integer, ByVal gatheringGUID As Guid, ByVal ServerGatheringID As Integer, ByVal DS As DataSet, ByVal TableName As String) Try Dim Conn As New SqlConnection(DBConn) Dim SqlDA As SqlDataAdapter = New SqlDataAdapter("Select * from dbo." + TableName, Conn) Dim sqlDS As DataSet = New DataSet SqlDA.Fill(sqlDS) sqlDS.Merge(DS) sqlDS.AcceptChanges() Dim dt As DataTable = sqlDS.Tables(TableName) Dim test As String = dt.Rows(0).Item("GatheringID").ToString If Not DS.Tables(TableName).Rows.Count = 0 Then Dim nnow As DateTime = Convert.ToDateTime(DateTime.Now) If TableName = "GatheringID" Then 'sqlDS.Tables(TableName).Rows(0).Item("gatheringid") = GatheringID sqlDS.Tables(TableName).Rows(0).Item("servergatheringid") = ServerGatheringID sqlDS.Tables(TableName).Rows(0).Item("GUID") = gatheringGUID sqlDS.Tables(TableName).Rows(0).Item("DateUpdated") = nnow sqlDS.Tables(TableName).AcceptChanges() Else sqlDS.Tables(TableName).Rows(0).Item("gatheringid") = GatheringID sqlDS.Tables(TableName).Rows(0).Item("servergatheringid") = ServerGatheringID sqlDS.Tables(TableName).AcceptChanges() End If ' sqlDS.Merge(DS, True, MissingSchemaAction.Add) ' sqlDS.AcceptChanges() SqlDA.Fill(sqlDS, TableName) Dim builder As SqlCommandBuilder = New SqlCommandBuilder(SqlDA) SqlDA.InsertCommand = builder.GetInsertCommand(True) Conn.Open() SqlDA.Update(sqlDS, TableName) 'Dim introw As Integer = SqlDA.InsertCommand.ExecuteScalar Conn.Close() Conn.Dispose() End If Catch ex As Exception Dim rethrow As Boolean = False rethrow = DataAccessExceptionHandler.HandleException(ex) If rethrow Then Throw ex End If '*logging Dim logstring As String = String.Format("{0}.............", ex) Using Logger As New Logging.FileLogTraceListener() Logger.Write(logstring) End Using End Try End Sub
0
[ 2, 18842, 81, 1054, 3554, 29, 757, 326, 4404, 18, 800, 3726, 3726, 31, 57, 21, 6819, 6018, 15, 30, 378, 11100, 20, 21, 8128, 6018, 9, 37, 206, 6819, 859, 31, 5543, 21, 1054, 3554, 15, 17, 2230, 4070, 13, 5, 716, 4404, 2172, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails employer and employee devise === I am trying to figure out how to structure this please help: I need users to be able to sign up as either an employer or employee. The employer basically is the company and the employees are the people employed at that job. I want to know how to keep a record of when/if the employee was hired and terminated from the job. Would a `has_many:through` assotiation work for this or better yet is there a gem that I am overlooking that could help me with this?
0
[ 2, 2240, 18, 11726, 17, 7362, 29276, 800, 3726, 3726, 31, 589, 749, 20, 1465, 70, 184, 20, 1411, 48, 2247, 448, 45, 31, 376, 3878, 20, 44, 777, 20, 1676, 71, 28, 694, 40, 11726, 54, 7362, 9, 14, 11726, 11374, 25, 14, 237, 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...
How to find out the optimal number of forked kids === I have a comprehensive PHP script (on Linux) which occasionally needs to do a lot of network talking. For that it forks a number of kids. The question is how the script can identify the optimal number of them? If the number is too large, the server runs out of physical memory and kids start swapping - performance penalty. So how can I get the real amount of available physical memory? A 'free' command doesn't tell me the real picture for obvious reasons.
0
[ 2, 184, 20, 477, 70, 14, 17586, 234, 16, 26, 4616, 2627, 800, 3726, 3726, 31, 57, 21, 7041, 13, 26120, 3884, 13, 5, 218, 13024, 6, 56, 4533, 2274, 20, 107, 21, 865, 16, 982, 1582, 9, 26, 30, 32, 8777, 18, 21, 234, 16, 2627, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java wrap UTF-8 text? === I need to simply wrap long text to display it in a few lines. I tried the default snippet: String s = "Español texto aquí"; StringBuilder sb = new StringBuilder(s); int i = 0; while (i + 20 < sb.length() && (i = sb.lastIndexOf(" ", i + 20)) != -1) { sb.replace(i, i + 1, "\n"); } System.out.println(sb.toString()); but with Spanish text I get wrong symbols in output. How do I wrap non-English text?
0
[ 2, 8247, 8118, 287, 11720, 8, 457, 1854, 60, 800, 3726, 3726, 31, 376, 20, 1659, 8118, 175, 1854, 20, 3042, 32, 19, 21, 310, 1560, 9, 31, 794, 14, 12838, 13, 29061, 45, 3724, 13, 18, 800, 13, 7, 160, 3206, 1823, 1854, 111, 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...
Return list of files that were modified in a particular folder === How can i get a list of all changes from TFS that were in a particular folder? Say my application code is layed out like: /myapp/ /myapp/admin/... /myapp/section1/... /myapp/section2/... How can i get a list of all changes that occurred in the folder `section1` ? I want a list of files that were changed from within that folder, and the changeset # and be able to see a compare on the file ideally.
0
[ 2, 788, 968, 16, 6488, 30, 46, 5372, 19, 21, 1498, 19294, 800, 3726, 3726, 184, 92, 31, 164, 21, 968, 16, 65, 1693, 37, 13, 11720, 18, 30, 46, 19, 21, 1498, 19294, 60, 395, 51, 3010, 1797, 25, 1815, 69, 70, 101, 45, 13, 118,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DistinctResultList in OpenJPA === I am attempting to get a distinct list of id's back that would be longs... But I am getting back this DistinctResultList... How can one handle this so that they get back results they are expecting... Here is what I am doing... @NamedQuery(name="getProvidersByResourceIds", query = "SELECT DISTINCT p.resourceId FROM Provider p WHERE p.resourceId `in :resourceIds")` Out of that I try and get the resourceIds' by doing this... List<Long> provIDs = (List<Long>) emf.createNamedQuery("getProvidersByResourceIds").setParameter("resourceIds", values).getResultList(); But like I said, I keep getting back a DistinctResultList... Looking through the debugger, I can see the values I am getting back. How can I translate this into something usefull?
0
[ 2, 4421, 29955, 5739, 19, 368, 728, 1060, 800, 3726, 3726, 31, 589, 6314, 20, 164, 21, 4421, 968, 16, 4924, 22, 18, 97, 30, 83, 44, 175, 18, 9, 9, 9, 47, 31, 589, 1017, 97, 48, 4421, 29955, 5739, 9, 9, 9, 184, 92, 53, 3053...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 best way to "watch" the ServiceHost while debugging inside a WCF service === What's the best way to "watch" the ServiceHost while debugging inside a WCF service? I'd like to know the binding properties and other info about the service host.
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 13, 7, 9054, 7, 14, 365, 11694, 133, 121, 16254, 2762, 572, 21, 11801, 410, 365, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 13, 7, 9054, 7, 14, 365, 11694, 133, 121, 16254, 2762, 572, 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...
Argument exception for Image.FromSteam === So I have a byte array "sorted" that holds grayscale values and is 14080 bytes long. I'm trying to render this as an image so I thought it would be a good idea to try to convert it to an image object and then use the save function for images to save the image to a path on my computer. However, every time I run it I get an argument exception error. Before I was catching the error it said my parameter was invalid, but I don't understand how that's the case because I'm pretty sure my syntax is right and I filled my "sorted" byte array in the program so I don't get how it could be invalid... Any help would be appreciated- Plus I haven't even gotten to my save method yet because it keeps on breaking so I don't know if this works at all! try { MemoryStream ms = new MemoryStream(sorted); Image returnImage = Image.FromStream(ms); returnImage.Save("C:/Users/ttannin/downloads/silouete.jpg"); } catch (ArgumentException aex) { throw new Exception("Something is broken...", aex); } PS. I was trying to mimic an example found here- http://www.codeproject.com/Articles/15460/C-Image-to-Byte-Array-and-Byte-Array-to-Image-Conv
0
[ 2, 5476, 5391, 26, 1961, 9, 2665, 18, 6575, 800, 3726, 3726, 86, 31, 57, 21, 34, 591, 7718, 13, 7, 22843, 69, 7, 30, 2763, 2030, 5093, 4070, 17, 25, 10008, 2887, 34, 3231, 175, 9, 31, 22, 79, 749, 20, 16535, 48, 28, 40, 1961...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Structuring content in Expression Engine === I need some help figuring out the best way to sctructure content using Expression Engine. I've red the documentation, looked at all information I could find but I haven't found the answer. I hope someone here could help. What I want to create is a product catalogue that would look like this: `/bikes` (product category, displays the product families, two-wheelers, three wheelers etc.) `/bikes/two-wheelers` (product family, displays the products in the family) `/bikes/two-wheelers/red-bike` (product) `/bikes/two-wheelers/red-bike/wheels` (optional product details page) I understand that EE URI's are template-group/template based and that the content is in channels. I'm not yet sure how categories can be used in this. Essentially I would like to create "simple" parent-child relationschips between the entries and I found a plug-in called Structure that does something like that. Unfortunately, this project needs to be done without additional (payed) plug-ins. Is it possible for the `product` to be the channel, and `product-family` and `product-category` to be attributes of the `product` in EE? Would that work? Is there a better way to structure that? I realise that this isn't a straight-forward question, but I'm still hoping to be pointed in the right direction. Thanks for reading!
0
[ 2, 13, 10346, 10450, 2331, 19, 1803, 1406, 800, 3726, 3726, 31, 376, 109, 448, 25379, 70, 14, 246, 161, 20, 4729, 8989, 150, 6418, 2331, 568, 1803, 1406, 9, 31, 22, 195, 402, 14, 13945, 15, 292, 35, 65, 676, 31, 110, 477, 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...
Geopoint to address === i want to know how to transfer geopoint to address Example double src_lat =30.022584 ; double src_long = 31.343822; srcGeoPoint = new GeoPoint((int) (src_lat * 1E6),(int) (src_long * 1E6)); how can i get the address of this srcGeoPoint
0
[ 2, 6389, 3132, 20, 3218, 800, 3726, 3726, 31, 259, 20, 143, 184, 20, 2617, 6389, 3132, 20, 3218, 823, 1494, 13, 18, 5453, 1, 8927, 800, 1762, 9, 3564, 1811, 3790, 13, 73, 1494, 13, 18, 5453, 1, 2701, 800, 1538, 9, 24142, 4075, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ARC in simple class object-c === i want use ARC in my simple class where i store some value to pass in another class, and i want know what reference i have to use in the property, to use it in ARC, know i have this: @interface MyItem : NSObject @property (retain) NSString *valueID; @property (retain) NSString *itName; @property (retain) NSDate *creationDate; @property (assign) float rating; this is a very simple class, and i want know, to use it in ARC, what reference i have to use, and also if i have to use copy for the NSString...
0
[ 2, 275, 4686, 19, 1935, 718, 3095, 8, 150, 800, 3726, 3726, 31, 259, 275, 4686, 19, 51, 1935, 718, 113, 31, 1718, 109, 1923, 20, 1477, 19, 226, 718, 15, 17, 31, 259, 143, 98, 2801, 31, 57, 20, 275, 19, 14, 1354, 15, 20, 275,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Caching the data from database in mobile application, using doctrine2 === when the user buys some car manuals in application, he can able to use them without network so I want to cache the manuals he purchased, I want step by step method to cache the database
0
[ 2, 1658, 7192, 14, 1054, 37, 6018, 19, 3241, 3010, 15, 568, 7521, 135, 800, 3726, 3726, 76, 14, 4155, 3034, 18, 109, 349, 5132, 18, 19, 3010, 15, 24, 92, 777, 20, 275, 105, 366, 982, 86, 31, 259, 20, 16522, 14, 5132, 18, 24, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
How to populate gridview on button_click after searching from access database? === i am creating a form in c#.net . i want to populate the gridview only on button click with entries meeting search criteria. i have tried but on searching ID it works but on searching FirstName it gives error plz check SQL also.. My Code behind private void button1_Click(object sender, EventArgs e) { try { string strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=L:/New project/Project/Project/Data.accdb"; string sql = "SELECT * FROM AddressBook WHERE FirstName='" + textBox1.Text.ToString(); OleDbConnection connection = new OleDbConnection(strConn); OleDbDataAdapter dataadapter = new OleDbDataAdapter(sql, connection); DataSet ds = new DataSet(); connection.Open(); dataadapter.Fill(ds, "AddressBook"); connection.Close(); dataGridView1.DataSource = ds; dataGridView1.DataMember = "AddressBook"; } catch (System.Exception err) { this.label27.Visible = true; this.label27.Text = err.Message.ToString(); } }
0
[ 2, 184, 20, 1675, 12383, 7354, 4725, 27, 5167, 1, 150, 10129, 75, 5792, 37, 1381, 6018, 60, 800, 3726, 3726, 31, 589, 2936, 21, 505, 19, 272, 5910, 9, 2328, 13, 9, 31, 259, 20, 1675, 12383, 14, 7354, 4725, 104, 27, 5167, 10840, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Browser Alignment Compatibility Issue === My jsfiddle is here http://jsfiddle.net/pedz/YG3bv/ The full page is http://jsfiddle.net/pedz/YG3bv/14/embedded/result/ This is my first attempt at posting jsfiddle pages so let me know if I botched it. If you view this with Chrome or Safari, the leftmost pixel of the left tip of the little triangle is directly under the rightmost pixel of the underline. This is what I want. If viewed with Firefox (I'm using 13), the little triangle is moved right by what looks like two pixels. I've been told that when viewed with IE9, it is moved left one pixel. I've fiddled with this for days comparing Chrome with FF mostly. If you add in borders to the various elements, then you can determine some of my conclusions. FF and Chrome agree about the left and bottom but they do not agree about the top nor the right of the parent container. FF has an extra column or two of pixels on the right when compared to Chrome. That is why the arrow is one or two pixels further right. It also appears, when you put a border around the foo span, that FF moves the text up a pixel when compared to Chrome. The descenders in FF do not touch the border while they do (or very nearly do) in Chrome. Likewise, there is a bit more white space above the text (within the border) in Chrome than in FF. This particular issue I'm not concerned with... its just something I've observed. What I figure is I need to "reset" some CSS attribute but I've not yet figured out which one I need. That is really my ultimate goal here... to understand what CSS attribute is different between the browsers. My secondary goal is to come up with a way to get the little triangle in the same place in the different browsers... or a technique to do it. I could add in browser specific Javascript to nudge things one way or the other but, from the net, that sounds like a really bad idea.
0
[ 2, 16495, 12448, 13, 21618, 1513, 800, 3726, 3726, 51, 487, 18, 1707, 12312, 25, 235, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 118, 3631, 380, 118, 93, 263, 240, 21255, 118, 14, 503, 2478, 25, 7775, 6903, 728, 18, 1707, 12312, 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...
Response code 4** in Jmeter === I am trying to load a web application using JMeter. I used proxy and than run the test.In application i am able to login but for some pages it is giving response code 4** ( from JMeter ). After some homework i found the request we are sending through browser and Jmeter may be different, so to check that i am using fiddler . Is this correct way to root cause problem? What all things should compare in fiddler for both request ? Any help will be appreciated. If you want i can provide more information. Thanks a lot :)
0
[ 2, 1627, 1797, 268, 1409, 19, 487, 7307, 800, 3726, 3726, 31, 589, 749, 20, 6305, 21, 2741, 3010, 568, 487, 7307, 9, 31, 147, 27188, 17, 119, 485, 14, 1289, 9, 108, 3010, 31, 589, 777, 20, 6738, 108, 47, 26, 109, 4434, 32, 25,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...