text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Has anyone here used either of the following (or any other tool) to convert your vb6 code to a .net language?
[**Artinsoft's upgrade companion**](http://www.artinsoft.com/pr_vbcompanion.aspx) (converts to c# and vb.net)
[**vbmigration partner**](http://www.vbmigration.com/) (converts to vb.net)
How effective were ... | [
0.5092100501060486,
0.08138925582170486,
0.02010335400700569,
-0.10487499833106995,
-0.4390733540058136,
0.04777926951646805,
0.21237581968307495,
-0.11174066364765167,
-0.3991416096687317,
-0.5673643946647644,
-0.12316488474607468,
0.7806335687637329,
-0.08137288689613342,
-0.080851115286... | |
above examples
I think you've already seen the [question](https://stackoverflow.com/questions/638152/best-development-tools-for-upgrading-from-vb6-0) about tools for migrating VB6 to VB.NET.
Both have published special offer prices for the UK market on their **basic** products on this Microsoft UK [page](http://msdn.m... | [
0.44781947135925293,
0.14717838168144226,
0.5390703082084656,
-0.04334790259599686,
-0.1680440902709961,
0.36538487672805786,
0.14815206825733185,
-0.384772390127182,
-0.17398615181446075,
-0.5238396525382996,
-0.2705196738243103,
0.5847638249397278,
0.1889123022556305,
-0.1399873942136764... | |
Edition [£399](http://www.vbmigration.com/campaignuk.aspx). They told me this was also for up to 50,000 lines of code.
The built-in Microsoft upgrade wizard is pathetic - [according to the guy who wrote it](http://www.devx.com/vb/Article/16822) - of course he is from Artinsoft so he wants to sell you something better.... | [
0.07543760538101196,
-0.0801931843161583,
0.8003278374671936,
-0.017597893252968788,
-0.23905837535858154,
0.03630918636918068,
0.10038837045431137,
-0.31172454357147217,
-0.199846550822258,
-0.4278058409690857,
-0.22543705999851227,
0.6818876266479492,
-0.0939958244562149,
-0.150105819106... | |
hours, which is more encouraging. | [
0.7556690573692322,
0.0917755588889122,
0.1657945215702057,
-0.10528286546468735,
-0.26767751574516296,
-0.30404219031333923,
0.01903015933930874,
0.11592800170183182,
-0.21219110488891602,
-0.45875102281570435,
-0.22612988948822021,
0.47006848454475403,
0.3468073010444641,
0.2754825055599... | |
I am trying to find a trend in several datasets. The trends involve finding the best fit line, but if i imagine the procedure would not be too different for any other model (just possibly more time consuming).
There are 3 conceivable scenarios:
1. **All good data** where all the data fits a single trend with a low va... | [
0.35454487800598145,
-0.08984310925006866,
0.39372575283050537,
0.1951916217803955,
-0.007548123598098755,
0.39604178071022034,
0.2739669680595398,
0.050438158214092255,
-0.14602679014205933,
-0.7161194682121277,
0.092121921479702,
0.3093169331550598,
-0.28008902072906494,
0.22303664684295... | |
data with extreme variability is too high then the entire set must be discarded. This implies that there is essentially only this type of data and the percentage of bad data varies:
>
>
> 0% bad = Case 1
>
> 100% bad = Case 2
>
>
> I am only looking for contiguous sections with low variablity; i.e. I don't care... | [
0.19049657881259918,
-0.1258510798215866,
0.30636340379714966,
0.39577528834342957,
-0.13289202749729156,
-0.14011603593826294,
0.35930129885673523,
0.0025301615241914988,
-0.2670813500881195,
-0.32944074273109436,
-0.08174190670251846,
0.2977534830570221,
-0.39001837372779846,
0.258566886... | |
I am not looking for sections that best fit the overall trend. I understand that the subsection with "cleaner" data will end up having slightly different trendline properties than the overall (which would contain the outliers). This is exactly what i want since this part of the data would best best reflect the actual t... | [
0.5723239183425903,
0.24272173643112183,
0.16589781641960144,
0.10672976821660995,
-0.26363271474838257,
-0.21614055335521698,
0.27210187911987305,
0.13560724258422852,
-0.05855901911854744,
-0.5475857257843018,
0.10858485102653503,
0.4888233244419098,
-0.2554650604724884,
-0.1188775375485... | |
it to ISO C++. I also have knowledge of JAVA, some assembly and fortran.
The datasets themselves are not huge but there are about 150 million of them and so brute force may not be the best way.
Thanks in advance
---
I understand that I have left some things up in the air and so let me clarify:
* Each dataset can, ... | [
0.3257497251033783,
-0.037270862609148026,
0.22866828739643097,
0.05174366012215614,
-0.2001785933971405,
-0.16567546129226685,
-0.16040270030498505,
-0.17054468393325806,
-0.13727286458015442,
-0.7364307045936584,
-0.09618029743432999,
0.3197488486766815,
-0.36113736033439636,
-0.19748625... | |
its considered for trend fitting
* In case the program is extended to allow for any type of fit (not simply linear), the user will define what model is to be fit -- THIS IS NOT A PRIORITY and if the above query is solved then I am sure this expansion would be relatively trivial
* The outliers come about as a result of ... | [
-0.05002462491393089,
-0.2568279802799225,
0.4598085880279541,
0.0813322365283966,
-0.024285832419991493,
0.08665730804204941,
-0.008822006173431873,
-0.34224817156791687,
-0.19838102161884308,
-0.47045934200286865,
0.08211581408977509,
0.3555811047554016,
-0.372525155544281,
0.10556565225... | |
data is being manipulated to fit any trend (statistics disclaimer, hehe).
The RANSAC algorithm is one approach to what you're looking for if I understand you right. <http://en.wikipedia.org/wiki/RANSAC> | [
0.32046085596084595,
-0.3661333918571472,
0.0007804318447597325,
0.5425707697868347,
0.1860406994819641,
-0.03410714492201805,
-0.11879798024892807,
-0.02396523393690586,
-0.3995474874973297,
-0.421953022480011,
-0.09782116115093231,
0.2962886393070221,
-0.35003209114074707,
0.041640970855... | |
i have application that generate php/html/asp web sites and i like to be able to
let the possibility to test the sites from within the application . is there any possibility to do that ?
Testing a web site is a pretty complicated task. While you could certainly write a web server and test engine, I'm not sure why you ... | [
0.8831272125244141,
-0.02271699346601963,
-0.1128450483083725,
0.13455143570899963,
-0.4461306929588318,
-0.334623783826828,
0.30485013127326965,
-0.19476060569286346,
-0.021059798076748848,
-0.7140626907348633,
0.2950918674468994,
0.2448587566614151,
0.04464017227292061,
0.126117393374443... | |
I'm using mod\_perl 2 with Apache 2.2.3 on Red Hat 5.2, and I'm trying to access the request headers, but the Apache2::RequestRec [headers\_in](http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_headers_in_) method (or rather, its return value) is not behaving the way I would expect.
Code fragment:
```
$lo... | [
0.019677547737956047,
0.1974499523639679,
0.8771189451217651,
-0.3403905928134918,
-0.2508051097393036,
-0.005835391115397215,
0.8042458295822144,
-0.5783320069313049,
-0.021916450932621956,
-0.5233101844787598,
-0.2014942765235901,
0.6182081699371338,
-0.30793070793151855,
0.0978132709860... | |
output.
According to the above linked documentation:
> This table is available starting from the PerlHeaderParserHandler phase
So I would expect my code, running in the PerlResponseHandler phase, to be able to access the headers.
Does anyone have any ideas what I'm doing wrong?
**Edit:** Using Data::Dumper hasn't ... | [
0.19419993460178375,
0.21979747712612152,
0.5386118292808533,
-0.16582858562469482,
-0.04999103397130966,
-0.10672619938850403,
0.6995119452476501,
-0.5653050541877747,
-0.19454289972782135,
-0.4880559742450714,
-0.264163613319397,
0.6089662909507751,
-0.4111167788505554,
0.120916210114955... | |
accept
```
point. I tried the `set(Accept => 'everything')` alternative as well, with the same result.
Problem found:
I needed to add
```
use APR::Table;
```
somewhere. Kind of weird that it was happily able to create an APR::Table object though. | [
-0.35802289843559265,
0.23532798886299133,
0.2916206121444702,
-0.15324100852012634,
-0.3643825054168701,
0.3326571583747864,
0.047501303255558014,
0.00580009026452899,
-0.03880729898810387,
-0.25993233919143677,
-0.1226576566696167,
0.21825185418128967,
-0.1858198642730713,
0.142821803689... | |
Are there any open source, CoverFlow-like APIs or libraries available for the iPhone?
I've found one implementation that is licensed per application, however, I'd much prefer to go the open source route.
Also, I'm interested in libraries that use only public APIs, as using non-public APIs might keep an app from getti... | [
0.5175387859344482,
0.06503880023956299,
0.06943506747484207,
-0.06733905524015427,
0.040280506014823914,
-0.17926447093486786,
0.228145569562912,
0.22597315907478333,
-0.31628161668777466,
-0.4153299927711487,
0.19050996005535126,
0.46867918968200684,
-0.48070216178894043,
-0.197787925601... | |
Before I set about to writing this myself, has anyone seen a ruby implementation of the following behavior?
```
puts 7.nextprime(); #=> 11
puts 7.previousprime(); #=> 5
puts 7.isprime(); #=> true
```
Obviously this kind of thing would be ugly for large numbers but for integers never exceeding a few thous... | [
-0.07138413935899734,
0.03750075772404671,
0.24048380553722382,
-0.3317684829235077,
0.1374170035123825,
-0.001806600601412356,
0.35859453678131104,
-0.30665919184684753,
-0.19405576586723328,
-0.6024706959724426,
0.01693364791572094,
0.6372483372688293,
-0.2655063271522522,
-0.06592082977... | |
1, nor a predicate check to determine whether or not a number is prime. I'd say go for it, though you should keep in mind that math in Ruby can be slow and if performance is a factor you may be better off considering writing it as a C or Java extension. Here's an example of [how to use RubyInline to generate primes in ... | [
0.1816542148590088,
-0.2759433090686798,
-0.017315775156021118,
-0.018592551350593567,
-0.12031898647546768,
-0.15667742490768433,
0.31446710228919983,
-0.2350049763917923,
-0.3141317367553711,
-0.31697630882263184,
-0.025466833263635635,
0.8216233253479004,
-0.298760324716568,
-0.08674612... | |
How would you describe DSM in simple terms?
The basic idea behind a DSM is that it represents the "dependency" or "uses" relationship in a tabular form. Parnas defined the "uses" relation between A and B so that when B "uses" A, it means B depends on A's correct operation for its own correct operation.
The uses relati... | [
0.36295902729034424,
-0.14658483862876892,
0.30984964966773987,
0.12092820554971695,
-0.1780797392129898,
-0.04419471323490143,
0.01975465565919876,
-0.47253933548927307,
-0.012991364113986492,
-0.5613908767700195,
0.09869391471147537,
0.1121232882142067,
-0.5265818238258362,
0.42920452356... | |
*D*, *Di,j* = 1 *iff* *j* "uses" *i*. | [
0.5080611705780029,
0.4018515348434448,
0.13918326795101166,
-0.20634877681732178,
-0.25895971059799194,
0.2333974838256836,
0.23561963438987732,
-0.3681967258453369,
0.03678654879331589,
-0.5271942019462585,
-0.20971564948558807,
0.2540050446987152,
-0.1687673181295395,
0.2100374400615692... | |
In compiler data flow analysis, what is the difference between a live range of a variable and it's reaching definition? Both seem to refer to the same thing...
They’re very different things, and I suggest that you go back and reread whichever definitions confused you. A reaching definition of a variable for a point whi... | [
0.010182623751461506,
-0.05212245509028435,
0.05624467879533768,
0.1866648942232132,
-0.06501013785600662,
-0.2287188172340393,
0.194071426987648,
-0.256931871175766,
-0.2392890900373459,
-0.16811634600162506,
-0.044790592044591904,
0.3793730139732361,
0.01265630777925253,
0.00239146547392... | |
534 (perhaps too general to be helpful) and 610. | [
-0.04380301758646965,
0.1663064956665039,
-0.06119009107351303,
-0.06574555486440659,
-0.20792396366596222,
0.8603172898292542,
0.5991097688674927,
-0.29773005843162537,
-0.2784336805343628,
-0.7496495246887207,
-0.3411537706851959,
0.5493794083595276,
-0.1338929831981659,
0.06932482868432... | |
Does anyone know of a library like chronic but for python?
Thanks!
Have you tried [parsedatetime](http://code.google.com/p/parsedatetime/)? | [
0.027822185307741165,
-0.15635336935520172,
-0.07991427183151245,
0.26239603757858276,
-0.07735209912061691,
-0.300006240606308,
0.4716949462890625,
0.6000836491584778,
-0.34612685441970825,
-0.29850777983665466,
0.10090501606464386,
0.5467306971549988,
-0.5155463814735413,
-0.382141321897... | |
What is the proper multi-character wildcard in the LIKE operator in Microsoft Jet and what setting affects it (if any)? I am supporting an old ASP application which runs on Microsoft Jet (on an Access database) and it uses the % symbol in the LIKE operator, but I have a customer who apparently has problems in his envir... | [
-0.23955880105495453,
-0.0463930107653141,
0.08640995621681213,
0.5144625902175903,
0.23514863848686218,
-0.14108693599700928,
-0.03601275756955147,
0.38064253330230713,
-0.2537318766117096,
-0.4591105282306671,
-0.061001915484666824,
0.32994544506073,
-0.4730832874774933,
0.09876595437526... | |
an application) also works only with \* and not % (but I'm not sure how relevant it is).
I just spent about 20 minutes searching the Internet without any useful results, and so I thought it would be useful ask on stackoverflow. Somebody may already know it, and it's better to keep the potential answers on stackoverflo... | [
-0.14034058153629303,
-0.08147623389959335,
0.47488489747047424,
0.3048552870750427,
0.2861076891422272,
-0.2598164677619934,
0.21011850237846375,
-0.23517514765262604,
-0.09469078481197357,
-0.25162047147750854,
-0.34728386998176575,
0.544670045375824,
-0.47150057554244995,
-0.10114255547... | |
mode') uses the `%` character. These modes are specific to ACE/Jet and bear only a passing resemblance to the ANSI/ISO SQL-89 and SQL-92 Standards.
The ADO interface (OLE DB) always uses ANSI-92 Query Mode.
The DAO interface always uses ANSI-89 Query Mode.
When using ODBC the query mode can be explicitly specified v... | [
0.10262276977300644,
-0.12294360250234604,
0.8467599749565125,
-0.22722548246383667,
-0.1400056779384613,
-0.13577425479888916,
0.11690875142812729,
-0.0707058385014534,
0.09944964945316315,
-0.4432663917541504,
-0.17664000391960144,
0.5581368803977966,
-0.7005946040153503,
0.2089909613132... | |
Query Mode characters (`%` and `_`) regardless of the query mode of the interface, however has the slight disadvantage of the `ALIKE` keyword not being SQL-92 compatible (however `ALIKE` remains highly portable). The main disadvantage, however, is that I understand the `ALIKE` keyword is not officially supported (thoug... | [
0.07793287187814713,
0.11856655031442642,
0.34642165899276733,
0.06757666170597076,
-0.11151289194822311,
0.06766755878925323,
0.3044752776622772,
0.16151022911071777,
0.3832639157772064,
-0.35729843378067017,
-0.04065478593111038,
0.6080572605133057,
-0.32398274540901184,
-0.0315800085663... | |
I need 2 simple reg exps that will:
1. Match if a string is contained within square brackets (`[]` e.g `[word]`)
2. Match if string is contained within double quotes (`""` e.g `"word"`)
```
\[\w+\]
"\w+"
```
**Explanation:**
The \[ and \] escape the special bracket characters to match their literals.
The \w means... | [
0.022517574951052666,
0.1924029439687729,
0.5286834836006165,
-0.0035989817697554827,
-0.03923298045992851,
-0.08174917846918106,
0.20273734629154205,
-0.4569842517375946,
0.3024146556854248,
-0.4194168150424957,
-0.14191797375679016,
0.5399045348167419,
-0.37863320112228394,
-0.0266229566... | |
reading **[regular-expressions.info](http://regular-expressions.info)**
**Update:**
Ok, so based on your comment, what you appear to be wanting to know is if the first character is [ and the last ] or if the first and last are both " ?
If so, these will match those:
```
^\[.*\]$ (or ^\\[.*\\]$ in a Java String... | [
-0.058461178094148636,
-0.1484222114086151,
0.5774608850479126,
-0.22362889349460602,
0.12395836412906647,
-0.18048951029777527,
0.25738438963890076,
-0.10977587848901749,
-0.060141611844301224,
-0.6231257319450378,
-0.2501266300678253,
0.5692340135574341,
-0.18554583191871643,
-0.27853220... | |
I am a competent C++ developer. I understand and use polymorphism, templates, the STL, and I have a solid grasp of how streams work. For all practical purposes, I've done no Java development. I'm sure some of you were in a similar situation at one point when you had to learn Java. How long did it take you to become a c... | [
0.8338397145271301,
0.21500861644744873,
-0.3794644773006439,
-0.07970640063285828,
-0.19813057780265808,
-0.14839226007461548,
0.3187532424926758,
0.24830730259418488,
-0.20461536943912506,
-0.4877309501171112,
0.22159695625305176,
0.45640110969543457,
0.02243838831782341,
0.1116204932332... | |
ever learning Java, so I guess I just figured it as I went. I've been doing full time Java for a long time now.
If you are well familiar with C++, you may want to read a list of the major differences (e.g., everything is dynamically-bound) and then start practicing on an environment (just download Eclipse). The small... | [
0.1464635282754898,
-0.12427131086587906,
0.08009424060583115,
-0.05692471191287041,
-0.30547896027565,
-0.24000228941440582,
0.4778825044631958,
0.16397544741630554,
-0.3788194954395294,
-0.772172749042511,
0.41106295585632324,
0.7693517804145813,
-0.27730950713157654,
-0.1034912914037704... | |
in fact having interfaces rather than abstract classes with pure virtual functions (PVFs) improves readability.
To me Java is a nice and friendly and relaxing sandboxed version of C++. I don't have to worry about general protection faults (GPFs), I don't have to worry about memory leaks, I don't have to worry about me... | [
0.3990360200405121,
0.021869994699954987,
-0.11348246037960052,
0.2512567341327667,
-0.3797910511493683,
-0.29856589436531067,
0.4168686270713806,
0.2744344174861908,
-0.36988261342048645,
-0.7439703941345215,
0.24206295609474182,
0.7263012528419495,
-0.06404097378253937,
-0.22258166968822... | |
I'm just writing an simple method witch reading data from a general stream - which means it could be possibly a FileStream or a NetworkStream without knowing the length of it. I repeatly read the stream into a byte[] and push the data to another stream or whatever. My question is, how can I notice the stream is finishe... | [
0.5444688200950623,
0.14621393382549286,
0.5025462508201599,
-0.022550811991095543,
-0.2568906843662262,
0.04054974764585495,
0.2812642455101013,
-0.02391974627971649,
-0.24012231826782227,
-0.5542530417442322,
0.03472749888896942,
0.21081621944904327,
0.19402523338794708,
0.43072053790092... | |
when it returns 0 is exactly the right way to do it.
Network streams are fine with this as well - they will block until any data is received or the stream is disconnected. Look at the documentation for `Stream.Read`:
> The return value is zero only if the
> position is currently at the end of
> the stream. The impl... | [
-0.2579696476459503,
-0.2750954329967499,
0.34465986490249634,
-0.03587475046515465,
-0.021867234259843826,
-0.08571065962314606,
0.3571978807449341,
-0.023332957178354263,
-0.11227434128522873,
-0.4473690688610077,
-0.207536980509758,
0.3226185739040375,
-0.2569872736930847,
0.32285067439... | |
more is expected (such as a
> closed socket or end of file). | [
0.20542767643928528,
-0.1883985549211502,
0.3122720420360565,
0.09776271879673004,
0.047678183764219284,
-0.11780239641666412,
0.11788295954465866,
0.049196187406778336,
-0.10952731966972351,
-0.6314083933830261,
-0.6792675852775574,
0.3199276030063629,
-0.005292155779898167,
0.12031310051... | |
The problem we have now in your development process, is that there are a few people, who don't make team more **cross-functional**.
So, sometimes this people can become a bottleneck for some parts of the project.
They don't like using **Wiki** for the shared knowledge issues, they don't post enough comments to their t... | [
0.3817196488380432,
0.22863908112049103,
-0.041388146579265594,
0.45389360189437866,
0.13653713464736938,
-0.42045533657073975,
0.32794153690338135,
0.1731111705303192,
-0.2789676785469055,
-0.6485009789466858,
0.2153415083885193,
0.4182821214199066,
-0.19580747187137604,
0.448649227619171... | |
it is impossible to notice, that there isn't enough documentation produced for the ticket, until you will face the problem.
**Pair programming** can't be applied in our circumstances, because the team is distributed.
We talked a lot about this problem at our meetings, but it seems more like conceptual problem.
Can w... | [
0.6282097697257996,
-0.29458335041999817,
0.024456746876239777,
0.34296658635139465,
-0.19294437766075134,
0.25763747096061707,
0.04389936104416847,
-0.29763269424438477,
-0.2435692399740219,
-0.7230982780456543,
0.31176868081092834,
0.6029868125915527,
-0.3916672468185425,
-0.019253421574... | |
`List` to an array. This works well when you do not know how many customers you have, you keep adding to the list and create and array at the end and the array will be the correct size.
If you just have one `customer` object you could also create an array called `customers` with one element and add a `customer` object... | [
0.04859497398138046,
-0.1360519379377365,
0.44646236300468445,
0.05774907022714615,
-0.09363110363483429,
0.4123559892177582,
-0.350119411945343,
-0.1985529661178589,
-0.6233282685279846,
-0.6117197871208191,
-0.09726238995790482,
0.5150200724601746,
-0.43376776576042175,
0.323340117931365... | |
I'm using jQuery UI accordion for the first time and I think I'm missing something here. I wrote the following code:
```
<div id="theAccordion">
<h2><a href="#">Header1</a></h2>
<div>old content 1</div>
<h2><a href="#">Header2</a></h2>
<div>old content 2</div>
<h2><a href="#... | [
-0.37969380617141724,
0.08152811974287033,
0.9783639311790466,
-0.2565639913082123,
-0.44365808367729187,
0.07349340617656708,
-0.11119313538074493,
-0.3191116452217102,
-0.15570390224456787,
-1.1297260522842407,
-0.031911659985780716,
0.47817179560661316,
-0.28164929151535034,
-0.00549725... | |
content 4</div>
<h2><a href="#">Header5</a></h2>
<div>old content 5</div>
</div>
<script type="text/javascript">
var map = {
Header1: function(jqObj) { jqObj.append("<p>new content 1</p>"); },
Header2: function(jqObj) { jqObj.append("<p>new content 2</p>"); },
Header3: fu... | [
-0.04135490208864212,
-0.12148582935333252,
0.9494106769561768,
0.1106431856751442,
-0.48626044392585754,
0.12327544391155243,
-0.0337279811501503,
-0.3073660731315613,
-0.21786528825759888,
-0.5938979983329773,
-0.6985273361206055,
0.5075168609619141,
-0.5185773372650146,
0.08261211961507... | |
content 5</p>"); }
};
function accordionChange(event, ui) {
ui.newContent.empty();
eval("map." + ui.newHeader.text() + "(ui.newContent)");
}
$(function() {
$("#theAccordion").accordion({
change: function(event, ui) { accordionChange(event, ui); }
});
});
<... | [
-0.3346874415874481,
-0.3890675902366638,
1.189705491065979,
-0.16126546263694763,
0.1599140614271164,
0.1375287026166916,
0.07450303435325623,
-0.2534773349761963,
-0.3536199927330017,
-0.8465580940246582,
-0.42647525668144226,
0.6866708397865295,
-0.18587622046470642,
-0.0332968384027481... | |
the newContent object seems to be empty all the time.
I was debugging it with IE8 debugging tools and jqObj.length is zero so no change is made in the newcontent.
do you have an idea of what's going on here?
Thanks in advance
Actually -- you had trouble because there's a bug in the accordion widget. I made a patch jus... | [
0.16209985315799713,
-0.15555539727210999,
0.6910366415977478,
0.45913463830947876,
0.23950737714767456,
-0.14805500209331512,
-0.015678072348237038,
0.41140174865722656,
-0.6159346699714661,
-0.727268636226654,
0.11511438339948654,
0.4040076434612274,
-0.07583592087030411,
0.1862516105175... | |
I'm targeting these two certificates. But I don't really know that how they affect my CV, and, of course, my salary.
Are they truly valuable? Do they make differences in your work and your position before and after you get it?
There's several parts to this question:
**But I don't really know that how they affect my ... | [
0.891213595867157,
0.5514698028564453,
0.46212637424468994,
0.11003486067056656,
0.4291903078556061,
-0.11976392567157745,
-0.13842114806175232,
0.1787557750940323,
-0.19341981410980225,
-0.2563767433166504,
0.4270753860473633,
0.8357416391372681,
0.7216610908508301,
0.0035418798215687275,... | |
learned a technology that's new and relevant. Colleges don't teach the same information footprint that these certs cover - college degrees are great for the theory behind what you're doing, and the certs are a little more applicable to what you're doing hands-on as a developer or DBA on that particular technology.
It'... | [
0.7846506237983704,
0.09127209335565567,
0.4740506410598755,
0.3105861246585846,
0.5688964128494263,
-0.24174636602401733,
0.30736222863197327,
0.21383036673069,
-0.3318915367126465,
-0.5822073221206665,
0.06902707368135452,
0.6233935952186584,
0.927852988243103,
-0.19510792195796967,
-0... | |
consulting versus four weekends of studying for the cert, then you're going to make more out of the consulting. In theory, the certs will raise your billable rate, but if you're even asking that question, you're not at the point of your career where this is going to make a difference.
Instead, go ask your manager what... | [
0.7059319019317627,
0.0436180904507637,
0.13990360498428345,
0.40808677673339844,
0.15442214906215668,
0.09071177244186401,
-0.11928719282150269,
-0.2506624758243561,
-0.06282553821802139,
-0.3593783378601074,
0.30581581592559814,
0.841391384601593,
0.4647233486175537,
-0.2558881640434265,... | |
licensing, whatever it is, and you'll be more likely to get a raise than if you go get a cert.
And when you're picking side projects, pick something that you can put on your resume. "Reduced licensing costs by $120k through a successful server consolidation project" says a lot more to employers than "MCITP."
**Are th... | [
0.9394800662994385,
0.10384026914834976,
0.44324198365211487,
0.7071027159690857,
0.34431228041648865,
-0.49099865555763245,
0.050028737634420395,
-0.12224037945270538,
-0.2221834510564804,
-0.5630760788917542,
0.06216781958937645,
0.6365994215011597,
0.6396699547767639,
-0.018600996583700... | |
do to PREPARE for these exams will make a difference in your work. In the course of studying, you'll learn tips, tricks and features that you can leverage in your development/DBA work.
**and your position before and after you get it?**
If you think you're going to get a raise simply by showing your MCITP, you're on ... | [
0.6314568519592285,
0.26622331142425537,
0.3584583103656769,
-0.10680435597896576,
0.3265230655670166,
-0.1713913381099701,
0.24797745048999786,
-0.1502876877784729,
-0.2245619297027588,
-0.5467758774757385,
0.12066085636615753,
0.47496718168258667,
0.5828359723091125,
0.07799338549375534,... | |
manager, ask your mentor - find a programmer who's already doing what you wish you were doing, and ask 'em how they got there. It's probably not by getting a cert. | [
0.2417479157447815,
0.12018585950136185,
-0.0599217414855957,
0.39389681816101074,
0.3597412109375,
-0.18020497262477875,
-0.15154655277729034,
0.2486555576324463,
-0.4786914587020874,
-0.4682043492794037,
-0.04882225766777992,
0.4257653057575226,
0.12810055911540985,
-0.15963473916053772,... | |
Can you put permissions on files that are uploaded to S3?
Or if someone knows the guild/url to the file they can access it publicly?
If yes, what kind of permissions can we set?
Permissions are implemented with a key mechanism. You can make content readable for everyone (no password) or require a password. You grant ... | [
-0.14338575303554535,
-0.04704861715435982,
0.46994078159332275,
0.28643858432769775,
-0.02815292589366436,
-0.6194438934326172,
0.35170602798461914,
-0.327715665102005,
-0.43959614634513855,
-0.25613102316856384,
-0.2725829482078552,
0.19551683962345123,
0.014837645925581455,
0.4303458034... | |
in my application I am getting an exception: `MyApp(38431,0xa004ffa0) malloc: *** error for object 0xa08be760: pointer being freed was not allocated`
Is there a way for XCode to show me where this pointer is? How can I find where the problem is?
I know that I can type info line\*[address] and it may show me where the... | [
0.25507164001464844,
0.24483823776245117,
-0.008761578239500523,
0.2622162997722626,
-0.13789214193820953,
-0.08038199692964554,
0.5302627086639404,
-0.17311957478523254,
-0.37987494468688965,
-0.6215766668319702,
-0.17635932564735413,
0.34302806854248047,
-0.7687216997146606,
0.2676904797... | |
should be able to type "bt" for "backtrace" and this will show you the stack at the time the error occurs. | [
0.36956337094306946,
-0.0018780834507197142,
-0.056418389081954956,
0.11714626848697662,
0.209157332777977,
0.08336867392063141,
0.5044446587562561,
-0.24579934775829315,
-0.2975347936153412,
-0.35096240043640137,
-0.0988149493932724,
0.5642227530479431,
0.08763592690229416,
-0.35586187243... | |
what's the best way to make communications between page widgets residing on differents ViewPart?
via listener or via shared object instances like "getViewSite().getPart()/getPage()" ?
what pro/contra and what's the best strategy for You?
Thanks, regards
So, I found out that the class property `[NSDecimalNumber notAN... | [
0.09884271770715714,
0.01634409837424755,
0.08629485219717026,
0.023399749770760536,
-0.3416248559951782,
0.01642448641359806,
0.38210442662239075,
0.012503818608820438,
-0.24089600145816803,
-0.7862814664840698,
0.1253974586725235,
0.5644559264183044,
0.021813157945871353,
0.1609613299369... | |
What's a good resource for choosing aesthetically pleasing color combinations and themes? At the moment I'm using a color picker and stealing from various places. It's a hack.
* [Colour Lovers](http://www.colourlovers.com)
* [Color Scheme Designer](http://colorschemedesigner.com/)
* [Color Jack](http://www.colorjack.co... | [
0.06001600623130798,
-0.2215500771999359,
-0.07430285215377808,
0.19259294867515564,
0.0013576126657426357,
-0.05142734572291374,
0.10022624582052231,
-0.069504015147686,
-0.30410632491111755,
-0.2657848000526428,
-0.1285857856273651,
0.6077656149864197,
-0.22279982268810272,
0.15501224994... | |
How do I highlight operators/parentheses/brackets/etc. in VIM? I'm not interested in coloring matching or unmatching parentheses/brackets.
I've tried ":hi cBracket/whatnot guifg=something" and ":hi Operator/cOperator guifg=something" but these don't seem to affect anything.
There are two parts to Vim syntax coloring:... | [
0.07843023538589478,
0.17327091097831726,
0.28308579325675964,
-0.12897442281246185,
-0.36666208505630493,
0.10171138495206833,
0.07351759821176529,
-0.1368078589439392,
0.028433948755264282,
-0.6962857246398926,
-0.03823168948292732,
0.5685672163963318,
-0.31035375595092773,
-0.0883730947... | |
Have you ever been frustrated by Visual Studio not re-evaluating certain watch expressions when stepping through code with the debugger?
I have and does anyone here care about pure methods? Methods with no side-effects? There's so many great things about C# that I love, but I can't write pure functions, that is, stati... | [
0.5052576065063477,
-0.05933066084980965,
-0.015455927699804306,
0.015976013615727425,
-0.19219474494457245,
-0.19452401995658875,
0.296341210603714,
-0.10987717658281326,
-0.3079998791217804,
-0.24507464468479156,
0.10554072260856628,
0.677489697933197,
-0.43575453758239746,
0.00782361347... | |
is assured to not have any side-effects. The C# keyword `readonly` could here be used to indicate just that, and provide a contract for pure functions. These kind of functions can always be evulated, without causing side effects. This being a way for Visual Studio to always evaulate my functions in the watch, despite t... | [
0.5700823664665222,
0.09913910180330276,
0.6223292350769043,
0.11515656858682632,
0.09597844630479813,
-0.3602079153060913,
0.2569829821586609,
-0.05270315706729889,
0.0472988486289978,
-0.3713191747665405,
0.11564046889543533,
0.8797404766082764,
-0.21012268960475922,
-0.06543651968240738... | |
miss these things in C#, I think C# is dumbing down on the user a bit and basically not allowing certain expressiveness, hurting programmers. Many things which actually relate what you can do at compile time, I'd like to actually see more meta programs which are programs run by the compiler to compiler your original pr... | [
0.14482396841049194,
0.12198880314826965,
0.0314750075340271,
0.2362920641899109,
-0.4999469518661499,
-0.10189760476350784,
0.3727349638938904,
0.1545732021331787,
-0.2551773488521576,
-0.40293145179748535,
0.20196276903152466,
0.7771750092506409,
-0.40369993448257446,
0.03746245801448822... | |
? 1 : 0`, there's an IL instruction for just that which the C# compiler dosen't use.
Would you want, or be instrested in an open-source .NET compiler? Which looks like C# but is something entierly different, more expressive, and more flexible, and totally whaack, in terms what you can do with it?
Not really. If I want... | [
0.7356783151626587,
0.1857839673757553,
-0.04132618382573128,
0.09012418240308762,
-0.10535524785518646,
-0.18617291748523712,
0.02863972634077072,
-0.18418453633785248,
0.05016755685210228,
-0.44064125418663025,
-0.14180494844913483,
0.6666494607925415,
-0.3281833529472351,
-0.24927794933... | |
pretty slim, IMO.
Would it be nice to be able to express a few more things? Absolutely.
Is it rather handy having hundreds of thousands of people who understand the same language, built-in Visual Studio integration from the people who really know it, etc? Absolutely!
For me, "looks like C# but is something entirely ... | [
0.27043771743774414,
-0.013937264680862427,
0.06769811362028122,
0.30684810876846313,
0.031269583851099014,
0.04056202992796898,
-0.02356644719839096,
0.4623796045780182,
-0.2640939950942993,
-0.46462172269821167,
-0.12802134454250336,
0.4113631844520569,
0.14540232717990875,
-0.2640525996... | |
In C# (.NET), I got 2 loops ->
```
A for ... do:
{
B for do:
{ something}
something that evaluates all "for"s in B loop
}
```
I used Parallel.For for the inner loop but the results of those loops varied every time I ran the application. I think it may be a result of Some asynchrounous work, but I am not ... | [
0.24896392226219177,
-0.07272538542747498,
0.18510420620441437,
-0.2810841500759125,
-0.2672900855541229,
-0.08533746004104614,
0.36635035276412964,
-0.22847507894039154,
-0.20982661843299866,
-0.4198881685733795,
0.18490952253341675,
0.6017950773239136,
-0.514495313167572,
-0.163805872201... | |
all of it.
EDIT (due to comment which requests some more specific information):
```
for (int i = 0; i < max; i++) //Pre Vsetky retazce ..
{
prefix = 0;
tempsame.Clear();
bool spracovane = true;
int dlzkaI = Items[i, 1].Length;
if (Items[i, 2] != "1") | [
0.3409886658191681,
-0.2422100454568863,
0.5515623688697815,
-0.14244344830513,
0.21371661126613617,
0.1897142380475998,
0.472691148519516,
-0.38465461134910583,
-0.2549571692943573,
-0.4336707293987274,
-0.6966100931167603,
0.32989946007728577,
-0.41031938791275024,
0.3401380777359009,
... | |
{ spracovane = false; }
if (spracovane == false)
// Parallel.For(0, max, delegate(int j)
// {
for (int j = 0; j < max; j++) //Pre kazdy dalsi
{ | [
0.24410584568977356,
-0.1847837269306183,
0.43469664454460144,
-0.063429094851017,
0.11670062690973282,
0.5828012824058533,
0.39474567770957947,
-0.3977503180503845,
-0.1843646615743637,
-0.36663907766342163,
-0.03613307327032089,
0.2806517481803894,
-0.2625229060649872,
0.3539952635765075... | |
int dlzkaJ = Items[j, 1].Length;
if (dlzkaJ >= dlzkaI)
{
CompareInfo myComp = CultureInfo.InvariantCulture.CompareInfo; | [
0.38994526863098145,
-0.5051338076591492,
0.686389684677124,
0.06724874675273895,
0.022049693390727043,
0.3292127251625061,
0.18852226436138153,
-0.18661965429782867,
0.04334722459316254,
-0.5493443012237549,
-0.21802933514118195,
0.24059060215950012,
-0.3692992925643921,
0.416517317295074... | |
bool isprefix = myComp.IsPrefix(Items[j, 1], Items[i, 1]);
bool issame = false;
if (dlzkaJ.Equals(dlzkaI)) issame = true; | [
-0.23720711469650269,
-0.016971172764897346,
0.3504413366317749,
-0.08168932050466537,
-0.16337920725345612,
0.1332264244556427,
0.5158852934837341,
-0.25501173734664917,
0.09021549671888351,
-0.4011966586112976,
-0.500848650932312,
0.2632088363170624,
-0.3379906713962555,
0.18625496327877... | |
if (isprefix == true && issame == false)
{
prefix++; | [
-0.12239501625299454,
-0.22263473272323608,
-0.00894577894359827,
-0.2206328809261322,
0.04358066990971565,
0.013230548240244389,
0.3017410635948181,
-0.33891499042510986,
0.2681097388267517,
-0.2834767997264862,
-0.5115286707878113,
0.39833804965019226,
-0.16107866168022156,
-0.0861573889... | |
}
else if (isprefix == true && issame == true && prefix == 0)
{ | [
-0.12205728143453598,
-0.2055429369211197,
-0.02349323406815529,
-0.05572918429970741,
0.24960877001285553,
-0.06804262101650238,
0.2629565894603729,
-0.317604660987854,
0.187201589345932,
-0.3006492257118225,
-0.4054713249206543,
0.5372275114059448,
-0.09435417503118515,
-0.17856630682945... | |
tempsame.Add(Items[j, 0]);
}
}
}
if ((prefix==0) && (spracovane==false))
{
Items = UpdateUnique(tempsame.ToArray(typeof(string)) as string[], Items); | [
0.10883548110723495,
-0.2503522038459778,
0.5086584687232971,
-0.17995813488960266,
0.05367216095328331,
0.339974045753479,
0.5574567914009094,
-0.2810209393501282,
-0.09594458341598511,
-0.6388404965400696,
-0.48138943314552307,
0.460080087184906,
-0.496131032705307,
-0.03554639220237732,... | |
unique++;
}
}
```
In short, the 2 loops loop through same array of strings and choose only unique strings -> it means that the string can't be a prefix to any other string.
```
> Car - unique Car - unique Cafeteria -
> unique Automobile - unique Auto - not
> unique - it's prefix of Automobile
> Auto - not uni... | [
0.6252672672271729,
0.3554212749004364,
0.03655209019780159,
0.1907152235507965,
-0.22017519176006317,
-0.0030091849621385336,
0.05588274821639061,
-0.4375261664390564,
-0.2380763292312622,
-0.3718944191932678,
0.026002930477261543,
0.233761727809906,
-0.1039423793554306,
0.296226948499679... | |
by single amateur language designer") language ending up as well thought out as C# are pretty slim, IMO.
Would it be nice to be able to express a few more things? Absolutely.
Is it rather handy having hundreds of thousands of people who understand the same language, built-in Visual Studio integration from the people ... | [
0.46951156854629517,
0.15924109518527985,
0.06678906083106995,
0.25119003653526306,
0.04308906942605972,
-0.10832874476909637,
0.20520220696926117,
0.23949001729488373,
-0.3146202862262726,
-0.5852476954460144,
-0.25161558389663696,
0.5682743787765503,
0.09213609248399734,
-0.4023061096668... | |
What's the difference between
```
$PDOStatement->fetchColumn();
```
and
```
$PDOStatement->fetch(PDO::FETCH_COLUMN);
```
(if one exists)? Or are they functionally similar but only aesthetically different?
By default `fetchColumn()` will return only `'value'` while other by default will return `array('column_name'... | [
-0.3308795392513275,
-0.1291133463382721,
0.7272096276283264,
-0.29768237471580505,
-0.019781429320573807,
0.2691311836242676,
-0.16315202414989471,
-0.27816781401634216,
-0.2101382613182068,
-0.4508512318134308,
-0.3794545531272888,
0.6453169584274292,
-0.46261322498321533,
-0.11580887436... | |
What are the "latest" news about the next big release of the Eclipse IDE? (3.5 Galileo could also be of interest)
[Eclipse2009](http://www.eclipsecon.org/2009/) gave us some hints about the next upcoming relase of the Eclipse IDE.
After a quick googling it seems like there will be some new cool "cloud" feature/support... | [
0.31921660900115967,
-0.09173491597175598,
0.7678384780883789,
0.11798805743455887,
-0.37735456228256226,
-0.3140534460544586,
0.058457694947719574,
0.16701963543891907,
-0.2826526463031769,
-0.37546056509017944,
-0.2959561347961426,
0.5376214981079102,
-0.1250198930501938,
-0.325860261917... | |
I have two pages, Page A and Page B. Both of them have an item with an ID of "loginLink". Both of them import "header.css", which has the following:
```
#loginlink, #usernamePlaceholder {color:#333;font-size:16px;font-weight:bold;}
```
On Page A, my loginLink displays correctly. On page B, the style defined in heade... | [
0.044955383986234665,
0.36223435401916504,
0.5115962624549866,
-0.3347225487232208,
-0.1259562373161316,
0.016340091824531555,
0.15637414157390594,
-0.1810760349035263,
-0.16287529468536377,
-0.9265930652618408,
-0.1691783368587494,
0.3330081105232239,
-0.3158629834651947,
0.02075051143765... | |
elements from the two pages until they match, but would love to hear any non-brute-force ideas.
Here's the html for the login link:
```
<div id="HeaderNotLoggedIn" style="display: block;">
<a href="https://idcenter.services.mysite.net/SignInNew?referer=http%3A%2F%2Flocal.tvlistings.mysite.net%2Fwebdvr%2F"... | [
0.24145324528217316,
-0.10166165232658386,
0.7330195903778076,
-0.04890003055334091,
0.015011167153716087,
-0.1937471628189087,
0.20896656811237335,
-0.518531858921051,
-0.05642220750451088,
-0.646584153175354,
-0.28130587935447693,
0.26849162578582764,
-0.44954246282577515,
0.083317108452... | |
an implicit conversion from `TypeA` to `TypeB` but no implicit conversion from `TypeB` to `TypeA` then the overload using `TypeA` will be used.
+ If there is an implicit conversion from `TypeB` to `TypeA` but no implicit conversion from `TypeA` to `TypeB` then the overload using `TypeB` will be used.
+ Otherwise, the... | [
-0.06064153462648392,
0.1635332554578781,
0.1470818966627121,
-0.3228520452976227,
-0.07203058153390884,
-0.014663459733128548,
0.4251699149608612,
-0.32605087757110596,
0.22034496068954468,
-0.22595269978046417,
-0.3864479959011078,
0.7404386401176453,
-0.7679545283317566,
0.0135512128472... | |
`TypeB` is used:
```
using System;
class TypeA {}
class TypeB : TypeA {}
class Program
{
static void Foo(TypeA x)
{
Console.WriteLine("Foo(TypeA)");
}
static void Foo(TypeB x)
{
Console.WriteLine("Foo(TypeB)");
}
static void Main()
{
Foo(null); // Prints Foo(... | [
0.056061211973428726,
0.11145954579114914,
0.26908379793167114,
-0.5268059968948364,
0.08916805684566498,
0.05033521726727486,
0.2379208356142044,
-0.1526166796684265,
0.08365651220083237,
-0.3159850239753723,
-0.5346379280090332,
0.44034233689308167,
-0.8613868951797485,
0.175765752792358... | |
cast:
```
Foo((TypeA) null);
```
or
```
Foo((TypeB) null);
```
Note that if this involves inheritance in the declaring classes (i.e. one class is overloading a method declared by its base class) you're into a whole other problem, and you need to cast the target of the method rather than the argument. | [
0.13974663615226746,
0.07152587920427322,
-0.3007262647151947,
-0.11531934142112732,
-0.1914527863264084,
-0.20354816317558289,
0.3686598241329193,
-0.2038152515888214,
0.10457591712474823,
-0.11608421057462692,
-0.24722765386104584,
0.5663418769836426,
-0.6471492052078247,
0.0472980365157... | |
I've been working on an economy simulator in Java and ran into a roadblock. I have an *Economy* class that owns a vector of *Traders*. Every iteration, the Economy class calls each *Trader* to update() and decide what trades it would like to place. The update() function returns the desired transactions to be added to t... | [
0.4005768299102783,
-0.006685550790280104,
0.2803666591644287,
-0.19502852857112885,
0.14228646457195282,
0.40941277146339417,
-0.3483540117740631,
-0.19474145770072937,
-0.29739809036254883,
-0.8876150250434875,
0.17813421785831451,
0.42086657881736755,
-0.20473283529281616,
0.14113722741... | |
how should I design the code so that the *Traders* do have access to *Economy* functions and variables?
Since the Trader class needs access to the methods of the Economy class, the correct way is to "inject" an instance of an Economy to the Trader class. You can do that either with the constructor:
```
public Trader(E... | [
0.3035843074321747,
0.08468944579362869,
-0.016134824603796005,
0.0630887895822525,
0.13845700025558472,
-0.03681287169456482,
0.2089507281780243,
-0.33514130115509033,
0.11125590652227402,
-0.676389217376709,
-0.11310326308012009,
0.6941465735435486,
-0.5459733009338379,
0.002245404990389... | |
be restricted to the class's methods only. Define getters and setters if you want to access them externally. As I understand it, Traders should only extract information from an Economy. They shouldn't be able to call methods that modify the state of the Economy. This should be reflected on your design.
You may also co... | [
0.5824580192565918,
-0.20666749775409698,
0.12780781090259552,
0.39537495374679565,
0.004475483205169439,
-0.10766104608774185,
-0.198258638381958,
-0.3269497752189636,
-0.1265558898448944,
-0.656977653503418,
-0.10205820947885513,
0.6860393285751343,
-0.4311099648475647,
-0.17411471903324... | |
I've written a Javascript script that automatically resizes the height of an IFrame, depending on its content. This is done as soon as the content of the framed page is produced; in Firefox no problem, but in IE the script is correctly executed but no effect is seen: the method is called in a callback function. Any sug... | [
0.4181944727897644,
0.2482088953256607,
0.779705286026001,
-0.3652118742465973,
0.0990581139922142,
0.10022463649511337,
0.2857571244239807,
-0.508903443813324,
-0.2284245789051056,
-0.7485648989677429,
-0.0861787348985672,
0.4938015341758728,
-0.08674528449773788,
-0.1325698345899582,
0... | |
= document.offsetHeight;
}
```
And the calling function is like this:
```
//init function
bunding.doSomeWork(callbackFunction);
...
function callbackFunction()
{
//does some HTML output
resizeFrame();
}
```
I'm using Salesforce Ajax library.
Did you set the widths of all elements properly? | [
0.25631940364837646,
-0.08304158598184586,
0.4155119061470032,
-0.24986615777015686,
0.04378634691238403,
-0.048128582537174225,
0.1435643434524536,
-0.5022015571594238,
-0.09631552547216415,
-0.8090510964393616,
0.02488412708044052,
0.7516738772392273,
-0.21210172772407532,
-0.30097436904... | |
The problem:
Let's say there is an XML file that contains both the data and the hierarchy of certain elements of interest to the application:
```
<root>
<node title="lvl1Node">
<node title="lvl2Node">
<node title="lvl3Node"></node>
</node>
</node>
<node title="lvl1Node2"></no... | [
-0.5272262692451477,
-0.06162356585264206,
0.27955615520477295,
-0.0016839964082464576,
0.14399594068527222,
-0.03511781990528107,
-0.2820824682712555,
-0.12820829451084137,
-0.280958890914917,
-0.5402081608772278,
-0.22743479907512665,
0.3094259798526764,
-0.23962748050689697,
0.126126617... | |
<node title="lvl4Node"></node>
</node>
</node>
</node>
</root>
```
Now let's say your application needs to provide an API to retrieve these nodes. You need to write a method that returns the nodes without losing information about their hierarchy.
My question is how would you go about it ? W... | [
0.15531407296657562,
0.07248839735984802,
0.3755868971347809,
0.2617865204811096,
0.1586131453514099,
0.08041200786828995,
0.1115465760231018,
-0.09945684671401978,
-0.20028649270534515,
-0.6618083119392395,
0.006452818401157856,
0.22665999829769135,
-0.2610630691051483,
0.2006486058235168... | |
the standard Collections API and writing it yourself is always a last resort (programmers are lazy, reinventing the wheel etc).
I also thought of an ArrayList where each item is either an Object (for node without subnodes) or an Arraylist (for node with subnodes) but I like generics and this feels too much like a hack... | [
0.420712947845459,
-0.3218670189380646,
0.04346407577395439,
0.555367112159729,
-0.1676843911409378,
-0.3012515902519226,
0.3910554349422455,
-0.172833651304245,
-0.4661506414413452,
-0.3967020511627197,
-0.04219537228345871,
0.5942198038101196,
-0.36381232738494873,
-0.02375164069235325,
... | |
more children.
So it goes something like this:
```
class Node {
Node parent;
List<Node> children;
}
```
It's like a linked list, but each node can branch out into an arbitrary number of children. If you need to find items directly by id the best bet is to keep a seperate hashmap index. | [
0.09782980382442474,
-0.08859118819236755,
0.06487181782722473,
0.4297349154949188,
0.0823192149400711,
0.21531130373477936,
-0.10864328593015671,
0.06886810064315796,
-0.424111008644104,
-0.7481738328933716,
-0.057818833738565445,
0.39925122261047363,
-0.15598295629024506,
0.4836540818214... | |
I recently tried to implement dependency injection using StructureMap. I managed to follow the example all the way but I'm encountering a thrown exception every time I try to run the application. Here's some code snippets from my controller factory.
```
public class StructureMapControllerFactory : DefaultControllerFac... | [
0.09818263351917267,
-0.12051812559366226,
0.30628493428230286,
-0.21042600274085999,
-0.0032070111483335495,
0.0530100017786026,
0.31650418043136597,
-0.1792357712984085,
-0.3051844537258148,
-0.6042259931564331,
-0.07139913737773895,
0.4697459936141968,
-0.6133564710617065,
0.46512952446... | |
BootStrapper class which registers all my dependencies but it looks like the StructureMapControllerFactory's GetControllerInstance is getting called twice. The first time it's called, a proper controllerType is passed in but it's always null on the second calling.
The first time GetControllerInstance is called, the ty... | [
0.19276727735996246,
-0.25825801491737366,
0.6686781644821167,
0.0772547647356987,
-0.08836185187101364,
0.20995159447193146,
0.34202098846435547,
-0.09573571383953094,
-0.3200671970844269,
-0.912790060043335,
0.12308725714683533,
0.4052065908908844,
-0.21122179925441742,
0.233262330293655... | |
relevant:
```
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Bootstrapper.ConfigureStructureMap();
ControllerBuilder.Current.SetControllerFactory(new StructureMapControllerFactory());
}
```
I'm very keen to get dependency injection working and would be mo... | [
0.15874353051185608,
0.056667760014534,
0.5942497849464417,
-0.13941437005996704,
0.1320434957742691,
-0.3183579742908478,
0.2795085906982422,
-0.04252593591809273,
-0.2746078670024872,
-0.90045166015625,
-0.33151689171791077,
0.29031550884246826,
-0.620561420917511,
0.28012755513191223,
... | |
happening, but I decided not to implement it because it's a nice way of being notified that you have a missing resource.
You can see a detailed explanation along with examples of setting up dependency injection using Structure Map [here](http://www.codingcontext.com/post/ControllerType-Is-Null-When-Creating-A-Custom-C... | [
0.6051307320594788,
-0.10060139000415802,
0.27522560954093933,
-0.06281260401010513,
0.1094733476638794,
-0.1451234519481659,
0.1999482810497284,
0.023616759106516838,
-0.4658178687095642,
-0.7755476832389832,
0.16754098236560822,
0.28720802068710327,
-0.7666500806808472,
0.327655851840972... | |
information in the error message as to what the request is that is causing the controllerType to be null. In my particular case I had a background image in my css file set like this:
```
background: url(img/logo.gif);
```
So what happens is the routing is looking for a controller called "img" and an action that take... | [
0.23741695284843445,
-0.1270081102848053,
0.18485383689403534,
0.10074111819267273,
-0.07020573318004608,
-0.33073076605796814,
0.3001626133918762,
0.2683377265930176,
-0.5237537026405334,
-0.7945376038551331,
0.16171172261238098,
0.18438002467155457,
-0.6448401808738708,
0.289967149496078... | |
need to do this with the default ControllerFactory, but nonetheless it works.
You'll probably run into the same issue with favicon.ico. Particularly if you using google crhome. You'll need to add this as well:
```
routes.IgnoreRoute("{*favicon}", new {favicon=@"(.*/)?favicon.ico(/.*)?"})
``` | [
-0.04837645962834358,
-0.24394606053829193,
0.7340635657310486,
0.3583892583847046,
0.26567745208740234,
-0.3373085558414459,
0.44259700179100037,
0.04797321930527687,
-0.521671712398529,
-0.72489333152771,
-0.1318163126707077,
0.43236419558525085,
-0.5082014203071594,
0.049551840871572495... | |
The following code creates 100 cookies and then enumerates through them via postbacks.
```
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
for (int i = 0; i < 100; i++)
{
HttpCookie cookie = new HttpCookie("cookie num." + i.ToString());
cookie[... | [
-0.06353900581598282,
0.04530373588204384,
0.534409761428833,
-0.28882986307144165,
0.0768013596534729,
0.18093326687812805,
0.46487706899642944,
-0.35461124777793884,
-0.04068208858370781,
-0.8892921805381775,
-0.30727618932724,
0.43225333094596863,
-0.29527217149734497,
0.169363409280776... | |
cookie.Expires = DateTime.Now.AddMonths(1);
Response.Cookies.Add(cookie);
}
int i1 = 0;
Session["i"] = i1;
}
if (IsPostBack)
{
int i = (int)Session["i"];
HttpCookie cookie= Request.Cookies["Cookie num." + i.ToString()];
Label1.Text = cookie["Cook... | [
-0.2783484160900116,
-0.31269803643226624,
0.5308258533477783,
-0.285909503698349,
0.0019104245584458113,
0.04742041602730751,
0.6023159623146057,
-0.42266958951950073,
-0.22877177596092224,
-0.7877230048179626,
-0.2932969629764557,
0.5655765533447266,
-0.1725887805223465,
0.25977557897567... | |
++i;
}
}
```
Q1 - But when using Firefox, instead of being able to enumerate through all of 100 cookies, app only manages to go through first 20 (max 40) cookies before reporting *Object reference not set to an instance of an object* exeception:
Q2 - when I request this page via IE, then I will always get *Obje... | [
0.021823789924383163,
0.09385673701763153,
0.7717304229736328,
-0.3172696828842163,
-0.06253644824028015,
0.1145445853471756,
0.6419641375541687,
-0.3738209009170532,
0.05993777513504028,
-0.9397143125534058,
-0.40315499901771545,
0.5004281401634216,
-0.556430459022522,
-0.1040165573358535... | |
it is Firefox that doesn't save all cookies. And with IE, code is not able to enumerate through none of the cookies. SO the above answer would be valid if I was at least able to enumerate through first 20 cookies ( in IE ), which I'm not
2. EDIT:
> The spec makes no guarantee which cookies a browser must keep when it... | [
0.4968204200267792,
0.10932064801454544,
0.2769949436187744,
0.07526718825101852,
-0.2338905930519104,
-0.3181975781917572,
0.539121150970459,
-0.14394791424274445,
-0.21328115463256836,
-0.7601351141929626,
-0.15173186361789703,
0.6565314531326294,
-0.44819211959838867,
-0.118137508630752... | |
not ordered, so there's no guarantee they will be processed in any particular order in the first place.
What exactly do you mean by "processed"?
thanx for helping me out
[You can't rely on being able to set more than 20 cookies per hostname.](http://support.microsoft.com/kb/306070)
ETA:
> But the following link app... | [
0.34237635135650635,
-0.15824882686138153,
0.5008029937744141,
0.057022575289011,
0.02921217307448387,
-0.08081476390361786,
0.39867886900901794,
-0.15392619371414185,
-0.5329332947731018,
-0.7614145874977112,
-0.25648781657218933,
0.4478793740272522,
-0.38266995549201965,
-0.0658193379640... | |
throws away the earlier cookies to make room for the new ones, you'll be left with only cookie80-cookie99 and the attempt to access cookie0 will error.
The spec makes no guarantee which cookies a browser must keep when it runs out of storage, so browsers are free to behave how they like, and you should expect differen... | [
0.33544543385505676,
-0.1372116059064865,
0.1777021735906601,
0.2356211245059967,
-0.14221039414405823,
-0.2737155258655548,
0.37898239493370056,
-0.3473202884197235,
-0.3259776532649994,
-0.5968707799911499,
-0.21937105059623718,
0.29454153776168823,
-0.15037260949611664,
0.07320513576269... | |
but each browser has its own cookie limits and you should in general strive to keep cookie data down to a bare minimum. | [
0.2928312122821808,
0.3021908700466156,
-0.051206476986408234,
0.285785973072052,
0.01011293288320303,
-0.4150550067424774,
0.4207834303379059,
0.3975130021572113,
-0.37056899070739746,
-0.6600974202156067,
0.051829639822244644,
0.42811906337738037,
0.032228272408246994,
0.0186410341411829... | |
Python's inner/nested classes confuse me. Is there something that can't be accomplished without them? If so, what is that thing?
Quoted from <http://www.geekinterview.com/question_details/64739>:
> ### Advantages of inner class:
>
>
> * **Logical grouping of classes**: If a class is useful to only one other class th... | [
0.2722146511077881,
-0.08206680417060852,
-0.4798777997493744,
0.04514647647738457,
-0.19521154463291168,
0.023356590420007706,
0.5090348124504089,
0.09559652954339981,
-0.43066826462745667,
-0.39609506726264954,
0.09141483157873154,
0.5137311816215515,
-0.41747212409973145,
-0.16732010245... | |
members can be declared private and B can access them. In addition B itself can be hidden from the outside world.
> * **More readable, maintainable code**: Nesting small classes within top-level classes places the code closer to where it is used.
The main advantage is organization. Anything that can be accomplished wi... | [
0.14165039360523224,
-0.1976972073316574,
-0.220095694065094,
0.29453158378601074,
-0.07436173409223557,
-0.3219652473926544,
0.5625189542770386,
-0.30312830209732056,
-0.45743614435195923,
-0.6114852428436279,
-0.4022142291069031,
0.17708420753479004,
-0.19932866096496582,
0.0272343065589... | |
I'm writing a java web application which need to perform login through a webservice. Of course, none of the realms supplied with the application server I'm using (glassfish v2) can do the trick. I therefore had to write my own. It seems however, that the realm implementation that I wrote is completely tied to glassfish... | [
0.4115518629550934,
0.2060374766588211,
0.33222150802612305,
0.053260065615177155,
-0.17456550896167755,
0.0634145513176918,
0.3334118723869324,
-0.15875057876110077,
-0.29833078384399414,
-0.6268755793571472,
0.08023106306791306,
0.37583377957344055,
-0.34704145789146423,
0.18073882162570... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.