text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
on which torrents rely plus the upload requirement is absolutely no-no. Since most people who need these sites and their downloads are in these kinds of offices, they will continue to use http. BUT even that is not the answer. These people have in their licensing terms restrictions on redistribution. And so their prob...
[ 0.9098221659660339, 0.40127360820770264, 0.13754309713840485, 0.1760687232017517, 0.10377030074596405, -0.28656700253486633, -0.07395503669977188, 0.14710839092731476, -0.009999766945838928, -0.46573707461357117, 0.37755197286605835, 0.4070722758769989, -0.2862180769443512, 0.5074538588523...
learn from watching TV). They have to then delicately change their licensing to allow distribution by seeding torrents but not otherwise. This is an easy enough concept for most of us, but the vagaries of the English language and the dumb hard look on the face of the judge make it a very tricky thing to do. The judge m...
[ 0.7623929977416992, 0.1534440666437149, 0.08446609228849411, 0.24692010879516602, 0.48602569103240967, -0.3510178327560425, 0.40889474749565125, -0.1610988825559616, 0.038475777953863144, -0.31240740418434143, 0.28508758544921875, 0.6524283289909363, -0.18206344544887543, 0.033447995781898...
laugh at them and their misery. Yesterdays smart is todays stupid. Cheers!
[ 0.41293108463287354, 0.5495554208755493, -0.04440615326166153, 0.3715812861919403, -0.24469716846942902, 0.039932481944561005, 0.7079116106033325, 0.569232165813446, -0.18653230369091034, -0.7212873101234436, 0.1580733358860016, 0.553351104259491, 0.3544476330280304, -0.017455929890275, ...
I am trying to adapt an existing code to a 64 bit machine. The main problem is that in one function, the previous coder uses a void\* argument that is converted into suitable type in the function itself. A short example: ``` void function(MESSAGE_ID id, void* param) { if(id == FOO) { int real_param = (int)...
[ 0.11716476082801819, 0.28336480259895325, 0.07205979526042938, -0.24661430716514587, -0.042307719588279724, 0.3103697896003723, 0.42358270287513733, -0.39612653851509094, -0.22694243490695953, -0.6119967699050903, -0.15803131461143494, 0.47111305594444275, -0.5103506445884705, 0.1151364669...
it still works on a 32 bit machine and as cleanly as possible. Any idea ? Use `intptr_t` and `uintptr_t`. To ensure it is defined in a portable way, you can use code like this: ``` #if defined(__BORLANDC__) typedef unsigned char uint8_t; typedef __int64 int64_t; typedef unsigned long uintptr_t; #elif defi...
[ -0.0009559710160829127, 0.0710652694106102, 0.43003663420677185, 0.10410258173942566, 0.22520416975021362, -0.1080612763762474, 0.22862955927848816, -0.002145120408385992, -0.19946612417697906, -0.9006728529930115, 0.061130110174417496, 0.3309897780418396, 0.0074593606404960155, 0.27768507...
one from [here](http://www.azillionmonkeys.com/qed/pstdint.h">http://www.azillionmonkeys.com/qed/pstdint.h).
[ -0.31896233558654785, -0.6122435927391052, 0.1910601556301117, -0.030997442081570625, -0.16094759106636047, 0.3525567054748535, -0.11420568823814392, 0.09934680163860321, -0.19584667682647705, -0.5056436061859131, -0.17189481854438782, 0.05607467144727707, -0.21680612862110138, 0.137056857...
I recently upgraded my oracle client to 10g (10.2.0.1.0). Now when I try to connect to a legacy 8.0 database, I get ``` ORA-03134: Connections to this server version are no longer supported. ``` Is there any workaround for this problem, or do I have to install two clients on my local machine? **Yes**, you can conne...
[ 0.29071879386901855, 0.28989288210868835, 0.12350166589021683, -0.17018815875053406, -0.18706342577934265, 0.126209557056427, 0.41191431879997253, 0.15388906002044678, -0.41087982058525085, -0.7875404953956604, -0.08222606033086777, 0.6516163349151611, -0.3961116373538971, 0.10675943642854...
installed (in different "Oracle Homes" (or directories), and use the `selecthome.bat` file to switch between your installed clients. For example, before connecting to 8i, you'd run: `C:\Oracle\Client1_8i\bin\selecthome.bat` or this to use your Oracle 10g client: `C:\Oracle\Client2_10g\bin\selecthome.bat`
[ 0.2997886836528778, -0.06999775767326355, 0.12607958912849426, -0.10509034991264343, -0.0693899542093277, 0.06389375030994415, 0.04850178211927414, -0.13205190002918243, -0.10170504450798035, -0.8085120916366577, -0.23562327027320862, 0.5051141977310181, -0.43737998604774475, 0.07491976022...
I am working on the admin section of a new rails app and i'm trying to setup some routes to do things "properly". I have the following controller: ``` class Admin::BlogsController < ApplicationController def index @blogs = Blog.find(:all) end def show @blog = Blog.find(params[:id]) end ... end ```...
[ 0.007624590303748846, 0.22901016473770142, 0.6515921354293823, 0.0802106186747551, -0.006730564404278994, -0.021255049854516983, 0.34403109550476074, -0.5152190923690796, -0.05471452325582504, -0.8041361570358276, 0.04145878925919533, 0.5343491435050964, -0.29428642988204956, -0.2074086070...
i try to view <http://localhost:3000/admin/blogs> i get this error: ``` undefined method 'admin_blog' for #<ActionView::Base:0xb7213da8> ``` where am i going wrong and why? Your Delete link should end in \_path: ``` <%= link_to 'Delete', admin_blog_path(blog), :method => :delete %> ```
[ 0.09705300629138947, 0.28568753600120544, 0.4607774615287781, -0.015818528831005096, -0.1049007773399353, -0.04110891744494438, 0.6887229681015015, 0.05895625799894333, -0.17767317593097687, -0.652021586894989, 0.03581980615854263, 0.6225827932357788, -0.11795474588871002, 0.37234759330749...
I run windows in a VMWare partition. At times, TSVNCache.exe process starts doing some weird things (Seems like its doing an endless loop of I/O operations). Suddenly my whole VMWare session starts slowing down. My mac heats up badly. In the sense its freaking hot. My question is what is this TSVNCache process anyway ...
[ 0.26734182238578796, 0.20617035031318665, 0.4638282358646393, 0.06912253797054291, -0.026167836040258408, -0.2924825847148895, 0.49581658840179443, 0.46479055285453796, -0.21360675990581512, -0.7895494103431702, 0.16913646459579468, 0.5896185040473938, 0.019926508888602257, 0.4772669076919...
of TortoiseSVN. Performance will also improve if you minimize the set of things SVN has to check - tell it to ignore any temporary directories, object file directories etc.
[ -0.22326529026031494, -0.051993478089571, 0.6770370006561279, -0.06102437525987625, 0.11260887235403061, -0.07478249818086624, 0.540351152420044, -0.24252450466156006, -0.7242060899734497, -0.15185047686100006, -0.3031719923019409, 0.8331076502799988, -0.10812763124704361, 0.18950852751731...
When I call ``` help(Mod.Cls.f) ``` (Mod is a C extension module), I get the output ``` Help on method_descriptor: f(...) doc_string ``` What do I need to do so that the help output is of the form ``` Help on method f in module Mod: f(x, y, z) doc_string ``` like it is for random.Random.shuffle, for ex...
[ -0.11208351701498032, 0.12293936312198639, 0.6257262825965881, -0.24724657833576202, 0.15832890570163727, -0.12376862019300461, 0.008374196477234364, -0.34923699498176575, -0.16935472190380096, -0.44785076379776, -0.25163164734840393, 0.7857235074043274, -0.18349753320217133, -0.0699213072...
the first line of the docstring: ``` >>> help(range) Help on built-in function range in module __builtin__: range(...) range([start,] stop[, step]) -> list of integers ... ``` The reason random.shuffle's docstring looks "correct" is that it isn't a C function. It's a function written in Python.
[ -0.11460629105567932, -0.12975116074085236, 0.38734495639801025, -0.3146945834159851, 0.20055504143238068, -0.17287516593933105, -0.171883225440979, -0.3625440001487732, 0.1723233014345169, -0.2239173948764801, -0.1925000101327896, 0.7507457137107849, -0.6183089017868042, -0.18662786483764...
I'm trying to create Excel 2007 Documents programmatically. Now, there are two ways I've found: * Manually creating the XML, as outlined in [this post](https://stackoverflow.com/questions/150339/generating-an-excel-file-in-aspnet#150368) * Using a Third Party Library like [ExcelPackage](http://www.codeplex.com/ExcelPa...
[ 0.1945711225271225, 0.22253268957138062, 0.4319744408130646, 0.08746582269668579, -0.29357728362083435, -0.19452625513076782, 0.07613778114318848, -0.08592358976602554, -0.16081492602825165, -0.5197973251342773, 0.011279386468231678, 0.495233416557312, -0.11642305552959442, -0.168314874172...
can be created without having to save them to the harddrive, i.e. generate and directly output them into a stream. .net 3.0 is the target here, no 3.5 goodness :( **Edit:** Thanks so far. The XML SDK is indeed 3.5 only, but Russian Roulet... erm... COM Interop is also something I want to avoid whenever possible, espe...
[ 0.15906701982021332, -0.008092488162219524, 0.3529851734638214, 0.23038296401500702, -0.10600201040506363, -0.2624061107635498, 0.1432914137840271, 0.1030779480934143, -0.23193109035491943, -0.9032611846923828, -0.27358201146125793, 0.3734387159347534, -0.11384553462266922, 0.0559024885296...
say a `MemoryStream` and much more easily than generating all the XML by hand. As Brian Kim pointed out, version 2.0 of the SDK requires .NET 3.5 which you stated wasn't available. [Version 1](http://www.microsoft.com/downloads/details.aspx?FamilyId=AD0B72FB-4A1D-4C52-BDB5-7DD7E816D046&displaylang=en) of the SDK is al...
[ 0.023490339517593384, -0.12502421438694, 0.026754742488265038, 0.1445484459400177, 0.0740380585193634, -0.3259311318397522, 0.02119443565607071, -0.02205575443804264, -0.0694965198636055, -0.44108447432518005, -0.07540473341941833, 0.4612382650375366, -0.2666758894920349, -0.22456797957420...
I noticed that writing to a file, closing it and moving it to destination place randomly fails on Vista. Specifically, MoveFileEx() would return `ERROR_ACCESS_DENIED` for no apparent reason. This happens on Vista SP1 at least (32 bit). Does not happen on XP SP3. Found [this thread](http://groups.google.com/group/micro...
[ 0.04683934524655342, 0.29259610176086426, 0.3566909730434418, -0.00015355747018475085, 0.3949475586414337, -0.16106624901294708, 0.3783447742462158, -0.1678665429353714, -0.4034745395183563, -0.6005691289901733, -0.03770991787314415, 0.3887268602848053, -0.23639899492263794, 0.412367820739...
buf[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99 }; HANDLE h; DWORD nbytes; LPCTSTR fn_tmp = "aaa"; LPCTSTR fn = "bbb"; h = CreateFile(fn_tmp, GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,...
[ -0.02951970510184765, -0.05466562137007713, 0.7829264402389526, -0.43767064809799194, 0.08190624415874481, 0.4598788022994995, -0.014232330024242401, -0.3594268560409546, -0.19810394942760468, -0.5184447169303894, -0.39529019594192505, 0.5124227404594421, -0.6670556664466858, 0.47457498311...
if (!WriteFile(h, buf, sizeof buf, &nbytes, 0)) goto error; if (!FlushFileBuffers(h)) goto error; if (!CloseHandle(h)) goto error; if (!MoveFileEx(fn_tmp, fn, MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED | MOVEFILE_WRITE_THROUGH)) { printf("error=%d\n", GetLastError()); return 0; ...
[ -0.2471945583820343, -0.05957324802875519, 0.6171773672103882, -0.48408380150794983, 0.5347482562065125, 0.18363535404205322, 0.3821428716182709, -0.24232317507266998, -0.2298601269721985, -0.49841803312301636, -0.6517613530158997, 0.6183397173881531, -0.3003178834915161, 0.157607376575469...
(i = 0;; ++i) { printf("*%u\n", i); if (!test()) return 1; } return 0; } ``` Build this as console app with Visual Studio. Correct behaviour would be infinite loop that prints test numbers. On Vista SP1, the program exits after random number of iterations (usually before 100 iterations ar...
[ 0.002912048948928714, 0.15384182333946228, 0.4878946542739868, -0.025563880801200867, 0.13780929148197174, -0.16580139100551605, 0.6616871356964111, -0.007945844903588295, -0.19524399936199188, -0.3624218702316284, -0.20966610312461853, 0.38801178336143494, -0.3627720773220062, 0.273765265...
Visual Studio). **Edit**: Digging further via Process Monitor (thanks @sixlettervariables), I can't see anything particularly bad. Each test iteration results in 176 disk operations, majority of them coming from SearchProtocolHost.exe (search indexer). If search indexing service is stopped, no errors occur, so it look...
[ 0.4779585897922516, 0.06281579285860062, 0.39605090022087097, -0.032579921185970306, 0.007273580878973007, 0.045050229877233505, 0.3291081190109253, -0.0439341776072979, -0.4384704530239105, -0.39434075355529785, -0.20829428732395172, 0.8865005970001221, -0.38102561235427856, 0.01902564615...
`FILE_ATTRIBUTE_TEMPORARY` and `FILE_ATTRIBUTE_NOT_CONTENT_INDEXED` flags on the file. It looks like `FILE_ATTRIBUTE_NOT_CONTENT_INDEXED` is enough by itself, but marking file as temporary also dramatically cuts down disk operations caused by search indexer. But this is **not a real solution**. I mean, if an applicati...
[ 0.358272522687912, 0.16405314207077026, 0.41159069538116455, 0.10739648342132568, 0.13599662482738495, -0.4219510555267334, 0.17738771438598633, 0.08953642845153809, -0.6204689741134644, -0.5251314640045166, -0.32615926861763, 0.4320313632488251, -0.14750587940216064, 0.47534799575805664, ...
getting in the way. It can show you the entire trace of file system calls made on your machine. *(edit: thanks to @moocha for the change in application)*
[ 0.34609371423721313, -0.24393461644649506, 0.47004398703575134, 0.2093617171049118, 0.26903054118156433, -0.4229685068130493, 0.3796940743923187, 0.16667087376117706, -0.4204723834991455, -0.5875399112701416, 0.024066396057605743, 0.46460989117622375, -0.06906762719154358, 0.13144735991954...
I went to school for programming years ago and when I got out I found a job in system administration and that is the direction my career took. I'd like to get back into development of some sort and have been 'playing' with C# and ASP.NET, but I've been hearing lots of buzz for other 'new' languages (by new I mean that ...
[ 0.6481512784957886, 0.326405793428421, -0.1297805905342102, -0.050557129085063934, -0.19879770278930664, 0.023089157417416573, 0.49220678210258484, 0.6805875897407532, -0.25817084312438965, -0.7077671885490417, 0.026273123919963837, 0.6054253578186035, 0.14995992183685303, 0.07816473394632...
for a long time (if ever I was) has me floundering with trends and I'd like not to be left behind the times. Any thoughts to if it's better to follow the "latest" languages or stick with what is more tried and true technologies? You should learn at least 1 compiled language (like C# or Java) and 1 Script Language (Pyt...
[ 0.5589462518692017, 0.28506505489349365, 0.02953004278242588, 0.29907283186912537, 0.12578381597995758, -0.014016824774444103, 0.2869037091732025, 0.4728917181491852, -0.39519956707954407, -0.8528729677200317, 0.048469506204128265, 0.6963686347007751, 0.2767694294452667, -0.175762787461280...
be too bad though.
[ 0.37736159563064575, 0.14918425679206848, 0.18547971546649933, -0.039743904024362564, -0.07012349367141724, -0.2473861128091812, 0.35524699091911316, 0.2070094645023346, 0.21890313923358917, -0.20383232831954956, 0.21802543103694916, 0.04704984650015831, -0.01288682222366333, 0.01195744145...
I have a question at [SO](https://stackoverflow.com/questions/150038/how-to-wire-a-middle-tier-of-objects-to-a-data-tier-consisting-of-a-dataset#151255) asking how to wire a middle tier to a DataSet. I put up an answer showing what I had come up with, but I am not happy with the tight coupling. I have just started to ...
[ 0.6265164613723755, -0.10560041666030884, -0.17205829918384552, 0.31181401014328003, 0.14390549063682556, -0.2714383006095886, -0.047334156930446625, -0.19142712652683258, -0.28359776735305786, -0.30801063776016235, 0.052536845207214355, 0.35254591703414917, -0.22927753627300262, 0.0556713...
(BL). I'd just use objects (use interfaces) between them (IList) and then use an interface to define your DAL (IRepository) and the nyou can mock that interface to return whatever you need in your BL for unit testing. Unit testing Datasets is another beast, never tried it and I hopefully never have to... Perhaps an in-...
[ 0.5322898626327515, -0.02725226618349552, -0.11726225167512894, 0.04837591201066971, -0.45160916447639465, 0.07855968922376633, -0.18925805389881134, -0.12045782804489136, -0.4725710153579712, -0.2806318998336792, 0.23789356648921967, 0.3017495274543762, -0.07408063113689423, 0.10697581619...
Microsoft has come out with this fairly new technology that I am considering using for a .NET 3.5 application. I am curious, is anyone using this technology already? I am worried that the use of the secure virtual machine will negatively affect performance. Also, the way Microsoft advertises the product, it seems as th...
[ 0.6262556910514832, 0.3719266653060913, 0.14699403941631317, 0.2702207863330841, 0.08427158743143082, -0.38837793469429016, 0.07347307354211807, 0.4226871430873871, 0.021956302225589752, -0.3922247588634491, -0.023761138319969177, 0.2905796468257904, 0.011239267885684967, 0.289059668779373...
customers](http://blogs.zdnet.com/microsoft/?p=1624) for SLP. Sounds like the whole program is going down the drain... I'm glad my company didn't sign up for it yet!
[ 0.6429794430732727, 0.1111370399594307, 0.589111864566803, 0.03490108996629715, 0.13265229761600494, 0.2547486424446106, -0.07841876149177551, 0.40592458844184875, -0.3801199793815613, -0.2438555657863617, 0.12496367841959, 0.6051942110061646, -0.034562062472105026, 0.1490764170885086, 0...
I am trying to create a StringNameSpaceBinding using the wsadmin tool of Websphere 6.1 Here are the steps i take set cell [$AdminConfig getid /Cell:cell/] $AdminConfig create StringNameSpaceBinding $cell { {name bindname} {nameInNameSpace Bindings/string} {stringToBind "This is the String value that gets bound"} } Bu...
[ 0.2026292383670807, 0.22654938697814941, 0.36978814005851746, -0.19250023365020752, -0.0857425183057785, -0.25981196761131287, 0.6324042081832886, -0.517085611820221, 0.13365070521831512, -0.8315556049346924, 0.33264681696891785, 0.399576336145401, -0.24163353443145752, 0.14482685923576355...
the following command: ``` set cell [$AdminConfig getid /Cell:cell/] ``` Doesn't work. Most likely, `cell` is not the name of your cell. You don't need to specify a cell name; there's only one cell in the WAS topology. I would change this to: ``` set cell [$AdminConfig getid /Cell:/] ``` Good luck.
[ -0.2065524458885193, 0.1320752501487732, 0.18823349475860596, -0.0846676304936409, 0.2117971032857895, -0.5333930850028992, 0.546815037727356, 0.23495914041996002, -0.0018943579634651542, -0.7760775685310364, -0.17443576455116272, 0.47055092453956604, -0.2568448483943939, 0.163857996463775...
I'm really sick of this problem. Google searches always seem to suggest "delete all bpls for the package", "delete all dcus". Sometimes this just-does-not-work. Hopefully I can get some other ideas here. I have a package written in-house, which had been installed without issue a few months ago. Having made a few chang...
[ 0.1898641735315323, 0.36232632398605347, 0.018284974619746208, -0.09750739485025406, 0.19102966785430908, -0.1843915432691574, 0.6263467073440552, 0.19182851910591125, -0.3638909161090851, -0.7530924081802368, -0.09567128121852875, 0.791699230670929, -0.2694256007671356, 0.3373945653438568...
Error: LA33* This is one of those Delphi problems that seems to occur time and time again for many of us. Would be great if we could collate a response something along the lines of "any one or combination of these steps *might* fix it, but if you do *all* these steps it *will* fix it...." At the moment, I've removed ...
[ 0.07746591418981552, 0.2602141201496124, 0.35521042346954346, -0.18357864022254944, -0.19810739159584045, 0.023815669119358063, 0.39501380920410156, 0.06567791104316711, -0.22277849912643433, -0.4388113021850586, -0.1879543513059616, 0.6411542296409607, -0.2533349096775055, 0.0772565379738...
do here. Obviously these types of issues occur frequently for some people, so I'll leave it open for a while to get other suggestions. Then I guess if someone collates all the info into a super-post, I can accept the answer* I managed to solve this, following the below procedure 1. Create a new package 2. One by one, ...
[ 0.31858089566230774, -0.0287468284368515, 0.17844396829605103, 0.12515410780906677, 0.12981663644313812, 0.015463865362107754, 0.42329928278923035, -0.4474845230579376, -0.14527294039726257, -0.521660566329956, -0.029778411611914635, 0.7111763954162598, -0.39886051416397095, 0.131710335612...
//erOK 'Invalid user name or password', //erInvUserPass 'Trial Period has Expired'); //erTrialExp protected ... public ... end; ``` So it appears that Delphi does not like class constants (or perhaps class constant arrays) in package components *Update: and yes, this has been reported to codegear*
[ -0.09690757840871811, 0.003902277909219265, 0.2978920638561249, -0.3063695430755615, -0.002687413478270173, -0.08825623989105225, 0.26557108759880066, -0.12444992363452911, -0.11258673667907715, -0.33650460839271545, -0.3634589612483978, 0.737472653388977, -0.3315134048461914, -0.158542811...
I am upgrading a silverlight beta 2 app to RC0 and have a function that translates a point from a child element to it's parent. The purpose of the function is to ensure that an element appears exactly on top of the child even though they are not on the same canvas and don't share a parent. Here is the current function...
[ 0.2661880552768707, -0.13873212039470673, 0.7149097919464111, -0.12981173396110535, 0.28708744049072266, -0.18430189788341522, 0.03733828291296959, -0.38701170682907104, 0.0949084609746933, -0.8077226877212524, -0.2532438337802887, 0.3841283917427063, -0.12918353080749512, 0.10419989377260...
point relative to existing parent Point fromPoint = e.GetPosition(from); // get point relative to new parent Point toPoint = e.GetPosition(to); // calculate delta double deltaX = fromPoint.X - toPoint.X; double deltaY = fromPoint.Y - toPoint.Y; // calculate new ...
[ -0.0050509157590568066, -0.3765197694301605, 1.1881917715072632, -0.26734161376953125, 0.20992405712604523, 0.2421874850988388, 0.08169208467006683, -0.18752114474773407, -0.4042282998561859, -0.5039467811584473, -0.08290113508701324, 0.2048533856868744, 0.003737909719347954, 0.49965736269...
deltaX, current.Y - deltaY); return rtn; } ``` Notice that it relies on the MouseEventArgs.GetPosition function to get the position relative to existing and new parent. In cases where there is no MouseEventArgs available, we were creating a new instance and passing it in. This was a hack but seemed to wo...
[ -0.13624048233032227, -0.26128309965133667, 0.4060412347316742, -0.2874206602573395, 0.15572772920131683, -0.041757732629776, 0.23543767631053925, 0.03396241366863251, 0.04806048795580864, -0.6900171637535095, 0.05017431825399399, 0.4264431893825531, -0.39029040932655334, 0.353296548128128...
It does exactly what you want: given another control, it generates a new transform that maps the coordinates of a point relative to the current control, to coordinates relative to the passed in control. ``` var transform = from.TransformToVisual(to); return transform.Transform(current); ```
[ -0.2013295292854309, -0.7900524735450745, 0.6292468309402466, 0.12005959451198578, 0.06940964609384537, -0.09622043371200562, -0.06310242414474487, -0.2688879668712616, 0.2684922218322754, -0.6261456608772278, -0.12365422397851944, 0.5371399521827698, -0.32522639632225037, 0.16559934616088...
I have a VB6 COM component which I need to call from my .Net method. I use reflection to create an instance of the COM object and activate it in the following manner: ``` f_oType = Type.GetTypeFromProgID(MyProgId); f_oInstance = Activator.CreateInstance(f_oType); ``` I need to use GetTypeFromProgID rather than using...
[ 0.2675914466381073, 0.06909333914518356, 0.4743509888648987, -0.08109554648399353, -0.044015590101480484, 0.3870847821235657, 0.37758708000183105, -0.5011917352676392, -0.14535491168498993, -0.6604574918746948, -0.12737344205379486, 0.6740872859954834, -0.3439995050430298, 0.11039585620164...
error description from the TargetInvocationException.InnerException field. However, I know that the COM component uses Error.Raise to generate an error number and I need to somehow get hold of this in my calling .Net application. The problem seems to stem from the TargetInvocationException not containing the error num...
[ 0.09508825838565826, 0.06991909444332123, 0.08812633901834488, -0.029258085414767265, -0.21024024486541748, 0.09662678837776184, 0.6169101595878601, -0.0563434362411499, 0.026777105405926704, -0.6644458174705505, 0.2337028980255127, 1.0399807691574097, -0.37067100405693054, 0.0083914045244...
target platform is .Net 2.0 and I do have access to the VB6 source code but would regard altering the error message raised from VB6 to contain the error code as part of the text to be a bit of a hack. Check out Spring's [SpringJUnit4ClassRunner](http://static.springframework.org/spring/docs/2.5.x/api/org/springframewor...
[ 0.3023951053619385, -0.13574382662773132, 0.20081618428230286, -0.07526257634162903, 0.05503823235630989, -0.1962031126022339, 0.16024048626422882, -0.28470146656036377, 0.11237337440252304, -0.5591687560081482, -0.1991412192583084, 0.4172087609767914, -0.12385157495737076, 0.0882223471999...
should do what you need. However, I've never used it myself, so I can't vouch for it.
[ 0.5148228406906128, -0.06174264848232269, -0.18921805918216705, 0.16157083213329315, 0.03350848704576492, 0.21879225969314575, 0.30071520805358887, 0.01606960967183113, 0.1428917944431305, -0.18486283719539642, 0.2563571333885193, 0.4797588586807251, -0.15318574011325836, -0.16051110625267...
I'm trying to place 4 of my image containers into a new pane, having a total of 16 images. The jQuery below is what I came up with to do it. The first pane comes out correctly with 4 images in it. But the second has 4 images, plus the 3rd pane. And the 3rd pane has 4 images plus the 4th pane. I don't know exactly why t...
[ 0.3053245544433594, 0.19776120781898499, 0.7226850986480713, 0.1724453717470169, -0.12756229937076569, 0.44360384345054626, 0.11885592341423035, -0.155465766787529, -0.6501500010490417, -0.8598459959030151, -0.035388752818107605, 0.094920314848423, -0.35128599405288696, 0.3081250786781311,...
this? What I want is to have 1-4 in one pane, 5-8 in another, 9-12, and 13-16. It needs to be dynamic so that I can change the number in each pane, so just doing it in the HTML isn't an option. A demo of the issue can be seen here: <http://beta.whipplehill.com/mygal/rotate.html>. I'm using firebug to view the DOM. An...
[ 0.003920054063200951, -0.30289149284362793, 0.7070876359939575, -0.25334200263023376, -0.0031889125239104033, 0.23914021253585815, 0.280971884727478, -0.4489230215549469, -0.4341315031051636, -0.5424209237098694, -0.28017011284828186, 0.6978223323822021, -0.4403902590274811, 0.099751219153...
$(".digi_pane").append("<div style=\"clear: both;\"></div>"); }); ``` The HTML (abbreviated), but essentially repeated 16 times. ``` <div class="digi_image"> <div class="space_holder"><img src="images/n883470064_4126667_9320.jpg" width="100" /></div> </div> ``` I think your problem is your use of the gt() and ...
[ 0.1610131412744522, 0.0011418593348935246, 0.4986397624015808, -0.38448891043663025, -0.16807445883750916, 0.1011877954006195, 0.3449820578098297, -0.3458300530910492, -0.45991796255111694, -0.638543963432312, -0.6191796064376831, 0.428973525762558, -0.25833696126937866, -0.027849188074469...
As far as tools go, I am aware of [Haxe](http://haxe.org/), [MTASC](http://www.mtasc.org/), and [swfmill](http://swfmill.org/). Can you offer any success or horror stories related to any of them? Are there any others that I should be investigating? With respect to learning, the [Adobe Developer Connection](http://www....
[ 0.23553156852722168, 0.14351174235343933, 0.033716268837451935, 0.3916744291782379, -0.20154501497745514, -0.033528223633766174, 0.22773557901382446, 0.12670673429965973, -0.16733336448669434, -0.4883440136909485, -0.1592152714729309, 0.7709128856658936, 0.07821880280971527, -0.30812922120...
and better supported by the Open Source flash players? If you are going to be targeting mobile devices (or the Wii) you will probably want to stick to Flash 7. Adobe still doesn't have a Flash 9 SDK available to those (embedded/mobile) platforms. The newest SDK is [FlashLite 3](http://www.adobe.com/products/flashlite/...
[ 0.10880278050899506, 0.06379438191652298, 0.6754854321479797, -0.08938512206077576, -0.12826500833034515, -0.3813014328479767, 0.27705520391464233, 0.1833384782075882, -0.11629780381917953, -0.4862464368343353, -0.18994659185409546, 0.8344361186027527, -0.17532651126384735, -0.121491022408...
it's generally best to stick with the slightly older but more compatible versions. That applies to pretty much any development.
[ 0.37235787510871887, 0.3048733174800873, 0.11801817268133163, 0.10378279536962509, 0.2610976994037628, -0.21012243628501892, -0.0424528494477272, 0.3000848591327667, 0.12343225628137589, -0.3833460211753845, -0.05753117799758911, 0.5909077525138855, 0.11405815929174423, -0.0743548050522804...
I have a Tapestry application that is serving its page as UTF-8. That is, server responses have header: ``` Content-type: text/html;charset=UTF-8 ``` Now within this application there is a single page that should be served with ISO-8859-1 encoding. That is, server response should have this header: ``` Content-type:...
[ 0.2939886450767517, 0.12396269291639328, 0.6915016770362854, -0.06922679394483566, -0.38915351033210754, 0.04507739469408989, 0.35633111000061035, -0.14232036471366882, -0.19859786331653595, -0.8425373435020447, -0.2781227231025696, 0.3181185722351074, -0.4300678074359894, 0.16319753229618...
return "ISO-8859-1"; } } ``` But neither setting those values with @Meta annotation or overriding getOutputEncoding method works. I am using Tapestry 4.0.2. EDIT: I ended up doing this with a Servlet filter with subclassed HttpServletResposeWrapper. The wrapper overrides setContentType() to force required enco...
[ 0.24335549771785736, -0.27320396900177, 0.158148854970932, -0.17167355120182037, -0.27219802141189575, -0.08628712594509125, 0.28451505303382874, -0.36945658922195435, -0.1705920398235321, -0.9968745112419128, -0.02038339152932167, 0.4980904161930084, -0.6140027046203613, -0.08266355097293...
init(FilterConfig fc) throws ServletException { this.filterConfig = fc; this.encoding = filterConfig.getInitParameter("encoding"); } /** * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) */ public void doFilter(ServletRequest req, ServletRespon...
[ -0.1689976155757904, -0.39261913299560547, 0.26159119606018066, -0.1675070822238922, -0.24683675169944763, 0.16292217373847961, 0.5059162378311157, -0.5454138517379761, -0.04067816957831383, -0.8579986691474915, -0.2976394593715668, 0.07944343239068985, -0.8152497410774231, -0.037728466093...
Is there a tool out there that can automatically convert Python to Java? Can Jython do this? It may not be an easy problem. Determining how to map classes defined in Python into types in Java will be a big challange because of differences in each of type binding time. (duck typing vs. compile time binding).
[ 0.09808434545993805, -0.17178034782409668, -0.06408815085887909, 0.23505163192749023, -0.18406015634536743, -0.1399243324995041, 0.1924886703491211, -0.1208227202296257, -0.15600013732910156, -0.555732250213623, 0.23978810012340546, 0.6222477555274963, -0.3131740987300873, -0.0847819447517...
.Net Compact Framework Scenario: User is on a screen. Device can't finds a printer and asks the user if they want to try again. If they click "No", the current screen is closed and they are returned to the parent menu screen. If they click the "No" button multiple times, the first click will be used by the No button a...
[ 0.3552999496459961, -0.28690147399902344, 0.4718942642211914, 0.06663621217012405, 0.1845880150794983, -0.4389403164386749, 0.3634970188140869, -0.04948645085096359, -0.25710365176200867, -0.8407407999038696, -0.21280796825885773, 0.5800743699073792, -0.37644827365875244, 0.163849577307701...
the user clicks "No" except a form closing. But the CF framework is slow to redraw the screen. Any ideas? Random thoughts: * Disable the some of the controls on the parent dialog while a modal dialog is up. I do not believe that you can disable the entire form since it is the parent of the modal dialog. * Alternative...
[ 0.5389447808265686, 0.239961177110672, 0.31180667877197266, 0.024117618799209595, -0.31899020075798035, -0.3253035545349121, 0.6148881912231445, 0.17061151564121246, -0.319369912147522, -0.7151344418525696, -0.045280277729034424, 0.6341745853424072, -0.36709097027778625, 0.1058478876948356...
overloaded and could be custom drawn faster that with sub controls? * override the DialogResult property and the Dispose method of the class to handle adding/remvoing a wait cursor.
[ 0.08646261692047119, -0.2750032842159271, 0.23965607583522797, 0.11742977052927017, -0.02078423649072647, -0.16161711513996124, 0.3344806134700775, -0.1380128711462021, -0.19720515608787537, -0.44508469104766846, -0.04568351432681084, 0.32429027557373047, -0.3694450557231903, 0.15311412513...
How do I calculate the position of an accelerating body (e.g. a car) after a certain time (e.g. 1 second)? For a moving body that it not accelerating, it is a linear relationship, so I presume for an accelerating body it involves a square somewhere. Any ideas? The equation is: s = ut + (1/2)a t^2 where s is position...
[ 0.054593563079833984, -0.46927785873413086, 0.6939077973365784, -0.1329210102558136, -0.2561643123626709, 0.5926599502563477, -0.060057926923036575, -0.48370808362960815, -0.25530198216438293, -0.6332221627235413, 0.10520512610673904, 0.2750616669654846, 0.08139806240797043, 0.159869432449...
analytically the equations stating that velocity is the rate-of-change of position, and acceleration is the rate-of-change of velocity. Usually in a game-programming situation, one would use a slightly different formulation: at every frame, the variables for velocity and position are integrated not analytically, but n...
[ -0.14365354180335999, -0.36727696657180786, 0.2964208722114563, 0.165093794465065, 0.010751578956842422, 0.4717232882976532, -0.13049793243408203, -0.426013320684433, -0.33495596051216125, -0.7401528358459473, 0.2885969579219818, 0.3201799690723419, -0.032736845314502716, 0.209208041429519...
the simplest to demonstrate with, has fairly poor accuracy. See [Velocity Verlet](http://en.wikipedia.org/wiki/Verlet_integration) (often used in games), and [4th order Runge Kutta](http://en.wikipedia.org/wiki/Runge_kutta) (a 'standard' method for scientific applications) for improved algorithms.
[ -0.4227305054664612, -0.33246755599975586, 0.05550450086593628, 0.07143653184175491, -0.3228442966938019, 0.06290777772665024, 0.17835736274719238, -0.7007084488868713, -0.007460518274456263, -0.6858956217765808, -0.030722126364707947, 0.5123006105422974, -0.11295865476131439, -0.302077859...
What is the ideal code to logging ratio? I'm not used to writing logs as most of the applications I've developed have not had much logging. Recently though I've changed job, and I've noticed that you can't see the application code for the calls to log4net. I appreciate that this is useful but surely having too many de...
[ 0.6653985381126404, 0.09704126417636871, 0.20693564414978027, 0.12210678309202194, -0.18808963894844055, 0.08657779544591904, 0.3722734749317169, -0.234627828001976, -0.4806246757507324, -0.2565211355686188, 0.21725553274154663, 0.6008634567260742, -0.24746142327785492, -0.0112620275467634...
that used reflection to add the logging statements in at compile time so they didn't get in the way as you were trying to look at the code? Also in these days of powerful IDEs and remote debugging is that much logging really nescisary? There is actually a nice library for adding in logging after the fact as you say, [...
[ 0.7042632699012756, 0.07287606596946716, -0.13463427126407623, 0.3641839325428009, -0.19005662202835083, -0.34688183665275574, 0.2307758629322052, 0.0005403260583989322, -0.32049641013145447, -0.30809617042541504, 0.4777972996234894, 0.7950188517570496, 0.05916861072182655, -0.184214711189...
critical apps. It may be necessary for extreme logging, or at least be able to turn it on and off if needed, or have various levels set.
[ 0.13576339185237885, 0.025340549647808075, 0.3207746744155884, 0.5994842648506165, 0.3100849688053131, -0.4829842746257782, 0.3467351198196411, 0.3169340193271637, -0.1704569309949875, -0.6036457419395447, -0.6307857632637024, 0.6434191465377808, -0.33206963539123535, -0.18095743656158447,...
I'm looking for a tool that will be able to build a parser (in C#) if I give it a BNF grammar (eg. <http://savage.net.au/SQL/sql-2003-2.bnf>) Does such a generator exist? Normally BNF grammars are too ambiguous. ANTLR will be probably good for what you are looking for.
[ 0.185884490609169, 0.14237824082374573, -0.08952490985393524, -0.14719924330711365, -0.5318843722343445, -0.06003224104642868, 0.2519817352294922, 0.13509702682495117, -0.21887020766735077, -0.5157430768013, 0.13303889334201813, 0.507351279258728, -0.37977954745292664, -0.10177359730005264...
How do I iterate over a timespan after days, hours, weeks or months? Something like: ``` for date in foo(from_date, to_date, delta=HOURS): print date ``` Where foo is a function, returning an iterator. I've been looking at the calendar module, but that only works for one specific year or month, not between date...
[ 0.0966513603925705, -0.07471335679292679, 0.4824894070625305, -0.27222949266433716, -0.18462879955768585, 0.3954569697380066, -0.033637676388025284, -0.25550633668899536, -0.1324346363544464, -0.4039974808692932, 0.032567620277404785, 0.46620991826057434, 0.05849553272128105, -0.1157065704...
and until with whatever datetime object you want. This recipe has the advantage for working in all cases, including MONTHLY. Only caveat I could find is that if you pass a day number that doesn't exist for all months, it skips those months.
[ 0.6294161677360535, 0.0505242794752121, 0.6604615449905396, -0.007117824163287878, 0.044663287699222565, -0.02903350070118904, -0.03555694967508316, 0.422013521194458, -0.3859630227088928, -0.32957661151885986, -0.11557699739933014, 0.036117054522037506, 0.1783888041973114, 0.2254659980535...
What would be the most efficient way of recording to a log (.txt) from a console program on C# and .NET 2.2? My program loops multiple times always outputting different data based on what the user wants, so I'm searching for the most efficient way to achieve this. I know I can always reopen a stream and then close it,...
[ 0.5684359073638916, -0.13428299129009247, 0.09810499101877213, 0.2446557730436325, 0.20610560476779938, 0.10311843454837799, 0.29592257738113403, 0.09617673605680466, -0.33921974897384644, -0.5716121792793274, 0.24025045335292816, 0.7660886645317078, -0.09479854255914688, 0.120384320616722...
output data that I want to log (opening/closing the same file or accessing the same file on different threads might be bad). The "holds a reference to a stream writer that auto-flushes" sounds like a good idea, however I don't know how to do that. You could hook into the tracing framework that forms part of the CLR. Us...
[ 0.46133846044540405, -0.31356993317604065, 0.4176441729068756, 0.15563517808914185, 0.0809059739112854, -0.37628501653671265, -0.0753902718424797, -0.09349837899208069, -0.07288192957639694, -0.7105997204780579, 0.10438542068004608, 0.4439542293548584, -0.528221845626831, 0.313857436180114...
trace.Verbose("Entered MyClass"); int x = 12; trace.Information("X is: {0}", x); trace.Verbose("Leaving MyClass"); } ``` There are 4 levels of information in the inbuilt tracing framework: Verbose - To log program flow Information - To log specific information of interest to monitors Warning - To log a...
[ 0.23874665796756744, -0.03710830956697464, 0.5059105753898621, 0.17065151035785675, 0.2880078852176666, 0.12702877819538116, 0.5294244289398193, -0.27704134583473206, -0.03624335676431656, -0.6432589888572693, -0.12763305008411407, 0.4651195704936981, -0.3006443977355957, -0.18097016215324...
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\mylogfile.log" /> </listeners> </trace> <switches> <add name="My.Namespace.Class" value="4"/> </switches> </system.diagnostics> ``` You can also attach listeners for publishing to the eventlog...
[ 0.6562734842300415, -0.06119437515735626, 0.539185643196106, 0.13882707059383392, 0.050362423062324524, -0.3109295666217804, 0.12071964144706726, -0.35927078127861023, -0.1573525220155716, -0.535050630569458, 0.13557828962802887, 0.3459717333316803, -0.1292540282011032, 0.08782288432121277...
Is there an elegant way to have performant, natural sorting in a MySQL database? For example if I have this data set: * Final Fantasy * Final Fantasy 4 * Final Fantasy 10 * Final Fantasy 12 * Final Fantasy 12: Chains of Promathia * Final Fantasy Adventure * Final Fantasy Origins * Final Fantasy Tactics Any other **e...
[ 0.14098769426345825, -0.3000398874282837, 0.13784337043762207, 0.27618834376335144, -0.47078800201416016, -0.08548934012651443, -0.09239852428436279, -0.22027777135372162, -0.44465211033821106, -0.36241114139556885, 0.031210266053676605, 0.2436530888080597, -0.07791296392679214, 0.14934611...
game that breaks that mechanism of parsing the game title (e.g. "Warhammer 40,000", "James Bond 007") I think this is why a lot of things are sorted by release date. A solution could be to create another column in your table for the "SortKey". This could be a sanitized version of the title which conforms to a pattern ...
[ -0.06107361614704132, -0.022431163117289543, 0.0019950068090111017, 0.2483564168214798, -0.023596622049808502, -0.39111843705177307, -0.3277094066143036, 0.15903644263744354, -0.7015320658683777, -0.3413104712963104, -0.14862781763076782, 0.11259015649557114, -0.1220797449350357, 0.2431420...
I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up. Now the way this is supposed to work, and the way it works when we do it manually, is we...
[ 0.564764142036438, 0.16521432995796204, 0.22037452459335327, -0.1981194168329239, 0.12131587415933609, 0.06358031928539276, 0.38827788829803467, -0.24847334623336792, -0.050655901432037354, -1.206710696220398, 0.08641298115253448, 0.2946281135082245, -0.2540530562400818, 0.1521987468004226...
a copy of the template file to the fileout filename, instead of the output of the merge. I've searched, and I seem to be banging my head against a brick wall. datafile is the datafile that contains the merge data. Using the same files, it all works if you do it manually. ``` Public Function processFile(ByVal datafi...
[ 0.4496757686138153, 0.12096075713634491, 0.40540117025375366, -0.14547251164913177, 0.3404480516910553, -0.036463212221860886, 0.2579735219478607, -0.3677133619785309, -0.34944766759872437, -0.8259797096252441, -0.15426668524742126, 0.5778870582580566, -0.4100708067417145, 0.14020857214927...
' Create an instance of Word and make it invisible.' wrdApp = CreateObject("Word.Application") wrdApp.Visible = False ' Add a new document.' wrdDoc = wrdApp.Documents.Add(fileOut & ".template") wrdDoc.Select() Dim wrdSelection As Word.Selectio...
[ 0.15758344531059265, -0.17923803627490997, 0.24643421173095703, -0.19506730139255524, -0.1181405633687973, 0.022301236167550087, 0.711800217628479, -0.40823233127593994, -0.2154308259487152, -0.8888790607452393, -0.4995254576206207, 0.2549954354763031, -0.5651293396949768, 0.15949465334415...
Dim wrdMailMerge As Word.MailMerge wrdDoc.MailMerge.OpenDataSource(datafile) wrdSelection = wrdApp.Selection() wrdMailMerge = wrdDoc.MailMerge() With wrdMailMerge .Execute() End With
[ 0.19443568587303162, -0.40768134593963623, 0.5310492515563965, -0.12129541486501694, -0.20260757207870483, 0.0593731552362442, 0.6890556812286377, -0.4834694266319275, -0.22736409306526184, -0.3747327923774719, -0.5802172422409058, 0.32938462495803833, -0.1711357682943344, 0.35570701956748...
wrdDoc.SaveAs(fileOut) wrdApp.Quit(False) ' Release References.' wrdSelection = Nothing wrdMailMerge = Nothing wrdDoc = Nothing wrdApp = Nothing
[ 0.48593026399612427, 0.015103217214345932, 0.2579416334629059, 0.16707706451416016, 0.12289878726005554, -0.47117501497268677, 0.7519072890281677, -0.07891129702329636, -0.4398251175880432, -0.1427837759256363, -0.5762768983840942, 0.7853460311889648, -0.4098151624202728, 0.038385137915611...
ans = "Merged OK" Call writeToLogFile(errorLog, "This worked, written to " & fileOut) Catch ex As Exception ans = "error : exception thrown " & ex.ToString Call writeToLogFile(errorLog, ans) End Try Else ans = "error ; unable to open Date File :
[ -0.07892559468746185, -0.011336400173604488, 0.3764890730381012, -0.29534122347831726, 0.30526918172836304, 0.014108090661466122, 0.7128409743309021, -0.049182161688804626, -0.11141832172870636, -0.18385304510593414, -0.3627776503562927, 0.41411447525024414, -0.30239138007164, 0.4191594123...
" & datafile If (logErrors) Then Call writeToLogFile(errorLog, "The specified source csv file does not exist. Unable " & _ "to process it. Filename provided: " & datafile) End If End If Return ans End Function ``` I've found the solution. When you merge a document, ...
[ 0.11697530001401901, 0.2367992103099823, 0.6330949664115906, -0.009387508034706116, 0.44991692900657654, -0.09560510516166687, 0.4586608111858368, -0.23530082404613495, -0.0750390887260437, -0.4424108862876892, -0.4441520869731903, 0.309891939163208, -0.39039307832717896, 0.238396480679512...
fragment below explains. ``` wrdDoc = wrdApp.Documents.Add(TemplateFileName) wrdDoc.Select() Dim wrdSelection As Word.Selection Dim wrdMailMerge As Word.MailMerge wrdDoc.MailMerge.OpenDataSource(DataFileName) wrdSelection = wrdApp.Selection() wrdMailMerge = wrdDoc.MailMerge() With wrdMailMerge .Execute() End Wit...
[ 0.33311474323272705, 0.02325497195124626, 0.3273772895336151, -0.222259521484375, 0.07570897787809372, -0.007302762009203434, 0.7627713084220886, -0.5118291974067688, -0.24593126773834229, -0.5366553664207458, -0.48888397216796875, 0.6140005588531494, -0.3591806888580322, 0.350033342838287...
What alternatives are there to GAE, given that I already have a good bit of code working that I would like to keep. In other words, I'm digging python. However, my use case is more of a low number of requests, higher CPU usage type use case, and I'm worried that I may not be able to stay with App Engine forever. I have...
[ 0.19375188648700714, 0.10240389406681061, -0.09291037917137146, 0.25987938046455383, -0.1651507467031479, 0.42485857009887695, 0.17339439690113068, 0.17290763556957245, -0.27215129137039185, -0.6411475539207458, 0.2791351079940796, 0.6455973386764526, -0.12572811543941498, 0.11066916584968...
querying, user authentication, automatic scaling) that App Engine provides. What are my options here? I don't think there is another alternative (with regards to code portability) to GAE right now since GAE is in a class of its own. Sure GAE is cloud computing, but I see GAE as a subset of cloud computing. Amazon's EC2...
[ 0.045275330543518066, -0.20216438174247742, 0.1693325638771057, 0.4130030572414398, -0.2704806923866272, 0.15385237336158752, 0.010488792322576046, 0.11187402904033661, -0.4113958775997162, -0.7480204105377197, 0.09757246822118759, 0.7314434051513672, -0.1672268509864807, 0.050266612321138...
maintenance free as it relates to infrastructure (scalable web server and database administration). GAE is more tailored to those developers that only want to focus on their applications and not the underlying system.In a way you can consider that developer friendly. Now it should also be said that these other cloud co...
[ 0.6597681045532227, 0.09393981844186783, 0.21899732947349548, 0.41291987895965576, -0.07706625759601593, -0.2442931979894638, 0.282997190952301, -0.022359630092978477, -0.2812674939632416, -0.321092814207077, -0.1961253136396408, 0.884184718132019, -0.28341230750083923, -0.0843200758099556...
needs as well. For example, GAE doesn't seem *directly* suited to this specific app needs you describe. In other words, GAE offers relatively high number of requests, low number of cpu cycles (not sure if paid version will be any different). However, one way to tackle this challenge is by building a customized solutio...
[ 0.1447857916355133, -0.2748830020427704, 0.23373651504516602, 0.28061914443969727, -0.2004060596227646, 0.1917508840560913, -0.07552982866764069, -0.29559263586997986, -0.2767002284526825, -0.6217055916786194, -0.028845900669693947, 0.36869585514068604, -0.09160227328538895, -0.04442824423...
post](https://stackoverflow.com/questions/149307/background-tasks-on-appengine) describes a method of simulating background tasks in GAE. Furthermore, you can look into [HTTP Map/Reduce](http://code.google.com/p/httpmr/) to distribute workload as well.
[ 0.03125403821468353, -0.08938546478748322, 0.20233887434005737, 0.16070987284183502, -0.23355063796043396, 0.5258686542510986, 0.04321382939815521, -0.2275582104921341, -0.47605380415916443, -0.49029624462127686, -0.20213575661182404, 0.17726972699165344, -0.35063666105270386, -0.048662211...
What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations. I also would like only significant digits to be displayed ...
[ 0.08750701695680618, 0.277727872133255, 0.26598483324050903, -0.25368955731391907, -0.19594073295593262, 0.2837514579296112, -0.012337825261056423, -0.12085741758346558, -0.23261770606040955, -0.2585691213607788, 0.10852605104446411, 0.26833513379096985, -0.058345869183540344, 0.2373408824...
0.912300); ``` returns: ``` 0.91230 ``` Another method is to use the `DecimalFormatter`: ``` DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385); ``` returns: ``` 0.91238 ``` However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I...
[ -0.11868731677532196, 0.07704135775566101, 0.47836610674858093, -0.16819638013839722, -0.10415053367614746, 0.2744678258895874, -0.017975393682718277, -0.4936393201351166, -0.2640102803707123, -0.07789122313261032, -0.03664439916610718, 0.5587525963783264, -0.14914420247077942, -0.04088425...
does not address the accuracy of the double values. That is fine if you don't care much whether it rounds up or down. But if you want accurate rounding, then you need to take the expected accuracy of the values into account. Floating point values have a binary representation internally. That means that a value like 2.7...
[ 0.21930180490016937, 0.239279642701149, 0.16795998811721802, 0.14345219731330872, -0.0074757663533091545, 0.26536425948143005, 0.05485671013593674, -0.18473608791828156, -0.5646067261695862, -0.11198129504919052, 0.25854504108428955, 0.3514816462993622, 0.04556499794125557, 0.3968382775783...
of the values that you are working with, and add or subtract that value before rounding. For example, when you know that your values are accurate up to 6 digits, then to round half-way values up, add that accuracy to the value: ``` Double d = n.doubleValue() + 1e-6; ``` To round down, subtract the accuracy.
[ 0.258897989988327, 0.14205650985240936, 0.23773178458213806, -0.4023894667625427, 0.1943245828151703, 0.332261860370636, 0.34527361392974854, -0.5368887186050415, -0.19589632749557495, -0.19738271832466125, -0.15046803653240204, 0.7423854470252991, 0.019512316212058067, 0.21520283818244934...
As in subject... is there a way of looking at an empty table schema without inserting any rows and issuing a SELECT? Are you looking for [DESCRIBE](http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/core/r0002019.htm)? `db2 describe table user1.department` ``` Table: USER1.DEPART...
[ -0.20306861400604248, 0.19328245520591736, 0.28308477997779846, 0.12564226984977722, -0.12942886352539062, 0.052539434283971786, 0.07778611779212952, -0.2685396671295166, -0.4510669708251953, -0.6326181292533875, -0.3502453565597534, 0.2362043857574463, -0.11040227115154266, 0.389790266752...
SYSIBM SMALLINT 2 0 No DEPT SYSIBM CHARACTER 3 0 No DEPTNAME
[ -0.2149360328912735, -0.2622728645801544, 0.12555751204490662, -0.14719173312187195, -0.21844488382339478, -0.10067430138587952, 0.15767762064933777, 0.19047744572162628, -0.17766925692558289, -0.602791428565979, -0.26325908303260803, 0.29120123386383057, -0.30108049511909485, 0.1808546036...
SYSIBM CHARACTER 20 0 Yes ```
[ -0.20730774104595184, 0.35712888836860657, 0.2823120951652527, -0.10604342073202133, -0.0038840423803776503, -0.05295766890048981, -0.08380472660064697, -0.021569587290287018, -0.10578718781471252, -0.3631356656551361, -0.31490856409072876, 0.3690129220485687, -0.24728603661060333, 0.17625...
i have a library with some entities that share the same interface. clients and service share this assembly. now i wonder if there is a way to have this Interface-type as Parameter in my service contracts so that i can use the same method for all classes implementing the interface. the entities themselve are all decora...
[ 0.349403440952301, 0.02427005022764206, 0.2727809548377991, 0.2972598969936371, -0.31872519850730896, 0.12126567214727402, 0.1324443221092224, 0.0880126953125, -0.3160945177078247, -0.7118737101554871, 0.17237678170204163, 0.42033419013023376, -0.17654210329055786, 0.4547499716281891, -0...
it is used widely in the client app and would ease development. thanks I solved the problem using the ServiceKnownType attribute at the implementations of the OperationContracts. When telling your classes that implement the interface as ServiceKnownType's, you can use the interface as parameter and therefore are able...
[ 0.16250962018966675, -0.15261344611644745, 0.36888086795806885, -0.027058769017457962, -0.2434435486793518, 0.011775240302085876, 0.5250930190086365, -0.011844608932733536, -0.07296071946620941, -0.7670267224311829, -0.1862226277589798, 0.60517418384552, -0.12810219824314117, 0.12919776141...
I'm getting some objects from an external library and I need to store those objects in a database. Is there a way to create the tables and relationships starting from the objects, or I have to dig into them and create migrations and models by hand? Thanks! Roberto Even if you could dynamically create tables on the fly...
[ 0.35451212525367737, 0.2806485891342163, 0.008231942541897297, 0.48786669969558716, 0.1263151466846466, -0.0513024777173996, -0.0535607784986496, 0.28846973180770874, -0.20337629318237305, -0.4572998881340027, 0.566652238368988, 0.6372639536857605, -0.016684889793395996, 0.2850364148616791...
I am coming from the SQL server world where we had uniqueidentifier. Is there an equivalent in oracle? This column will be frequently queried so performance is the key. I am generating the GUID in .Net and will be passing it to Oracle. For a couple reasons it cannot be generated by oracle so I cannot use sequence. ```...
[ 0.5187398791313171, 0.13490378856658936, 0.20689623057842255, -0.04650064930319786, -0.2634067237377167, -0.18710346519947052, -0.053663596510887146, -0.21577556431293488, -0.049988407641649246, -0.7603034973144531, 0.32089701294898987, 0.5906012654304504, -0.08285751193761826, 0.354572921...
What do the brackets do in a sql statement? For example, in the statement: ``` insert into table1 ([columnname1], columnname2) values (val1, val2) ``` Also, what does it do if the table name is in brackets? The [] marks the delimitation of a identifier, so if you have a column whose name contains spaces like Order ...
[ -0.0011751296697184443, 0.13417395949363708, 0.20444856584072113, 0.039866406470537186, -0.2630161941051483, 0.012549295090138912, -0.23247888684272766, -0.3788953423500061, -0.08329442888498306, -0.21751762926578522, -0.1562862992286682, 0.5867109894752502, -0.22294768691062927, 0.2640707...
As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file. The entry is for a third party app so the format is fixed. The entry takes the form of a REG\_SZ string but needs to contain newlines ie. 0xOA characters as separators. I've hit a few problems...
[ 0.23237265646457672, -0.1075146496295929, 0.5354329943656921, 0.07356265187263489, 0.04598996043205261, 0.03436921909451485, 0.2808186411857605, -0.06120676547288895, -0.06789657473564148, -0.778985857963562, 0.04278865456581116, 0.4309227466583252, -0.34471988677978516, 0.3398244380950928...
test export as the third party app adds similar entries directly through the win32 api. Second attempt used the command REG ADD but I can't find anyway to add the newline characters everything I try just ends up with a literal string being added. You could create a VBScript(.vbs) file and just call it from a batch fil...
[ 0.6746519207954407, -0.023349927738308907, 0.17178571224212646, -0.14619766175746918, -0.22769904136657715, 0.09507765620946884, 0.5058574080467224, -0.19157907366752625, 0.19273218512535095, -0.7121165990829468, 0.13975563645362854, 0.5204986929893494, -0.45087212324142456, -0.03073522262...