text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
for(int j=0;j<tmp.length;i++){ sheet.addCell(new Label(j,i+1,tmp[j].toString())); } } workbook.write(); workbook.close(); } ``` When i launch it i retrieve: ``` Exception in thread "main" jxl.write.biff.RowsExceededException: The maximum number...
[ 0.14117035269737244, -0.09952963888645172, 0.8899832963943481, -0.4325466752052307, 0.2673538029193878, -0.048421259969472885, 0.2945491671562195, -0.3831547796726227, -0.1688050478696823, -0.43145737051963806, -0.23434613645076752, 0.39570993185043335, -0.3434172570705414, 0.3018726408481...
worksheet been exceeded at jxl.write.biff.WritableSheetImpl.getRowRecord(WritableSheetImpl.java:1214) at jxl.write.biff.WritableSheetImpl.addCell(WritableSheetImpl.java:1151) at Pr1.main(Pr1.java:52) Java Result: 1 ``` How can i solve it? it is possible that i can't add 21 rows? it's very strange... try u...
[ -0.4902057647705078, 0.20758597552776337, 0.6102255582809448, -0.09174703806638718, 0.04944532364606857, 0.31175634264945984, 0.41775792837142944, -0.6345253586769104, -0.471323162317276, -0.5899184346199036, -0.1941664069890976, 0.05394195392727852, -0.1906222701072693, -0.091580808162689...
I have a pecular problem in my WCF in the web services layer. When I instantiate a private member (\_Wagon) of my class (This instantiation is not null) in WCF, after few seconds, it's become null. I've been trying to diagnose the problem, but no result so far. So I'm turning to you people to help me solve this prob...
[ 0.14932985603809357, 0.22052769362926483, 0.3894244134426117, 0.30214837193489075, -0.40392056107521057, 0.2085154503583908, 0.36241739988327026, 0.09099163860082626, -0.20046229660511017, -1.1864607334136963, 0.1388942003250122, 0.2954016923904419, -0.08465675264596939, 0.4978711009025574...
} ~RemoteWagon() { Trace.WriteLine("Do nothing"); } [DataMember] public RemoteBreakpoint Breakpoint { set { if (value == null) {
[ 0.10012917965650558, -0.44224071502685547, 0.33287492394447327, -0.09899880737066269, 0.4205942749977112, -0.3477158844470978, 0.7015442252159119, -0.023986278101801872, 0.13151222467422485, -0.37385010719299316, -0.23976044356822968, 0.3832804560661316, -0.20894010365009308, 0.36262631416...
_Wagon.Breakpoint = null; //_Wagon member is NULL... } else { //... useless code in this context. } } } } ``` This would happen if your
[ -0.00813684705644846, 0.21014221012592316, 0.09609145671129227, 0.0772225484251976, -0.0024857795797288418, 0.08164839446544647, 0.6156578660011292, -0.3357405960559845, -0.30553728342056274, -0.773585855960846, -0.04735390096902847, 0.2410852313041687, -0.3770974278450012, 0.4587889611721...
class had been serialized and deserialized by DataContractSerializer (for example when sending data between client and server) Some reference: [DataContractSerializer doesn't call my constructor?](https://stackoverflow.com/questions/1076730/datacontractserializer-doesnt-call-my-constructor) If this is the case, then ...
[ -0.14559371769428253, -0.25843560695648193, 0.13334572315216064, -0.1374569684267044, -0.32151514291763306, 0.11091407388448715, 0.1595478355884552, -0.20843443274497986, -0.18430551886558533, -0.7062544822692871, 0.0844733715057373, 0.3353307545185089, -0.3468932807445526, 0.2876265048980...
it as `public [DataMember]` property
[ 0.05461571738123894, 0.11842185258865356, 0.11279304325580597, 0.14159253239631653, -0.026106398552656174, -0.45531371235847473, -0.012943746522068977, 0.27903974056243896, -0.13846752047538757, -0.10472820699214935, -0.5749439597129822, 0.18687322735786438, 0.00021394004579633474, 0.64419...
I'd like to open files such as photos, documents, music and video in my application. I've seen a lot of applications that open up the files in the device's default program for that filetype. Is there a way to somehow view the files in my application without opening another application? This would happen if your class ...
[ 0.2367255836725235, 0.14046357572078705, 0.25042274594306946, 0.06786497682332993, 0.09403587132692337, 0.014386672526597977, 0.060558710247278214, 0.0013585746055468917, -0.40222108364105225, -0.584169328212738, 0.21260850131511688, 0.44807949662208557, -0.26482418179512024, 0.28856366872...
to initialize the field yourself and not serialize it) would be to create method: ``` [OnDeserializing] private void OnDeserializing(StreamingContext c) { _Wagon = initializeWagon(); } ``` however, as you probably noticed, you won't be able to pass Wagon during deserialization - you'll have to initialize it diff...
[ 0.011861677281558514, -0.15812627971172333, 0.2226131409406662, -0.123743936419487, -0.12226574867963791, -0.03534401208162308, 0.06945439428091049, -0.3494597375392914, -0.09240324050188065, -0.8559103012084961, -0.14807544648647308, 0.25603485107421875, -0.25335875153541565, 0.4180858135...
Can someone explain why i cant get the desired delay between each request? They are all happening at once. ``` $(window).load(function(){ $('a[href]').each(function(){ var linkk = $(this) var linkkhref = linkk.attr('href'); window.setTimeout(function(){ conectar('HEAD', linkkhref, resp)...
[ 0.014771445654332638, -0.14497917890548706, 0.47678840160369873, -0.09679559618234634, 0.06474203616380692, 0.21811087429523468, 0.36340445280075073, -0.422168493270874, -0.1525605320930481, -0.37866348028182983, -0.21992383897304535, 0.6429587602615356, -0.5704102516174316, 0.321185946464...
GM_xmlhttpRequest({ "method" : metodo, "url" : endereco, "onerror" : callback, "onload" : callback, "headers" : {'Content-Type':'application/x-www-form-urlencoded'},
[ -0.3580263555049896, 0.06692763417959213, 0.6950555443763733, 0.17593228816986084, 0.07310687005519867, -0.06210741400718689, -0.1880527287721634, 0.09155920147895813, -0.33876368403434753, -0.33080026507377625, -0.5665234327316284, 0.4324159026145935, -0.5016857385635376, 0.32865631580352...
"data" : corpo }); }; function resp(responseDetails) { // my response code here }; }); }); ``` I know im using a Greasemonkey specific function, but the question is about javascript. No GM knowledge required. :) The loop is run just instantly
[ 0.46523016691207886, 0.05639011785387993, 0.5318643450737, -0.2285808026790619, 0.11116034537553787, -0.17504802346229553, 0.5096635818481445, -0.17477929592132568, -0.122207410633564, -0.34236615896224976, -0.12486906349658966, 0.6355058550834656, -0.27475354075431824, -0.2878548204898834...
and delay every execution of `conectar` function for 2000ms from the time code is exectued. For simple case I'd use: ``` $('a[href]').each(function(idx){ ... window.setTimeout(function(){ conectar('HEAD', linkkhref, resp) }, idx*2000) ```
[ 0.09545233100652695, -0.17123913764953613, 0.6082363724708557, -0.23965109884738922, 0.0806671753525734, 0.1978963315486908, 0.3643374443054199, -0.3251241147518158, -0.2908353805541992, -0.2952635586261749, -0.11762797087430954, 0.6312791705131531, -0.336943656206131, 0.34748581051826477,...
I was practising the algorithm based programming problem.I am having difficulty,in solving this problem.I want idea (only small approach/hint)to solve this problm efficienty,so plz help me.! Here Is the problem Statement:: Suppose there are two rabbits,named rabbit foo and rabbit bar.Initially both of them are located...
[ 0.3111840784549713, -0.08043855428695679, 0.2528671622276306, -0.03506261110305786, -0.23079608380794525, 0.34489619731903076, -0.0038330331444740295, -0.020127883180975914, -0.4566793143749237, -0.3721601068973541, 0.10186364501714706, 0.10752000659704208, -0.538173258304596, -0.062215734...
jump either p length to his left or p length to his right or q length to his left or q length to his right side in a single attempt. Now the master of these two rabbits want to place himself exactly at one point such that both of the rabbits will be able to reach his master in one or more attempts. Also ,the master pl...
[ 0.25947391986846924, -0.5370051264762878, 0.1357799917459488, 0.11963830888271332, -0.17183449864387512, 0.2694922387599945, 0.3734644651412964, -0.3043544292449951, -0.6941619515419006, -0.49661338329315186, -0.04180712625384331, -0.16122908890247345, -0.400386244058609, -0.17354239523410...
n=5 L=1 answer=3; As Foo can jumps 2 length to his right side and after that one length to his left side. Bar can jumps 5 lengths to his rgt and after that four lenth to his left side. to reach his master who is place 1 units away from the origin. Foo 2 length left and after that one length right side. Bar 5 len...
[ -0.009869646281003952, -0.07068377733230591, 0.5735117197036743, -0.5843876004219055, -0.44628414511680603, 0.3497615158557892, 0.2510388493537903, -0.7239179611206055, -0.5445868372917175, -0.27262982726097107, -0.0038689381908625364, -0.10894223302602768, -0.11815132945775986, 0.07088808...
Examples:: m=2 n=4 p=3 q=6 L=7 answer=3. m=10 n=12 p=3 q=9 answer=5 Foo can reach any position that is a multiple of `gcd(m,n)` and only those. Bar can reach the positions that are multiples of `gcd(p,q)`, so the positions reachable by both are exactly the multiples of `lcm(gcd(m,n),gcd(p,q))`.
[ -0.3710537552833557, 0.2717944085597992, 0.5106897354125977, -0.39909911155700684, 0.1640433520078659, 0.3740050792694092, 0.16894735395908356, -0.4276440441608429, -0.24857890605926514, -0.41462332010269165, -0.3578073978424072, 0.22495689988136292, -0.5204103589057922, 0.0866139903664588...
I have an XML document that includes XPath expressions that I need to use in my application. Since I have to define the Namespaces to Jaxen, I need to retrieve the namespaces that were in the original XML document after it is unmarshalled by JAX-B. How would I go about retrieving the declared namespaces? Thanks. (\*Ch...
[ 0.18803007900714874, 0.2838635742664337, 0.5338168740272522, 0.07316537201404572, -0.055728036910295486, 0.2138926237821579, -0.04332029074430466, -0.2840697765350342, 0.14724205434322357, -0.7860299944877625, -0.3479677438735962, 0.408607542514801, 0.22784581780433655, -0.1465166807174682...
up on my comment above: More specifically, the sif namepsace is not associated with any element or attribute in your XML document per-se, and therefore the declaration xmlns:sif="xxx" is immaterial, including for JAXB. It's only relevant to the application that interprets the value for mapping.endpoint.xpath. ```xml ...
[ 0.2656351923942566, 0.07036950439214706, 0.7386415600776672, 0.057490505278110504, -0.21308909356594086, 0.019497718662023544, -0.2850707471370697, -0.3950577974319458, -0.20123200118541718, -0.7048424482345581, -0.4300581216812134, 0.015489302575588226, -0.14966540038585663, 0.12414719164...
<xpath>/sif:StudentRecordExchangeData/.../sif:SIF_ExtendedElement[@Name="StudentDemographicRecordExtensions"]/.../ntc:Area</xpath> </endpoint> </mapping> </mappings> ``` Therefore I'm proposing to add the namespace declaration as explicit nodes for your application to process along with the value node, you shou...
[ 0.20359168946743011, -0.001556592877022922, 0.5838942527770996, 0.04408393055200577, 0.007293365430086851, -0.14371636509895325, -0.3206031620502472, -0.11756717413663864, 0.12938842177391052, -0.584086537361145, -0.3929789662361145, 0.11849317699670792, -0.21373097598552704, -0.0239272937...
Can anyone explain how the cost is evaluated in an Oracle explain plan? Is there any specific algorithm to determine the cost of the query? For example: full table scans have higher cost, index scan lower... How does Oracle evaluate the cases for `full table scan`, `index range scan`, etc.? This link is same as what ...
[ 0.16527384519577026, 0.09017600119113922, -0.289021760225296, 0.557574987411499, -0.009348399005830288, 0.09573759138584137, -0.2615866959095001, -0.34620821475982666, 0.1262485384941101, -0.5306315422058105, 0.0687074288725853, 0.5884149670600891, 0.040863584727048874, 0.06562425196170807...
discussed here. Jonathan Lewis has done an admirable job of walking through how the cost-based optimizer decides on the cost of a query in his book [Cost-Based Oracle Fundamentals](https://rads.stackoverflow.com/amzn/click/com/1590596366). If you're really interested, that's going to to be the best place to start. It ...
[ 0.04286862909793854, -0.11318131536245346, -0.19515158236026764, 0.10997277498245239, 0.16145950555801392, 0.32133862376213074, -0.21154969930648804, -0.2825346291065216, -0.10728932917118073, -0.5205040574073792, -0.1585264503955841, 0.5419788956642151, 0.017987370491027832, -0.1055339798...
of the various predicates), the relative cost of a sequential read vs. a serial read, the speed of the processor, the speed of the disk, the probability that blocks will be available in the buffer cache, your database's optimizer settings, your session's optimizer settings, the `PARALLEL` attribute of your tables and i...
[ -0.05280674248933792, -0.000980796874500811, 0.15540796518325806, 0.47113946080207825, -0.12154516577720642, 0.22722269594669342, 0.13866877555847168, 0.009323278442025185, -0.21591255068778992, -0.31780707836151123, -0.0694509893655777, 0.5539002418518066, -0.10801191627979279, 0.00883867...
table and an index access if your query is going to return a small fraction of the rows in your table. And "small fraction" is generally much smaller than people initially estimate-- if you're returning 20-25% of the rows in a table, for example, you're almost always better off using a full table scan. If you are tryi...
[ -0.2526474893093109, 0.14101265370845795, 0.49280211329460144, 0.5199386477470398, 0.12859776616096497, 0.005405439995229244, -0.4379526972770691, -0.1714872121810913, -0.3382698893547058, -0.8476022481918335, -0.10860677808523178, 0.2920745611190796, -0.01492399163544178, 0.29260140657424...
plans would be incorrect is that the optimizer's estimates are incorrect (statistics are incorrect, Oracle's estimates of selectivity are incorrect, etc.). That means that if you see one plan for a query that has a cost of 6 and a plan for a different version of that query that has a cost of 6 million, it is entirely p...
[ 0.03351842612028122, -0.28765207529067993, 0.42084941267967224, 0.49132683873176575, 0.3212890625, 0.42001038789749146, 0.03362187370657921, -0.4601362347602844, -0.16259437799453735, -0.9824520945549011, -0.007431971840560436, 0.3646971881389618, -0.22099807858467102, -0.2379356026649475,...
served ignoring the `COST` column and focusing on the `CARDINALITY` column. `CARDINALITY` is the optimizer's estimate of the number of rows that are going to be returned at each step of the plan. `CARDINALITY` is something you can directly test and compare against. If, for example, you see a step in the plan that invol...
[ -0.19501127302646637, -0.1540558785200119, 0.42431893944740295, 0.037357646971940994, -0.06535867601633072, 0.5733557939529419, -0.02891579084098339, -0.374435156583786, -0.2705588936805725, -0.5149961113929749, -0.14395949244499207, 0.44217976927757263, -0.13433630764484406, 0.00259747821...
or 10,000,000 then the optimizer would almost certainly be either picking the table scan in error or feeding that data into a later step where its cost estimate would be grossly incorrect leading it to pick a poor join order or a poor join method. And it would probably indicate that the statistics on table A were incor...
[ 0.10235416889190674, -0.049664098769426346, 0.20906905829906464, 0.42403945326805115, -0.001071795355528593, 0.371303915977478, 0.22032134234905243, -0.1292845904827118, -0.24121129512786865, -0.2691307067871094, 0.08662670850753784, 0.44332826137542725, -0.10417632758617401, -0.1034621447...
GIven the fact that I generate a string containing "0" and "1" of a random length, how can I write the data to a file as bits instead of ascii text ? Given my random string has 12 bits, I know that I should write 2 bytes (or add 4 more 0 bits to make 16 bits) in order to write the 1st byte and the 2nd byte. Regardles...
[ 0.31609907746315, 0.07502241432666779, 0.10602965205907822, 0.21130843460559845, -0.0204724483191967, 0.330313503742218, 0.2212829440832138, -0.404268741607666, -0.13370776176452637, -0.33342671394348145, -0.09581627696752548, 0.1655808687210083, -0.22006292641162872, 0.1857532560825348, ...
lot everywhere (it's my 3rd day looking for an answer) and didn't understand how to do it. Thank you. You haven't said what API you're using, so I'm going to assume you're using I/O streams. To write data to the stream just do this: ``` f.write(buf, len); ``` You can't write single bits, the best granularity you ar...
[ 0.2589929401874542, -0.11989093571901321, 0.137044295668602, 0.11812510341405869, -0.14503240585327148, 0.3938334286212921, 0.09091035276651382, 0.07653477787971497, -0.4802282452583313, -0.70372074842453, 0.1208297610282898, 0.670204758644104, -0.2997550964355469, 0.03839942067861557, 0...
= 0; for (unsigned i = 0; i != 8; ++i) { byte |= (data[i] & 1) << i; } f.put(byte); ``` If `data` contains ASCII '0' or '1' characters rather than actual 0 or 1 bits replace the `|=` line with this: ``` byte |= (data[i] == '1') << i; ```
[ -0.04026730731129646, -0.0963505208492279, 0.20139794051647186, -0.386239618062973, 0.08474379777908325, 0.40471240878105164, 0.11955201625823975, -0.33469587564468384, 0.02340816892683506, -0.4120156466960907, -0.5527946352958679, 0.20711253583431244, -0.11691836267709732, 0.0452626049518...
I think I may have found an interesting bug with AX 2009, and I'm unsure of how I can proceed. I am attempting to write a new report, and one of the conditions of this report is to be filtered based on the Posting field of the LedgerTrans table. However, it seems that when the report goes to execute, the label of the ...
[ 0.6814650297164917, 0.23228289186954498, 0.5126472115516663, 0.045797109603881836, 0.3118056654930115, -0.23430436849594116, 0.019749607890844345, -0.16009970009326935, -0.1409549117088318, -0.38116151094436646, -0.024519875645637512, 0.6572090983390808, 0.06996189057826996, 0.404372006654...
consumption, __ILLEGAL_VALUE__.` I get this result even if I use the enum value or name. The report must be left interactive, but this field must be locked, so we cannot get the users to adjust the query at run time. At this point I don't want to change the label itself, but if it is the only way to solve this I will....
[ 0.4132434129714966, 0.3151467442512512, 0.3114916980266571, -0.06712910532951355, 0.019884862005710602, 0.16888804733753204, -0.06438789516687393, -0.15129627287387848, -0.5202431678771973, -0.526605486869812, 0.23056477308273315, 0.5984870791435242, -0.3735528886318207, 0.2614918649196625...
|| (LedgerTrans.Posting == LedgerPostingType::PurchConsump)) ``` That can be typed into a range filter box, or can be set as the value of a range via x++ code: ``` ledgerPostingRange.value("((LedgerTrans.Posting == LedgerPostingType::PurchReceipt) || (LedgerTrans.Posting == LedgerPostingTy...
[ 0.19900208711624146, 0.09037631005048752, 0.368897408246994, -0.2482086569070816, -0.002343139611184597, -0.11341310292482376, 0.25575321912765503, -0.4493052065372467, -0.15650206804275513, -0.20110003650188446, -0.32605069875717163, 0.4941607117652893, -0.49977606534957886, 0.00381720066...
that contains a comma in its label, the same can be done for a single : ``` ledgerPostingRange.value("(LedgerTrans.Posting == LedgerPostingType::PurchReceipt)"); ```
[ 0.007364931050688028, 0.0960785299539566, 0.49605900049209595, -0.15506044030189514, 0.10079557448625565, 0.04705645889043808, -0.12679551541805267, 0.04857053607702255, -0.30362486839294434, -0.4617057740688324, -0.31928369402885437, 0.2320171445608139, -0.03536155819892883, 0.31945922970...
I have 2 databases on the same SQL Server. Is it possible to have one in PST and the other in EST? No, The date/time is derived from the operating system of the computer on which the instance of SQL Server is running. You could however have a custom UDF that you would call instead of getdate() and then do the timezone...
[ 0.1933370679616928, -0.07737430185079575, 0.4675568640232086, 0.041018202900886536, 0.10519161075353622, -0.175286203622818, -0.10078234225511551, -0.1635393649339676, -0.01579851470887661, -0.8960094451904297, 0.23283755779266357, 0.34361138939857483, -0.1175553947687149, 0.35561051964759...
course won't work on updates and also someone could update that value If you want to use GMT then use `GETUTCDATE` ``` SELECT GETUTCDATE() ```
[ 0.10928958654403687, 0.07288862019777298, 0.31606829166412354, 0.029664823785424232, 0.15445411205291748, -0.19521626830101013, -0.015304804779589176, 0.30177757143974304, 0.19901631772518158, -0.6638257503509521, -0.20392267405986786, 0.6985582113265991, -0.27860748767852783, -0.059265062...
I'm developing an application for my final thesis on computer science, and I need to collect and log accelerometer data. I need to acquire it for a whole day long, so there are serious battery constraints (for instance, I cannot leave the screen on). Also, this isn't a market targeted application, so it is pretty accep...
[ 0.45321521162986755, 0.061262838542461395, 0.23608270287513733, 0.1666623055934906, 0.036225639283657074, -0.17373423278331757, 0.3900705873966217, -0.10935138911008835, -0.08774586021900177, -0.24465742707252502, 0.014167350716888905, 0.6513482928276062, -0.05721341073513031, 0.1207707151...
screen is off on Droid/Nexus One even with a WakeLock](https://stackoverflow.com/questions/2143102/accelerometer-stops-delivering-samples-when-the-screen-is-off-on-droid-nexus-one)). I have thoroughly searched for some alternatives, some of them include workarounds that do not work for my device (LG P990, stock ROM). ...
[ -0.09393182396888733, -0.16175395250320435, 0.6575754284858704, -0.12559163570404053, -0.11926370859146118, -0.06840218603610992, 0.21286261081695557, 0.03636143356561661, -0.36517053842544556, -0.7449436783790588, -0.0437251515686512, 0.8404899835586548, -0.3506014347076416, -0.0608575083...
sleep mode. One of the workarounds presented in some of the links is to unregister and re-register the event listener periodically using the thread of an IntentService like in this code snippet bellow ``` synchronized private static PowerManager.WakeLock getLock(Context context) { if (lockStatic==null) { P...
[ 0.2754010856151581, -0.5950927734375, 0.7891950011253357, -0.3223806321620941, 0.21859285235404968, -0.24647337198257446, 0.83956378698349, -0.657294750213623, -0.1936732679605484, -0.6368811726570129, -0.32484012842178345, 0.8891599774360657, -0.4702256917953491, -0.0508960485458374, -0...
sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_NORMAL); synchronized (this) { boolean run = true; while (run){ try { wait(1000); getLock(AccelerometerService.this).acquire(); sensorManager=(SensorMana...
[ 0.17155814170837402, -0.7955138087272644, 0.670624852180481, 0.0031457289587706327, 0.3379659652709961, -0.0024180710315704346, 0.36810511350631714, -0.6924334764480591, -0.17460161447525024, -0.33724480867385864, -0.11728217452764511, 0.5839203596115112, -0.34763574600219727, 0.1201855465...
sensorManager.unregisterListener(this); sensorManager.registerListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_NORMAL); Log.d("Accelerometer service", "tick!"); } catch (Exception e) { run = false; ...
[ 0.17923279106616974, -0.573785662651062, 0.7058733105659485, 0.01932857558131218, 0.24416084587574005, 0.00016241711273323745, 0.4988518953323364, -0.5400718450546265, -0.37567365169525146, -0.21290409564971924, -0.18596869707107544, 0.5527671575546265, -0.48511844873428345, 0.477929413318...
} } } } @Override public void onSensorChanged(SensorEvent event) { Log.d("accelerometer event received", "xyz: "+ event.values[0] + "," + event.values[1] + "," + event.values[2]); } ``` which indeed makes the onSensorChange be called every time we unregister/register the listener. The problem...
[ 0.15818724036216736, 0.22125883400440216, 0.7264435291290283, 0.041409678757190704, 0.04594816640019417, 0.09516841173171997, 0.4210977554321289, -0.5723886489868164, -0.2874810993671417, -0.08188135176897049, 0.21196158230304718, 0.8610110282897949, -0.1353166550397873, 0.2203779816627502...
level access (C/C++ approach) to the accelerometer hardware WITHOUT registering to an event listener? 2. is there any other workaround or hack? 3. could anyone with a more up-to-date phone kindly test if the problem persists in firmware 3.0 and above? **[UPDATE]** **Unfortunately, it seems to be a bug with some cellp...
[ 0.20567163825035095, -0.017826106399297714, 0.6641175150871277, 0.41989248991012573, 0.24602486193180084, -0.4338431656360626, 0.41576647758483887, 0.16051045060157776, -0.09015212208032608, -0.5500577688217163, 0.16625526547431946, 0.8825694918632507, -0.057865630835294724, -0.04150538891...
from the implementations of each company for their hardware drivers. I need constant accelerometer data delivered and cannot have a dongle measure this data for me - I have an Arduino with Bluetooth and accelerometer, so I could have implemented this solution. So I decided that the temporary solution for my cellphone ...
[ 0.5801602602005005, 0.2103434056043625, 0.5094192028045654, -0.08821368962526321, 0.2044491022825241, -0.0923118069767952, 0.3990437686443329, 0.2245018184185028, -0.22902344167232513, -0.37042236328125, 0.17130155861377716, 0.7525652050971985, -0.31997236609458923, -0.025353463366627693, ...
maybe I understand what is happening. The library libsensors.so which has the drivers for the phone sensors is not developed by Google but by each cellphone vendor - of course, because each cellphone has its own specific hardware. Google only provides a C header file so that the developers know what they have to implem...
[ 0.4859235882759094, 0.12167679518461227, 0.6597693562507629, 0.30315113067626953, -0.007169200573116541, -0.2568240761756897, 0.12949170172214508, -0.20900236070156097, 0.08431020379066467, -0.19838237762451172, 0.2192031592130661, 0.6479307413101196, -0.28026336431503296, -0.1034110561013...
from LG. **E-mails exchanged with HR department of LG** I sent an e-mail to the developers of the LG P990 and finally got some concrete answers! This may be of great help to some people like me that are experiencing these issues with Android. I wrote the following question > Hello! I am developing my thesis in compu...
[ 0.3723945617675781, 0.04072314873337746, 0.6695830821990967, 0.07062193751335144, -0.10992752760648727, -0.07152744382619858, 0.12417975068092346, 0.17472371459007263, -0.19921119511127472, -0.692430853843689, -0.14420689642429352, 0.41867509484291077, -0.04639418423175812, -0.289561659097...
can > verify that my program is still running (through LOGcat output) but no > accelerometer event comes out. I have to dim my screen on (which I > cannot afford, the battery drains too fast) to start receiving > accelerometer events again. I also tried accessing it through native C > code, registering on the acce...
[ 0.1903500258922577, -0.08929293602705002, 0.6208692193031311, 0.05603986233472824, -0.03616325557231903, -0.11670874059200287, 0.7212158441543579, -0.15889756381511688, 0.0281319972127676, -0.7670910954475403, 0.02296779863536358, 0.47121939063072205, -0.16932061314582825, 0.17175413668155...
register to a > listener. Is this possible? If so, could you kindly give some further > advice? I would appreciate very much any help! Martin For what I received this response: > Dear Martin, We received the answer from Dev. Team. They said that you > can’t get accelerometer event while your phone screen is off. B...
[ 0.345760315656662, 0.07823244482278824, 0.4336438477039337, 0.17772521078586578, -0.13937824964523315, -0.23443974554538727, 0.6828199028968811, -0.2942366600036621, 0.059325236827135086, -0.7056117057800293, -0.15971480309963226, 0.24028584361076355, -0.1701512336730957, -0.11128681898117...
a bug, since one should have access to all the hardware when acquiring a wake lock: > [...] I asked this question because I have some friends that also have > Android phones with the same gingerbread version but from other > cellphone brands, and some of them reported they receive events from > the accelerometers w...
[ 0.3539906442165375, -0.05494772642850876, 0.42399078607559204, 0.06333455443382263, 0.3558073341846466, -0.21821869909763336, 0.20663903653621674, -0.04988691210746765, -0.4112562835216522, -0.411551296710968, -0.10676799714565277, 0.41141626238822937, -0.22007623314857483, 0.0056134788319...
the vendors implement for their cellphones. Is > there any possibility that these drivers can be updated or will this > bug be corrected at some point? This would help me enormously with my > ongoing work [...] And then I received this answer: > In my knowledge from Dev. Team, That isn’t bug. That is a limitless o...
[ 0.5019122362136841, 0.3654182553291321, 0.4547220468521118, 0.23624835908412933, 0.2922748923301697, -0.26612529158592224, 0.23834478855133057, -0.3711523115634918, 0.1611613780260086, -0.5947504639625549, -0.037767358124256134, 0.7256919145584106, -0.225520059466362, -0.13108079135417938,...
with our all efforts but we cannot support your request as I > mentioned. (Sean Kim) So they apparently know about this but are not trying to correct this because either they don't think it is a bug - which I still strongly believe is a logical flaw - or they don't have the time/resources to correct it. **Bottom lin...
[ 0.670905590057373, 0.12084256112575531, 0.2422536462545395, 0.3229970335960388, 0.2602522373199463, -0.4269208610057831, 0.7369924187660217, 0.2787321209907532, -0.15832111239433289, -0.5798943638801575, -0.41811275482177734, 0.503067135810852, -0.09142818301916122, -0.2794646620750427, ...
to do with libsensors.so.
[ 0.1661427617073059, 0.5101773738861084, 0.3439529240131378, -0.29130640625953674, 0.04345691576600075, -0.13711342215538025, -0.21535564959049225, 0.0900467038154602, -0.10396910458803177, -0.26044970750808716, -0.07952063530683517, 0.4358939528465271, 0.03221196308732033, 0.08859391510486...
I have written a code and i'm pretty much stuck. In the following code, i have split the complete image into a 3\*3 block. Each of the child (1-8) you can see, say i alter them in that child(1-8) array only. Is there a method to combine these array (mother & child 1-8) to get the complete image back with the alteration...
[ -0.048708170652389526, 0.350759357213974, 0.5844982862472534, -0.1290120631456375, 0.3557770550251007, 0.675552248954773, 0.2023521214723587, -0.31986111402511597, -0.2266579568386078, -0.7458944916725159, -0.017793262377381325, 0.5940157771110535, -0.14220748841762543, 0.28339454531669617...
not a problem with the stock version of android but from the implementations of each company for their hardware drivers. I need constant accelerometer data delivered and cannot have a dongle measure this data for me - I have an Arduino with Bluetooth and accelerometer, so I could have implemented this solution. So I d...
[ 0.46015486121177673, 0.19795700907707214, 0.5319995880126953, -0.0962798073887825, 0.14413487911224365, -0.06863462179899216, 0.5100488066673279, 0.20720496773719788, -0.3090411424636841, -0.3846634030342102, 0.22675904631614685, 0.8017632961273193, -0.3702337145805359, -0.0826515629887580...
and found reports from other Android users and I think maybe I understand what is happening. The library libsensors.so which has the drivers for the phone sensors is not developed by Google but by each cellphone vendor - of course, because each cellphone has its own specific hardware. Google only provides a C header fi...
[ 0.4199485778808594, 0.04413137584924698, 0.6959742903709412, 0.25995203852653503, -0.04459117725491524, -0.16473032534122467, 0.11090746521949768, -0.36899879574775696, 0.07855503261089325, -0.21701394021511078, 0.114706851541996, 0.8027679324150085, -0.4171164333820343, -0.329317480325698...
it did not work either, because accelerometer drivers are original from LG. **E-mails exchanged with HR department of LG** I sent an e-mail to the developers of the LG P990 and finally got some concrete answers! This may be of great help to some people like me that are experiencing these issues with Android. I wrote ...
[ 0.24643535912036896, -0.12323734164237976, 0.5813241004943848, 0.2521704137325287, -0.34768468141555786, 0.04968467727303505, 0.2436627894639969, 0.1624199002981186, -0.1314072608947754, -0.6076141595840454, 0.17342737317085266, 0.6580197811126709, -0.15488159656524658, -0.1867006123065948...
grab a wakelock from within one of my programs, I can > verify that my program is still running (through LOGcat output) but no > accelerometer event comes out. I have to dim my screen on (which I > cannot afford, the battery drains too fast) to start receiving > accelerometer events again. I also tried accessing it...
[ 0.08782241493463516, 0.016508614644408226, 0.7124741673469543, -0.19144891202449799, 0.0580483078956604, -0.14370986819267273, 0.5829651355743408, -0.07887858152389526, -0.3238951563835144, -0.6354407072067261, -0.053669411689043045, 0.5449180006980896, -0.2800735831260681, 0.0417183116078...
to the hardware, with native code, without having to register to a > listener. Is this possible? If so, could you kindly give some further > advice? I would appreciate very much any help! Martin For what I received this response: > Dear Martin, We received the answer from Dev. Team. They said that you > can’t get ...
[ 0.37167760729789734, 0.15450261533260345, 0.5119249224662781, 0.21209418773651123, 0.010863912291824818, -0.2889248728752136, 0.4744359850883484, -0.27955618500709534, -0.039861224591732025, -0.7491094470024109, -0.47566917538642883, 0.5001668334007263, -0.1163284108042717, -0.082813814282...
e-mail back, saying among other things, that I considered this a bug, since one should have access to all the hardware when acquiring a wake lock: > [...] I asked this question because I have some friends that also have > Android phones with the same gingerbread version but from other > cellphone brands, and some of...
[ 0.30212005972862244, 0.1109839603304863, 0.39864838123321533, 0.16651485860347748, 0.264679491519928, -0.278402179479599, 0.191603422164917, -0.07053451985120773, -0.44365495443344116, -0.3925921320915222, -0.18573550879955292, 0.28168201446533203, -0.0628238096833229, 0.12254445254802704,...
going on - depends on > the sensor drivers that the vendors implement for their cellphones. Is > there any possibility that these drivers can be updated or will this > bug be corrected at some point? This would help me enormously with my > ongoing work [...] And then I received this answer: > In my knowledge from...
[ 0.448017954826355, 0.22021377086639404, 0.726401150226593, 0.11362490057945251, 0.36158454418182373, -0.3530879318714142, 0.31475961208343506, -0.29040297865867615, -0.09745502471923828, -0.3810470700263977, 0.004189639817923307, 0.6595677137374878, -0.23577241599559784, -0.183268457651138...
lack of resource. We are trying to > help you with our all efforts but we cannot support your request as I > mentioned. (Sean Kim) So they apparently know about this but are not trying to correct this because either they don't think it is a bug - which I still strongly believe is a logical flaw - or they don't have ...
[ 0.6889933347702026, 0.2323606312274933, 0.059734463691711426, 0.3051457703113556, 0.1869303286075592, -0.299821138381958, 0.795379102230072, 0.4562744200229645, -0.10142438858747482, -0.742262065410614, -0.3643476068973541, 0.46941569447517395, -0.09558019042015076, -0.16682881116867065, ...
re implement your hardware layer - hint: it's probably something to do with libsensors.so.
[ 0.7809832692146301, -0.035380277782678604, 0.6747194528579712, 0.01872388646006584, -0.02635148912668228, -0.020059892907738686, 0.23780912160873413, -0.23022592067718506, 0.04909547045826912, -0.5664785504341125, -0.4092511832714081, 0.6215546131134033, -0.16178856790065765, -0.0035347170...
this is my xml file,i do not known how to retrieve value from xml file using php,how to retrieve infromation from the xml file.if you known please help me. ``` my xml file: see:http://en.wikipedia.org/w/api.php? format=xml&action=query&titles=vikram&prop=revisions&rvprop=content <api> <query> <normalized> ...
[ 0.39072754979133606, 0.04345087334513664, 0.3412914276123047, 0.20981019735336304, -0.03818247839808464, 0.0022014565765857697, 0.0471583716571331, -0.16021302342414856, -0.3200828433036804, -0.24534295499324799, -0.35846060514450073, 0.00008162153244484216, -0.2158835381269455, 0.45096135...
in ''[[Baital Pachisi]]'', identified with Vikramāditya **[[Vikram Samvat]] (Vikram's Era, "V.S." or "B.S"), a popularly used calendar in India and the official calendar of Nepal, established by Vikramaditya *[[Vikram Pandit]], CitiGroup CEO *[[Vikram (actor)]], Vikram Kennedy, a Tamil-language Indian film ...
[ 0.22840768098831177, 0.12125463783740997, 0.2983626127243042, 0.023253081366419792, -0.04342076554894447, 0.2101505994796753, -0.10261739790439606, 0.5045799016952515, -0.8118175864219666, 0.3160347640514374, 0.10238831490278244, -0.2984946668148041, -0.28308048844337463, 0.491668820381164...
a problem with my phone. Other users have reported this also happens with their phones, from different brands but same Android version. Other persons have no problem at all - strongly indicating that this is not a problem with the stock version of android but from the implementations of each company for their hardware ...
[ 0.21173256635665894, 0.20383970439434052, 0.42682555317878723, -0.010373779572546482, 0.24838070571422577, 0.03637555241584778, 0.39981234073638916, 0.15453441441059113, -0.22270776331424713, -0.2730528712272644, 0.284690260887146, 0.6082738041877747, -0.4044075310230255, 0.075285926461219...
screen on (dimmed) and ignore battery consumption. Later on I will perform the tests for battery usage using another android phone which works with the screen turned off. **More information about the bug** I've researched some more and found reports from other Android users and I think maybe I understand what is happ...
[ 0.8020241260528564, 0.18756765127182007, 0.5445188879966736, 0.2752753496170044, 0.06476255506277084, -0.10077577829360962, 0.26076069474220276, 0.05867811664938927, -0.06724794209003448, -0.45499277114868164, 0.055568329989910126, 0.8723810315132141, -0.34074658155441284, -0.1799315512180...
On some implementations for these drivers, the developers simply turn the accelerometer off when the screen goes off, thus preventing the sensor event listener to receive new events. I also tested this with CyanogenMod RC7.2 but it did not work either, because accelerometer drivers are original from LG. **E-mails exc...
[ 0.21728608012199402, 0.02347654663026333, 0.4200397729873657, -0.001127108815126121, -0.42185553908348083, -0.11138072609901428, 0.3377039134502411, -0.14098648726940155, -0.09480108320713043, -0.5581169724464417, 0.18103176355361938, 0.7446777820587158, -0.3542632758617401, -0.04171331226...
science and currently I > am fetching data from accelerometer hardware. As of now, I found out > that the accelerometers do not send events when the screen is off, so > even when I grab a wakelock from within one of my programs, I can > verify that my program is still running (through LOGcat output) but no > accel...
[ 0.4104658365249634, 0.010431637056171894, 0.4244130849838257, 0.16367579996585846, -0.07270152866840363, -0.23049978911876678, 0.3599846363067627, 0.1274111121892929, -0.15513193607330322, -0.6979475617408752, 0.22189480066299438, 0.7312485575675964, -0.16185536980628967, 0.212262079119682...
the accelerometer events but the result was the > same, the accelerometer did not throw any values, even though I was > rotating my device. So I was wondering if I could have direct access > to the hardware, with native code, without having to register to a > listener. Is this possible? If so, could you kindly give...
[ 0.28619787096977234, -0.014507715590298176, 0.4444766640663147, 0.2061179280281067, -0.24148565530776978, -0.30368369817733765, 0.48251843452453613, -0.0733502209186554, -0.17342226207256317, -0.45344895124435425, -0.06795507669448853, 0.6458227038383484, -0.29193997383117676, 0.1314936578...
Because > HAL layer didn’t implement sysFS path to get H/W event such as > accelerometer and there is no public API to get event. Thank you. Best > Regards. (Sean Kim) I then sent an e-mail back, saying among other things, that I considered this a bug, since one should have access to all the hardware when acquiring...
[ 0.2634621262550354, 0.03776678815484047, 0.22554190456867218, 0.18143971264362335, 0.004881317261606455, -0.15370681881904602, 0.2944527268409729, -0.3537851572036743, -0.12572647631168365, -0.5813928246498108, -0.35403701663017273, 0.3550260663032532, -0.05991557240486145, -0.229931443929...
when the screen is turned off. I read on some > forums that this bug - I consider it a bug, since when I acquire a > Wakelock I would expect to have some processing going on - depends on > the sensor drivers that the vendors implement for their cellphones. Is > there any possibility that these drivers can be update...
[ 0.4093652367591858, 0.11045360565185547, 0.6422906517982483, 0.06684508919715881, 0.15230737626552582, -0.4538927674293518, 0.398005872964859, 0.02636440470814705, -0.29085773229599, -0.6353442668914795, -0.03484094515442848, 0.7152538299560547, -0.1833183914422989, -0.1786828190088272, ...
limitless of > this phone because of H/W architecture. We need to redesign the HAL > architecture and device driver to support your request. But, as you > know that is too difficult due to lack of resource. We are trying to > help you with our all efforts but we cannot support your request as I > mentioned. (Sean ...
[ 0.1146182045340538, 0.2524404227733612, 0.5066173076629639, 0.13947027921676636, 0.47205254435539246, -0.14222943782806396, 0.39065074920654297, -0.26631537079811096, 0.32374149560928345, -0.610608696937561, -0.260267972946167, 0.5368293523788452, -0.38304170966148376, 0.029107527807354927...
correct it. **Bottom line** If you have a cellphone that does not send accelerometer events with the screen off, try updating your firmware. If this does not solve and you really want to do some serious hacking, re implement your hardware layer - hint: it's probably something to do with libsensors.so.
[ 0.22368577122688293, -0.047945424914360046, 0.4043821394443512, 0.29344016313552856, 0.03139444813132286, -0.441368043422699, 0.7424691915512085, 0.48978370428085327, 0.018314704298973083, -0.5964148640632629, -0.15296457707881927, 0.7054616212844849, -0.16788583993911743, -0.1709478050470...
I have a method which calls a method on an integer: ``` def print_time(time = 2.days.from_now) puts time end ``` I tried in console it seems to work, but is this code safe? I mean by example: * I run my server with cache caching enabled * I call the method which prints 2 days later * 1 hour later the value printe...
[ 0.3495238721370697, 0.24518896639347076, 0.1529913693666458, -0.07410117238759995, 0.14140576124191284, -0.08614536374807358, 0.3430485129356384, -0.1736879050731659, -0.31038159132003784, -0.6715664267539978, 0.13258253037929535, 0.6138432025909424, -0.4599014222621918, 0.0281258821487426...
caching or page caching) will not be evaluated again until the cache has been cleared. Or are you worried about the default argument value being cached when you define the method, and all subsequent calls might have the same value as a default? In this case, your console testing was valid and @Linux\_iOS.rb.cpp.c.lisp...
[ 0.03370371833443642, 0.19420213997364044, 0.12411587685346603, -0.05855754762887955, -0.22768807411193848, 0.030661357566714287, 0.4233170449733734, -0.1338856816291809, -0.20525968074798584, -0.27650246024131775, 0.11634844541549683, 0.5466839671134949, -0.48391950130462646, -0.0010321141...
Say I have a command I want to run (`cmd`) and a variable containing the arguments I want to pass to the function (something like `--foo 'bar baz' qux`). Like so: ``` #!/bin/sh command=cmd args="--foo 'bar baz' qux" ``` The arguments contain quotes, like the ones shown above, that group together an argument containi...
[ 0.3944716453552246, 0.43425488471984863, 0.3702518343925476, -0.20177052915096283, 0.07995794713497162, 0.17479977011680603, 0.15850576758384705, -0.17661015689373016, -0.07739493995904922, -0.2846173048019409, -0.08724281936883926, 0.6267154812812805, -0.41279783844947815, 0.2919723391532...
the command with *three* arguments (`--foo`, `bar baz`, and `qux`) as intended? One possibility is to use `eval`: ``` #!/bin/sh args="--foo 'bar baz' qux" cmd="python -c 'import sys; print sys.argv'" eval $cmd $args ``` That way you cause the command line to be interpreted rather than just split according to `IFS`...
[ 0.2771431803703308, -0.024189921095967293, 0.07490834593772888, -0.23232854902744293, -0.26555728912353516, 0.10301022231578827, 0.19214433431625366, -0.166886568069458, -0.23776619136333466, -0.19306202232837677, -0.4289979338645935, 0.6457325220108032, -0.623721718788147, -0.072240136563...
my accordion is a simple jquery accordion, when you click on the button(row) it expands content as usual. My question is, how can i get the next slide to open after also clicking a link within the open content pane? [jsfiddle](http://jsfiddle.net/tfksm/2/) If you have a link within a tab, you can create an event handl...
[ -0.509852945804596, -0.17823155224323273, 1.1331020593643188, -0.3379920423030853, 0.1622195541858673, 0.45828670263290405, -0.12835073471069336, -0.027513476088643074, -0.6793578863143921, -0.9248677492141724, 0.03375639021396637, 0.4545585811138153, -0.28367114067077637, 0.27790215611457...
What if i want to have an array of pointers to a function and the size of the array is not known from the beginning? I'm just curious if there's a way to do that. Using new statement or maybe something else. Something looking similar to ``` void (* testArray[5])(void *) = new void ()(void *); ``` You could use a `st...
[ 0.29103922843933105, -0.16173774003982544, 0.14450415968894958, 0.020459400489926338, -0.11527983844280243, 0.14574876427650452, 0.029180848971009254, -0.24820789694786072, -0.23881752789020538, -0.548041582107544, 0.11955499649047852, 0.6127055883407593, -0.3705083131790161, -0.0318057946...
into account that you don't know the size of the array during compilation time and that you are using C++ and not C.
[ 0.18136388063430786, 0.13309736549854279, -0.30392342805862427, -0.10845894366502762, -0.10437016189098358, -0.1878630369901657, 0.10685037076473236, -0.2953292429447174, -0.5314536690711975, -0.2620445191860199, -0.06012144684791565, 0.6691601872444153, -0.22730906307697296, -0.2484096586...
I have a Wifi iPad and [this compass](http://htmlcompass.com/) actually knows the direction of north. Now I know it's quite possible to use the gyroscope data to fairly accurately track device rotations once north has already been established, but how on earth does it know the actual direction? Now I'm pretty sure the...
[ 0.023377297446131706, 0.1317509114742279, 0.9021164774894714, 0.32422104477882385, -0.01330062560737133, -0.07072634994983673, 0.33112701773643494, 0.30641311407089233, -0.49444380402565, -0.37559667229652405, 0.39328673481941223, 0.12271349132061005, 0.1581544429063797, 0.1185093894600868...
around a stationary iPad. So it does have the magnetometer after all. iPad and iPhone (3GS and later) have a digital compass (magnetometer) chip onboard, such as the AK8975 3-axis Magnetic field sensor. By the way, it can be calibrated, see here: <http://support.apple.com/kb/TS2767> In addition iPad also has gyroscop...
[ -0.33559733629226685, -0.13534106314182281, 0.7203794717788696, 0.32117167115211487, 0.1428007036447525, 0.15322346985340118, -0.1097753494977951, 0.25787466764450073, -0.6175063252449036, -0.14677004516124725, 0.04172538220882416, 0.027412135154008865, -0.19469037652015686, -0.16833926737...
I am having trouble implementing the following behaviour in a dropdown menu with jQuery. I'd like it so when a user mousesover one of the options, a div is highlighted. A quick google search showed me an "non-jquery" way of doing this, which I've created a fiddle for here: <http://jsfiddle.net/RY5r4/> ``` <html> <hea...
[ 0.17206601798534393, -0.1627870500087738, 0.6437626481056213, -0.2898625433444977, -0.042053818702697754, -0.0004017125174868852, 0.2751273512840271, -0.40414339303970337, -0.06920188665390015, -0.7572690844535828, 0.03380061313509941, 0.409784734249115, -0.22554470598697662, -0.0953041240...
my select, but I am having problems determining what option is highlighted. How to I accomplish this? Mediawiki allows you to wrap html tags around links; you can set the default to not open a new tab/window, and for those you do want to have in a new window, wrap in a different class: ``` <span class="new-win">[http:...
[ 0.2834077477455139, -0.3111294209957123, 0.7844086289405823, -0.05304664373397827, -0.07943873852491379, -0.3423543870449066, 0.20350313186645508, -0.17230218648910522, -0.2680979073047638, -0.8691467046737671, -0.15063247084617615, 0.571821391582489, -0.3179241120815277, 0.169872596859931...
new_win = window.open($(this).attr('href'), 'offsite_popup') // Pop up a window to that URL if (window.focus) { new_win.focus() } // Give it focus if possible }); }); ``` **EDIT:** Modified for user's intent
[ 0.31942567229270935, -0.21563002467155457, 0.7940939664840698, -0.28968730568885803, 0.25448042154312134, -0.06542055308818817, 0.36028045415878296, 0.01806027442216873, -0.15255561470985413, -0.7603760361671448, -0.6461619138717651, 0.561620831489563, -0.2639952301979065, 0.26638329029083...
In a reply to a post I made the other day Dimitre pointed out, correctly of course, that I had given an XSLT 2 answer to an XSLT 1 question. However, he also upbraided me for posting an answer that hadn't been tested. I had in fact tested it and even though the version attribute was set to "1.0" and I used an XSLT 2 r...
[ 0.4065360724925995, 0.37196284532546997, 0.006852089427411556, -0.21741218864917755, -0.5395345687866211, -0.15144725143909454, 0.7285729050636292, -0.01367800310254097, -0.04293559864163399, 0.0062100524082779884, -0.2825698256492615, 0.3068094253540039, -0.9406551122665405, 0.12080741673...
my eyes started to bleed. FWIW: I use Oxygen and Saxon 9.3 EE Firstly, the XSLT specification says how an XSLT processor interprets the version attribute, but it doesn't constrain what pieces of software other than an XSLT processor do with it. For example, an IDE (such as XML Spy) might look at the version attribute ...
[ 0.5791181325912476, 0.22170120477676392, 0.5003973841667175, -0.43119266629219055, -0.2870314121246338, -0.10446610301733017, 0.41565972566604614, -0.09967179596424103, 0.13510851562023163, -0.295626699924469, 0.0074977451004087925, 0.7545895576477051, -0.1152687668800354, -0.0814052149653...
1.0 specification; what a 2.0 processor does is defined by the XSLT 2.0 spec. The XSLT 1.0 spec says that if the version is NOT 1.0, the processor runs in forwards compatibility mode. This basically means that it does its best to ignore constructs that aren't defined in the 1.0 spec. So if your stylesheet says version...
[ 0.19445128738880157, 0.01405870821326971, 0.4786022901535034, -0.17401203513145447, 0.1512727439403534, -0.23996692895889282, 0.27774253487586975, -0.2998628616333008, -0.18060168623924255, -0.5734189748764038, -0.3764638304710388, 0.41242367029190063, -0.4124380052089691, -0.0297858435660...
give a fallback behaviour for 1.0 processors. The design principle is that using 2.0 constructs should not cause a 1.0 processor to fail; wherever possible, it should cause it to run with some kind of fallback behaviour. The XSLT 2.0 specification (which controls the behaviour of a 2.0 processor) distinguishes verion<...
[ 0.2048766016960144, 0.13718917965888977, 0.38209477066993713, -0.30770084261894226, -0.14960770308971405, 0.027782559394836426, 0.6549888849258423, -0.348619669675827, -0.07081969827413559, -0.21628203988075256, -0.4221053719520569, 0.6953811645507812, -0.4987243413925171, -0.0517622418701...
floating point, even if the operands are decimals. When version>2.0, the processor runs in forwards compatible mode, which is very like forwards compatible mode in the 1.0 specification: it means that if you use XSLT 3.0 constructs, the processor will do its best to ignore them or execute fallback instructions.
[ -0.21804088354110718, 0.31150534749031067, 0.6725304126739502, -0.14390268921852112, -0.04399424046278, -0.12757377326488495, 0.06324362754821777, -0.15197736024856567, -0.305672287940979, -0.1621798425912857, -0.12641777098178864, -0.010660342872142792, -0.1618647426366806, 0.141208529472...
I suspect this is impossible, but thought I'd ask. Say I have a class with a method: ``` class A { public: void b(int c); }; ``` I can make a pointer to that member function: ``` void (A::*ptr)(int) = &A::b; (someAInstance.*ptr)(123); ``` I can also abuse function pointers and make a pointer that takes the `A...
[ 0.10208608955144882, 0.19658002257347107, 0.26108238101005554, -0.0807894691824913, 0.09078088402748108, -0.016360700130462646, 0.4153977036476135, -0.33189857006073, -0.08757589757442474, -0.5741362571716309, -0.13009025156497955, 0.6087064146995544, -0.2502653896808624, 0.286891996860504...
I've predefined. The `A` instance will stay constant for that particular function pointer, but there may be several function pointers all pointing to the same `A::b` method, but using different `A` instances. For example, I could make a separate wrapper function: ``` A* someConstantA = new A; void wrapper(int c) { ...
[ 0.2352137267589569, 0.05845443159341812, 0.30254340171813965, -0.38194212317466736, 0.11074105650186539, 0.09950188547372818, 0.3768693804740906, -0.35427436232566833, -0.07892490923404694, -0.2959825098514557, -0.1326063722372055, 0.704649031162262, -0.4012892246246338, 0.3225086331367492...
Is this in any way possible? --- **Edit**: Should've mentioned, I'm trapped in C++03 land, and also can't use Boost If you have a sufficiently new compiler (e.g. gcc 4.2+), it should include TR1, where you could use `std::*tr1*::bind`: ``` #include <cstdio> #include <tr1/functional> class A { public: void b(int...
[ -0.12193674594163895, -0.06271477043628693, 0.4437556862831116, -0.18738816678524017, 0.14408297836780548, 0.04828990623354912, 0.36777564883232117, -0.4688394367694855, -0.09344417601823807, -0.2926428020000458, -0.4558302164077759, 0.5111125111579895, -0.4321173429489136, -0.077102534472...
return 0; } ``` It is also doable in pure C++03 without TR1, but also much more messier: ``` std::binder1st<std::mem_fun1_t<void, A, int> > f = std::bind1st(std::mem_fun(&A::b), a); ``` You could also write your own function objects. Note that, in all the above cases, you need to be very careful about the li...
[ -0.10879579186439514, 0.0409032441675663, 0.4259527027606964, -0.26097071170806885, -0.10001366585493088, -0.1430586725473404, 0.40402349829673767, -0.3061211407184601, -0.1631731241941452, -0.4603687524795532, -0.20887228846549988, 0.4634230434894562, -0.3908105492591858, 0.00657239649444...
`enter code here`![enter image description here](https://i.stack.imgur.com/zLxhv.jpg) My problem is this: in this database the junction table contains some rows where the kha\_id and the icd\_fk are the same. While it's OK that kha\_id appears in icd\_junction more than once , it has to be with a separate icd\_fk. I c...
[ 0.11719657480716705, 0.49143606424331665, 0.22658690810203552, -0.014535035938024521, 0.11297357082366943, -0.0893479734659195, 0.2068188637495041, -0.30512189865112305, -0.3434458076953888, -0.8494281768798828, 0.22816422581672668, -0.00499312486499548, -0.6024148464202881, 0.652678668498...
V23 123456 V24 I need one of the rows kha_id=123456 and ICD_FK=V23 taken out. ``` This: ``` DELETE j1 FROM ICD_Junction AS j1 WHERE EXISTS ( SELECT 1 FROM ICD_Junction AS j2 WHERE j2.KHA_ID = j1.KHA_ID AND j2.ICD_FK = j1.ICD_FK AND j2.ID <
[ -0.020832136273384094, 0.19903087615966797, 0.3027220070362091, -0.03919089585542679, -0.2598133683204651, 0.3450584411621094, 0.24569155275821686, -0.5868025422096252, -0.31454893946647644, -0.6427875757217407, -0.027430949732661247, -0.017408203333616257, -0.3011733591556549, 0.344771981...
j1.ID ) ; ``` will delete, for each `KHA_ID` and `ICD_FK`, all but one relevant row of `ICD_Junction`. (Specifically, it will keep the one with the least `ID`, and delete the rest.) Once you've run the above, you should fix whatever code caused the duplication, and add a [unique constraint](http://msdn.micro...
[ 0.16663412749767303, 0.3548913598060608, 0.29967203736305237, 0.09040307253599167, 0.1803325116634369, -0.09356091916561127, 0.21356195211410522, -0.003361788112670183, -0.4554702341556549, -0.7421858310699463, -0.13717488944530487, 0.16962780058383942, -0.5169657468795776, 0.3918947279453...
ICD_FK, COUNT(1) -- the number of duplicates FROM ICD_Junction GROUP BY KHA_ID, ICD_FK HAVING COUNT(1) > 1 ; ```
[ -0.110087089240551, 0.3368700444698334, 0.10904791951179504, 0.05910499766469002, -0.009063848294317722, 0.12318810820579529, 0.11336848884820938, -0.28476661443710327, -0.43471065163612366, -0.34455642104148865, -0.04908805713057518, -0.25813013315200806, -0.669289231300354, 0.82359015941...
This method seems to have stopped working. App code was tested thoroughly last week and all was well. This morning...scrollbars are appearing on our page tab apps. Example: <http://www.facebook.com/HondaPowersports/app_329359370439338> Very simple code on this page - it is all static HTML with just one FB method ca...
[ 0.17351944744586945, 0.2720738649368286, 0.5940877795219421, -0.1092531830072403, -0.31917259097099304, 0.28508326411247253, 0.5039105415344238, -0.42776399850845337, -0.25433313846588135, -0.7181993126869202, 0.4115469753742218, 0.6421487927436829, -0.08177509158849716, -0.258650273084640...
This code works (if I understood your aim correctly): ``` @interface ViewController : UIViewController { NSMutableArray *leftButtonsArray; NSMutableArray *rightButtonsArray; } @end ``` // ``` @implementation ViewController #pragma mark - Objects Processing - (void)buttonDownAct:(UIButton *)sender { s...
[ -0.0586637407541275, -0.45368969440460205, 0.5344775915145874, -0.1676880419254303, -0.050374653190374374, 0.037392470985651016, 0.3904353976249695, -0.4245941936969757, -0.23328834772109985, -0.8455109596252441, -0.2512681484222412, 0.4072897434234619, -0.43581661581993103, -0.10840319842...