text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
bitmap object byte[] b = baos.toByteArray(); return b; } ``` This is how i m fetching Blob as Bitmap from database `mImageView.setImageBitmap(BitmapFactory.decodeByteArray(blob, 0, blob.length));` //blob by cursor Likely this never worked, and the fact that it seemed to was dumb luck. Looking...
[ -0.1700521558523178, -0.04258633404970169, 0.652488648891449, -0.14119616150856018, 0.008276417851448059, 0.03972843289375305, 0.5304840207099915, -0.16650700569152832, -0.29344528913497925, -0.6801066994667053, -0.07179886102676392, 0.5444840788841248, -0.34929317235946655, 0.222859144210...
I am trying to compile the imagemagick (imagick) extension to use in a non-thread-safe environment on windows. I am using PHP 5.3.10 and have set up Visual C++ express as my compiling environment. The problem is that I am using a non-thread-safe version of PHP as a FCGI module in Apache 2.2. Thus, my PHP is supplied ...
[ 0.21583476662635803, 0.4181283712387085, 0.4425930976867676, -0.22663839161396027, -0.2819401025772095, 0.004261936992406845, 0.43941062688827515, 0.08956988155841827, -0.12994007766246796, -0.70386803150177, 0.3235519230365753, 0.40562671422958374, -0.5353009700775146, 0.09529431909322739...
do this on a windows environment. How can I compile the extension so that it is non-thread-safe? --- I downloaded the threadsafe binary of PHP 5.3.10 to get a copy of php5ts.lib. I was then able to compile the extension. I am guessing that setting the `ZTS` preprocessor directive to either `1` or `0` would cause th...
[ 0.2984991669654846, 0.06046680361032486, 0.6023944020271301, -0.06781043112277985, 0.0709991455078125, -0.28867655992507935, 0.4784895181655884, 0.001379029476083815, -0.22528015077114105, -0.5356165170669556, -0.04587935283780098, 0.933355450630188, -0.046548377722501755, 0.06104950234293...
of WAMP. Reason being that it used a threadsafe version of PHP. I placed the dll in the ext folder in the PHP installation and enabled it in `php.ini`. However, even after trying both the ts and nts version in WAMP, I would get: ``` PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.10/...
[ 0.38034218549728394, -0.09612400829792023, 0.6911906003952026, -0.14338447153568268, -0.3268207609653473, -0.15812817215919495, 0.5819490551948547, -0.08375237882137299, -0.13752467930316925, -0.7549505829811096, 0.1605808585882187, 0.6328091025352478, -0.6184019446372986, 0.27118745446205...
machine running a nts version of PHP 5.3.10 on Apache 2.2 (all installed manually). --- Looks like I could be wrong regarding the `ZTS` preprocessor. If I set `ZTS=0` and compile, using dependency walker on the compiled dll still shows that it requires `php5ts.dll` which is only present on threadsafe versions of PHP....
[ 0.23705404996871948, 0.250614732503891, 0.35610178112983704, -0.12841886281967163, -0.13462603092193604, -0.19968578219413757, 0.6338019967079163, -0.1961968094110489, -0.23520834743976593, -0.6956828832626343, 0.021287109702825546, 0.6499088406562805, -0.40641286969184875, 0.2589894533157...
still getting: ``` PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'imagick.dll' in Unknown on line 0 ``` And errors from dependency walker: ``` Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different...
[ -0.1484067291021347, 0.10986074060201645, 0.6273679137229919, 0.03274506703019142, -0.06741182506084442, -0.04179297015070915, 0.4794152081012726, 0.015686990693211555, -0.5426918268203735, -0.49066197872161865, -0.12698021531105042, 0.7004793286323547, -0.36842602491378784, 0.048478733748...
answer.** ================================== Got it! I hope this can help those compiling php extensions on windows in the future. What I have done is based on: <https://wiki.php.net/internals/windows/stepbystepbuild> Note: I read an answer on this site that said compiling PHP extensions by itself on windows is unsupp...
[ 0.29841557145118713, 0.09693754464387894, 0.45013588666915894, -0.0038103521801531315, -0.2156495302915573, -0.03625728189945221, 0.47363123297691345, -0.28870707750320435, -0.1690259873867035, -0.49819231033325195, 0.08607405424118042, 0.5020332336425781, -0.2566547989845276, -0.088921949...
older or newer). 2. Install the [SVN client tools](https://sliksvn.com/download/) if you haven't done so and restart for your `PATH` variable to take effect. 3. Get the [PHP SDK binary tools](https://windows.php.net/downloads/php-sdk/) and extract it to `C:\php-sdk`. 4. Start the `CMD Shell` under `Microsoft Windows SD...
[ 0.1621975302696228, 0.11332348734140396, 0.903985857963562, 0.00806586816906929, 0.04060719907283783, -0.392261803150177, 0.1846214234828949, -0.2414073497056961, -0.25218531489372253, -0.7451694011688232, -0.40288761258125305, 0.6906875967979431, -0.19999808073043823, -0.00595366116613149...
[deps](https://windows.php.net/downloads/php-sdk/) and extract everything to `C:\php-sdk\php53dev\vc9\x86`. You may be prompted to overwrite any existing folders, so press yes. 10. run `cd C:\php-sdk\php53dev\vc9\x86` 11. Check out the latest version of your extension from the svn repository: `svn co http://svn.php.net...
[ 0.39285922050476074, -0.061176300048828125, 0.5159585475921631, 0.2807437777519226, 0.12494008988142014, -0.09803757816553116, 0.2397260218858719, -0.24283798038959503, -0.4656124711036682, -0.6995394229888916, -0.24103975296020508, 0.6996397972106934, -0.3237369954586029, -0.3899348676204...
directory from the ImageMagick install directory to `C:\php-sdk\php53dev\vc9\x86\deps\include`. 14. Copy the contents of the `lib` directory from the ImageMagick install directory to `C:\php-sdk\php53dev\vc9\x86\deps\lib` 15. Now, let's build: run `cd C:\php-sdk\php53dev\vc9\x86\php5.3-xyz` then `buildconf` then `confi...
[ 0.21738603711128235, 0.12285128235816956, 0.9101981520652771, -0.00533544784411788, 0.11443164199590683, -0.177414670586586, 0.08547588437795639, -0.06709691882133484, -0.15236616134643555, -0.8978305459022522, -0.20439651608467102, 0.9104372262954712, -0.4614606499671936, 0.02288136817514...
so check `configure --help` for the flag to use. If you add `=shared` after the extension flag, it will be compiled as a separate DLL, which si what we want. 17. Compile: run `nmake` then `nmake snap`. 18. Done :) Check `C:\php-sdk\php53dev\vc9\x86\php-5.3.10\Release` (non-thread-safe) or `C:\php-sdk\php53dev\vc9\x86\p...
[ 0.34494712948799133, -0.03836099058389664, 0.694541335105896, 0.1840106099843979, 0.3047844171524048, -0.4713578224182129, 0.44815266132354736, -0.30540117621421814, -0.1783650815486908, -0.6284462213516235, -0.33402812480926514, 0.6402382850646973, -0.32841813564300537, -0.180788889527320...
does not work properly, make sure you reboot to update your `PATH` variable. In my case, I need to have the imagemagick install directory in my `PATH` variable. 21. ??? 22. Profit!
[ 0.7218716740608215, -0.32068073749542236, 0.629715621471405, 0.11345595121383667, 0.06728248298168182, -0.20394766330718994, 0.20604832470417023, -0.1336154192686081, -0.16554760932922363, -0.5763143301010132, 0.2480471283197403, 0.9818527698516846, -0.09839019179344177, 0.0196899045258760...
I made a demo empty app and add a navigation controller with the view ``` UINavigationController *navBar = [[UINavigationController alloc]initWithRootViewController:objFirstViewControllerViewController]; [self.window addSubview:navBar.view]; ``` After it i add a table view on the first view controller like this . ...
[ -0.14170609414577484, 0.14818058907985687, 0.6678868532180786, -0.008799120783805847, -0.03969923406839371, 0.29517096281051636, 0.4836941659450531, -0.7239893674850464, -0.01940397173166275, -0.9101566672325134, -0.22418005764484406, 0.8756735324859619, -0.3325071632862091, -0.06100681051...
when i scroll on my table or click any cell to go on the next view it just crash and give these two error on clicking and scrolling respectively. ``` [__NSCFArray tableView:didSelectRowAtIndexPath:] [__NSCFDictionary tableView:cellForRowAtIndexPath:] ``` I don't understand what is getting wrong this code it have bee...
[ 0.010163512080907822, 0.09368491172790527, 0.8142046332359314, 0.12358283996582031, -0.1421363353729248, -0.0926862508058548, 0.14577101171016693, -0.30296701192855835, -0.07078607380390167, -0.9087173342704773, 0.16671183705329895, 0.6602804660797119, -0.3275080621242523, 0.02499795891344...
app run successfully actually it was crashing due to memory leak I reference the class in delegate with local object but the it got released when it tried to add the data on it and when table's delegate and datasource try to add the things in the current class it was released and it throw message from those message ins...
[ 0.18027947843074799, -0.10226961225271225, 0.32843703031539917, 0.0924404039978981, -0.07732996344566345, 0.09818147122859955, 0.44072461128234863, -0.17510241270065308, -0.3967191278934479, -0.366171270608902, 0.012229093350470066, 0.6359479427337646, -0.546387255191803, -0.17564326524734...
delegate class in the `.h` file: ``` FirstViewControllerViewController *objFirstViewControllerViewController; @property (strong, nonatomic) FirstViewControllerViewController *objFirstViewControllerViewController; ``` Then my table started behaving properly and all things that I was having problem in.
[ -0.07523619383573532, 0.16440246999263763, 0.2137339860200882, 0.10680282860994339, -0.22672003507614136, -0.19560202956199646, 0.4072255790233612, -0.3974553644657135, -0.1497030407190323, -0.8697727918624878, -0.0679837316274643, 0.6335275769233704, -0.10377500206232071, 0.32804954051971...
I am parallelizing calls to newSeed() and rand(),static member functions of class Random. newSeed() feeds a static member of class Random (let's call it seed). To be more concrete, I parallelize calls to this function in another class, the Method class: ``` double* Method::randomPoint(double* bottom_, double* top_ )...
[ 0.3340569734573364, -0.24453000724315643, 0.18642368912696838, -0.11107121407985687, -0.07085598260164261, 0.3833262622356415, -0.13122016191482544, -0.26040273904800415, -0.16583171486854553, -0.39831969141960144, 0.3842245638370514, 0.23028695583343506, -0.34584909677505493, 0.4222595691...
} ``` To sum up, in each parallelized call, I create a new instance of class Random, I call newSeed() and rand() method in this object. Since newSeed() is called on a given instance, I hope that newSeed() initializes the seed member for this object - and thus for this thread only. Since seed is static and newSeed() i...
[ 0.09592804312705994, 0.10254548490047455, 0.05120307579636574, 0.103943832218647, 0.15879780054092407, 0.039186425507068634, -0.04206499084830284, 0.22468777000904083, 0.04348854720592499, -0.6793076395988464, 0.2804197371006012, 0.5714259147644043, -0.31653890013694763, 0.4450918734073639...
process. Also, the threads are running in the same process, meaning that are sharing the memory, using the same classes So, if you modify the static field seed, all of the "Random" instances in all of your threads will have the modification.
[ 0.11542253196239471, -0.18560397624969482, -0.1255427598953247, 0.31419456005096436, 0.19285480678081512, 0.10822726041078568, -0.1080220565199852, 0.10267290472984314, -0.4050428569316864, -0.7653761506080627, 0.42351460456848145, 0.1813795268535614, -0.21004736423492432, 0.71429824829101...
My items store in MongoDB like this : ``` {"ProductName":"XXXX", "Catalogs" : [ { "50008064" : "Apple" }, { "50010566" : "Box" }, { "50016422" : "Water" } ]} ``` Now I want query all the items belong to Catalog:50008064,how to? (the catalog id "50008064" , catalog n...
[ 0.1516757756471634, 0.3240257501602173, 0.3683077096939087, 0.18659907579421997, 0.3361626863479614, 0.2995899021625519, 0.03197552636265755, -0.012456132099032402, -0.5155619382858276, -0.5123928785324097, -0.17871403694152832, 0.5154404044151306, 0.01654493249952793, 0.5735082626342773, ...
such I would consider it a schema bug and you should refactor/migrate to the following model which does allow for indexing : ``` {"ProductName":"XXXX", "Catalogs" : [ { id : "50008064", value : "Apple" }, { id : "50010566", value : "Box" }, { id : "5001642...
[ 0.08200488239526749, 0.4247541129589081, 0.10263669490814209, 0.09974085539579391, 0.3942161798477173, 0.007433572318404913, -0.027693426236510277, 0.06410449743270874, -0.29142048954963684, -0.5052753686904907, -0.12663446366786957, 0.5323933362960815, -0.34013116359710693, 0.270879507064...
value : "Water" } ]} ``` And then index : ``` ensureIndex({'Catalogs.id':1}) ``` Again, I strongly suggest you change your schema as this is a potential performance bottleneck you cannot fix any other way.
[ 0.05085473135113716, 0.24725237488746643, 0.2625424861907959, 0.04290292412042618, 0.24049155414104462, -0.2715611755847931, -0.08071007579565048, -0.23573745787143707, 0.1296532303094864, -0.6476395130157471, 0.030483419075608253, 0.7060831189155579, -0.23211120069026947, 0.32810363173484...
I have a table with a column ancestry holding a list of ancestors formatted like this "1/12/45". 1 is the root, 12 is children of 1, etc... I need to find all the records having a specific node/number in their ancestry list. To do so, I wrote this sql statement: ``` select * from nodes where 1 in (nodes.ancestry) ``...
[ 0.07490880787372589, 0.24577738344669342, 0.07128485292196274, 0.0490986593067646, 0.2427954524755478, 0.3079909086227417, 0.26002538204193115, -0.41022568941116333, -0.1703716367483139, -0.7524836659431458, 0.29525426030158997, 0.13649171590805054, 0.12616516649723053, 0.32141420245170593...
a job for `LIKE`, not `IN`. If we assume you want to search for this value in any position, and then we might try: ``` select * from nodes where '/' + nodes.ancestry + '/' like '%/1/%' ``` Note that exact syntax for string concatenation varies between SQL products. Note that I'm prepending and appending to the `an...
[ 0.12422943860292435, -0.00374690443277359, 0.025095060467720032, -0.14911730587482452, 0.2093147188425064, 0.13205072283744812, 0.11124636232852936, -0.1516163945198059, -0.007458921987563372, -0.4456065595149994, -0.16186244785785675, 0.25313055515289307, -0.02147703245282173, -0.16713467...
I want to login using twiter app for that i used gem 'omniauth-twitter' now please tell me whats app url in twitter when i want to use localhost:3000 i gave <http://0.0.0.0:3000> as url and in call back url my index page like localhost:3000/index my app not able to redirect to twiiter page on click on this link <htt...
[ 0.6587438583374023, 0.23194055259227753, 0.3529573976993561, -0.016300832852721214, -0.29055601358413696, 0.4484829008579254, 0.6157999634742737, -0.13008758425712585, -0.11818385869264603, -0.6756396293640137, 0.3523448705673218, 0.6342888474464417, 0.22819651663303375, 0.0253187064081430...
string concatenation varies between SQL products. Note that I'm prepending and appending to the `ancestry` column so that we don't have to treat the first/last items in the list differently than middle items. Note also that we surround the `1` with `/`s, so that we don't get false matches for e.g. with `/51/` or `/12/`...
[ 0.02674027904868126, -0.09968513250350952, 0.030061569064855576, -0.194318026304245, -0.09288395941257477, -0.19216744601726532, 0.07548168301582336, 0.12168695777654648, -0.06396482139825821, -0.2895919680595398, -0.06495118886232376, 0.08860810101032257, -0.09857743978500366, 0.116842329...
Title may be confusing, but here's explanation with code. Based on some conditions, I may call `actionContact` even if user has called `actionIndex`. **Solution:1** ``` public function actionIndex() { $a = 5; if($a == 5){ $this->actionContact(); } else{ $this->ren...
[ -0.03155524656176567, -0.30720067024230957, 0.6251027584075928, -0.027882440015673637, 0.09787257760763168, -0.050584908574819565, 0.30444666743278503, -0.20839855074882507, -0.1197056993842125, -0.4201364815235138, -0.5371431708335876, 0.7104019522666931, -0.33506548404693604, 0.287283152...
{ // Some codes $this->render('contact'); } ``` **Solution:2** ``` public function actionIndex() { $a = 5; if($a == 5){ // Repeat code from actionContact method $this->render('contact'); } else{
[ -0.05800525099039078, -0.32797926664352417, 0.4286630153656006, -0.3029528856277466, 0.0985451340675354, 0.27318134903907776, 0.3410623371601105, -0.3359884023666382, -0.15748107433319092, -0.5083497166633606, -0.428414523601532, 0.6942520141601562, -0.39106348156929016, -0.054384797811508...
$this->render('index'); } } ``` **Solution:3** I can redirect to contact url. I think, solution 1 works fine for me and I would prefer that. But since I am new to yii, I would like to know, if its the way to go ? "Repeat code" is very rarely the correct answer. Redirects involve additional overhead, and...
[ 0.08175168186426163, -0.13904310762882233, 0.5546737909317017, -0.08715984225273132, -0.4953588545322418, -0.1346769481897354, 0.3787085711956024, 0.03504262864589691, -0.013815410435199738, -0.6687377691268921, -0.2154059261083603, 0.5570067167282104, -0.43895065784454346, 0.1860858500003...
Can we able to create two instance of log4j in class one to write in file and another in jdbcadapter? ``` // one to write log in console Logger log = Logger.getLogger(this.getClass()); // write in database within one class Logger log1 = Logger.getLogger(this.getClass()); ``` My jdbc adapter is My file adapter i...
[ -0.08564507961273193, -0.06910747289657593, 0.3247373700141907, -0.014636775478720665, -0.12046429514884949, 0.20479102432727814, -0.05591745674610138, -0.0866071954369545, -0.23739632964134216, -0.9770368337631226, -0.0246064942330122, 0.5865143537521362, -0.31015440821647644, 0.386094778...
to a file locally and to a socket listener on another computer. Moreover if want to write logs to different outputs according to the level then you could try [Log to appender by level](http://wiki.apache.org/logging-log4j/LogToAppenderByLevel).
[ 0.35465720295906067, -0.1678028255701065, 0.16253384947776794, 0.14297974109649658, -0.12058473378419876, -0.12051703780889511, 0.17294111847877502, -0.10098756104707718, -0.5011541843414307, -0.5167174935340881, -0.043227776885032654, 0.44489243626594543, -0.12035265564918518, 0.159142002...
I've a GridView with three rows like this ``` <tr> <th>SlNo</th> </tr> <tr> <td>1</td> </tr> <tr> <td>2</td> </tr> ``` I've the following code to traverse through the rows ``` var GridViewRow=GridView.getElementsByTagName('tr') ``` Here the row length is 3. I travese through the `GridViewRow` using for ...
[ 0.14507348835468292, -0.11480653285980225, 0.702734112739563, -0.3623618185520172, -0.03718314692378044, 0.20430907607078552, 0.12466089427471161, -0.573948085308075, 0.04490874335169792, -1.0076913833618164, 0.106011301279068, 0.36416932940483093, -0.12598028779029846, 0.1538168340921402,...
//cells would be accessed using the "cell" variable assigned in the for loop } ``` you can also try out ``` var tbl = document.getElementById('yourTableId'); var rows = tbl.getElementsByTagName('tr'); for (var i = 0; i < rows.length; i++) { if(rows[i].getElementsByTagName('td').length > 0) { ...
[ 0.17691119015216827, -0.13029123842716217, 0.3673437833786011, -0.06856217980384827, 0.47139739990234375, 0.10553210973739624, 0.3693968951702118, -0.5224276185035706, -0.0901888906955719, -0.6548977494239807, -0.19521436095237732, 0.4947753846645355, -0.42859891057014465, 0.18754927814006...
I'm trying to find out who is the user who last changed a document. Preferably, I would like to make collections based on this info... All I can find is the Modification Date... Using the script from [this link](http://plone.org/documentation/kb/view-an-objects-catalog-information), I do not seem to find the informati...
[ 0.1985602080821991, 0.13025256991386414, 0.5905224680900574, 0.06750120967626572, 0.19774331152439117, 0.09714701026678085, 0.1878061145544052, -0.03806206211447716, -0.570749044418335, -0.5256370306015015, -0.21338579058647156, 0.47252151370048523, -0.12108243256807327, 0.3910771608352661...
of the latest modifier. If it's OK to read the information from the version metadata and limit the feature only for version controlled content types, I think, you'd need to 1. [Register a new index](http://collective-docs.readthedocs.org/en/latest/searching_and_indexing/indexing.html#adding-index-using-add-on-product...
[ 0.2657383978366852, -0.10451705753803253, 0.9580594301223755, 0.07318457961082458, 0.12136820703744888, -0.2612506151199341, -0.27223342657089233, -0.5059990286827087, -0.4108676016330719, -0.5316078662872314, -0.35044974088668823, 0.5428800582885742, -0.3044743835926056, 0.105598427355289...
to get the information listed on its tabular view: ``` <?xml version="1.0"?> <atcttool> <topic_indexes> <index name="last_modifier" description="The last user, who has modified the object" friendlyName="Last Modifier" enabled="True"> <criteria>ATCurrentAuthorCriterion</criteri...
[ -0.43453851342201233, -0.24114112555980682, 0.7014887928962708, 0.13429412245750427, 0.023970933631062508, -0.08765103667974472, -0.059205688536167145, -0.1280023157596588, -0.17025630176067352, -0.5525345206260681, -0.3154180943965912, 0.5157594680786133, -0.125793918967247, 0.26647770404...
last user, who has modified the object" friendlyName="Last Modifier" enabled="True"/> </topic_metadata> </atcttool> ``` 3. [Write a custom indexer](http://collective-docs.readthedocs.org/en/latest/searching_and_indexing/indexing.html#custom-index-methods), which [looks up the last modifie...
[ -0.2383347600698471, -0.0761118084192276, 0.9820215702056885, 0.04336903244256973, 0.05223707854747772, -0.041655465960502625, 0.06400981545448303, -0.3837297558784485, -0.3300389051437378, -0.5318770408630371, -0.5744221806526184, 0.45322972536087036, -0.04102915897965431, 0.1183276921510...
creator = None except IndexError: creator = None site = getUtility(ISiteRoot) rt = getToolByName(site, "portal_repository") if rt is None or not rt.isVersionable(context): # not versionable; fallback to the creator return creator history = rt.getHistoryMetadata(context) ...
[ -0.11826931685209274, 0.1664959192276001, 0.4834459125995636, 0.08590244501829147, 0.1536455601453781, -0.16229209303855896, 0.3310849666595459, 0.07763683795928955, -0.20195454359054565, -0.706608235836029, -0.46357667446136475, 0.5905787348747253, -0.026962343603372574, 0.620584666728973...
return creator if not rt.isUpToDate(context): # history not up-to-date; fallback to the authenticated user mtool = getToolByName(site, "portal_membership") if mtool.isAnonymousUser(): # no authenticated user found; fallback to the creator return creator else:
[ 0.09622849524021149, 0.055629391223192215, 0.42721623182296753, 0.08900894224643707, 0.2683326303958893, -0.28274187445640564, 0.5727006793022156, -0.0374675951898098, -0.02088785171508789, -0.5771388411521912, -0.411629855632782, 0.6564781069755554, -0.144590362906456, 0.6486548185348511,...
return mtool.getAuthenticatedMember().getId() length = history.getLength(countPurged=False) last = history.retrieve(length - 1) if not last or type(last) != dict: # unexpected version metadata; fallback to the creator return creator metadata = last.get("metadata") if not metadata ...
[ 0.16470582783222198, -0.24795234203338623, 0.4056715965270996, -0.030051978304982185, 0.24225372076034546, 0.05893750488758087, 0.34808751940727234, -0.2689417004585266, -0.41503655910491943, -0.31999000906944275, -0.4365968406200409, 0.6184486746788025, -0.22165732085704803, 0.50900781154...
if not sys_metadata or type(sys_metadata) != dict: # unexpected version metadata; fallback to the creator return creator principal = sys_metadata.get("principal") if not principal or type(principal) != str: # unexpected version metadata; fallback to the creator return creator ...
[ -0.14275719225406647, -0.26436248421669006, 0.3067288100719452, 0.1452922821044922, 0.3161468207836151, -0.2458341270685196, 0.05853596329689026, 0.021225232630968094, -0.2701825797557831, -0.08153722435235977, -0.48435738682746887, 0.541654646396637, -0.1421249359846115, 0.745806455612182...
the version control mechanism is triggered by the same events as catalog indexer, we may not be sure that the metadata for the most recent version exists when we are called to index it. Above, I apply dummy heuristics that when the repository says that the version history metadata is outdated when compared to the objec...
[ 0.10729790478944778, 0.0951826274394989, 0.5394338965415955, 0.20013092458248138, 0.10724417865276337, -0.5130264759063721, 0.013319182209670544, 0.14228394627571106, -0.4764438271522522, -0.5291986465454102, -0.055522460490465164, 0.8469395637512207, 0.08411183208227158, 0.504168212413787...
When i try to parse xml containing email address say john@abc.com, it just shows "abc.com". How can i make it to show the complete email address. In other cases i've removed some special charcters by using the following:- ``` string=[string stringByReplacingOccurrencesOfString:@"$" withString:@""]; ``` but here i'...
[ 0.10319044440984726, 0.43066897988319397, 0.2186306118965149, -0.17073145508766174, 0.021833227947354317, 0.07278141379356384, 0.6285721659660339, -0.17330966889858246, -0.1544238179922104, -0.6192168593406677, -0.05618266016244888, 0.4989125728607178, -0.4483916461467743, 0.02884098328649...
Is there any limits for the record in the temporary table.. I have tried with 1.3 million records.. may be i have to deal with billions in the future as the application demands.. Is it possible? If i could know the limit of records.. i could try to split the records from source db and manage within the limit. Thanks in...
[ 0.6550006866455078, 0.04589730128645897, 0.1271248310804367, 0.3786562383174896, -0.1567174345254898, -0.4380459487438202, 0.17920885980129242, -0.04409436881542206, -0.31138262152671814, -0.26980486512184143, 0.30593550205230713, 0.37668949365615845, -0.35955148935317993, 0.29818180203437...
fit into RAM as the tempdb is stored on disk just like any other database (only with more aggressive caching and less logging). Source: <http://msdn.microsoft.com/en-us/library/ms190768.aspx>
[ 0.13354554772377014, 0.10297433286905289, -0.009409396909177303, -0.01504541840404272, 0.07015018910169601, 0.08881998807191849, 0.34198468923568726, -0.18997403979301453, -0.3796550929546356, -0.7664838433265686, -0.38307878375053406, 0.19746270775794983, -0.32114624977111816, -0.09937255...
Good Afternoon Developers, This is my function to generate the crystal Report,This will take the Report Name and ReportQuery as a input parameter and will generate a dataset , With this dataset how can i design my Report??Because this is Generated at the runtime , How can i access that to generate my ReportDesign?? ``...
[ 0.3859092891216278, 0.12324779480695724, 0.7955723404884338, -0.007026910316199064, -0.10334871709346771, -0.4081018269062042, 0.23123694956302643, -0.28810325264930725, -0.008085429668426514, -0.8454217314720154, -0.15236172080039978, 0.8269633650779724, -0.2599385380744934, 0.06077249720...
SqlConnection myConnection=new SqlConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString); SqlCommand myCommand=new SqlCommand(rptQuery,myConnection); SqlDataAdapter MyDA=new SqlDataAdapter(myCommand); MyDA.Fill(myDS,"ReportTable"); crReportDocument.SetDataSource(myD...
[ -0.000313456985168159, 0.016782043501734734, 0.6368212699890137, 0.09242416173219681, -0.10900567471981049, -0.11977777630090714, 0.25638341903686523, -0.291491836309433, -0.17149052023887634, -0.7098388671875, -0.306520015001297, 0.31008830666542053, -0.35656699538230896, 0.34165388345718...
design the report. this can be achieved by the following code. ``` private void WriteSchemaToFile(DataSet thisDataSet){ // Set the file path and name. Modify this for your purposes. string filename="mySchema.xml"; // Write the schema to the file. thisDataSet.WriteXmlSchema(filename); } ``` now add the ab...
[ 0.49213096499443054, 0.3005654811859131, 0.5776551365852356, 0.09966012090444565, -0.1952248215675354, -0.47891154885292053, -0.12112011015415192, -0.3039472997188568, 0.01782812736928463, -0.7860009074211121, 0.023863928392529488, 0.6272527575492859, -0.2897885739803314, -0.02408171817660...
in your Dataset match exactly.
[ 0.5451861023902893, 0.1444474756717682, 0.3834434449672699, 0.32029637694358826, 0.11975595355033875, -0.10185305029153824, -0.0851474180817604, 0.08048907667398453, -0.050470784306526184, -0.5173757076263428, 0.15071143209934235, 0.40799543261528015, -0.16181844472885132, 0.04919601604342...
I have a save button in a `JFrame` ;on clicking save the 'save' text sets to 'saving....'; I need to set that text as 'saved' after a delay of 10 seconds.How is it possible in java? Please help... ``` try { Thread.sleep(4000); } catch (InterruptedException e) { e.printStackTrace(); } ``` This is what i did....
[ 0.3879850506782532, 0.04619065672159195, 0.25452396273612976, -0.1762654185295105, 0.12129957973957062, -0.07386577874422073, 0.4392337203025818, -0.11523645371198654, -0.5128348469734192, -0.5487550497055054, 0.03985302522778511, 0.4975777268409729, -0.29611334204673767, -0.05487249046564...
have a situation, when user clicks the button and the task is supposed to run in the background (while the user does other things), then I would use the following approach: ``` button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ...
[ 0.2490951269865036, -0.49396127462387085, 0.3374473452568054, -0.350055992603302, 0.31778496503829956, 0.0014919410459697247, 0.4625612497329712, -0.29891249537467957, -0.3213372230529785, -0.492471843957901, -0.2717348039150238, 0.8204132318496704, -0.5083813071250916, -0.2370946109294891...
want new SwingWorker<Void, Void>() { @Override protected Void doInBackground() throws Exception { // Do the calculations // Wait if you want Thread.sleep(1000);
[ 0.791191577911377, -0.25916117429733276, 0.3078165352344513, -0.0789947435259819, 0.5256876349449158, 0.045503322035074234, 0.04885315150022507, -0.6228439211845398, -0.45393529534339905, -0.39777085185050964, 0.0615413635969162, 0.5345213413238525, -0.38019853830337524, 0.1132076457142829...
// Dont touch the UI return null; } @Override protected void done() { try {
[ 0.5439664125442505, -0.20450671017169952, 0.30449381470680237, -0.1788976639509201, 0.22910858690738678, -0.2411743551492691, 0.6048962473869324, 0.1073678657412529, 0.16987457871437073, -0.33833011984825134, -0.11739739030599594, 0.4857300817966461, -0.24417628347873688, 0.112857125699520...
get(); } catch (Exception ignore) { } finally { button.setEnabled(true); // restore the text if needed }
[ -0.08876097947359085, -0.36036577820777893, 0.6799838542938232, -0.11294393241405487, 0.30216360092163086, -0.03857942298054695, 0.47489169239997864, -0.006419431418180466, -0.18095959722995758, -0.6487786769866943, -0.5966354012489319, 0.742763102054596, -0.25155138969421387, 0.0329462066...
} }.execute(); } }); ``` Finally, the initial solution that was using the [`Swing` specific timer](http://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html): ``` final JButton button = new JButton("Save"); button.addActionListener(new ActionListener() { @Override public ...
[ 0.11113536357879639, -0.47298336029052734, 0.6752676963806152, -0.4946942627429962, 0.2069297730922699, 0.31522417068481445, 0.24860449135303497, -0.7465082406997681, -0.4706416428089142, -0.2417934238910675, -0.20584969222545624, 0.628114640712738, -0.4284801185131073, -0.2221973985433578...
// Take somehow care of multiple clicks button.setText("Saving..."); final Timer t = new Timer(10000, new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { button.setText("Saved"); }
[ 0.22577889263629913, -0.5797386765480042, 0.5709797143936157, -0.3857809901237488, 0.4529953896999359, 0.4037054181098938, 0.44572845101356506, -0.3683597147464752, -0.3252623379230499, -0.46919411420822144, -0.1432691216468811, 0.8551461696624756, -0.3417350649833679, -0.05198509618639946...
}); t.setRepeats(false); t.start(); } }); ```
[ 0.04053641855716705, -0.10201738774776459, 0.21539334952831268, -0.468211829662323, 0.38536104559898376, -0.2804628312587738, 0.4758496582508087, -0.30899909138679504, -0.019358118996024132, -0.2998526692390442, -0.7047393321990967, 0.813525915145874, -0.6335029006004333, 0.266282618045806...
I am developing one wcf client application. here i have 7 different requests. is there any way to do like below demo code? ``` T obj =new anyobject ; obj=DeSeriableXMLToObject<typeof(obj)>(string); if(obj.property1=="200") { } ``` My deserialise function as below: ``` public static T DeSeriableXMLToObject<T>(st...
[ 0.3751521408557892, -0.0999397411942482, 0.73016756772995, -0.16600224375724792, -0.34102025628089905, 0.11775391548871994, 0.22582276165485382, -0.5073992609977722, -0.08916191011667252, -0.9870513677597046, 0.10853967815637589, 0.516878068447113, -0.36071786284446716, 0.3380667269229889,...
android:endColor="#fff" android:angle="90" /> </shape> ``` and set it as background to your `View`. ``` android:background="@drawable/gradient_bg" ``` or ``` setBackgroundResource(R.drawable.gradient_bg); ```
[ -0.08786432445049286, 0.010938787832856178, 0.698199450969696, -0.254334032535553, 0.013065670616924763, 0.3983379900455475, -0.07254110276699066, -0.24748004972934723, -0.012877021916210651, -0.6030687689781189, -0.06032336503267288, 0.5788200497627258, -0.4965190887451172, -0.20847375690...
``` "^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4})|((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{5})|((\+44\s?\d{5}|\(?0\d{5}\)?)\s?\d{5})|((\+44\s?\d{5}|\(?0\d{5}\)?)\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$"; ``` I use the above pattern to val...
[ -0.2208789438009262, 0.3226962089538574, 0.3826073110103607, -0.06820466369390488, 0.4336838722229004, -0.12416397035121918, 0.697992205619812, -0.329010009765625, -0.23041154444217682, -0.3323855996131897, -0.4249565601348877, 0.2851576805114746, -0.5005894303321838, 0.13198314607143402, ...
for each case like: ``` if (matches case 1) return true; // example of case one if (matches case 2) return true; // example of case two if (matches case 3) return true; // example of case tree ... return false; ``` In my opinion this code would be much simpler to maintain.
[ -0.14840176701545715, 0.17833355069160461, -0.03434693440794945, -0.10374215990304947, 0.1136370450258255, 0.018404189497232437, 0.2920680642127991, -0.3640657961368561, 0.161615788936615, -0.5779693722724915, -0.18893469870090485, 0.769447386264801, -0.19144849479198456, -0.14421834051609...
I'm trying to make a property in a domain class hidden but it keeps appearing in the outputted JSON. I'm using Jackson 2.0 and Spring 3.1.1 Output of /users/1: ``` {"id":1,"password":null,"email":"someone@somewhere.com","firstName":"John","lastName":"Smith"} ``` My domain class: ``` @Entity public class User { ...
[ 0.16890136897563934, 0.030764305964112282, 0.4368574321269989, -0.24794763326644897, 0.06039683520793915, 0.23830024898052216, 0.6600526571273804, -0.4063167870044708, -0.2864287495613098, -0.630937933921814, -0.3321804702281952, 0.31604260206222534, -0.38449355959892273, 0.253735929727554...
<property name="favorPathExtension" value="true" /> <property name="mediaTypes"> <map> <entry key="json" value="application/json"/> </map> </property> <property name="defaultContentType" value="application/json"/> <property name="defaultViews"> <list> <bea...
[ 0.0031443489715456963, -0.22340166568756104, 1.004638433456421, 0.04059343412518501, -0.047734566032886505, -0.00875608716160059, -0.00967800710350275, -0.6748876571655273, -0.31066444516181946, -0.665483832359314, -0.2374548465013504, 0.6241156458854675, -0.23327788710594177, 0.4012334942...
public UserController(){} @Inject public void setUserController(UserService userService){ mUserService=userService; } @RequestMapping(value="/{id}", method=RequestMethod.GET) public void getUser(@PathVariable("id") long id, Model model){ model.addAttribute(mUserService.getUser(id))...
[ -0.2506093978881836, -0.18055316805839539, 0.46872854232788086, 0.1283637285232544, -0.0567750558257103, 0.16046138107776642, 0.2299450933933258, -0.41311711072921753, -0.48314037919044495, -0.6214918494224548, -0.06846601516008377, 0.414723664522171, -0.4425705075263977, 0.200410038232803...
<property name="messageConverters"> <list> <ref bean="jacksonMessageConverter"/> </list> </property> <property name="requireSession" value="false"/> </bean> ``` And the own.implementation.of.MappingJacksonHttpMessageConverter is based on this: <http://www.j...
[ -0.019994832575321198, 0.09822755306959152, 0.08493434637784958, -0.20217265188694, -0.11743796616792679, 0.1235731989145279, 0.2869887053966522, -0.7970334887504578, -0.26557403802871704, -0.34164631366729736, -0.07015029340982437, 0.1430691033601761, -0.47443005442619324, 0.2069108486175...
First I'm sorry for my bad english it's not my native language. I'm new to my entreprise and I have to re-code a C# application. This application is in relation with CrystalReport and uses many references called "CrystalDecisions.blabla". My problem is: by default the project opens with Microsoft Visual C# 2008 but th...
[ 0.05486898124217987, 0.24662813544273376, 0.274077832698822, 0.08839450031518936, -0.4638678729534149, -0.28159189224243164, 0.5553262233734131, 0.3699485659599304, -0.18897992372512817, -0.6253758668899536, 0.21571944653987885, 0.6363418102264404, -0.22528913617134094, 0.21685297787189484...
2008? Do I have to reinstall Visual Studio 2005 to have C# supported? Thanks in advance :) Edit: I actually had a file called "CRRedist2005\_x86.msi" which I never noticed. After installing those redist the references worked. Thank you guys for your fast answers. Your MySQL **collation is probably case-insensitive**....
[ -0.4401760697364807, 0.2026320993900299, 0.31712979078292847, 0.21093694865703583, -0.43341705203056335, -0.1581488996744156, 0.4815756380558014, 0.17629949748516083, -0.11731577664613724, -0.5123112797737122, -0.1218046098947525, 0.854942262172699, -0.23320449888706207, -0.084802404046058...
wrong**. You should not store the passwords in plain text, but you should store a hash of the password instead, and salt it properly. Then, when a user logs in, you hash his entry, and compare the hash with what your DB holds. When both equal, the user probably entered a correct password.
[ 0.0998830571770668, 0.2532445788383484, 0.1299823671579361, -0.060086239129304886, -0.04376934841275215, -0.1295974850654602, 0.408439040184021, 0.1366686224937439, 0.022645791992545128, -0.6353356838226318, -0.09083858877420425, 0.40283533930778503, -0.11218324303627014, 0.274061650037765...
I need to be able to get/set current location in Win 7 (Control Panel -> Regional and Language -> Location): ![Win7: Control Panel -> Regional and Language -> Location](https://i.stack.imgur.com/hhKku.png) `RegionInfo.CurrentRegion` doesn't work (can I use it in wrng way??) The same with `CultureInfo`. Any ideas? O...
[ 0.09748043119907379, -0.17089219391345978, 0.826539158821106, 0.06874515861272812, 0.27121198177337646, -0.21196024119853973, 0.3540569245815277, 0.1608419269323349, -0.21417322754859924, -0.8090963959693909, -0.2994227409362793, 0.025353386998176575, 0.10789665579795837, 0.263205528259277...
I'm trying to alter an SVG elements viewbox in JavaScript. Basically, I'm drawing a binary search tree, and when it gets too wide, I want to alter the viewbox to zoom out so that the tree fits in the window. I'm currently using: ``` if(SVGWidth>=1000){ var a = document.getElementById('svgArea'); a.setAttribute("vi...
[ -0.012789500877261162, 0.08470366150140762, 0.5911386609077454, -0.24369797110557556, -0.19557127356529236, 0.036642320454120636, 0.215462788939476, -0.3755989372730255, -0.2645131051540375, -0.7734299898147583, -0.12395026534795761, 0.48899412155151367, -0.36628368496894836, -0.0322426930...
would be good to see the context of the svg, but the following worked for me with a pure SVG document: ``` shape = document.getElementsByTagName("svg")[0]; shape.setAttribute("viewBox", "-250 -250 500 750"); ``` Maybe it's because `viewBox` is case-sensitive?
[ 0.19056656956672668, -0.06981457024812698, 0.48660001158714294, -0.2635979950428009, -0.20723161101341248, -0.11290818452835083, 0.06998340040445328, -0.2662525773048401, 0.08291728049516678, -0.5530405640602112, 0.07348167151212692, 0.42985695600509644, -0.15530195832252502, -0.0028810079...
Is there any way to simply declare static `NSString` as defined int identifier ? I want to do something like in C++ `#define MY_SIMPLE_ID 4`. EDIT: Where should I declare this? In C++ I have global access to resource file with it. Is there a way to do that in Objective-C? Why not using : ``` #define MY_STRING @"MySt...
[ 0.06993585079908371, 0.03193604201078415, 0.2792896032333374, -0.07240089774131775, -0.07593569159507751, -0.2306613177061081, 0.1762067824602127, 0.20002970099449158, -0.31628862023353577, -0.48094624280929565, 0.0027930038049817085, 0.576332688331604, -0.3299441635608673, 0.0532638393342...
I need to access a soap service and I have the wsdl url too. How would I go about doing this in java? Are there any good tutorials to achieve this? Also I have an xml file generated in android to call a soap service but it isnt working. Is there any place I can paste this xml to check if the xml is correctly calling t...
[ 0.737974226474762, 0.03265746310353279, 0.21574127674102783, 0.20199356973171234, -0.2509661018848419, -0.10775165259838104, 0.317905992269516, -0.314094603061676, 0.14925776422023773, -0.7474688291549683, 0.49296835064888, 0.3591274619102478, -0.13116580247879028, 0.11202795058488846, -...
Java Client code for it ( <http://nitinaggarwal.wordpress.com/2010/11/12/generating-client-java-code-for-wsdl-using-soap-ui-axis2-wsdl2java/> ). I used this way once but maybe there are better ways to do it.
[ 0.09160619974136353, -0.46476641297340393, 0.10367567092180252, -0.09271842241287231, -0.30656522512435913, -0.15932054817676544, 0.23206914961338043, 0.29786378145217896, 0.008500984869897366, -0.43180665373802185, 0.18940125405788422, 0.5336043834686279, -0.21771234273910522, 0.079536393...
Currently I have several functions, named `function1.m`, `function2.m`, `function3.m` , ..., `function10.m`. Each function is independent each other. I would like to run the all the functions in one execution currently, my code is like this, it runs the functions one by one. ``` for i = 1 : 10 result = eval(sprintf...
[ -0.19547471404075623, 0.07915230840444565, 0.34856635332107544, -0.07006773352622986, -0.08980691432952881, 0.398113489151001, 0.2569708228111267, -0.40069398283958435, -0.18776510655879974, -0.5231382846832275, 0.0798424780368805, 0.4162556529045105, -0.32140418887138367, 0.07144532352685...
functions{i} = eval(sprintf('@()function%d', i)); end parfor i=1:10 result = functions{i}(); ... end ```
[ -0.36830392479896545, 0.031947892159223557, 0.1621589958667755, -0.23157908022403717, 0.096568763256073, 0.36205506324768066, 0.45597043633461, -0.14386092126369476, 0.18548046052455902, -0.21773569285869598, -0.25387921929359436, 0.4021137058734894, -0.3675505220890045, 0.1078548505902290...
I'm planning on writing an application that sends multiple PDFs to the users' emails as attachments. Should I use memory (MemoryStream) or is there a temporary directory that I can use? Which is more advisable? Thanks! BTW I'm using C# ASP.NET I would go with file-system storage, since memory is a more scarce resourc...
[ 0.3687443137168884, 0.042540885508060455, 0.24050825834274292, 0.3031284511089325, 0.013058283366262913, -0.010703706182539463, -0.16886579990386963, 0.2757663428783417, -0.17814290523529053, -0.9391580820083618, -0.044636260718107224, 0.40356263518333435, 0.2293742150068283, 0.00850898865...
operations such as the one you describe. Although you should still try to clean up the files after each operation to make sure you don't fill up the space. Full information on Local Storage Resources is here: <http://msdn.microsoft.com/en-us/library/windowsazure/ee758708.aspx> A table detailing the amount of disk spa...
[ -0.22501705586910248, -0.06740400195121765, 0.03979836404323578, 0.06988981366157532, 0.35900115966796875, 0.0673738345503807, 0.13930121064186096, 0.04637795686721802, -0.899023711681366, -0.6848254203796387, -0.37021881341934204, 0.557374119758606, -0.1950981616973877, 0.0019855848513543...
I am trying to run an old Clipper application. It runs fine on Win 7 32bit but when I try using the DOSBox 0.74 it crashes with the following error: `Exit to error: CPU_SetSegGeneral: Stack segment zero` Are there some settings I forget to set when running the DOSBox? I need to be able to run this app in DOSBox as i...
[ 0.24216625094413757, 0.2481081485748291, 0.23760920763015747, 0.09319129586219788, 0.12117666751146317, 0.03365766257047653, 0.4870138168334961, 0.011310137808322906, -0.06750131398439407, -0.8678954243659973, 0.23022565245628357, 0.7932088375091553, -0.3684138357639313, 0.274109810590744,...
on a Win 7 64-bit Home edition? **EDIT:** I tried it on Win 7 Home 64 bit with the very same result. What can I do? Wanting to close this question I will write what was the only solution thanks to which I was able to run that aged application on Win7 64bit. It was [VMLite XP Mode](http://www.vmlite.com/index.php?opti...
[ 0.10334466397762299, 0.05013161152601242, 0.7353119850158691, -0.18737375736236572, -0.060156892985105515, -0.11932390183210373, 0.4239742159843445, -0.11698691546916962, -0.24559764564037323, -0.601079523563385, 0.10124856978654861, 1.0336979627609253, 0.006644997745752335, -0.02318275161...
easily start the application from my Win7 64bit desktop which then lunches the VMLite XP Mode which starts the application :) or something along this lines anyway, so far, it works great.
[ 0.17368392646312714, -0.011246772482991219, 0.7568798065185547, 0.21568617224693298, -0.06475917249917984, -0.4436471164226532, 0.3050931692123413, 0.22521434724330902, 0.11552594602108002, -0.6651965379714966, 0.04734042286872864, 1.0728046894073486, 0.20280106365680695, -0.03668110445141...
**This query produces the right answer:** ``` SELECT users.*, SUM(overtime_list.shift_length) AS overtime_total, (SELECT GROUP_CONCAT(users_roles.role_ID) FROM users_roles WHERE users.user_ID = users_roles.user_ID) AS roles FROM availability_list INNER JOIN users ON users.user_ID = avai...
[ 0.1345696598291397, 0.08141986280679703, 0.5191611051559448, -0.20059837400913239, 0.2848893702030182, 0.504355251789093, -0.03974781557917595, -0.22425083816051483, -0.3134404122829437, -0.7972217798233032, -0.01978909596800804, 0.523761510848999, -0.44439810514450073, 0.378506600856781, ...
'$totalovertimedays' WHERE availability_list.date = '$date' AND availability_list.type = '$type' GROUP BY users.user_ID ORDER BY overtime_total ASC ``` **output:** ``` +----------+---------+----------------------------+------------------+ | user_ID | user | roles | overtim...
[ -0.02852228842675686, -0.17259091138839722, 0.5624337196350098, -0.2521098256111145, 0.15492257475852966, 0.37232744693756104, 0.05956367030739784, 0.12772215902805328, -0.35135915875434875, -0.561217188835144, -0.2821670472621918, 0.7708383798599243, -0.21187788248062134, 0.23456512391567...
| 12 | +----------+---------+----------------------------+------------------+ | 2 | Jones | 1,2,3 | 7 | +----------+---------+----------------------------+------------------+ ``` **This is the desired result:** ``` +----------+---------+-----------------...
[ -0.35648858547210693, 0.19932103157043457, 0.5756914615631104, -0.22129763662815094, 0.3060544431209564, 0.244913250207901, 0.0171417985111475, -0.0740232914686203, -0.12235834449529648, -0.5266778469085693, -0.27300921082496643, 1.0538290739059448, 0.0020159410778433084, -0.28790277242660...
| overtime_total | +----------+---------+----------------------------+------------------+ | 1 | Smith | Admin, Staff | 12 | +----------+---------+----------------------------+------------------+ | 2 | Jones | Admin, Staff, Other | 7
[ -0.048047516494989395, -0.0587790347635746, 0.16582460701465607, -0.29737693071365356, 0.17464856803417206, 0.21181301772594452, 0.6478636860847473, 0.04065137729048729, -0.27875691652297974, -0.8273453116416931, -0.29157280921936035, 0.6871970891952515, -0.67560875415802, -0.5561313629150...
| +----------+---------+----------------------------+------------------+ ``` **This is a join I can use, which seems to allow the group\_concat to correct join "admin, staff, other" - but I cant work out how to incorporate it into the main query above?** ``` SELECT users.user_id, GROUP_CONCAT(roles.short_name sepa...
[ -0.40850919485092163, 0.32718420028686523, 0.6193638443946838, -0.1617933064699173, 0.012979960069060326, 0.0061015295796096325, -0.011170514859259129, -0.38585421442985535, 0.05984552577137947, -0.664258599281311, -0.28405773639678955, 0.46414098143577576, -0.30657318234443665, -0.0937868...
| +----------+---------+ | 2 | 2 | +----------+---------+ | 2 | 3 | +----------+---------+ | 1 | 3 | +----------+---------+ ``` **The roles table:** ``` +----------+------------+ | role_ID | short_name | +----------+------------+ | 1 | Admin | +----------+---------...
[ -0.9681087136268616, 0.023645564913749695, 0.4738842844963074, -0.2652890980243683, -0.17722027003765106, 0.44799384474754333, -0.09794893115758896, -0.40769869089126587, 0.23554416000843048, -0.37021106481552124, -0.3252371847629547, 0.7702066898345947, -0.10049139708280563, -0.2043528556...
3 | Other | +----------+------------+ ``` You could try: ``` SELECT users.*, SUM(overtime_list.shift_length) AS overtime_total, (SELECT GROUP_CONCAT(roles.short_name) FROM users_roles INNER JOIN roles ON user_roles.role_ID = roles.role_ID WHERE users.user_ID = users_roles.user_...
[ -0.05525381863117218, 0.0837830975651741, 0.5853685140609741, -0.33834266662597656, 0.018702127039432526, 0.20682284235954285, 0.14142709970474243, -0.5047106742858887, -0.34122559428215027, -0.7836719751358032, -0.061543095856904984, 0.637679398059845, -0.6156728267669678, 0.1002683117985...
= stations.station_ID INNER JOIN overtime_list ON overtime_list.user_ID = users.user_ID AND overtime_list.date >= '$totalovertimedays' WHERE availability_list.date = '$date' AND availability_list.type = '$type' GROUP BY users.user_ID ORDER BY overtime_total ASC ```
[ 0.4103615880012512, 0.05467653647065163, 0.34373146295547485, -0.32534337043762207, 0.2453477382659912, 0.23061981797218323, 0.33515745401382446, 0.023556267842650414, -0.3312387466430664, -0.6545099020004272, -0.37862250208854675, 0.30744144320487976, -0.3545713424682617, 0.41273942589759...
I need to show a progress indicator bar while parsing a downloading xml. I did it downloading first, and then parsing, but I wan't to do both action parallels. This is part of my code to do this, but i don't know how to show the pogress indicator. ``` public class WS_Sincronizo extends AsyncTask<Void,Integer,Lis...
[ 0.041171006858348846, 0.009190226905047894, 0.5301367044448853, -0.07033902406692505, -0.020901013165712357, 0.16436320543289185, 0.4036616086959839, -0.3876831531524658, -0.044286344200372696, -0.4523847699165344, -0.36268359422683716, 0.6461927890777588, -0.40422189235687256, -0.04817963...
public WS_Sincronizo (Context conte,Object actividad, String fecha){ this.conte=conte; this.actividad=(Sincronizacion) actividad; this.fecha_bd=fecha; fileSize = 0; downloaded = 0; } @Override protected void onPreExecute() { super.onPreExecute(); resultado=null; //TimeOut si exece el...
[ 0.14161451160907745, -0.2898118793964386, 0.7442029714584351, -0.2780006527900696, 0.30132272839546204, 0.11885634809732437, 0.592071533203125, -0.5744873881340027, -0.06303180754184723, -0.3638635575771332, -0.5205835700035095, 0.7110270261764526, -0.40460649132728577, 0.1362888365983963,...
super.onPostExecute(rta); // Envío mensaje vacio al manejador para indicar que ya terminó. actividad.FinSincronizacion(rta); } @Override protected void onCancelled() { //Si había empezado una transacción la cierro try{ db.releaseReference(); }catch (Exception e) { // TODO: handle exc...
[ 0.011077392846345901, -0.46966129541397095, 0.5576220750808716, 0.03370710834860802, -0.036437779664993286, -0.04486976936459541, 0.675386905670166, -0.16935797035694122, -0.08954951912164688, -0.3555218279361725, -0.4908248484134674, 0.4281212389469147, -0.5834364295005798, 0.287145078182...
httpPost = new HttpPost(Utiles.UrlWebService + "GetSincro"); try { String version = conte.getPackageManager().getPackageInfo(conte.getPackageName(), 0).versionName; multipartContent.addPart("fecha",new StringBody(fecha_bd)); multipartContent.addPart("version",new StringBody(version)...
[ -0.09613557904958725, -0.12803350389003754, 0.7286419868469238, -0.2813791036605835, -0.23687073588371277, 0.2551629841327667, 0.8248057961463928, -0.6242645382881165, -0.22115536034107208, -0.8225516080856323, -0.5128315687179565, 0.4509594738483429, -0.4696340262889862, 0.102201439440250...
if (resEntity != null) { fileSize = resEntity.getContentLength(); //Log.d("SIZE:",MemoryStatus.formatSize((long)fileSize)); Log.d("SIZE:",String.valueOf(fileSize)); //Log.i("RESPONSE",EntityUtils.toString(resEntity)); SAXParserFactory fabrica = SAXPars...
[ -0.08721668273210526, -0.46204814314842224, 0.5759966373443604, -0.21190837025642395, 0.2488529533147812, 0.34461212158203125, 0.6182149648666382, -0.7183079719543457, -0.20117972791194916, -0.634377658367157, -0.47880080342292786, 0.660702109336853, -0.39650243520736694, 0.596507132053375...
SAXParser parser = fabrica.newSAXParser(); XMLReader lector = parser.getXMLReader(); try{ miBBDDHelper = new BaseDatosHelper(conte); db=miBBDDHelper.SincronizarTablas();
[ -0.258698433637619, -0.22095060348510742, 0.6994642615318298, -0.14931190013885498, -0.06984851509332657, -0.05929618328809738, 0.47666460275650024, -0.6216952204704285, -0.17461568117141724, -0.504470705986023, -0.44800668954849243, 0.4488057494163513, -0.40889403223991394, 0.223612815141...
manejadorXML = new SincronizarXmlHelper(db); lector.setContentHandler(manejadorXML); lector.parse(new InputSource(resEntity.getContent())); // Obtengo el resultado del XML resultado = manejadorXML.getListas();
[ -0.3591596186161041, -0.20587311685085297, 0.5695496201515198, 0.02429383434355259, -0.1536409556865692, 0.24562963843345642, 0.22966933250427246, -0.48942920565605164, -0.187397301197052, -0.5435324907302856, -0.5067253112792969, 0.2243061661720276, -0.4953914284706116, 0.2345430254936218...
}catch (Exception e){ } finally { // TODO: handle exception resEntity.consumeContent();
[ 0.22622065246105194, -0.33553406596183777, 0.11442619562149048, -0.1944027543067932, 0.28924188017845154, -0.18879076838493347, 0.3123113512992859, -0.20627231895923615, 0.024812905117869377, -0.4499832093715668, -0.08359621465206146, 0.8527515530586243, -0.2717037796974182, -0.00087340507...
if (db.inTransaction()) { db.endTransaction(); } db.close(); miBBDDHelper.close();
[ -0.3827371299266815, -0.05059899017214775, 0.6467671394348145, -0.6267615556716919, 0.26433756947517395, 0.010797169990837574, 0.48880627751350403, -0.37665143609046936, 0.42936134338378906, -0.3049154281616211, -0.3985728323459625, 0.45561060309410095, -0.3351476192474365, 0.3861840367317...
} if(resultado.isEmpty()) { throw null; } else { return
[ -0.1648615151643753, -0.29528722167015076, -0.07479706406593323, -0.19644632935523987, 0.08653077483177185, -0.21001987159252167, 0.37928128242492676, -0.2845260500907898, -0.02575666457414627, -0.1115393117070198, -0.36593908071517944, 0.4286041855812073, -0.14463427662849426, 0.218493953...
resultado; } // Si dio error la RESPUESTA del SERWEB } else { throw null; } // Si no recibo la cabecera
[ -0.2512570321559906, -0.08717568218708038, 0.04683929681777954, -0.009113714098930359, 0.02344922535121441, 0.149522602558136, 0.19468659162521362, 0.05932112783193588, 0.22821971774101257, -0.17954015731811523, -0.2249879688024521, 0.5062653422355652, -0.31415483355522156, -0.030929112806...