text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
upgrading production systems, so I'd like to avoid any major change in behavior. The [documentation](http://us3.php.net/ini.core) (search for "memory\_limit") is very confusing on this point. It says "default", but I don't know if that means the default value set in the config file, or the default value that it uses wh...
[ 0.13317449390888214, 0.04788574203848839, 0.4483259320259094, -0.14806492626667023, 0.25613299012184143, -0.1337687373161316, 0.21234719455242157, 0.23578792810440063, -0.2988903224468231, -0.4301961362361908, -0.32732459902763367, 1.0059887170791626, -0.22595401108264923, -0.0456289499998...
of things it should have done, including things like the mysql functions. It's turned *on* from 5.2.1 now that they learned to count. If in doubt, disable it or make sure you update the config file to use the new default. Leaving it at 8MB and upgrading to 5.2.8 will almost definitely cause problems.
[ 0.43494248390197754, -0.16001449525356293, 0.5851404070854187, 0.0025938351172953844, 0.1658712923526764, -0.2754412293434143, 0.669572114944458, 0.25601816177368164, -0.26878130435943604, -0.5467059016227722, 0.032115787267684937, 0.7489429712295532, -0.24805420637130737, 0.10121900588274...
Are these the same: ``` int foo(bar* p) { return p->someInt(); } ``` and ``` int foo(bar& r) { return r.someInt(); } ``` Ignore the null pointer potential. Are these two functions functionally identical no matter if `someInt()` is virtual or if they are passed a `bar` or a subclass of `bar`? Does this slice ...
[ 0.15522314608097076, 0.04640370234847069, 0.4080222249031067, -0.18828430771827698, -0.033414848148822784, -0.06101546436548233, 0.15425194799900055, -0.314272403717041, -0.10654202848672867, -0.3762338161468506, -0.10879011452198029, 0.763295590877533, -0.5323435068130493, 0.0083244889974...
some situations. A few more differences: * You can't assign NULL to a reference. This is a crucial difference and the main reason you'd prefer one over the other. * When you take the address of a pointer, you get the address of the pointer variable. When you take the address of a reference, you get the address of th...
[ 0.1209644302725792, 0.0007018841570243239, -0.09109710901975632, 0.1933048963546753, -0.2679581940174103, -0.032246049493551254, 0.40729886293411255, 0.16049665212631226, -0.12701833248138428, -0.5526658296585083, -0.10914883017539978, 0.2200641930103302, -0.35550546646118164, 0.4294683635...
I've got a string like "Foo: Bar" that I want to use as a filename, but on Windows the ":" char isn't allowed in a filename. Is there a method that will turn "Foo: Bar" into something like "Foo- Bar"? Try something like this: ``` string fileName = "something"; foreach (char c in System.IO.Path.GetInvalidFileNameChars...
[ 0.5018402338027954, 0.02636190876364708, 0.6628528237342834, -0.44293293356895447, 0.3066033124923706, 0.10428017377853394, 0.4577068090438843, -0.1426611840724945, -0.17846927046775818, -0.6240302324295044, 0.06622958928346634, 0.5536094307899475, -0.03844950348138809, 0.527484118938446, ...
I'm stuck with a legacy Java codebase that has THOUSANDS of warnings when you compile it. I would love to actually fix the source of all these warnings, but unfortunately that's not an option at this time at my company (other things like "making new products that generate revenue" are considered higher priority by the ...
[ 0.6843146085739136, 0.6574492454528809, -0.05196940526366234, -0.1936700940132141, 0.09860821068286896, -0.057320427149534225, 0.7131504416465759, 0.43022340536117554, -0.2179287075996399, -0.37748247385025024, 0.22350384294986725, 0.23652857542037964, -0.2528446912765503, 0.11221041530370...
nothing fancy, but so far I haven't been able to find anything anywhere for how I can modify this call to prevent warning output. Going through the code and adding a @SuppressWarnings annotation everywhere would work, but it would also be almost as much of a pain as going through and fixing all the warnings' sources. ...
[ 0.16823633015155792, 0.2608056664466858, 0.17733411490917206, -0.07046886533498764, -0.24596717953681946, -0.16779401898384094, 0.6209827065467834, 0.11928629875183105, -0.2540826201438904, -0.551347017288208, -0.17157092690467834, 0.8371031880378723, -0.5891489386558533, -0.05771842971444...
the `javadoc` task. [(Source)](http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html)
[ -0.5335733294487, -0.14691320061683655, 0.4845479726791382, -0.24352215230464935, -0.26499202847480774, -0.4189191162586212, -0.012067893519997597, 0.24617530405521393, -0.07710213959217072, -0.1328888088464737, -0.6018177270889282, 0.5608541965484619, -0.4448259770870209, 0.10330981016159...
I have a query that is taking a long time in the middle of a transaction. When I get the `wait_type` of the process it is `PAGEIOLATCH_SH`. What does this wait type mean and how can this be resolved? From [**Microsoft documentation**](https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-managemen...
[ -0.10190669447183609, -0.3021720349788666, 0.4568362832069397, -0.15337152779102325, 0.17624755203723907, -0.3574405014514923, 0.07224766910076141, -0.17554715275764465, -0.5322889089584351, -0.7695479989051819, -0.23869271576404572, 0.15876233577728271, -0.1854284554719925, 0.352995365858...
your query is like this: ``` Select * from <table> where <col1> = <value> order by <PrimaryKey> ``` , check that you have a composite index on `(col1, col_primary_key)`. If you don't have one, then you'll need either a full `INDEX SCAN` if the `PRIMARY KEY` is chosen, or a `SORT` if an index on `col1` is chosen. B...
[ -0.3666539490222931, -0.04666599631309509, 0.30449774861335754, 0.11263878643512726, -0.03295940160751343, 0.04459629952907562, -0.276368647813797, 0.07144398242235184, -0.2953495979309082, -0.6895472407341003, -0.1771196573972702, 0.291613906621933, -0.2717463970184326, 0.2183894515037536...
I'm doing some WinForms development, running XP and VS 2005 (ancient, I know). I'd like to make sure my application can run without admin rights, but I'm too lazy to try to run VS as a non-admin, and I don't want to log in and out to test my app. Is there a way I can just debug as a non-admin? Is there a set of cod...
[ 0.5017268061637878, 0.26011157035827637, 0.5688614249229431, -0.027868540957570076, -0.210099458694458, -0.025613276287913322, 0.44800958037376404, -0.18716561794281006, -0.1162697896361351, -0.4205155372619629, 0.10119010508060455, 0.7806578874588013, -0.127160906791687, 0.332166403532028...
desktop session. See [How to enable and use the "Run As" command when running programs in Windows](http://support.microsoft.com/kb/294676). This means you won't have to log-in and out. I would suggest that you just run your target application as another user, via RunAs, then attach the VS Debugger to the process (if ...
[ 0.39163222908973694, -0.3161708414554596, 0.3753037452697754, -0.059742365032434464, -0.07045426219701767, -0.21602119505405426, 0.4759550392627716, 0.18670547008514404, -0.3527446389198303, -0.8424984216690063, -0.5231396555900574, 0.8168325424194336, -0.28235018253326416, 0.1912117749452...
I have code that depends a relatively small MS Jet (created in Access) database. Our source control process is far from all that it could/should be (which is a problem that needs to be solved immediately) and we have ended up with two versions of the same database. The person who edited the "other" version is no longer...
[ 0.5996947288513184, 0.3373435139656067, 0.21189084649085999, 0.33438777923583984, 0.16306425631046295, -0.01881553791463375, 0.09176622331142426, -0.029805142432451248, -0.05731304734945297, -0.6886366009712219, 0.25404125452041626, 0.4850888252258301, -0.20926691591739655, 0.2795150279998...
utility. For example: ``` Sub ToText() Dim frm, mdl For Each frm In CurrentProject.AllForms Application.SaveAsText acForm, frm.Name, "c:\docs\" _ & frm.Name & ".txt" ``` 'SO formatting ``` Next For Each mdl In CurrentProject.AllModules Application.SaveAsText acModule, mdl.Name, "c:\docs\" _ ...
[ -0.2045326679944992, -0.20094798505306244, 0.6978410482406616, -0.21753589808940887, 0.31511133909225464, 0.2169869989156723, -0.0574042908847332, -0.03868236765265465, -0.13849064707756042, -0.6119988560676575, -0.40645909309387207, 0.6603775024414062, -0.3852207064628601, -0.018231529742...
I am trying to rotate a vector around a certain point on the vector(in C++): ``` 1 2 3 4 5 6 7 8 9 ``` rotated around the point (1,1) (which is the "5") 90 degrees would result in: ``` 7 4 1 8 5 2 9 6 3 ``` Right now I am using: ``` x = (x * cos(90)) - (y * sin(90)) y = (y * cos(90)) + (x * sin(90)) ``` But I ...
[ 0.15765945613384247, 0.3324308395385742, 0.5087368488311768, -0.12188374251127243, 0.030081868171691895, 0.3473358154296875, -0.13567769527435303, -0.3272130489349365, -0.12158878147602081, -0.4906828701496124, -0.043798189610242844, 0.49502620100975037, -0.20892052352428436, 0.01071086525...
around the point `(dx, dy)`, then the rotation calculation, including the translation back into the original coordinate system, would be: ``` x_rotated = ((x - dx) * cos(angle)) - ((dy - y) * sin(angle)) + dx y_rotated = dy - ((dy - y) * cos(angle)) + ((x - dx) * sin(angle)) ``` Physics/Maths coordinate system,...
[ -0.3096315860748291, 0.2421175241470337, 0.6459009051322937, -0.13772247731685638, -0.1228657066822052, 0.15300020575523376, -0.10243483632802963, -0.31634488701820374, -0.13023309409618378, -0.3545858860015869, -0.5607091784477234, 0.31261298060417175, -0.14446893334388733, 0.188822597265...
dx) * cos(angle)) - ((y - dy) * sin(angle)) + dx y_rotated = ((x - dx) * sin(angle)) + ((y - dy) * cos(angle)) + dy ``` Thanks to [mmx](https://stackoverflow.com/users/33708/mmx) for their comment on [Pesto](https://stackoverflow.com/a/620769/42473)'s post, and to [SkeletorFromEterenia](https://stackoverflow.com/a/29...
[ -0.105148546397686, 0.43598541617393494, 0.5266838669776917, -0.035604629665613174, -0.05759452283382416, 0.35774341225624084, 0.17793671786785126, -0.04961402341723442, -0.2613070011138916, -0.449151873588562, -0.07545941323041916, 0.5419094562530518, -0.18788529932498932, 0.2963509559631...
Is there a way to get ruby to do a forced copy? FileUtils.cp\_r seems not to have a :force => true option. No, but it does have `:remove_destination` as an option, which does much the same thing.
[ 0.29838263988494873, -0.15208905935287476, 0.2149747610092163, 0.01949852518737316, 0.09931439161300659, -0.18343962728977203, 0.5941428542137146, 0.1182466521859169, -0.2758811414241791, -0.27185189723968506, -0.15392445027828217, 0.3949831426143646, -0.48977530002593994, 0.34641036391258...
Is C# a high level language? I see it as more like medium level, but I am still unsure about this. Would you consider it as high level as some of the popular scripting languages? Or does it accommodate more than one level? From what I have read from various sources, **C#** is considered a **3GL** language. A higher le...
[ -0.09728920459747314, 0.1381351351737976, 0.25295624136924744, 0.2503833770751953, -0.13010111451148987, -0.08982548117637634, 0.055218636989593506, 0.2125682532787323, -0.22966118156909943, -0.3548467457294464, -0.2217690348625183, 0.9122106432914734, -0.4552491307258606, -0.2860015630722...
by itself (not considering the .Net framework), it is not a huge departure from other C based languages so in that sense the 3GL definition fits. Here is a link to wikipedia for reference: <http://en.wikipedia.org/wiki/Third-generation_programming_language>
[ -0.03542507439851761, -0.0915493592619896, 0.19763456284999847, -0.1554270088672638, -0.43836596608161926, -0.2753567099571228, 0.2717089056968689, 0.18506713211536407, -0.10731389373540878, -0.23637700080871582, -0.3727596402168274, 0.5205177664756775, -0.42729994654655457, -0.28188690543...
Can anyone tell me the difference in how an application is delivered and installed to an android G1 phone when it is downloaded from Market vs downloaded from my webserver? This little test app: <http://yootles.com/outbox/TallyBee.apk> (keeps a simple count) Installs on my (unhacked) G1, but fails to install on tw...
[ 0.4357627034187317, 0.06945780664682388, 0.3140522837638855, 0.09412210434675217, -0.2756340205669403, 0.20939259231090546, 0.3730088770389557, -0.24975772202014923, -0.15394482016563416, -0.5106176733970642, 0.34919440746307373, 0.5420636534690857, -0.055042289197444916, -0.09801550954580...
their phones to allow "unknown sources" in Application Settings. * I want to get the install working from my server in order to expedite testing. From what I have read from various sources, **C#** is considered a **3GL** language. A higher level language 4GL would look more like natural language and a 5GL language is a...
[ 0.37348756194114685, 0.1932251900434494, 0.29193559288978577, -0.01092334184795618, 0.17753717303276062, 0.14363926649093628, 0.4076330065727234, 0.19401967525482178, -0.03929000347852707, -0.540134847164154, -0.17027024924755096, 0.8595570921897888, -0.5805562734603882, -0.634497463703155...
so in that sense the 3GL definition fits. Here is a link to wikipedia for reference: <http://en.wikipedia.org/wiki/Third-generation_programming_language>
[ -0.15856535732746124, -0.05027635022997856, 0.395281583070755, -0.16602399945259094, -0.4358602464199066, -0.1512969434261322, 0.269632488489151, 0.09584852308034897, -0.14415264129638672, -0.5086169838905334, -0.5845288634300232, 0.655196487903595, -0.28008946776390076, -0.256066560745239...
I'm currently trying to code a custom image cropping system similar to other ones on the internet where a user can select a cropping area and then have their image cropped accordingly. The application is in Rails and we're using Paperclip with Amazon S3 to store the files. I'm having a lot of trouble though getting RMa...
[ 0.625137448310852, -0.08912606537342072, 0.7941242456436157, 0.0837521106004715, -0.2702096402645111, 0.0047875382006168365, 0.11199073493480682, -0.7985305786132812, -0.5086996555328369, -0.5301269292831421, 0.2506610155105591, 0.4573186933994293, -0.14898164570331573, 0.01123233698308467...
orig_img = Magick::ImageList.new orig_img.from_blob(image_data) args = [params[:x1].to_i, params[:y1].to_i, params[:width].to_i, params[:height].to_i] orig_img.crop!(*args) photo.update_attributes({:photo => orig_img.to_blob}) photo.photo.reprocess! photo.save end ``` The mai...
[ -0.028436653316020966, 0.08525025844573975, 0.8222720623016357, -0.16065183281898499, -0.065274178981781, 0.09956753253936768, 0.2008388638496399, -0.6799349188804626, -0.5774648785591125, -0.5711427330970764, -0.01730245165526867, 0.5213130116462708, -0.3218476176261902, -0.01293276157230...
problem for the time being as follows: ``` photo = Photo.find(params[:id]) image_data = Net::HTTP.get_response(URI.parse(photo.photo.url(:big))).body orig_img = Magick::ImageList.new orig_img.from_blob(image_data) args = [params[:x1].to_i, params[:y1].to_i, params[:width].to_i, params[:height].to_i] orig_...
[ 0.19462455809116364, 0.011965272016823292, 0.6639738082885742, 0.14164701104164124, -0.13512156903743744, -0.2954554259777069, 0.27751582860946655, -0.28318580985069275, -0.5732251405715942, -0.6607341170310974, -0.1919088512659073, 0.5485307574272156, -0.13922439515590668, 0.0528603084385...
Just wondering what the general consensus was about returning enums from methods indicating the status. The notion of returning codes (ints) is pretty innate in oldschool systems programming (C) but I am wondering if the methodology for indicating the status has changed. thanks **Edit:** I am aware that enums are ba...
[ 0.3758930265903473, -0.11853349208831787, 0.03141995146870613, 0.12901252508163452, -0.4279429614543915, 0.11811689287424088, 0.11652599275112152, 0.4838579595088959, -0.3967801630496979, -0.429854154586792, -0.10587850213050842, -0.04936880245804787, 0.4218757450580597, 0.0012463238090276...
an int return for a status code. If you are returning enums to indicate errors instead of throwing exceptions you are, of course, in a state of sin. Are callers really interested in the state of something? I've generally found that sort of thing in C-style function libraries where there are no objects to represent sta...
[ 0.15715397894382477, -0.13921912014484406, -0.3447469472885132, 0.006551575846970081, -0.30068129301071167, 0.04403848201036453, 0.6124789714813232, -0.00961066409945488, -0.17474353313446045, -0.5129172205924988, -0.10325995832681656, 0.5077990889549255, -0.19652269780635834, 0.0090009104...
I have built a custom control that has a small amount of JavaScript. The JS is maintained as an embeded resource. When my control is rendered, I added it to the page as follows: ``` Page.ClientScript.RegisterClientScriptResource( GetType(), "Resources.MyControl.js"); ``` The control works just fine but when it i...
[ 0.0924326479434967, -0.004113270901143551, 0.5387434363365173, 0.048359014093875885, -0.007751353085041046, 0.08485989272594452, 0.12855349481105804, 0.037810955196619034, 0.049389131367206573, -0.7577781677246094, -0.14800436794757843, 0.43385234475135803, -0.43131333589553833, 0.08040248...
fixes the issue as it is loaded at the begining of the initial page request. Any other fixes? Any way to use RegisterClientScriptResource from within an update panel? If you are returning enums to indicate errors instead of throwing exceptions you are, of course, in a state of sin. Are callers really interested in the...
[ 0.23132851719856262, 0.10252360254526138, 0.10880273580551147, 0.26594212651252747, -0.026097021996974945, 0.15469898283481598, 0.5352949500083923, 0.08449788391590118, -0.3431623876094818, -0.5364407896995544, -0.22586378455162048, 0.5920742154121399, -0.44645053148269653, -0.053409423679...
in classes and allow client code to detect their state through properties rather than as the result of an Open() method.
[ -0.032023970037698746, -0.11956732720136642, -0.4325934052467346, 0.2080293744802475, 0.01634795404970646, -0.09791475534439087, 0.35236695408821106, 0.1283394992351532, -0.13042372465133667, -0.8703393936157227, -0.4929450750350952, 0.05448068678379059, -0.07941675931215286, 0.22251829504...
I have a class defined in a file my Rails project's `lib` dir that will implement a bunch of utility functions as class methods. I'd like to write tests against those methods using Test::Unit and have them run as part of the project's regular testing routine. I tried sticking a file at the top level of the `test` dir....
[ 0.3916648030281067, -0.01365972775965929, -0.24618279933929443, 0.04780586436390877, -0.17913024127483368, -0.07721501588821411, 0.359091579914093, -0.1392873078584671, 0.23613601922988892, -0.47877493500709534, 0.346809446811676, 0.6260027289390564, -0.32832592725753784, 0.067678622901439...
them in your units directory without any complications. My Library: ``` [ cpm juno ~/apps/feedback ] cat lib/my_library.rb class MyLib def look_at_me puts "I DO WEIRD STUFF" end end ``` My Test: ``` [ cpm juno ~/apps/feedback ] cat test/unit/fake_test.rb require 'test_helper' class FakeTest < ActiveSuppor...
[ 0.5607001781463623, 0.39679694175720215, 0.5880119204521179, 0.2841455936431885, 0.2596781551837921, 0.048548195511102676, 0.7416003942489624, -0.3144564628601074, -0.03943299874663353, -0.4920293390750885, -0.04018272086977959, 0.2916524112224579, 0.10437538474798203, 0.2932453751564026, ...
failures, 0 errors Loaded suite /var/lib/gems/1.8/bin/rake Started Finished in 0.00094 seconds. 0 tests, 0 assertions, 0 failures, 0 errors ``` As long as it ends in \_test.rb it should pick it up.
[ 0.3801281154155731, -0.18717750906944275, 0.44740521907806396, 0.2011750489473343, -0.10168132185935974, -0.07476558536291122, 0.727142333984375, -0.1607767790555954, 0.418536514043808, -0.5943975448608398, 0.2918809652328491, 0.5161921977996826, 0.32014599442481995, 0.25016552209854126, ...
Putting aside whether the use of [isinstance is harmful](http://www.canonical.org/~kragen/isinstance/), I have run into the following conundrum when trying to evaluate isinstance after serializing/deserializing an object via Pickle: ``` from __future__ import with_statement import pickle # Simple class definition cla...
[ -0.09468389302492142, -0.0827050507068634, 0.20637555420398712, -0.06051496043801308, -0.10402689129114151, -0.05577772110700607, 0.1823371797800064, -0.24878762662410736, -0.08361080288887024, -0.7405227422714233, 0.07796301692724228, 0.38809487223625183, -0.27888843417167664, 0.208490282...
from the pickled file with open("c:\\pickletest.dat", "rb") as f: x2 = pickle.load(f) # The class names appear to match print x.__class__ print x2.__class__ # Uh oh, this fails...(why?) assert isinstance(x2, x.__class__) ``` Can anyone shed some light on why isinstance would fail in this situation? In other wor...
[ -0.09625397622585297, -0.13380564749240875, 0.25597354769706726, -0.18236590921878815, -0.16643661260604858, -0.1871374398469925, 0.05827190354466438, -0.31534773111343384, -0.31979018449783325, -0.33647671341896057, -0.08266175538301468, 0.629258930683136, -0.1607058346271515, 0.032794874...
return klass ``` To find and instantiate a class. So of course if you replace a class with an identically named class, the `klass = getattr(mod, name)` will return the new class, and the instance will be of the new class, and so isinstance will fail.
[ -0.5067273378372192, -0.12493053078651428, 0.14451320469379425, 0.02705576829612255, -0.2195233851671219, -0.15571314096450806, 0.6067829132080078, -0.28808051347732544, -0.08404101431369781, -0.5953618288040161, -0.6283264756202698, 0.28710752725601196, -0.4432694613933563, 0.263507336378...
There are 46 links on the site: <http://www.math.hmc.edu/~ajb/PCMI/problem_solve.html>. I want links from 7th link to 33th link. I need them separated to a file. **Can I copy the outgoing links?** Grep source for ``` <a href ``` then take the result into vim and use the following command ``` %s/.*<a href="\(.*\)"...
[ -0.1187833696603775, -0.010466030798852444, 0.6388098001480103, 0.11655782163143158, -0.13079777359962463, 0.21286259591579437, 0.19536477327346802, -0.4187963306903839, -0.5704707503318787, -0.31361687183380127, -0.24944911897182465, 0.5376416444778442, 0.12230846285820007, 0.359566718339...
Is it possible to generate random numbers through physical process simulation? If I simulate the physical roll of a dice (i.e. you picking it up, shaking it in your hand, releasing it onto the table and recording which side ends up "up"...) will that produce a "random" number or would I just have a complex simulation ...
[ 0.3049298822879791, -0.07676815986633301, -0.01308909896761179, 0.5947973132133484, -0.0314452163875103, 0.09399528801441193, -0.15843403339385986, -0.19713254272937775, -0.49587923288345337, -0.3743167817592621, 0.2875584363937378, 0.41893354058265686, -0.1992161124944687, 0.1882638335227...
generating random numbers), you will always get the same value back, because every step in the process will happen the same way every time. Say you did use a base pseudo random number generator (PRNG): Since your simulation would only be as random as the other PRNG you were using, you may as well just use the other P...
[ 0.2344243824481964, -0.563069224357605, 0.023286806419491768, 0.5184065699577332, -0.2668178081512451, -0.0021898008417338133, -0.10005945712327957, -0.11889349669218063, -0.39173170924186707, -0.2588287591934204, 0.23620887100696564, 0.33180487155914307, -0.5115272998809814, 0.23006919026...
I would like to write a web page where users can search a directory on NTFS for certain criteria and display the results. Does the directory have to be indexed? Is there a .NET accessible windows search API that I can use to query the directory? All you get is System.IO.DirectoryInfo, and it doesn't even have built i...
[ 0.5450567603111267, -0.00026911194436252117, 0.29476505517959595, 0.2066662460565567, 0.1633954793214798, -0.37736332416534424, -0.000014846328667772468, 0.0444086492061615, -0.2687333822250366, -0.7589259743690491, 0.22153322398662567, 0.42297494411468506, -0.2691640555858612, 0.342215806...
does someone know if its posible to debug a proxy.pac, this file is written in Javascript. how can it be attached to some debug engine like Visual Studio or any other IDE There is "pactester" on Google Code. Works beautifully. * <http://code.google.com/p/pactester/> **Edit:** The tester has now been moved into the p...
[ -0.00215205829590559, 0.10833024233579636, 0.025282740592956543, 0.506852388381958, -0.15646497905254364, 0.03763894364237785, 0.26535072922706604, -0.19990965723991394, 0.0766097828745842, -0.4902403950691223, 0.27213263511657715, 0.2647953927516937, 0.055699422955513, -0.2151824533939361...
I'm using SqlServer to drive a WPF application, I'm currently using NHibernate and pre-read all the data so it's cached for performance reasons. That works for a single client app, but I was wondering if there's an in memory database that I could use so I can share the information across multiple apps on the same machi...
[ 0.24299149215221405, 0.3220266103744507, 0.04076945409178734, -0.018656659871339798, -0.4696286916732788, 0.05762350559234619, 0.1881791055202484, -0.16820316016674042, -0.02883460931479931, -0.6828434467315674, 0.24409572780132294, 0.3682556450366974, -0.16866789758205414, 0.2720986902713...
can be your friend!
[ 0.06722092628479004, -0.0055228546261787415, 0.22028295695781708, 0.18666863441467285, 0.4868742823600769, -0.1977868676185608, 0.357928067445755, 0.32002830505371094, -0.2012849897146225, -0.2691875994205475, -0.07033098489046097, 0.22217322885990143, 0.03515740483999252, -0.3535246551036...
I have a question on sockets. I have this code: ``` while(bytes = recv(sClient, cClientMessage, 599, 0)){ ``` This puts the message it recives into cClientMessage and the message is always "Message". How I made an if statement like `if(cClientMessage == "Message"){//do func}`. Now this code will not do the function ...
[ -0.018562911078333855, -0.012913703918457031, 0.2768249213695526, 0.024195963516831398, -0.057760026305913925, -0.08649077266454697, 0.377084344625473, -0.2194126695394516, -0.3567873239517212, -0.43483397364616394, -0.14212754368782043, 0.641076922416687, -0.45497986674308777, -0.01280263...
strlen( "Message") )) == 0 ) { // do something } ```
[ 0.1770743578672409, 0.03634365648031235, 0.27285054326057434, -0.4254764914512634, 0.010427411645650864, -0.24820248782634735, 0.6666896343231201, -0.22930407524108887, 0.01842554658651352, -0.3056449890136719, -0.4192618131637573, 0.5328289866447449, -0.4543743431568146, 0.076407402753829...
How do I redirect permanently in ASP DOT NET? I'd like to do a 301 redirect from one page on my site to another page. ``` protected void Page_PreInit(object sender, EventArgs e) { Response.StatusCode = 301; Response.StatusDescription = "Moved Permanently"; Response.RedirectLocation = "AnotherPage.aspx"; ...
[ -0.047978825867176056, -0.21817892789840698, 1.0024049282073975, -0.3001558780670166, -0.07330938428640366, -0.024430543184280396, 0.3806378245353699, -0.24516484141349792, -0.2795363664627075, -0.8130529522895813, -0.18859654664993286, 0.4022887945175171, -0.22771577537059784, 0.115325696...
I have set up a WCF service on a server which lives in its own Workgroup. I've tried to make a TCP/IP connection to it from a client that lives on the corporate domain. When I try to open a connection, I get a SecurityNegotiationException with the message: > "A remote side security requirement > was not fulfilled du...
[ 0.27035677433013916, 0.1634158194065094, 0.6125324964523315, -0.21996131539344788, 0.062115106731653214, -0.26592856645584106, 0.37239477038383484, -0.27279677987098694, -0.01822432316839695, -0.5047650933265686, 0.01680937223136425, 0.4121350646018982, -0.2491861879825592, 0.2523762881755...
that the client is attempting to log on to the server using my corporate network login and password. Since the server is not part of the corporate network, it has no knowledge of my corporate identity and then rejects the login / connection attempt. Whether this analysis is correct or not, I have no idea. Google resul...
[ 0.26896658539772034, 0.5140098929405212, 0.09163918346166611, 0.03211498633027077, 0.40745070576667786, -0.05021650716662407, 0.25520944595336914, 0.3630293905735016, -0.26864415407180786, -0.19981016218662262, 0.04414401948451996, 0.46565455198287964, -0.11066590249538422, 0.4051047265529...
password, I tried domain as the computer's ip address as "10.0.0.11", username as "Administrator", and password as "". <http://www.codeproject.com/KB/dotnet/UserImpersonationInNET.aspx?display=Print> Unfortunately, it fails with the message: > "Logon failure: unknown user name or bad password" Another hint to the p...
[ -0.024897892028093338, 0.20872758328914642, 0.4631487727165222, 0.07293412834405899, 0.08664219081401825, 0.13655684888362885, 0.423021137714386, 0.13674722611904144, -0.20129278302192688, -0.8661752343177795, 0.26603570580482483, 0.571150541305542, -0.12314554303884506, 0.4343507587909698...
is to disable security. You have to create a new binding configuration at the server side with security mode set to "None". Name it "NoSecurity" for convenience. This configuration must have the same type (wsHttpBinding, etc.) you use at your endpoint. Then set the bindingConfiguration property of your endpoint to "NoS...
[ 0.09961959719657898, -0.3523377776145935, 0.6166372895240784, -0.05575687065720558, 0.21955165266990662, -0.6497828364372253, 0.47131291031837463, -0.27056533098220825, -0.09223831444978714, -0.3883182406425476, -0.5325107574462891, 0.7121118307113647, -0.7422155141830444, 0.20551262795925...
This might be a really trivial question, but I've been writing Java programs at my school and I just found out that I can create websites with Java as well. * How can I do that? Any good books/tutorials for that? * Which is better for Web development, Java or PHP? * Also, when using PHP, MySQL comes into picture and ...
[ 0.5546894669532776, 0.17111359536647797, -0.0962987020611763, 0.1393454372882843, -0.22209395468235016, -0.2330002635717392, 0.24911107122898102, 0.17577916383743286, -0.4258156716823578, -0.7877386808395386, 0.15132379531860352, 0.5733225345611572, -0.040028154850006104, -0.09938714653253...
people only use the Web (servlets) part with additional frameworks thrown in, most notably Spring but also Struts, Seam and others. All you need is an IDE like IntelliJ, Eclipse or Netbeans, the JDK, the Java EE download and a servlet container like Tomcat (or a full-blown application server like Glassfish or JBoss). ...
[ 0.389007568359375, -0.21429459750652313, 0.17578831315040588, 0.5081688165664673, 0.10839452594518661, -0.15853284299373627, 0.11991770565509796, 0.20195835828781128, -0.35676702857017517, -0.3085208833217621, -0.39560437202453613, 0.10318901389837265, -0.10699881613254547, -0.226006358861...
I have many `boost::shared_ptr<MyClass>` objects, and at some point I intentionally want to `delete` some of them to free some memory. (I know at that point that I will never need the pointed-to `MyClass` objects anymore.) How can I do that? I guess you can't just call `delete()` with the raw pointer that I get with ...
[ 0.18006494641304016, 0.06949587166309357, 0.0012638167245313525, 0.010520241223275661, -0.2824837863445282, -0.03630047291517258, 0.19695572555065155, -0.00017105229198932648, -0.19279345870018005, -0.3938446342945099, 0.3083444833755493, 0.4513910412788391, 0.02543715201318264, 0.25099980...
throw away the old value and delete it. You just do ``` ptr.reset(); ``` See the [shared\_ptr manual](http://www.boost.org/doc/libs/release/libs/smart_ptr/shared_ptr.htm). It is equivalent to ``` shared_ptr<T>().swap(ptr) ``` You call `reset` on every smart pointer that should not reference the object anymore. Th...
[ 0.3516654074192047, -0.09791727364063263, 0.13326023519039154, -0.02065977081656456, -0.0019047446548938751, -0.03445586934685707, 0.049821656197309494, -0.23070412874221802, -0.48011285066604614, -0.2003175914287567, -0.24181847274303436, 0.5228064656257629, -0.2441738247871399, 0.2646991...
In the following C# code snippet I have a '`while`' loop inside a '`foreach`' loop and I wish to jump to the next item in '`foreach`' when a certain condition occurs. ``` foreach (string objectName in this.ObjectNames) { // Line to jump to when this.MoveToNextObject is true. this.ExecuteSomeCode(); whil...
[ 0.20487447082996368, -0.5609024167060852, 0.6228148937225342, -0.25119832158088684, 0.5048525333404541, 0.06076091155409813, 0.5007020235061646, -0.2929163873195648, -0.3082628846168518, -0.21248005330562592, -0.5616980791091919, 0.5054882168769836, -0.14490126073360443, 0.1358990967273712...
// What should go here to jump to next object. } this.ExecuteEvenMoreCode(); this.boolValue = this.ResumeWhileLoop(); } this.ExecuteSomeOtherCode(); } ``` '`continue`' would jump to the beginning of the '`while`' loop not the '`foreach`' loop. Is there's a keyword to use here, or shoul...
[ 0.15697404742240906, -0.4995214343070984, 0.481795072555542, -0.13615964353084564, 0.409152626991272, -0.16373471915721893, 0.43322041630744934, -0.13853153586387634, -0.3697521686553955, -0.338890016078949, -0.2478315532207489, 0.6495344042778015, -0.128151074051857, -0.10515439510345459,...
to when this.MoveToNextObject is true. this.ExecuteSomeCode(); while (this.boolValue) { if (this.MoveToNextObject()) { // What should go here to jump to next object. break; } } if (! this.boolValue) continue; // continue foreach this.ExecuteSomeOt...
[ 0.22502121329307556, -0.24774949252605438, 0.6041941046714783, -0.24239684641361237, 0.6780516505241394, -0.3599032461643219, 0.4720148742198944, -0.3099023103713989, -0.1743243783712387, -0.47558632493019104, -0.4905579388141632, 0.589222252368927, -0.25122928619384766, 0.1585274040699005...
I'm making a small ruby command line script and I wanted to know what the simplest way to have the program emit a beep is. Try printing the audible bell character: ``` print "\a" ```
[ 0.6785730719566345, 0.343807190656662, 0.05081989988684654, -0.2537737190723419, 0.07538215816020966, 0.14881277084350586, 0.31891536712646484, -0.12187790125608444, -0.12339706718921661, -0.02882974036037922, 0.04963870719075203, 0.5292165279388428, -0.5544701218605042, 0.2348046302795410...
I want to select a particular subitem in a row of a listview. For example if the row contains 5 subitems, if I click the 3rd subitem it only gets selected. I solved the issue successfully > but what I want to see printed out is, surprise: > > > [('亀',), ('犬',)] What do you want to see it printed out on? Because if ...
[ 0.09753787517547607, 0.033665984869003296, 0.05773380026221275, -0.03506244346499443, -0.20085935294628143, 0.1525934934616089, 0.26120826601982117, -0.14404723048210144, -0.3305763006210327, -0.3743865489959717, -0.1370321661233902, 0.5353569388389587, -0.29291412234306335, -0.11619912087...
easily. As a prerequisite you should be using Unicode strings (u''). And, as mentioned by Matthew, if you want to be able to write u'亀' directly in source you need to make sure Python can read the file's encoding. For occasional use of non-ASCII characters it is best to stick with the escaped version u'\u4e80', but wh...
[ 0.05744581297039986, 0.12378770112991333, 0.035416942089796066, 0.17046475410461426, 0.08153065294027328, 0.04419966787099838, 0.33804944157600403, 0.1237993836402893, -0.19686688482761383, -0.7660989165306091, -0.3931584656238556, 0.40602630376815796, -0.05187152698636055, -0.302451103925...
you'd want: ``` def reprunicode(u): return repr(u).decode('raw_unicode_escape') print u'[%s]' % u', '.join([u'(%s,)' % reprunicode(ti[0]) for ti in t]) ``` This would work, but if the console didn't support Unicode (and this is especially troublesome on Windows), you'll get a big old UnicodeError. In any case,...
[ -0.18254996836185455, -0.008056998252868652, 0.37984561920166016, -0.2335510402917862, -0.2863561809062958, 0.22672966122627258, 0.4754621684551239, -0.32951316237449646, -0.3750271797180176, -0.3756820559501648, -0.4294279217720032, 0.7649278044700623, -0.3971090316772461, -0.043164629489...
shows most Unicode characters verbatim * Unicode in the Windows console is better supported (you can still get UnicodeError on Unix if your environment isn't UTF-8) Python 3.0 is a little bit new and not so well-supported by libraries, but it might well suit your needs better.
[ -0.3083411157131195, 0.12204357236623764, 0.2866207957267761, 0.020879270508885384, -0.5244777798652649, 0.18273957073688507, 0.23622258007526398, 0.2810867726802826, -0.3739930987358093, -0.7388119697570801, -0.2549377381801605, 0.09465879201889038, -0.12282143533229828, -0.35976183414459...
have anyone used this before, i need free country, city, IP database for sqlserver [ipinfodb](http://ipinfodb.com/) provide free geolocation data for MySQL. With a simple database translator, you can put it into different database, since the table structure is simple. They also provide data in CSV format, that will be ...
[ 0.4745073914527893, 0.08664482831954956, 0.5670587420463562, 0.34853461384773254, -0.0159767996519804, -0.25310176610946655, 0.07361730933189392, 0.09394262731075287, -0.2137201875448227, -0.8522555232048035, 0.11179011315107346, 0.39523327350616455, -0.15798510611057281, 0.019388731569051...
I'm having some trouble figuring out how to slice python lists, it is illustrated as follows: ``` >>> test = range(10) >>> test [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> test[3:-1] [3, 4, 5, 6, 7, 8] >>> test[3:0] [] >>> test[3:1] [] >>> test [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] ``` To my understanding, python slice means lst[st...
[ 0.20310857892036438, -0.046896353363990784, -0.052830275148153305, -0.4373607039451599, -0.34446418285369873, 0.32252490520477295, 0.22235405445098877, -0.5043344497680664, -0.1409113109111786, -0.5978619456291199, -0.19805249571800232, 0.1912071704864502, -0.2718455493450165, -0.384906888...
8, 9] test[:3] = [0, 1, 2] ```
[ 0.25211063027381897, 0.2561020255088806, 0.016509512439370155, -0.0869622752070427, -0.007877476513385773, 0.15151332318782806, 0.3709145784378052, -0.4563552439212799, -0.014988401904702187, -0.22864088416099548, -0.06829261779785156, 0.4694960415363312, -0.27420392632484436, 0.1629811823...
What is the best way to get the auto-id value in the same SQL with a SELECT? A forum said adding this "`; has Return Scope_Identity()`" in the end of the SQL works in ASP. Is there a corresponding way in PHP? It depends on your database server. Using MySQL, call [`mysql_insert_id()`](http://us2.php.net/mysql_inse...
[ 0.21446757018566132, -0.34507298469543457, 0.5155782699584961, -0.03456350043416023, 0.2444561868906021, 0.022356687113642693, -0.1724553108215332, -0.3616689443588257, -0.08531348407268524, -0.5946076512336731, -0.11320702731609344, 0.660295307636261, -0.17302820086479187, -0.109202064573...
How do we fix the maximum number of columns for a particular ListView control? Is there any thing like this: ``` listViewControl.MaximumColumns = 3; ``` I just wanted to update with the scheduling tool we eventually choose. [dhtmlxScheduler](http://www.dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml) - we are ve...
[ 0.1512700766324997, -0.10549964010715485, 0.6503298282623291, 0.15061981976032257, -0.10130840539932251, -0.17910827696323395, 0.08795539289712906, -0.061076559126377106, -0.5701672434806824, -0.6152547597885132, 0.08694864809513092, 0.5519039034843445, -0.28415676951408386, -0.07492191344...
Had this question in an interview. No. `varchar2` is an Oracle datatype, equivalent to its (as well as TSQL's) own `varchar`. *CLARIFICATION* The differentiation between Oracle's `varchar` and `varchar2` seems to have originated back when [the ANSI SQL standard was still being formulated](http://asktom.oracle.com/pls...
[ -0.0918821394443512, 0.07548654079437256, 0.4170953035354614, -0.47305554151535034, -0.47150152921676636, 0.07365569472312927, 0.3829989731311798, -0.256293386220932, -0.2808806002140045, -0.02641238085925579, -0.13552424311637878, 0.2832271456718445, -0.18538998067378998, 0.17539910972118...
I have a question. How can i invoke a web service and get the result from a C# desktop application. I am making a desktop app and I want it to be able to connect to my online ASP.net web services. How is this possible? 1. In Solution Explorer, right-click your project node and select Add **Service** Reference. 2. Enter...
[ 0.4085339605808258, -0.03489743173122406, 0.6268494129180908, 0.3044365644454956, -0.08224588632583618, -0.019103936851024628, 0.22164897620677948, 0.02707199566066265, -0.056896887719631195, -0.9430057406425476, -0.01736428029835224, -0.0000753300337237306, -0.14348649978637695, 0.3990041...
class and invoke methods on it. The rest works like magic. :) AB Kolan was also correct, but Add **Web** Reference uses the old-style web services framework whereas Add **Service** References uses the new WCF stack. Important note: It is **not** required that the service itself use WCF for you to use WCF on the client...
[ 0.41305267810821533, 0.0017400956712663174, 0.07499616593122482, -0.018380392342805862, -0.3746129870414734, -0.18839214742183685, 0.37072327733039856, -0.4665587842464447, -0.01577555015683174, -0.7358341813087463, -0.15273670852184296, 0.557018518447876, -0.3644382655620575, 0.0867509692...
I have a solution that contains several c# projects and I would like to be able to set the output path and other properties on all the projects together in a single place. Property Sheets (vsprops) do not seem to be able available for C# projects and the $(SolutionDir) variable is ignored. Are there any other methods t...
[ 0.28386226296424866, 0.091347336769104, 0.025281233713030815, 0.0800957903265953, -0.07296823710203171, 0.029491016641259193, 0.1443270444869995, -0.22010138630867004, -0.3270418345928192, -0.7509332299232483, 0.07252014428377151, 0.2384839951992035, -0.307015597820282, -0.0382281057536602...
* When building in Visual Studio if changes are made to the common project it is necessary to touch/reload any projects that reference it for the changes to be picked up. * Any properties which are also set in a individual project will override the common properties. * Setting $(SolutionDir) as the output path via the ...
[ 0.2363518476486206, -0.011449900455772877, 0.5185665488243103, -0.05787124112248421, 0.05731898918747902, -0.16017591953277588, 0.49210211634635925, -0.28924497961997986, -0.16120366752147675, -0.9284353852272034, -0.4493618607521057, 0.308836966753006, -0.3216143250465393, 0.0433152690529...
csproj files can also use an import element as described [here](http://msdn.microsoft.com/en-us/library/92x05xfs.aspx). The import element is exactly what you require. You could create a Common.proj that contains something like: ``` <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="3.5"xmlns="http://schem...
[ 0.06723080575466156, 0.2625383138656616, 0.4993670582771301, -0.17239880561828613, -0.10242557525634766, 0.03772065415978432, 0.15678496658802032, -0.3223989009857178, -0.2278396040201187, -0.631656289100647, -0.22888490557670593, 0.4513546824455261, -0.43157756328582764, -0.06061546131968...
does not get set when you run an msbuild command via the commandline on a specific project that is contained in a solution. It will be set when you build your solution in Visual Studio.
[ 0.27216261625289917, -0.09822418540716171, 0.6156530976295471, 0.24150139093399048, 0.4687756896018982, -0.16112616658210754, 0.2858225405216217, 0.1493508368730545, -0.07060190290212631, -0.8622210025787354, -0.5486921668052673, 0.33277207612991333, -0.44262954592704773, -0.07656778395175...
`ps axuw| grep mysql` indicates only MySQL process, but if I run htop I can see 10 rows each one of them with a separate PID. So I wonder if they are threads or processes that for some reason I cannot see using ps. Would it make any sense to try to limit them to two on my development machine, where I don't need concur...
[ 0.15097662806510925, 0.010775389149785042, 0.36729469895362854, 0.09418118000030518, -0.04623612388968468, 0.21535637974739075, 0.031806595623493195, 0.009211225435137749, -0.5990272760391235, -0.9674521088600159, 0.009545128792524338, 0.284078985452652, -0.4228600859642029, -0.11453255265...
when nothing is happening.
[ 0.10045049339532852, -0.11282768100500107, 0.025727415457367897, 0.16869080066680908, 0.20156195759773254, -0.24631915986537933, 0.5963865518569946, 0.3741813898086548, -0.20607924461364746, -0.29938748478889465, -0.3586229085922241, 0.3770861327648163, -0.21385742723941803, -0.11307395994...
I have created a class file in the App\_Code folder in my application. I have a session variable ``` Session["loginId"] ``` I want to access this session variables in my class, but when I am writing the following line then it gives error ``` Session["loginId"] ``` Can anyone tell me how to access session variabl...
[ 0.03066815249621868, 0.2273300439119339, 0.35734203457832336, -0.017100926488637924, -0.012964775785803795, -0.04728802666068077, 0.37649989128112793, 0.04306746646761894, -0.22214055061340332, -0.8734413981437683, -0.303296834230423, 0.4569125473499298, -0.26096415519714355, 0.20320402085...
around the ASP.NET session to simplify access to session variables: ``` public class MySession { // private constructor private MySession() { Property1 = "default value"; } // Gets the current session. public static MySession Current { get { MySession session = ...
[ -0.25126731395721436, -0.37119653820991516, 0.5709933638572693, -0.004470674321055412, 0.03909197449684143, -0.06133008748292923, 0.4306826591491699, 0.08471918851137161, -0.46733036637306213, -0.4247235953807831, -0.49167534708976746, 0.6004177331924438, -0.16541226208209991, 0.1672928035...
== null) { session = new MySession(); HttpContext.Current.Session["__MySession__"] = session; } return session; } } // **** add your session properties here, e.g like this: public string Property1 { get; set; } public DateTime MyDate { get; set; } p...
[ 0.32591670751571655, -0.3711754381656647, 0.5724509358406067, -0.11736851930618286, 0.11751225590705872, -0.1502770632505417, 0.5213599801063538, -0.14937090873718262, -0.34119558334350586, -0.6599305272102356, -0.27819886803627014, 0.49437379837036133, -0.05612947791814804, 0.212019309401...
LoginId { get; set; } } ``` This class stores one instance of itself in the ASP.NET session and allows you to access your session properties in a type-safe way from any class, e.g like this: ``` int loginId = MySession.Current.LoginId; string property1 = MySession.Current.Property1; MySession.Current.Property1 = ne...
[ 0.0031433480326086283, -0.18505136668682098, 0.37185555696487427, 0.13016057014465332, 0.007124471943825483, -0.2630566656589508, 0.5206801891326904, -0.2027779519557953, -0.2798517346382141, -0.9365061521530151, -0.23692592978477478, 0.45934954285621643, -0.16087639331817627, 0.1683826595...
not null)
[ 0.049531567841768265, 0.26586905121803284, -0.10775969177484512, 0.1669524759054184, -0.11039607226848602, 0.14912845194339752, 0.4924110472202301, 0.04115569218993187, -0.39004936814308167, -0.004524582531303167, -0.352019727230072, -0.0307504590600729, -0.5569760799407959, 0.386587888002...
Is there a clipboard changed or updated event that i can access through C#? I think you'll have to use some p/invoke: ``` [DllImport("User32.dll", CharSet=CharSet.Auto)] public static extern IntPtr SetClipboardViewer(IntPtr hWndNewViewer); ``` See [this article on how to set up a clipboard monitor in c#](https://web...
[ 0.3631221354007721, -0.20664945244789124, 0.9246436357498169, -0.07111386954784393, 0.21203602850437164, 0.001475973054766655, -0.18254725635051727, -0.06898487359285355, -0.4564659595489502, -0.6549357175827026, 0.22413979470729828, 0.8185664415359497, -0.5316474437713623, 0.2338381707668...
break; // ... } } ``` (There's more to be done; passing things along the clipboard chain and unregistering your view, but you can get that from [the article](https://web.archive.org/web/20131104125500/http://www.radsoftware.com.au/articles/clipboardmonitor.aspx))
[ 0.5482022762298584, 0.05232682824134827, 0.2760433852672577, -0.044026684015989304, 0.2600201666355133, -0.1952798217535019, 0.10802177339792252, 0.02888392098248005, -0.6411729454994202, -0.025418080389499664, -0.13976506888866425, 0.48761892318725586, -0.2068893164396286, 0.0079657342284...
I am working with ImageMagick and am wondering what the best way to read image data in from StdOut of the ImageMagick process. I an invoking the command to the process like so: /opt/local/bin/convert -resize 8000@ - - and then piping a byte array to the process for processing. what is the best way to read data from...
[ 0.4662039577960968, 0.017121411859989166, 0.24846303462982178, 0.05642630532383919, -0.3085971176624298, -0.055352017283439636, 0.007562397979199886, -0.1266026645898819, -0.1640806794166565, -0.8662881851196289, 0.08553021401166916, 0.678644061088562, -0.1898888200521469, 0.02037042006850...
examples of usage on the [tutorial](http://commons.apache.org/exec/tutorial.html) page.
[ 0.23218992352485657, 0.13941243290901184, -0.14300504326820374, 0.15514510869979858, 0.024552764371037483, -0.5545327663421631, 0.5508250594139099, 0.07057458907365799, -0.3540482521057129, -0.33209091424942017, -0.4052247703075409, -0.034528519958257675, 0.06519288569688797, 0.17840777337...
This question is not directly programming related but I need my Server to pass Spam filters for my app to work properly. I talked to my ISP about rDNS and the guy from tech-support told me if I write an email with what they should add to my DNS record they would do that. My question: What should I tell him to add if m...
[ 0.4467523396015167, 0.23290705680847168, 0.38687974214553833, 0.13193239271640778, -0.021834632381796837, -0.11014943569898605, 0.3627362847328186, -0.2704905867576599, -0.4067254960536957, -0.32564231753349304, -0.06889205425977707, -0.0026642470620572567, -0.28335729241371155, 0.34840860...
for order {0} PlaceOrder.success=Your order {0} was successful PlaceOrder.fail.visa=Your visa was ... PlaceOrder.fail.communications=We could not... PlaceOrder.submit=Buy now Login=Login Login.fail=Your credentials did not... Login.alread=You are already logged in ``` This way you avoid collisions: ``` EditStudent=E...
[ -0.07095292210578918, 0.3151465952396393, 0.33002084493637085, 0.09279787540435791, 0.2516942322254181, -0.048106979578733444, 0.2564854323863983, -0.1970735341310501, -0.2871203124523163, -0.596420168876648, -0.1294490247964859, 0.4325617551803589, -0.16643507778644562, 0.1953694820404052...
it was the word "no" (negative of yes). :) Last (but not least) prefixing with classname will help you when you want to refactor/rename classes and quickly update these property keys without having to look at the templates.
[ -0.047569554299116135, -0.16847708821296692, 0.03953050076961517, 0.21907678246498108, -0.2917236089706421, 0.022155672311782837, 0.2633645236492157, 0.0750068724155426, -0.010505089536309242, -0.44063523411750793, -0.2073691487312317, 0.42209213972091675, 0.2636317312717438, 0.36491173505...
Is a machine *WORD* always the same or does it depend on the machine architecture? And is the meaning of the word *WORD* context sensitive or generally applicable? The machine word size depends on the architecture, but also how the operating system is running the application. In Windows x64 for example an application ...
[ 0.18188674747943878, 0.19143038988113403, 0.09935581684112549, 0.16424450278282166, 0.1333429515361786, 0.24232076108455658, 0.2242143750190735, -0.1200607493519783, -0.3121021091938019, -0.6953388452529907, -0.30865514278411865, 0.5010986924171448, -0.22422166168689728, 0.2993776798248291...
used. It can either mean a machine word, or a type with a specific size. In x86 assembly language `WORD`, `DOUBLEWORD` (`DWORD`) and `QUADWORD` (`QWORD`) are used for 2, 4 and 8 byte sizes, regardless of the machine word size.
[ 0.03725087270140648, 0.2759956419467926, 0.12031164020299911, -0.23925058543682098, -0.12204559892416, 0.15994039177894592, 0.12583114206790924, 0.15285329520702362, -0.05123073607683182, -0.4463610351085663, -0.56854647397995, 0.2753845751285553, -0.44189056754112244, 0.21842050552368164,...
I'm making a Scorched Earth like game in Java (for my exam project :D), but I have this problem. I'm drawing a window (JFrame), setting layout to BorderLayout, applying an extended JPanel, and packing the window, but after it has been packed, it's showing some extended white space at the left and bottom border. This i...
[ 0.3897247016429901, 0.026166843250393867, 0.1712668091058731, -0.3574970066547394, -0.020563529804348946, 0.047763608396053314, 0.09258478879928589, -0.2458477020263672, -0.0438130684196949, -0.768750786781311, -0.1838415563106537, 0.44714388251304626, -0.29831427335739136, 0.1859960854053...
frame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(new java.awt.BorderLayout()); frame.getContentPane().add(p, java.awt.BorderLayout.CENTER); frame.pack(); frame.setResizable(false); frame.setVisible(true); } } ``` panel is my...
[ 0.1574825644493103, -0.11401959508657455, 0.5380144119262695, -0.36806586384773254, -0.15747757256031036, 0.07757245749235153, 0.1204252615571022, -0.49693506956100464, -0.31820574402809143, -0.942678689956665, -0.232902392745018, 0.5501114130020142, -0.4547671973705292, -0.031277906149625...
extends javax.swing.JPanel{ panel(java.awt.Dimension size){ setPreferredSize(size); } public void paint(java.awt.Graphics g){ g.setColor(java.awt.Color.BLUE); g.fillRect(0, 0, 512, 512); } } ``` Please help! I solved the problem by removing: ``` setResizable(false); ```
[ 0.31015536189079285, -0.24972668290138245, 0.6152913570404053, -0.32581427693367004, -0.19992470741271973, 0.21474093198776245, 0.32215625047683716, -0.5791215300559998, -0.057930100709199905, -0.7101300954818726, -0.06689055263996124, 0.5939566493034363, -0.4003934860229492, -0.2307656705...
I made an FPS game with MSVC++ which is running very well on Windows. But now I am trying to make it portable (at least I want to create a linux and a Windows version), so I decided to change the IDE to Code::Blocks and the framework to wxWidgets. But it seems the virtual key codes and scan codes are different on diffe...
[ 0.3924255073070526, -0.1833873987197876, 0.5153710842132568, 0.041644223034381866, -0.15798205137252808, -0.219669908285141, 0.17746871709823608, -0.22897869348526, -0.07580363005399704, -0.6150711178779602, 0.05980047583580017, 0.15569433569908142, -0.32816025614738464, 0.2577401101589203...
joke), which is fixed when change the code to use scancodes instead of virtkey codes) (edit: with wxWidgets both virtkey and scan codes on the numpad has different values depending on numlock state, bang!) Now with wxWidgets it seems the wxKeyEvent::GetRawKeyCode and the code obtained earlier from WM\_KEYDOWN's lParam...
[ 0.38665908575057983, -0.05152251198887825, 0.3786580562591553, 0.056640271097421646, -0.15169699490070343, -0.18340809643268585, 0.3273106813430786, 0.05806068331003189, -0.40309810638427734, -0.7279147505760193, -0.016772761940956116, 0.7743646502494812, -0.36989474296569824, 0.2358084768...
keyboard... But I need all of them to make Control Settings work. So the question: Is there a standard and cross-platform way to get the same code for the same key (the key at the same position to be more precise)? (at least on windows and linux) In case you haven't considered it already, you might be able to use [SDL...
[ -0.1569666564464569, -0.24744580686092377, 0.5211235284805298, 0.07615936547517776, 0.25203385949134827, -0.016821272671222687, -0.09384781122207642, 0.15265154838562012, -0.2964460551738739, -0.7006778120994568, -0.16820622980594635, 0.7240764498710632, -0.1256304532289505, 0.079315431416...
I have an ASP.NET website hosted at home on IIS. Outside my home network i can see the website, but inside the network it gives me a 404 error. I can browse the site as localhost. It seems like a DNS problem, just not sure how to fix it. That's almost certainly a NAT problem. I assume your web server sits behind a NAT ...
[ 0.22064846754074097, -0.04864294081926346, 0.24857084453105927, -0.022801455110311508, -0.10887814313173294, -0.0037392915692180395, 0.6242015361785889, 0.2977445125579834, -0.6128837466239929, -0.8693222403526306, -0.014176784083247185, 0.3251408636569977, -0.12234777212142944, 0.19249482...
to your external IP (probably a dynamic DNS name), or you're trying to access it directly using that external IP. This will probably not work out of the box since most NAT routers will only make the port mapping available for packets coming in on the router's external interface. If the above holds true, there are four...
[ 0.03414406254887581, -0.45800668001174927, 0.3471927046775818, 0.16972286999225616, -0.052590206265449524, 0.01374885905534029, 0.3890669047832489, 0.05625385046005249, -0.27508634328842163, -0.6068821549415588, -0.05545825883746147, 0.6044910550117493, -0.38314977288246155, 0.226603329181...
would handle packets coming in from the external interface, effectively correctly looping back the traffic. That will trigger the port forwarding and your site will work. Not all routers have this option, but if yours does it would be the most robust solution. If yours doesn't, you could also try to change its firmware...
[ 0.24226242303848267, -0.16188766062259674, 0.41832128167152405, 0.022950975224375725, -0.07204286009073257, -0.04083362594246864, 0.3969525396823883, -0.11600777506828308, -0.24935424327850342, -0.9853442907333374, -0.012827468104660511, 0.3598000705242157, -0.26721134781837463, -0.0287868...