text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Is there a way to deploy a Java program in a format that is not reverse-engineerable? I know how to convert my application into an executable JAR file, but I want to make sure that the code cannot be reverse engineered, or at least, not easily. Obfuscation of the source code doesn't count... it makes it harder to u...
[ 0.3604143559932709, 0.40542086958885193, -0.08985351771116257, -0.10564154386520386, 0.12577007710933685, -0.26824671030044556, 0.425834983587265, -0.15497685968875885, -0.21485218405723572, -0.3724748492240906, -0.0712525025010109, 0.6125634908676147, -0.1624584197998047, 0.17989562451839...
If the application is distributed, I would not want any of the users to be able to decompile it. Obfuscation does not achieve this as the users would still be able to decompile it, and while they would have difficulty following the action flows, they would be able to see the code, and potentially take information out o...
[ 0.3412573039531708, 0.21752329170703888, 0.22052380442619324, 0.2426985204219818, 0.17367061972618103, -0.36322498321533203, 0.4319334924221039, 0.015358890406787395, -0.3682793080806732, -0.5926175117492676, -0.21505342423915863, 0.29953229427337646, -0.39812931418418884, 0.42552950978279...
host's address from the user, if that address is located inside the source code? You could obfuscate your JAR file with [YGuard](http://www.yworks.com/en/products_yguard_about.htm). **It doesn't obfuscate your source code**, but the compiled classes, so there is no problem about maintaining the code later. If you want...
[ 0.3145236670970917, 0.2304287701845169, 0.42818984389305115, -0.0734948217868805, -0.41576534509658813, -0.3080197870731354, 0.37589335441589355, 0.43144723773002625, -0.2491619884967804, -0.958878219127655, 0.024719219654798508, 0.4419655203819275, 0.05783836916089058, 0.6502467393875122,...
I am creating a "department picker" form that is going to serve as a modal popup form with many of my "primary" forms of a Winforms application. Ideally the user is going to click on an icon next to a text box that will pop up the form, they will select the department they need, and when they click OK, the dialog will ...
[ 0.13056232035160065, 0.13920637965202332, 0.7961809039115906, 0.027675380930304527, 0.010133683681488037, 0.001416058512404561, -0.07047124207019806, 0.17334477603435516, 0.05657443776726723, -0.507087230682373, -0.3998495638370514, 0.6601589322090149, 0.03812996670603752, 0.15197034180164...
event do the proper update, but this forces me to do a DirectCast to the form type and I can then only reuse the picker on the current form. I have been able to use a ByRef variable in the constructor and successfully update a value, but it works only in the constructor. If I attempt to assign the ByRef value to some ...
[ 0.1527576893568039, -0.24751931428909302, 0.3459745943546295, -0.24035067856311798, -0.100153848528862, -0.06442062556743622, 0.1410103440284729, -0.25047585368156433, -0.21309436857700348, -0.37690842151641846, -0.15011446177959442, 0.7411601543426514, -0.2705194354057312, 0.0820344462990...
String) InitializeComponent() ' This works just fine, my "parent" form has the reference value properly updated. TargetResult = "Booyah!" ' Once I leave the constructor, m_TargetResult is a simple string value that won't update the parent m_TargetResult = TargetResult End Sub Pr...
[ 0.1730942726135254, 0.041960444301366806, 0.8561599254608154, -0.3403395712375641, 0.22867268323898315, 0.06696832180023193, 0.5008202791213989, -0.08145329356193542, 0.11271850764751434, -0.0799587145447731, -0.49210667610168457, 0.41848090291023254, -0.40993452072143555, 0.23348857462406...
here. m_TargetResult is just a string and doesn't push the value back to the referenced variable I want. m_TargetResult = "That department I selected." Me.Close() End Sub Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click DialogResu...
[ 0.2620542347431183, 0.1166333481669426, 0.5379558801651001, -0.14793619513511658, 0.03799034655094147, -0.03794998675584793, 0.2423870712518692, 0.026771914213895798, -0.25535762310028076, -0.4448421895503998, -0.18590082228183746, 0.47136127948760986, -0.2857838571071625, 0.18911898136138...
such cases, I usually either * Write a ShowDialog function that does what I want (e.g. return the value) or * Just let the result be a property in the dialog. This is how the common file dialogs do it in the BCL. The caller must then read the property to get the result. That's fine in my opinion. You can also combine...
[ 0.631761908531189, 0.13287213444709778, 0.5646213889122009, -0.006327967159450054, -0.11349955946207047, -0.26409995555877686, -0.08942551165819168, -0.1214321106672287, 0.0061912680976092815, -0.5737752914428711, -0.028535030782222748, 0.7002423405647278, -0.059395961463451385, 0.12640072...
a usage instruction, for example (sorry, no VB over here, and you said C# is welcome): ``` using (var dlg = new DeptPicker()) { if (dlg.ShowDialog() == DialogResult.OK) { myTextBoxOrWhatEver.Text = dlg.TargetResult; } } ``` In the dialog itself, just do this: ``` void okButton_Click(object sender, E...
[ 0.051192279905080795, -0.10517533868551254, 0.6620022058486938, -0.22238965332508087, 0.1652822643518448, -0.0942249596118927, 0.2016628533601761, -0.11490391939878464, -0.09756623208522797, -0.801571249961853, -0.20731651782989502, 0.7387662529945374, -0.37416067719459534, -0.026776667684...
My clients application exports and imports quite a few variables of type real through a text file using writeln and readln. I've tried to increase the width of the fields written so the code looks like: ``` writeln(file, exportRealvalue:30); //using excess width of field .... readln(file, importRealvalue); ``` When...
[ 0.190431609749794, 0.20967607200145721, 0.6816944479942322, -0.2910022735595703, -0.13392047584056854, 0.29976457357406616, 0.37941792607307434, -0.04896336793899536, -0.20007012784481049, -0.6983488202095032, 0.2021859735250473, 1.0542728900909424, -0.23445899784564972, 0.0072099338285624...
Now I'm not sure it's only the write/read that does it but I thought I'd throw a quick question out there before I dive into the hey stack again. Do I need to go binary on this? This is not an app dealing with currency or something, I just write and read the values to/from file. I know floating points are a bit strang...
[ 0.2016967236995697, 0.28581252694129944, 0.18819037079811096, -0.04257577285170555, -0.3333966135978699, 0.17993885278701782, 0.26475799083709717, 0.038171447813510895, -0.3407781720161438, -0.2340698391199112, 0.18181370198726654, 0.9953338503837585, -0.014779009856283665, 0.2311769425868...
least 12 positions and a precision of 3.
[ -0.34871265292167664, 0.42049890756607056, 0.29084813594818115, 0.04944431781768799, -0.04395513981580734, -0.16675573587417603, 0.5200115442276001, -0.5152871012687683, 0.17227408289909363, -0.5327455997467041, -0.10575562715530396, 0.5275695323944092, 0.1544777899980545, -0.0717293620109...
On the .Net WebBrowser control the only way I can see to load a page to it is to set the URL property. But I would like to instead give it some HTML code that I already have in memory without writing it out to a file first. Is there any way to do this? Or are there any controls that will do this? You want the DocumentT...
[ 0.27617689967155457, -0.3135948181152344, 0.6966422200202942, 0.3030250072479248, -0.17173370718955994, -0.43354448676109314, 0.2507050037384033, -0.14042870700359344, -0.08263126015663147, -0.9366021156311035, -0.009032463654875755, 0.5442009568214417, -0.37574145197868347, 0.136268123984...
set it again anywhere in the application. Be sure to check that the Form Designer hasn't set it either. * You can only set DocumentText once per method call. This is odd and most likely a bug, but it's true. For example: setting DocumentText in a for-loop will only set properly on the first iteration of the loop. You c...
[ 0.39149773120880127, -0.19994492828845978, 0.5612301826477051, -0.05288666859269142, -0.08940410614013672, -0.4398198127746582, 0.4595831632614136, -0.09887605160474777, -0.28771069645881653, -0.9593473672866821, -0.1292978972196579, 0.6274917125701904, -0.30863553285598755, -0.24427457153...
I have tried this... ``` Dim myMatches As String() = System.Text.RegularExpressions.Regex.Split(postRow.Item("Post"), "\b\#\b") ``` But it is splitting all words, I want an array of words that start with# Thanks! This seems to work... c# ``` Regex MyRegex = new Regex("\\#\\w+"); MatchCollection ms = MyRegex.Matc...
[ 0.22699269652366638, -0.2973381280899048, 0.670534074306488, -0.0639607161283493, -0.23189589381217957, 0.03771832585334778, 0.28991228342056274, -0.34178775548934937, -0.3038824796676636, -0.4689665734767914, -0.0456390343606472, 0.5983609557151794, -0.44519951939582825, -0.20207500457763...
be free. It was very helpful in producing the c# which I am very poor at. (Ie it did the escaping for me.) (If anyone thinks I should remove this pseudo-advert then please comment, but I thought it might be helpful :) Good times )
[ 0.36484286189079285, 0.0013488506665453315, 0.4112807512283325, 0.27056142687797546, -0.05591694638133049, -0.24836359918117523, 0.35964998602867126, 0.4060683250427246, -0.15568013489246368, -0.21780362725257874, -0.34282124042510986, 0.4566989243030548, -0.13207782804965973, -0.160206601...
Does anyone know how to get the name of the TARGET (/t) called from the MSBuild command line? There are a few types of targets that can be called and I want to use that property in a notification to users. Example: ``` msbuild Project.proj /t:ApplicationDeployment /p:Environment=DEV ``` I want access to the target ...
[ 0.5411592721939087, 0.22474214434623718, 0.25882551074028015, -0.047850631177425385, 0.10632653534412384, -0.24594303965568542, 0.3290184736251831, 0.07858280837535858, -0.1476743221282959, -0.764991283416748, -0.11055637151002884, 0.6158595085144043, -0.23149840533733368, 0.11236987262964...
code, only for building. The build server itself has build notifications that can be opted into. I found the answer! ``` <Target Name="ApplicationDeployment" > <CreateProperty Value="$(MSBuildProjectName) - $(Environment) - Application Deployment Complete"> <Output TaskParameter="Value" PropertyName="Deploym...
[ 0.40545177459716797, 0.2705646753311157, 0.39649760723114014, -0.15101772546768188, 0.08233416080474854, -0.013278267346322536, 0.5681349635124207, 0.10277062654495239, -0.00031580141512677073, -0.5120814442634583, -0.2727431356906891, 0.7004279494285583, -0.10208991169929504, -0.025401789...
I have a collection of data stored in XDocuments and DataTables, and I'd like to address both as a single unified data space with XPath queries. So, for example, "/Root/Tables/Orders/FirstName" would fetch the value of the Firstname column in every row of the DataTable named "Orders". Is there a way to do this withou...
[ 0.4708188474178314, -0.06696608662605286, 0.3795417249202728, 0.10543186217546463, 0.05642259493470192, 0.028980517759919167, -0.22687262296676636, 0.08870957791805267, -0.1206965520977974, -0.661300539970398, 0.12118148803710938, 0.19932308793067932, -0.2514213025569916, 0.150185614824295...
a DataTable into an XML-space. ``` Dictionary<string,DataTable> Tables = new Dictionary<string,DataTable>(); // ... populate dictionary of tables ... XElement TableRoot = new XStreamingElement("Tables", from t in Tables select new XStreamingElement(t.Key, from DataRow r in t.Value.Rows ...
[ -0.14228537678718567, -0.2780175507068634, 0.9880090951919556, 0.11704706400632858, 0.22946910560131073, -0.06630011647939682, 0.056518182158470154, -0.15262985229492188, -0.11324369162321091, -0.561906635761261, -0.2992137372493744, 0.25081750750541687, -0.3831477165222168, -0.00905009079...
select new XElement(c.ColumnName, r[c]))))) ``` The result is an XElement (TableRoot) with a structure similar to the following, assuming the dictionary contains one table called "Orders" with two rows. ``` <Tables> <Orders> <row> <sku>12345</sku> <quantity>2</quantity> ...
[ -0.11614563316106796, 0.019198836758732796, 0.7593749761581421, 0.0817699134349823, 0.018897557631134987, 0.46517810225486755, -0.4202861487865448, -0.47290629148483276, -0.02900460734963417, -0.5024176239967346, -0.416108638048172, 0.3350183963775635, -0.3044714629650116, 0.25228714942932...
</row> <row> <sku>54321</sku> <quantity>3</quantity> <price>2.95</price> </row> </Orders> </Tables> ``` That can be merged with a larger XElement/XDocument based hierarchy and queried with XPath.
[ 0.42170339822769165, -0.06156713888049126, 0.3041257858276367, 0.2161412388086319, -0.2874896824359894, 0.2868387699127197, -0.447428435087204, -0.1960340291261673, 0.12413320690393448, -0.41521599888801575, -0.24583522975444794, 0.46875324845314026, -0.15225347876548767, 0.335302412509918...
I need to substitute the value of a string into my regular expression in Ruby. Is there an easy way to do this? For example: ``` foo = "0.0.0.0" goo = "here is some other stuff 0.0.0.0" if goo =~ /value of foo here dynamically/ puts "success!" end ``` Same as string insertion. ``` if goo =~ /#{Regexp.quote(foo)}/...
[ 0.35696616768836975, 0.21275471150875092, 0.24763783812522888, -0.22153788805007935, 0.09147348254919052, -0.022228004410862923, 0.42893871665000916, -0.043176937848329544, -0.12036191672086716, -0.41070595383644104, 0.02006498910486698, 0.6184996366500854, -0.3560313880443573, -0.12540571...
I'm way buried in many nested levels of css, and I can't tell which style layer/level is messing up my display. How can I find out everything that's being applied to a particular element? Click Inspect (upper left) to select the element you want to check then on the right panel select the tab labeled "Style". It will ...
[ 0.7688314318656921, 0.1738465577363968, 0.40755796432495117, 0.15821577608585358, 0.009759652428328991, -0.15776407718658447, 0.26385384798049927, 0.038676708936691284, -0.057627562433481216, -0.8069808483123779, 0.1732265204191208, 0.5013394951820374, 0.1869768500328064, 0.221475437283515...
Is there a free third-party or .NET class that will convert HTML to RTF (for use in a rich-text enabled Windows Forms control)? The "free" requirement comes from the fact that I'm only working on a prototype and can just load the BrowserControl and just render HTML if need be (even if it is slow) and that Developer Ex...
[ 0.4210909903049469, 0.1252446472644806, 0.41112232208251953, 0.23200085759162903, -0.11902662366628647, -0.5160444378852844, 0.1094742864370346, 0.01875157654285431, -0.061950378119945526, -0.6465533971786499, -0.02285926789045334, 0.46051284670829773, -0.24350973963737488, -0.065425537526...
is a simple and **free** solution: use your browser, ok this is the trick I used: ``` var webBrowser = new WebBrowser(); webBrowser.CreateControl(); // only if needed webBrowser.DocumentText = *yourhtmlstring*; while (_webBrowser.DocumentText != *yourhtmlstring*) Application.DoEvents(); webBrowser.Document.ExecCom...
[ 0.2862547039985657, -0.1744070202112198, 0.9362635016441345, 0.03428155556321144, 0.1678919941186905, -0.2144823968410492, 0.5475353598594666, -0.53448885679245, -0.014737721532583237, -0.7533516883850098, -0.037258803844451904, 0.7921740412712097, -0.3542713522911072, -0.00921647157520055...
I understand that these methods are for pickling/unpickling and have no relation to the reduce built-in function, but what's the difference between the 2 and why do we need both? [The docs](https://docs.python.org/3/library/pickle.html#object.__reduce__) say that > If provided, at pickling time > `__reduce__()` will b...
[ -0.16575120389461517, -0.15116482973098755, 0.11596617102622986, -0.2730295658111572, -0.3729007840156555, 0.2784208357334137, -0.28284287452697754, -0.24209296703338623, -0.10325664281845093, -0.4437682330608368, 0.08714865148067474, 0.2724793255329132, -0.27554070949554443, -0.0716695711...
compatibility). The `__reduce_ex__` > method will be called with a single > integer argument, the protocol > version. On the gripping hand, [Guido says](http://mail.python.org/pipermail/python-3000/2008-February/012094.html) that this is an area that could be cleaned up.
[ 0.12165205180644989, 0.0388476587831974, 0.5205067992210388, -0.23888909816741943, -0.06307388097047806, -0.2129446268081665, 0.38365787267684937, -0.5875853896141052, 0.001899986993521452, -0.36049503087997437, -0.1412099301815033, 0.6114238500595093, -0.5127438902854919, -0.0108277685940...
When I download the zip file from the website it contains files with the following extensions: .dbf .prj .sbn .sbx .shp .shp.xml .shx Is this is a common data file format that I download or purchase a converter? I think this is some kind of mapping data file but I all need are the addresses it contains to push into o...
[ 0.863700270652771, 0.1565244495868683, 0.5345699787139893, 0.10967127233743668, -0.22992727160453796, -0.19401422142982483, 0.11787044256925583, -0.034137461334466934, -0.26004642248153687, -0.8160657286643982, -0.03752048313617706, -0.018809882923960686, -0.26770275831222534, 0.2813107669...
have to make one small modification which I posted back on the project discussion board which was for an unknown column type of "F". But the command line program DBF2CSV worked beautifully to create a well formated csv from the dbf file. After a few minutes with Excel I had it ready to import to our MySQL database. **...
[ 0.45742088556289673, -0.03789751976728439, 0.20350918173789978, 0.07822314649820328, -0.20314490795135498, -0.25272083282470703, 0.15267468988895416, 0.1402755081653595, -0.25175216794013977, -0.7735916972160339, -0.04636941850185394, 0.3350272476673126, -0.24172744154930115, 0.01715531013...
Is there a way to determine how many cores a machine has from C/C++ in a platform-independent way? If no such thing exists, what about determining it per-platform (Windows/\*nix/Mac)? C++11 ===== ``` #include <thread> //may return 0 when not able to detect const auto processor_count = std::thread::hardware_concurrenc...
[ -0.08919549733400345, -0.034822262823581696, 0.39581599831581116, 0.12467273324728012, 0.2964506149291992, 0.18467018008232117, -0.12371353805065155, -0.04843994602560997, -0.5029134154319763, -0.5614261627197266, -0.2632598876953125, 0.18425823748111725, -0.1432819962501526, 0.33270508050...
/* set the mib for hw.ncpu */ mib[0] = CTL_HW; mib[1] = HW_AVAILCPU; // alternatively, try HW_NCPU; /* get the number of CPUs from the system */ sysctl(mib, 2, &numCPU, &len, NULL, 0); if (numCPU < 1) { mib[1] = HW_NCPU; sysctl(mib, 2, &numCPU, &len, NULL, 0); if (numCPU < 1) numCPU = 1; } ``` ...
[ -0.3058253228664398, -0.06916936486959457, 0.6101487278938293, -0.21600286662578583, 0.31581205129623413, 0.6006472110748291, 0.2225252091884613, -0.36212730407714844, -0.4039027690887451, -0.6888270974159241, -0.5527998208999634, 0.35289666056632996, -0.18645276129245758, -0.0320939756929...
What do you insert into Python source code to have it break into pdb (when execution gets to that spot)? ``` import pdb; pdb.set_trace() ``` See [Python: Coding in the Debugger for Beginners](http://jjinux.blogspot.com/2007/08/python-coding-in-debugger-for-beginners.html) for this and more helpful hints.
[ 0.3937951624393463, 0.010639077052474022, -0.5257906317710876, -0.2334093451499939, 0.01661291904747486, -0.4340885579586029, 0.2531449794769287, 0.19484099745750427, -0.18169552087783813, -0.3962022066116333, -0.1500357687473297, 0.6148405075073242, -0.4220462143421173, -0.489933699369430...
I'm wondering if there are any architectural frameworks out there to create desktop or standalone applications, in Java or C# for instance. It seems that there are tons of them available for web applications but I can't find many good resources on frameworks or architectural best-practices for desktop development. Ide...
[ 0.7824199199676514, 0.5094440579414368, -0.2639736533164978, 0.25350213050842285, 0.1582578718662262, 0.19938373565673828, 0.10468065738677979, 0.2118806093931198, -0.3024607002735138, -0.5923756957054138, 0.16358111798763275, 0.5450361967086792, 0.11832484602928162, 0.07665915787220001, ...
a similar question: [Open source C# projects that have extremely high code quality to learn from.](https://stackoverflow.com/questions/143088/open-source-c-projects-that-have-extremely-high-code-quality-to-learn-from) People gave some pretty good suggestions there: > * Scott Hanselman's [The Weekly Source Code](htt...
[ 0.49602097272872925, -0.040326908230781555, -0.19464537501335144, 0.11414077132940292, -0.46922093629837036, -0.015614883974194527, 0.31781840324401855, -0.263262003660202, -0.06949533522129059, -0.5592213869094849, -0.23643043637275696, 0.48781007528305054, -0.008785163052380085, -0.15012...
I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this? In 3.0, there's now an easier way - hook into the new motion events. The main trick is that you need to have some UIView (not UI...
[ -0.056256309151649475, 0.038874223828315735, 0.6404126286506653, -0.1958741992712021, -0.29777252674102783, -0.07090684026479721, 0.5151060223579407, -0.36805620789527893, -0.3577556312084198, -0.25080662965774536, -0.0900595411658287, 0.4660302698612213, -0.21835215389728546, -0.232139825...
{ // Put in code here to handle shake } if ( [super respondsToSelector:@selector(motionEnded:withEvent:)] ) [super motionEnded:motion withEvent:event]; } - (BOOL)canBecomeFirstResponder { return YES; } @end ``` You can easily transform any UIView (even system views) into a view that can get...
[ -0.09033752232789993, -0.2866244614124298, 0.5739150047302246, -0.0799030140042305, -0.28788644075393677, -0.10075243562459946, 0.3677966892719269, -0.5414392352104187, -0.3379182815551758, -0.24425631761550903, -0.1391407698392868, 0.39671778678894043, -0.10168991982936859, 0.223179042339...
first responder: ``` - (void) viewWillAppear:(BOOL)animated { [shakeView becomeFirstResponder]; [super viewWillAppear:animated]; } - (void) viewWillDisappear:(BOOL)animated { [shakeView resignFirstResponder]; [super viewWillDisappear:animated]; } ``` Don't forget that if you have other views that bec...
[ -0.27288514375686646, -0.014690836891531944, 0.8234661221504211, -0.11504172533750534, -0.3608625829219818, 0.15223082900047302, 0.4286477863788605, -0.2027941644191742, -0.3158928453922272, -0.10965893417596817, -0.5775232911109924, 0.6236196160316467, -0.10289326310157776, 0.107268847525...
I'm no UNIX Guru, but I've had to set up a handful of slices for various web projects. I've used the articles on there to set up users, a basic firewall, nginx or apache, and other bits and pieces of a basic web server. I foresee more slice administration in my future. **Is there a more efficient way to set up users,...
[ 0.7691702246665955, -0.16804765164852142, -0.07283945381641388, 0.018500017002224922, -0.16696253418922424, 0.07923917472362518, 0.033610787242650986, 0.11783478409051895, -0.14582738280296326, -0.9353553652763367, -0.07941070944070816, 0.4359486401081085, 0.10460202395915985, -0.095432162...
sizes, different distros, etc. Their forums mention this: [Clone a slice?](http://forum.slicehost.com/comments.php?DiscussionID=1902)
[ 0.650123655796051, -0.34015128016471863, 0.05991242080926895, -0.1537102907896042, -0.005591697990894318, 0.1516297310590744, 0.07491646707057953, -0.10909875482320786, -0.37330830097198486, -0.8931229114532471, -0.2785840630531311, -0.29201018810272217, -0.1169462651014328, 0.302056014537...
In C, is it possible to forward the invocation of a variadic function? As in, ``` int my_printf(char *fmt, ...) { fprintf(stderr, "Calling printf with fmt %s", fmt); return SOMEHOW_INVOKE_LIBC_PRINTF; } ``` Forwarding the invocation in the manner above obviously isn't strictly necessary in this case (since y...
[ -0.15771280229091644, 0.013744288124144077, 0.3614496886730194, -0.37376755475997925, -0.2350699007511139, -0.08287542313337326, 0.16853278875350952, -0.2801894247531891, 0.08082511276006699, -0.23610912263393402, -0.2986135482788086, 0.654801070690155, -0.3754682242870331, -0.120666876435...
far. To phrase the question another way: in general, can you wrap some arbitrary variadic function *without modifying that function's definition*.] If you don't have a function analogous to `vfprintf` that takes a `va_list` instead of a variable number of arguments, **you can't do it**. See [<http://c-faq.com/varargs/h...
[ 0.25230908393859863, 0.06224725395441055, 0.4893092215061188, -0.3201078176498413, -0.1167433112859726, -0.003564620390534401, 0.01232039462774992, -0.3603609502315521, -0.30087167024612427, -0.3727516829967499, -0.24141822755336761, 0.7416846752166748, -0.33950692415237427, -0.04443947598...
If I don't know the length of a text entry (e.g. a blog post, description or other long text), what's the best way to store it in MYSQL? TEXT would be the most appropriate for unknown size text. VARCHAR is limited to 65,535 characters from MYSQL 5.0.3 and 255 chararcters in previous versions, so if you can safely assum...
[ 0.012649381533265114, 0.02516217902302742, 0.6118968725204468, -0.13761793076992035, -0.1802821308374405, 0.5239968299865723, 0.2814445495605469, -0.09167744219303131, -0.22024691104888916, -0.2841963469982147, 0.1404883861541748, 0.4229173958301544, -0.11290795356035233, 0.101918615400791...
types](http://dev.mysql.com/doc/refman/5.0/en/string-types.html).
[ 0.16653718054294586, 0.09319912642240524, 0.46598020195961, -0.07415302842855453, -0.060722462832927704, -0.031066754832863808, 0.0064700935035943985, -0.2239825278520584, -0.4252408444881439, -0.347270667552948, -0.292018324136734, 0.42392173409461975, -0.44815585017204285, 0.210383072495...
I've heard a lot of good things about using Mylyn in eclipse. How could I set it up to give me a taste of how I could use it? The **seminal Developerworks article** from the 2.0 release is a great introduction to Mylyn, and still relevant. Written by the Mik Kirsten who is the Mylyn project lead, it is a very clear ex...
[ 0.2399507761001587, -0.09658518433570862, 0.31660693883895874, -0.14828522503376007, -0.21257588267326355, 0.04259946569800377, -0.02476583980023861, -0.016757523640990257, -0.07533814013004303, -0.7720245718955994, 0.13395966589450836, 0.4361729323863983, 0.3219609260559082, -0.3584945797...
This is along similar lines as these recent questions: [Best Java Obfuscation Application For Size Reduction](https://stackoverflow.com/questions/93290/best-java-obfuscation-application-for-size-reduction) [Creating non-reverse-engineerable Java programs](https://stackoverflow.com/questions/149937/creating-non-reverse...
[ 0.060357123613357544, 0.028289569541811943, -0.188978910446167, -0.0572909452021122, -0.3595966398715973, 0.049666766077280045, 0.42819875478744507, -0.48138612508773804, -0.2123159021139145, -0.5974745750427246, 0.20310601592063904, 0.5564131140708923, -0.12081240862607956, 0.004495901521...
of view but please don't limit the discussion to that. Proguard is a better product; especially if you take the time to go through the settings for J2ME. Specifically for J2ME there is a far better (commercial) product called [mBooster](http://www.innaworks.com/mBooster.html) I've been getting around 25% improvement...
[ -0.15311452746391296, -0.13958248496055603, 0.41515979170799255, -0.31699392199516296, -0.1843753159046173, 0.1488015502691269, 0.3781123459339142, 0.08993623405694962, -0.4992816150188446, -0.7003041505813599, 0.033679861575365067, 0.816300094127655, -0.18731115758419037, -0.0909279510378...
I've developed a program that extensively uses wxPython - the wxWindow port for python. Even though it is as mature library it is still very primitive and very programming oriented. Which is time consuming and not flexible at all. I would love to see if there is something like Flex/Action Script where all the visual...
[ 0.5537877082824707, -0.19764629006385803, 0.29864293336868286, 0.238519549369812, -0.1326131969690323, 0.16226430237293243, -0.11009901016950607, -0.003475960809737444, -0.3618473410606384, -0.6452233195304871, 0.14573515951633453, 0.8267827033996582, -0.1481270045042038, -0.26393106579780...
I was wondering how to use `cin` so that if the user does not enter in any value and just pushes `ENTER` that `cin` will recognize this as valid input. You will probably want to try `std::getline`: ``` #include <iostream> #include <string> std::string line; std::getline( std::cin, line ); if( line.empty() ) ... ```
[ 0.06976785510778427, -0.019693711772561073, 0.6710811853408813, -0.32448720932006836, 0.3729812204837799, 0.18549016118049622, 0.11183153092861176, 0.025420917198061943, -0.2811165750026703, -0.563332200050354, -0.28672802448272705, 0.597606897354126, -0.4563550651073456, 0.006388527806848...
I'm working on a little test application at the minute and I have multiple window objects floating around and they each call RegisterWindowEx with the same WNDCLASSEX structure (mainly because they are all an instance of the same class). The first one registers ok, then multiple ones fail, saying class already registe...
[ 0.48773065209388733, 0.2167154997587204, 0.19742627441883087, 0.08595911413431168, -0.12607458233833313, -0.007554688490927219, 0.531692385673523, 0.008283520117402077, -0.2391919642686844, -0.6923105120658875, 0.07729215919971466, 0.3635485768318176, -0.1740945428609848, 0.451095432043075...
function finds a matching class > and successfully copies the data, the > return value is nonzero. <http://msdn.microsoft.com/en-us/library/ms633579(VS.85).aspx> This way you can conditionally register the window class based on the return of **GetClassInfoEx**.
[ -0.20188015699386597, -0.37399348616600037, 0.22935570776462555, 0.022963421419262886, -0.15325883030891418, 0.14590170979499817, 0.23075544834136963, -0.00533825159072876, 0.008639696054160595, -0.8112531304359436, -0.23737189173698425, 0.3681859076023102, -0.40528517961502075, 0.18420846...
Looking at learning some C since i saw in [another SO question](https://web.archive.org/web/20111127143032if_/http://stackoverflow.com/questions/296/should-i-learn-c) that is good to learn for the language and for the historical experience. Wondering about what IDE's professionals use and what other tools are useful w...
[ 0.3150506615638733, 0.059278249740600586, -0.22049252688884735, 0.1466590166091919, -0.32654866576194763, -0.26854172348976135, 0.024890724569559097, 0.23561504483222961, -0.044689521193504333, -0.7597640156745911, 0.23080794513225555, 0.4311387240886688, 0.26152104139328003, 0.05084330588...
We are sending out Word documents via email (automated system, not by hand). The email is sent to the user, and CC'd to me. We are getting reports that some users are having the attachments come through corrupted, though when we open the copy that is CC'd to me, it opens fine. When the user forwards us the copy they ...
[ 0.3519704341888428, 0.2409745305776596, 0.4159891605377197, -0.26061293482780457, -0.0809141993522644, 0.2020886093378067, 0.3809909522533417, -0.21536830067634583, -0.13147622346878052, -0.4040529429912567, 0.0009424901218153536, 0.40096548199653625, -0.290311336517334, 0.1647829115390777...
210.48.108.196 Received: from marjory.hosts.net.nz (marjory.hosts.net.nz [210.48.108.196]) by animal.hosts.net.nz (8.12.11/8.12.11) with ESMTP id m8T52EvU028021; Mon, 29 Sep 2008 18:02:19 +1300 Received: from example.example.co.nz ([210.48.67.48]) by marjory.hosts.net.nz with esmtp (Exim 4.63) (envelope-from <info@...
[ 0.16038013994693756, 0.22542934119701385, 0.615871012210846, 0.007974019274115562, -0.19502931833267212, 0.3243134319782257, 0.5770761370658875, -0.3189859092235565, -0.1955835521221161, -0.22075845301151276, -0.12721341848373413, 0.6104195713996887, -0.302953839302063, 0.1570912003517151,...
Now, compare these lines. The original: ``` Content-Type: multipart/mixed; charset="utf-8"; boundary="=_5549133ca51ec83196e2cfd28dad40f7" ``` What they get: ``` Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C92270.6BBA3EE6" ``` The missing charset="UTF-8" likely means that the client will fal...
[ -0.24426981806755066, 0.30865636467933655, 0.3124021589756012, -0.1175900399684906, -0.10605193674564362, -0.10774654895067215, 0.1493142694234848, 0.11649395525455475, -0.37522098422050476, -0.7434991598129272, -0.20624381303787231, 0.3180512487888336, -0.17300157248973846, 0.446573823690...
I'm currently trying to debug a customer's issue with an FTP upload feature in one of our products. The feature allows customers to upload files (< 1MB) to a central FTP server for further processing. The FTP client code was written in-house in VB.NET. The customer reports that they receive "Connection forcibly closed...
[ 0.2866067588329315, 0.12319004535675049, 0.49310144782066345, -0.17953738570213318, -0.06435780227184296, 0.10982698202133179, 0.16856446862220764, -0.18126161396503448, -0.41709190607070923, -0.4590904116630554, -0.13929224014282227, 0.4089932143688202, -0.34631454944610596, 0.00214610807...
to using the same FTP logon credentials, the only difference being that we did it from our office. I know that the TCP protocol has flow-control built-in, so it shouldn't matter how much data is sent in a single Send call, since the protocol will throttle itself accordingly to match the server's internal limits (if I ...
[ 0.07140762358903885, 0.050577253103256226, 0.33526453375816345, 0.21089810132980347, 0.18339377641677856, -0.2365773320198059, 0.23976796865463257, -0.18413853645324707, -0.24182207882404327, -0.42007964849472046, 0.11229663342237473, 0.5132338404655457, -0.254271000623703, 0.0360129959881...
send the data (buffer is a Byte array containing the file data): ``` For i = 0 To buffer.Length - 1 Step 512 mDataSocket.Send(buffer, i, 512, SocketFlags.None) OnTransferStatus(i, buffer.Length) Next ``` Is it possible that the customer's ISP (or their own fire...
[ 0.004796888213604689, -0.05536025017499924, 0.5189932584762573, 0.029667850583791733, -0.06703543663024902, 0.2144957184791565, 0.15052342414855957, -0.3053724467754364, 0.005883700214326382, -0.546156108379364, -0.3426796793937683, 0.47718626260757446, -0.3362352252006531, 0.0954466089606...
our client code can send within a given period of time? If so, what is the best way to handle this situation? I guess the obvious solution would be to introduce a delay in our send loop, unless there is a way to do this at the socket level. It seems really odd to me that an ISP would handle a rate-limit violation by k...
[ 0.4335707426071167, -0.18404872715473175, 0.31054311990737915, 0.39456361532211304, -0.09566555172204971, -0.17998388409614563, 0.332737535238266, 0.19993145763874054, -0.3920207917690277, -0.2861543595790863, 0.01677558943629265, 0.5793157815933228, -0.34647926688194275, 0.172137305140495...
I have a table with rowID, longitude, latitude, businessName, url, caption. This might look like: ``` rowID | long | lat | businessName | url | caption 1 20 -20 Pizza Hut yum.com null ``` How do I delete all of the duplicates, but only keep the one that has a URL (first priority), or keep the on...
[ 0.6095263957977295, 0.41034749150276184, 0.307660311460495, 0.04747188091278076, 0.2955157458782196, 0.2326284646987915, 0.03946017846465111, 0.36683961749076843, -0.4384586811065674, -0.6594146490097046, 0.09775231778621674, 0.14198704063892365, -0.1577700972557068, 0.22703255712985992, ...
not being mainstream - and I'm cool with that. ``` DECLARE @LoopVar int DECLARE @long int, @lat int, @businessname varchar(30), @winner int SET @LoopVar = (SELECT MIN(rowID) FROM Locations) WHILE @LoopVar is not null BEGIN --initialize the variables. SELECT @long = null, @lat = null, @busin...
[ 0.3113510012626648, 0.07075531035661697, 0.2691621482372284, -0.24884463846683502, 0.12208978831768036, 0.1503015160560608, 0.24140959978103638, -0.1851753443479538, 0.041758690029382706, -0.06479150801897049, -0.2912891209125519, 0.7621841430664062, -0.33960041403770447, -0.00371458893641...
rowID = @LoopVar --find the winning row with that data SELECT top 1 @Winner = rowID FROM Locations WHERE @long = long AND @lat = lat AND @businessname = businessname ORDER BY CASE WHEN URL is not null THEN 1 ELSE 2 END, CASE WHEN Caption is not null THEN 1 ELSE 2 END, RowId --delete an...
[ -0.5758458971977234, -0.15200696885585785, 0.5098544955253601, 0.04863133653998375, -0.08477798849344254, 0.2980591356754303, 0.074839286506176, -0.32201579213142395, -0.029935946688055992, -0.38424351811408997, -0.45409005880355835, 0.1892385184764862, -0.36926937103271484, -0.04454575479...
= businessname AND @winner != rowID -- prep the next loop value. SET @LoopVar = (SELECT MIN(rowID) FROM Locations WHERE @LoopVar < rowID) END ```
[ -0.05169406533241272, -0.07108762860298157, 0.4203198254108429, -0.18074938654899597, 0.15210093557834625, 0.2756913900375366, 0.35043445229530334, -0.46916040778160095, 0.04739978909492493, -0.3779686391353607, -0.16576267778873444, 0.47886618971824646, -0.21977102756500244, 0.22416634857...
I am creating a Windows Forms control derived from UserControl to be embedded in a WPF app. I have generally followed the procedures given in [this link](http://www.codeproject.com/KB/WPF/WPFOpenGL.aspx?display=Print). ``` public ref class CTiledImgViewControl : public UserControl { ... virtual void OnPaint( PaintEve...
[ 0.2579730451107025, 0.03457072004675865, 0.7499415874481201, -0.1171117052435875, 0.12773087620735168, -0.14167660474777222, 0.1922905147075653, -0.2537553310394287, 0.023257004097104073, -0.9356135725975037, -0.03242291137576103, 0.5943934917449951, -0.35691916942596436, -0.08845587819814...
called in a `UserControl` unless you set the appropriate style when it is constructed using the `SetStyle` method. You need to set the `UserPaint` style to true for the `OnPaint` to get called. ``` SetStyle(ControlStyles::UserPaint, true); ``` ### Update I recently encountered this issue myself and went digging for...
[ 0.3119876980781555, -0.1004781723022461, 0.526825487613678, -0.2733924984931946, -0.019607052206993103, -0.15187183022499084, 0.47202134132385254, -0.11202869564294815, 0.06350428611040115, -0.5902406573295593, 0.0029087793081998825, 0.635052502155304, -0.46111664175987244, 0.0112803261727...
child control that filled its entire client region and therefore, clipped it all. This meant that the clipping rectangle was empty and so no `OnPaint` call. I worked around this by overriding `WndProc` and adding a handler for `WM_PAINT` directly as I couldn't find another way to achieve what I wanted.
[ 0.11275983601808548, -0.2061242163181305, 0.10340942442417145, 0.10728652775287628, 0.10136740654706955, 0.22070935368537903, -0.048026423901319504, -0.007576191797852516, -0.0110262930393219, -0.31305190920829773, 0.14449520409107208, 0.3349877595901489, -0.5190006494522095, 0.11429678648...
It's been ratling in my brain for a while. I've had some investigation on Compilers/Flex/Byson and stuff but I never found a good reference that talked in detail about the "parsing stack", or how to go about implementing one. Does anyone know of good references where I could catch up? **Edit**: I do appreciate all t...
[ 0.5483382940292358, 0.31706738471984863, -0.1092807725071907, 0.1869472861289978, -0.4112989604473114, 0.07019522786140442, 0.36935511231422424, -0.07848921418190002, -0.07011205703020096, -0.395214319229126, 0.13733059167861938, 0.429093599319458, -0.2999879717826843, -0.24513034522533417...
bad answer to state that parsing is related to automata theory, I feel that there is some misunderstanding here. * Firstly, *finite state automata* are only able to recognize regular languages (e.g. regular expressions). In order to recognize context-free languages you need *pushdown automata*, which is more powerful....
[ 0.08715614676475525, 0.15969517827033997, -0.5298673510551453, 0.008200692012906075, -0.6908131837844849, 0.2997533679008484, 0.5943882465362549, -0.014684104360640049, -0.117059126496315, -0.6302458643913269, 0.03893953189253807, 0.6547272205352783, -0.939568817615509, -0.0802120193839073...
generally more useful. There's a wide variety of parsing methods out there, so it's hard to give you one specific reference that will tell you what you need to know... In general, you should understand the difference between [top-down parsing](http://en.wikipedia.org/wiki/Top-down_parsing) and [bottom-up parsing](http...
[ 0.1362769901752472, 0.07742096483707428, 0.31428948044776917, 0.11823219805955887, -0.3894496262073517, 0.08685524016618729, 0.05135316029191017, -0.029425155371427536, -0.2610566020011902, -0.5865002274513245, -0.36883142590522766, 0.5622918605804443, -0.36185550689697266, -0.327683180570...
I just happened across two excellent posts describing the relationship between [regular languages and finite automata](http://scientopia.org/blogs/goodmath/2011/03/29/regular-languages/), [context-free languages and push-down automata](http://scientopia.org/blogs/goodmath/2011/04/26/the-next-step-in-computation-level-2...
[ 0.03130703419446945, -0.267591655254364, -0.3070184886455536, 0.08572886139154434, -0.30172210931777954, 0.15324537456035614, 0.26636096835136414, 0.27242720127105713, -0.4704241156578064, -0.49581387639045715, -0.2176184058189392, 0.3316672742366791, 0.07734585553407669, -0.19286018610000...
I get the following error when attempting to install [RubyGems](http://docs.rubygems.org/). I've tried Googling but have had no luck there. Has anybody encountered and resolved this issue before? ``` C:\rubygems-1.3.0> ruby setup.rb . . install -c -m 0644 rubygems/validator.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/...
[ 0.023297568783164024, 0.5864676237106323, 0.49533817172050476, -0.26337093114852905, -0.2561742067337036, 0.34311336278915405, 0.8290446400642395, -0.6360223889350891, -0.5267645120620728, -0.5284358859062195, -0.2108377069234848, 0.7159102559089661, -0.2664329409599304, 0.1496359556913375...
from ./lib/rubygems.rb:711:in `set_paths' from ./lib/rubygems.rb:518:in `path' from ./lib/rubygems/source_index.rb:66:in `installed_spec_directories' from ./lib/rubygems/source_index.rb:56:in `from_installed_gems' from ./lib/rubygems.rb:726:in `source_index' from ./lib/rubygems.r...
[ 0.3063146471977234, 0.372843474149704, 0.36209630966186523, -0.3228641748428345, 0.009874041192233562, 0.10663167387247086, 0.8547993898391724, -0.4660879969596863, -0.29140645265579224, -0.5457378029823303, -0.39651891589164734, 0.7257702946662903, -0.4279814660549164, -0.1344943791627884...
cygwin; that install is meant for unix-like operating systems. Edit: (Actually, from the log above it looks like there is some Windows-specific stuff being run... perhaps you're running into a UAC protection issue?) If you just use the [Windows ruby one-click installer](http://rubyforge.org/projects/rubyinstaller/), i...
[ 0.2598096430301666, 0.20890361070632935, 0.0202411450445652, -0.06218313053250313, -0.17365673184394836, -0.36214327812194824, 0.7308908104896545, 0.14254550635814667, -0.1432642936706543, -0.5021744966506958, -0.2573452293872833, 0.8311840891838074, -0.4112401306629181, 0.1009873971343040...
For technical reasons, I can't use ClickOnce to auto-update my .NET application and its assemblies. What is the best way to handle auto-updating in .NET? I think the [Updater Application Block](http://msdn.microsoft.com/en-us/library/ms978574.aspx) was something of a precursor to ClickOnce. Might be worth investigating...
[ 0.20929095149040222, -0.06486266106367111, 0.23381198942661285, -0.050363197922706604, 0.06550268828868866, -0.3722330927848816, 0.016655297949910164, 0.21861860156059265, -0.24291343986988068, -0.6311591267585754, 0.22271715104579926, 0.5907080769538879, -0.47690755128860474, 0.1138106361...
I'm sure this is a newbie question, but every time I've compiled/dl'ed a new version of vim for os x, running vim on the command-line opens up the gvim app. I just want to upgrade the console version (so I can, for example, have python compiled in to use omnicomplete). You can also use MacPorts to handle the installati...
[ 0.3529032766819, 0.042374756187200546, 0.6977497339248657, -0.20648470520973206, -0.08839169144630432, -0.3794870674610138, 0.25187137722969055, 0.17993204295635223, -0.11667364090681076, -0.8209980726242065, -0.1964590698480606, 1.1890642642974854, -0.4582855999469757, 0.1015806645154953,...
X).
[ -0.14030525088310242, 0.08519206196069717, 0.15680555999279022, 0.18502135574817657, -0.3609614372253418, 0.02988486923277378, -0.036666519939899445, -0.22198358178138733, 0.3359529972076416, -0.43198224902153015, -0.3445575535297394, 0.43267667293548584, -0.3744828402996063, 0.32965415716...
When I load `script/console`, sometimes I want to play with the output of a controller or a view helper method. Are there ways to: * simulate a request? * call methods from a controller instance on said request? * test helper methods, either via said controller instance or another way? To call helpers, use the `helpe...
[ 0.06513527780771255, -0.15430034697055817, 0.5905275940895081, 0.09537428617477417, 0.10453011095523834, 0.08594746142625809, 0.021238813176751137, -0.13077755272388458, -0.28995639085769653, -0.5257872939109802, -0.20031175017356873, 0.7832841277122498, -0.44189292192459106, -0.0513950660...
# you now have a rails response object much like the integration tests > > > response.body # get you the HTML > > response.cookies # hash of the cookies > > # etc, etc > > ```
[ 0.13120193779468536, -0.4176715910434723, 0.4518015682697296, 0.11673752963542938, -0.4320420026779175, 0.04310308396816254, 0.4962975084781647, -0.15845432877540588, -0.12263857573270798, -0.9028112888336182, 0.04299778863787651, 0.6547250747680664, -0.01976705528795719, -0.36980718374252...
I've been using Eclipse pretty regularly for several years now, but I admit to not having explored all the esoterica it has to offer, particularly in the areas of what formatting features the editors offer. The main thing I miss from (X)emacs is the "align-regex" command, which let me take several lines into a region ...
[ 0.19792675971984863, -0.08393388241529465, 0.5425966382026672, -0.24380818009376526, -0.44905591011047363, 0.0028148088604211807, -0.018850471824407578, -0.2148536592721939, -0.012288123369216919, -0.4387591481208801, 0.02517548017203808, 0.5332799553871155, -0.3028790354728699, 0.00817710...
= new String('aString'); var index = 0; var longCamelCaseObjectName = new LongNameObject(); ``` Now, you may have your own thoughts on stylistic (ab)use of white space and alignment, etc., but that's just an example (I'm actually trying to align a different kind of mess entirely). Can anyone tell m...
[ 0.24394427239894867, -0.04278702661395073, 0.21690575778484344, -0.3358716368675232, -0.003609710605815053, -0.1510082632303238, 0.19390085339546204, -0.3273831903934479, -0.1294482797384262, -0.5182644724845886, -0.17173293232917786, 0.665330708026886, -0.25775179266929626, -0.10776625573...
do this: Preferences -> Java -> Code Style -> Formatter. Click 'Edit' on the profile (you may need to make a new one since you can't edit the default). In the indentation section select 'Align fields with columns'. Then, in your code `CTRL`+`SHIFT`+`F` will run that formatter. That will of course run all the other ...
[ 0.20663519203662872, -0.08826872706413269, 0.3650740683078766, -0.07015913724899292, -0.0064811124466359615, -0.18622851371765137, -0.17687614262104034, -0.1290239840745926, 0.03700599819421768, -0.6833064556121826, -0.09330544620752335, 0.6437455415725708, -0.37793388962745667, -0.3433809...
My app generates PDFs for user consumption. The "Content-Disposition" http header is set as mentioned [here](https://stackoverflow.com/questions/74019/specifying-filename-for-dynamic-pdf-in-aspnet). This is set to "inline; filename=foo.pdf", which should be enough for Acrobat to give "foo.pdf" as the filename when savi...
[ 0.11969547718763351, 0.20403757691383362, 0.9347125291824341, -0.08801750838756561, -0.06766239553689957, 0.11763855069875717, 0.14483092725276947, -0.018609855324029922, -0.036750081926584244, -0.5077674984931946, -0.4709484875202179, 0.8313568234443665, -0.42456477880477905, -0.211957588...
end of the URL doesn't affect the default filename. Update 2: I've tried both ``` content-disposition inline; filename=foo.pdf Content-Type application/pdf; filename=foo.pdf ``` and ``` content-disposition inline; filename=foo.pdf Content-Type application/pdf; name=foo.pdf ``` (as verified thro...
[ -0.0282625462859869, 0.17962856590747833, 0.593513548374176, 0.09148898720741272, 0.14145158231258392, -0.27243027091026306, 0.13081426918506622, -0.5913512706756592, -0.11813857406377792, -0.3327878713607788, -0.5856986045837402, 0.4821428060531616, -0.18551796674728394, 0.038963228464126...
state what to do with a disposition type of "inline" and a filename. Also, as far as I can tell, the only UA that actually uses the filename for type=inline is Firefox (see [test case](http://greenbytes.de/tech/tc2231/#inlwithasciifilename)). Finally, it's not obvious that the plugin API actually makes that informati...
[ 0.12930792570114136, 0.16670361161231995, 0.44863343238830566, 0.1187097430229187, -0.05673966556787491, -0.06389306485652924, 0.029006803408265114, -0.06590032577514648, -0.01893274113535881, -0.8610934019088745, -0.15877166390419006, 0.6875709891319275, -0.2439485490322113, -0.0536963976...
which seems to indicate that the Acrobat reader plugin doesn't use the response headers (in Firefox), although the plugin API provides access to them.
[ 0.007658179849386215, -0.07630671560764313, 0.2401643693447113, -0.06328408420085907, 0.05294552445411682, -0.2683529555797577, 0.15259790420532227, -0.2515633702278137, -0.11941904574632645, -0.20540085434913635, -0.5391305088996887, 0.6975905895233154, -0.7369393110275269, -0.33737799525...
Having this route: ``` map.foo 'foo/*path', :controller => 'foo', :action => 'index' ``` I have the following results for the `link_to` call ``` link_to "Foo", :controller => 'foo', :path => 'bar/baz' # <a href="/foo/bar%2Fbaz">Foo</a> ``` Calling `url_for` or `foo_url` directly, even with `:escape => false`, giv...
[ -0.24910522997379303, -0.03146132826805115, 0.4740954339504242, -0.0432242788374424, 0.0006679947255179286, 0.050706926733255386, 0.11082327365875244, -0.4317776560783386, -0.4114397168159485, -0.7877082228660583, 0.0595162995159626, 0.25572943687438965, -0.4987877905368805, 0.038322642445...
<a href="/foo?path[]=bar&path[]=baz">Foo</a> ``` The only place I could find this documented is in [this ticket](http://dev.rubyonrails.org/ticket/7047).
[ 0.41744256019592285, 0.010468092747032642, 0.15532968938350677, 0.016703229397535324, 0.1895167976617813, -0.15207700431346893, 0.5572115778923035, 0.023023614659905434, -0.21346859633922577, -0.4829234480857849, 0.10266583412885666, 0.029800664633512497, -0.17994071543216705, 0.5190339088...
the new keyboard from Microsoft, [Sidewinder x6](http://www.microsoft.com/hardware/gaming/productdetails.aspx?pid=102) can record in game macro. I was woundering if it could be used in Visual Studio (record key in application too)? (This could be very useful to press 1 key instead of Ctrl+M,M to Toggle Outline.) YES I...
[ 0.18740761280059814, -0.0033371204044669867, 0.4247604012489319, 0.2843625843524933, 0.24866929650306702, -0.1498756855726242, -0.10090123116970062, 0.20055539906024933, -0.3850560188293457, -0.7000876069068909, 0.21527057886123657, 0.9761738777160645, 0.19077688455581665, 0.15218223631381...
I need to get the actual local network IP address of the computer (e.g. 192.168.0.220) from my program using C# and .NET 3.5. I can't just use 127.0.0.1 in this case. How can I accomplish this? In [*How to get IP addresses in .NET with a host name*](http://www.devcity.net/Articles/62/1/gethostbyname.aspx "Article by J...
[ 0.10936073958873749, 0.09013471007347107, 0.5950953960418701, 0.17913365364074707, 0.041922345757484436, 0.06693665683269501, 0.43517008423805237, -0.3750600814819336, -0.33270514011383057, -0.8910843729972839, 0.07868761569261551, 0.2427733838558197, -0.20031620562076569, 0.24197614192962...
i < IpA.Length; i++) > { > Console.WriteLine ("IP Address {0}: {1} ", i, IpA[i].ToString ()); > } > > ```
[ -0.3081739842891693, 0.09939877688884735, 0.6399208307266235, -0.20926792919635773, 0.18165287375450134, 0.05466349422931671, 0.3175210654735565, -0.4852009415626526, 0.338888019323349, -0.7820001840591431, -0.12526170909404755, 0.01728672720491886, -0.32112669944763184, 0.2325232625007629...
movie id tt0438097 can be found at <http://www.imdb.com/title/tt0438097/> What's the url for its poster image? As I'm sure you know, the actual url for that image is <http://ia.media-imdb.com/images/M/MV5BMTI0MDcxMzE3OF5BMl5BanBnXkFtZTcwODc3OTYzMQ@@._V1._SX100_SY133_.jpg> You're going to be hard pressed to figure o...
[ 0.7733622193336487, -0.21216411888599396, 0.4404444098472595, 0.1758551448583603, -0.11718036234378815, -0.2072771042585373, -0.6151861548423767, 0.07894152402877808, -0.5320270657539368, -0.2919149398803711, 0.06151214987039566, 0.3882463574409485, -0.09035070240497589, 0.3977253139019012...
Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency. You have to use [Decimal](http://msdn.microsoft.com/en-us/library/364x0z75.aspx) data type.. The decimal keyword indicates a 128-bit data type. Compared to floating-point typ...
[ -0.11393134295940399, 0.0494794137775898, 0.3182693421840668, 0.5312275290489197, 0.28079545497894287, 0.19362430274486542, -0.25540125370025635, 0.07970692217350006, -0.38558849692344666, -0.22267359495162964, -0.027099760249257088, 0.0565803200006485, -0.006214558612555265, 0.04121167585...
**I was wondering if there was a .NET-compatible CLR that was implemented using the CLI** (common language infrastructure), e.g., using .NET itself, or at least if there were any resources that would help with building one. Basically, something like a .NET program that loads assemblies as MemoryStreams, parses the byt...
[ 0.7143465280532837, 0.33251190185546875, 0.002486802637577057, 0.04006379470229149, -0.3118017613887787, -0.17873027920722961, -0.07018837332725525, 0.04695582389831543, -0.21977360546588898, -0.44460418820381165, 0.1372937113046646, 0.49100929498672485, -0.5343217849731445, -0.09335906058...
is) **and *runs* CIL.** If done right, it should be able to run itself. Any thoughts on using Mono.Cecil for this kind of thing? I don't think there are currently any standalone .net VMs that are self hosting but both [Cosmos](http://www.gocosmos.org) and [SharpOS](http://sharpos.org) are .net runtimes written in C#. ...
[ 0.4153628647327423, -0.5392515063285828, 0.3139255940914154, 0.28173795342445374, 0.2469276487827301, -0.2839934229850769, -0.00765082985162735, 0.1286156177520752, -0.338072806596756, -0.6163163185119629, -0.14279155433177948, 0.4949486553668976, -0.15395577251911163, -0.05400722846388817...
I know that I can share files using Shared Folders in Virtual PC, but this method seems to have pretty poor performance. Is there another method to share files that provides better performance? (Besides using something other than Virtual PC) The best way to do it is probably set up proper bridge network connection betw...
[ 0.6122192144393921, 0.1572570651769638, 0.12913893163204193, 0.3043079376220703, 0.0038588568568229675, -0.22725912928581238, 0.010567829944193363, 0.27528926730155945, -0.32248011231422424, -0.7313979864120483, 0.2999735176563263, 0.49360695481300354, 0.028345219790935516, 0.3496568500995...
Is there anyway to combine all resources into a single exe file such as app.config and associated DLL's? Some applications seem to do this such as eMule. I don't want my app.config sitting there waiting to be edited. Thanks Certainly, in the `Solution Explorer` (assuming Visual Studio here, since you don't mention) ...
[ 0.3822614848613739, 0.04310858994722366, 0.06997854262590408, 0.20517049729824066, 0.05658910050988197, -0.013810444623231888, 0.0004101051017642021, 0.1283513754606247, -0.45781299471855164, -0.7527620196342468, -0.0633208379149437, 0.8127202987670898, -0.15986385941505432, -0.28861424326...
How can I add an instance variable to a defined class at **runtime**, and later get and set its value from outside of the class? I'm looking for a metaprogramming solution that allows me to modify the class instance at runtime instead of modifying the source code that originally defined the class. A few of the solutio...
[ -0.12549713253974915, -0.039877261966466904, 0.13209465146064758, 0.1361519694328308, -0.08343076705932617, -0.02870519831776619, 0.20815113186836243, -0.1904369741678238, -0.1399691253900528, -0.6740905046463013, 0.054049890488386154, 0.7695205807685852, -0.37807324528694153, 0.2356615811...
`attr_writer` to define just getters or setters or you can define them manually as such: ``` class Array attr_reader :getter_only_method attr_writer :setter_only_method # Manual definitions equivalent to using attr_reader/writer/accessor def var @var end def var=(value) @var = value end end ``...
[ -0.2197088748216629, -0.02086823619902134, 0.3829944431781769, 0.06586693972349167, -0.409634530544281, -0.11048576980829239, 0.21150779724121094, -0.3692725896835327, -0.13265734910964966, -0.44606366753578186, -0.12282843887805939, 0.6935802102088928, -0.4146023988723755, -0.087024331092...
attr_accessor :b irb(main):003:1> end => nil irb(main):004:0> a = A.new => #<A:0x7fbb4b0efe58> irb(main):005:0> a.b = 1 => 1 irb(main):006:0> a.b => 1 irb(main):007:0> def a.setit=(value) irb(main):008:1> @b = value irb(main):009:1> end => nil irb(main):010:0> a.setit = 2 => 2 irb(main):011:0> a.b => 2 irb(main):012:...
[ -0.4424777626991272, -0.041902896016836166, 0.4976792633533478, -0.0395052470266819, -0.2164638340473175, 0.2746983766555786, 0.180875763297081, -0.5016382932662964, -0.1267942488193512, -0.34445443749427795, -0.19932901859283447, 0.6783795356750488, -0.47313374280929565, 0.040775459259748...
Under Linux, my C++ application is using fork() and execv() to launch multiple instances of OpenOffice so as to view some powerpoint slide shows. This part works. Next I want to be able to move the OpenOffice windows to specific locations on the display. I can do that with the XMoveResizeWindow() function but I need t...
[ 0.5118749737739563, 0.1421051174402237, 0.42787298560142517, -0.11008337885141373, -0.09547100216150284, -0.3049314320087433, -0.00853224191814661, 0.18394747376441956, -0.3160075545310974, -0.808966338634491, -0.049094051122665405, 0.6547896265983582, -0.4085623025894165, 0.14934453368186...