text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
base.FormBorderStyle = FormBorderStyle.None; } else { base.FormBorderStyle = formBorderStyle; } } } internal
[ -0.3451598286628723, -0.040012113749980927, 0.11784456670284271, -0.2609906792640686, -0.09635885804891586, -0.07406327873468399, 0.4374656677246094, -0.422801673412323, -0.15420641005039215, -0.20693612098693848, -0.41360196471214294, 0.3223780691623688, -0.17063185572624207, -0.069364652...
MyForm() { EnableSkin = false; FormBorderStyle = FormBorderStyle.Sizable; } } ``` And the problem I'm having is something like this: <http://blogs.msdn.com/calvin_hsia/archive/2007/05/01/windows-vista-aero-borderstyle-paint-problem-as-non-administrator.aspx> In my case, that happens when you set ...
[ 0.5233935117721558, 0.046876758337020874, 0.754153847694397, -0.29955387115478516, -0.07486087083816528, -0.25639429688453674, 0.5520282983779907, -0.2810957729816437, -0.07077710330486298, -1.0566446781158447, 0.19405949115753174, 0.7844854593276978, -0.045237429440021515, 0.2124678045511...
that article, I need to recreate the window just like it happens when the solution is rebuilt. --- How do I declare a property in the base form? I currently have: ``` public class MyForm : Form { } ``` And I can only declare properties inside that class, not inside the Form one... I also have used Invalidate() as...
[ 0.5052499771118164, 0.17139498889446259, 0.5949558019638062, 0.12560029327869415, -0.06298701465129852, -0.4540930390357971, 0.6034422516822815, -0.1426558494567871, -0.10958856344223022, -0.7629441022872925, -0.10269415378570557, 0.5280146598815918, 0.2370232343673706, 0.6345509886741638,...
**How can you make the experience with Eclipse faster?** For instance: *I disable all the plugins I don't need (Mylyn, Subclipse, …).* Instead of using a plugin for [Mercurial](http://en.wikipedia.org/wiki/Mercurial), I configure [TortoiseHG](https://en.wikipedia.org/wiki/TortoiseHg) as an external tool. The three m...
[ -0.10168416798114777, -0.16040579974651337, 0.6209394335746765, 0.1515190303325653, -0.29376697540283203, 0.19898229837417603, 0.1722436547279358, -0.16945220530033112, -0.6141917109489441, -0.7374406456947327, 0.03325831890106201, 0.3074556589126587, 0.10740714520215988, -0.07210259139537...
EE bundles. Newer versions have more bundled plugins, but still the trend is obvious. (by "same" workspace I mean: same (additionally installed) plugins used, same projects checked out from version control). * Launching it with the **latest JDK** (Java 14 at the time of writing, which does not prevent you to compile i...
[ 0.572361409664154, -0.17474716901779175, 0.6068724989891052, -0.3951674997806549, -0.07068284600973129, -0.3718489408493042, 0.08940915763378143, -0.29058918356895447, -0.1030554324388504, -0.43958601355552673, -0.0613364651799202, 0.7523682117462158, -0.39508548378944397, -0.4070526957511...
gets 4 GB of RAM, etc. --- Note: 1. Referring to the jvm.dll has advantages: * Splash screen coming up sooner. * Eclipse.exe in the process list instead of java.exe. * Firewalls: Eclipse wants access to the Internet instead of Java. * Window management branding issues, especially on Windows and Mac. --- Dec. 2020...
[ 0.19455058872699738, -0.11112544685602188, 0.7924994230270386, -0.15667352080345154, -0.18880444765090942, -0.17957012355327606, 0.1907309591770172, -0.19775497913360596, -0.7178233861923218, -0.6441012620925903, -0.362296998500824, 0.5380149483680725, -0.16463418304920197, -0.098815307021...
> Especially with-in the last 3 versions the startup time was increased a lot. There should be a significant increase in start-up time with the newest version of Eclipse 2020-12. > > > In my experience it started a lot faster with each new version. > > But: There are still plug-ins which do not follow the new way ...
[ 0.35662052035331726, 0.17054803669452667, 0.4901820123195648, -0.23184022307395935, -0.3176765739917755, -0.32037433981895447, 0.560855507850647, 0.044187817722558975, 0.003898581489920616, -0.9681339859962463, -0.14581403136253357, 0.6097844839096069, -0.3121202290058136, -0.4348084926605...
the JVM. It is up to the providers of the other plug-ins to upgrade to newer APIs and to use the full power of modern CPUs (e.g. concurrent programming model).
[ 0.2580794394016266, 0.17567190527915955, 0.735940158367157, -0.0074503724463284016, -0.084009550511837, -0.27636411786079407, 0.09026174992322922, -0.03848237544298172, -0.03206867352128029, -0.4473140835762024, -0.4515047073364258, 0.7520995140075684, -0.036079034209251404, -0.09735140949...
From the help for the Overflow Error in VBA, there's the following examples: ``` Dim x As Long x = 2000 * 365 ' gives an error Dim x As Long x = CLng(2000) * 365 ' fine ``` I would have thought that, since the Long data type is supposed to be able to hold 32-bit numbers, that the first example would work fine. I a...
[ 0.541373074054718, 0.07358701527118683, 0.4434795379638672, -0.02144927717745304, -0.12766019999980927, 0.0022317359689623117, -0.2283635139465332, -0.33775097131729126, -0.4816136062145233, -0.03573491424322128, 0.07683836668729782, 0.9605038166046143, 0.13588325679302216, 0.5250902175903...
are 16-bit signed types, when you perform arithmetic on 2 integers the arithmetic is carried out in 16-bits. Since the result of multiplying these two numbers exceeds the value that can be represented with 16 bits you get an exception. The second example works because the first number is first converted to a 32-bit typ...
[ 0.02881370671093464, 0.19169962406158447, 0.24819235503673553, -0.01146767195314169, -0.20454832911491394, 0.0506853386759758, 0.1226736530661583, -0.31005585193634033, -0.5086908340454102, -0.31295323371887207, -0.2545376718044281, 0.3319524824619293, -0.5670387744903564, -0.0669267177581...
is to convert one of the operands in the multiplication to long first: ``` Dim Price as Long Price = CLng(AnnualCost) * Months / 12 ```
[ 0.10849402844905853, -0.2401599884033203, 0.4714037775993347, -0.20449747145175934, 0.3689745366573334, 0.18613998591899872, -0.6443460583686829, -0.12305887788534164, -0.05762719362974167, -0.09281523525714874, -0.06944188475608826, 1.0362621545791626, 0.26330795884132385, 0.1881210356950...
Is it possible to determine whether a particular youtube video is encoded with H.264 or FLV through the YouTube data API? If so, how? I can start a file download and check how the video stream was encoded (programmatically, of course), but I'd like to use the YouTube data API to avoid all that overhead. 2000 and 365 ...
[ 0.5657889246940613, 0.10111381113529205, 0.5825310349464417, 0.11735724657773972, -0.31700995564460754, 0.2643613815307617, -0.043505240231752396, -0.6177070736885071, -0.4197826683521271, -0.043608348816633224, 0.26236459612846375, 0.4074707627296448, -0.1549285501241684, 0.05625827610492...
get an exception. The second example works because the first number is first converted to a 32-bit type and the arithmetic is then carried out using 32-bit numbers. In your example, the arithmetic is being performed with 16-bit integers and the result is then being converted to long but at that point it is too late, th...
[ 0.18866510689258575, -0.23524515330791473, 0.40761011838912964, 0.010406691581010818, 0.36837831139564514, 0.09356895089149475, -0.45772823691368103, -0.2940644919872284, -0.30702513456344604, -0.21505720913410187, -0.143652081489563, 0.9635995030403137, 0.054908864200115204, 0.13054750859...
We have a number of MS SQL Server 2005 installations (both Standard and Enterprise editions) on our webservers. From time to time I need to administrate them from home. Right now I'm using Remote Desktop to connect to my work machine, but I'd prefer to install SQL Server Management Studio on my home machine so that I c...
[ 0.03845705837011337, 0.4296564757823944, 0.22948338091373444, -0.1020045056939125, 0.10386770218610764, 0.012871293351054192, 0.2336750477552414, -0.010198978707194328, -0.13627760112285614, -0.4729337692260742, 0.1570386290550232, 0.3380569517612457, -0.012380901724100113, 0.0974533930420...
the difference between SQL Server Management Studio and the Express edition?](https://stackoverflow.com/questions/117347/whats-the-difference-between-sql-server-management-studio-and-the-express-versi) Also, if you have any trouble doing anything from Managment Studio Express, there are third-party tools out there tha...
[ -0.0015432119835168123, -0.12522299587726593, 0.10421109944581985, 0.051883481442928314, -0.17524772882461548, -0.16618092358112335, 0.2241765409708023, -0.007840238511562347, -0.3451772928237915, -0.6673530340194702, 0.13987094163894653, 0.710587739944458, -0.19287143647670746, -0.1298964...
As I learn more about Computer Science, AI, and Neural Networks, I am continually amazed by the cool things a computer can do and learn. I've been fascinated by projects new and old, and I'm curios of the interesting projects/applications other SO users have run into. [The Numenta Platform for Intelligent Computing](ht...
[ 0.4982996881008148, -0.029822636395692825, -0.3631650507450104, 0.3759578466415405, 0.15285378694534302, 0.16739971935749054, 0.12713205814361572, 0.2784234285354614, -0.31605175137519836, -0.7204359769821167, -0.04273158684372902, 0.5652968883514404, 0.1085464283823967, 0.1134881377220153...
is available now. Exciting times for learning software!!
[ 0.23090046644210815, 0.02306140400469303, 0.19101935625076294, 0.2915460467338562, 0.4972016215324402, -0.5240509510040283, 0.21768058836460114, 0.43770939111709595, -0.18383650481700897, -0.3612563908100128, -0.19981838762760162, 0.42942821979522705, 0.6160957217216492, 0.2651065886020660...
I'm trying out PHPTAL and I want to render a table with zebra stripes. I'm looping through a simple php assoc array ($\_SERVER). Note that I don't want to use jQuery or anything like that, I'm trying to learn PHPTAL usage! Currently I have it working like this (too verbose for my liking): ``` <tr tal:repeat="item se...
[ 0.01399446465075016, -0.23755812644958496, 0.45202863216400146, 0.129028782248497, -0.3463273048400879, 0.059921227395534515, 0.49781256914138794, -0.12125428766012192, -0.06863007694482803, -0.5671583414077759, -0.053910791873931885, 0.5545183420181274, -0.23426175117492676, -0.0893889069...
function (see `phptal_tales()` in manual): ``` <td tal:attributes="class evenodd:repeat/item/odd"> ```
[ 0.025661112740635872, -0.34288182854652405, 0.3376173675060272, 0.19915565848350525, -0.021402601152658463, -0.18619473278522491, 0.4688519537448883, -0.15143464505672455, -0.05775565281510353, -0.044553570449352264, -0.2641621232032776, 0.8433372974395752, -0.16248716413974762, 0.05444872...
I'm a relatively new convert to Python. I've written some code to grab/graph data from various sources to automate some weekly reports and forecasts. I've been intrigued by the Jython concept, and would like to port some Python code that I've written to Jython. In order to do this quickly, I need a NumPy clone for Jyth...
[ 0.6332888603210449, 0.04168670251965523, 0.10896553844213486, -0.0604315809905529, -0.15411162376403809, 0.04985960200428963, 0.15193185210227966, 0.31688418984413147, -0.21491926908493042, -0.7953709363937378, 0.15798306465148926, 0.6076138615608215, -0.13337592780590057, -0.0550680235028...
you're doing with numpy, I guess.
[ 0.790148138999939, -0.0478179007768631, -0.2299911230802536, 0.13550972938537598, 0.010977543890476227, -0.13662578165531158, -0.0637107565999031, 0.37595483660697937, -0.41269710659980774, -0.09255082160234451, 0.46281126141548157, 0.3406693935394287, 0.15190884470939636, -0.0776768848299...
How do Window's programmers profile their native C++ code? On Unix/Linux you have gprof *[thanks Evan]* & valgrind (I personally used this one, although it's not a real profiler), and recently I'm on Mac and Solaris, which means I moved to dTrace. Now when I've had the need to profile on Windows in the past, like at my...
[ 0.3105674088001251, -0.14334723353385925, 0.37345579266548157, 0.08787363767623901, -0.6001183390617371, -0.12812303006649017, 0.12554024159908295, 0.4661412537097931, -0.27600499987602234, -0.9235334396362305, -0.00373102817684412, 0.8325425982475281, -0.08418222516775131, 0.1241838112473...
- it's a new system wide performance tool that can drill down to a particular application and what exactly it's doing inside itself as well as what's it's asking of the OS. It's freely available on the [Windows SDK for Windows Server 2008 and .NET Framework 3.5 ISO](http://www.microsoft.com/downloads/details.aspx?Fami...
[ 0.13397596776485443, -0.24246805906295776, 0.4931906461715698, 0.3242674469947815, -0.01727769896388054, -0.25446411967277527, -0.08807931840419769, -0.015565980225801468, -0.03621438890695572, -0.7845481634140015, -0.36699649691581726, 0.40398865938186646, 0.050033509731292725, 0.14184163...
the xperf tools from the MSI directly, or copy > the xperf MSI file to another location > and install it from there. For > example, you could keep the MSI files > on a USB key. [Source: Pigs Can Fly blog on MSDN.com](http://blogs.msdn.com/pigscanfly/archive/2008/02/09/xperf-a-new-tool-in-the-windows-sdk.aspx) Jus...
[ 0.6782812476158142, 0.13960236310958862, 0.3792836368083954, 0.04662127420306206, 0.045380834490060806, -0.2404460459947586, 0.1065426766872406, -0.2411220818758011, -0.17484667897224426, -0.6000483632087708, -0.31279799342155457, 0.7190137505531311, -0.27130746841430664, 0.006039320025593...
I'm working on a project that currently has zero users but we would like to scale up to potentially hundreds. Currently we are running on a MySQL database with AMFPHP interacting with Flex. We used Flex because of its robust graphic features (important to this project) and because the initial developer (not me) already...
[ 0.4596257507801056, -0.19963295757770538, 0.19314227998256683, 0.3042216897010803, -0.2165210247039795, -0.02588389813899994, -0.14365094900131226, -0.05213044583797455, -0.19372493028640747, -0.9257984161376953, 0.21402685344219208, 0.4052463471889496, -0.21958911418914795, -0.23498980700...
want to consider? Thanks. - Dave Short answer, Yes. There are already many prime-time Apps using Flex as their UI development platform. If you go to the Adobe site they showcase quite a few. Speaking personally, I chose Flex for two reasons, first was that, although you probably can do much of what Flex does in HTML ...
[ 0.6930229067802429, 0.20177774131298065, 0.18273219466209412, 0.0005105176824145019, -0.30599045753479004, -0.0015820442931726575, 0.14421531558036804, 0.0673762708902359, -0.3037915527820587, -0.7821840047836304, 0.06610081344842911, 0.6659289002418518, -0.006002453621476889, -0.264773100...
I'll leave that there - it works for me and my application and customers. Second, and more important, was that it balances the processing load more towards the client which means my server architecture can be optimised just for serving the content and persisting the data. Most of my business logic has migrated across ...
[ 0.282906174659729, 0.05536159873008728, 0.3071013391017914, 0.018198786303400993, -0.06145095080137253, 0.1702955663204193, -0.03143677860498428, 0.12252937257289886, -0.3292708992958069, -0.9542310833930969, 0.37730616331100464, 0.6806082129478455, 0.23404379189014435, 0.1799616664648056,...
It is pretty easy to create a huge and badly performing app with Flex if you get that wrong. Make everything event driven and apparently asynchronous and you should be OK ('apparently' because the Flash player is single threaded). And that is downside 1, the single threaded Flash player sometimes causes issues. Downsi...
[ 0.1807331144809723, 0.06272256374359131, 0.1926487237215042, 0.24090847373008728, 0.11761297285556793, -0.3953408896923065, 0.16073204576969147, 0.11843875050544739, -0.4111928939819336, -0.4051017463207245, -0.27884402871131897, 0.705772340297699, -0.2650791108608246, -0.08992793411016464...
military, so if you are heading there I would test carefully the presence of Flash amongst your users. Other than that I heartily recommend Flex. It's also a great thing to have on your CV! HTH
[ 0.9054783582687378, 0.28844958543777466, -0.04931389167904854, 0.2791186273097992, -0.0667213425040245, -0.4479719400405884, 0.05823146179318428, 0.48996442556381226, -0.41588717699050903, -0.43789535760879517, -0.3014105260372162, 0.41143548488616943, 0.25852513313293457, -0.1752710789442...
My current problem is that I have a JFrame with a 2x2 GridLayout. And inside one of the squares, I have a JPanel that is to display a grid. I am having a field day with the java swing library... take a look [Image](http://img114.imageshack.us/img114/9683/frameow2.jpg) Java is automatically expanding each JLabel to fi...
[ 0.2644437253475189, 0.09363409131765366, 0.11860261857509613, -0.10801076143980026, -0.07525768876075745, 0.00519237294793129, 0.18878984451293945, -0.08438067138195038, -0.41630178689956665, -0.9832113981246948, 0.3099311292171478, 0.24689537286758423, -0.28696346282958984, 0.319871336221...
million times before I get the exact dimension so that the gray space disappears? I also would like to set the size of those buttons so they are not so huge (`BorderLayout` is being used for the buttons and TextField) If you want the two checkerboards to stay the same size, then you'll need to have them each contained...
[ 0.39466097950935364, -0.48864734172821045, 0.5850948095321655, 0.15834222733974457, 0.17470331490039825, 0.19554024934768677, -0.3390950858592987, 0.02426932565867901, -0.3937256634235382, -0.7992491722106934, 0.5303998589515686, 0.08857826888561249, -0.1914234459400177, 0.144499272108078,...
of the parent JPanel. So as the window is resized, the JPanel parent area will get larger or smaller, but the checkerboard components inside will remain the same size. Alternatively, you could have your blue squares scale to the right size as the window is resized by having each checkboard square be a `JPanel` with a ...
[ 0.02264261245727539, -0.5828344225883484, 0.6179504990577698, -0.0993744358420372, -0.1448858678340912, 0.3583834171295166, 0.1620170921087265, -0.5908704400062561, -0.26175791025161743, -0.8021644949913025, -0.26191839575767517, 0.23210228979587555, -0.3911544382572174, -0.154758527874946...
3, 8, 8)); innerButtonContainer.add(button1); innerButtonContainer.add(button2); innerButtonContainer.add(button3); theButtonPanel.add(innterButtonContainer); ``` Lastly, consider using a design tool for your Swing user interface. Netbeans has an **excellent UI** designer built into it. Download Netbeans [here](http...
[ 0.23270198702812195, -0.3340388238430023, 0.5824894309043884, -0.23108266294002533, -0.3296726644039154, 0.3607323169708252, 0.10596220195293427, -0.4559708833694458, -0.4902741312980652, -0.5795221924781799, -0.24620899558067322, 0.38446712493896484, -0.4926872253417969, -0.21869109570980...
I have been looking at using TDD and implementing proper testing (only just started to learn how much better it makes your life) in any of my projects that I create in the future. So for the last couple of days I have been floating around on SO trying to learn about how to design your application for testability, but I...
[ 0.7830889225006104, 0.21133935451507568, -0.11618876457214355, 0.22218970954418182, -0.18763373792171478, -0.0997113361954689, 0.20155653357505798, 0.18783161044120789, -0.25468313694000244, -0.8576213121414185, 0.6523397564888, 0.5573257803916931, -0.12292071431875229, 0.2606269121170044,...
one for everything you want to test? or am I reading this wrong? Another thing is use lots of dependency injection, so you can mock the parts that you are injecting rather than use the real things. Is this correct? or am I way off here too? I think you have the right idea, but I think you are making this into a bigger...
[ 0.5626201629638672, -0.09255647659301758, -0.1580037772655487, 0.24630239605903625, -0.23834571242332458, -0.22962336242198944, 0.09389099478721619, 0.034739937633275986, 0.015576459467411041, -0.05747527629137039, 0.34703707695007324, 0.7553640007972717, -0.16299378871917725, -0.087633132...
make sure you write a test for everything you do before you write the implementation. You might skip over writing tests for property accessors, but anything that requires any calculations, you should write a test first. So, pretend you're testing a calculator's Add(int 1, int 2), the first thing you think is, 'how can...
[ 0.5443395972251892, 0.30805087089538574, -0.21780657768249512, -0.02443581260740757, 0.2423313558101654, 0.01539041567593813, 0.40682077407836914, -0.2981473505496979, -0.14900755882263184, -0.5263074636459351, 0.19355203211307526, 0.8202195763587952, -0.20408202707767487, -0.2103433310985...
3), "Adding positives not as expected"); Assert.AreEqual(-5, calc.Add(-2, -3), "Adding negatives not as expected"); Assert.AreEqual(-2, calc.Add(-3, 2), "Adding one positive and one negative not as expected"); // your framework might provide a cleaner way of doing this: try { int result = calc.Add(Int32.Max, 5); A...
[ 0.24869614839553833, -0.18611480295658112, 0.18643948435783386, -0.20171907544136047, -0.050266899168491364, 0.06949455291032791, 0.4996534585952759, -0.6329290866851807, -0.04015598073601723, -0.39112356305122375, 0.002135023009032011, 0.750176727771759, -0.4152836501598358, -0.2660446166...
the behaviour that I'm expecting. And then now I'm free to go off and code the Add() method. Now, while that's not all that great, you know that your Add() method will be rock-solid for when you start creating complex math functions that combine your Sin() method with your Sqrt() method along with your Add() method. ...
[ 0.259456068277359, 0.09923501312732697, -0.034892406314611435, 0.04622087627649307, -0.27951639890670776, 0.06979630142450333, 0.44356322288513184, 0.2617167532444, -0.28516510128974915, -0.40383872389793396, 0.1689409464597702, 0.9503993391990662, -0.2635307312011719, 0.12778954207897186,...
I wish to find all rows in a table where one column is a substring of another column. In other words, suppose I have a table (called people) with two columns: firstname and lastname, and I want to find all people like "rob robinowitz" and "jill bajillion". Is there a way to do something like "select \* from people wh...
[ -0.1845984011888504, 0.1089537963271141, 0.0807005912065506, -0.035055674612522125, 0.2754795551300049, 0.4782123863697052, -0.10272777080535889, -0.03275324031710625, -0.36115720868110657, -0.7915962934494019, -0.1711169183254242, 0.2596640884876251, -0.11341894418001175, 0.01318207383155...
I am writing an application where all the request to the internet should go from it like in firewall. so that i can block the request for a particular website. In my case the program will be running on the same machine. I have tried the promiscous method but using that we can only capture all the packets comming and go...
[ 0.3423698842525482, 0.189559668302536, 0.2658858895301819, 0.15983310341835022, -0.07413902133703232, -0.2633017897605896, 0.06686954945325851, -0.016021007671952248, -0.008707701228559017, -0.7233002185821533, 0.07129338383674622, 0.4991346299648285, -0.4281035363674164, 0.248963505029678...
part of your functionality. Look for solutions using C++. -Adam
[ 0.3500005006790161, 0.1625637412071228, -0.2728002369403839, 0.09308554977178574, 0.3543938100337982, -0.06485343724489212, 0.5725569725036621, 0.22519485652446747, -0.1966179609298706, -0.49029192328453064, -0.6525139212608337, 0.10911918431520462, -0.08450613915920258, -0.084753133356571...
Are there any command line interfaces to the DHCP settings in Mac OS X? I have found that inside System Profiler, the Network tab provides a lot of useful information, but I have not found any documentation about any command line equivalents. You may use ``` networksetup -listallnetworkservices networksetup -getinfo <...
[ 0.292291522026062, -0.13603928685188293, 0.6497864723205566, 0.11533647030591965, -0.08994129300117493, -0.668954074382782, 0.06833955645561218, -0.0007198830717243254, -0.3419066369533539, -0.868910551071167, -0.2150283008813858, 0.688493549823761, -0.3164979815483093, -0.1254963427782058...
I want to pose a question such as: > What is your name? Joe How would I accomplish this using `Console.WriteLine` to also wait for the response on that same line instead of it being broken into: > What is your name? > > > Joe Use [`Console.Write`](https://learn.microsoft.com/en-us/dotnet/api/system.console.write?v...
[ 0.23839406669139862, 0.12472333014011383, 0.4064866006374359, -0.15410196781158447, 0.08307841420173645, -0.08619894832372665, 0.2665322721004486, -0.19299760460853577, -0.04103098064661026, -0.7739195823669434, -0.1480119675397873, 0.4034699499607086, -0.16660062968730927, 0.1039340123534...
I am reading through the Public Review Draft of the [Web Beans specification](http://docs.jboss.org/webbeans/spec/PDR/html/) (JSR-299) and I am wondering why it is so 'tightly coupled' to JSF? Especially the Conversation Context seems only be specified for JSF. I understand, that it is a goal of WebBeans to integrate...
[ 0.25970202684402466, -0.05906228348612785, 0.3493460714817047, 0.08634260296821594, -0.3138616383075714, -0.32682788372039795, 0.06452547758817673, 0.24604542553424835, -0.1916293352842331, -0.42002347111701965, -0.06314194202423096, 0.5721769332885742, -0.11369012296199799, -0.08064765483...
Wicket and provides the concept of conversations. I think it would be helpful to have a Conversation Scope on Servlet level (injecting of conversation-scoped beans into servlets). In my understanding, this is not the case with the ciurrent specification (see chapter 8.5.4). Or am I misinterpreting something here ... Y...
[ 0.10629510134458542, -0.27329006791114807, -0.1315923035144806, 0.3500295877456665, -0.29639947414398193, -0.2629067003726959, -0.1546410173177719, 0.09699844568967819, -0.45919984579086304, -0.4083155691623688, -0.22427603602409363, 0.11146701872348785, -0.0834195539355278, -0.17032225430...
I have a version resource in my resources in a C++ project which contains version number, copyright and build details. Is there an easy way to access this at run-time to populate my *help/about* dialog as I am currently maintaining seperate const values of this information. Ideally, the solution should work for Windows...
[ 0.28638172149658203, 0.20032675564289093, 0.45494115352630615, -0.08304516971111298, 0.05720679461956024, -0.06986277550458908, 0.3003862798213959, 0.08193165063858032, -0.18000231683254242, -0.60975581407547, -0.30493679642677307, 0.41288697719573975, -0.44485408067703247, 0.2107837200164...
if (GetModuleFileName(NULL, szFilename, MAX_PATH) == 0) { TRACE("GetModuleFileName failed with error %d\n", GetLastError()); return false; } // allocate a block of memory for the version info DWORD dummy; DWORD dwSize = GetFileVersionInfoSize(szFilename, &dummy); if (dwSize == 0...
[ 0.10061673820018768, -0.2756541669368744, 0.30200061202049255, -0.38622453808784485, 0.6870793104171753, 0.024594217538833618, 0.5658690333366394, -0.3962922692298889, -0.1653338223695755, -0.30196380615234375, -0.3953000009059906, 0.6811363101005554, -0.32791221141815186, -0.0020083345007...
} std::vector<BYTE> data(dwSize); // load the version info if (!GetFileVersionInfo(szFilename, NULL, dwSize, &data[0])) { TRACE("GetFileVersionInfo failed with error %d\n", GetLastError()); return false; } // get the name and version strings LPVOID pvProductName = NULL; ...
[ 0.10258478671312332, -0.2431326061487198, 0.690356969833374, -0.12430354207754135, 0.4760759472846985, 0.13688769936561584, 0.23260486125946045, -0.32759642601013184, -0.5246633887290955, -0.33961328864097595, -0.22466439008712769, 0.8896511793136597, -0.40800684690475464, 0.05102382227778...
language ID of your resources if (!VerQueryValue(&data[0], _T("\\StringFileInfo\\040904e4\\ProductName"), &pvProductName, &iProductNameLen) || !VerQueryValue(&data[0], _T("\\StringFileInfo\\040904e4\\ProductVersion"), &pvProductVersion, &iProductVersionLen)) { TRACE("Can't obtain ProductName and...
[ -0.06346926093101501, 0.16369681060314178, 0.10780388116836548, -0.08640915900468826, 0.6407583355903625, 0.26635223627090454, 0.40336012840270996, -0.22887468338012695, 0.04507462680339813, -0.6674582958221436, -0.17463277280330658, 0.8121325373649597, -0.10252262651920319, -0.07091693580...
How would I accomplish displaying a line as the one below in a console window by writing it into a variable during design time then just calling Console.WriteLine(sDescription) to display it? ``` Options: -t Description of -t argument. -b Description of -b argument. `...
[ 0.17158788442611694, 0.07537233084440231, 0.3596622049808502, -0.03829985857009888, -0.05152338743209839, 0.3275657594203949, 0.14007505774497986, -0.047392189502716064, 0.24603594839572906, -0.6416850686073303, 0.04031214490532875, 0.6353068947792053, -0.08628201484680176, -0.072288647294...
sign in front of your string. This will make the compiler take in your string literally (including newlines etc) In your case I would write the following: ``` String sDescription = @"Options: -t Description of -t argument."; ``` So far for your question (I hope), but I would suggest to just use several...
[ 0.07155036926269531, -0.023086557164788246, 0.5939171314239502, -0.16851571202278137, -0.1019476056098938, 0.013436874374747276, 0.06704487651586533, -0.28645482659339905, 0.06194588541984558, -0.7022768259048462, -0.16863040626049042, 0.5720344185829163, -0.18799801170825958, -0.193473398...
sure your lines are formatted nicely without putting spaces manually and makes sure that if you ever want to make the format different you just need to do it in one place.
[ 0.3822738230228424, -0.07575487345457077, -0.1471494734287262, 0.2845913767814636, 0.061100032180547714, 0.14073123037815094, 0.19959868490695953, 0.320676326751709, -0.32311612367630005, -0.7330282330513, 0.0658140555024147, 0.23721976578235626, 0.0781334787607193, -0.33151236176490784, ...
The UK VAT system is changing from 17.5% to 15%. What strategies have you used in your code to store the VAT, and how will the change affect your applications. Do you store a history of vats so you can calculate old prices, or are old invoices stored in a separate table? Is it a simple config setting, or did you bodge ...
[ 0.4612831473350525, 0.11743506789207458, 1.0939661264419556, -0.3256533145904541, 0.15588749945163727, 0.13602261245250702, 0.20467060804367065, -0.06727656722068787, -0.46481695771217346, -0.3210734724998474, -0.058260660618543625, 0.25546586513519287, -0.24272647500038147, 0.203709885478...
it up to future implementers to get it right is possibly asking for trouble. By storing the amount when the invoice/line-item is entered, this problem is avoided. This seems like a waste of storage and a violation of redundancy principles, but the amount of storage involved is tiny and it could save a lot of trouble i...
[ 0.17154474556446075, -0.05635423958301544, 0.3574261963367462, 0.45501232147216797, -0.04825025796890259, 0.09407530725002289, -0.25125426054000854, -0.0638027936220169, -0.3563874661922455, -0.416530042886734, 0.08564640581607819, 0.52536541223526, 0.08383478224277496, 0.22695758938789368...
rate storage. However, I would recommend that this only provides the current default rates used when entering new invoices. These can be stored with start and end dates to give automatic changeover if necessary. These rates can be stored for each invoice (or invoice line) along with the calculated VAT amounts at the ti...
[ 0.47678476572036743, -0.10566256195306778, 0.6928609609603882, 0.2861034572124481, 0.2579911947250366, 0.06879735738039017, -0.15785609185695648, -0.24685420095920563, -0.12545566260814667, -0.6243974566459656, -0.09042084217071533, 0.39491674304008484, 0.07917666435241699, -0.009438374079...
no-VAT an invoice that would normally be subject to VAT. You could end up with a table like this (example): ``` id | Rate name | VAT rate | Start date | End date --------------------------------------------------- 1 | Standard | 1750 | 01/01/1991 | 30/11/2008 2 | Standard | 1500 | 01/12/2008 | 31/12/20...
[ 0.055634401738643646, 0.06884415447711945, 0.7867098450660706, -0.25421297550201416, -0.08095815777778625, 0.08416187763214111, 0.19046643376350403, -0.08668696880340576, -0.13516509532928467, -0.2097422033548355, -0.11082317680120468, 0.27768009901046753, -0.2195485532283783, 0.4636666178...
You could obviously extend this with an extra column to relieve this problem, but it would seem possibly a step too far!
[ 0.11703579872846603, 0.0406009741127491, 0.21102912724018097, 0.10561210662126541, 0.05790688097476959, -0.026126256212592125, 0.05542478337883949, 0.11387818306684494, -0.11208196729421616, -0.24245202541351318, 0.24626058340072632, 0.2768738567829132, 0.10699285566806793, -0.014550010673...
I'm developing a multilanguage software. As far as the application code goes, localizability is not an issue. We can use language specific resources and have all kinds of tools that work well with them. But what is the best approach in defining a multilanguage database schema? Let's say we have a lot of tables (100 or...
[ 0.027361257001757622, 0.09535291790962219, 0.5218732357025146, -0.0014339248882606626, 0.0408342070877552, 0.07280521839857101, -0.19222645461559296, -0.04318496212363243, -0.39637133479118347, -0.7397717237472534, 0.012979663908481598, 0.18849261105060577, -0.34669196605682373, 0.24289694...
PRICE NUMBER(18, 2) ) ``` I can think of three approaches to support multilingual text in NAME and DESCRIPTION columns: 1. Separate column for each language When we add a new language to the system, we must create additional columns to store the translated text, like this: ```sql CREATE TABLE T_PRODUCT ( N...
[ 0.21350440382957458, 0.07973659038543701, 0.7505516409873962, -0.058275699615478516, -0.10095933079719543, 0.39912328124046326, -0.33496978878974915, -0.5409029126167297, -0.16282035410404205, -0.5393694639205933, -0.16812647879123688, 0.8310651779174805, -0.0994458720088005, 0.18681956827...
NUMBER(18,2) ) ``` 2. Translation table with columns for each language Instead of storing translated text, only a foreign key to the translations table is stored. The translations table contains a column for each language. ```sql CREATE TABLE T_PRODUCT ( NAME_FK int, DESCRIPTION_FK int, PRICE N...
[ 0.10823293775320053, 0.2852425277233124, 0.6651815176010132, -0.20869046449661255, -0.23599062860012054, 0.5144118070602417, 0.0701281726360321, -0.4713357985019684, 0.06738962233066559, -0.4655165374279022, -0.5472546219825745, 0.606325089931488, -0.4076039791107178, 0.21749620139598846, ...
contains only a key, and a separate table contains a row for each translation to a language. ```sql CREATE TABLE T_PRODUCT ( NAME_FK int, DESCRIPTION_FK int, PRICE NUMBER(18, 2) ) CREATE TABLE T_TRANSLATION ( TRANSLATION_ID ) CREATE TABLE T_TRANSLATION_ENTRY ( TRANSLATION_FK, LANGUAGE_FK,...
[ 0.043429192155599594, 0.3536092936992645, 0.4428096413612366, -0.04637351632118225, 0.10224459320306778, 0.43309855461120605, 0.17854291200637817, -0.376208633184433, 0.15267932415008545, -0.5389717817306519, -0.45704707503318787, 0.4860162138938904, -0.37431633472442627, 0.196814894676208...
a multilanguage database schema. What do you think about having a related translation table for each translatable table? > CREATE TABLE T\_PRODUCT (pr\_id int, PRICE NUMBER(18, 2)) > > > CREATE TABLE T\_PRODUCT\_tr (pr\_id INT FK, languagecode varchar, pr\_name text, pr\_descr text) This way if you have multiple tr...
[ -0.11460113525390625, -0.10041560232639313, 0.6335341334342957, 0.24910694360733032, -0.17897069454193115, 0.07436012476682663, 0.0803075060248375, -0.291359543800354, -0.2518196403980255, -0.6345509886741638, -0.05030779913067818, 0.3176810145378113, -0.6725116968154907, 0.199159711599349...
- if you are relying on some stored procedure to do that. If you do that from the app this will probably not be a problem. Let me know what you think - I am also about to make a decision on this for our next application. So far we have used your 3rd type.
[ 0.4125160872936249, -0.003901779418811202, 0.18611305952072144, 0.09869509935379028, -0.220758318901062, -0.05957154184579849, 0.33756223320961, 0.03412574157118797, -0.2729550302028656, -0.6031856536865234, 0.1978437304496765, 0.5829821825027466, -0.14620479941368103, -0.23221270740032196...
I have to choose a platform for our product. I have to decide between The Qt Framework and Adobe's AIR. I am well versed with Qt as I have worked for the last two years. I looked up at the Adobe's site but all the info about flex, flash, ability to coding in HTML/ActionScript is overwhelming and confusing. I cannot und...
[ 0.7465917468070984, 0.1574336141347885, 0.25358739495277405, -0.04965503513813019, -0.3330853283405304, 0.06200530380010605, 0.09830603003501892, -0.3394216299057007, 0.3258068561553955, -0.8735423684120178, -0.08735469728708267, 0.6029070615768433, -0.16019617021083832, -0.094472743570804...
Can we say AIR is only for making UI's for apps. 3. Where is the doc for the utility classes along with AIR? e.g. <http://qt-project.org/doc/> for Qt 4. Qt ships with a huge set of premade widgets that one can use. Does Adobe ship with any such widget set and if so where can i see it as in url? 5. I understand flex ...
[ 0.6764305830001831, 0.10193250328302383, 0.33960357308387756, 0.29344442486763, -0.3044680953025818, -0.18373404443264008, -0.017706314101815224, -0.41157659888267517, 0.22673480212688446, -0.7119534611701965, -0.24267244338989258, 0.6736345291137695, -0.2752048969268799, -0.16728772222995...
to QGraphicsView of QT? If you needs to access a lot of native libraries, you'll need to stay within your QT environment. Keep in mind that AIR is single-threaded and is run on the Flash Player (something that was originally designed for frame-based animations.) However, depending on the style of application you're bui...
[ 0.4731764793395996, -0.03773936256766319, 0.3074685335159302, 0.14508678019046783, -0.2076006978750229, -0.1621195375919342, 0.19569016993045807, -0.307979017496109, 0.296225368976593, -0.8574175238609314, 0.074252188205719, 0.733155369758606, -0.4443555176258087, -0.28287994861602783, 0...
as coming from traditional desktop development background. Small apps that are Web 2.0 for hooking into web services are good candidates for AIR applications. Things like the IM client Digsby would be great. My favorite AIR app that I've seen thus far is Basamiq Mockups. Other useful apps are TweetDeck. These are good...
[ 0.6002170443534851, 0.35686933994293213, -0.1415281593799591, 0.22780922055244446, -0.25220048427581787, -0.1827009618282318, -0.0432683490216732, -0.03140006214380264, 0.11550455540418625, -0.799576461315155, -0.03803935647010803, 0.537280797958374, -0.2003265768289566, -0.112015314400196...
but never look at those myself. As far as QGraphicsView, people have done similar things in Flex. I tried Googling right now but couldn't find them initially, but people have taken things like A large image, and then only displayed a current region in the window. Also, in the next version of Flex, they're acutaly bui...
[ 0.38767921924591064, -0.17415407299995422, 0.3606607913970947, -0.06575500220060349, -0.04235733672976494, -0.046273358166217804, -0.10788019001483917, -0.10839715600013733, -0.6731669902801514, -0.8096571564674377, 0.25613006949424744, 0.8182861804962158, -0.1354007124900818, -0.281261205...
I have the following string: ``` <SEM>electric</SEM> cu <SEM>hello</SEM> rent <SEM>is<I>love</I>, <PARTITION />mind ``` I want to find the last "SEM" start tag before the "PARTITION" tag. not the SEM end tag but the start tag. The result should be: ``` <SEM>is <Im>love</Im>, <PARTITION /> ``` I have tried this re...
[ 0.4122146964073181, 0.37984952330589294, 0.8482255339622498, 0.0398840606212616, 0.22523540258407593, -0.22250545024871826, -0.24443919956684113, -0.22451646625995636, -0.08560315519571304, -0.44063296914100647, -0.032270658761262894, 0.41508492827415466, 0.1520908623933792, 0.074496790766...
a PARTITION tag" (?![\s\S]+?\<SEM\>) means "While ahead somewhere is not a SEM tag" \<SEM\> means "Match a SEM tag" ```
[ -0.12666334211826324, -0.058067016303539276, 0.17806890606880188, 0.036754678934812546, 0.5158362984657288, -0.20500995218753815, -0.12793494760990143, -0.1796516478061676, 0.1526951789855957, -0.7726975679397583, -0.47796186804771423, 0.04634922742843628, -0.09477794915437698, 0.173635587...
I can't seem to retrieve an ID I'm sending in a html.ActionLink in my controller, here is what I'm trying to do ``` <li> <%= Html.ActionLink("Modify Villa", "Modify", "Villa", new { @id = "1" })%></li> public ActionResult Modify(string ID) { ViewData["Title"] =ID; return View(); } ``...
[ -0.1318155825138092, -0.40586546063423157, 0.7450931072235107, -0.1847763955593109, 0.16023895144462585, 0.1016368716955185, 0.23436707258224487, -0.3766999840736389, -0.30907827615737915, -0.6660627722740173, -0.12575970590114594, 0.5186866521835327, -0.2765173614025116, 0.052620824426412...
routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}",
[ -0.22966615855693817, -0.3134633004665375, 0.6792788505554199, 0.1965516060590744, 0.1853903979063034, -0.040881335735321045, -0.17558880150318146, 0.05477839708328247, -0.18847544491291046, -1.1779582500457764, -0.2648221552371979, 0.14805831015110016, -0.46773141622543335, -0.07409550249...
// URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults ); ``` Doesn't look like you are using the correct overload of ActionLink. Try this:- ``` <%=Html.ActionLink("Modify Villa", "Modify", new {id = "1"})%> ``` This assumes your view is under the /V...
[ 0.24078510701656342, -0.48393648862838745, 0.8999646902084351, -0.06264395266771317, 0.015644073486328125, 0.042565736919641495, 0.28037217259407043, -0.10509411990642548, -0.3657737076282501, -0.7071953415870667, -0.10950116813182831, 0.633030116558075, -0.33257925510406494, 0.25585660338...
I've got a dump of a .Net process that has hung due to a deadlock (the gui thread is no longer responding, and my logs show that some threads have stopped responding). I have taken a snapshot and am now looking through it in windbg, and all threads bar one are waiting for the last one. Looking at that one thread's stac...
[ 0.24249614775180817, 0.039340708404779434, 0.6509569883346558, 0.14029957354068756, 0.04810013622045517, -0.1331850290298462, 0.3494150638580322, 0.14378643035888672, -0.5634515285491943, -0.6037909984588623, 0.13275253772735596, 0.22085915505886078, -0.04256280139088631, 0.299520790576934...
was a command !rwlocks in the .Net1.1 sos.dll to help with this, but it isn't there in the .Net2.0 version. The hunt continues So far the best approach is to look at the !dso for all thread stacks, and see which ones reference the lock. A quick check after that has alles us to track down which threads hold locks. Reall...
[ -0.00758131081238389, -0.17010153830051422, 0.5496417880058289, 0.07773879170417786, -0.02363155037164688, -0.11602988094091415, 0.047246143221855164, -0.023445438593626022, -0.6004348397254944, -0.4498513638973236, 0.06488215178251266, 0.3739958107471466, -0.16820915043354034, 0.331348210...
I'm working on a windows client written in WPF with C# on .Net 3.5 Sp1, where a requirement is that data from emails received by clients can be stored in the database. Right now the easiest way to handle this is to copy and paste the text, subject, contact information and time received manually using an arthritis-induc...
[ 0.3495752215385437, 0.30989983677864075, 0.46222826838493347, -0.12071319669485092, 0.14620186388492584, 0.003907202742993832, 0.012382065877318382, 0.1656627058982849, -0.2143699675798416, -0.7042014598846436, 0.2446710467338562, 0.6018478870391846, -0.08041013777256012, 0.095565803349018...
and send it to the backend system for storage. However, a few hours googling for information on this seem to indicate a shocking lack of information about this seemingly basic task. I would think that something like this would be useful in a lot of different settings, but all I've been able to find so far have been ha...
[ 0.7680217623710632, 0.2650849521160126, -0.08532941341400146, 0.26761677861213684, 0.04218973591923714, -0.07393769174814224, 0.542677640914917, 0.3503160774707794, -0.10334852337837219, -0.32950451970100403, 0.3229295611381531, 0.487148642539978, 0.04224690794944763, -0.12400691211223602,...
pop ups, but anything beats not being able to do it at all. Basically, if I could get a list of all the mail items that were selected, dragged and dropped from Outlook, I will be able to handle the rest myself! Thanks! Rune I found a great [article](http://www.codeproject.com/KB/office/outlook_drag_drop_in_cs.aspx) ...
[ -0.018663901835680008, 0.1684771031141281, 0.7715431451797485, -0.2201915979385376, -0.019063208252191544, 0.1895838975906372, 0.1173672080039978, -0.15550929307937622, -0.15601889789104462, -0.7622238397598267, -0.23152877390384674, 0.5245696902275085, -0.5662147998809814, -0.094015650451...
all DataFormats.GetFormat calls to DataFormats.GetDataFormat Change the SetData implementation from ``` public void SetData(string format, bool autoConvert, object data) { this.underlyingDataObject.SetData(format, autoConvert, data); } ``` TO ``` public void SetData(string format, object data, bool autoConvert...
[ 0.2641488015651703, -0.30872786045074463, 0.5968946218490601, -0.055377211421728134, -0.2062295377254486, -0.13677452504634857, 0.30973929166793823, -0.17604142427444458, -0.1638069450855255, -0.7935967445373535, -0.31532055139541626, 0.46877342462539673, -0.7061340808868408, 0.16995736956...
I need to know if I can create a file in a specific folder, but there are too many things to check such as permissions, duplicate files, etc. I'm looking for something like `File.CanCreate(@"C:\myfolder\myfile.aaa"`), but haven't found such a method. The only thing I thought is to try to create a dummy file and check ...
[ 0.89018714427948, 0.28363314270973206, -0.030858060345053673, 0.3108425438404083, 0.10827744752168655, -0.5744668841362, 0.3310427963733673, 0.13138781487941742, -0.1244112029671669, -0.6593695878982544, 0.04955333471298218, 0.5495918393135071, -0.17820344865322113, 0.285211443901062, -0...
might get a bit hairy... Guids are always handy for random names (to avoid conflicts) - something like: ``` string file = Path.Combine(dir, Guid.NewGuid().ToString() + ".tmp"); // perhaps check File.Exists(file), but it would be a long-shot... bool canCreate; try { using (File.Create(file)) { } File.Delete(fi...
[ 0.20693287253379822, -0.3312457203865051, 0.16277387738227844, 0.0837089791893959, 0.15862517058849335, -0.07713427394628525, 0.4077456295490265, -0.21324299275875092, -0.1737176924943924, -0.5404773354530334, -0.04571892321109772, 0.2628885507583618, -0.27948644757270813, -0.0744051337242...
* I autoformat a GridView in ASP.NET. * It looks nice but the headers all run together like this: **idfirstNamelastNameage** * I set CellPadding="5" but it does nothing. How can I set the cell padding of the headers and all cells? A D D E N D U M : Thanks Andrew, I fixed it with this. Works in Firefox and Explorer ...
[ 0.059103310108184814, -0.12684062123298645, 0.6355448961257935, 0.0014921990223228931, -0.18421699106693268, -0.017187276855111122, 0.3687339425086975, -0.176394522190094, -0.3637961745262146, -1.0623055696487427, 0.01838746853172779, 0.6280486583709717, -0.35695546865463257, -0.1623788625...
with css is cellspacing. ``` .myTableClass tr th { padding: 5px; } ```
[ -0.28509271144866943, 0.09861816465854645, 0.19849331676959991, -0.1141672432422638, -0.02364671230316162, -0.12671512365341187, 0.021630005910992622, 0.02817031368613243, -0.20087794959545135, -0.7400633096694946, -0.28902581334114075, 0.04248618334531784, -0.3488234877586365, -0.09752709...
I'm looking for a generic method to implement a wait screen during long operations. I have used threading a few times before, but I have the feeling that I implemented it either very poorly, or with way too much hassle (and copy/pasting - the horror!). I want to keep this as generic and simple as possible, so I won't ...
[ 0.7033957242965698, -0.025541553273797035, 0.16827638447284698, -0.09161194413900375, 0.12966030836105347, -0.1964518278837204, 0.14352333545684814, 0.05302068591117859, -0.20751824975013733, -0.555584728717804, 0.014810715802013874, 0.5262238383293152, -0.4614596366882324, 0.1035152524709...
Private Sub HandleBtnClick(sender as Object, e as EventArgs) Handles Button.Click LoadingScreen.Show() 'Do stuff here, this takes a while!' Dim Result as Object = DoSomethingTakingALongTime(SomeControl.SelectedObject) LoadingScreen.Hide() ProcessResults(Result) End Sub ``` The appli...
[ -0.010196257382631302, -0.2266276329755783, 0.7117992639541626, 0.05354747921228409, 0.07415225356817245, -0.2525201141834259, 0.506012499332428, -0.1849941462278366, -0.1362275630235672, -0.323208212852478, -0.09224936366081238, 0.6455206871032715, -0.17748714983463287, 0.4290681481361389...
stay responsive (it's animated/has a progressbar/etc.). Is this a doable/good approach or am I seeing this way too simplistic? What is the best practise concerning this matter? And most importantly: how could I implement such a system? As I already mentioned, I have very little experience with threading, so be gentle ...
[ 0.2661469578742981, -0.25076112151145935, 0.6076772212982178, 0.09054911881685257, -0.18572688102722168, -0.12715357542037964, 0.3527606725692749, 0.13183002173900604, -0.2770598232746124, -0.7795177102088928, 0.05475800111889839, 0.8595976829528809, -0.3289392292499542, 0.0565240159630775...
work_CrossThreadEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles work.CrossThreadEvent If Me.InvokeRequired Then Me.BeginInvoke(New EventHandler(AddressOf work_CrossThreadEvent), New Object() {sender, e}) Return End If Me.Text = "Cross Thread" End Sub ``` ...
[ 0.29138708114624023, -0.0646645799279213, 0.535427451133728, -0.24343831837177277, 0.1827724128961563, 0.013561730273067951, 0.3375207781791687, -0.26447734236717224, -0.16072377562522888, -0.806484043598175, -0.13625448942184448, 0.42315873503685, -0.47622475028038025, 0.4260067045688629,...
background worker to do the threading stuff a bit like this: ``` Public MustInherit Class Worker Protected WithEvents worker As BackgroundWorker Public Sub New() worker = New BackgroundWorker() worker.WorkerReportsProgress = True worker.WorkerSupportsCancellation = True End Sub ...
[ -0.05261169373989105, -0.18906259536743164, 0.2604837119579315, -0.12865206599235535, 0.2947525680065155, 0.18582645058631897, 0.22293874621391296, 0.10542380064725876, -0.6839714646339417, -0.42899712920188904, -0.25361672043800354, 0.30447015166282654, -0.5345986485481262, 0.318031936883...
End If End Sub Public Sub Cancel() If (worker.IsBusy AndAlso Not worker.CancellationPending) Then worker.CancelAsync() End If End Sub Protected MustOverride Sub Work() Private Sub OnDoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handl...
[ -0.2568668723106384, -0.2551015317440033, 0.3731170892715454, -0.19460545480251312, 0.054582394659519196, 0.055624645203351974, 0.40098538994789124, -0.5073035955429077, -0.253290593624115, -0.14650657773017883, -0.5013097524642944, 0.3418787121772766, -0.35784095525741577, 0.4458275437355...
Private Sub OnRunWorkerCompleted(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs) Handles worker.RunWorkerCompleted OnRunWorkerCompleted(e) End Sub Protected Overridable Sub OnRunWorkerCompleted(ByVal e As RunWorkerCompletedEventArgs) RaiseEvent WorkCompelted(Me, e) End Sub ...
[ -0.46498408913612366, -0.14044250547885895, 0.5384843349456787, 0.316890150308609, -0.011546723544597626, 0.5170876383781433, 0.47035837173461914, -0.35549765825271606, -0.3075883686542511, -0.28463369607925415, -0.5792233347892761, 0.501979410648346, -0.22668170928955078, 0.65038287639617...
RaiseEvent ProgressChanged(Me, e) End Sub End Class Public Class ActualWork Inherits Worker Public Event CrossThreadEvent As EventHandler Protected Overrides Sub Work() 'do work here' WorkABit() worker.ReportProgress(25) WorkABit() worker.ReportProgress(50) ...
[ -0.021262696012854576, 0.10047385096549988, 0.3131437599658966, 0.022113751620054245, 0.031892962753772736, 0.3108079433441162, 0.4395091235637665, -0.5851274728775024, -0.37185534834861755, -0.3444969356060028, -0.22523894906044006, 0.24470138549804688, -0.009893106296658516, 0.4189276397...
WorkABit() worker.ReportProgress(100) End Sub Private Sub WorkABit() If worker.CancellationPending Then Return Thread.Sleep(1000) RaiseEvent CrossThreadEvent(Me, EventArgs.Empty) End Sub End Class ``` *disclaimer.. bit rusty with vb but you should get the idea.*
[ 0.4706851840019226, -0.040738530457019806, 0.31434985995292664, -0.24393880367279053, 0.1095522940158844, 0.13514769077301025, 0.4145333766937256, -0.3453480899333954, -0.054029639810323715, -0.5912051200866699, -0.02435680851340294, 0.5779648423194885, -0.1642150729894638, 0.4159667193889...
I can only think of Peek() and ReadNoAdvance() atm, but I wonder if there are better or standard options. Thanks. peek is the standard name, present in various languages.
[ 0.31184980273246765, -0.09226978570222855, 0.047125108540058136, 0.0547998771071434, -0.022576192393898964, 0.23734654486179352, 0.3210434913635254, 0.7636486291885376, -0.32750871777534485, -0.48981359601020813, -0.0733010396361351, 0.475267231464386, -0.15883907675743103, -0.125351592898...
I have a bunch of rows in Excel that I want to paste into a new table in MS SQL. Is there a simple way ? I have used this technique successfully in the past: **[Using Excel to generate Inserts for SQL Server](http://tgrignon.wordpress.com/2007/03/07/using-excel-to-generate-inserts-for-sql-server/)** > (...) Skip a co...
[ -0.0299528818577528, 0.10535837709903717, 0.3038165867328644, -0.14705747365951538, 0.023782454431056976, 0.15725292265415192, 0.023622488602995872, -0.1872190237045288, -0.3008626103401184, -0.6020045280456543, -0.03972234949469566, 0.41787272691726685, -0.3660166263580322, -0.15615388751...
So far i have got the code below which works lovely when trying an update, delete or select statement. However I run into problems when I try to use an insert. If someone could point me in the correct direction i would be grateful. ``` private function escape($value) { if(get_magic_quotes_gpc()) $value = s...
[ -0.13381312787532806, 0.07328219711780548, 0.5684091448783875, -0.06776320189237595, 0.27843692898750305, 0.11774231493473053, 0.6259341835975647, -0.4625093638896942, -0.09625392407178879, -0.6315159797668457, -0.18269139528274536, 0.8067872524261475, -0.502791702747345, 0.238879710435867...
$dbHost, $dbUser, $dbPass ) or die(mysql_error()); mysql_select_db($dbName, $this->dbConn) or die(mysql_error()); } /** * Loads a raw SQL string into the object $dbSql variable */ public function prep($sql) { $this->dbSql = $sql; } /** * Load bound hooks and values into object variable ...
[ -0.007852411828935146, -0.028812585398554802, 0.1496308147907257, -0.3949855864048004, -0.16260598599910736, 0.2768118381500244, 0.4097405672073364, -0.7465278506278992, 0.15243375301361084, -0.46513262391090393, -0.35634398460388184, 0.6279762983322144, -0.6179066300392151, 0.187408134341...
$hook => $value) $sql = str_replace($hook, "'" . $value . "'", $sql); $this->dbQuery = mysql_query($sql) or die(mysql_error()); $this->dbBind = array(); return $this->numRows(); } // Load SQL statment into object $MyDB->prep("INSERT INTO `demo` (`id`, `name`, `score`, `dept`, `date`) VALU...
[ 0.34875205159187317, 0.11340413242578506, 0.25781679153442383, -0.05718524008989334, 0.37961259484291077, 0.19881290197372437, -0.14208000898361206, -0.647539496421814, -0.05363241955637932, -0.3188788890838623, -0.3160228729248047, 0.6935242414474487, -0.2256210446357727, 0.09302283078432...
c ) ``` Not ``` VALUES a, b , c ``` Additionally, why the dickens are you combining a perpared insert with string substituion? you mean $q->prep("blah blah blah VALUES ( :date , etc etc ) " ); $q->bind(":date", $date ); or something along those lines. using both techniques is just nonsensical.
[ 0.23202212154865265, -0.07085558027029037, 0.10660097002983093, -0.06988836824893951, -0.16037428379058838, 0.04165063053369522, 0.18930283188819885, -0.10546700656414032, -0.1642586886882782, -0.28166916966438293, -0.028247209265828133, 0.2522680163383484, -0.42613038420677185, 0.30146393...
Contributing to open source can have many forms: working with issue trackers, patches, further development, documenting, funding, etc. Assuming your company uses open source projects, what is the single most important reason why you're not contributing back to the community? We do, we're founded on Open Source - but I ...
[ 0.9726473689079285, 0.42945387959480286, -0.3437463343143463, 0.39779239892959595, -0.472333163022995, -0.16844989359378815, 0.07976119965314865, 0.4497290253639221, -0.30002278089523315, -0.22446109354496002, 0.08915085345506668, 0.46586987376213074, 0.08091552555561066, 0.111249193549156...
donating. Jeff Atwood (one of the founders of SO) did this a couple of months ago to a wiki system system I know. When I worked for my previous startup we gave [WatiN](http://watin.sourceforge.net/) $300. This is a contribution, and probably a both a better (and at least cheaper) contribution then having one of our co...
[ 0.7522098422050476, -0.05929972231388092, -0.302306592464447, 0.2911055386066437, -0.37841635942459106, -0.02534695714712143, 0.22577360272407532, 0.03081340342760086, -0.1722216159105301, -0.2710720896720886, 0.27063775062561035, 0.15442630648612976, 0.08795956522226334, 0.146400675177574...