text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
which I am able to view the transmitted characters. I have tested this setup with another third-party utility program. I am able to communicate with the module using this third party program, and null characters show up properly. In my own program, when I use `WriteFile`, a null character anywhere in the transmit strea...
[ 0.1693534255027771, 0.24040336906909943, 0.055352576076984406, -0.07061724364757538, -0.047856248915195465, 0.022542642429471016, 0.18029148876667023, 0.0037071125116199255, -0.2692855894565582, -0.6007312536239624, -0.047833289951086044, 0.5585758090019226, -0.3178126811981201, -0.0639574...
The *receiving* device is printing the data it received using a method that stops at the first null character. How are you determining that the transmitting device is terminating at the first null? Could the problem be somewhere further down the line? 2. The serial driver is broken. This is rather unlikely, but is a po...
[ 0.3586708903312683, 0.051575396209955215, 0.20564544200897217, 0.292258083820343, -0.14231346547603607, -0.2886619567871094, 0.3068605661392212, 0.20373401045799255, -0.42680802941322327, -0.43043482303619385, -0.09895294904708862, 0.37061378359794617, -0.3361082971096039, 0.37402179837226...
look at RapidQ and there's a third possible explanation: 3. The marshaling that RapidQ may do in the process of calling Win32 API functions may have trouble with embedded null characters in the data to send. I don't know anything about RapidQ, but this is yet another link in the chain that must be considered.
[ 0.1017412394285202, 0.05262310802936554, -0.11703735589981079, -0.008415590040385723, -0.14128607511520386, -0.2861248552799225, 0.17619864642620087, 0.0702814906835556, 0.08871295303106308, -0.47090333700180054, 0.3257180154323578, 0.45206913352012634, -0.42088690400123596, -0.16326262056...
I am looking for podcasts or videos on how to do unit testing. Ideally they should cover both the basics and more advanced topics. At [Dnr TV](http://www.dnrtv.com/) there are two episodes with JP Boodhoo, where he gives an introduction to test driven development: * [Test Driven Development with JP Boodhoo, Part 1](h...
[ 0.6855136752128601, 0.078656867146492, -0.24157626926898956, 0.14855152368545532, -0.28866705298423767, -0.15503011643886566, 0.2653646469116211, -0.3424690067768097, 0.1165698990225792, -0.3932570517063141, -0.19468751549720764, 0.5034611225128174, 0.5813771486282349, -0.04783636331558227...
for podcasts, check out the following: * [Polymorphic Podcast - Jason Bock on Unit Testing, Code Coverage & Analysis](http://polymorphicpodcast.com/shows/bock/) * [Hanselminutes - Scott Hanselman on Test Driven Development](http://perseus.franklins.net/hanselminutes_0031.mp3) * [Hanselminutes - The Last Word on TDD, w...
[ 0.28211989998817444, 0.4799768924713135, -0.2095772922039032, 0.1667749434709549, -0.3374145030975342, 0.3799130618572235, 0.3368617296218872, 0.029809502884745598, -0.10765760391950607, -0.3083512485027313, -0.20568323135375977, 0.7806372046470642, 0.09994474053382874, 0.03032242879271507...
I have a dataview defined as: ``` DataView dvPricing = historicalPricing.GetAuctionData().DefaultView; ``` This is what I have tried, but it returns the name, not the value in the column: ``` dvPricing.ToTable().Columns["GrossPerPop"].ToString(); ``` You need to specify the row for which you want to get the value....
[ 0.14822015166282654, 0.04060767590999603, 0.8240006566047668, -0.16360162198543549, -0.12375280261039734, 0.20414160192012787, 0.0563967302441597, -0.06307272613048553, 0.04430244490504265, -0.5071718692779541, -0.23255519568920135, 0.5092325210571289, -0.0971912369132042, 0.33321386575698...
I am pretty well versed with SQL Server, MySQL, Oracle etc but putting these Database products aside, is there a resource that will help me design relational databases well? Is there something like patterns or best practices for database design? I have seen a few times that database is often not scalable; people have ...
[ 0.5689370632171631, 0.2517602741718292, -0.12290237843990326, 0.17139320075511932, -0.0009813773212954402, -0.20077943801879883, 0.3061237037181854, 0.25803491473197937, -0.29566675424575806, -0.4508691728115082, 0.45485934615135193, 0.4478782117366791, 0.0007959998911246657, 0.09063988178...
will be highly appreciated. Thanks in advance. A few points: * Learn as much as you can about **problem domain**. You can't create good data model without knowing what you're designing for * Have good knowledge about **data types** provided by your database provider * How to properly use **normalisation** and design ...
[ 0.39143139123916626, 0.06034475937485695, 0.2672775685787201, 0.46243005990982056, -0.3090082108974457, -0.13733325898647308, 0.1427832990884781, -0.21542921662330627, 0.20264196395874023, -0.6714043021202087, -0.1953439563512802, 0.3406901955604553, 0.09363087266683578, 0.0702886506915092...
I have an app that uploads documents to the server through the standard When sent my application to the production server, I found out that they had the server load balanced. My solution to this was to place the upload directory into a network share and then create a virtual directory pointing to the share. I have s...
[ 0.3657522201538086, 0.3130715787410736, 0.41884657740592957, 0.26288869976997375, 0.06565190851688385, -0.23046216368675232, 0.21717336773872375, -0.07986625283956528, -0.31896618008613586, -0.5898380875587463, 0.10062669217586517, 0.37414294481277466, -0.10888154804706573, 0.5177215337753...
me was to setup temporary impersonation with a user account that had access to the share, the folder and the virtual directory. Here's a link to the code that worked for me: <http://support.microsoft.com/kb/306158#4>
[ 0.456831693649292, 0.09081993997097015, 0.06085171923041344, -0.017487522214651108, -0.017345594242215157, 0.3942594826221466, 0.3188475966453552, 0.23889730870723724, 0.03581298142671585, 0.03625205531716347, -0.004442292265594006, 0.432750940322876, -0.17019042372703552, -0.1021750122308...
I'm always surprised that even after using C# for all this time now, I still manage to find things I didn't know about... I've tried searching the internet for this, but using the "~" in a search isn't working for me so well and I didn't find anything on MSDN either (not to say it isn't there) I saw this snippet of c...
[ 0.4458678662776947, -0.11597806960344315, 0.2969653308391571, 0.2635021209716797, 0.1310615986585617, 0.036518391221761703, -0.414028525352478, 0.2137443721294403, -0.1999908685684204, -0.5069888830184937, 0.0027240535710006952, 0.5374140739440918, 0.3990660309791565, 0.393197238445282, ...
1, Check = 2, CreditCard = 4 } ``` I was a little surprised to see it so I tried to compile it, and it worked... but I still don't know what it means/does. Any help?? ~ is the unary one's complement operator -- it flips the bits of its operand. ``` ~0 = 0xFFFFFFFF = -1 ``` in two's complement arithmetic,...
[ -0.036488790065050125, -0.05736038088798523, 0.21602894365787506, -0.09694495797157288, -0.2078453004360199, -0.2006700336933136, -0.2705572247505188, 0.0169545765966177, -0.06745045632123947, -0.3592965602874756, -0.2789909839630127, 0.5287019610404968, -0.3421936631202698, 0.101762324571...
I've added a label control to a webform. It appears when I run the page but when I try to reference it using the codebehind, I get no intellisense and the code I write somehow doesn't work. I've verified the project is running in debug, that debug compilation is set in the web.config. In fact, I can debug all pages. Ho...
[ 0.3921675384044647, 0.18193498253822327, 0.5934743881225586, 0.17704638838768005, 0.06912344694137573, -0.28032946586608887, 0.4082344174385071, 0.00786405336111784, -0.06679855287075043, -0.6344219446182251, -0.17196612060070038, 0.23579183220863342, -0.1801527887582779, 0.351190149784088...
which has the be the main issue. Not sure why that's happening as I recompiled the whole project. I have this at the top of the page: `print("<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberSearch.aspx.cs" Inherits="Portal.EmployerPortal.MemberSearch" Debug="true" %> ");` Any ideas? In the past I've...
[ 0.5517492294311523, 0.12401732057332993, 0.3605732023715973, -0.19251911342144012, 0.10238343477249146, -0.0041835918091237545, 0.12870606780052185, -0.06070061773061752, -0.0692572146654129, -0.6209127902984619, 0.14702005684375763, 0.6614090204238892, -0.30559995770454407, 0.294203013181...
In SQL server you can use the DATENAME function to get the day of week as a string ``` declare @date datetime set @date = '12/16/08' select datename(dw, @date) ``` which returns "Tuesday" and you can use the DATEPART function to get the day of week as an integer ``` declare @date datetime set @date = '12/16/08' se...
[ 0.01742704026401043, -0.17139098048210144, 0.547107994556427, -0.048829901963472366, -0.13776804506778717, -0.1882103830575943, 0.09155210852622986, -0.05284261330962181, -0.15670223534107208, -0.31764453649520874, 0.21930423378944397, 0.4999980926513672, -0.29359179735183716, 0.3360409736...
function, you should create a days of the week table with the description and the numeric value. THen you can simply join to the table to get the numeric. And if you have days stored multiple ways (likely in a characterbased system), you can put all the variants into the table, so TUE, Tues., Tuesday would all map to ...
[ 0.14785675704479218, -0.47071975469589233, 0.5263537764549255, 0.14756013453006744, -0.10661960393190384, 0.4317992031574249, -0.14134803414344788, 0.21458038687705994, -0.5880435109138489, -0.44738250970840454, 0.07140980660915375, 0.11138582229614258, -0.3283451795578003, 0.4250258505344...
**NB** - This question is not a stab at RoR or at Redmine's plugin system --- I have been working on a custom plugin for [Redmine](http://redmine.org), a project manager platform built with Ruby on Rails (RoR). Now I am not *really* a RoR or for that matter, a Ruby guy. I have managed to write the plugin and everythi...
[ 0.6883584260940552, 0.39053213596343994, -0.1829545646905899, -0.3764393627643585, -0.20229512453079224, -0.05109165608882904, 0.6344814300537109, 0.29295575618743896, -0.1819930076599121, -0.2319362461566925, 0.07551469653844833, 0.46150389313697815, -0.17383083701133728, -0.0750924870371...
have done. I am not too concerned with making this code as perfect as possible, for the sole reason that this is only used internally, and really, people only care that it "works" (I am the only one who will look at the code). What words of wisdom can be passed on to suppress the "You're Doing It Wrong!!" feeling? I ...
[ 0.8596020340919495, 0.3780454695224762, 0.12831029295921326, -0.1433665007352829, 0.1767311692237854, -0.16202884912490845, 0.9479684233665466, 0.097548708319664, -0.33395665884017944, -0.6149653792381287, 0.2454463392496109, 0.4224538207054138, -0.028369957581162453, 0.3392719030380249, ...
I have a C# public API that is used by many third-party developers that have written custom applications on top of it. In addition, the API is used widely by internal developers. This API wasn't written with testability in mind: most class methods aren't virtual and things weren't factored out into interfaces. In addi...
[ 0.4000708758831024, 0.32809340953826904, -0.2842136025428772, 0.18542183935642242, -0.23142531514167786, -0.13074705004692078, 0.11761803179979324, 0.014873763546347618, -0.2891666889190674, -0.42716068029403687, 0.19581329822540283, 0.5912923812866211, -0.1435723602771759, 0.1442191302776...
able to mock the objects in the API. There are several approaches that come to mind, but none of them seem great: 1. The traditional approach would be to force developers to create a proxy class that they controlled that would talk to my API. This won't work in practice because there are now hundreds of classes, many...
[ 0.5958626866340637, 0.09958142042160034, 0.0821131244301796, 0.11993876844644547, -0.32288020849227905, -0.052311114966869354, 0.4585123658180237, 0.09323985874652863, 0.011966923251748085, -0.47250548005104065, 0.2504390776157379, 0.6067430973052979, -0.4640042781829834, 0.405198633670806...
and potentially require them to learn a different mock object tool than what their used to. 3. Go through the entire project and make all the methods virtual. This would allow mock-ing of objects using free tools like [Moq](http://code.google.com/p/moq/) or [Rhino Mocks](http://ayende.com/projects/rhino-mocks.aspx), bu...
[ 0.33561423420906067, -0.002162299118936062, 0.06932540237903595, 0.2514648139476776, -0.23216766119003296, 0.1838286966085434, 0.42101991176605225, -0.46285387873649597, -0.1323992758989334, -0.5600322484970093, 0.08190388977527618, 0.48068907856941223, -0.27429577708244324, 0.006202787160...
body just return the default value for the return type. Then, I could ship this dummy test assembly each time I released an update to the API. Developers could then write tests for the API against the dummy assembly since it had virtual members that are very mock-able. This might work, but it seems a bit tedious to wri...
[ 0.8120508790016174, -0.05077604576945305, -0.06967009603977203, 0.28370556235313416, -0.436226487159729, 0.15148794651031494, 0.39066603779792786, -0.491939902305603, -0.06952667981386185, -0.2756834030151367, 0.5034559965133667, 0.7167372703552246, -0.03384631499648094, -0.168561026453971...
go out of date. 5. Similar to #4, I could go through every file and add something like "#ifdef UNITTEST" to every method and body to do the equivalent of what a tool would do. This doesn't require an external tool, but it would pollute the codebase with a lot of ugly "#ifdef"'s. Is there something else that I haven't ...
[ 0.43756112456321716, -0.026945900171995163, 0.1394187957048416, 0.30617138743400574, 0.2523677945137024, -0.2725466787815094, 0.09761010110378265, 0.05582799017429352, 0.03154702112078667, -0.524429202079773, 0.1339494287967682, 0.5055816769599915, -0.1406763195991516, 0.20968662202358246,...
makes it hard to do drastic design changes. There [have](https://stackoverflow.com/questions/131806/mocking-classes-that-arent-interfaces) [been](https://stackoverflow.com/questions/42785/how-do-you-retrofit-unit-tests-into-a-code-base) [several](https://stackoverflow.com/questions/346345/how-do-you-unit-test-a-class-...
[ 0.02281816489994526, 0.08941721171140671, -0.003964927978813648, 0.016166966408491135, -0.09354575723409653, -0.182211235165596, 0.2575221061706543, -0.3057789206504822, -0.07707518339157104, -0.349017858505249, -0.06698837876319885, 0.6295926570892334, 0.0451570563018322, -0.1169657781720...
point, but has some problems such as the existing design has many cases where we take expose a concrete class. For example: ``` public class UserRepository { public UserData GetData(string userName) { ... } } ``` Existing customers that are expecting the concrete class (e.g. "UserData") would...
[ -0.0830579325556755, -0.0005350670544430614, -0.02578955516219139, -0.0015596351586282253, -0.20333842933177948, -0.1390841007232666, 0.31740614771842957, -0.21026155352592468, -0.0807490274310112, -0.47611066699028015, -0.13399815559387207, 0.3093900978565216, -0.38154807686805725, 0.2268...
then had to expose it as a concrete class. The biggest challenge to a significant rewrite or redesign is that there is a huge investment in the current API (thousands of hours of development and probably just as much third party training). So, while I agree that a better [SOLID](http://butunclebob.com/ArticleS.UncleBo...
[ 0.2209232598543167, 0.02467535436153412, 0.1539357602596283, 0.07993320375680923, 0.05956706777215004, 0.067172572016716, 0.28071174025535583, -0.25263512134552, -0.11402921378612518, -0.4962386190891266, 0.08749433606863022, 0.5642717480659485, -0.024631353095173836, 0.14130155742168427, ...
but it is more complicated integration testing rather than unit-testing. Additionally, as mentioned by [Chad Myers](https://stackoverflow.com/users/10862/chadmyers), this is question addresses a similar problem that the .NET framework itself faces in some areas. I realize that I'm probably looking for a "silver bull...
[ 0.5949454307556152, 0.2042868584394455, -0.5041614174842834, 0.15659403800964355, 0.23567040264606476, -0.22030268609523773, 0.35018351674079895, -0.470085471868515, -0.024382781237363815, -0.4514809846878052, 0.18219873309135437, 0.566120445728302, -0.0728730782866478, 0.08532313257455826...
my API with SOLID and similar principles in mind so my API plays well with others?" It's not just about testability. If your customers are having problems testing their code with yours, then they're also having problems WRITING/USING their code with yours, so this is a bigger problem than just testability. Simply extr...
[ 0.5155590176582336, 0.10986074060201645, -0.16698893904685974, 0.18392197787761688, -0.1908319741487503, -0.010102419182658195, 0.269287645816803, -0.14389565587043762, -0.12728287279605865, -0.5549097657203674, 0.2134474515914917, 0.6583939790725708, -0.16917634010314941, 0.00818495079874...
previous answer). I like to call this the IHttpContext problem. ASP.NET, as you know, is very difficult to test around or with due to the "Magic Singleton Dependency" problem of HttpContext.Current. HttpContext is not mockable without fancy tricks like what TypeMock uses. Simply extracting an interface of HttpContext ...
[ 0.10261193662881851, 0.05448826029896736, 0.40788745880126953, 0.22403398156166077, -0.42366063594818115, -0.2637995183467865, 0.5475032925605774, -0.11242528259754181, -0.40076833963394165, -0.7711091637611389, -0.04552818089723587, 0.47040510177612305, 0.007927642203867435, 0.22349722683...
is not something you and try to force/cram into an existing API designed without these principles in mind. I hate to leave you with such a grim answer, so I'll give you one positive suggest: How's about YOU take all the grief on behalf of your customers and make some sort of service/facade layer over top of your old A...
[ 0.7003389596939087, 0.3757345676422119, 0.009021120145916939, 0.060354605317115784, 0.04555276781320572, 0.19569726288318634, 0.41596847772598267, 0.060923248529434204, -0.05028890445828438, -0.5062485337257385, 0.09841766953468323, 0.47161781787872314, -0.031137755140662193, 0.05200630053...
to slowly replace parts of your API and eventually make it so your new API isn't just a facade, it IS the API (and the old API is phased out).
[ 0.7909522652626038, 0.2631555199623108, 0.18754975497722626, -0.04687013849616051, 0.3454166054725647, -0.02042035572230816, 0.46214619278907776, 0.05647245794534683, 0.07143031805753708, -0.6986140012741089, -0.034045200794935226, 0.21059264242649078, -0.4086058735847473, 0.24547863006591...
I've got a submission page in php with an html form that points back to the same page. I'd like to be able to check if the required fields in the form aren't filled so I can inform the user. I'd like to know how to do that with php and javascript each. However, I imagine this is a common issue so any other answers are ...
[ 0.5810376405715942, 0.2469923198223114, 0.2274819314479828, -0.15546360611915588, -0.0957789495587349, -0.043128304183483124, 0.34872740507125854, -0.025928957387804985, 0.022773945704102516, -0.6898717284202576, -0.08716467767953873, 0.227804034948349, -0.13286812603473663, -0.12447731196...
$fields['Nimi'] = $_POST['name']; $fields['Kool'] = $_POST['school']; $fields['Aadress'] = $_POST['address']; $fields['Telefon'] = $_POST['phone']; $fields['Email'] = $_POST['email']; foreach ($fields as $key => $val) { if(trim($val)=='')
[ 0.08043668419122696, -0.24747641384601593, 0.14435261487960815, -0.07252039760351181, 0.5404308438301086, 0.01487332209944725, 0.240738645195961, -0.1559484750032425, 0.27601566910743713, -0.5478274822235107, -0.7023009061813354, 0.8056247234344482, -0.24939298629760742, 0.1592487543821334...
{ $errmsg=$key." is not filled!"; break; } } } if($errmsg == '') { //do your saving here exit(); } if(!isset($_POST['save']) || $errmsg != '') { //show your form here // and make it to return to the same page
[ -0.6079979538917542, 0.1122533306479454, 0.7842003703117371, -0.2801395058631897, 0.13282598555088043, 0.3465709686279297, 0.46866318583488464, -0.0870085135102272, -0.2852088212966919, -0.8041486144065857, -0.5484832525253296, -0.05078224465250969, -0.3561818599700928, 0.01787582598626613...
on submit //<input name="save" type="submit" value="Save" onclick="return true;"> } ```
[ 0.14793159067630768, 0.1474762111902237, 0.11892764270305634, 0.12674519419670105, 0.05108761414885521, 0.15756680071353912, 0.27409306168556213, -0.3862370550632477, 0.1736803501844406, -0.5709936022758484, -0.34882697463035583, 0.610517144203186, -0.13991156220436096, 0.07654847949743271...
I want our app to show the online help page (so it's always up to date) or even a local page. However, it's likely to be blocked by the Firewall (Zone Alarm). BTW, I tested this with Zone Alarm. It blocked access to a local .html file as well as to an .asp file on the internet. (I.e., tried to display a page in Intern...
[ 0.36272627115249634, 0.033352259546518326, 0.6390140056610107, 0.08483664691448212, 0.08307833969593048, -0.0640048235654831, 0.5187597870826721, 0.08139978349208832, -0.18604294955730438, -0.6558499932289124, -0.24302423000335693, 0.3569156527519226, -0.25463056564331055, 0.06058613583445...
"send(..)" on the MessageProducer (QueueSender, etc). Or, you can set the default priority on the MessageProducer from 0-9 (9 is highest). Setting the priority on the message itself won't work. It's overridden by the Producer. Uri is correct--whether or not the priority is respected is implementation specific. I belie...
[ -0.017198096960783005, -0.3357336223125458, 0.4677020013332367, -0.0907219648361206, -0.19221468269824982, -0.18808990716934204, 0.202266126871109, 0.03541845455765724, -0.23535357415676117, -0.5964837074279785, -0.4948848485946655, 0.3426263928413391, -0.3300236165523529, 0.16521656513214...
I've encountered a problem with my Netbeans 6.1 IDE. After an unsuccessful update, Netbeans stopped recognizing Apache and Glassfish servers and requested me to resolve a missing server error, after which I opened a window to add a server, except there were none listed. Trying to add servers in the list yields no resu...
[ 0.1503206044435501, -0.12825141847133636, 0.37543410062789917, -0.07922385632991791, -0.233194500207901, -0.20223523676395416, 0.570106565952301, 0.24468854069709778, -0.40211808681488037, -0.6318640112876892, -0.11105772852897644, 0.394288033246994, -0.537024199962616, 0.35119110345840454...
from 0-9 (9 is highest). Setting the priority on the message itself won't work. It's overridden by the Producer. Uri is correct--whether or not the priority is respected is implementation specific. I believe OpenJMS generally respects the priority out-of-the-box, but does not guarantee it. JMS Spec states: `"JMS does...
[ 0.0027786456048488617, -0.09816421568393707, 0.34692490100860596, -0.0706404447555542, -0.10476963967084885, -0.05741751566529274, 0.14375878870487213, -0.008290533907711506, -0.242248073220253, -0.2726656198501587, -0.571694552898407, 0.26007625460624695, -0.27877312898635864, 0.090524360...
I have a sidebar on my webpage that is supposed to span 100% of the page (vertically). It is then supposed to stay there, so when the rest of the content scrolls it does not. To do this, I used: ``` body { height: 100%; } #sidebar { height: 100%; width: 120px; position: fixed; top: 0; left: 0;...
[ 0.31827259063720703, 0.08441320061683655, 0.5204010605812073, -0.259614497423172, -0.1481156349182129, -0.02611708454787731, 0.20048309862613678, -0.04740230739116669, -0.2517148554325104, -0.6890085935592651, -0.01638571172952652, 0.21600216627120972, -0.048224639147520065, 0.031873419880...
be very concerned about putting the load of sending e-mails on my database server (small though it may be). I might suggest one of these alternatives: 1. Have application logic detect the need to send an e-mail and send it. 2. Have a MySQL trigger populate a table that queues up the e-mails to be sent and have a proce...
[ 0.3221708834171295, -0.09133119136095047, 0.07222595810890198, 0.2603785991668701, -0.28186893463134766, -0.5197604894638062, -0.059811726212501526, -0.0678504928946495, -0.15752989053726196, -0.7352205514907837, 0.0007132196333259344, 0.6935019493103027, -0.34899628162384033, -0.174657210...
For anyone that remembers the protocol Avatar, (I'm pretty sure this was it's name) I'm trying to find information on it. All I've found so far, is that it's an ANSI style compression protocol, done by compressing common ANSI escape sequences. But, back in the day, (The early 90's) I swore I remembered that it was use...
[ -0.2982606589794159, 0.06303847581148148, 0.46430331468582153, 0.15990646183490753, 0.06961637735366821, 0.05406089127063751, 0.12329661846160889, 0.32994523644447327, -0.5604324340820312, -0.6040085554122925, 0.008552919141948223, 0.37307819724082947, -0.2869779169559479, 0.05859133228659...
do anything for file transfers or what not, it was just a way of compressing ASCII text down as small as possible. I'm trying to do research on this topic, and figured this is a good place to start looking. I think that the protocol used every trick in the book to compress ASCII, like common word replacement to a sing...
[ 0.5962961912155151, -0.1379249393939972, -0.08574403077363968, 0.3088364899158478, 0.14812730252742767, -0.12035613507032394, -0.009350515902042389, 0.16167058050632477, -0.4259554445743561, -0.3983968198299408, 0.22712920606136322, 0.20888328552246094, -0.3004225790500641, -0.105182461440...
on Avatar, or maybe even an answer to if it even DID any of the ASCII compression I'm speaking of? Wikipedia has something about [AVATAR protocol](https://en.wikipedia.org/wiki/Advanced_Video_Attribute_Terminal_Assembler_and_Recreator): > The AVATAR protocol (Advanced Video > Attribute Terminal Assembler and > Recre...
[ -0.03790431097149849, -0.3306778073310852, 0.33346983790397644, 0.22207437455654144, 0.13675342500209808, 0.09845171868801117, 0.17060846090316772, -0.1719280332326889, -0.3288257122039795, -0.6949931979179382, -0.1725408136844635, 0.3086669445037842, -0.49719804525375366, -0.0062895882874...
defined by FidoNet > technical standard proposal FSC-0025. > > > Avatar was later extended by in late > 1989 to AVT/0 (sometimes referred to > as AVT/0+) which included facilities > to scroll areas of the screen (useful > for split screen chat, or full screen > mail writing programs), as well as > more advance...
[ -0.056701045483350754, -0.3020877540111542, 0.8559873700141907, 0.08974514156579971, -0.3512807786464691, 0.39003345370292664, 0.03761882707476616, -0.2244865894317627, -0.5051997900009155, -0.6946963667869568, 0.16727598011493683, 0.574364185333252, -0.43335142731666565, 0.017863778397440...
proposal at FidoNet Technical Standards Committee. * [FSC-0037](http://www.ftsc.org/docs/fsc-0037.001) - AVT/0 extensions
[ 0.3803456425666809, -0.16514542698860168, 1.0014426708221436, -0.08055465668439865, 0.22945544123649597, -0.026721138507127762, -0.004575038328766823, -0.5232600569725037, -0.633798360824585, -0.40959325432777405, -0.7004756331443787, 0.5763124227523804, -0.13408154249191284, -0.1094608977...
I need to create a Windows service that works just like the task scheduler in that I can configure what time it runs and it basically just calls a .NET class at that scheduled time (recurring). What is the recommended way to do this? Also, any information on installing/removing that service would be appreciated! Updat...
[ 0.2699008584022522, -0.2722785472869873, 0.07651843130588531, 0.4497509300708771, -0.04219812527298927, -0.17620602250099182, 0.5518607497215271, 0.12856091558933258, -0.1782461255788803, -0.7088549733161926, 0.12407363951206207, 0.7841103672981262, -0.01003211922943592, -0.024571804329752...
the following which has exactly what I need: <http://www.c-sharpcorner.com/UploadFile/ajifocus/AppScheduler05262006074807AM/AppScheduler.aspx?ArticleID=b52f76da-943f-4807-9675-869f135ef2cd> You could try the .NET Task Scheduler <http://TaskService.Codeplex.com>. This project provides the ability to schedule .NET assem...
[ 0.40364715456962585, -0.27048420906066895, 0.18005026876926422, 0.19823327660560608, -0.20102953910827637, 0.006201129872351885, 0.3454250395298004, -0.09896133840084076, -0.43792301416397095, -0.7204921245574951, 0.1583067625761032, 0.5909105539321899, 0.008568813093006611, -0.01698190346...
I've been programming in Ruby for a few months now, and I'm wondering when it is appropriate to use constants over class variables and vice versa. (I'm working in Rails, thinking about constants in models). ``` class Category TYPES = %w(listing event business).freeze end ``` OR ``` class Category @@types = %w(l...
[ 0.13338598608970642, -0.07424131780862808, 0.1420370489358902, 0.008368832059204578, -0.1902836710214615, -0.09435546398162842, 0.2552964389324188, 0.01348790805786848, -0.3170637786388397, -0.4005148410797119, -0.28398412466049194, 0.30362188816070557, -0.34514883160591125, 0.368447095155...
back and read the RDoc.
[ 0.025104492902755737, 0.5369137525558472, -0.16748091578483582, -0.03979811072349548, -0.38779014348983765, -0.06762994080781937, -0.01097410824149847, 0.3483295738697052, -0.12887364625930786, -0.33742555975914, -0.22449488937854767, 0.39098575711250305, -0.005740324500948191, -0.06178725...
What is the preferred method of implementing the OpenSocial platform? I'm aware of Apache Shindig but can't really find any useful information on it. Also, is it possible to use an existing solution like the Rails-based [lovdbyless](http://lovdbyless.com/) and add OpenSocial features to it? There seems to be a plugin t...
[ 0.15343782305717468, -0.024317726492881775, 0.22804401814937592, 0.07650372385978699, -0.4829326570034027, -0.15054255723953247, -0.08493790775537491, 0.2867259383201599, -0.30385613441467285, -0.554072916507721, 0.12353013455867767, 0.3495582342147827, -0.1302029937505722, 0.1211853548884...
I am developing an application that can be extended using "plug-ins". The plug-ins will be pretty basic, allowing developers to add new "actions" to my application. What documentation/information do I need to provide so that developers can do what they need to? I was thinking a short example and a general overview of...
[ 0.7249392867088318, 0.14820152521133423, -0.10264717787504196, 0.0736713856458664, 0.28718188405036926, -0.07629436254501343, 0.16810601949691772, -0.201405331492424, -0.256635457277298, -0.4357548952102661, 0.029016463086009026, 0.4419674575328827, 0.03076120652258396, -0.1582520157098770...
writers can collaborate, and * an easy way for plugin authors to contribute their plugin might help.
[ 0.6148796081542969, 0.06833267211914062, -0.1409669667482376, 0.39470213651657104, -0.1089731976389885, -0.15315760672092438, 0.11258790642023087, 0.1944579929113388, -0.3071151077747345, -0.6925365924835205, -0.12568853795528412, 0.277190625667572, 0.006754293106496334, -0.134155243635177...
Hopefully, this will be an easy answer for someone with Javascript time behind them... I have a log file that is being watched by a script that feeds new lines in the log out to any connected browsers. A couple people have commented that what they want to see is more of a 'tail -f' behavior - the latest lines will alw...
[ 0.4125988185405731, -0.22814123332500458, 0.3792726695537567, 0.1934160441160202, -0.0027878987602889538, -0.22100234031677246, 0.43817830085754395, 0.3891846537590027, -0.3752135932445526, -0.6168410778045654, 0.288906455039978, 0.29312556982040405, -0.0966411903500557, -0.042362160980701...
a matter of not knowing anything at all about javascript and therefore, not knowing what keywords to search for. I don't need a complete solution - just a 'close enough' that lets me jump in and get my hands dirty. EDIT: I've been attempting the scrollTop/scrollHeight idea, but am clearly missing something. I've done...
[ 0.4013148248195648, 0.3159051537513733, 0.43017125129699707, -0.1254851520061493, -0.25730785727500916, -0.22312141954898834, 0.4036223292350769, -0.3750150501728058, 0.10139960050582886, -0.6689569354057312, 0.11196477711200714, 0.46182534098625183, -0.07469506561756134, -0.18412663042545...
just trying to see the correct behavior. What's the missing link I need here? EDIT AGAIN: This has turned into a far more interesting problem that I first expected. The code suggestion using window.scroll does do the trick. I started playing with restricting the scroll to only take place when the browser was at the bo...
[ 0.24198414385318756, -0.16632188856601715, 0.6548162698745728, 0.015520664863288403, -0.09745091944932938, -0.285234272480011, 0.36959588527679443, 0.0847177654504776, -0.2872675657272339, -0.6346023082733154, 0.28821736574172974, 0.5963020920753479, -0.14818602800369263, 0.094915896654129...
document. You can no longer tell the difference (using scrollHeight, clientHeight and scrollTop) whether the user has scrolled up or if the text has just shot beyond their view. I think that if this is going to work, I'm going to have to commit myself to having a JS event that fires when the user scrolls and turns off...
[ 0.08870825171470642, -0.011374760419130325, 0.8562352657318115, 0.0028024078346788883, 0.0020966683514416218, -0.47297102212905884, 0.31765761971473694, -0.14412201941013336, -0.2766794264316559, -0.9004692435264587, 0.05600994452834129, 0.738259494304657, 0.1551351398229599, 0.07705412060...
the math on the variables I mentioned works out pretty well, I think I am on the right path here. Thanks for your input, everyone! ``` x = 0; //horizontal coord y = document.height; //vertical coord window.scroll(x,y); ```
[ 0.2570338249206543, 0.4617983400821686, 0.6711844205856323, 0.14688311517238617, -0.03655353933572769, -0.24499613046646118, 0.31370675563812256, 0.061976172029972076, -0.08777095377445221, -0.7782674431800842, -0.08473318070173264, 0.7871643304824829, 0.22002018988132477, 0.11276299506425...
I need to design a program using python that will ask the user for a barcode. Then, using this barcode, it will search a mysql to find its corresponding product. I am a bit stuck on how to get started. Does anyone have any tips for me? Use [python-mysql](http://mysql-python.sourceforge.net/MySQLdb.html#using-and-exte...
[ 0.5627811551094055, 0.20413342118263245, 0.21207256615161896, 0.00460390467196703, 0.13727489113807678, -0.1693619191646576, 0.16393060982227325, -0.11626254767179489, 0.14627446234226227, -0.40826132893562317, 0.1174977570772171, 0.5632341504096985, -0.13090859353542328, -0.08288469910621...
fetchone until None is returned (no more rows) for row in iter(mycursor.fetchone, None): print row ``` If you want something more high-level, consider using [SQLAlchemy](http://www.sqlalchemy.org/) as a layer. It could allow you to do: ``` product = session.query(Product).filter(Product.barcode == user_input).s...
[ -0.028086017817258835, -0.3022197484970093, 0.7345362305641174, -0.15621085464954376, -0.21722908318042755, 0.34574899077415466, -0.29947584867477417, -0.17274817824363708, -0.1634657084941864, -0.5296600461006165, -0.016574788838624954, 0.5470247268676758, -0.11098500341176987, 0.36830443...
I have a file with 450,000+ rows of entries. Each entry is about 7 characters in length. What I want to know is the unique characters of this file. For instance, if my file were the following; > ``` > Entry > ----- > Yabba > Dabba > Doo > > ``` Then the result would be > Unique characters: {abdoy} Notice I don't ...
[ 0.05365246906876564, 0.5897316932678223, 0.20174640417099, -0.19447186589241028, -0.17039768397808075, 0.46203404664993286, 0.29819414019584656, -0.13509611785411835, -0.20488736033439636, -0.8383855223655701, 0.11985014379024506, 0.30631572008132935, -0.25795695185661316, 0.46624416112899...
so on. I'm looking for a nice script solution. Update 2 -------- By **Fast**, I mean fast to implement...not necessarily fast to run. Here's a **PowerShell** example: ``` gc file.txt | select -Skip 2 | % { $_.ToCharArray() } | sort -CaseSensitive -Unique ``` which produces: > D > > Y > > a > > b > ...
[ -0.14692068099975586, -0.005101355258375406, 0.46924889087677, -0.0293280016630888, 0.10517310351133347, -0.16681285202503204, 0.22810691595077515, -0.06378450244665146, -0.3981211185455322, -0.7980890274047852, -0.24601982533931732, 0.6398501396179199, -0.6529955267906189, -0.129882544279...
Let's say I have a table called Product, with three columns: Id, CustomerId, Name. Id is the primary key. The schema is outside of the control of my group, and we now have a requirement to always provide CustomerId as a parameter for all queries (selects, updates, deletes). It's a long story I'd rather not get into ......
[ 0.2063198983669281, 0.2725028693675995, 0.695917010307312, -0.2382405400276184, -0.060997553169727325, 0.2093372792005539, -0.4354032576084137, -0.0971553698182106, 0.1424541175365448, -0.37967726588249207, 0.2746451199054718, 0.3641670048236847, -0.15525954961776733, 0.4455449879169464, ...
= @Name where Id=@Id and CustomerId=@CustomerId ``` Where the customerId parameter is included in the where clause in addition to the primary key. Thanks :-) Does the CustomerId help uniquely identify the row past @Id? I didn't really follow the "triggers" bit, since the predicate used for the update is not known by...
[ -0.07732202857732773, 0.19879081845283508, 0.6907984018325806, -0.2696855366230011, 0.13771073520183563, 0.22994302213191986, -0.05168156325817108, -0.2023375928401947, 0.014249668456614017, -0.40353477001190186, 0.018731195479631424, 0.6834975481033325, -0.16573376953601837, 0.13924780488...
select product; foreach(Product p in qry) { p.Name = @Name; } model.SaveChanges(); // or whatever the method is in EF ``` If you know you are expecting one record, you could use: ``` Product prod = (from product in model.Products where Id == @Id && CustomerId == @CustomerId select product)....
[ 0.3518705368041992, -0.23206931352615356, 0.4240800738334656, -0.28932827711105347, 0.18045639991760254, 0.19230768084526062, -0.0789150521159172, -0.22500206530094147, -0.2603299915790558, -0.4970245063304901, -0.020061613991856575, 0.5116865634918213, -0.3358176350593567, 0.3635203540325...
Entity-SQL includes DML, so no, you can't - you'd have to use either the above, or a regular SQL command/SPROC)
[ -0.01299308892339468, 0.0819648802280426, 0.4530274271965027, 0.3029478192329407, 0.05694088339805603, -0.3033890426158905, -0.09203553944826126, -0.07476610690355301, -0.05295371636748314, 0.012901367619633675, -0.2626737952232361, 0.45407000184059143, -0.26112714409828186, 0.218939289450...
Why is the compiler unable to infer the correct type for the result from Collections.emptySet() in the following example? ``` import java.util.*; import java.io.*; public class Test { public interface Option<A> { public <B> B option(B b, F<A,B> f); } public interface F<A,B> { public B f(A...
[ 0.17142513394355774, -0.26668334007263184, 0.27392855286598206, -0.20766721665859222, 0.18770840764045715, 0.3673999309539795, 0.09899979829788208, -0.3876320421695709, -0.1829203963279724, -0.5388137698173523, -0.24086733162403107, 0.5648707747459412, -0.4253650903701782, -0.0095684900879...
Collection<String>>() { public Collection<String> f(Integer i) { return Collections.singleton(i.toString()); } }); } } ``` Here's the compiler error message: ``` knuttycombe@knuttycombe-ubuntu:~/tmp/java$ javac Test.java Test.java:16: <B>option(B,Test.F<java.lang....
[ 0.01430327259004116, -0.20790541172027588, 0.21291287243366241, -0.1793953776359558, 0.0897330492734909, 0.227811798453331, 0.17917299270629883, -0.6385563611984253, -0.4401143789291382, -0.24841095507144928, -0.5670555233955383, 0.4810853600502014, -0.46953222155570984, 0.1293705403804779...
^ 1 error ``` Now, the following implementation of getColl() works, of course: ``` public Collection<String> getColl() { Option<Integer> iopt = null; Collection<String> empty = Collections.emptySet(); return iopt.option(empty, new F<Integer, Collection<String>>() { public Col...
[ -0.18867768347263336, -0.313819944858551, 0.5814663171768188, -0.41299232840538025, 0.30367201566696167, 0.31211090087890625, -0.03307013213634491, -0.14855597913265228, -0.30860158801078796, -0.32530099153518677, -0.2907591760158539, 0.8134559988975525, -0.26201972365379333, 0.00936272554...
} }); } ``` and the whole intent of the typesafe methods on Collections is to avoid this sort of issue with the singleton collections (as opposed to using the static variables.) So is the compiler simply unable to perform inference across multiple levels of generics? What's going on? Java needs a lot of h...
[ 0.10209141671657562, -0.0006650444702245295, -0.03383437544107437, 0.004190665669739246, -0.2168286144733429, -0.2121075838804245, 0.3542012572288513, -0.390565425157547, -0.23815800249576569, -0.37701496481895447, -0.01406186819076538, 0.5883475542068481, -0.6208403706550598, 0.0732527673...
I am using FogBugz as a tool to give us "a look into the future". The program takes our work hours, the tasks for a release, assigned developer's estimate against that task, and the developers tendency to under/over estimate, and tries to come up with a probability of making the release against a range of dates in the ...
[ 0.4761457145214081, -0.021656105294823647, 0.710716187953949, -0.016670748591423035, 0.143438458442688, -0.19125154614448547, 0.09024833142757416, 0.07993245124816895, 0.11972824484109879, -0.5106297731399536, 0.11928676068782806, 0.6372154951095581, -0.04302703216671944, -0.04782901704311...
one of the developers' tasks together. Does this mean that I cant use FogBugz for estimates when doing pair programming? What I would do in this case would be to have each developer estimate each of his cases for the release expressed in working hours it will take to complete it while pair programming (that is, time s...
[ 0.1800989806652069, 0.142217755317688, 0.1792374551296234, -0.03600107878446579, -0.08244112879037857, 0.14933103322982788, 0.250480979681015, -0.6051189303398132, 0.0950409397482872, -0.6127843856811523, 0.45857810974121094, 0.7044011950492859, -0.3561292588710785, -0.20223146677017212, ...
percentage of time you spend on your own tasks. Then, when you're working on your tasks, mark yourself as Working On -> case ID, and when you're working on someone else's tasks, set Working On -> Nothing. There are actually a lot of different ways to get get this to work (and the other answers here might be better d...
[ 0.4929374158382416, -0.014927258715033531, -0.08311969041824341, 0.2022741585969925, -0.09197548776865005, 0.15022186934947968, 0.00965767540037632, -0.05349301919341087, -0.13519376516342163, -0.6443930864334106, 0.30409783124923706, 0.4288310706615448, 0.05494527891278267, -0.22330150008...
* I have a *Client* and *Groupe* Model. * A *Client* can be part of multiple *groups*. * *Clients* that are part of a group can use its group's free rental rate at anytime but only once. That is where the intermediary model (*ClientGroupe*) comes in with that extra data. For now, when I try to save the m2m data, it ju...
[ -0.07285220921039581, -0.08260253071784973, 0.3839426338672638, -0.16782712936401367, 0.1493573635816574, 0.21428532898426056, 0.018837258219718933, -0.19072940945625305, -0.44479894638061523, -0.6861977577209473, 0.02593015693128109, 0.5788306593894958, -0.04721156507730484, 0.13352562487...
= models.ManyToManyField(Groupe, null = True, blank = True, through='ClientGroupe') class ClientGroupe(models.Model): client = models.ForeignKey(Client) groupe = models.ForeignKey(Groupe) dt = models.DateField(null=True, blank=True) # the date the client is using its group's free rental rate class...
[ 0.09176622331142426, -0.2583867311477661, 0.6878038048744202, -0.29616454243659973, 0.17062650620937347, -0.050056926906108856, 0.29830223321914673, -0.15827389061450958, -0.25262752175331116, -0.591341495513916, -0.058201584964990616, 0.7209656834602356, -0.18656402826309204, 0.3798952698...
, "instance" : client } if request.method == "POST": form = ClientForm(request.POST, instance = client) if form.is_valid(): client_mod = form.save() id = client_mod.id return HttpResponseRedirect( "/client/%(id)s/?err=success" %
[ -0.13611136376857758, -0.17810547351837158, 0.7495170831680298, -0.1823866218328476, -0.0910426452755928, -0.02134660817682743, 0.6030837297439575, -0.5552891492843628, -0.28567373752593994, -0.5859795808792114, -0.37329012155532837, 0.6737128496170044, -0.005779510363936424, 0.12297334522...
{"id" : id} ) else: return HttpResponseRedirect( "/client/%(id)s/?err=warning" % {"id" : id} ) return render_to_response( "client/modifier.html" , dict , context_instance=RequestContext(request)
[ -0.22496315836906433, -0.27939072251319885, 0.588263750076294, -0.26915082335472107, -0.12290195375680923, 0.33878809213638306, 0.5688914060592651, -0.44404804706573486, 0.013104330748319626, -0.8404995799064636, -0.4302673935890198, 0.5875803828239441, -0.10366029292345047, 0.077563337981...
) ``` **EDIT**: and here's the ClientForm code: ``` class ClientForm(ModelForm): class Meta: model = Client ``` **EDIT #2**: here's the error message: ``` AttributeError at /client/445/ Cannot set values on a ManyToManyField which specifies an intermediary model. Use ClientGroupe's Manager instead. ...
[ -0.2106454223394394, 0.1228618398308754, 0.4422687292098999, -0.35310715436935425, -0.13042700290679932, -0.21334068477153778, 0.3302087187767029, -0.11860745400190353, -0.3156346082687378, -0.647957980632782, -0.2042778879404068, 0.6181380748748779, -0.3435417413711548, 0.2249590903520584...
form.is_valid(): client_mod = form.save(commit=False) client_mod.save() for groupe in form.cleaned_data.get('groupes'): clientgroupe = ClientGroupe(client=client_mod, groupe=groupe) clientgroupe.save() … ```
[ 0.11575739085674286, -0.03235718980431557, 0.4656672775745392, -0.3475237190723419, -0.04857461154460907, -0.18935631215572357, 0.28998979926109314, -0.3832317590713501, -0.5897374153137207, -0.49659696221351624, -0.39141905307769775, 0.38403230905532837, -0.41070786118507385, 0.0530023276...
I prefer to use OOP in large scale projects like the one I'm working on right now. I need to create several classes in JavaScript but, if I'm not mistaken, there are at least a couple of ways to go about doing that. What would be the syntax and why would it be done in that way? I would like to avoid using third-party ...
[ 0.2751167118549347, 0.10373158752918243, -0.006868238560855389, 0.10083308815956116, -0.2813657224178314, -0.0724075585603714, -0.1136137843132019, 0.20548124611377716, -0.20724789798259735, -0.6386431455612183, 0.1757206916809082, 0.2885723114013672, -0.06634245067834854, -0.0765605568885...
do inheritance? Here's the way to do it without using any external libraries: ``` // Define a class like this function Person(name, gender){ // Add object properties like this this.name = name; this.gender = gender; } // Add methods like this. All Person objects will be able to invoke this Person.prototype...
[ 0.08480370044708252, 0.04561404511332512, -0.15648095309734344, -0.01846863515675068, -0.08479686081409454, -0.1246907040476799, 0.3923340141773224, -0.41478270292282104, -0.1452798992395401, -0.3422962427139282, 0.004795062355697155, 0.6066651344299316, -0.4527854323387146, 0.160284906625...
thing as classes in JavaScript. JavaScript uses a `prototype`-based inheritance scheme. In addition, there are numerous popular JavaScript libraries that have their own style of approximating class-like functionality in JavaScript. You'll want to check out at least [Prototype](http://en.wikipedia.org/wiki/Prototype_J...
[ 0.4759158194065094, -0.13058100640773773, -0.31408482789993286, 0.14447465538978577, -0.295103520154953, -0.14060363173484802, 0.4874367117881775, -0.11000863462686539, -0.22583788633346558, -0.5496466755867004, 0.06624678522348404, 0.30739206075668335, 0.010221011936664581, 0.074253432452...
any dependencies on external libraries, the way I wrote is pretty much it.
[ 0.292210191488266, 0.32324397563934326, 0.20859672129154205, 0.047968149185180664, 0.01997700333595276, -0.12272641062736511, 0.1010311171412468, 0.26975539326667786, -0.1658146232366562, -0.3530038297176361, 0.2763197422027588, 0.3554113507270813, -0.17852364480495453, -0.0647554025053978...
I'm currently working on a .NET project that I will probably make open source. There are lots of places to put it though, anyone have any experience for a friction-less effort? Codeplex? Google-code? Note: I prefer Subversion for the projects source-control. **[Google code](http://code.google.com/) is my favorite.** ...
[ 0.35700541734695435, -0.013977467082440853, 0.28523945808410645, 0.16011327505111694, -0.4920356869697571, -0.25456276535987854, 0.6131516695022583, 0.3292315602302551, 0.0011225431226193905, -1.1467615365982056, 0.18981137871742249, 0.5225262641906738, -0.1150825172662735, 0.3778197169303...
lose users just because of that. CodePlex is better than SourceForge, but it still has more development friction that I would like to have.
[ 0.7503878474235535, 0.24555087089538574, 0.15330664813518524, 0.04883059114217758, -0.37728211283683777, -0.36596986651420593, 0.30803611874580383, 0.6249648332595825, 0.2432493269443512, -0.5284335017204285, 0.2778720557689667, 0.48389655351638794, 0.002591127762570977, 0.3645873665809631...
I'm using the UPS service to monitor the state of my UPS from an application -- the key at HKLM\SYSTEM\CCS\Services\UPS\Status has all the information you can get from the Power control panel. BUT -- I'd like to be able to tell the UPS to shut down from my app as well. I know that the service can tell the UPS to shut d...
[ 0.5399315357208252, 0.4832285940647125, 0.5905601382255554, -0.134861022233963, 0.20021310448646545, -0.1569945216178894, 0.2687690854072571, 0.24944552779197693, -0.37187525629997253, -0.4989069402217865, -0.11639625579118729, 0.8841694593429565, -0.3253311812877655, 0.17688344419002533, ...
this information -- people tend to misspell "Uninterruptible" (hrm, Firefox red-lined that but doesn't have an alternative) and "UPS" just gets hits for the shipping service. Maybe I can do something through System.ServiceController, or WMI? CLARIFICATION: Yes, I am talking about powering down the physical UPS device....
[ 0.16139820218086243, 0.1288609355688095, 0.7522106170654297, 0.46648383140563965, 0.32727178931236267, -0.30081892013549805, 0.1450883150100708, 0.46257564425468445, -0.4092651307582855, -0.46966177225112915, -0.1847134232521057, 0.7296640276908875, -0.3028811812400818, 0.22765342891216278...
call, and since the function calls are well documented, there's no reason I shouldn't be able to P/Invoke them. I'll re-edit this once I know whether or not it worked. Update: I tried invoking UPSInit, then UPSTurnOff, and nothing happens. I'll tinker with it some more, but the direct call to apcups.dll might be a dea...
[ -0.064235158264637, -0.23958595097064972, 0.6752009391784668, 0.16239309310913086, -0.09775165468454361, -0.12457337230443954, 0.5481255054473877, 0.054550521075725555, -0.3011018633842468, -0.7896274328231812, -0.38902080059051514, 0.7545314431190491, -0.42336755990982056, -0.149269685149...
Now, if you want to let the Windows UPS service monitor state, the service will have an iron grip on the COM port. So you can either a) let the Windows service turn the UPS off, or b) kill the service and turn the UPS off yourself. The UPS itself has a "grace period" after it gets the "S" command, giving you time to s...
[ 0.6378046870231628, -0.10039110481739044, 0.8158361911773682, 0.03351103514432907, 0.23461373150348663, -0.24669553339481354, 0.34406161308288574, -0.03653091564774513, -0.43651166558265686, -0.6196538805961609, -0.24278248846530914, 0.8359490633010864, -0.3407651484012604, 0.3122518956661...
right near the end, it will send the "S" command * Wait for the UPS grace period, after which it will actually turn itself off I think we're going to opt for (a), just because (b) involves extra work killing the service and implementing the serial comms.
[ 0.4926823377609253, -0.16989704966545105, 1.0437449216842651, 0.07843367755413055, -0.14785845577716827, -0.22883744537830353, 0.3192185163497925, 0.33069124817848206, -0.20956718921661377, -0.4732632637023926, -0.42320674657821655, 0.4479384422302246, -0.08221656084060669, 0.1526420861482...
I am currently working on a project that spans accross multiple domains. What I want is for the user to be able to login on one site and be logged in on all the others at the same time. The users session is stored in the database, the cookies that I set on each domain contain the session id. So basically when a user ...
[ 0.7135511040687561, 0.44356754422187805, 0.04962008818984032, -0.032668180763721466, 0.08303993940353394, 0.021077638491988182, 0.3010575473308563, 0.29167041182518005, -0.5639925003051758, -0.8743680119514465, 0.4734046459197998, 0.24740740656852722, -0.2150181531906128, 0.523790657520294...
session id so that as the user travels from site to site they will automatically be logged in. Now I have found a way to do this in Firefox (using image tags that executes PHP scripts on the other domains, essentially creating the different cookies on the different domains) but this method doesn't work in IE (havn't t...
[ 0.6503689289093018, 0.15661227703094482, 0.4426417648792267, -0.0723172053694725, -0.3016164302825928, -0.48606252670288086, 0.4256790280342102, -0.1080961525440216, -0.34706810116767883, -0.812339723110199, 0.14991433918476105, 0.6318496465682983, -0.23344334959983826, -0.0257821138948202...
variables are lost if you use FRAMESET in Internet Explorer 6](http://support.microsoft.com/kb/323752/EN-US/): > You can add a P3P compact policy > header to your child content, and you > can declare that no malicious actions > are performed with the data of the > user. If Internet Explorer detects a > satisfacto...
[ 0.08868759870529175, 0.02173664979636669, 0.43718478083610535, 0.4532923996448517, 0.41577601432800293, -0.07450832426548004, 0.2588863670825958, -0.20795758068561554, -0.2286778688430786, -0.5674139857292175, -0.21838082373142242, 0.3722894787788391, -0.15948985517024994, 0.27151590585708...
any > analyzed data is only > "pseudo-analyzed", which means that > the data is connected to your online > persona and not to your physical > identity (PSA), and that your data is > not supplied to any outside agencies > for those agencies to use (OUR). > > > You can set this header if you use the > Response....
[ 0.21769216656684875, -0.44212856888771057, 0.39236119389533997, 0.3329891562461853, 0.018927674740552902, -0.3361438810825348, 0.10638126730918884, -0.2711750566959381, -0.1964224874973297, -0.6578420996665955, -0.21657615900039673, 0.40931859612464905, -0.4569544196128845, -0.319284498691...
header > to a static file: > > > 1. Click Start, click Run, and then type inetmgr. > 2. In the left navigation page, click the appropriate file or > directory in your Web site to which > you want to add the header, > right-click the file, and then click > Properties. > 3. Click the HTTP Headers tab. > 4. In the ...
[ 0.056443147361278534, -0.15616177022457123, 0.8304269313812256, 0.11067025363445282, -0.002523246221244335, -0.26013410091400146, -0.3012852668762207, -0.41247108578681946, -0.28306886553764343, -0.8628183007240295, -0.35086217522621155, 0.4215414524078369, -0.16317719221115112, 0.03699680...
Consider following example : ``` public class SomeBusinessLayerService : DataService<MyEntityContainer> { [WebInvoke] void DoSomething(string someParam) { } } ``` I can not find example or any help on how can I pass parameter to the function! Using WebClient (or goofinfg around with fiddler) I can trigger the fu...
[ -0.055657368153333664, -0.0372113361954689, 0.5510149598121643, -0.07146741449832916, -0.31645432114601135, -0.16943681240081787, 0.5238346457481384, -0.18872791528701782, -0.2594729959964752, -0.43369245529174805, 0.020219963043928146, 0.5739253163337708, -0.42068740725517273, 0.144587859...
it ? NOTE: This is DataService, and not WCF service. I can get it working with WCF service same method without any problems. EDIT: Also I need example of POST and not embedding parameter in URI because URI has size limit and requirement to sanitize the string. I have never received a response from Microsoft team to ...
[ 0.14207346737384796, -0.39644166827201843, 0.3917551338672638, 0.30599871277809143, -0.27450302243232727, -0.08091427385807037, 0.15784679353237152, -0.06868700683116913, 0.03456328064203262, -0.5791316628456116, -0.1156432256102562, 0.47992822527885437, -0.3248746991157532, 0.325083494186...
All the calls are now also recorded in the database - which is great for logging.
[ 0.40448933839797974, 0.21254633367061615, 0.2929949462413788, 0.12710848450660706, 0.34614241123199463, -0.17573630809783936, 0.48546284437179565, -0.14178302884101868, -0.42118456959724426, -0.22369621694087982, -0.28938937187194824, 0.29222047328948975, -0.28358161449432373, 0.1829659193...
I'm wondering how I can get the URL from the browser in ASP.NET. I have a page that I use with globalization/localization, and I am redirecting (via server not code) from `www.spanishversion.com` to `www.englishversion.com`, but the URL is masked to still say `www.spanishversion.com`. I want to get what the browser's ...
[ 0.3813812732696533, -0.1453702449798584, 0.7069024443626404, -0.23778395354747772, -0.4487832188606262, -0.19995354115962982, 0.29343292117118835, 0.5560073256492615, -0.1560080349445343, -0.5151656866073608, 0.014005521312355995, 0.346970796585083, 0.14780648052692413, 0.10496075451374054...
`$this->params->render()`, you might just want to make a function/object that does an alternate rendering ( `MyParamRenderer::render($this->params)`) and avoid performing OO gymnastics not natively supported by the language.
[ -0.21875840425491333, -0.03054639883339405, 0.25780993700027466, 0.08275175839662552, -0.042914703488349915, 0.26706016063690186, 0.46881943941116333, -0.022029593586921692, -0.43702206015586853, -0.19808189570903778, -0.3123180866241455, 0.23798419535160065, -0.20887872576713562, -0.29718...