text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
use of CFEXECUTE tag to call IM with parameters: `<cfexecute name="#FullIMPath#" timeout="60" arguments="""#ExpandPath(filename1)#"" ""#ExpandPath(filename2)#""" />` Comments: a. Write full path to one of ImageMagic executables (for example, convert.exe) in 'name' attribute. b. Write full paths for source and targe...
[ 0.49250131845474243, 0.08295737206935883, 0.8049681186676025, -0.0349036268889904, -0.21966613829135895, -0.020170295611023903, 0.1677698940038681, -0.3040865361690521, 0.03925953432917595, -0.6883338093757629, 0.12788255512714386, 0.4808209538459778, -0.3989163637161255, -0.08908790349960...
answers and interest. PS: Additional hints: * ImageMagick offers many formats to work with - from regular JPEGs to Photoshop \*.psd files. However, for vector formats like Encapsulated Postscript \*.eps, you need to have Ghostscript installed; * you may work with Adobe PDF and Adobe Illustrator (\*.ai) formats with s...
[ 0.20315079391002655, -0.18852141499519348, 0.47913339734077454, 0.48016971349716187, -0.33317330479621887, -0.11088847368955612, -0.13573478162288666, -0.36126306653022766, -0.1560048609972, -0.8054617047309875, 0.00644034706056118, 0.507476806640625, -0.2865045666694641, -0.38396292924880...
The Sys Admin guy is writing some common housekeeping Power Shell scripts. Predominantly for AD management (updating exchange details, moving people around security groups etc.) I'd like to use these scripts from C# (I intend to write it as a library, consumed by a web site). I've seen this [code project article](htt...
[ 0.5053009390830994, 0.1350225955247879, 0.040914881974458694, 0.17148540914058685, -0.0684986487030983, -0.2413053959608078, -0.0465896800160408, 0.27091893553733826, 0.03792060911655426, -0.4976279139518738, -0.2885128855705261, 0.6762928366661072, -0.18968579173088074, -0.209331199526786...
Services, exposing services through a web API and CmdLets. Unfortunately we’re having difficulties with Directory Services (e.g. truncated results for large sets). In the meanwhile, rather than use an inconsistent mix, I figured I should investigate using the Sys Admins’ scripts. Why re-invent the wheel? I’ve alread...
[ 0.3003847002983093, 0.2023145854473114, 0.14939992129802704, 0.11284007877111435, -0.17945066094398499, 0.12281928211450577, 0.4707132577896118, 0.00460501154884696, -0.09845564514398575, -0.9291249513626099, -0.09824227541685104, 0.4996192157268524, -0.2193208783864975, 0.2428505569696426...
from one command to another, ... accessing debug output) require more advanced/low-level/complex work. Other than that, it all just works.
[ 0.28836148977279663, 0.0820310115814209, 0.12660497426986694, 0.3555114269256592, 0.24746105074882507, -0.30426475405693054, 0.08496897667646408, -0.18166294693946838, 0.0009184372611343861, -0.5265156626701355, -0.33172059059143066, 0.6473865509033203, -0.05432990938425064, -0.13020171225...
When inserting records to a database table which has a 1:m relationship to another table, is it not best practise to ensure that the related table is updated (inserted) with a new record? Is there any consequence if just one of the related tables is updated? Also, if I update the table on the m side of the relationshi...
[ 0.24348385632038116, 0.23581598699092865, 0.1462319791316986, 0.4105515480041504, 0.4633663594722748, 0.04284263402223587, -0.21734420955181122, -0.29707175493240356, -0.4612654447555542, -0.19924159348011017, -0.04840533062815666, 0.7051256895065308, -0.1584145426750183, 0.276900500059127...
a PK system of 1, 2, 3, 4, 5 and going up in a unique fashion, should I just insert the foreign key value as a value through a stored procedure? EDIT: This sounds very n00bish but unfortunately I have only learnt/learning database design and Sql Server in particular from self practise (no formal training). Let's use y...
[ 0.17561689019203186, 0.4116603434085846, 0.21147237718105316, 0.2291506826877594, 0.015938615426421165, 0.44337424635887146, -0.49995920062065125, -0.2266748696565628, -0.37247803807258606, -0.24184462428092957, 0.11791635304689407, 0.30020663142204285, 0.07567440718412399, 0.1940796077251...
table, then yes! In reality, if your RDBMS is set up correctly with foreign keys, then you won't be able to insert a row into the `wheel` table without a parent row in `car`. I think this may address your second question too. If not, could you elaborate?
[ 0.07921808212995529, 0.4801196753978729, 0.039637982845306396, 0.11927004903554916, 0.21381382644176483, 0.2236843705177307, -0.49580544233322144, -0.062207553535699844, -0.26378828287124634, -0.31621983647346497, 0.08960070461034775, 0.49026042222976685, 0.04648333415389061, 0.11524897068...
I'm looking to work on an application that needs to run on both Windows and OSX. Since I'm already very familiar with C#/.NET I thought I would take a look at using Mono. But I also want it to very easy to install and don't want the users to have to install the Mono package separately. Is it possible to create an OS X ...
[ 0.9910666346549988, 0.13743117451667786, -0.2259833663702011, 0.1464194804430008, 0.015879925340414047, -0.20556901395320892, 0.17084607481956482, -0.32629936933517456, -0.41182824969291687, -0.3593912720680237, -0.001488395850174129, 0.7825430631637573, -0.33073690533638, 0.20397594571113...
that there's a Contents/MacOS directory inside. It will contain a file with the execute bit set. This can be machine code or any old script with a `#!` line at the beginning. All you need to do is duplicate the directory structure with a skeleton app, shove your Mono runtime into the Resources directory somewhere, and ...
[ 0.7475972771644592, 0.21554867923259735, -0.06291928887367249, 0.30129972100257874, 0.2859952747821808, -0.12277340143918991, 0.23188628256320953, 0.09974848479032516, -0.37028053402900696, -0.3758399188518524, -0.19467347860336304, 0.9086369872093201, -0.10940627008676529, -0.028624985367...
I would like to implement a heartbeat functionality in the server that would periodically alert **window clients** of its liveness. There are few ideas I am considering but would appreciate suggestions and examples/references * have a separate thread that would send a heartbeat to connected clients * have different ty...
[ 0.823258101940155, -0.10815668106079102, 0.34509238600730896, 0.05703498795628548, -0.10203073173761368, -0.06522449851036072, 0.3184220790863037, 0.056243181228637695, -0.33832088112831116, -0.7691990733146667, 0.30080464482307434, 0.46201789379119873, -0.3290072977542877, -0.250722557306...
(server might migrate to the web, but I dont think it should change the protocol much) What kind of client are we talking about? Windows client or asp.net? There are two very general patterns for this. You can either push or pull the data. Pushing doesn't work if your on the internet you'll run into firewalls and nats....
[ 0.14021040499210358, -0.45088446140289307, 0.6255706548690796, 0.16022786498069763, -0.14250722527503967, 0.01632922701537609, -0.23750902712345123, 0.10161099582910538, -0.5337759852409363, -0.6458777785301208, 0.2715011537075043, 0.4115062355995178, -0.2836313545703888, 0.147447288036346...
framework are you targeting? How many clients are you talking? A solution that can handle a dozen clients (Especially in a push model or the third model) could look very different from a solution which can scale to thousands of clients. The easiest solution is to do polling from the client side, which unless you want...
[ 0.5958335995674133, -0.2039283961057663, -0.03904919698834419, 0.3301139175891876, -0.09641755372285843, 0.1502220630645752, 0.07782512158155441, -0.3556331396102905, -0.2630508840084076, -0.5596449971199036, 0.35012373328208923, 0.46902233362197876, -0.6260792016983032, -0.105076186358928...
network strategies such as HTTP. You can do a simple remoting service over HTTP which will let you bypass firewalls. Or even better if your server is a web server then just setup a plain old xml service. I don't have any examples I can share of this, but there should be plenty around.
[ 0.18963183462619781, -0.2862781882286072, 0.14130860567092896, 0.4624420404434204, 0.03558880090713501, -0.2726224958896637, 0.1167612299323082, 0.22083356976509094, -0.41040554642677307, -1.2326571941375732, -0.0042375484481453896, 0.6673691272735596, -0.22538116574287415, -0.136952668428...
In my web app. i want to setup a route like this: ``` /document/quality/index /document/general/index /document/quality/detail/[id] /document/general/detail/[id] ``` As you can see i have two kind of documents: general and quality. What is the best way to set this up in my global.asax file? I tried the following, b...
[ -0.10216465592384338, -0.18354769051074982, 0.48591384291648865, 0.2293570190668106, -0.11589919775724411, -0.17032885551452637, 0.10466088354587555, 0.15844646096229553, -0.23428469896316528, -1.2149466276168823, -0.03741015866398811, 0.2208365947008133, -0.40711426734924316, -0.057285599...
"Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } //
[ -0.18819215893745422, -0.32885104417800903, 0.6077677011489868, 0.056560128927230835, 0.19970495998859406, 0.0648280531167984, 0.017574002966284752, 0.15923677384853363, -0.07628202438354492, -0.6294930577278137, -0.21890561282634735, 0.25712865591049194, -0.2562117874622345, 0.44963893294...
Parameter defaults ); ``` **EDIT** I have it working right now, but when i change the action="" in my asax file it doesn't work anymore: Global.asax: ``` routes.MapRoute( "GeneralDocument", "Document/General/{action}/{id}", new { controller = "Document", action = "blaat", id = "" } ); ``` Docume...
[ -0.3117961883544922, -0.19735120236873627, 0.6186560988426208, -0.0934893786907196, 0.06643576920032501, 0.022908557206392288, 0.48011308908462524, -0.20112134516239166, -0.39150765538215637, -0.9140709042549133, -0.053555283695459366, 0.5684812664985657, -0.4415140748023987, -0.1111128181...
"Document/{controller}/{action}/{id}", new { controller = "General", action="Index", id = "" } ); ``` remember with routing you want to be completely defining! when setting out the route. dont let those unexpected routes through :D Check out Scott Hanselman presentation at MIX very fun...
[ 0.32791560888290405, -0.33929070830345154, 0.24648359417915344, 0.2650752067565918, 0.42444953322410583, -0.5927392840385437, 0.423789918422699, -0.2694712281227112, -0.20615427196025848, -0.8255024552345276, -0.10566822439432144, 0.3418067693710327, -0.3063623607158661, -0.220890238881111...
When using a form with many text input, WebKit/Safari/Google Chrome submits the form when ''enter'' is pressed in any input element. Even if there is no submit input element and no *onclick* handler registered. See for instance this sample code: ``` <html> <body> <form method="POST" action="."> ...
[ 0.31594324111938477, 0.12217710167169571, 0.5024022459983826, -0.2143799364566803, -0.3614800274372101, 0.008742602542042732, 0.014661298133432865, -0.7005051374435425, 0.045222897082567215, -0.8523131012916565, -0.2774631977081299, 0.267794132232666, -0.27441006898880005, -0.3861236274242...
type="text" name="bar" value="<?=$_POST['foo']?>"/></li> </ul> </form> </body> </html> ``` When pressing enter in any of the two text input elements, the form is submitted. Since I'm handling my form in JavaScript with asynchronous HTTP requests, I need to prevent this behavior. I could regis...
[ 0.22554416954517365, 0.06960714608430862, 0.4812730550765991, -0.2663535177707672, -0.2618037164211273, -0.10884866118431091, 0.34157809615135193, -0.6167903542518616, 0.23045052587985992, -0.6528916358947754, -0.2305864542722702, 0.5537498593330383, -0.3424164056777954, 0.0005007767467759...
The question says it all really. What are the differences between these two methods that appear to carry out exactly the same function? Is there guidance to say which should be used or are there conditions when you may use either? I believe they have near-identical functionality. Most people I've seen would prefer t...
[ 0.5929384231567383, -0.05781901255249977, 0.18425555527210236, 0.12782561779022217, 0.053722821176052094, -0.16640964150428772, -0.27960076928138733, 0.046993475407361984, -0.29130449891090393, -0.5616708993911743, 0.04877457395195961, 0.6311718225479126, 0.02318665385246277, -0.0068063056...
I'm pretty new to Design Patterns.I just came across Factory Design Pattern. I understood that it delegates the instantiation to subclasses. But I didn't get the actual application of the pattern. In which scenarios can this pattern be used to good effect. I've heard of pattern abuse and would not like to indulge in th...
[ 0.6941419839859009, -0.022956447675824165, -0.2633821368217468, -0.07828070968389511, -0.27198970317840576, -0.07975190132856369, 0.22186864912509918, 0.2941091060638428, -0.5965381860733032, -0.5463944673538208, 0.24161067605018616, 0.35064002871513367, -0.3104580044746399, 0.260217398405...
app. This way, you can code the main portion of your application without ever needing to know what is going to be plugged in.
[ 0.42542675137519836, 0.12644538283348083, 0.1945527344942093, 0.22445285320281982, 0.16195298731327057, 0.11824926733970642, 0.1074092835187912, 0.009513484314084053, -0.06168055161833763, -0.7012888193130493, -0.39367222785949707, 0.6296855211257935, -0.43543973565101624, -0.1509945392608...
Basically I want to create a comment system where comments may have parents that are also comments BUT I would also like them to potentially have parents that may be something else, such as users or products (ie, I want to be able to comment on products, users, other comments, or practically any resource) How should I...
[ 0.5583999752998352, 0.26452645659446716, 0.16637468338012695, 0.34512341022491455, -0.10408812761306763, -0.21190986037254333, -0.4014676809310913, 0.403170645236969, -0.3600669503211975, -0.5674681663513184, 0.4485209286212921, 0.32849442958831787, -0.17351143062114716, 0.1617025583982467...
that a comment is referring to? For the former, I would have tables to associate things with their comments: ``` create table join_products_comments ( product_id int (unique, i.e., one thread of comments per product), comment_thread_id int ); create table join_users_comments ( user_id int (unique, i.e., one...
[ 0.44941389560699463, 0.4371795952320099, 0.4166977107524872, -0.11590147763490677, -0.25849032402038574, 0.36179134249687195, -0.2610490024089813, -0.020867131650447845, -0.21891707181930542, -0.6767699122428894, -0.039199840277433395, 0.08063137531280518, -0.6789541840553284, 0.6196782588...
comment_thread_id int (FK), parent_comment_id int (FK), user_id int (FK), -- person who posted the comment comment text, created datetime ); ``` So every commentable entity in the system would have a join table and one comment\_thread just waiting for eager users to add comments to. Or you could just ...
[ 0.0597405731678009, -0.0742267593741417, 0.4284592270851135, -0.02381712570786476, -0.362884521484375, 0.21911031007766724, -0.06907540559768677, 0.24293774366378784, -0.4216880798339844, -0.5306106209754944, -0.0272623710334301, -0.14156515896320343, -0.381342351436615, 0.5727055668830872...
I am trying to create an index on the following view: ``` SELECT 'Candidate' AS Source, CandidateID AS SourceId, LastName + ', ' + FirstName AS SourceName FROM dbo.Candidates UNION SELECT 'Resource' AS Source, ResourceID AS SourceId, LastName + ', ' + FirstName AS SourceName FROM dbo.Resources ...
[ -0.12325508147478104, 0.10098621994256973, 0.4806179702281952, -0.18538573384284973, -0.022935785353183746, 0.16728033125400543, -0.1351616233587265, -0.4742358326911926, -0.008070722222328186, -0.9460867047309875, -0.4290989339351654, 0.3234199583530426, -0.08428662270307541, 0.4644389748...
Source, JobOrderID AS SourceId, CustomerNumber AS SourceName FROM dbo.JobOrders ``` I am getting the following error: ``` Msg 1939, Level 16, State 1, Line 2 Cannot create index on view '_Source' because the view is not schema bound. ``` I added WITH SCHEMABINDING to the CREATE and now get the following er...
[ -0.023166628554463387, 0.337680459022522, 0.41305267810821533, -0.16498474776744843, 0.1384424865245819, 0.15148799121379852, -0.044259943068027496, -0.15986311435699463, -0.08738555759191513, -0.740807831287384, -0.23390303552150726, 0.6968664526939392, -0.41467180848121643, 0.28794971108...
are: How would I create an index on this view? Would creating separate indexed views **really** work? Lastly, am I **really** going to see a performance improvement for any queries that may JOIN this view? Thanks in advance! You cannot create an index on a view that makes use of a union operator. Really no way arou...
[ 0.6025429964065552, -0.03613801673054695, 0.1708945333957672, 0.2835977375507355, 0.13175936043262482, -0.09289111196994781, 0.008129570633172989, 0.08190637826919556, -0.25155580043792725, -0.5883494019508362, 0.067557193338871, 0.5320581793785095, -0.23530785739421844, 0.3687173724174499...
depend entirely on the size of your tables. I would not expect any impact on creating separate indexed views, as I would assume that your tables are already indexed and you aren't doing any joining or logic in the view.
[ 0.34372973442077637, 0.05335211753845215, 0.14679688215255737, 0.1779196411371231, -0.09456494450569153, 0.13589303195476532, -0.3170974850654602, 0.035305455327034, -0.17782050371170044, -0.6224657893180847, 0.19001635909080505, 0.5859301686286926, -0.14893023669719696, 0.1143056824803352...
Whats the best way to convert a list(of string) to a string with the values seperated by a comma (`,`) ``` String.Join(",", myListOfStrings.ToArray()) ```
[ -0.033268533647060394, -0.012472475878894329, 0.20345914363861084, -0.11749271303415298, 0.3642282485961914, 0.08684324473142624, -0.05350108817219734, -0.3242049813270569, -0.23971697688102722, -0.217265322804451, 0.1095561534166336, 0.5025321245193481, -0.24781931936740875, -0.1667131632...
Let's say that I have a binary that I am building, and I include a bunch of files that are never actually used, and do the subsequent linking to the libraries described by those include files? (again, these libraries are never used) What are the negative consequences of this, beyond increased compile time? A few I can...
[ 0.5661056041717529, 0.3888334631919861, -0.24054968357086182, 0.2192482352256775, 0.12019437551498413, -0.07294028997421265, 0.24109302461147308, 0.5131464600563049, -0.3411838412284851, -0.6264744997024536, 0.13835297524929047, 0.37165507674217224, -0.19293394684791565, 0.3632611930370331...
For the past time I have been working on a Zend Framework based webshop application that we are building from scratch. The application has been successfully been set up for several clients, but we are stumbling upon more and more problems regarding extensibility and modularity of the application. A lot of clients requ...
[ 0.6389245390892029, 0.024304797872900963, -0.1817808896303177, 0.185146763920784, 0.061196256428956985, -0.3525782525539398, -0.04667196422815323, -0.10290663689374924, 0.022788701578974724, -0.5315296053886414, -0.042355015873909, 0.5307676792144775, -0.0033039578702300787, 0.052173811942...
Although Magento seems to do a very good job offering extensibility and modularity, the code is far too complex and extensive for my current needs (or so it seems). **In an ideal situation, it would work as follows:** * Each client gets the "base" application installed * Modules, controllers, models should be easily ...
[ 0.3710600435733795, 0.0264369398355484, 0.26596909761428833, -0.012241733260452747, -0.12237916141748428, -0.46787840127944946, 0.07222071290016174, -0.20737208425998688, 0.07322147488594055, -0.49269112944602966, -0.1325172334909439, 0.7950681447982788, 0.10915693640708923, -0.35375341773...
with the new ([Zend\_Application](http://framework.zend.com/manual/en/zend.application.html)) it should allow for auto loading of module resources, which isn't easy to do at this point. I don't know much about it, but this may be something to look into. 1.8 should be out by the end of this month.
[ 0.4779415428638458, -0.20543165504932404, 0.5863938927650452, -0.02144443802535534, 0.06299793720245361, -0.49441179633140564, 0.0771651491522789, -0.4092712104320526, -0.13610340654850006, -0.5165373682975769, -0.27753445506095886, 0.693371593952179, -0.1089039072394371, -0.28580510616302...
Please recommend a C++ compression (zip) library for a commercial, closed-source application. So, not a GPL license. This is for my day job... I know you said C++, but [zlib](http://www.zlib.net/) is a very [permissively licensed](http://www.zlib.net/zlib_license.html) C library that you could use directly from a C++ ...
[ 0.4236624538898468, 0.42216530442237854, 0.19179731607437134, -0.0195801742374897, 0.1522355079650879, -0.1776294708251953, -0.11856447160243988, 0.2548902630805969, -0.19647715985774994, -0.38562387228012085, -0.18812590837478638, 0.5857230424880981, -0.46717482805252075, -0.2424305081367...
I think, the following can't be done in Java. But I would be happy to learn how to implement something that resembles it. Suppose we have a class C, that is already used in compiled code. (We can neither change that code nor the original definition of C). Suppose further there is interesting code that could be re-use...
[ 0.3185725808143616, 0.18930253386497498, 0.010333566926419735, -0.031364329159259796, -0.2545323073863983, -0.024997806176543236, 0.09730226546525955, -0.10015599429607391, -0.3132097125053406, -0.7044361233711243, 0.06052633002400398, 0.5940324664115906, -0.21637804806232452, 0.0771118178...
you to be a D, that is, a C implementing I. (Side remark: I think the cast (D)c, where c's runtime type is C, should be allowed if D is a C and the only difference to C are added methods. This should be safe, should it not?) How could one work around this calamity? (I know of the factory design pattern, but this is ...
[ 0.5248317718505859, -0.0693373903632164, 0.04089847952127457, 0.08518339693546295, 0.0744689404964447, -0.12850609421730042, 0.474576473236084, -0.34927013516426086, -0.07685680687427521, -0.558441698551178, -0.25189459323883057, 0.6302847266197205, -0.41991525888442993, 0.1948718726634979...
incompatible, since they both add a different set of methods to C. So while we can always pass an E where a C is expected, we can't pass an E where a D is expected. Rather, now, we'd need a new class F extends C implements I,J.) If all that you need to be compatible with is interfaces then no problem take a look at [dy...
[ 0.1513683944940567, -0.06271524727344513, 0.2547505795955658, 0.1154690831899643, -0.13012269139289856, -0.3023971617221832, 0.24800291657447815, -0.1521317958831787, -0.016331057995557785, -0.6792786717414856, 0.3079621195793152, 0.5162981152534485, -0.6421483755111694, 0.1612410545349121...
We have a two tables with a one-to-many relationship. We would like to enforce a constraint that at least one child record exist for a given parent record. Is this possible? If not, would you change the schema a bit more complex to support such a constraint? If so how would you do it? Edit: I'm using SQL Server 20...
[ 0.21691147983074188, 0.09458927065134048, -0.040236830711364746, 0.1132085993885994, 0.42651790380477905, 0.29015716910362244, -0.31532981991767883, -0.05752507224678993, -0.3751092851161957, -0.5677734613418579, 0.4440755844116211, 0.4013441801071167, -0.23217329382896423, 0.1002791970968...
table, but I can't have a row in the child table until there's a row in the parent table. This is something better enforced client-side.
[ -0.148258239030838, 0.11115879565477371, 0.504022479057312, 0.0019331051735207438, 0.29365622997283936, 0.24967479705810547, -0.5634492635726929, 0.1898152232170105, -0.47822633385658264, -0.9481801390647888, 0.06057710573077202, 0.4814816415309906, 0.3987358808517456, 0.2779187560081482, ...
I would like to setup a http proxy on my work machine (no admin rights, WinXP) to only allow access to a whitelist of URLs. What would be the easiest solution? I prefer open-source software if possible. Why not use the Content Advisor in IE? You can provide a list of approved sites, anything else is blocked. Or do you ...
[ 0.5373011827468872, 0.11456409096717834, 0.3328339159488678, 0.163185715675354, -0.07080560177564621, -0.37529775500297546, 0.08533105254173279, 0.3377612233161926, -0.020035235211253166, -0.7131559252738953, 0.04482358694076538, 0.2692219316959381, -0.04143838956952095, 0.2460434734821319...
I have 5 databases which represent different regions of the country. In each database, there are a few hundred tables, each with 10,000-2,000,000 transaction records. Each table is a representation of a customer in the respective region. Each of these tables has the same schema. I want to query all tables as if they ...
[ 0.27870407700538635, 0.18874353170394897, 0.620797336101532, 0.3491966724395752, 0.41866186261177063, 0.4400010108947754, -0.01612807624042034, 0.07965094596147537, -0.4690617620944977, -0.5226230025291443, 0.1748913675546646, -0.022545306012034416, 0.015617875382304192, 0.6142383813858032...
to change the query for my view to include new tables (or remove ones that are no longer used). Is there a better way? EDIT ---- In response to the comments, (I also posted this as a response to an answer): In most cases, I won't be removing any tables, they will remain for historic purposes. As I posted in commen...
[ 0.46159738302230835, 0.0836867168545723, 0.5124421715736389, -0.08554565161466599, 0.13084442913532257, 0.49092134833335876, -0.08464042842388153, 0.09889248758554459, -0.853289008140564, -0.7360597252845764, 0.0816887840628624, -0.03515355661511421, -0.16474874317646027, 0.312952995300292...
to add all records to one table, I'd have nearly a billion records in that table. I also thought I was planning for the future, in that when we get say 5000 customers, we don't have one giant table holding all transaction records (this may be an error in my thinking). So then, is it better not to divide the records as ...
[ 0.3965144157409668, 0.3537351191043854, 0.22932958602905273, 0.41351374983787537, 0.4054677188396454, 0.04965050891041756, -0.4870922267436981, -0.23058976233005524, -0.8269256949424744, -0.5454475283622742, 0.4476000666618347, 0.238877534866333, -0.19659119844436646, 0.4370766878128052, ...
region and a customer column? If I were you, I would consider refactoring to one single table, and if necessary (for reverse compatibility for example), I would use views to provide the same info as in the previous tables. --- Edit to answer OP comments to this post : One table with 10 000 000 000 rows in it will d...
[ 0.0013804699992761016, -0.17825929820537567, 0.8642449378967285, 0.2665385901927948, 0.1907607913017273, -0.05436895415186882, -0.315658301115036, 0.06370089203119278, -0.5242177248001099, -0.789661705493927, 0.04336203262209892, 0.3672880530357361, 0.1538659930229187, 0.37956300377845764,...
I'm trying not to use the ',' char as a thousand separator when displaying a string, but to use a space instead. I guess I need to define a custom culture, but I don't seem to get it right. Any pointers? eg: display 1000000 as 1 000 000 instead of 1,000,000 (no, `String.Replace()` is not the solution I'd like to use ...
[ 0.37443292140960693, 0.07408903539180756, 0.6431665420532227, 0.2625340521335602, 0.07637225836515427, 0.2613288462162018, -0.28770044445991516, -0.042935360223054886, -0.4736524224281311, -0.6786291003227234, 0.3657655417919159, -0.04251600056886673, 0.04064220190048218, 0.304884791374206...
you need to change [`CurrencyGroupSeparator`](http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.currencygroupseparator.aspx) instead/as well.) Use that as the format info for your calls to `string.Format` etc, and you should be fine. For example: ``` using System; using System.Globalization...
[ 0.2537517249584198, -0.24165907502174377, 0.7300958037376404, 0.14331583678722382, 0.17927785217761993, -0.0849955603480339, -0.03490714356303215, 0.08955163508653641, -0.5722081065177917, -0.4522766172885895, 0.2659432888031006, 0.2720816433429718, -0.29571929574012756, 0.5173597931861877...
We have a core library in the form of a DLL that is used by more than one client application. It has gotten somewhat bloated and some applications need only a tiny fraction of the functionality that this DLL provides. So now we're looking at dividing this behemoth into smaller components. My question is this: Can any...
[ 0.5271768569946289, -0.05278073251247406, -0.17682473361492157, 0.17641402781009674, 0.2543034255504608, -0.07595787197351456, -0.12916426360607147, 0.10374250262975693, -0.2882687449455261, -0.5036912560462952, 0.12316299229860306, 0.3151978850364685, -0.4458399713039398, 0.36003011465072...
Create a "core" dll and several "satellite" dlls which use the core and possibly other satellite DLLs. 2. Subdivide the contents of the bloated DLL into static libraries that the main DLL uses (to maintain the same functionality) but apps that don't want to use the bloated version can assemble the static libraries they...
[ 0.641339123249054, -0.07656913250684738, 0.20683537423610687, 0.30502966046333313, -0.02867022156715393, -0.5036135911941528, -0.009483532048761845, 0.03906501829624176, -0.2878398299217224, -0.6127170324325562, -0.3967018127441406, 0.34689822793006897, -0.6785993576049805, -0.002488487865...
I would do in your situation * provide both static and dll versions of whate3ver you release - for MT and single threaded. * try to glean from the disparate clients which items should be grouped together to provide reasonable segmentation - without having layers of dependencies. having a "core" module sounds like a g...
[ 0.36288440227508545, -0.0758921429514885, 0.0303456112742424, 0.09130881726741791, -0.007271069101989269, -0.1438937783241272, 0.39763975143432617, -0.25922515988349915, -0.24493595957756042, -0.7237067222595215, -0.06850277632474899, 0.6085290908813477, -0.22613213956356049, -0.0686932802...
the complexity of maintenance. Are you going to be releasing them all at once every time, or are they going to be mix and match? Be careful here - and know that you could create testing issues If no one is complaining about the size of the DLL then you might want to consider leaving it as is.
[ 0.5422553420066833, -0.13144119083881378, -0.11410921066999435, 0.3627311587333679, 0.005168823059648275, -0.1581411361694336, -0.18119072914123535, -0.04108627140522003, -0.3656828701496124, -0.3616149127483368, 0.045769818127155304, 0.7251542806625366, -0.2386821210384369, 0.169379845261...
From the perspective of a cross application/applet java accessibility service, how would you link to a package but only optionally execute an action based on existence/availability of a package (being already loaded) at runtime? I think what I'm interested in here is a way to resolve the [class identity crisis](http:/...
[ 0.15327374637126923, 0.0013227666495367885, -0.21138691902160645, 0.14231447875499725, -0.34303390979766846, -0.15774039924144745, 0.26946720480918884, -0.024662448093295097, -0.3626726269721985, -0.5437577366828918, 0.0910569354891777, 0.5098021030426025, -0.29507964849472046, 0.095800265...
add a specific listener derived from the specific optional classes, I can load the listener using the applet class loader but the internals still fail. Say you wanted to add an JInternalFrameListener, but Swing wasn't guaranteed to be available, using reflection you can find the method to add the listener, but how can ...
[ 0.6689659953117371, 0.04959525540471077, 0.21931059658527374, 0.228684201836586, -0.39422932267189026, -0.08743961900472641, 0.21781301498413086, -0.5455460548400879, -0.005031168460845947, -0.4703153967857361, 0.584758996963501, 0.7323378324508667, -0.2232540249824524, 0.00695287715643644...
get the class to be loaded reliably? simply trying to set the class loader on my existing thread didn't seem to work. ***Earlier description of issues*** *Sorry, I'm not quite sure what to ask or how to make this clear, so it rambles on a bit.* Say a class uses some feature of another, but the other class may not alw...
[ 0.34320396184921265, -0.10445069521665573, 0.08895735442638397, 0.21241021156311035, -0.3774602711200714, -0.2330615222454071, 0.6140861511230469, 0.2007821947336197, -0.2640174925327301, -0.40242230892181396, -0.0583718866109848, 0.591680645942688, -0.10863800346851349, 0.1187837794423103...
section I simply wrapped a `try{} catch( NoClassDefFoundError )` around it. Later something changed (perhaps changing jdk or ?? I don't recall) and it seemed that I should also use a `try{} catch( ClassNotFoundException )`. Now I wanted to extend this idea to other optional features, but it doesn't seem to work consi...
[ 0.06602697819471359, -0.261030375957489, 0.17284531891345978, -0.0940224900841713, -0.12584085762500763, -0.1093229204416275, 0.4156268239021301, -0.060862794518470764, -0.023413261398673058, -0.38738754391670227, 0.023530522361397743, 0.44512665271759033, -0.2688736319541931, 0.1330138295...
or oracle.forms. Is there some way of doing this more reliably? It just seems wrong to cause an exception and catch it to ignore it all the time. The current issue comes down to being able to compile against oracle.forms but then the accessibility component installed in ext is unable to access the oracle.forms classe...
[ 0.3575843274593353, 0.24807773530483246, 0.29405757784843445, 0.17429088056087494, -0.3191402554512024, -0.3482441008090973, 0.4010871648788452, -0.3778139352798462, -0.23197247087955475, -0.489752858877182, 0.13243789970874786, 0.7709408402442932, -0.12074504047632217, -0.0934081077575683...
be caught up on an issue with the class loader not being the right one or something (??). How do I find the right one? Edit: The answers so far are kindof interesting but not quite getting me where I want to be. In the case of the gui components I currently compile in the form of a factory something like... ``` impo...
[ 0.20243749022483826, -0.36253049969673157, 0.14908981323242188, 0.12002680450677872, 0.1678813099861145, -0.10469522327184677, 0.28337550163269043, -0.2776625454425812, -0.18371067941188812, -0.6577792763710022, -0.15102854371070862, 0.522860586643219, -0.2808329463005066, 0.23933747410774...
( NoClassDefFoundError a ) { System.out.println( a.getMessage() ); } ``` where it prints out `class oracle.forms.ui.FormDesktopContainer` and then throws and exception on the instanceof call with NoClassDefFound thus printing out `oracle/forms/ui/FormDesktopContainer` **So how can it have an instance of a cla...
[ -0.296305775642395, -0.055652495473623276, 0.07971283048391342, 0.006130808498710394, -0.4288313686847687, -0.1627972424030304, 0.4695688784122467, -0.21760448813438416, -0.20940987765789032, -0.5949010252952576, 0.062150876969099045, 0.4112386107444763, -0.4587460458278656, 0.116365596652...
job, though it does add so much more to maintain. ``` // statically linking would be return component.getText(); // dynamically is try { return (String)component.getClass().getMethod("getText", new Class [] {}).invoke(component, new Object [] {}); } catch (Throwable e) { e.printStackTrace(); } ``` The trickier ...
[ -0.021682258695364, -0.09783084690570831, 0.3920651376247406, -0.153311088681221, -0.08167826384305954, 0.08589309453964233, 0.2869435250759125, -0.26251524686813354, -0.13851140439510345, -0.5769379734992981, -0.08864836394786835, 0.5669966340065002, -0.46864792704582214, 0.16881763935089...
loader of the provided object in the applet // get the "class" of the interface you want to implement Class desktopListenerClass = Class.forName( "oracle.DesktopListener" , true, parent.getClass().getClassLoader()); // Ask the proxy to create an instance of the class, // providing your implem...
[ -0.1881786733865738, -0.13867370784282684, 0.3949844539165497, -0.26465094089508057, 0.07865701615810394, 0.2698259651660919, 0.284168541431427, -0.09521237760782242, -0.2503969371318817, -0.8100578188896179, -0.2319563627243042, 0.47582924365997314, -0.4943777918815613, 0.2155597656965255...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if ("functionName".equals(method.getName())) { // do stuff } return null; } }); // do something with your new object Method addDesktopListener = parent.getClass().getMethod("...
[ -0.07601872086524963, -0.03409695252776146, 0.16301141679286957, -0.10903764516115189, 0.050437621772289276, -0.09449585527181625, 0.47060543298721313, -0.2422458380460739, 0.006542983930557966, -0.6050471067428589, -0.3103846311569214, 0.29435479640960693, -0.46716973185539246, 0.31760585...
general method
[ -0.27104780077934265, 0.26037341356277466, 0.05081666633486748, 0.10044582188129425, -0.014343277551233768, 0.07853720337152481, 0.22727103531360626, -0.36867430806159973, -0.15152771770954132, -0.23565855622291565, -0.07371377944946289, 0.3680395781993866, -0.21959689259529114, -0.1155055...
Is there a way in AJAX or JS to add further inputs upon a button click? In short, yes you can add more inputs on a button click. For example, in jQuery, you could have something like this where the buttonID is the id attribute for the button and the formID is the id attribute for your form: ``` $("buttonID").click(f...
[ 0.09525793045759201, -0.534905195236206, 0.2767467498779297, 0.006691232323646545, -0.14169640839099884, -0.04692181199789047, -0.11579139530658722, -0.17248809337615967, -0.18458570539951324, -0.9060791730880737, -0.10309299826622009, 0.7172518372535706, -0.47432422637939453, -0.089472748...
I read about the dynamic control creation in ASP.NET this piece of text: > ...When using dynamic controls, you > must remember that they will exist > only until the next postback. ASP.NET > will not re-create a dynamically added > control. If you need to re-create a > control multiple times, you should > perform...
[ 0.021274974569678307, -0.3841293752193451, 0.3694309890270233, 0.09831782430410385, -0.0861564427614212, -0.1656648963689804, 0.2422606199979782, 0.07206205278635025, -0.3300110399723053, -0.7040441632270813, -0.10222483426332474, 0.5562564134597778, -0.27829545736312866, 0.233825117349624...
control in the > handler for the Page.Load event, > **ASP.NET will apply any view state > information that it has after the > Page.Load event handler ends. This > process is automatic** ... I wanted to try it on example create a button declaratively - ``` <asp:Button ID="Button1" runat="server" Text="Button" ...
[ -0.193208247423172, -0.48709604144096375, 0.5684077143669128, 0.18269634246826172, 0.018595153465867043, -0.0775446891784668, 0.17360807955265045, -0.3543178141117096, -0.01998622715473175, -0.5030224919319153, -0.12216167896986008, 0.39407938718795776, -0.43365901708602905, -0.00037604366...
HtmlInputCheckBox(); Controls.Add(chBox); } } ``` But when i check some checkboxes and hit the button, after postback all checkboxes states are erased. It mean ASP.NET does not manage view states of dynamic controls automatically? I tried to enable view state to each of checkbox and for whole page, but it...
[ -0.03145019710063934, -0.1936378926038742, 0.6130297183990479, -0.008700565434992313, -0.30399641394615173, -0.051024869084358215, 0.5444680452346802, -0.2621745765209198, -0.1930997222661972, -0.9136885404586792, 0.0052040028385818005, 0.19662421941757202, -0.6446008682250977, -0.02176622...
= new CheckBox(); c.ID = "Checkbox" + i.ToString(); divContainer.Controls.Add(c); //create a div with runat="Server" attribute or use an asp:Panel, etc. container controls. } } ``` After that, try clicking the button again, the state will be always be maintained.
[ 0.1425236016511917, -0.22597259283065796, 0.6281616687774658, -0.2905834913253784, 0.3329688012599945, -0.1446112096309662, 0.3025059700012207, -0.12891672551631927, -0.20113730430603027, -0.5799654126167297, -0.33537551760673523, 0.45396509766578674, -0.38936713337898254, 0.34475669264793...
Can anyone can confirm the best idea for storing jquery code, initially i was inserting everything in the HEAD of a document but i am seeing more and more code being used across pages, Is the best way to use include files .. with the extension .JS? Anything else or better with respect to this? What would be the bes...
[ 0.5760042667388916, 0.23698602616786957, 0.0035101596731692553, 0.3212878704071045, -0.010094164870679379, -0.15153758227825165, -0.07846098393201828, 0.09134899824857712, -0.42684581875801086, -0.6618373394012451, 0.14237931370735168, 0.31818902492523193, 0.0574318990111351, 0.05217181891...
as much code as you can in .js files, because that would allow the browser to download just once and re-use in all requests. If you include your code directly in the HEAD section as plain text you're forcing that code to be downloaded in each request, slowing down the page transfer. The directory where you store the ...
[ 0.641523003578186, 0.10369489341974258, 0.2139967978000641, 0.0616246834397316, 0.0692504495382309, -0.17112620174884796, 0.08082899451255798, 0.08244354277849197, -0.13505825400352478, -0.9295852184295654, -0.2305757850408554, 0.5721117258071899, -0.11984755843877792, -0.08131524175405502...
I would like to look at the code for some of the classes in the .NET library. I find functions by using intellisense and just reading the tooltips that come up when I select different items. One example is the Contains method that you can use on arrays to search for a given string. I just happened to stumble upon that...
[ 0.2972378134727478, -0.36624518036842346, -0.26466020941734314, 0.1915861815214157, 0.061692774295806885, -0.2268954962491989, -0.009612037800252438, 0.2930479049682617, -0.15802118182182312, -0.7821308970451355, 0.22741937637329102, 0.2371864914894104, -0.3206714391708374, 0.1358113735914...
other class in .NET, how would I go about it? I have Visual Studio 2008. Use [.NET Reflector](http://www.red-gate.com/products/reflector/)
[ 0.22735798358917236, -0.3033505380153656, 0.4527081251144409, 0.002061143284663558, -0.440079003572464, -0.08687712997198105, 0.13424181938171387, -0.1696857213973999, -0.10261290520429611, -0.6240274906158447, 0.336752325296402, 0.5841554999351501, 0.2934742569923401, -0.23659612238407135...
I'm trying to add a mime-mapping element to the web.xml. My current best stab is: ``` def doWithWebDescriptor = { xml -> xml + { 'mime-mapping' { 'extension'("htc") 'mime-type'("text/x-component") } } } ``` I know the code is being run as the above actually outputs an...
[ 0.4448038637638092, 0.3585878312587738, 0.3747841715812683, -0.1559980809688568, -0.06639286875724792, -0.15923458337783813, 0.42885711789131165, -0.21789874136447906, 0.1313002109527588, -0.7574326395988464, 0.03998427093029022, 0.4967343211174011, -0.29158690571784973, 0.2507565617561340...
{ xml -> xml.'mime-mapping' + { 'extension'("htc") 'mime-type'("text/x-component") } } ``` edit: I'm using grails 1.0.3 Try ``` def doWithWebDescriptor = { xml -> xml << { 'mime-mapping' { 'extension'("htc") 'mime-type'("text/x-component") ...
[ 0.24408218264579773, 0.26286202669143677, 0.6004302501678467, -0.08021610975265503, -0.008215049281716347, -0.0777132660150528, 0.5128109455108643, -0.33117642998695374, 0.17908085882663727, -0.6193947792053223, -0.28016629815101624, 0.5917894244194031, -0.09273544698953629, 0.043983697891...
} } ``` (note the `leftShift` instead of the `plus`). Alternatively, if you want to ensure that your new element is inserted at a specific position within the XML, you can get the child element, after which you want your element to be inserted, and add yours with the `plus` operator. For example, I use the following...
[ 0.21029159426689148, -0.1250225156545639, 0.558138906955719, -0.07539556175470352, 0.06610174477100372, -0.13330577313899994, -0.2711183726787567, -0.31920740008354187, -0.05285272374749184, -0.6424676775932312, -0.46564269065856934, 0.2829362750053406, -0.17258992791175842, 0.006335959769...
look at `groovy.util.slurpersupport.NodeChild` (the `xml` argument is of that type) and its superclass `groovy.util.slurpersupport.GPathResult`. Good luck!
[ -0.13927878439426422, 0.12334319204092026, 0.44265052676200867, -0.1371225118637085, 0.17255589365959167, -0.3128719925880432, 0.09616769850254059, 0.467966765165329, -0.2572827935218811, -0.5732789039611816, 0.024862904101610184, 0.49263811111450195, 0.052235838025808334, 0.09690284729003...
``` <?php if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $dbhost = 'localhost'; $dbuser = 'zuk1_boo'; $dbpass = 'lols'; $dbname = 'zuk1_boo'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $name = $_POST['name']; $iq = $_POST['iq']; $nuname = str_replace(" ",...
[ -0.15874409675598145, 0.13856880366802216, 0.4701548218727112, -0.04848570004105568, -0.1298501044511795, 0.18204504251480103, 0.28134435415267944, -0.7065894603729248, 0.018320053815841675, -0.6245567798614502, -0.4247622489929199, 0.37161898612976074, -0.3022502362728119, 0.2714683413505...
matter what I do with this query it just WILL not work, I've triple checked the sql details and they are fine, even though it appears to be connecting fine anyway. I've played with the field names in the query and they should be fine but it just won't work! ``` mysql_query($query) or die('q fail'); ``` Replace this w...
[ 0.632103443145752, 0.4383240044116974, 0.11616173386573792, 0.1316666305065155, 0.1451857089996338, 0.07466192543506622, 0.5121914148330688, -0.09337623417377472, 0.10734652727842331, -0.5536440014839172, 0.08582164347171783, 0.8032459020614624, -0.3335892856121063, 0.2804604172706604, 0...
For some reason, my queries screw up when I write to a column of type "text". Here is an example: ``` Describe messages; Field Type Null Key Default Extra id int(11) NO PRI NULL auto_increment title varchar(255) YES NULL body
[ 0.27345743775367737, 0.18106819689273834, 0.5401290655136108, -0.0287081990391016, -0.08234205096960068, 0.024506740272045135, 0.5982525944709778, -0.3076949715614319, -0.06025233864784241, -0.26783275604248047, -0.2464321106672287, 0.5657549500465393, -0.35406988859176636, 0.3048658370971...
text YES NULL to text YES NULL content_type varchar(255) YES NULL is_sms tinyint(1) YES NULL user_id int(11)
[ -0.11997292935848236, 0.0023671563249081373, 0.3467755913734436, 0.058526162058115005, -0.3034251630306244, 0.13849905133247375, 0.7282541990280151, -0.10012687742710114, -0.15064653754234314, -0.26819413900375366, -0.17229868471622467, 0.4257972836494446, -0.7418532967567444, -0.180641561...
YES NULL created_at datetime YES NULL updated_at datetime YES NULL ``` Then I try an insert: ``` INSERT INTO messages (id,title,body,to) VALUES ('1','Test Message','This is a test message. This is a test message. This is a test message. This is a test message.', 'an email' ); ...
[ 0.07371072471141815, -0.008138173259794712, 0.2714919447898865, -0.12471500784158707, 0.07472562044858932, -0.04617032781243324, 0.3526743948459625, 0.017341699451208115, 0.19199547171592712, -0.49659815430641174, -0.2064809799194336, 0.32713839411735535, -0.5187616944313049, 0.26351270079...
column and it's corresponding value from the query. Any ideas? 'to' is a reserved keyword in MySQL. You'll need to rename your column. <http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html> However, Reserved words are permitted as identifiers if you quote them. <http://dev.mysql.com/doc/refman/5.1/en/identifi...
[ 0.09621606022119522, 0.09516935050487518, 0.7810781598091125, -0.07598651945590973, -0.009909171611070633, 0.24705088138580322, -0.03342801705002785, 0.19475865364074707, -0.12487875670194626, -0.48097458481788635, -0.34579744935035706, 0.014409860596060753, -0.2902213931083679, 0.22769825...
The following simplified code doesn't work (because it sets the retrieved object reference to the parameter), but it shows what I want to do ``` public bool updateEvent(clubEvent newEvent) { TNightCon tCon = new TNightCon(); clubEvent cEv = (from cEvent in tCon.clubEvents ...
[ -0.06329865753650665, -0.12677030265331268, 1.2687283754348755, -0.2010997235774994, 0.7654123902320862, -0.23923975229263306, 0.030901335179805756, -0.2912239134311676, 0.13692796230316162, -0.632479727268219, -0.0017755283042788506, 1.1956946849822998, -0.17185267806053162, 0.21938388049...
select cEvent).First(); // Won't work, but do I have to set all the fields manually? cEv = newEvent; tCon.SubmitChanges(); return true; } ``` You don't need to retrieve the current object to do what you need to do. If the Ids are the same, all you need to do is attach the new objec...
[ 0.321133017539978, 0.16229669749736786, 0.6412472128868103, -0.12825429439544678, 0.45422011613845825, -0.1855906993150711, 0.2382982224225998, -0.3506564497947693, 0.04615163058042526, -0.6900339126586914, -0.3293789029121399, 0.7022551894187927, -0.2410724014043808, 0.3458114266395569, ...
getting Linq2SQL to treat the object as "dirty". Timothy Khouri has [a blog post](http://www.singingeels.com/Blogs/Nullable/2009/01/09/How_to_Make_LINQ_to_SQL_Check_for_Changes_After_Attach_or_AttachAll.aspx) that details a useful technique using the Refresh method on the context. Here's what it'd look like. ``` publ...
[ 0.044182196259498596, -0.008625710383057594, 0.872302234172821, -0.03580024093389511, 0.12506221234798431, -0.23836995661258698, 0.26004257798194885, -0.299970418214798, -0.21326260268688202, -0.3027513027191162, -0.18639959394931793, 0.7583358287811279, -0.4188395142555237, 0.110635466873...
I am looking for a way to easily split a python list in half. So that if I have an array: ``` A = [0,1,2,3,4,5] ``` I would be able to get: ``` B = [0,1,2] C = [3,4,5] ``` ``` A = [1,2,3,4,5,6] B = A[:len(A)//2] C = A[len(A)//2:] ``` If you want a function: ``` def split_list(a_list): half = len(a_list)//...
[ 0.40060895681381226, -0.08213459700345993, -0.16050755977630615, -0.6147289872169495, -0.41731274127960205, 0.23042039573192596, -0.007920961827039719, -0.3985108435153961, -0.3494877815246582, -0.2675230801105499, -0.03519616276025772, 0.5713585019111633, -0.4976232945919037, 0.0027357656...
In my C++ program, I need to pull a 64 bit float from an external byte sequence. Is there some way to ensure, at compile-time, that doubles are 64 bits? Is there some other type I should use to store the data instead? Edit: If you're reading this and *actually* looking for a way to ensure storage in the IEEE 754 forma...
[ 0.3023426830768585, 0.3235197365283966, 0.1321866363286972, -0.11820713430643082, -0.11609454452991486, -0.017556851729750633, 0.13181160390377045, -0.4194410741329193, -0.03942074626684189, -0.017701823264360428, -0.040291789919137955, 0.4242008328437805, -0.5494930148124695, -0.120182029...
find CHAR\_BIT defined in `<limits.h>` or `<climits>`.
[ -0.26741865277290344, -0.027491793036460876, -0.23331615328788757, -0.03256557136774063, 0.327043741941452, -0.029135102406144142, 0.19569344818592072, -0.10863754153251648, 0.29313310980796814, -0.5013540983200073, -0.33330392837524414, 0.31585609912872314, -0.18845629692077637, -0.010919...
Is there a tool that can do a diff of two methods? I'm working on some legacy code that has several 100-200 line methods that contain a lot of duplication and I would like to abstract the duplication out. Being able to diff the two methods would be a huge help. In case it matters, I'm working with .NET and Visual Studi...
[ 0.1815398931503296, -0.27818816900253296, 0.3462393879890442, 0.10676074773073196, -0.3818923830986023, 0.13121472299098969, 0.03252827748656273, 0.04547955468297005, -0.2470565289258957, -0.7703900933265686, 0.16113342344760895, 0.5115888118743896, -0.46216002106666565, -0.044814739376306...
ancestors, patches, 3 file compares and merges.... pretty comprehensive). I don't think I've seen a diff/merge system in any other programming editor quite as good.
[ 0.06390461325645447, 0.06539846956729889, 0.07546886801719666, 0.21003498136997223, 0.06104813516139984, 0.0968005433678627, -0.004435305017977953, -0.08468751609325409, -0.15601295232772827, -0.796617865562439, 0.06899935007095337, 0.4564298987388611, 0.02309323288500309, 0.20409141480922...
I'm developing a C# program that needs to be able to schedule a variety of asynchronous tasks at different times. I need a solution that activates every second to check for tasks to execute, and eats up as few resources as possible. It also needs to scale well to a large number of tasks. Which of these is better to use...
[ 0.37776345014572144, -0.15819881856441498, 0.1726660430431366, 0.0846729576587677, 0.15508538484573364, 0.00819798931479454, 0.016905318945646286, -0.16092006862163544, -0.37754887342453003, -0.6917547583580017, 0.056049447506666183, 0.3554053008556366, -0.30997341871261597, -0.09449030458...
up, or 3) Something else entirely. `System.Threading.Timer` is extremely lightweight. You could create a separate timer for each task so that the timer comes due when the task is supposed to execute. Internally, I believe that the system will keep track of what timer is due next so it only has to monitor one timer a...
[ 0.19851525127887726, -0.016096191480755806, 0.44564691185951233, -0.08935260027647018, 0.021758293733000755, 0.08775018900632858, -0.12395749986171722, -0.30437517166137695, -0.8647363185882568, -0.5022907853126526, 0.08925119787454605, 0.48255354166030884, -0.3270051181316376, 0.140471160...
I'm working on a website and want to create user login and session. What is the safest way to check if session exists or not (like cookie or session variable check), or any better idea then using sessions in php? > `session_id()` returns the session id for the current session or the empty string ("") if there is no cur...
[ 0.5431929230690002, 0.18008573353290558, 0.23670776188373566, -0.11540693789720535, -0.17161177098751068, -0.34857499599456787, 0.37074407935142517, 0.19156350195407867, -0.18540364503860474, -0.76097172498703, 0.041311729699373245, 0.5752292275428772, 0.020848093554377556, 0.0605298280715...
login, i set `$_SESSION['user']` with the userid or an user object. on logout, i just `unset($_SESSION['user']);`. by checking `empty($_SESSION['user'])` i can check if someone's still logged in or not. don't do this if you're storing user-dependant information elsewhere in your session, otherwise the next guy logging ...
[ 0.6361691355705261, 0.18059806525707245, 0.16095826029777527, 0.02321312204003334, 0.25698018074035645, -0.5032624006271362, 0.5739895701408386, -0.22137129306793213, -0.24150829017162323, -0.42003968358039856, -0.026928896084427834, 0.8759047389030457, -0.29183247685432434, 0.061720695346...
`session.use_only_cookies` in the php.ini. there may be additional safety issues if you're hosting on an untrusted and/or misconfigured shared server - it could lead to other people on the same machine reading your session data. in this case you could store your session data in a database by rewriting your session han...
[ 0.29343390464782715, 0.0382751002907753, 0.1967467963695526, 0.03267933055758476, -0.3301326334476471, -0.5744051337242126, 0.5511581897735596, 0.18290846049785614, -0.30929774045944214, -0.7750118970870972, -0.30619826912879944, 0.6463947892189026, -0.5012959241867065, -0.1771923005580902...
passwords are transfered. store only pw-hashes with salt in the database. don't let anybody see the passwords (meaning: never print them to html or emails). don't use auto\_increment values for ids the user can see (and therefore, guess). ok, that's already out of the questions scope.
[ 0.22512803971767426, 0.190628319978714, 0.20099316537380219, 0.28071603178977966, 0.31065428256988525, -0.3687613606452942, 0.6626603007316589, 0.1503715217113495, -0.01693490520119667, -0.49047282338142395, -0.14609098434448242, 0.6495949029922485, -0.2711907625198364, 0.08181415498256683...
I'm aware that the best practice is to call Dispose on any object that implements IDisposable, especially objects that wrap finite resources like file handles, sockets, GDI handles, etc. But I'm running into a case where I have an object that has a Font, and I would have to plumb IDisposable through several layers of ...
[ 0.3031718134880066, 0.15096615254878998, 0.04274122044444084, 0.14173799753189087, -0.11132404953241348, -0.11199945956468582, 0.12341944873332977, -0.15480071306228638, -0.31942859292030334, -0.8324481844902039, -0.09512819349765778, 0.5175383687019348, -0.36690381169319153, 0.11307369172...
GDI+, which is a completely separate system, and as far as I understand, is process-local, not system-global like GDI. And unlike Image, Font doesn't ever hold onto filesystem resources (that I know of, anyway). So my question is: What is the real cost of letting a Font get garbage collected? I know I would take a sm...
[ 0.3615207374095917, -0.015867022797465324, 0.40092530846595764, 0.21844282746315002, -0.45270106196403503, 0.03974011912941933, 0.05970214307308197, -0.3047404885292053, -0.1530577838420868, -0.42934083938598633, 0.013025380671024323, 0.419963002204895, -0.2355630248785019, -0.032017003744...
it's just memory. Are there costs I'm not aware of in letting a Font get GCed? Simple answer: if its just a few, then no. If it's a lot, then yes. If your application is already stressing the garbage collector, then yes. I would use perfmon to view the number of objects sitting around, and the number getting promoted ...
[ 0.30411526560783386, 0.07937142997980118, 0.40272220969200134, 0.3449721932411194, 0.038251835852861404, 0.38663265109062195, -0.26403775811195374, -0.08352062106132507, -0.16231730580329895, -0.6014269590377808, -0.024383876472711563, 0.5596441626548767, 0.09987502545118332, -0.0757445022...
I found <http://www.iseriespython.com/>, which is a version of Python for the iSeries apparently including some system specific data access classes. I am keen to try this out, but will have to get approval at work to do so. My questions are: Does the port work well, or are there limits to what the interpreter can hand...
[ 0.07506560534238815, 0.12210764735937119, 0.1611766368150711, -0.1759893000125885, -0.18440011143684387, -0.031537365168333054, 0.03975508362054825, 0.10614609718322754, -0.07435540854930878, -0.5369359850883484, 0.004021394997835159, 0.4863433837890625, -0.24535217881202698, 0.02072609215...