text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
being added. Even if Microsoft moves to a different technology, you will still see people using and supporting Linq. Hell, its already happened to some degree with Linq to Entities and you still see the majority of developers using Linq will mostly ignoring L2E. The only major downside to using LINQ today is the lack o...
[ 0.3593788743019104, 0.002146512269973755, 0.4652099907398224, 0.2993103861808777, -0.07658985257148743, -0.31677693128585815, 0.010021809488534927, 0.3294781744480133, -0.23870614171028137, -0.6004910469055176, -0.02217189595103264, 0.3620244264602661, -0.28435784578323364, 0.0319268405437...
Apple is now requiring app developers to submit apps that target 2.2.1 but also build for 3.0. I (and I imagine a large majority of small/part-time developers) only have one iPhone and since the upgrade to 3.0 is irreversible, I wanted to get some thoughts out there as to what are some best practices for minimizing ris...
[ 0.010818134993314743, 0.4084223210811615, 0.4305783212184906, -0.18514084815979004, 0.2402438372373581, 0.2361670881509781, 0.27479252219200134, -0.011028965935111046, -0.14464432001113892, -0.5809165835380554, -0.08363042771816254, 0.6944094300270081, -0.3255475163459778, -0.3241188526153...
iPhone OS 3.0 > this summer. Beginning today, all > submissions to the App Store will be > reviewed on the latest beta of iPhone > OS 3.0. If your app submission is not > compatible with iPhone OS 3.0, it will > not be approved. > > > Existing apps in the App Store should > already run on iPhone OS 3.0 without...
[ 0.2933160662651062, 0.37302345037460327, 0.7165930867195129, -0.11489836126565933, -0.05857726186513901, -0.07071614265441895, 0.47789129614830017, -0.33513563871383667, 0.03746310994029045, -0.7513527274131775, -0.37830236554145813, 0.5948883891105652, -0.3361836373806, -0.147916883230209...
incompatible with iPhone OS 3.0 may > be removed from the App Store. I came across this doc on the iPhone Dev Central that might be useful: [Technical Note TN2246](http://adcdownload.apple.com/iphone/iphone_sdk_3.0_beta_4/technical_note_getting_ready_for_iphone_os_3.0.pdf)
[ 0.1730984002351761, 0.42155978083610535, 0.15778319537639618, 0.10917135328054428, 0.07133191078901291, -0.2244264930486679, 0.9422419667243958, -0.2480040192604065, 0.34507784247398376, -0.1654374599456787, -0.20179352164268494, 0.5886200666427612, -0.588821530342102, 0.2664162516593933, ...
I am using CodeIgniter. My database is MySQL 5. The SQL statement below works fine, but I am thinking it would not really be compatible with MSSQL, PG, et al. I am wondering if it's possible to implement the statement using the Active Record class in CI, hence making it completely cross database ? I think the "GROUP\_...
[ 0.26050248742103577, 0.1915600299835205, 0.3769764006137848, -0.06092311441898346, -0.14731021225452423, -0.35875824093818665, 0.22449152171611786, 0.20725932717323303, -0.0753108412027359, -0.8745262622833252, 0.13154099881649017, 0.41942328214645386, -0.2302236557006836, 0.33842203021049...
not all database > engines." I may have to rethink this, as it looks to be not possible using pure Active Record. ``` SELECT system.system_id, system.uuid, system.hostname, system.man_description, system.man_ip_address, system.os_short_name, system.os_full_name, syste...
[ -0.5230304002761841, 0.1687709540128708, 0.30743908882141113, 0.17542970180511475, 0.05247156694531441, 0.012112169526517391, 0.1888638585805893, -0.26972320675849915, -0.3971538245677948, -0.7450358271598816, -0.2881477177143097, 0.29790928959846497, -0.41194072365760803, 0.51454842090606...
oa_group, oa_group_sys WHERE system.system_id IN ( SELECT system.system_id FROM system, oa_group_sys, oa_group,
[ -0.48062434792518616, 0.056483715772628784, 0.1876421570777893, -0.18557657301425934, 0.4702557325363159, 0.21544183790683746, -0.12599001824855804, -0.2321254163980484, -0.15811026096343994, -0.58937007188797, -0.4272414445877075, 0.037181805819272995, -0.4023074507713318, 0.0292330197989...
oa_group_user WHERE system.man_status = 'production' AND system.system_id = oa_group_sys.system_id AND oa_group_sys.group_id = oa_group.group_id AND
[ -0.18161283433437347, 0.3916536569595337, 0.11173851788043976, -0.3874080181121826, 0.03241128474473953, 0.5189248919487, -0.22175095975399017, -0.3378468155860901, -0.36858439445495605, -0.3761875033378601, -0.36940696835517883, 0.1369861215353012, -0.3883206248283386, 0.11081302165985107...
oa_group.group_id = oa_group_user.group_id AND oa_group_user.user_id = '1' ) AND system.system_id = oa_group_sys.system_id AND oa_group_sys.group_id = oa_group.group_id GROUP BY system.system_id ``` Found a solution. [Hash has a keyOf function](http://mootools.net/docs/core/Native/...
[ -0.4161093235015869, 0.16860972344875336, 0.3344990909099579, -0.326455682516098, 0.22423069179058075, 0.24922342598438263, 0.06401287764310837, -0.33416301012039185, -0.2817462682723999, -0.49357256293296814, -0.184702530503273, 0.467843621969223, -0.354147732257843, 0.22738094627857208, ...
new Class({ name: function() { var w = $H(window); return w.keyOf(this.constructor); } }); var a = new Poop(); a.name(); // returns 'Poop' ``` This of course works only because I create classes in the global window namespace (as is common with MooTools). If you made classes inside some namespa...
[ -0.08411045372486115, -0.09571115672588348, 0.43072107434272766, -0.14885933697223663, 0.31272438168525696, 0.16516540944576263, 0.43142086267471313, -0.1749371886253357, -0.23640505969524384, -0.878948450088501, -0.21889768540859222, 0.703947126865387, -0.33311107754707336, 0.285276442766...
I have the following function ``` void initBoard(int * board[BOARD_ROWS][BOARD_COLS]){ int z = 0; for( z = 0; z<10; z+=1){ int l; for( l = 0; l<10; l+=1){ board[z][l] = 0; } } } ``` and from main i call it like ``` int plBoard[10][10]; initBoard(&pcBoard); ``` when compiling it wo...
[ 0.02945665642619133, 0.006282506510615349, 0.43905434012413025, -0.313815176486969, 0.11880409717559814, -0.1026277020573616, 0.35539567470550537, -0.06894326955080032, -0.08361564576625824, -0.6223567128181458, -0.012788455933332443, 0.33095505833625793, -0.4270840585231781, 0.29384577274...
int. What is wrong with it? Apart from the obvious typo in your question (the definition of `plBoard` but the use of `pcBoard`), you don't need to pass arrays with the address-of operator (`&`), since they're converted to addresses automatically. But your `incompatible type` problem is caused by the use of: ``` int *...
[ 0.05193890258669853, 0.01564556546509266, 0.4157809317111969, 0.021341880783438683, -0.05765293911099434, -0.20765630900859833, 0.07750144600868225, -0.372332364320755, -0.1707114428281784, -0.4303725063800812, -0.21934856474399567, 0.527625322341919, -0.4512985050678253, -0.09302482753992...
// <-- remove "&" ```
[ 0.09897521138191223, 0.35283762216567993, 0.10402420908212662, -0.04910377785563469, 0.18227306008338928, -0.02041592448949814, 0.22034038603305817, 0.22669818997383118, 0.23584599792957306, -0.3147640824317932, -0.5481276512145996, 0.316324383020401, -0.03444620966911316, -0.0177613832056...
I am building a basic Image editor. In my app, if the user wants to resize the image a new form pops up and asks the user to input an new width and height for the image. ``` public partial class Form1 : Form { ... private void resizeToolStripMenuItem_Click(object sender, EventArgs e) { resize resizeFor...
[ 0.4578867554664612, -0.11986023187637329, 0.9813442230224609, -0.20324945449829102, 0.00678836228325963, 0.09288711100816727, 0.1805231124162674, -0.490741103887558, 0.004378900863230228, -0.8121823072433472, -0.10335984081029892, 0.7499762177467346, -0.09319998323917389, 0.157398819923400...
form (the `Form1` instance). If this question needs clarification please let me know. Thanks! I assume there are a number of ways to do this. I'd probably use public properties on the resizeForm and then get those when the resizeForm.ShowDialog() returns. ``` if (resizeForm.ShowDialog() == DialogResult.OK) // or wh...
[ 0.37270715832710266, -0.15501703321933746, 0.8930778503417969, -0.10648280382156372, -0.04613339900970459, -0.049854349344968796, 0.340716689825058, -0.17264340817928314, 0.11538733541965485, -0.981451153755188, -0.15845413506031036, 0.710878312587738, -0.2548843324184418, 0.10145971924066...
I tired to write a function to check key code with javascript. It's working fine for firefox but not IE. Does anyone know what is going wrong with my code? Please see below code for more details. ``` function textCheck(e) { var e = window.event || e alert("CharCode value: "+e.charCode) alert("Character: "+String.fr...
[ 0.19751690328121185, -0.20589762926101685, 0.6382290124893188, -0.19765464961528778, 0.037562426179647446, -0.2705421447753906, 0.3691013753414154, -0.19218644499778748, -0.2911006212234497, -0.778511643409729, -0.14518649876117706, 1.1163363456726074, -0.1505786031484604, -0.1179556921124...
complex... See: <http://unixpapa.com/js/key.html>
[ 0.1516912877559662, -0.10728982090950012, 0.14354313910007477, -0.22644254565238953, 0.06304098665714264, -0.3007841408252716, 0.15694451332092285, -0.02087324671447277, -0.21472054719924927, -0.34703195095062256, -0.29828113317489624, 0.6638727188110352, -0.380926251411438, 0.284265577793...
I used mmap(just try to understand how mmap works) to allocate 96k anonymous memory, but looks like it split the 96k into 64k and 32k. But when allocate 960k, it allocate only one chunk whose size is 960k. When solaris will split the allocate mem into several part? Code: ``` #define PROT PROT_READ | PROT_WRITE #define...
[ -0.13811326026916504, -0.29491540789604187, 0.2875394821166992, -0.3379824459552765, -0.04670938849449158, 0.27253055572509766, 0.1532827615737915, -0.5472577214241028, -0.13998793065547943, -0.7524901628494263, -0.21708105504512787, 0.4793583154678345, -0.38605329394340515, -0.33968204259...
== MAP_FAILED) printf("mmap error for input"); ``` Truss: ``` mmap(0x00000000, 88304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFFFFFFFF7E900000 mmap(0x00000000, 983040, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFFFFFFFF7E800000 mmap(0x00000000, 98304, PROT_READ|PROT_WRITE, MAP...
[ -0.49061480164527893, 0.08714885264635086, 0.45550668239593506, 0.028543371707201004, -0.023268092423677444, 0.38498008251190186, 0.6008577942848206, -0.5864847898483276, -0.42279052734375, -0.4319536089897156, -0.0469636470079422, 0.09804639965295792, -0.26956111192703247, 0.1862966120243...
32 - - - rw--- [anon] FFFFFFFF7E800000 960 - - - rw--- [anon] FFFFFFFF7E900000 64 - -
[ -0.7296887636184692, 0.28605347871780396, 0.25056740641593933, 0.05759594216942787, -0.07597210258245468, 0.3898686170578003, 0.12343437224626541, -0.10108790546655655, -0.4124276340007782, -0.2669648230075836, -0.4077748656272888, 0.7898902893066406, -0.10795822739601135, -0.2230816930532...
- rw--- [anon] FFFFFFFF7E910000 24 - - - rw--- [anon] FFFFFFFF7EA00000 64 - - - rw--- [anon] FFFFFFFF7EA10000 32
[ -0.6522563099861145, 0.38341987133026123, 0.26399317383766174, -0.17065539956092834, -0.10135342925786972, 0.5830782055854797, 0.1866689920425415, -0.06414533406496048, -0.9248018860816956, -0.18386141955852509, -0.3975355327129364, 0.40437883138656616, -0.24377238750457764, 0.066006548702...
- - - rw--- [anon] ``` That *is* contiguous memory, you can tell by the addresses `(F...700000 + 64K = F...710000)` so I don't think you have to worry about that. I'm pretty certain that mmap is required to give you contiguous memory in your address space. It would be pretty useless otherwise sinc...
[ 0.15323957800865173, 0.3540969789028168, -0.09977630525827408, -0.09651796519756317, 0.00810855720192194, 0.2895454466342926, 0.1090608611702919, -0.13257130980491638, -0.4971434473991394, -0.47716042399406433, -0.20886264741420746, 0.3075360655784607, -0.030288146808743477, 0.059438884258...
why does this show up as two blocks in the pmap? To which my answer would be, "Stuffed if I know". But I can make an intelligent guess which is the best anyone can hope for from me at this time of the morning (pre-coffee). I would suggest that those blocks had been allocated before to another process (or two) and had...
[ 0.3867932856082916, -0.03409309312701225, 0.23857970535755157, 0.11642955988645554, 0.22995412349700928, -0.009810250252485275, -0.1323590725660324, -0.2909296751022339, -0.7721854448318481, -0.4287225902080536, -0.11539740115404129, 0.021753137931227684, -0.049129340797662735, 0.238540798...
your output shows that's *not* happening). * it does it periodically and it hadn't got around to it before you requested your 96K block; or * it doesn't bother at all because it's smart enough to do it during the allocation of a block to you. I suspect it's the latter simply because the memory manager had no problems ...
[ 0.48828139901161194, -0.21387474238872528, 0.06744753569364548, 0.3709377944469452, -0.20439186692237854, 0.014905224554240704, 0.1509438008069992, 0.2173311710357666, -0.4903309643268585, -0.667874813079834, 0.0852646753191948, 0.1327575445175171, 0.03499029204249382, -0.02415950410068035...
the internals of UNIX (real UNIXes, not that new kid on the block :-) but I've never had a need to delve into mmap.
[ 0.13526034355163574, 0.2404184639453888, -0.22700686752796173, -0.045576632022857666, -0.1595519781112671, -0.10279466211795807, 0.018903840333223343, 0.5688389539718628, 0.05229513719677925, -0.2083372175693512, 0.11370325088500977, 0.7718161940574646, 0.14478644728660583, -0.238192424178...
I am working with C style 2d arrays of integers. This is fine in my main class file, and I can pass my arrays by reference to other classes. I have run into issues when I try to retrieve a pointer to the arrays and work with that. My question is: rather than using C style 2d arrays, is there a better way to do it? ma...
[ 0.3295948803424835, 0.11461509764194489, 0.04409376159310341, -0.018123557791113853, -0.2628152072429657, 0.05223965272307396, -0.0882396399974823, -0.05490145832300186, -0.4161494970321655, -0.6763868927955627, 0.05619009584188461, 0.40368539094924927, -0.27082258462905884, 0.022556979209...
referencing array positions would be great. Further details: I set up the arrays as instance variables, and tried to access like this: ``` -(void) setItems: (int [15][24])items { (*pitems)[24] = **items; } -(int) getItems { return (*pitems)[24]; } ``` When I tried to retrieve using `getItems`, I was getti...
[ -0.04222419857978821, 0.021079786121845245, 0.4088447391986847, 0.04527491703629494, -0.28672555088996887, 0.32099542021751404, 0.24627578258514404, -0.5725536942481995, -0.20502454042434692, -0.4160231053829193, 0.07915041595697403, 0.5365355014801025, -0.3306439518928528, 0.1028728336095...
is irrelevant) - (void) doStuff: (int [][])array { ... } ``` Of course, then your function only works for one particular array size in the first dimension. If you won't know the size if your first dimension until runtime, you'll have to either flatten your array into a 1D array, or use a dynamically allocated array o...
[ -0.19802148640155792, 0.0407167486846447, 0.6166175603866577, -0.14103412628173828, -0.014835509471595287, 0.0683300644159317, 0.16110113263130188, -0.3351416289806366, -0.24977858364582062, -0.4124161899089813, -0.3659248948097229, 0.6981437802314758, -0.49087733030319214, -0.046838741749...
Basically, I have several Radio Buttons in a filtering column. For example, if I am in the \Catalog\Flooring\Harwood section I have Radio Buttons for [Area Rugs], [Carpet] & [Stone & Tile]. So, what I want to do, instead of embedding an tag under the Radio Button I'd like to fire a JQuery event and do a regular post ba...
[ 0.14535939693450928, -0.031389590352773666, 0.4958072006702423, -0.1293114274740219, 0.0898536667227745, -0.4641563296318054, 0.3172244727611542, -0.3965347409248352, 0.054568126797676086, -0.8460077047348022, -0.24749796092510223, 0.7412918210029602, -0.3534523546695709, 0.142384499311447...
$("#Navigation li[title]").live("click", function(e) { e.preventDefault; this.blur(); return updateNavigation($(this).attr('title')); }); $("#ItemsPerPage").change(function(e) { return updatePaging(); }); $('input[name=ProductType]').click(function() { return updateRadio(); }); //{ $('form#typeForm').submit()...
[ 0.18350784480571747, 0.061512287706136703, 1.037041425704956, -0.3264879584312439, 0.09036789834499359, -0.07797902822494507, 0.4218084216117859, -0.3282226622104645, 0.07669191062450409, -0.47215065360069275, -0.7680267691612244, 0.8270615935325623, -0.3830853998661041, 0.2747247517108917...
Suppose you are designing a PC game that keeps track of high scores. In addition to keeping local scores, a global high score server is set up that is accessed by the game over the internet. Players should be able to submit their high scores to the global high score list right after they have completed a game, or later...
[ 0.29598307609558105, 0.2235265076160431, 0.006578279193490744, 0.3721519708633423, 0.2332872897386551, -0.3234947919845581, -0.04860450327396393, 0.03217437490820885, -0.23721469938755035, -0.37953606247901917, -0.005376546178013086, 0.461785227060318, -0.15630687773227692, 0.1814586669206...
bogus high scores?** Or, stated another way, how can the global high score server be sure that a submitted score was really produced by a run through the game? The more I thought about this, the more I think it may be an unsolvable problem. What you'd commonly do to verify that a message originated from a certain sou...
[ 0.45325616002082825, 0.26548251509666443, 0.3815406858921051, 0.4795644283294678, 0.015033915638923645, -0.48898419737815857, 0.080466628074646, 0.2108057588338852, -0.10114739835262299, -0.08503305166959763, 0.13839343190193176, 0.21138280630111694, -0.021310869604349136, 0.48550677299499...
be reverse engineered, or even just plucked from memory. Another option would be to send along a replay of the player's game to the high score server, which would quickly run the replay and verify that the submitted score matches the outcome of the replay. This doesn't solve the problem, but it certainly makes it more...
[ 0.2588121294975281, 0.20709671080112457, 0.27244967222213745, 0.5825573801994324, 0.13500197231769562, -0.3328610062599182, 0.05799061059951782, 0.07667558640241623, -0.06191418319940567, -0.1798611730337143, 0.1493835300207138, 0.3942212462425232, -0.12537747621536255, 0.2627106010913849,...
sort of exploit, or do they simply rely on the console preventing unauthorized code from running? For a PC game where the score is generated by the client, this is not a solvable problem since the client is inherently untrustworthy. The only thing you can try to do is make it harder for someone to submit a fake score....
[ 0.30107930302619934, 0.1403190642595291, 0.08051639795303345, 0.374133437871933, 0.34647077322006226, -0.26665133237838745, 0.22905249893665314, 0.08165444433689117, -0.09405668079853058, -0.4977988302707672, 0.1318722814321518, 0.5602458119392395, 0.058147132396698, 0.17422603070735931, ...
can look into various schemes for trying to defeat debuggers. * Protect the score en-route to the server. You can encrypt the data being sent to the service, as you suggest, but since the untrusted party has control over the key, this is merely obfuscation and offers no solid protection. * Validate the score at the ser...
[ 0.480755090713501, 0.19863304495811462, 0.22146780788898468, 0.2502259910106659, 0.21191227436065674, 0.00016183008847292513, 0.38352152705192566, 0.09673885256052017, -0.12239690870046616, -0.5446652173995972, 0.10876889526844025, 0.5116246938705444, 0.1717207133769989, -0.048443824052810...
What if someone posts an invalid score? What do you actually lose? I would do the bare minimum to protect against a kid with a simple script. I.e., don't have your score submission be just: ``` http://myservice.com/submitscore.aspx?PlayerName=Michael&Score=999999999 ``` I would just use simple protection in memory ...
[ 0.3288477957248688, 0.32986751198768616, 0.11620315909385681, 0.18926168978214264, 0.18767023086547852, -0.5216819643974304, 0.09859155118465424, -0.06842054426670074, -0.14627765119075775, -0.4181813895702362, 0.26701822876930237, 0.4240175485610962, 0.012127170339226723, 0.17027090489864...
I am rendering in my view a Zend\_Form\_Element\_Select. ``` $t=new Zend_Form_Element_Select(....); ... ... echo $t->render(); ``` I get the drop down and the options correctly, but I also get the select element wrapped in ``` <dt> </dt> <dd>[elm]</dd> ``` How do I remove that decorator? you have more possibilit...
[ 0.03196772187948227, 0.1417495161294937, 0.6022778153419495, -0.3011299669742584, -0.3043537735939026, 0.2954552173614502, 0.3252611458301544, -0.5492961406707764, 0.12432296574115753, -0.9277868866920471, -0.13341358304023743, 0.6230142712593079, -0.1193024143576622, -0.11828626692295074,...
How do I get the position of a given value inside a table column. I need to get the column number. you have more possibilities: The relevant manual: <http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.decorators> second one is to remove decorators you don't need ``` $t->removeDecorator('E...
[ 0.17092344164848328, 0.17927466332912445, 0.6590675711631775, -0.05778810381889343, -0.15755192935466766, 0.15223167836666107, -0.008089832961559296, -0.6240333914756775, -0.17029207944869995, -0.6069774031639099, -0.029719583690166473, 0.42287999391555786, -0.08072923123836517, -0.0122159...
I have a geometric undirected [planar graph](http://en.wikipedia.org/wiki/Planar_graph), that is a graph where each node has a location and no 2 edges cross, and I want to find all cycles that have no edges crossing them. Are there any good solutions known to this problem? --- What I'm planning on doing is a sort of...
[ 0.2767537832260132, -0.2689444124698639, 0.3499203026294708, 0.027082763612270355, -0.06588014215230942, 0.22560717165470123, -0.029376551508903503, -0.16340944170951843, -0.25102919340133667, -0.6628522276878357, 0.044621117413043976, 0.20330676436424255, -0.15016821026802063, 0.071366086...
issue with this? Will it even work? My first instinct is to use a method similar to a [wall following](http://en.wikipedia.org/wiki/Maze_solving_algorithm) maze solver. Essentially, follow edges, and always take the rightmost edge out of a vertex. Any cycles you encounter with this method will be boundaries of a face. ...
[ 0.23891578614711761, -0.08892317116260529, 0.47628313302993774, 0.11262489855289459, -0.07690746337175369, -0.12970596551895142, 0.44561076164245605, -0.1658027470111847, -0.43861961364746094, -0.8304300308227539, 0.30397334694862366, 0.4400772750377655, -0.05595025792717934, 0.00275835697...
I want requests to my site to work as follows: <http://example.com/> would pull up the index.php file (the current default behavior) ideally without displaying the index.php <http://example.com/foo.php> would pull up foo.php as would be expected <http://example.com/blerg> would redirect to <http://example.com/bar.ph...
[ 0.24251115322113037, 0.1932317167520523, 1.0915133953094482, -0.30674678087234497, 0.09432448446750641, 0.1557931751012802, 0.2375480681657791, -0.4908161461353302, -0.06759145110845566, -0.7590330839157104, 0.1515190601348877, 0.5236449241638184, -0.3642893433570862, 0.024130258709192276,...
^/([^.]+)$ /bar.php?code=$1 [QSA,L] ``` ``` http://example.com/ directs to index.php properly (without showing index.php) http://example.com/abc directs to bar.php?code=abc http://example.com/foo.php operates normally. ```
[ 0.3006236255168915, 0.3700268268585205, 0.6158789992332458, -0.49863800406455994, -0.005040609743446112, 0.17951726913452148, 0.44842463731765747, -0.30753517150878906, -0.3718486428260803, -0.25285041332244873, -0.12616392970085144, 0.46101823449134827, -0.7392712831497192, -0.19540953636...
I have a SWF file that connects to a remote flash server and receives some data. For security reasons I can't make this SWF file web-accessible so I can't use a browser to run it. Is there a way to run it on the server side from a command prompt (under Linux)? You can use `Xvfb` or `Xfake` to run a X server that doesn'...
[ 0.6813338398933411, 0.32410725951194763, 0.39328715205192566, -0.07487770169973373, -0.3690583109855652, -0.3138059377670288, 0.0856410413980484, 0.10858680307865143, -0.17664834856987, -0.6690617203712463, -0.035443615168333054, 0.43383610248565674, -0.47468769550323486, 0.211622267961502...
`flashplayer` or `gflashplayer`, which was usable outside of the browser. I think it still exists, but is in the developer package, or something like that. If you're using a free implementation of Flash, both Gnash and Swfdec come with stand-alone `gnash` and `swfdec` executables respectively. This starts `Xvfb` on d...
[ 0.07473457604646683, 0.08596356213092804, 0.7460490465164185, -0.08187969774007797, -0.5988010764122009, -0.3545590043067932, -0.0020022313110530376, 0.2787148654460907, -0.3285563290119171, -0.5796946883201599, -0.11506935954093933, 0.5068191885948181, -0.48571643233299255, -0.10004140436...
When I started using C# I was unsure of how references were treated exactly (whether they were being passed by value etc.). I wrongly thought the 'ref' keyword was needed when passing objects that would be modified by the called method. Then after reading threads like [this](https://stackoverflow.com/questions/186891/...
[ 0.16265913844108582, 0.18374459445476532, 0.40453654527664185, -0.1735590100288391, -0.422536164522171, 0.07654254138469696, 0.26840829849243164, -0.1668606996536255, -0.28221648931503296, -0.43030795454978943, 0.10268403589725494, 0.7732114195823669, -0.3959023952484131, 0.142614796757698...
was told to add the ref keyword but I argued for a while that it was only necessary when you change the pointer itself, not the content that is being pointed to. I have searched the net and could only find a [single page](http://www.ondotnet.com/pub/a/dotnet/2002/11/25/copying.html?page=3) that discusses it briefly. I...
[ 0.560143768787384, 0.34557104110717773, 0.45286157727241516, -0.05412494018673897, -0.327241450548172, 0.004436998628079891, 0.2839735150337219, -0.09817353636026382, -0.4003964364528656, -0.4173789620399475, 0.21341629326343536, 0.6962541341781616, -0.25185948610305786, 0.1525693833827972...
particular marshaller implementation. If you call, for example, a web service, no amount of "ref"s is going to help you -- the parameters of the function are simply not sent back over the wire. The only thing that comes back from the service is the function's return value. When dealing with remoting you have to underst...
[ 0.4755978584289551, -0.058049704879522324, 0.13835342228412628, 0.31610506772994995, -0.07800199836492538, 0.23612399399280548, 0.011556466110050678, -0.5144020318984985, -0.2695331871509552, -0.2106170803308487, 0.02725047431886196, 0.7434625625610352, -0.20285551249980927, 0.307558596134...
and sent back to you. Whether these results include changes to the parameters you passed in the first place depends more on the specific remoting implementation, then on the "ref"s that you add to decorate your parameters...
[ 0.6281663775444031, -0.1450762301683426, 0.4566185176372528, 0.2807999551296234, -0.18130585551261902, 0.07800611108541489, 0.39950165152549744, -0.3935108184814453, -0.3017593026161194, -0.47378331422805786, -0.18829454481601715, 0.47220873832702637, -0.05517420545220375, -0.1676343381404...
I'm looking to persist an object to a single column using NHibernate. I'd like to serialize the data on the way in into a single column, and then deserialize it on the way out. This could be binary or xml. How can I go about doing this? Serialization is the default, if the class is not mapped. You can (should) make it ...
[ -0.047981537878513336, -0.0034217117354273796, 0.26271405816078186, 0.04407484829425812, -0.10527241230010986, -0.07463240623474121, 0.0037562409415841103, 0.10438915342092514, -0.31985315680503845, -0.6868632435798645, -0.004822098184376955, 0.37364399433135986, -0.34791451692581177, 0.46...
Any idea on how to get my asp.net mvc website to work on a webhost that's running asp.net 3.5 but maybe not IIS 7? (I think they might be on IIS 6) I am on Crystal Tech and my home page shows up just fine but all other requests give me a 404 page not found error. Note: I already follow these instructions but it's sti...
[ 0.2711387276649475, 0.1028967872262001, 0.1917186677455902, -0.06455443054437637, 0.02834669128060341, -0.12973424792289734, 0.607225775718689, 0.054799921810626984, -0.46112900972366333, -0.7570719122886658, 0.05491471290588379, 0.858886182308197, -0.234810009598732, -0.017347535118460655...
apps on it. More specific to the most recent release of the SDK, there is an entry in the release notes that states that this version does not let you compile against any SDK except the 3.0 SDK. I believe the last version that allowed you to do that was 3.0b2. You'll need to roll back to that one or earlier if you wan...
[ 0.3540063798427582, 0.13310973346233368, 0.34637683629989624, 0.12940990924835205, 0.0379302054643631, -0.14913047850131989, 0.05944333225488663, 0.18184925615787506, -0.28714868426322937, -0.5571191310882568, 0.018872858956456184, 0.7869634032249451, -0.6460598707199097, -0.23000980913639...
Is it possible to check if a char has been passed into a method that requires an int? For example, if you have some function foo(int bar) and someone uses that function like foo('t'), are you able to find out that a char was inputted and not an int? I know that the char is converted into an int but I am trying to limit...
[ 0.19419430196285248, 0.3879088759422302, 0.1746058166027069, -0.33419570326805115, -0.4264317750930786, 0.046603426337242126, 0.29750245809555054, -0.2035224735736847, -0.2579178810119629, -0.28676262497901917, 0.2046661376953125, 0.6856610178947449, -0.30637332797050476, -0.08457171916961...
I made an anagram machine and I have an array of positive matches. The trouble is they are all in a different order, I want to be able to sort the array so the longest array values appear first. Anybody have any ideas on how to do this? Use <http://us2.php.net/manual/en/function.usort.php> with this custom function ...
[ 0.12583589553833008, 0.07094915956258774, 0.5379523634910583, -0.05143081769347191, -0.08504724502563477, 0.14673565328121185, 0.39815884828567505, -0.3258703052997589, -0.1513887494802475, -0.5458827018737793, 0.1936144381761551, 0.39838868379592896, -0.6293606162071228, 0.187404915690422...
=> dog // others [0] => bbbbb [1] => aaaa [2] => dog [3] => aaa [4] => cat ```
[ 0.2987315058708191, 0.4064562916755676, -0.0846342146396637, -0.2516010105609894, -0.3412097990512848, 0.030688421800732613, 0.39792656898498535, -0.6337856650352478, -0.045422378927469254, -0.31308066844940186, -0.4083680808544159, 0.4860886335372925, -0.6696486473083496, 0.08905637264251...
Is it possible to capture the task manager end process of a windows application within the same windows application itself? I am using a C# 2.0 win app and I would like to do some database processing (change a flag from 'Y' to 'N' in the DB) when an end process happens. No, it is not possible to hook the operating syst...
[ 0.1348169893026352, -0.28545477986335754, -0.11708047986030579, 0.13763774931430817, -0.043290987610816956, -0.2436514049768448, 0.23768958449363708, -0.11074350774288177, -0.31111347675323486, -0.5282317996025085, -0.14056642353534698, 0.48868685960769653, -0.4209456443786621, 0.106008350...
that tell a application to exit. Use these events to persist data, free resources, and otherwise exit cleanly. 2. Handle exceptions as appropriate to catch errors and clean up and save data if possible. Here are a three links to Raymond's blog explaining why you cannot do what you are asking. * [Why can't you trap Te...
[ 0.09137338399887085, -0.06785764545202255, -0.019507547840476036, 0.09818954765796661, 0.2359277456998825, -0.2766977548599243, 0.2566991150379181, -0.44042345881462097, -0.27795377373695374, -0.4143960475921631, -0.20144343376159668, 0.535913348197937, -0.5027090907096863, 0.1080331653356...
I'm trying to understand how to add a label with a UISwitch or other controller to a footer (or header) in a sectioned tableView. Any help would be greatly appreciated. Thank you in advance! Okay, after searching and working at it I've done the following: ``` // Need to refactor so that the label is Public Sharing and...
[ 0.14913026988506317, -0.1550416648387909, 0.7760493159294128, 0.1707339584827423, -0.14138545095920563, -0.10710468143224716, 0.11954443156719208, -0.20599167048931122, -0.2440328150987625, -0.7696910500526428, 0.03054157644510269, 0.29819902777671814, -0.19912603497505188, 0.3351452648639...
0, screenRect.size.width, 44.0)] autorelease]; footerView.autoresizesSubviews = YES; footerView.autoresizingMask = UIViewAutoresizingFlexibleWidth; footerView.userInteractionEnabled = YES; footerView.hidden = NO; footerView.multipleTouchEnabled = NO; footerView.opaque = NO; footerView.conte...
[ 0.1565258502960205, -0.36737027764320374, 0.7309385538101196, 0.20833246409893036, 0.18025152385234833, 0.27079707384109497, 0.4418800473213196, -0.13382817804813385, -0.21907088160514832, -0.5893512964248657, -0.14917784929275513, 0.46428346633911133, -0.2333139181137085, 0.49206998944282...
tableHeaderAndFooterColor]; footerLabel.font = [UIFont boldSystemFontOfSize:17]; footerLabel.shadowColor = [UIColor whiteColor]; footerLabel.shadowOffset = CGSizeMake(0.0, 1.0); [footerView addSubview: footerLabel]; [footerLabel release]; // Add the switch UISwitch* footerSwitch = [[UISw...
[ -0.12554892897605896, -0.35515978932380676, 1.088957667350769, -0.12084472924470901, 0.15726038813591003, 0.27788180112838745, 0.09809137880802155, -0.4142468273639679, -0.32539141178131104, -0.4746382534503937, 0.010575233958661556, 0.32533198595046997, -0.07830674201250076, 0.18388095498...
case 0: case 1: return 40.0; default: return 0.0; } } ``` I hope this is correct and if this helps anyone else please vote this up. Cheers!
[ 0.07803204655647278, 0.4057256579399109, 0.6718540191650391, -0.14555999636650085, -0.10847800970077515, -0.2541286051273346, 0.18804645538330078, 0.04598374664783478, -0.08478385955095291, -0.5523391962051392, -0.1669873744249344, 0.6297221779823303, -0.13608910143375397, 0.06851977854967...
HI, I am developing a web page using asp.net. I am using some links in my web page. For that I have used some code like this. ``` <a href="javascript:void(0);" onclick="javascript:ChangeLoc('TEST','');">Test</a> ``` and in the `ChangeLoc()` method I have written `__doPostBack` event. This works fine in IE7 inst...
[ -0.1154717206954956, 0.21914976835250854, 0.6013557314872742, -0.35047096014022827, -0.17636731266975403, 0.019993457943201065, 0.17759327590465546, -0.4672752916812897, -0.06482855975627899, -0.6677922010421753, -0.08207444846630096, 0.49513137340545654, -0.43624719977378845, -0.158804833...
fired when you click an element, you are overwriting the onclick event with void() change to ``` <a href="#" onclick="ChangeLoc();return false">test</a> ``` or with jQuery. ``` $(function(){ $("#linkId").click(function(event){ ChangeLoc(); event.preventDefault(); }); }); ```
[ -0.06255889683961868, -0.23990894854068756, 0.3810640871524811, -0.21539051830768585, 0.3765680193901062, -0.002471847925335169, 0.3486221134662628, -0.25672614574432373, -0.16267690062522888, -0.2813648581504822, -0.2798668146133423, 0.7535033822059631, -0.5537601113319397, 0.259953022003...
I have trouble when designing classes like this ``` class C1 { public: void foo(); } class C2 { public: void foo(); } ``` C1 and C2 has the same method foo(), ``` class Derived1 : public Base { public: void Update() { member.foo(); } private: C1 member; } class Derived2 : public Base { public: ...
[ 0.15344351530075073, -0.13545595109462738, 0.17872560024261475, -0.002933325245976448, -0.14685730636119843, -0.006485768593847752, -0.005524543579667807, -0.42418041825294495, -0.1216021180152893, -0.31329330801963806, 0.10130167007446289, 0.5746409893035889, -0.3330806493759155, 0.260113...
to reduce this code duplication? I only come out with a solution with macro. I think there is a more elegant way to solve this with template but I can not figure it out.. **EDIT:** thanks a lot guys but i think i missed something.. 1.I'm using c++ 2.In reality each Derived class has about 5 members, they all afford ...
[ 0.4988565146923065, 0.08077920973300934, 0.1216106116771698, -0.09992831945419312, -0.2673039734363556, 0.15854357182979584, 0.4043871760368347, -0.2971749007701874, -0.288687139749527, -0.5400954484939575, 0.17380215227603912, 0.7915775775909424, -0.5017398595809937, -0.12338967621326447,...
new class's Update() and this lead to terrible code duplication. I wonder if there is a way in which i need not to rewrite the Update() too much and can reduce the duplication. thx again This is exactly the sort of application that class templates are designed for. They allow functions within a class to operate on dif...
[ 0.4488372206687927, -0.10015250742435455, -0.002363539068028331, 0.014456828124821186, -0.08900822699069977, -0.3097243010997772, 0.20930097997188568, -0.17767831683158875, -0.11294721812009811, -0.9026568531990051, 0.11034505814313889, 0.6908663511276245, -0.5433892011642456, 0.2906020879...
member.foo(); } private: T member; // Generic type } class CDerived1 : public CTemplateBase<C1> { // No common algorithms required here } class CDerived2 : public CTemplateBase<C2> { // No common algorithms required here } ```
[ -0.285779744386673, -0.06534981727600098, 0.1204194724559784, 0.006110327783972025, -0.12171219289302826, -0.23823347687721252, -0.13167819380760193, -0.07394499331712723, -0.3402978181838989, -0.24601241946220398, -0.2740899920463562, 0.5562342405319214, -0.5061573386192322, 0.25358307361...
I'd like to reorder the items in a vector, using another vector to specify the order: ``` char A[] = { 'a', 'b', 'c' }; size_t ORDER[] = { 1, 0, 2 }; vector<char> vA(A, A + sizeof(A) / sizeof(*A)); vector<size_t> vOrder(ORDER, ORDER + sizeof(ORDER) / sizeof(*ORDER)); reorder_naive(vA, vOrder); // A is now {...
[ -0.02090318314731121, -0.20798718929290771, 0.36700427532196045, -0.23141349852085114, 0.036374282091856, 0.41791194677352905, 0.3117905557155609, -0.5303947329521179, -0.17224782705307007, -0.7315125465393066, -0.07870616763830185, 0.6057242751121521, -0.42570969462394714, 0.4184300601482...
for(int i = 0; i < vOrder.size(); ++i) vA[i] = vCopy[ vOrder[i] ]; } ``` Is there a more efficient way, for example, that uses swap()? This algorithm is based on chmike's, but the vector of reorder indices is `const`. This function agrees with his for all 11! permutations of [0..10]. The complexity is O...
[ -0.28967300057411194, -0.16940315067768097, 0.3270050883293152, -0.33358171582221985, 0.02032501809298992, 0.6032624840736389, 0.043314699083566666, -0.7132117748260498, -0.24887141585350037, -0.6777507066726685, -0.2706865072250366, 0.5393807291984558, -0.3853609263896942, -0.067688539624...
&v, vector<size_t> const &order ) { for ( int s = 1, d; s < order.size(); ++ s ) { for ( d = order[s]; d < s; d = order[d] ) ; if ( d == s ) while ( d = order[d], d != s ) swap( v[s], v[d] ); } } ``` Here's an STL style version which I put a bit more effort into. It's about 47% faster (tha...
[ -0.030306758359074593, -0.574748694896698, 0.7181751728057861, -0.3212825059890747, -0.17157985270023346, 0.23886984586715698, 0.30394014716148376, -0.5139038562774658, -0.4089123606681824, -0.6115415096282959, -0.11679129302501678, 0.6553332805633545, -0.39814576506614685, -0.038089085370...
[0..10]!) because it does all the swaps as early as possible and then returns. The reorder vector consists of a number of orbits, and each orbit is reordered upon reaching its first member. It's faster when the last few elements do not contain an orbit. ``` template< typename order_iterator, typename value_iterator > ...
[ -0.039327580481767654, -0.19157223403453827, 0.9136267304420471, -0.06467226147651672, 0.05833101272583008, 0.35946163535118103, -0.04608234390616417, -0.6719916462898254, -0.11320874840021133, -0.44767650961875916, -0.43292659521102905, 0.5189388394355774, -0.4936845302581787, 0.166819065...
order_begin; for ( index_t s = index_t(), d; remaining > 0; ++ s ) { for ( d = order_begin[s]; d > s; d = order_begin[d] ) ; if ( d == s ) { -- remaining; value_t temp = v[s]; while ( d = order_begin[d], d != s )
[ -0.26631268858909607, -0.43773719668388367, 0.6547124981880188, -0.4204542338848114, 0.3140251338481903, 0.36204683780670166, 0.426218718290329, -0.38611167669296265, -0.2649956941604614, -0.5831211805343628, -0.6927542090415955, 0.6065390706062317, -0.30686861276626587, 0.0748121067881584...
{ swap( temp, v[d] ); -- remaining; } v[s] = temp; } } } ``` --- And finally, just to answer the question once and for all, a variant which does destroy the reorder vector (filling it with -1's). For permutations of
[ 0.1763555258512497, -0.3165441155433655, 0.029870623722672462, -0.167983278632164, -0.0494690015912056, 0.19663159549236298, 0.06298045068979263, -0.4862632751464844, -0.08833064138889313, -0.21216657757759094, -0.369243323802948, 0.3675679564476013, -0.48848196864128113, -0.15032698214054...
[0..10], It's about 16% faster than the preceding version. Because overwriting the input enables dynamic programming, it is O(N), asymptotically faster for some cases with longer sequences. ``` template< typename order_iterator, typename value_iterator > void reorder_destructive( order_iterator order_begin, order_iter...
[ -0.05181766673922539, 0.03495389595627785, 0.7668273448944092, -0.2491937130689621, 0.09434174001216888, -0.06552345305681229, 0.6608282923698425, -0.8438226580619812, -0.14756695926189423, -0.5741474032402039, -0.07492755353450775, 0.7667466998100281, -0.41884851455688477, 0.3073255121707...
index_t d = order_begin[s]; if ( d == (diff_t) -1 ) continue; -- remaining; value_t temp = v[s]; for ( index_t d2; d != s; d = d2 ) { swap( temp, v[d] ); swap( order_begin[d], d2 = (diff_t) -1 );
[ -0.09528867900371552, -0.4813555181026459, 0.5159872770309448, -0.42728763818740845, 0.407943993806839, 0.18440744280815125, 0.24843226373195648, -0.3496551513671875, -0.026586690917611122, -0.36736372113227844, -0.7327160835266113, 0.6657090187072754, -0.47316017746925354, -0.018239390105...
-- remaining; } v[s] = temp; } } ```
[ 0.021393800154328346, -0.09926425665616989, 0.33311086893081665, -0.3061313033103943, -0.014207499101758003, 0.11019138246774673, 0.2605736553668976, -0.1409173607826233, -0.33488020300865173, -0.007048842962831259, -0.43656134605407715, 0.5890958905220032, -0.36381995677948, 0.16076299548...
I'm trying to create a method which continually streams a zip file as a user downloads it (so that there is no wasted streaming) I added a thread.sleep to simulate latency ``` public override void ExecuteResult(ControllerContext context) { HttpResponseBase response = context.HttpContext.Response; response.Cl...
[ 0.32478398084640503, -0.3188154399394989, 0.6957283020019531, -0.0037131377030164003, 0.29771390557289124, -0.03390078991651535, 0.39570820331573486, -0.3404604494571686, -0.22555628418922424, -0.6150640845298767, -0.2800593078136444, 0.33519595861434937, -0.6330585479736328, 0.21277245879...
String.Format("attachment; filename={0}", this.DownloadName)); int ind = 0; using (ZipOutputStream zipOStream = new ZipOutputStream(context.HttpContext.Response.OutputStream)) { foreach (var file in FilesToZip) {
[ -0.04573692008852959, -0.3687014579772949, 0.6807436943054199, -0.2482726126909256, 0.20832088589668274, 0.31725215911865234, 0.17386065423488617, -0.4191003143787384, 0.019861549139022827, -0.7087334990501404, -0.2193361520767212, 0.43598273396492004, -0.3997414708137512, 0.04106944799423...
ZipEntry entry = new ZipEntry(FilesToZipNames[ind++]); zipOStream.PutNextEntry(entry); Thread.Sleep(1000); zipOStream.Write(file, 0, file.Length); zipOStream.Flush(); } zipOStream.Finish(); } response.OutputStream.Flush(); } ``` It seems like...
[ 0.16055947542190552, -0.3928339183330536, 0.6825324296951294, -0.28570646047592163, 0.3333677351474762, 0.15179267525672913, 0.1876969337463379, -0.11466498672962189, -0.46425700187683105, -0.8300013542175293, -0.4118066430091858, 0.04585155099630356, -0.3311854302883148, 0.478932142257690...
are files are zipped. Is there a way to stream continuously? Maybe with a different library? Assuming the zip format is partial to streaming, your problem is that your response is being buffered by default. If you set [HttpResponseBase.BufferOutput](http://msdn.microsoft.com/en-us/library/system.web.httpresponsebase.bu...
[ 0.09669793397188187, -0.33483049273490906, 0.3031095564365387, 0.11887255311012268, -0.06808452308177948, -0.16927361488342285, 0.49888426065444946, -0.1668083220720291, -0.3503391742706299, -0.4692801535129547, -0.46820348501205444, 0.39473000168800354, -0.4569331109523773, 0.021216716617...
How to go about creating a Hashmap in C from scratch as is present in C++ STL? What parameters would be taken into consideration and how would you test the hashmap? As in, what would the benchmark test cases be which you would run before you could say that your hashmap is complete? Well if you know the basics behind t...
[ 0.22510415315628052, -0.03295247256755829, 0.05463382601737976, 0.0612390860915184, -0.14382269978523254, -0.009688830934464931, 0.044019512832164764, -0.3872622847557068, -0.25008395314216614, -0.3707398772239685, -0.08181565254926682, 0.5218876600265503, -0.27492475509643555, -0.19237864...
custom hash function which will return an integer. You then take the modulus of the result and that is the location of your array index or "bucket". Then you check the unhashed key with the stored key, and if it matches, then you found the right place. Otherwise, you've had a "collision" and must crawl through the li...
[ -0.10918421298265457, -0.067194864153862, 0.5327028036117554, -0.02104238234460354, -0.05767206475138664, 0.1300472915172577, 0.1472119241952896, -0.08669988811016083, -0.4293113946914673, -0.5549061894416809, -0.029959173873066902, 0.33244788646698, -0.21928662061691284, 0.412258327007293...
I have not managed to get my pbcopy/pbpaste to work in Screen as discussed [here](https://stackoverflow.com/questions/816302/unable-to-pbcopy-xsel-inside-screen). I aim to solve the problem by having Screen clipboard inside Firefox. Its paste works in terminal by the following command but not in Firefox ``` C-a ] ``...
[ 0.02405749075114727, 0.17956754565238953, 0.6057329773902893, -0.21427123248577118, 0.012311424128711224, 0.005418093875050545, 0.013954870402812958, -0.07680249959230423, -0.3104862868785858, -0.7400813698768616, -0.07301115989685059, 0.4079734683036804, -0.4890919625759125, -0.1461390405...
Where are exceptions stored ? Stack, Heap. How is memory allocated and deallocated for Exceptions? Now if you have more than one exception which needs to be handled are there objects of all these exceptions created? I would assume that memory for exceptions is allocated the same way as for all other objects (on the he...
[ -0.028021082282066345, 0.14013956487178802, -0.025463363155722618, 0.030258210375905037, 0.144253671169281, -0.04416409507393837, 0.056989286094903946, -0.05542013421654701, -0.7578595876693726, -0.6652902960777283, 0.08522691577672958, 0.33128035068511963, -0.4517498016357422, 0.162696614...
being thrown, the JVM keeps the reference internally while it unwinds the call stack to find the exception handler, who then gets the reference (on its stack frame, just like any other local variable). There cannot be two exceptions being thrown at the same time (on the same thread). They can be nested, but then you h...
[ 0.3289407789707184, 0.0664888545870781, 0.05602237582206726, -0.028340786695480347, -0.1896197646856308, -0.212854266166687, 0.4006739556789398, -0.2844483256340027, -0.38031673431396484, -0.37551504373550415, -0.27222034335136414, 0.08940860629081726, -0.24275867640972137, 0.3996763825416...
I have been tasked with porting a large Java codebase to the Android platform. The project makes extensive use of AWT which isn't' supported on Android. I'm looking for a tool that lets me visualize all of the classes in the project. I'd like to be able to see all of the relationships between classes so that I can get...
[ 0.4198508560657501, 0.19299167394638062, -0.30805811285972595, -0.13648486137390137, -0.16737838089466095, 0.08708508312702179, 0.2704336941242218, 0.1991153210401535, -0.14647376537322998, -0.9524058103561401, 0.16407279670238495, 0.32101699709892273, -0.0006979122990742326, 0.28959515690...
reasonably priced too. This question has been touched at StackOverflow many times before and here are some links: * [Is there some tool to visualize java class hierarchies and relations?](https://stackoverflow.com/questions/43344/is-there-some-tool-to-visualize-java-class-heirarchies-and-relations) * [Tool to visuali...
[ 0.17912697792053223, -0.07842322438955307, 0.11307936161756516, 0.33810731768608093, -0.22075510025024414, -0.014132278971374035, -0.2260397970676422, -0.05221325531601906, -0.18756073713302612, -0.48833075165748596, -0.019723467528820038, 0.5868477821350098, 0.28193920850753784, -0.201629...
What is a Connection Object in JDBC ? How is this Connection maintained(I mean is it a Network connection) ? Are they TCP/IP Connections ? Why is it a costly operation to create a Connection every time ? Why do these connections become stale after sometime and I need to refresh the Pool ? Why can't I use one connection...
[ 0.14863917231559753, 0.30322524905204773, 0.19708585739135742, 0.4363740086555481, -0.15518556535243988, -0.32551342248916626, -0.08464959263801575, 0.06923194974660873, -0.45080915093421936, -0.6493375301361084, 0.3689239025115967, 0.4838513731956482, -0.2040238231420517, 0.62310647964477...
you mean that you release it to the pool. If you do that you might get back the same connection from the pool. In this case it just doesn't matter if you do one or multiple queries The cost of a connection is to connect which takes some time. ANd the database prepares some stuff like sessions, etc for every connection...
[ 0.7049989104270935, 0.03340258076786995, 0.06841261684894562, 0.6320492625236511, 0.4118591547012329, -0.2931689918041229, -0.021116990596055984, -0.0867043137550354, -0.2663775682449341, -0.44985827803611755, 0.2799490690231323, 0.34432321786880493, -0.2000892013311386, 0.4648936688899994...
Could anyone please tell what are the important use cases of `IdentityHashMap`? The [documentations](http://java.sun.com/javase/6/docs/api/java/util/IdentityHashMap.html) says: > A typical use of this class is > topology-preserving object graph > transformations, such as serialization > or deep-copying. To perform ...
[ -0.04650478437542915, -0.13339996337890625, 0.010163413360714912, 0.21676212549209595, -0.019538510590791702, -0.21446578204631805, 0.2305036336183548, -0.21726062893867493, -0.32523566484451294, -0.7225124835968018, -0.1577182114124298, 0.14744850993156433, -0.35877174139022827, 0.2150844...
wish to maintain a proxy object > for each object in the program being > debugged.
[ -0.029826520010828972, 0.2371935099363327, 0.14530014991760254, -0.10104338079690933, -0.05301273614168167, -0.1602989137172699, 0.4066307246685028, 0.2167017161846161, -0.02799561806023121, -0.739779531955719, -0.30698466300964355, 0.15627050399780273, -0.38876721262931824, 0.179089248180...
I am writing a CSV exporter in Java that should respect the user's custom settings, especially the "List separator" to use as a delimiter. In Windows, one can set this List separator in ``` Control Panel -> Regional and Language Options -> Regional Options -> Customize ``` I don't know about the other operating sys...
[ 0.20991292595863342, 0.15466837584972382, 0.3885957896709442, -0.11631352454423904, -0.23099616169929504, -0.14151941239833832, 0.1757194846868515, -0.02891230210661888, -0.4970945417881012, -0.828185498714447, -0.09141536056995392, 0.3720579147338867, -0.28381937742233276, -0.102874398231...
the OS-specific setting is a need I *have* to meet. So what if OSs other than Windows *don't have* such a setting? I suggest you read it from registry on Windows (as alluded [here](https://stackoverflow.com/questions/838590/how-to-read-list-separator-from-os-in-java/838641#838641)): [Read/write to Windows Registry us...
[ 0.019628791138529778, 0.16398923099040985, 0.4690483510494232, 0.028095848858356476, 0.19238199293613434, -0.21083307266235352, 0.2667708992958069, -0.07203985005617142, -0.16489265859127045, -0.7884480953216553, -0.27149343490600586, 0.630026638507843, -0.1263556033372879, -0.062566004693...
I' trying to get the following string to output to a cell in Excel using the 2003 XML capabilities "Cheese\nBread" and at the moment it ignores the line break. If I create a file with the desired effect then I get the following output ``` <Cell ss:StyleID="s62"><Data ss:Type="String">Cheese&#10;Monkey</Data></Cell> ...
[ 0.15854628384113312, 0.34617292881011963, 0.37883681058883667, -0.49796709418296814, -0.25424477458000183, 0.03630911931395531, 0.4690990746021271, -0.3050472140312195, -0.1411028951406479, -0.6607068181037903, 0.05001223087310791, 0.32266801595687866, -0.4416893720626831, -0.0163272321224...
When a compiler finds a signed / unsigned mismatch, what action does it take? Is the signed number cast to an unsigned or vice versa? and why? If operand are integral and there is an unsigned value, then conversion to unsigned is done. For example: ``` -1 > (unsigned int)1 // as -1 will be converted to 2^nbits-1 ``` ...
[ -0.12606345117092133, -0.04086215794086456, 0.04023272171616554, -0.11995788663625717, -0.0016426112269982696, 0.09137343615293503, 0.4148791432380676, -0.5859020948410034, 0.023306118324398994, -0.7438313961029053, -0.24180938303470612, 0.5741022229194641, -0.3725931942462921, -0.04583748...
unsigned integer congruent to the > source integer (modulo 2^n where n is > the number of bits used to represent > the unsigned type). > > > If the destination type is signed, the > value is unchanged if it can be > represented in the destination type > (and bit-field width); otherwise, the > value is implemen...
[ -0.1410548985004425, -0.1577059030532837, 0.40750667452812195, -0.08929944038391113, 0.007575662340968847, 0.015678778290748596, 0.1408529132604599, -0.17844438552856445, 0.14812766015529633, -0.5496155023574829, -0.333588570356369, 0.47946810722351074, -0.3216305375099182, -0.010244335979...
I recently moved my asp.net appliaction from windows 2003 / IIS 6 to windows IIS7. No other changes, but now the file upload for the fckeditor doesn't work anymore. Anyone know the obvious mistake I made here. :) Thanks The most likely problem is that the permissions need to be updated on the target folder. Check to m...
[ 0.04476126283407211, -0.0937986671924591, 0.7702152132987976, 0.12693536281585693, -0.11996482312679291, -0.32004472613334656, 0.3289923667907715, 0.022604787722229958, -0.232343390583992, -0.746981680393219, -0.0015867981128394604, 0.5354551672935486, -0.052582036703825, 0.132869482040405...
Consider I have a data grid, I need to find the number of rows and coulmns in the data grid. How can I do this in C#? The `DataGrid.Items` property returns a `DataGridItemCollection` representing the `DataGridItems` in the DataGrid. Each `DataGridItem` is representative of a single row in the rendered table. Also, the...
[ -0.3156264126300812, 0.16361936926841736, 0.44856464862823486, 0.018722467124462128, -0.0193957332521677, 0.20612868666648865, -0.021088311448693275, -0.35495299100875854, -0.09575323015451431, -0.78583824634552, -0.20908230543136597, 0.3400040864944458, -0.2004794329404831, 0.015106053091...
I need to hold a representation of a document in memory, and am looking for the most efficient way to do this. Assumptions * The documents can be pretty large, up to 100MB. * More often than not the document will remain unchanged - (i.e. I don't want to do unnecessary up front processing). * Changes will typically be...
[ 0.14002588391304016, 0.07820280641317368, 0.657760739326477, 0.19708456099033356, 0.1418263018131256, 0.007910871878266335, -0.03669397905468941, -0.29185861349105835, -0.33635780215263367, -0.9257552623748779, -0.169104665517807, 0.35666051506996155, 0.11169969290494919, -0.10035996139049...
fast to set, very slow to update. * Array of Lines, moderatly easy to code, slower to set (as we have to parse the string into lines), faster to update (as we can insert remove lines easily, but finding offsets requires summing line lengths). There must be a load of standard algorithms for this kind of thing (it's not...
[ 0.12527665495872498, -0.2742396593093872, 0.25213995575904846, 0.3387182056903839, -0.09600870311260223, -0.03274024277925491, 0.4185151159763336, 0.0006444775499403477, -0.3386039733886719, -0.6404786109924316, -0.16895583271980286, 0.3865624964237213, -0.20705656707286835, -0.05841240659...
avoids moving 100 megabyte of data if the user inserts one byte in the front. To manage the blocks, just but them - together with the offset of each block - into a list. If the user modifies a blocks length you must only update the offsets of the blocks after this one. To find an offset, you can use binary search. **...
[ -0.19522862136363983, 0.16159918904304504, 0.1086990013718605, 0.015963131561875343, -0.013784603215754032, 0.23814858496189117, 0.336536169052124, -0.44406434893608093, -0.6439586877822876, -0.732342541217804, -0.2673192024230957, 0.3635748028755188, -0.19067005813121796, -0.1398917734622...