text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
if(mReturnIntent) { returnIntentResults(file); } else { Intent htmlIntent = new Intent(); htmlIntent.setAction(android.content.Intent.ACTION_VIEW);
[ 0.17893187701702118, -0.2311246395111084, 0.9872576594352722, -0.35545873641967773, 0.3197952210903168, 0.32390838861465454, 0.7551783919334412, -0.48699918389320374, 0.08932439237833023, -0.5693182349205017, -0.26244568824768066, 0.8216552138328552, -0.27085164189338684, -0.14100734889507...
htmlIntent.setDataAndType(Uri.fromFile(file), "text/html"); try { startActivity(htmlIntent); } catch(ActivityNotFoundException e) {
[ 0.12111715972423553, -0.46644511818885803, 0.47680193185806274, -0.27987906336784363, -0.006977601442486048, -0.21144042909145355, 0.4846133589744568, -0.1702674925327301, -0.14993266761302948, -0.5780894160270691, -0.171489417552948, 0.35218971967697144, -0.5577662587165833, -0.3592233359...
Toast.makeText(this, "Sorry, couldn't find a HTML viewer", Toast.LENGTH_SHORT).show(); } }
[ 0.2115117907524109, 0.1542896330356598, 0.26414331793785095, -0.3815639615058899, -0.2406805455684662, -0.1934904009103775, 0.5167332291603088, 0.38357675075531006, -0.02971482090651989, -0.8575879335403442, -0.3692496716976166, 0.14868314564228058, -0.42867311835289, 0.4505094885826111, ...
} } /* text file*/ else if(item_ext.equalsIgnoreCase(".txt")) { if(file.exists()) { if(mReturnIntent) { returnIntentResults(file); }
[ 0.012790742330253124, -0.29068097472190857, 0.7562111020088196, -0.19085365533828735, 0.44181278347969055, 0.1907532662153244, 0.3717266023159027, -0.1927979439496994, -0.04789949208498001, -0.7272786498069763, -0.3496435582637787, 0.7157220840454102, -0.1998775750398636, 0.246528536081314...
else { Intent txtIntent = new Intent(); txtIntent.setAction(android.content.Intent.ACTION_VIEW); txtIntent.setDataAndType(Uri.fromFile(file), "text/plain"); try {
[ 0.4755839705467224, -0.2916826009750366, 0.8114701509475708, -0.4006595313549042, 0.33245620131492615, 0.3760319948196411, 0.6312963962554932, -0.4597730040550232, 0.0490754172205925, -0.4471413791179657, -0.2377476543188095, 1.004252314567566, -0.4690934717655182, -0.21448460221290588, ...
startActivity(txtIntent); } catch(ActivityNotFoundException e) { txtIntent.setType("text/*"); startActivity(txtIntent);
[ 0.21150130033493042, -0.4753330945968628, 0.2764992117881775, -0.4460504651069641, 0.24931615591049194, -0.2871999740600586, 0.35602259635925293, -0.10747864842414856, 0.021510791033506393, -0.3978842794895172, -0.33668625354766846, 0.8616527318954468, -0.6365217566490173, -0.3232596218585...
} } } } /* generic intent */ else { if(file.exists()) { if(mReturnIntent) {
[ 0.26960697770118713, -0.24582678079605103, 0.6998680233955383, -0.24183641374111176, 0.30120396614074707, -0.10431235283613205, 0.5843015909194946, -0.157941073179245, 0.11257301270961761, -0.28165268898010254, -0.32587358355522156, 0.6433566808700562, -0.2211122214794159, 0.22247846424579...
returnIntentResults(file); } else { Intent generic = new Intent(); generic.setAction(android.content.Intent.ACTION_VIEW); generic.setDataAndType(Uri.fromFile(file), "text/plain");
[ 0.32647454738616943, -0.21781158447265625, 0.8338612914085388, -0.41831865906715393, 0.06964314728975296, 0.2722375690937042, 0.5655940771102905, -0.5002204775810242, 0.11050504446029663, -0.5196689963340759, -0.3097470998764038, 0.7510174512863159, -0.4963797628879547, 0.16177330911159515...
try { startActivity(generic); } catch(ActivityNotFoundException e) { Toast.makeText(this, "Sorry, couldn't find anything " +
[ 0.2898566424846649, -0.331106573343277, 0.2933591306209564, -0.27638357877731323, 0.28336578607559204, -0.34764784574508667, 0.6837642788887024, -0.01675337925553322, 0.02059943974018097, -0.5878278613090515, -0.15423180162906647, 0.4104246497154236, -0.15831489861011505, -0.10786308348178...
"to open " + file.getName(), Toast.LENGTH_SHORT).show(); }
[ 0.29355499148368835, 0.17769858241081238, 0.4015553891658783, -0.6256407499313354, 0.08268465101718903, -0.23188069462776184, 0.6097331643104553, -0.050186123698949814, -0.026745429262518883, -0.4797850549221039, -0.7554665803909302, 0.5149771571159363, -0.23735550045967102, 0.466316312551...
} } } ``` resultCode must equal RESULT\_CANCELED because the only way out of that activity is pressing the back button on the phone this publishes a canceled result code not an ok result code
[ 0.02072886750102043, 0.2010267972946167, 0.6350402235984802, 0.027412910014390945, 0.1581801027059555, -0.24182246625423431, 0.39259016513824463, -0.08844725042581558, -0.018114035949110985, -0.4671920835971832, -0.2180054485797882, 0.5264377593994141, -0.2893717885017395, 0.15805928409099...
I have a cyclic graph I created using `dosync` and `ref-set`. When I pass this to `println` I get a `java.lang.StackOverflowError` as I would expect, because it's effectively trying to print an infinitely-nested structure. I found that if I do `(str my-ref)` it creates something that looks like `vertex@23f7d873` and ...
[ 0.0763714462518692, 0.30086666345596313, 0.34725743532180786, -0.34548088908195496, -0.32296979427337646, 0.05062771588563919, 0.19388754665851593, -0.20769907534122467, -0.6050209403038025, -0.7632321119308472, 0.0823318213224411, 0.2063317894935608, -0.31511929631233215, 0.21539948880672...
type of custom text (possibly involving `str`), and the other non-ref stuff normally. Currently I have a custom print function that prints each element of the struct on its own and completely skips printing the `ref`. (It turns out that looking at `vertex@23f7d873` is not actually very useful). This is awkward to use ...
[ 0.3808933198451996, 0.2598978281021118, 0.34790048003196716, 0.07305195927619934, -0.14393463730812073, -0.038255978375673294, 0.669492781162262, -0.21835581958293915, -0.5297896862030029, -0.5546520948410034, -0.07727815955877304, 0.37308791279792786, -0.32546886801719666, 0.1846460551023...
to print normally. So I'm wondering what path I should go down. I see these options: 1. Figure out `extend-type` and apply the `CharSequence` protocol to my `defstruct`ed structure so that when it comes across a `ref` it works properly. This still requires a field-by-field inspection of the struct and a special case ...
[ 0.19344276189804077, 0.1171647161245346, 0.47645866870880127, -0.1879081130027771, -0.038413338363170624, -0.18425559997558594, 0.4371209740638733, -0.4029155671596527, 0.007541301194578409, -0.6694791316986084, -0.13697369396686554, 0.950059175491333, -0.4727793037891388, -0.3751166462898...
a cyclic ref at the REPL even when it's not inside a struct. This is my preferred option. 3. Figure out how to do something with `toString` which I believe is called at some level when I do `println`. I'm most ignorant about this option. Pretty ignorant about the other ones too, but I've been reading `Joy of Clojure` a...
[ -0.07862312346696854, 0.13305313885211945, 0.7535165548324585, -0.24389684200286865, -0.4099559783935547, -0.216618150472641, 0.28346070647239685, -0.3179718852043152, -0.5035444498062134, -0.4852049648761749, -0.12105400860309601, 0.949809193611145, -0.06963445246219635, -0.27424883842468...
create a new namespace and define your own print functions that models the way clojure prints objects, and defaults to clojure's methods. In detail: Create an ns excluding pr-str and print-method. Create a multimethod print-method (copy exactly what is in clojure.core) Create a default method that simply delegates to...
[ 0.007744155824184418, -0.28525736927986145, 0.302752286195755, 0.45593398809432983, -0.32174786925315857, -0.2576506733894348, 0.1125202551484108, -0.27790024876594543, -0.2655574381351471, -0.7052501440048218, -0.041754916310310364, 0.44647616147994995, -0.5239235162734985, -0.22567753493...
to override the read-string behavior to ensure binding is called for `*data-readers*`. I've provided an example for java.io.File ``` (ns my.print (:refer-clojure :exclude [pr-str read-string print-method])) (defmulti print-method (fn [x writer] (class x))) (defmethod print-method :default [o ^java.io...
[ -0.052460163831710815, 0.15196584165096283, 0.418582946062088, -0.2439614087343216, 0.017848927527666092, -0.06577438861131668, 0.25048092007637024, -0.5071503520011902, -0.21587632596492767, -0.5326809287071228, -0.22143276035785675, 0.49363815784454346, -0.30638280510902405, 0.0867768600...
(print-method obj s) (str s))) (defonce reader-map (ref {'myprint/file (fn [arg] (java.io.File. arg))})) (defmacro defdata-reader [sym args & body] `(dosync (alter reader-map assoc '~sym (fn ~args ~@body)))) (defn read-string [s] (binding [*data-readers* @reader-map] (clojur...
[ 0.3707636296749115, -0.25070497393608093, 0.9130857586860657, -0.04698750749230385, 0.05378078296780586, -0.0985979363322258, 0.2665083408355713, -0.49513012170791626, -0.13285109400749207, -0.8551994562149048, -0.27576425671577454, 0.388649046421051, -0.3309131860733032, 0.040268052369356...
I have a GridView that has 3 columns: FirstName, LastName and a TemplateField FullName where I string together FirstName and LastName. Assuming calling DisplayFullName is the function I want to use to concatenate FirstName and LastName, **how do I pass the row argument to the function and how to declare the parameter ...
[ 0.025421829894185066, -0.17157049477100372, 0.5618122816085815, -0.40463176369667053, -0.1833604872226715, 0.33306747674942017, -0.09812489151954651, -0.14737474918365479, 0.19159063696861267, -0.9412745237350464, 0.25440526008605957, 0.6086462140083313, -0.03198443353176117, 0.10928540676...
<%# DisplayFullName(???) %> > </ItemTemplate> > </asp:TemplateField> > > ``` Here's my declaration for the function: > ``` > protected string DisplayFullName(???) > { ... } > > ``` The ??? are where I need help. OR do I need to pass the row at all? If each time DisplayFullName is called, the ...
[ -0.16528259217739105, -0.02674718201160431, 0.7113437056541443, -0.2686368525028229, -0.1381855309009552, 0.24789486825466156, 0.4723300039768219, -0.2758024334907532, 0.0023306054063141346, -0.634261965751648, -0.3510349690914154, 0.6596243381500244, -0.07107069343328476, 0.19662134349346...
20 values in the row I need and I want to do some calculations in the function called.** @RJIGO: You can use function like this: ``` <asp:TemplateField HeaderText="Name"> <ItemTemplate> <%# DisplayFullName(Eval("FirstName"), Eval("LastName"))%> </ItemTemplate> </asp:TemplateField> `...
[ -0.18820792436599731, 0.005840694531798363, 0.6044286489486694, -0.2855823338031769, -0.006874321959912777, 0.3277394771575928, -0.05850325897336006, -0.5543931126594543, -0.13289774954319, -0.6830516457557678, -0.04670574516057968, 0.5506003499031067, -0.11878471076488495, 0.0282320603728...
I am new to this iphone development.I have created a tab bar application which consist of 6 tabs this is the code for the tab bar controller creation in appdelegaate file didfinishlaunching ``` UIViewController *viewController1 = [[[cardsAvailable1 alloc] initWithNibName:@"cards...
[ 0.13168831169605255, -0.022243188694119453, 1.0907225608825684, 0.025523221120238304, -0.014370501041412354, 0.2422519028186798, 0.19322656095027924, -0.36579498648643494, -0.18685337901115417, -0.541498064994812, -0.03106425330042839, 0.47215962409973145, -0.3233283758163452, 0.1499724984...
initWithNibName:@"fetchcard1" bundle:nil] autorelease]; UIViewController *viewController3 = [[[registration alloc] initWithNibName:@"registration" bundle:nil] autorelease]; UIViewController *viewController4 = [[[logintab alloc]
[ -0.28370246291160583, -0.29507768154144287, 0.7246749997138977, 0.26853781938552856, -0.4797627627849579, 0.10380550473928452, 0.469590961933136, -0.32243871688842773, -0.021912554278969765, -0.793703019618988, -0.5374496579170227, 0.22854508459568024, -0.22025246918201447, 0.0782468467950...
initWithNibName:@"logintab" bundle:nil] autorelease]; UIViewController *viewController5 = [[[registration alloc] initWithNibName:@"logout" bundle:nil] autorelease]; UIViewController *viewController6 = [[[logintab alloc] initWithNibName:@"myp...
[ 0.050572969019412994, -0.031016530469059944, 0.6424810290336609, 0.1910562813282013, -0.06997308880090714, 0.0903552919626236, 0.48202306032180786, 0.06940644234418869, -0.10567259788513184, -1.0310161113739014, -0.5023424029350281, 0.09871990978717804, -0.18763171136379242, 0.152645900845...
bundle:nil] autorelease]; self.tabBarController = [[[UITabBarController alloc] init] autorelease]; self.tabBarController.viewControllers = [NSArray arrayWithObjects: [[[UINavigationController alloc] initWithRootViewController:viewController1] autorelease], ...
[ -0.29202666878700256, -0.45860204100608826, 0.5614096522331238, 0.3643791675567627, -0.21340838074684143, 0.2078922837972641, 0.3995133638381958, -0.3937908113002777, -0.39610719680786133, -0.8679300546646118, -0.47896867990493774, 0.4985123872756958, -0.30047479271888733, -0.0792133659124...
[[[UINavigationController alloc] initWithRootViewController:viewController3] autorelease], [[[UINavigationController alloc] initWithRootViewController:viewController4] autorelease],
[ -0.6128596067428589, 0.03498176857829094, 0.6335452795028687, 0.2964871823787689, -0.271923303604126, 0.19421041011810303, 0.36756354570388794, 0.004916713573038578, -0.21631310880184174, -1.0240983963012695, -0.5987773537635803, 0.3522672951221466, -0.15600524842739105, -0.086218193173408...
[[[UINavigationController alloc] initWithRootViewController:viewController5] autorelease], [[[UINavigationController alloc] initWithRootViewController:viewController6] autorelease],
[ -0.566795825958252, 0.005339150782674551, 0.6154292821884155, 0.30574870109558105, -0.2280949503183365, 0.20387202501296997, 0.3315584063529968, 0.023454496636986732, -0.2222307175397873, -1.0391451120376587, -0.5730635523796082, 0.35946670174598694, -0.117808498442173, -0.0687627717852592...
nil]; self.tabBarController.selectedIndex = 3; self.window.rootViewController = self.tabBarController; [self.window addSubview:self.tabBarController.view]; [self.window makeKeyAndVisible]; ``` now my problem is after a person is login ie onclick the login button present in the login page i would like to hide the t...
[ -0.0229434035718441, 0.2113707810640335, 0.5314266681671143, -0.07611128687858582, 0.09749022126197815, -0.02818046323955059, 0.4357436001300812, -0.261711448431015, -0.14863866567611694, -0.8155509233474731, 0.0036369862500578165, 0.8074708580970764, -0.3529653549194336, 0.408968120813369...
the array of view controllers for the tab bar. ``` NSMutableArray newArrayOfItems = [[NSMutableArray alloc] initWithArray:self.tabBarController items]]; [newArrayOfItems removeObjectAtIndex:indexOfUnneededItem]; [self.tabBarController setItems:newArrayOfItems animated:true]; [newArrayOfItems release]; ``` In your e...
[ -0.15413948893547058, -0.020169220864772797, 0.9057539701461792, 0.05397482588887215, -0.23101891577243805, 0.3880307674407959, 0.24054032564163208, -0.34394991397857666, -0.26117411255836487, -0.7281674742698669, -0.4509436786174774, 0.7897337079048157, -0.5746420621871948, -0.07942207902...
I have an object traveling along a 3D vector in terms of X, Y, Z... I need to rotate the object according to each axis (x-axis, y-axis, and z-axis). How do I get these measurements in terms of degrees? (I am using OpenGL and only know of `glRotatef(...)`) [glRotatef(...) documentation [here]](http://www.opengl.org/sd...
[ 0.04236570745706558, 0.08462626487016678, 0.8494806289672852, 0.057795170694589615, -0.24724934995174408, 0.08910591155290604, 0.008789796382188797, -0.321275919675827, -0.3235759139060974, -0.4298609495162964, 0.15467175841331482, 0.546862006187439, -0.11644161492586136, 0.170473679900169...
angle between x/y plane but how do I find Y? or do I need to? The real question is, How do I represent this in terms of `glRotatef(...)`? Theta is the angle above the XY plane. Phi is the angle around the Z axis. In general, polar coordinates in n dimensions have n-1 angle components and 1 radius component.
[ -0.08714551478624344, -0.22740468382835388, 0.9209414720535278, 0.08909754455089569, -0.36746200919151306, 0.00007422119233524427, -0.21512873470783234, -0.25279438495635986, 0.0658940002322197, -0.5110345482826233, 0.1896226555109024, 0.4742771089076996, -0.1343478411436081, 0.42896646261...
I would like to iterate through an object's validators. Validators must be declared in a declarations tag. How does one scroll through declarations? If one cannot, is there a better of locating all validators other than scrolling through all properties of an object? Just put the Validators in a collection (an Array for...
[ 0.33887505531311035, -0.0991532951593399, 0.2596201002597809, -0.02163728140294552, 0.10910037159919739, 0.12082888931035995, 0.020374616608023643, -0.3522844612598419, 0.054167505353689194, -0.8058310747146606, -0.01021755300462246, 0.3584069013595581, -0.15278010070323944, 0.076999478042...
source="{emailInput}" property="text" required="true" /> <mx:DateValidator source="{dateInput}" property="text" required="false" /> </fx:Array> </fx:Declarations> ``` You can then simply use 'validateAll()': ``` Validator.validateAll(validators); ``` or loop over the Validators: ``` for each (var vali...
[ 0.13638246059417725, 0.03038707748055458, 0.5219384431838989, -0.22092363238334656, 0.1209777295589447, 0.23836037516593933, 0.12696629762649536, -0.3139741122722626, -0.04526734724640846, -0.348240464925766, -0.28991204500198364, 0.30542677640914917, -0.2757646143436432, -0.07691238075494...
I have an images array in which there are number of images. Not fixed, may be one or two or 8. When i have fixed number of images then i was using the code something like this ``` var details = { image1: { position: 0, title: $slideDiv.children().eq(0).attr("alt") }, image2: { posi...
[ 0.14323464035987854, -0.09743813425302505, 0.7430151104927063, 0.27734482288360596, -0.1105821430683136, 0.3984660804271698, -0.21188881993293762, -0.24516157805919647, -0.28729087114334106, -0.764995813369751, 0.18221403658390045, 0.42077746987342834, -0.19156982004642487, 0.1757111847400...
position: -800, title: $slideDiv.children().eq(2).attr("alt") }, image4: { position: -1200, title: $slideDiv.children().eq(3).attr("alt") }, image5: { position: -1600, title: $slideDiv.children().eq(4).attr("alt") } }; //end of var details ``` But now i hav...
[ -0.27731287479400635, -0.13749684393405914, 0.9387691617012024, 0.4651505947113037, -0.0685323029756546, 0.4933820962905884, -0.3402601480484009, -0.27341797947883606, -0.4152958393096924, -0.7382197380065918, -0.0455586276948452, 0.4953887462615967, -0.0853128582239151, 0.2148011177778244...
in the array. I tried something like this ``` var details = {}; var position = 0; images.each(function(index){ details.("image" + index) : { position: position, title: $slideDiv.children().eq(index).attr("alt") } position += -400; }) ; //end of .each() ``` The logic that i am trying to ...
[ 0.21754921972751617, -0.143925279378891, 0.6148582100868225, 0.09971536695957184, -0.15701158344745636, 0.23119120299816132, -0.22038254141807556, -0.2561667561531067, -0.3714756667613983, -0.9498311877250671, 0.040271006524562836, 0.5501035451889038, -0.3943117558956146, 0.212089985609054...
title: $slideDiv.children().eq(1).attr("alt") }, image2: { position: -400, title: $slideDiv.children().eq(2).attr("alt") } } ``` but this is not working. Of course my syntax is wrong ``` details.("image" + index) : {..} ``` How can i do this? Thanks The correct syntax is: `details['im...
[ -0.07061402499675751, 0.029325200244784355, 0.8256822228431702, 0.394069105386734, -0.05202778801321983, 0.09227576106786728, -0.14526833593845367, -0.1454043984413147, -0.12505753338336945, -0.7929240465164185, -0.027694465592503548, 0.5485236644744873, -0.13033819198608398, 0.24901628494...
Is there any way to change or convert a strings/int that are separated with commas? Example : $str = "121,232,343,454"; should result into : str1, str1, str1, str1 The correct syntax is: `details['image' + index]` which can later be accessed through `details.image0`, `details.image1` etc. So it should be: `detail...
[ 0.07406282424926758, -0.30877187848091125, 0.4327475130558014, 0.13988247513771057, -0.04818429425358772, 0.3662938177585602, -0.12045314162969589, -0.2126299887895584, -0.07922030240297318, -0.5741593837738037, -0.35808342695236206, 0.41631343960762024, -0.23091252148151398, -0.2273627966...
I am trying to use twitter4j for my app to connect and post to twitter. I am following [this tutorial](http://blog.doityourselfandroid.com/2011/02/13/guide-to-integrating-twitter-android-application/). I have downloaded the example project from [here](https://github.com/ddewaele/AndroidTwitterSample) and try to run it ...
[ -0.08708754926919937, 0.26252198219299316, 0.4382578134536743, -0.12462819367647171, 0.0201417189091444, 0.3904300928115845, 0.6961736679077148, -0.3131350874900818, -0.28764045238494873, -0.634031355381012, 0.04000958055257797, 0.43728524446487427, -0.5239645838737488, -0.0480943880975246...
in Lcom/ecs/android/sample/twitter/TwitterUtils;.isAuthenticated (Landroid/content/SharedPreferences;)Z >E/dalvikvm(374): Could not find class 'twitter4j.http.AccessToken', referenced from method com.ecs.android.sample.twitter.TwitterUtils.sendTweet >W/dalvikvm(374): VFY: unable to resolve new-instance 67 (Ltwitter4j...
[ -0.48887813091278076, 0.2806340157985687, 0.8633081316947937, -0.03264082223176956, 0.19621476531028748, 0.2922307550907135, 0.773546040058136, -0.6182594299316406, -0.3353184163570404, -0.5118381381034851, -0.4694725573062897, 0.5429629683494568, -0.4461921751499176, 0.4247501492500305, ...
at android.app.ActivityThread.access$1500(ActivityThread.java:117) >E/AndroidRuntime(374): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) >E/AndroidRuntime(374): at android.os.Handler.dispatchMessage(Handler.java:99) >E/AndroidRuntime(374): at android.os.Looper.loop(Looper.java:13...
[ -0.3669933080673218, 0.14986905455589294, 0.7687965631484985, -0.21571171283721924, 0.0605049803853035, 0.39991819858551025, 0.5501387119293213, -0.3736359179019928, -0.35416853427886963, -0.5467868447303772, -0.5323221683502197, 0.6737661957740784, -0.32085901498794556, 0.0999061465263366...
OAUTH_CALLBACK_HOST = "callback"; public static final String OAUTH_CALLBACK_URL = OAUTH_CALLBACK_SCHEME + "://" + OAUTH_CALLBACK_HOST; ``` I have tried changing `"callback"` with `"http://www.MyWebsite.com"` Please advice how can I correct these problems. You need to change your Folder name from `lib` to `libs` as y...
[ -0.014051895588636398, 0.25820162892341614, 0.49627450108528137, -0.30048835277557373, -0.04141736775636673, 0.08365064114332199, 0.3151538670063019, 0.2523519992828369, -0.2378137856721878, -0.9491862654685974, -0.45072516798973083, 0.5181573033332825, -0.4226159453392029, 0.0721646919846...
I am having some trouble creating a seamless photo grid. I have searched the internet for quite a while, and I can't find any solutions. I have a grid of images that are all square and all the same size. I have eliminated gaps that occur on every row by adding `img { vertical-align: middle; }` Now I need to eliminat...
[ 0.3897556662559509, 0.19407442212104797, 0.13880980014801025, -0.22258757054805756, 0.06859780848026276, 0.1950889676809311, 0.1361013799905777, 0.0048857214860618114, -0.22162926197052002, -0.9472850561141968, 0.13401134312152863, 0.14798463881015778, -0.2920093834400177, 0.16272296011447...
of the images. I have tried `margin:0` and `padding:0` on just about everything I can think of. I have the grid set up using `display:inline-block`. I need to keep this. I don't want to use floats. My HTML is pretty simple: ``` <ul><li><a href="#"><img src="0.jpg" /></a></li></ul> ``` Thank so much for the quickest...
[ 0.3100917637348175, 0.2579694092273712, 0.828943133354187, 0.10467606782913208, -0.42802026867866516, 0.08687809854745865, 0.07031457126140594, -0.15981309115886688, -0.16732263565063477, -0.7997553944587708, 0.14648453891277313, 0.5157469511032104, -0.21875903010368347, 0.1369799375534057...
So, about two or three hours ago, I was successful working on and able to deploy my app engine app from Eclipse to App Engine. Up until about an hour ago, however, I have been unable to do so. In Eclipse, when I attempted and failed the first time to deploy the app, the progress froze at 20-something% ("Precompiling......
[ 0.10694899410009384, 0.05117126926779747, 0.6296560764312744, -0.08529385924339294, -0.11412031948566437, 0.17880161106586456, 0.44430631399154663, -0.2641192078590393, -0.2370361089706421, -0.7038463354110718, -0.12548822164535522, 0.6772515773773193, -0.49903324246406555, 0.1185616627335...
500 server error from app engine. I tried with another app engine project I have deployed successfully today and it failed the same way. To see what was going wrong, I attempted to login to the admin panel on appengine.google.com, but when I clicked one of my apps in "My Applications" it took about 1 minute to load an...
[ -0.055356401950120926, 0.35981565713882446, 0.20359712839126587, 0.08500456064939499, 0.08479946851730347, 0.3284139931201935, 0.6162553429603577, 0.107930988073349, -0.1710520088672638, -0.7065852284431458, 0.48495835065841675, 0.5284238457679749, -0.2550809383392334, 0.22241735458374023,...
link to report). The third time I tried, I got an error page titled "Try Again (503) - *My App*". **Info:** * I am using a Google Apps account. * The projects are new (created today) * The projects were deployable earlier * The only changes made to the project that gave the first error were added HTML/CSS files * No ...
[ 0.43102994561195374, 0.150082066655159, 0.29315251111984253, 0.1542895883321762, -0.10044531524181366, 0.08257666230201721, 0.6639788150787354, 0.09353572130203247, -0.5779951810836792, -0.6522982716560364, 0.13431119918823242, 0.2836799621582031, -0.25756528973579407, 0.0757506787776947, ...
it working and not working **Edit:** Something that first came to mind was an outage of some sort but there appears to be no scheduled maintenance and no reported outages. **Edit2:** It appears that I am now able to access the Dashboard for my applications but deployment is now failing the same way (500 Server Error)...
[ 0.4498164653778076, 0.03356776013970375, 0.490835964679718, -0.009057632647454739, 0.2510245144367218, 0.03939597308635712, 0.6698142290115356, 0.08345065265893936, -0.33042797446250916, -0.44645851850509644, 0.2637110948562622, 0.5951780080795288, -0.17620359361171722, -0.2139338999986648...
This part of an app that I am working on, I have the following equation in objective C. All variables are floats. r is a sine of an angle and I would like to convert r to radians when diplayed in the text field. ``` r = ns/ni r = sinf(r); rr = asinf(r); textfieldRi.text = [NSString stringwithFormat:@"%.02f", rr]; ``...
[ -0.06262446939945221, 0.11702624708414078, 0.5351299047470093, -0.40042397379875183, -0.21176685392856598, 0.04604628309607506, 0.41557449102401733, -0.6546698212623596, 0.09639360010623932, -0.39654695987701416, -0.027190765365958214, 0.7824317216873169, -0.1329093724489212, -0.0727239251...
is already in radians. If you want to convert `r` to radians, I have to assume it's currently in degrees, in which case you just need to do something like: ``` radians = degrees * 3.141592653589 / 180.0; // or M_PI in math.h. ```
[ 0.11710301786661148, 0.1856052428483963, 0.7616726756095886, -0.39379963278770447, 0.261027067899704, 0.18678759038448334, 0.17085692286491394, -0.34442299604415894, -0.33682695031166077, -0.3201506435871124, -0.023948106914758682, 0.3684944808483124, 0.13128820061683655, 0.387362927198410...
This is my radio button code. ``` <s:radio name="filter" requiredposition="right" list="#{'STATUS_FILTER_START':'START','STATUS_FILTER_END':'STOP'}" value = "STATUS_FILTER_START"></s:radio> ``` or ``` <s:radio name="filter" requiredposition="right" list="#{'STATUS_FILTER_START':'START','STATUS_FILTER_END':'STOP'}...
[ -0.06492489576339722, -0.19619402289390564, 0.6637650728225708, -0.2796609699726105, 0.07863333821296692, -0.38904136419296265, 0.4958285093307495, -0.6718327403068542, -0.15399862825870514, -0.7481281757354736, -0.11868733167648315, 0.8143479824066162, -0.5931394100189209, -0.129550352692...
return "STOP"; } ``` in your jsp use like ``` <s:radio label="filter" name="filter" list="filter" value="defaultGenderValue" /> ``` i have used simple ArrayList but you are free to use Map.
[ -0.04083890840411186, -0.4224347174167633, 0.3169545531272888, -0.3096679747104645, -0.21007037162780762, -0.6503550410270691, 0.33671441674232483, -0.25367453694343567, -0.09754043072462082, -0.9671603441238403, -0.2435837686061859, 0.8144676685333252, -0.5026367902755737, -0.092323713004...
I want to know how much data can be embedded into an image of different sizes. For example in 30kb image file how much data can be stored without distortion of the image. Set default value in your action class and use that in the OGNL to tell which value to select as default ``` List<String> filter= new ArrayList<Stri...
[ 0.5236281156539917, -0.45377883315086365, 0.5466637015342712, -0.146098330616951, 0.11561176925897598, 0.021483689546585083, 0.2474898099899292, -0.4960228204727173, 0.026549380272626877, -0.8569921851158142, -0.0654410868883133, 0.5120335221290588, -0.3680693805217743, -0.1138411164283752...
return "STOP"; } ``` in your jsp use like ``` <s:radio label="filter" name="filter" list="filter" value="defaultGenderValue" /> ``` i have used simple ArrayList but you are free to use Map.
[ -0.04083890840411186, -0.4224347174167633, 0.3169545531272888, -0.3096679747104645, -0.21007037162780762, -0.6503550410270691, 0.33671441674232483, -0.25367453694343567, -0.09754043072462082, -0.9671603441238403, -0.2435837686061859, 0.8144676685333252, -0.5026367902755737, -0.092323713004...
I am trying to figure out the issue, and tried different styles that I have read on Scala, but none of them work. My code is: ``` .... val str = "(and x y)"; def stringParse ( exp: String, pos: Int, expreshHolder: ArrayBuffer[String], follow: Int ) var b = pos; //position of where in the expression String I a...
[ 0.023520590737462044, 0.05737365037202835, 0.46948590874671936, -0.30618909001350403, 0.2508023679256439, 0.12486293166875839, 0.35200661420822144, -0.31054627895355225, -0.08700381219387054, -0.40933138132095337, -0.17354720830917358, 0.5499184727668762, -0.28909656405448914, 0.0267121195...
if(exp(b) == '(') { b = b + 1; while(exp(b) == ' '){b = b + 1} //point of this is to just skip any spaces between paren and start of expression type if(exp(b) == 'a') { temp(arrayCounter) = exp(b).toString; b = b+1;
[ -0.11947913467884064, -0.1919974833726883, 0.1731971800327301, -0.34371352195739746, 0.2774783670902252, 0.05954736843705177, 0.4738612174987793, -0.3519373834133148, 0.03787791728973389, -0.0701538696885109, -0.3578515946865082, 0.49796444177627563, -0.5635185837745667, -0.165990769863128...
temp(arrayCounter)+exp(b).toString; b = b+1; temp(arrayCounter) + exp(b).toString; arrayCounter+=1} temp; } } val hold: ArrayBuffer[String] = stringParse(str, 0, new ArrayBuffer[String], 0); for(test <- hold) println(test); ``` My error is: ``` Driver.scala:35: error: type ...
[ 0.02082400768995285, -0.10247784852981567, 0.38510411977767944, -0.4614425003528595, 0.11867616325616837, 0.44610777497291565, 0.529161274433136, -0.679362952709198, -0.18670035898685455, -0.22274821996688843, -0.16237607598304749, 0.6899691820144653, -0.45607075095176697, 0.01312765572220...
error found ``` When I add an equals sign after the arguments in the method declaration, like so: ``` def stringParse ( exp: String, pos: Int, expreshHolder: ArrayBuffer[String], follow: Int ) ={....} ``` It changes it to "Any". I am confused on how this works. Any ideas? Much appreciated. You have to add the equ...
[ -0.3589553236961365, 0.012568329460918903, 0.388313353061676, -0.11821471154689789, -0.046067431569099426, -0.047161709517240524, 0.5202832818031311, 0.18148759007453918, 0.08845670521259308, -0.3207780122756958, 0.002150321379303932, 0.7397558689117432, -0.44438546895980835, -0.0244863014...
other is when if's condition isn't (and the return value will be b=b+1, or b after it's incremented).
[ -0.3388429284095764, -0.36264270544052124, -0.00808027945458889, -0.24835041165351868, -0.10399902611970901, -0.14508779346942902, 0.059948135167360306, -0.15087324380874634, -0.01659367047250271, -0.2994501292705536, -0.44784751534461975, 0.3593084514141083, -0.19992470741271973, 0.018916...
I have an application with most of the code written in javascript. I am encountering a strange problem. I have a query string and my app reads it to perform various actions. Yesterday I changed the ordering of the query string parameters and the application stopped working. If I put the original order back then it star...
[ 0.26685598492622375, 0.16492946445941925, 0.04681777581572533, -0.0025958456099033356, -0.09784604609012604, 0.0873454287648201, 0.3736942410469055, 0.08608056604862213, -0.35126399993896484, -0.6355680823326111, 0.20525352656841278, 0.38834312558174133, -0.51837557554245, 0.37564793229103...
any one here has encountered a similar problem? Thanks. A properly written application will find a given query parameter in any order and will not be order sensitive. It is possible though to have poorly written parsing code that would only find a given parameter at the beginning, at the end, or only if after some oth...
[ -0.15290409326553345, 0.12676462531089783, 0.032094936817884445, 0.3516840934753418, -0.14193174242973328, -0.1388036459684372, 0.3150421977043152, 0.11332600563764572, -0.4605695903301239, -0.645616888999939, -0.001022728974930942, 0.7174882888793945, -0.24932019412517548, -0.042452141642...
and the one that doesn't, we could advise more specifically. You should also check to make sure that your query parameters don't have any characters in them that are supposed to be encoded that could be throwing things off.
[ 0.4054390788078308, 0.02727169170975685, -0.281360000371933, 0.5921676158905029, 0.11468876153230667, -0.197966530919075, 0.02824329398572445, 0.3729660212993622, -0.07053785026073456, -0.5897346138954163, 0.014952083118259907, 0.20598264038562775, -0.000573837838601321, -0.041812457144260...
I am having problem getting this piece of code to run. The class is Student which has a IdCounter, and it is where the problem seems to be. (at line 8) ``` class Student: idCounter = 0 def __init__(self): self.gpa = 0 self.record = {} # Each time I create a new student, the idCounter in...
[ 0.02478354424238205, 0.14580389857292175, 0.10795930027961731, -0.07969292253255844, 0.22645792365074158, 0.0007404625648632646, 0.33872464299201965, 0.06443493813276291, -0.07618969678878784, -0.6675344705581665, -0.03657983988523483, 0.4465652108192444, -0.12697851657867432, 0.3012857139...
'Student {0}'.format(Student.idCounter) classRoster = [] # List of students for number in range(25): newStudent = Student() classRoster.append(newStudent) print(newStudent.name) ``` I am trying to have this idCounter inside my `Student` class, so I can have it as part of the student's name (which is real...
[ 0.08696029335260391, 0.055247340351343155, 0.4863349497318268, 0.048573847860097885, 0.18180495500564575, 0.07142254710197449, 0.1228044256567955, -0.08133251965045929, 0.0024549595545977354, -0.5569583177566528, -0.26582372188568115, 0.06488795578479767, 0.1709110140800476, 0.286002665758...
put the idCounter += 1 in before, after, all combination, but I am still getting the `referenced before assignment` error, can you explain to me what I am doing wrong? The class variable has to be accessed via the **class name**, in this example `Studend.idCounter`: ``` class Student: # A student ID counter id...
[ 0.14988774061203003, 0.16232949495315552, 0.11849211901426315, 0.07056842744350433, 0.14870642125606537, 0.02311566472053528, 0.18858027458190918, -0.3108558654785156, -0.04994147643446922, -0.4570840895175934, 0.04784325137734413, 0.4750657379627228, -0.04416460543870926, 0.39675852656364...
idCounter increment Student.idCounter += 1 self.name = 'Student {0}'.format(Student.idCounter) classRoster = [] # List of students for number in range(25): newStudent = Student() classRoster.append(newStudent) print(newStudent.name) ``` Thanks to the point out by Ignacio, Vazquez-Abrams, ...
[ -0.016469841822981834, 0.09376102685928345, 0.49044328927993774, 0.1405508667230606, -0.03337128087878227, -0.03753108158707619, 0.043725255876779556, -0.07118377834558487, -0.016839873045682907, -0.48186740279197693, -0.07920535653829575, 0.1562495231628418, 0.302711546421051, 0.142245411...
As far as I know a string in C# is a reference type. So in the following code 'a' should be equal to "Hi", but it still keeps its value which is "Hello". Why? ``` string a = "Hello"; string b = a; b = "Hi"; ``` A number of the answers point out that strings are immutable; though that is true, it is completely irrele...
[ 0.08224182575941086, 0.5438265204429626, 0.5552927255630493, -0.08117872476577759, -0.36243870854377747, -0.10415393859148026, 0.09007734060287476, -0.3010590076446533, -0.12677302956581116, -0.47322145104408264, 0.06647011637687683, 0.4369991719722748, -0.4431232213973999, 0.5731769204139...
say that "b = a", which means *attach another piece of string to the same thing that `a` is attached to*: ``` a----------------------Hello / b--------------------- ``` Then you say "now attach b to Hi" ``` a----------------------Hello b----------------------Hi ``` You are thinking either th...
[ 0.12159554660320282, 0.7360604405403137, 0.28685539960861206, -0.19326375424861908, -0.08461368829011917, 0.033996954560279846, 0.08390599489212036, -0.33294135332107544, -0.08354406803846359, -0.3143792450428009, -0.4508751928806305, 0.5468295812606812, -0.4952472150325775, 0.345878154039...
-------------- a ----------------------Hello ``` Then I change `b`, which indirectly changes `a`: ``` b -------------- a ----------------------Hi ``` That is, you are expecting to make a reference to a *variable*, instead of a *value*. You *can* do that in C#, like this: ``` void M(ref int x) { x = 1; } ... i...
[ -0.0438055545091629, 0.2009764164686203, 0.3594575524330139, -0.4726918041706085, -0.010448127053678036, -0.03084176406264305, 0.1921955645084381, -0.24359333515167236, -0.02273627556860447, -0.5829378962516785, -0.4598560333251953, 0.6733271479606628, -0.47898128628730774, 0.3470617532730...
I am developing an Android application which requires the use of **AsyncTask** for Network connection. I called it from the main thread. So the **doInBackground** method runs and then returns to the **onPostExecute** method. After the onPostExecute method is executed, I want to return a value back to the activity from ...
[ 0.22141015529632568, 0.1538366973400116, 0.6225227117538452, 0.171002596616745, -0.07764775305986404, 0.11263412237167358, 0.29347389936447144, 0.22163845598697662, 0.09547403454780579, -1.028209924697876, -0.10027794539928436, 0.3659348487854004, -0.2942032516002655, 0.11347252130508423, ...
method will be called at some point in the future, when doInBackground finished. We don't care when onPostExecute method will be called (actually there is no way to tell at project build time), the only thing we care is onPostExecute method is guaranteed to be called properly by underlying framework at some point in th...
[ 0.3173806071281433, -0.0850648581981659, 0.6927044987678528, 0.31683021783828735, -0.08078915625810623, -0.15180043876171112, 0.37653523683547974, -0.12739530205726624, 0.05146957188844681, -0.5559863448143005, 0.11750199645757675, 0.46013277769088745, -0.2129800170660019, 0.08983877301216...
returned from onPostExecute method. How do I solve this? Of cause, you can create some instance variables (or use listerner pattern) in the Activity class store the result when returned and ready in onPostExecute method. The problem is you never know when this result is ready outside onPostExecute method at project bu...
[ -0.04155166819691658, -0.14452368021011353, 0.8713708519935608, 0.10207927227020264, -0.21723079681396484, 0.14376795291900635, 0.4170888066291809, -0.29853665828704834, -0.0811709612607956, -0.6532903909683228, -0.20463520288467407, 0.40871575474739075, -0.05872790515422821, -0.1453616619...
practice is change your design and move the operation code which requires the result returned from AsyncTask into onPostExecute method. hope this helps.
[ 0.6087283492088318, 0.02165880613029003, 0.07673075050115585, 0.12913544476032257, 0.08046931773424149, 0.02347993291914463, 0.36871740221977234, -0.18325389921665192, 0.1276622861623764, -0.8179165124893188, 0.0017703003250062466, 0.3947373926639557, -0.16829489171504974, -0.2034721821546...
I have a form in a Code Igniter view in my jQuery Mobile application. ``` <form action="<?= BASE_PAGE_URL ?>settings" method="post" id="settingsForm"> <div data-role="fieldcontain"> <label for="firstName">First Name</label> <input type="text" name="firstName" id="firstName" value="" placeholder="Fi...
[ -0.05246991291642189, -0.06059429794549942, 0.7176970839500427, -0.2277694195508957, -0.13579517602920532, 0.05196303874254227, -0.058861929923295975, -0.4687653183937073, 0.21548984944820404, -0.9127866625785828, -0.16560575366020203, 0.4539050757884979, 0.08832985162734985, 0.05070141330...
name="submit" value="Register" /> </form> ``` However, when I write this code into the controller method that the URL specified by action leads to: ``` echo ($_SERVER['REQUEST_METHOD'] == 'POST') ? "yay" : "nay"; ``` "nay" is written to the page when I hit the submit button. How come Code Igniter cannot tell that ...
[ 0.11178846657276154, -0.02345883473753929, 0.47548314929008484, -0.06982659548521042, -0.35984933376312256, 0.05823655053973198, 0.20655104517936707, -0.6376473307609558, -0.0880117192864418, -0.5254785418510437, -0.09898886829614639, 0.22037720680236816, -0.4783909320831299, 0.38511142134...
In C# how can i find the week of the current date, i am trying to get the week number of the current date, can you help me, thank you. See [Calendar.GetWeekOfYear](http://msdn.microsoft.com/en-us/library/system.globalization.calendar.getweekofyear.aspx) ``` using System; using System.Globalization; public class Examp...
[ 0.13903146982192993, -0.1973651796579361, 0.6635475754737854, 0.07287552952766418, 0.26665836572647095, 0.06401214003562927, -0.21791477501392365, 0.2566009759902954, -0.3268948197364807, -0.45551347732543945, -0.07006428390741348, 0.26824554800987244, -0.35748961567878723, 0.4998302161693...
cal.GetWeekOfYear(date1, dfi.CalendarWeekRule, dfi.FirstDayOfWeek), cal.ToString().Substring(cal.ToString().LastIndexOf(".") + 1)); } } // The example displays the following output: //
[ 0.014050137251615524, -0.33720189332962036, 0.5859993100166321, -0.5811983942985535, 0.20355495810508728, 0.27576178312301636, 0.1359483003616333, 0.010344392620027065, -0.09469480067491531, -0.4507145285606384, -0.17175321280956268, 0.8267029523849487, -0.19323217868804932, 0.115390919148...
1/1/2011: Week 1 (GregorianCalendar) ```
[ 0.06856177747249603, 0.1775633543729782, 0.6787616014480591, -0.3561825752258301, -0.3473890721797943, 0.06719586998224258, 0.6070132255554199, 0.2847769558429718, 0.0030367416329681873, -0.2887563407421112, -0.07329177111387253, 0.410299688577652, 0.1880844086408615, 0.19465748965740204, ...
I am running the following code on ubuntu 11.10, python 2.7.2+. ``` import urllib import Image import StringIO source = '/home/cah/Downloads/evil2.gfx' dataFile = open(source, 'rb').read() slicedFile1 = StringIO.StringIO(dataFile[::5]) slicedFile2 = StringIO.StringIO(dataFile[1::5]) slicedFile3 = StringIO.StringIO(da...
[ 0.1745077669620514, 0.14993271231651306, 0.4882637560367584, -0.3950192630290985, -0.013851211406290531, 0.07161261886358261, 0.4149404466152191, -0.5417649745941162, -0.04334849491715431, -0.9543088674545288, -0.3236713111400604, 0.42872995138168335, -0.44231441617012024, -0.0526422932744...
it had: ``` def i32(c): return ord(c[3]) + (ord(c[2])<<8) + (ord(c[1])<<16) + (ord(c[0])<<24) (line 44) "Fetch a new chunk. Returns header information." if self.queue: cid, pos, len = self.queue[-1] del self.queue[-1] self.fp.seek(pos) else: s = self.fp.read(8) ci...
[ -0.03303441405296326, -0.3983026146888733, 0.3554195165634155, -0.12261568754911423, -0.2656078636646271, 0.1750705987215042, 0.07304205745458603, -0.25305280089378357, -0.3004951477050781, -0.29358696937561035, 0.04122467711567879, 0.6346825957298279, -0.27238351106643677, 0.1225336790084...
(lines 88-96) ``` i would try tinkering, but I'm afraid I'll screw up png and PIL, which have been erksome to get working. thanks It would appear that `len(s) < 4` at this stage ``` len = i32(s) ``` Which means that ``` s = self.fp.read(8) ``` isn't reading the whole 4 bytes probably the data in the fp you ...
[ 0.2647619843482971, 0.09059011936187744, 0.3889887034893036, -0.03308064118027687, -0.30454254150390625, 0.28460779786109924, 0.3325604498386383, 0.06886527687311172, -0.45475518703460693, -0.7215362191200256, -0.27845650911331177, 0.6623461842536926, -0.16606922447681427, -0.1246193423867...
I have defined XML for gradient. ``` <shape xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:startColor="#9acd32" android:endColor="#ffffff" android:angle="180" /> ``` i want to use gradient in following code. ``` XYRegionFormatter regionFormatter3 = new XYRegionFormat...
[ -0.29102304577827454, -0.20419836044311523, 0.7827433347702026, -0.2571541368961334, -0.524616003036499, 0.47855284810066223, 0.09488160163164139, -0.5143955945968628, 0.1394251435995102, -0.8682664036750793, 0.24904347956180573, 0.50164794921875, -0.2663790285587311, -0.25258052349090576,...
can anybody tell me the difference of using '===' as ``` if (null === $this->getName()) ``` and ``` if ($this->getName() === null ) ``` if $this->getName is already defined. thanks in advance There is no difference between the two conditionals, however, it is a common practice to place the value you are checking...
[ 0.20665238797664642, -0.01671982929110527, -0.07012253254652023, 0.017851533368229866, -0.13637781143188477, -0.24184322357177734, 0.4047195315361023, -0.039005097001791, -0.08875783532857895, -0.3237898051738739, 0.11038342863321304, 0.7130468487739563, 0.09447038173675537, -0.22102320194...
I am using a ViewPager with 4 pages, and I'm looking for an efficient way to replace/switch between fragments in each page. This is the interaction pattern that I'm trying to create: 1. User presses a button on a page that currently holds fragment A 2. Fragment A is swapped out for some new fragment B 3. The user do...
[ 0.28704723715782166, -0.03572439029812813, 0.2889520227909088, 0.19555212557315826, -0.07353995740413666, 0.04823767766356468, 0.13032512366771698, -0.20078691840171814, -0.31132909655570984, -0.7689530253410339, -0.11790716648101807, 0.056843142956495285, -0.35590648651123047, 0.230303764...
removing the original fragment, and then overriding `getItemPosition` (essentially the method described in this [related question](https://stackoverflow.com/a/9127423/812868)): ``` //An array to keep track of the currently visible fragment in each page private final Fragment[] activeFragments= new Fragment[4]; public...
[ -0.10375697165727615, 0.02629220299422741, 0.3406113088130951, -0.22505289316177368, 0.12801526486873627, 0.10935458540916443, 0.3558253347873688, -0.48624691367149353, -0.42691877484321594, -0.6780885457992554, -0.6741634607315063, 0.28340157866477966, -0.28174135088920593, 0.547683060169...
getItemPosition(Object object) { //If the main fragment is not active, return POSITION_NONE if(object instanceof FragmentA) { FragmentA a = (FragmentA) object; if(pageStates[a.getPosition()] != PageState.STATE_A) { return POSITION_NONE; } } //If the secondary fragme...
[ 0.009847845882177353, -0.17941536009311676, 0.3883333206176758, -0.1511489599943161, -0.1975226253271103, 0.17092439532279968, 0.5795278549194336, -0.36821016669273376, -0.39801764488220215, -0.5650195479393005, -0.7624253630638123, 0.28026360273361206, -0.6804036498069763, -0.222697287797...
object; if(pageStates[b.getPosition()] != PageState.STATE_B) { return POSITION_NONE; } } return POSITION_UNCHANGED; } ``` This method works, but has undesirable side effects. Removing the fragment and setting it's position to POSITION\_NONE causes the fragment to be destroyed. So ...
[ -0.1694502830505371, 0.17891345918178558, 0.185495063662529, -0.07327606528997421, 0.052007295191287994, -0.11619435995817184, 0.4577936828136444, -0.2681000828742981, -0.20089761912822723, -0.7151685357093811, -0.4338289499282837, 0.33784720301628113, -0.26410767436027527, 0.5348373055458...
large database backed lists, so I want to avoid recreating them if possible. Essentially I just want to keep references to my 4 main fragments and swap them in and out of pages without having to recreate them every time. Any ideas? check your some expression. NSString -> NSString \* ``` #import <Cocoa/Cocoa.h> @inter...
[ -0.017593981698155403, 0.11358180642127991, 0.38823503255844116, 0.013693412765860558, -0.10699643939733505, -0.03370818868279457, 0.2200748324394226, -0.33275365829467773, -0.46765875816345215, -0.6716154217720032, -0.2878718972206116, 0.512563169002533, -0.3575756549835205, 0.00153226382...
I have this select input in my form that I want to access via PHP. ``` <div data-role='fieldcontain'> <label for='fruits' class='select'>Favorite Fruits</label> <select name='fruits[]' id='fruits' multiple='multiple' data-native-menu='false'> <option value=''>Favorite Fruits</option> <option va...
[ -0.24786482751369476, -0.06395088881254196, -0.09605516493320465, -0.12145141512155533, -0.027156954631209373, 0.4848634600639343, -0.13969172537326813, -0.29180604219436646, -0.21282817423343658, -0.6629199385643005, -0.061204712837934494, 0.27910810708999634, 0.02052529901266098, -0.0639...
form. Feeding post data into an array sounds insecure. What if, for instance, someone changes the select element into a text input element via Firebug and inputs malicious code into my program? I never call `htmlspecialchars`. Are my security concerns valid? Why or why not? if you mean getting data from `data-*` attri...
[ 0.3466455638408661, 0.021007586270570755, 0.3131692111492157, -0.11312584578990936, 0.12726327776908875, 0.24960292875766754, 0.35146617889404297, -0.40281322598457336, -0.17026682198047638, -0.7319668531417847, -0.22378700971603394, 0.14281150698661804, -0.3883607089519501, 0.257190167903...
I have a query that returns data with group category and some details like this: ``` Category | Title ================== cat1 --- titlex cat1 --- titley cat2 --- titley cat3 --- titlez cat3 --- titlex cat4 --- titlex ``` I want to display a table that has row number on outer group (Category) like this: ...
[ -0.4722527265548706, 0.2708926200866699, 0.5932428240776062, -0.1941365748643875, -0.3127903938293457, -0.007093546446412802, -0.06474952399730682, -0.3990345895290375, -0.47070661187171936, -0.5283615589141846, -0.35812050104141235, 0.28176283836364746, -0.16894958913326263, 0.42459881305...
cat2 titley 3 cat3 titlez titlex 4 cat4 titlex ``` The problem is, when I add RN column as ROW\_NUMBER in sql query or ROWNUMBER SSRS function (tried NOTHING, Group and Details as a scope, just
[ -0.08619210124015808, 0.04899974539875984, 0.7427010536193848, -0.2952488660812378, -0.0912267193198204, 0.002009508665651083, 0.18718914687633514, -0.4574597179889679, -0.46165603399276733, -0.11549033224582672, -0.12190847098827362, 0.33001285791397095, -0.4214168190956116, 0.60480177402...
in case), I always get numbers like 2 1 2 or 1 3 4 6 for RN column. **EDIT** Sql Query (table names and properties changed for simplicity) ``` SELECT -- this rownumber does not work, counts every occurrence of category --ROW_NUMBER() OVER ( --PARTITION BY c.Name -- tried this too, this res...
[ -0.2361374944448471, 0.12960700690746307, 0.727485179901123, -0.31679806113243103, 0.031239524483680725, 0.1548711508512497, 0.05598518252372742, -0.3818768858909607, -0.6457111239433289, -0.4788551926612854, -0.11363640427589417, 0.5993714332580566, -0.4160180985927582, 0.2862370014190674...
Products p INNER JOIN Categories c ON p.CategoryId = c.Id GROUP BY c.Name, p.Name ORDER BY c.Name, p.Name ``` You don't want the row numbers (as you've observed, the row numbers are assigned to every... um... row). Maybe you want [`DENSE_RANK`](http://msdn.microsoft.com/en-us/library/ms173825.aspx)? ``` SELECT ...
[ -0.4432293176651001, 0.15807363390922546, 0.5298777222633362, -0.08014006912708282, -0.17525076866149902, 0.19947777688503265, -0.024251427501440048, -0.4345429837703705, -0.45848149061203003, -0.47301408648490906, -0.5523207783699036, 0.3896034061908722, -0.45066535472869873, 0.2456026673...
reporting/formatting tool to get the final layout.
[ 0.16841290891170502, 0.18061064183712006, 0.485343873500824, 0.18502816557884216, 0.10809680074453354, -0.1880864053964615, -0.1747804880142212, -0.2528088390827179, -0.1307176649570465, -0.8478443026542664, -0.34161069989204407, 0.1258055418729782, 0.20628269016742706, -0.2862806618213653...
I have visual studio 2010 express for windows phone installed on my system and i am not able to find System.data.linq namespace in references so i tried to download the the dll and copy in the C:\Program Files(x86)\ReferenceAssemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone location but it is saying i...
[ 0.11644475162029266, 0.27652448415756226, 0.47453877329826355, -0.1122765764594078, -0.2555839419364929, 0.06191888824105263, 0.16591539978981018, -0.019805697724223137, -0.0048257033340632915, -0.8116376996040344, 0.07358984649181366, 0.48661667108535767, -0.4537524878978729, -0.152333796...
I corrected it to WindowsPhone71 and I got System.Data.Linq and mscorlib.extenstion libraries.
[ -0.4412810504436493, -0.43059083819389343, 0.5289503335952759, 0.15178650617599487, 0.0690578892827034, -0.06382082402706146, 0.007593311369419098, 0.27378663420677185, -0.2624436318874359, -0.5928638577461243, 0.002518987748771906, 0.5106091499328613, -0.3352912664413452, -0.0630509182810...
I'm going a window.onerror "SECURITY\_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent." Each time I load my iOS PhoneGap app. THe app uses local storage and webSQL. I have isolated this error to be throw when I open my db using: db = window.openDatabase("db", "1.0", "Te...
[ 0.2568306028842926, 0.021307816728949547, 0.5092651844024658, -0.26727795600891113, 0.08110588788986206, -0.15020398795604706, 0.803841769695282, -0.0769270583987236, -0.04490353539586067, -0.515999972820282, -0.09909863770008087, 0.5743221044540405, -0.2628105878829956, -0.030245222151279...
5.1. Details here in this PhoneGap/Cordova issue tracker: <https://issues.apache.org/jira/browse/CB-347>
[ -0.10355819761753082, 0.026430781930685043, 0.3628309965133667, 0.032411765307188034, -0.24192027747631073, -0.1248490959405899, 0.3034321069717407, -0.3413918614387512, -0.22414450347423553, 0.09205205738544464, -0.018398985266685486, 0.3632863461971283, -0.32767853140830994, -0.100498773...
I have an application where users select their own display columns. Each display column has a specified formula. To compute that formula, I need to join few related columns (one-to-one relationship) and compute the value. The models are like (this is just an example model, actual has more than 100 fields): ``` class ...
[ 0.15011493861675262, 0.2910587787628174, 0.6897939443588257, -0.1828952580690384, 0.11706072837114334, 0.31012001633644104, -0.3397461771965027, -0.17886878550052643, -0.1751725673675537, -0.6359732151031494, 0.07017841935157776, 0.385027140378952, 0.183149516582489, 0.5256445407867432, ...