text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Has anybody succeeded in customizing the Places Bar for VS 2008? My customizations from VS 2005 did not transfer to 2008 (obviously), and no matter what I do with the registry, I cannot make my custom places appear on the Open dialogs. I have read and applied the relevant MS KB article, to no avail. This used to work ...
[ 0.20247961580753326, 0.20804381370544434, 0.5428327918052673, -0.06219816952943802, 0.10858837515115738, -0.12617261707782745, 0.4785447120666504, -0.047152258455753326, -0.42265069484710693, -0.3846261501312256, -0.11986824125051498, 0.3657684028148651, -0.2109156996011734, 0.281982690095...
VS2008 'Open File' dialog becomes empty. Unfortunately VS2008 ignores user defined places or directories, and shows instead the default places: 'Desktop', 'standard\_project\_folder', 'My Computer'. With Sysinternals RegMon i see that Registry Key [HKEY\_CURRENT\_USER\Software\Microsoft\Windows\CurrentVersion\Policie...
[ -0.32641831040382385, 0.06069650873541832, 0.7155544757843018, 0.16191062331199646, 0.3288724422454834, -0.16994255781173706, 0.3637227714061737, 0.14199982583522797, -0.45880362391471863, -0.7751668095588684, -0.19061553478240967, 0.09873903542757034, -0.24330052733421326, 0.3765088617801...
For my area, I get the updates from * ww.asp.net * code.google.com * www.webmasterworld.com What others do you highly recommend? If you're into anything with Linux: <http://www.linux.com/feature> [A List Apart](http://www.alistapart.com/) has some excellent web articles If you want keep up with browsers, [Web Brow...
[ 0.6897141337394714, -0.21399788558483124, -0.014743498526513577, 0.12296219915151596, -0.11792626976966858, -0.20159514248371124, 0.03393612056970596, 0.4603441655635834, -0.4129336476325989, -0.3137577772140503, 0.03335816413164139, 0.17533838748931885, 0.23593541979789734, 0.056112296879...
We have an [R Server](http://www.r-project.org) (R is a programming language used in statistical analysis) that basically takes a script and a csv file, processes some data and returns results as text. I need to write a service on the R server so that .net clients (could be .Net Windows Forms, or ASP.Net) can connect...
[ 0.575571596622467, 0.2095288187265396, 0.2935406565666199, 0.024878695607185364, -0.008303781971335411, -0.09681016206741333, 0.06393194943666458, -0.4342176914215088, -0.07105407863855362, -0.2931273281574249, -0.1925017237663269, 0.34348613023757935, -0.06103105470538139, 0.0749816671013...
or as a separate "command line" type listener service (the latter seems ugly compared to IIS and I have no idea why anyone would choose to do this if they could run it in IIS)? Personally, I'd recommend the simplest binding that gives what you need. I've done quite a lot of WCF (some quite complex), and I've never had ...
[ 0.2559572458267212, -0.157420352101326, 0.33947744965553284, 0.0015215760795399547, -0.42966359853744507, -0.3851352035999298, 0.25836050510406494, -0.37002742290496826, -0.23306649923324585, -0.7486453056335449, -0.08217538148164749, 0.7500251531600952, -0.1218629777431488, 0.268316507339...
to configure SSL (i.e. you just configure IIS, and WCF will use it) * easy to load balance (just load balance your web farm) (I *believe* WCF running over BasicHttpProfile can also leverage your IIS compression [GZip/Deflate] setup, but don't quote me...) You might choose to use a standalone host (usually via a windo...
[ 0.255374938249588, -0.2792724370956421, 0.07712799310684204, 0.10225855559110641, -0.15335753560066223, -0.5657854676246643, 0.3536149263381958, -0.12733173370361328, -0.280748575925827, -0.8426506519317627, -0.025793729349970818, 0.4232177734375, -0.42179596424102783, 0.05138536915183067,...
for IIS/ASP.NET to spin up). An example covering both of these might be hosting a WF (workflow) server. Again; if you don't need this complexity, go for the simplest option: hosting in IIS.
[ 0.1371154487133026, -0.3978917598724365, 0.14431320130825043, 0.05991945415735245, -0.19026903808116913, -0.550356388092041, -0.02905699424445629, -0.29363134503364563, -0.5181934833526611, -0.8384169936180115, -0.3019561171531677, 0.270725816488266, -0.29400986433029175, 0.341450721025466...
I am using a UI component from J2ME Polish. I found a simple bug in the code, and want to quickly fix it but cannot find any build scripts in the download package, although source-code is included. The problem cannot be solved by extending the class as it involves members with private access. How should I go about ...
[ 0.4486203193664551, 0.16700033843517303, 0.30911457538604736, -0.10161946713924408, -0.029806047677993774, -0.013100706040859222, 0.4814218580722809, -0.07110100239515305, 0.0554349459707737, -0.9219420552253723, 0.09604741632938385, 0.6113056540489197, -0.1396661102771759, -0.025611067190...
*and* (IMO) is more likely to continue being available in the future.
[ 0.3038204610347748, -0.03279716148972511, -0.03707330301403999, -0.0949508473277092, -0.20368754863739014, 0.4158145487308502, 0.20723877847194672, 0.403827428817749, -0.36619246006011963, -0.7640515565872192, -0.5264154076576233, 0.28244727849960327, 0.055916834622621536, 0.01436030957847...
I have 50+ kiosk style computers that I want to be able to get a status update, from a single computer, on demand as opposed to an interval. These computers are on a LAN in respect to the computer requesting the status. I researched WCF however it looks like I'll need IIS installed and I would rather not install IIS o...
[ 0.5234366059303284, -0.23624859750270844, 0.41794806718826294, 0.19394247233867645, 0.03960055485367775, -0.30370381474494934, 0.3279951512813568, -0.049359750002622604, -0.13284410536289215, -0.8892533779144287, 0.0792623907327652, 0.451344758272171, -0.0331968292593956, 0.090887218713760...
skilled enough to make it a solid and reliable system. Given this path, I would need to learn more about socket programming and threading. These boxes are running .NET 3.5 SP1, so I have complete flexibility in the .NET version however I'd like to stick to C#. What is the best way to implement this? Should I just bit...
[ 0.6810764074325562, 0.02013511024415493, 0.048571329563856125, 0.028227563947439194, -0.33038008213043213, -0.048126377165317535, 0.2444959133863449, 0.1223527193069458, -0.14417529106140137, -0.7492023706436157, 0.13852612674236298, 0.8611099123954773, -0.2880541682243347, -0.293281942605...
and going with an inverse because I wanted to avoid consuming too much bandwidth and wasn't sure what kind of overhead I was talking about. I was also hoping to have more control of the individual kiosks. After looking at it, I think I can still have that with WCF and connect by IP (which I wasn't aware I could connect...
[ 0.499648779630661, -0.008921428583562374, 0.6019247770309448, 0.21741536259651184, -0.3087595999240875, -0.09892471134662628, 0.04743131250143051, -0.042516306042671204, -0.4533904790878296, -0.8368320465087891, 0.4611174762248993, 0.46599286794662476, -0.18888448178768158, 0.3102475702762...
WCF services from windows services or Winforms applications, and you'll find getting something working with WCF will be fairly simple once you get the key concepts. I've deployed something similar with around 100-150 clients with great success. There's plenty of resources out on the web to get you started - here's on...
[ 0.512092649936676, -0.06120949611067772, 0.4500305950641632, -0.10628613829612732, -0.2220565527677536, -0.22736209630966187, 0.23036059737205505, -0.2667267322540283, -0.13227598369121552, -0.8279536366462708, -0.004897641483694315, 0.52254319190979, 0.0024647533427923918, 0.0264871139079...
I have a tabview controller to which I added a UIViewController to each tab. I want to have multiple UIViews inside the UIViewController. So in the implementation of the UIViewController class I added [self.view addSubView:uiview1] and [self.view addSubView:uiview2]. The problem is that when I run the app, it crahes o...
[ 0.2205679565668106, 0.12082617729902267, 0.7703893184661865, -0.08490283042192459, -0.34763768315315247, 0.1970246136188507, 0.3520214557647705, -0.2980651557445526, -0.1884155124425888, -0.8267480731010437, 0.04969505965709686, 0.9098498225212097, -0.32111188769340515, 0.20828264951705933...
do this: ``` self.view = [[[UIView alloc] initWithFrame:someFrame] autorelease]; ``` before you do this: ``` [self.view addSubview:uiview1]; [self.view addSubview:uiview2]; ``` Otherwise, self.view would be nil.
[ -0.045568935573101044, -0.0025377338752150536, 0.5907002091407776, -0.3086903691291809, -0.2880050837993622, 0.044046804308891296, 0.28059121966362, -0.16046243906021118, -0.03338514268398285, -0.8830138444900513, -0.11132398247718811, 0.4221358001232147, -0.26027125120162964, 0.2241314947...
I have many small files containing code fragments, pseudo-code algorithms, classes, templates, SQL-samples, etc., and I obviously cannot put all these into libraries. I need a practical method to index all of them, and to be able to make this index available to others. 1. What must such an index contain to make search...
[ 0.6262937784194946, 0.33979275822639465, 0.07601329684257507, 0.32036036252975464, 0.08163470029830933, -0.17905950546264648, 0.2709140479564667, -0.24736657738685608, -0.3635832369327545, -0.6359606385231018, 0.2577449381351471, 0.2546268701553345, -0.12256687879562378, 0.1378029286861419...
sounds like a good application here.
[ 0.40557801723480225, 0.2514146864414215, 0.1577042192220688, 0.08487440645694733, 0.3502237796783447, -0.2220541536808014, 0.0748041644692421, 0.2992294728755951, 0.11362221091985703, -0.20037943124771118, 0.27900800108909607, 0.25820448994636536, 0.30907630920410156, -0.1365152895450592, ...
I have an application running only on Windows and a batch file that launches it. I want to invoke this batch file from Linux, meaning something like Linux batch will launch the windows batch with parameters and this in its turn run my application. Can I do that? How? You could install an ssh server in the windows box ...
[ 0.6245505809783936, 0.29978540539741516, 0.3197137117385864, -0.1227145791053772, -0.06388935446739197, -0.228990375995636, -0.13833971321582794, 0.18302586674690247, -0.002036080230027437, -0.6898269057273865, 0.006004496477544308, 0.4180857241153717, -0.1909545511007309, 0.32653194665908...
I'm new to developing applications for the iPhone and iPod touch. Is it possible to communicate directly between 2 devices in the same room by using WiFi or perhaps even BlueTooth on the iPhone? I've seen a demo of a fire application where one iPhone "lights" other iPhone when they get close to each other. How is this...
[ 0.3692103624343872, 0.19454964995384216, 0.18936260044574738, 0.1545778065919876, 0.3306646943092346, -0.21330630779266357, 0.20573294162750244, -0.2186138927936554, -0.1748332381248474, -0.6181719899177551, 0.3951607942581177, 0.45670297741889954, 0.009149187244474888, -0.2117587178945541...
like syncing with a PC on the same network. Explore the samples and guides in the iPhone SDK. WiTap and BonjourWeb are good examples to start with. NSNetServices and CFNetServices are the APIs you'll be dealing with for Bonjour
[ 0.3377384543418884, -0.3647211194038391, 0.1478373259305954, 0.2721801996231079, 0.13275599479675293, -0.34788763523101807, 0.45847150683403015, 0.27505844831466675, -0.219279944896698, -0.8584239482879639, 0.05489964783191681, 0.7111772894859314, -0.34936389327049255, -0.11952623724937439...
When scripting in bash or any other shell in \*NIX, while running a command that will take more than a few seconds, a progress bar is needed. For example, copying a big file, opening a big tar file. What ways do you recommend to add progress bars to shell scripts? You can implement this by overwriting a line. Use `\r...
[ 0.30832022428512573, -0.12468823790550232, -0.24833565950393677, -0.1468891203403473, -0.09474866092205048, -0.12997911870479584, 0.5146874189376831, -0.30473265051841736, -0.1735389232635498, -0.5621512532234192, -0.11391070485115051, 0.6957877278327942, -0.18597038090229034, -0.257223933...
(33%)\r' sleep 1 echo -ne '############# (66%)\r' sleep 1 echo -ne '####################### (100%)\r' echo -ne '\n' ``` In a comment below, puk mentions this "fails" if you start with a long line and then want to write a short line: In this case, you'll need to overwrite the length of the long line (e.g...
[ -0.15084825456142426, 0.3836180865764618, 0.21417132019996643, -0.2660213112831116, 0.09832651168107986, 0.4376935362815857, 0.9108752012252808, -0.3676123023033142, -0.05670763924717903, -0.5155044794082642, -0.5872716903686523, 0.14274121820926666, -0.11239814013242722, -0.24045935273170...
So, when playing with the development I can just set `settings.DEBUG` to `True` and if an error occures I can see it nicely formatted, with good stack trace and request information. But on kind of production site I'd rather use `DEBUG=False` and show visitors some standard error 500 page with information that I'm work...
[ 0.3187798857688904, 0.21966427564620972, 0.1976262629032135, 0.128941610455513, 0.12956765294075012, -0.13836121559143066, 0.27231869101524353, -0.06023906543850899, 0.021889861673116684, -0.7158775925636292, 0.100035659968853, 0.9653416872024536, -0.09955987334251404, 0.027756549417972565...
errors scroll, email the log to me every hour or something like this. What logging solutions would you recomend for a django-site, that would meet those simple requirements? I have the application running as `fcgi` server and I'm using apache web server as frontend (although thinking of going to lighttpd). Well, when ...
[ 0.5560681819915771, 0.48940786719322205, 0.35464945435523987, 0.08171471208333969, -0.07435885816812515, -0.17136873304843903, 0.3584887981414795, 0.183299720287323, -0.22611986100673676, -0.4563361406326294, 0.3675094544887543, 0.7719425559043884, -0.40583229064941406, 0.19284972548484802...
named `process_exception()`, which will have access to the exception that was raised: <http://docs.djangoproject.com/en/dev/topics/http/middleware/#process-exception> Your `process_exception()` method can then perform whatever type of logging you'd like: writing to console, writing to a file, etc., etc. Edit: though...
[ 0.1711045205593109, 0.303946852684021, 0.4461713433265686, -0.08142134547233582, -0.10111469775438309, -0.10127823054790497, 0.04726763442158699, -0.20852532982826233, -0.5782159566879272, -0.5727525949478149, -0.013832966797053814, 0.3812805116176605, -0.2731174826622009, 0.14646224677562...
Similar to [this question](https://stackoverflow.com/questions/233030/worst-php-practice-found-in-your-experience)... What are the worst practices you actually found in Java code? Mine are: * using instance variables in servlets (it's not just bad practice but bug, actually) * using Collection implementations like H...
[ 0.05665404722094536, 0.16429534554481506, -0.07043443620204926, 0.008583343587815762, -0.2922721803188324, -0.11391609907150269, 0.6293929219245911, -0.07167521119117737, -0.3454664647579193, -0.5185412168502808, 0.22247011959552765, 0.32851627469062805, -0.32195520401000977, -0.1067563667...
I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough: ``` t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*" ``` In [my markup language](http://freehg.org/u/cheery/aml/) parser I match unicode characters by allowing ...
[ -0.17526362836360931, 0.5820979475975037, 0.31303703784942627, -0.04535214602947235, -0.12755681574344635, 0.04674778878688812, 0.10097160190343857, -0.32776039838790894, -0.05426492169499397, -0.6813777685165405, -0.0747639536857605, 0.47134724259376526, -0.19122178852558136, -0.147788956...
(variable names and such) in their programs. Heck! I want that people could write programs in their own language if it's practical! Anyway unicode is supported nowadays in wide variety of places, and it should spread. Edit: POSIX character classes doesnt seem to be recognised by python regexes. ``` >>> import re >>> ...
[ -0.04246126115322113, 0.34082403779029846, 0.1688302457332611, 0.05140501633286476, -0.25896143913269043, -0.1273030787706375, 0.12184182554483414, -0.010383845306932926, -0.22935283184051514, -0.5365543365478516, -0.25355181097984314, 0.46723902225494385, -0.45820724964141846, -0.14545179...
does not match numbers. the [re](http://docs.python.org/library/re#regular-expression-syntax) module supports the \w syntax which: > If UNICODE is set, this will match the > characters [0-9\_] plus whatever is > classified as alphanumeric in the > Unicode character properties database. therefore the following exam...
[ -0.28272178769111633, 0.18114131689071655, 0.5938730835914612, -0.15501751005649567, -0.15102708339691162, 0.26803088188171387, 0.14785172045230865, -0.5751168131828308, 0.05563303828239441, -0.6064968705177307, -0.29523739218711853, 0.510305643081665, -0.589853048324585, -0.41228973865509...
Let's say I have the following ruby code : ``` def use_object(object) puts object.some_method end ``` and , this will work on any object that responds to **some\_method**,right? Assuming that the following java interface exists : ``` interface TestInterface { public String some_method(); } ``` Am I right ...
[ 0.2989581227302551, 0.10692871361970901, 0.036767084151506424, -0.04981221631169319, -0.2426830232143402, -0.15709643065929413, 0.29720690846443176, -0.26782527565956116, -0.00650493148714304, -0.559834897518158, 0.1304548978805542, 0.554771900177002, -0.2998925745487213, -0.06558246165513...
is only simple (just one parent).
[ 0.21390268206596375, 0.28211578726768494, -0.03798425942659378, -0.08908570557832718, 0.18254511058330536, 0.23314186930656433, 0.4155923128128052, -0.2965139150619507, 0.07842423021793365, -0.5372288823127747, -0.3451768755912781, -0.005541916936635971, -0.11283599585294724, 0.11257703602...
I am trying to figure out the best way to model a spreadsheet (from the database point of view), taking into account : * The spreadsheet can contain a variable number of rows. * The spreadsheet can contain a variable number of columns. * Each column can contain one single value, but its type is unknown (integer, date,...
[ 0.18237139284610748, 0.22861704230308533, 0.16839809715747833, 0.010786031372845173, 0.13035951554775238, 0.10885557532310486, -0.14507071673870087, -0.1723233461380005, -0.28743821382522583, -0.6425316333770752, 0.04254542291164398, 0.24571000039577484, -0.24285520613193512, 0.26480865478...
Column(models.Model): spreadsheet = models.ForeignKey(Spreadsheet) name = models.CharField(max_length=100) type = models.CharField(max_length=100) class Spreadsheet(models.Model): name = models.CharField(max_length=100) creation_date = models.DateField() ``` Can you think about a better way to mo...
[ 0.01757020689547062, 0.14124029874801636, 0.5343120098114014, -0.17921847105026245, -0.07708225399255753, -0.050082288682460785, -0.03863399103283882, -0.028940372169017792, -0.39406630396842957, -0.42589011788368225, -0.04498472809791565, 0.3645496070384979, -0.3161221742630005, 0.1639368...
I'm trying to get authentication working to my liking in a CakePHP app and running into a snag. I want to let the user login from either the home page or from a dedicated login page. I'm using the Auth component to manage login and right now the login itself works. I am submitting the form on the home page to /Users/...
[ 0.43960124254226685, 0.25598251819610596, 0.378226101398468, -0.21469733119010925, -0.11567701399326324, -0.0687142163515091, 0.5272887945175171, -0.10543552041053772, -0.02867067977786064, -0.9394957423210144, -0.06366116553544998, 0.5209019780158997, 0.021558409556746483, 0.1597615331411...
it does forward to loginRedirect. I think the problem has something to do with posting the form from one page to another page instead of to itself, auth automatically thinks you want to go back to the previous page. Any thoughts? in the AppController ``` public function beforeFilter( ) { $this->Auth->autoRedirec...
[ -0.20942746102809906, -0.024429969489574432, 0.9319726824760437, -0.14598001539707184, 0.06199350208044052, 0.06209547072649002, 0.28104734420776367, -0.26720866560935974, -0.2783278822898865, -0.6452780961990356, 0.027342142537236214, 0.5523667931556702, -0.15981610119342804, 0.4079690873...
'action' => 'index' , )); } } ``` Also, if you haven't already you should move the form into an element, so that you can make absolutely certain that the login form is identical between the 2 login views.
[ -0.058536820113658905, -0.3342902958393097, 0.3055720627307892, -0.31047141551971436, 0.08752641826868057, -0.08849544078111649, 0.03540246933698654, -0.2992906868457794, -0.1745142638683319, -0.547836422920227, -0.2903099060058594, 0.6392875909805298, -0.44474145770072937, -0.097701698541...
I've got a 44Khz audio stream from a CD, represented as an array of 16 bit PCM samples. I'd like to cut it down to an 11KHz stream. How do I do that? From my days of engineering class many years ago, I know that the stream won't be able to describe anything over 5500Hz accurately anymore, so I assume I want to cut ever...
[ 0.41328752040863037, 0.19458229839801788, 0.019016556441783905, 0.14861980080604553, -0.1919119656085968, 0.2518001198768616, 0.2657448649406433, -0.3733285069465637, 0.052876997739076614, -0.31926852464675903, -0.06595548242330551, 0.5748535394668579, -0.22725209593772888, 0.3122653067111...
12, 4, 1 }. I think that is what I need, but I need it for a factor of 4x rather than 6x. Any idea how those constants are calculated? Also, I end up converting the 16 byte samples to floats anyway, so I can do the downsampling with floats rather than shorts, if that helps the quality at all. Read on FIR and IIR filter...
[ 0.8062220215797424, -0.05786856636404991, 0.1613704264163971, 0.15042464435100555, -0.16798138618469238, -0.047506801784038544, -0.12514349818229675, -0.3803360164165497, -0.2337537705898285, -0.57857346534729, 0.3650776445865631, 0.32674074172973633, -0.48663070797920227, -0.0437651276588...
coefficients) for you. **EDIT:** This page here ( <http://www-users.cs.york.ac.uk/~fisher/mkfilter/> ) lets you enter the parameters of your filter and will spit out ready to use C-Code...
[ 0.19249355792999268, -0.24213822185993195, 0.8304500579833984, -0.020691027864813805, -0.09844984859228134, -0.12602344155311584, 0.02357744798064232, -0.8618407845497131, -0.02739822492003441, -0.40670233964920044, 0.059263844043016434, 0.3883298337459564, -0.4087933301925659, 0.059705901...
It's not quite a "programming" question, but I hope its related closely enough. Do you know if it is possible to configure the browser in Linux (e.g. Firefox) to use Wine to create ActiveX objects? I would like to handle web pages that use: ``` var xmlDocument = new ActiveXObject( Msxml2.DOMDocument.4.0 ) ``` etc. ...
[ 0.28364992141723633, 0.14682744443416595, 0.4832700192928314, -0.07804717868566513, -0.03539678454399109, -0.34132084250450134, 0.006158571690320969, 0.028100641444325447, -0.1339643895626068, -0.769591748714447, -0.11377357691526413, 0.657572865486145, -0.415304034948349, 0.17776189744472...
I think I know the answer, but I would like to bounce around some ideas. I would like to pass several (in this instance 2) somewhat different pieces of data to a View. My initial thought is simply to wrap-up the various objects into a containing object and pass them along that way. Then from the View, I'd have somethi...
[ 0.09646501392126083, 0.021721409633755684, 0.3735286593437195, 0.05175207555294037, -0.025734664872288704, 0.0851820558309555, -0.13678696751594543, -0.2940961420536041, -0.2761245369911194, -0.6237625479698181, -0.0011668069055303931, 0.37544092535972595, -0.3111957311630249, 0.2178716957...
the Views. I keep them in a separate namespace called 'Core.Presentation' to keep things organized. Here is an example: ``` namespace Core.Presentation { public class SearchPresentation { public IList<StateProvince> StateProvinces { get; set; } public IList<Country> Countries { get; set; } ...
[ 0.1748516708612442, -0.04623950645327568, 0.21763189136981964, 0.21858657896518707, -0.13062705099582672, 0.4738372564315796, -0.27422672510147095, 0.10455650091171265, -0.29429253935813904, -0.6818415522575378, -0.288909912109375, 0.26365116238594055, -0.33367860317230225, 0.1821502149105...
view that uses the generic version of that presentation class: ``` public partial class Search : ViewPage<SearchPresentation> ``` That way in the View, I can use Intellisense and easily navigate through the items.
[ -0.33344921469688416, 0.011451967060565948, 0.44728657603263855, 0.11307323724031448, -0.37268877029418945, -0.16635245084762573, -0.06013570725917816, 0.08599966019392014, 0.08402477204799652, -0.8344307541847229, -0.2981967031955719, 0.6870265603065491, -0.008635630831122398, 0.197139769...
When I use the default model binding to bind form parameters to a complex object which is a parameter to an action, the framework remembers the values passed to the first request, meaning that any subsequent request to that action gets the same data as the first. The parameter values and validation state are persisted ...
[ 0.19232864677906036, -0.26232466101646423, 0.6396155953407288, -0.16943147778511047, 0.1901475489139557, 0.27565130591392517, 0.35548755526542664, -0.38927608728408813, -0.2034519761800766, -0.47527095675468445, -0.1258533000946045, 0.6085495948791504, -0.34694555401802063, -0.030303746461...
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(RunTime newRunTime) { if (ModelState.IsValid) { service.CreateNewRun(newRunTime); TempData["Message"] = "New run created"; return RedirectToAction("index"); } return View(newRunTime); ...
[ -0.10171560198068619, -0.4699629843235016, 0.6206845641136169, -0.2986169457435608, -0.08665360510349274, 0.22742286324501038, 0.6350268721580505, -0.39661410450935364, -0.3525964319705963, -0.7581368684768677, -0.35130152106285095, 0.4014652371406555, -0.32061728835105896, 0.2289200425148...
contains directives like: ``` <%= Html.TextBox("newRunTime.Time", ViewData.Model.Time) %> ``` This uses the `DefaultModelBinder` class, which is [meant to autobind my model's properties](http://weblogs.asp.net/scottgu/archive/2008/10/16/asp-net-mvc-beta-released.aspx#three). I hit the page, enter valid data (e.g. ...
[ 0.11138348281383514, -0.11047487705945969, 0.8768895268440247, -0.24039432406425476, 0.22535809874534607, 0.08003298938274384, 0.5726721882820129, -0.4455764591693878, 0.049464646726846695, -0.5951611995697021, -0.2132856249809265, 0.7427801489830017, -0.49669119715690613, -0.0225745756179...
the problem by writing my own hard-coded model binder, a basic naive example of which is shown below. ``` [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create([ModelBinder(typeof (RunTimeBinder))] RunTime newRunTime) { if (ModelState.IsValid) { service.CreateNewRun(newRunTi...
[ -0.12052346765995026, -0.34617987275123596, 0.35940223932266235, -0.008283003233373165, 0.14823679625988007, -0.03710015490651131, 0.6679887175559998, -0.505684494972229, -0.14479713141918182, -0.6735824346542358, -0.13580161333084106, 0.7383008599281311, -0.4282251000404358, 0.35734874010...
} return View(newRunTime); } internal class RunTimeBinder : DefaultModelBinder { public override ModelBinderResult BindModel(ModelBindingContext bindingContext) { // Without this line, failed validation state persists between requests bindingContext.ModelState.Clear(); doub...
[ -0.3045947551727295, -0.5093224048614502, 0.5647862553596497, -0.345130980014801, 0.21682055294513702, 0.06168258935213089, 0.7064312100410461, -0.41980910301208496, 0.15603496134281158, -0.6795429587364197, -0.2519543766975403, 0.6992594003677368, -0.33108726143836975, 0.2891499996185303,...
} catch (FormatException) { bindingContext.ModelState.AddModelError(bindingContext.ModelName + ".Time", bindingContext.HttpContext.Request[bindingContext.ModelName + ".Time"] + "is not a valid number"); } var model = new RunTime(time); return new ModelBinderResult(mo...
[ 0.031082553789019585, -0.3671155869960785, 0.3762499690055847, -0.05748389661312103, 0.12667672336101532, -0.19116252660751343, 0.3770275115966797, -0.1211935430765152, -0.3519343137741089, -0.4291919767856598, -0.0233136173337698, 0.4834499657154083, -0.5451146364212036, 0.345171242952346...
first data is entered in one browser and the second in another. It turns out that the problem was that my controllers were being reused between calls. One of the details I chose to omit from my original post is that I am using the Castle.Windsor container to create my controllers. I had failed to mark my controller wit...
[ 0.16325537860393524, 0.0796569287776947, 0.5242847204208374, 0.3126818835735321, 0.6769815683364868, 0.05071849003434181, -0.030881797894835472, 0.06209096312522888, -0.11668612062931061, -0.5326361060142517, 0.17297828197479248, 0.08887501060962677, -0.3879605531692505, 0.4986976385116577...
Eilon's code and mine, eliminating all other possibilities. As the [Castle documentation says](http://www.castleproject.org/monorail/documentation/trunk/integration/windsor.html), this is a "terrible mistake"! Let this be a warning to others! Thanks for your response Eilon - sorry to take up your time.
[ -0.052435338497161865, 0.17314362525939941, -0.027561036869883537, 0.11736182123422623, 0.20588693022727966, -0.06900352239608765, 0.3387458920478821, -0.08520199358463287, 0.05533047392964363, -0.164457306265831, -0.23029690980911255, 0.4926757514476776, -0.14921237528324127, 0.1298785656...
How do you access the items collection of a combo box in a specific row in a DataGridView? I'm populating the combo as follows: ``` Dim VATCombo As New DataGridViewComboBoxColumn With VATCombo .HeaderText = "VAT Rate" .Name = .HeaderText
[ 0.36405274271965027, -0.2069615125656128, 0.7444303631782532, 0.19990862905979156, 0.047280021011829376, -0.07314732670783997, 0.003734947182238102, -0.22893483936786652, -0.3403167426586151, -0.7169846892356873, -0.10639876127243042, 0.5651620626449585, -0.1398376226425171, 0.245058313012...
Dim VATCol As New JCVATRateCollection VATCol.LoadAll(EntitySpaces.Interfaces.esSqlAccessType.StoredProcedure) For Each Rate As JCVATRate In VATCol .Items.Add(Rate.str.VATRate) Next .Sorted = True
[ 0.0730867087841034, -0.5769424438476562, 1.1279789209365845, 0.014467151835560799, 0.12431668490171432, 0.3429725766181946, 0.01002173125743866, -0.4317554533481598, -0.21721267700195312, -0.6530736088752747, -0.20826157927513123, 0.5570765137672424, -0.11147376149892807, 0.259551078081131...
VATCol = Nothing .ToolTipText = "Select VAT Rate" .AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells .CellTemplate.Style.BackColor = Color.Honeydew .DisplayIndex = 8
[ -0.0009207605617120862, -0.39789167046546936, 0.5205450057983398, 0.05354336276650429, 0.21258902549743652, 0.19551435112953186, 0.43334901332855225, -0.3183369040489197, -0.3015636205673218, -0.5372357964515686, -0.09645519405603409, 0.4314546287059784, -0.5153282284736633, 0.088337592780...
.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill End With .Columns.Add(VATCombo) VATCombo = Nothing ``` I want to be able to set a default value for each new line added to the grid, I also want to be able to change the values in the combo based on other business logic. I realis...
[ 0.30179038643836975, -0.2904895544052124, 0.5712398290634155, 0.002956606214866042, 0.0040049063973128796, 0.085683174431324, 0.38767796754837036, -0.24083784222602844, -0.25216883420944214, -0.6199321150779724, -0.06778985261917114, 0.4536476731300354, -0.48430880904197693, -0.00201865728...
values into the system and rely on the database to populate. I'm sure it must be straight-forward but it's eluding me..... The problem with the basic combobox in EditGridView is that all rows share the same combobox, so you cannot change it. You to create a new class (ComboEditingControl) inherited from the ComboBox ...
[ 0.04197282716631889, -0.16813157498836517, 0.3507097065448761, 0.07083185017108917, -0.15582089126110077, 0.12198463082313538, 0.2687084972858429, -0.8344883322715759, 0.026928413659334183, -0.5832262635231018, -0.03050721436738968, 0.6926271915435791, -0.5141904354095459, 0.22046132385730...
Return ItemSelected End Get Set(ByVal value As Object) If TypeOf value Is Decimal Then Me.SelectedItem = value.ToString() End If End Set End Property Public Function GetEditingControlFormattedValue(ByVal context As DataGridViewDataErrorContexts) As Object _ Implements IData...
[ -0.41733789443969727, 0.15667027235031128, 0.42700693011283875, 0.1398853212594986, -0.30500224232673645, 0.19086600840091705, 0.18994995951652527, -0.4189469516277313, -0.07001723349094391, -0.22532393038272858, -0.3987716734409332, 0.4144359827041626, -0.20943528413772583, 0.426047682762...
Return MyBase.Cursor End Get End Property Public Sub ApplyCellStyleToEditingControl(ByVal dataGridViewCellStyle As DataGridViewCellStyle) _ Implements IDataGridViewEditingControl.ApplyCellStyleToEditingControl Me.Font = dataGridViewCellStyle.Font Me.ForeColor = dataGridViewCellStyle.ForeColor Me.B...
[ -0.23986133933067322, 0.5096727609634399, 0.5904771685600281, -0.2645193636417389, -0.28636619448661804, 0.1229989156126976, 0.41011181473731995, -0.7413058280944824, 0.3165057897567749, -0.42396578192710876, -0.08631034195423126, 0.5008975267410278, -0.3676636219024658, 0.5476375222206116...
As Boolean _ Implements IDataGridViewEditingControl.EditingControlWantsInputKey ' Let the DateTimePicker handle the keys listed. Select Case key And Keys.KeyCode Case Keys.Up, Keys.Down, Keys.Home, Keys.End, Keys.PageDown, Keys.PageUp Return True Case Else Return Fal...
[ -0.09623805433511734, 0.02673034556210041, 0.15915371477603912, -0.14683058857917786, -0.00461579579859972, 0.1453005075454712, 0.4558106064796448, -0.5041195750236511, -0.0768653079867363, -0.25308775901794434, -0.35365813970565796, 0.2700536251068115, -0.36330288648605347, 0.360991328954...
to be done. End Sub Public ReadOnly Property RepositionEditingControlOnValueChange() As Boolean Implements _ IDataGridViewEditingControl.RepositionEditingControlOnValueChange Get Return False End Get End Property Public Property EditingControlDataGridView() As DataGridView _ Implements IDataGr...
[ -0.17601333558559418, 0.20386599004268646, 0.31734904646873474, -0.13674519956111908, -0.1735684722661972, -0.10712141543626785, 0.5211809277534485, -0.7817268967628479, 0.09409202635288239, -0.25891587138175964, -0.4702562987804413, 0.4915854036808014, -0.22067613899707794, 0.385407537221...
Return valueIsChanged End Get Set(ByVal value As Boolean) valueIsChanged = value End Set End Property ''' <summary> ''' Notify the DataGridView that the contents of the cell have changed. ''' </summary> ''' <param name="eventargs"></param> ''' <remarks></remarks> Protected Overrides Sub OnSelectedI...
[ -0.552172839641571, -0.10297182202339172, 0.6267150044441223, -0.07138440012931824, 0.1340610831975937, 0.040453288704156876, 0.2921130955219269, -0.43045657873153687, -0.11440959572792053, -0.533163845539093, -0.39349862933158875, 0.4103220999240875, -0.10461238771677017, 0.20474182069301...
Class ComboColumn Inherits DataGridViewColumn Public Sub New() MyBase.New(New ComboCell()) End Sub Public Overrides Property CellTemplate() As DataGridViewCell Get Return MyBase.CellTemplate End Get Set(ByVal value As DataGridViewCell) ' Ensure t...
[ 0.03837929666042328, -0.5057327151298523, 0.5363860726356506, -0.022842004895210266, 0.1623545140028, -0.2645677626132965, 0.2292202264070511, -0.6749702095985413, 0.23206545412540436, -0.5882752537727356, -0.18662209808826447, 0.3479253947734833, -0.4074167311191559, 0.32887956500053406, ...
If Not (value Is Nothing) AndAlso Not value.GetType().IsAssignableFrom(GetType(ComboCell)) Then Throw New InvalidCastException("Must be a ComboCell") End If MyBase.CellTemplate = value End Set End Property End Class Friend Class ComboCell Inherits DataGridViewTex...
[ 0.08257849514484406, -0.29681846499443054, 0.4857393801212311, -0.11318302899599075, 0.28922680020332336, -0.4392838180065155, 0.45475679636001587, -0.536411464214325, 0.21318663656711578, -0.5355300307273865, -0.2317541241645813, 0.4189714789390564, -0.2550106942653656, 0.3385866582393646...
Sub Public Overrides Sub InitializeEditingControl(ByVal rowIndex As Integer, ByVal initialFormattedValue As Object, ByVal dataGridViewCellStyle As DataGridViewCellStyle) ' Set the value of the editing control to the current cell value. MyBase.InitializeEditingControl(rowIndex, initialFormattedValue...
[ -0.21081805229187012, -0.16495434939861298, 0.697199285030365, 0.02911163680255413, 0.006491253152489662, -0.001378190005198121, 0.46032610535621643, -0.4983137845993042, 0.07222135365009308, -0.2217792123556137, -0.36164307594299316, 0.5462567806243896, -0.3860737085342407, 0.341990292072...
ctl.Items.Add(Sheet) Next If Me.Value Is Nothing Then ctl.SelectedIndex = -1 Else ctl.SelectedItem = Me.Value End If End Sub Public Overrides ReadOnly Property EditType() As Type Get
[ 0.08387288451194763, -0.4365297555923462, 0.42806151509284973, -0.15248914062976837, -0.09798288345336914, -0.0513443686068058, 0.16785068809986115, -0.355981707572937, 0.015833040699362755, -0.44063669443130493, -0.4061802625656128, 0.2687775790691376, -0.15686562657356262, 0.375506579875...
Return GetType(ComboEditingControl) End Get End Property Public Overrides ReadOnly Property ValueType() As Type Get Return GetType(String) End Get End Property Public Overrides ReadOnly Property FormattedValueType() As System.Type Get Return
[ -0.057554468512535095, -0.044368259608745575, 0.26348942518234253, -0.0674683004617691, -0.13304661214351654, -0.3005814850330353, 0.2714512050151825, -0.5646578073501587, 0.20322459936141968, -0.21354015171527863, -0.41369494795799255, 0.5345305800437927, -0.30083388090133667, 0.232248589...
GetType(String) End Get End Property Public Overrides ReadOnly Property DefaultNewRowValue() As Object Get Return "" End Get End Property End Class ``` finally in the OnLoad code of your form, programatically add the control to the Grid: ``` Dim c As New ComboColumn c...
[ 0.16285668313503265, -0.40644571185112, 0.9564335942268372, -0.046398062258958817, 0.3635469675064087, -0.2885229289531708, 0.13743926584720612, -0.7525905966758728, 0.22672425210475922, -0.5205059051513672, -0.26843544840812683, 0.5803658366203308, -0.18387088179588318, -0.018364146351814...
is generic, the other inherit and have the custom code for each DataGridView that you need HTH
[ 0.04752466082572937, -0.17393478751182556, 0.37356725335121155, 0.42891451716423035, -0.22571617364883423, -0.41158005595207214, -0.15817499160766602, -0.11857452243566513, -0.007232224103063345, -0.4577430188655853, -0.18501216173171997, 0.3851079046726227, -0.10505779832601547, 0.5120697...
Accidentally I may forget to describe some parameters or exception throwing (or something else) when documenting methods or classes, etc. Is it possible to run javadoc in such a way that it warns me about missing documentation items? (I use ant script for generating documentation) Use [Checkstyle](http://checkstyle.s...
[ 0.24340207874774933, 0.05059355869889259, -0.1977100372314453, 0.15676875412464142, -0.131632462143898, -0.5425583720207214, 0.48395755887031555, -0.004104151856154203, -0.43101271986961365, -0.937760591506958, 0.3398020267486572, 0.6117556691169739, -0.30115315318107605, -0.45831194519996...
I'm using TortoiseHg 0.5 (which includes Mercurial 1.0.2) on Vista64. My understanding from the [Mercurial Book](http://hgbook.red-bean.com/hgbookch7.html#x11-1530007.7) is that Mercurial should handle filenames in a case-insensitive manner on a case-insensitive filesystem (such as NTFS, which is what I'm on). However ...
[ -0.31130239367485046, 0.4604027271270752, 0.698982298374176, -0.2749845087528229, -0.09325927495956421, -0.1670471727848053, 0.5076571702957153, 0.03494708612561226, -0.1553150862455368, -0.7524940371513367, -0.09915133565664291, 1.0978631973266602, -0.36197128891944885, 0.2588334083557129...
notes](http://www.selenic.com/mercurial/wiki/index.cgi/WhatsNew#head-b1d1f9a535adb686d6e0a490e049261313f10d7d): "Improved correctness in the face of casefolding filesystems". On Windows, Mercurial now ignores case in its command line arguments: ``` >hg status -A foo C foo >hg status -A FOO C foo ``` And it also is ...
[ -0.3301851451396942, 0.2160375565290451, 0.5204446315765381, -0.09115654230117798, -0.11711028963327408, -0.0497092604637146, 0.2567597031593323, 0.17043468356132507, -0.19806845486164093, -0.6662607192993164, -0.31536081433296204, 0.6816365718841553, -0.150009885430336, 0.1377946883440017...
insensitive.
[ -0.3792620897293091, 0.0381987988948822, -0.04332054406404495, -0.22640344500541687, -0.5200817584991455, 0.012094748206436634, 0.6853988766670227, 0.3915167450904846, 0.10903175920248032, -0.7744568586349487, -0.5572976469993591, 0.5240635871887207, -0.6571815609931946, 0.0031837474089115...
I have a subclass "s" of UIView. I want to put some buttons and labels on s. How do I associate my UIView subclass with a nib file? 1. In Interface Builder, create a new xib with the View template. * Click on the view in the list of objects in the xib (you should also see "File's Owner and "First Responder"). * Pu...
[ 0.11166635155677795, -0.46720582246780396, 0.563791811466217, 0.07979550212621689, -0.4257894456386566, -0.10695728659629822, 0.3206016719341278, -0.12908780574798584, 0.0929231196641922, -1.0713287591934204, 0.062445491552352905, 0.5478423833847046, -0.2167990803718567, 0.1912392228841781...
in the returned array.
[ 0.015288800932466984, -0.14592868089675903, 0.29010847210884094, 0.02632933482527733, -0.021423181518912315, 0.034685611724853516, -0.35105639696121216, 0.047469496726989746, -0.2710545063018799, -0.3319950997829437, -0.23005269467830658, 0.2242221087217331, -0.05417682230472565, 0.0006492...
``` string[] filesOfType1 = GetFileList1(); string[] filesOfType2 = GetFileList2(); var cookieMap = new Dictionary<string, CookieContainer>(); Action<string, Func<string, KeyValuePair<string, CookieContainer>>> addToMap = (filename, pairGetter) => { KeyValuePair<string, CookieContainer> cookiePair; ...
[ 0.09548228979110718, -0.19671404361724854, 0.4825909435749054, -0.2861274182796478, 0.3018413484096527, 0.16318809986114502, 0.3706929087638855, -0.5039581656455994, 0.01682237535715103, -0.6934762597084045, -0.2263827621936798, 0.7546055912971497, -0.4193710386753082, 0.04389800503849983,...
error was encountered while trying to read " + file + "."); return; } if (cookieMap.ContainsKey(cookiePair.Key)) { if (cookiePair.Value.Count > cookieMap[cookiePair.Key].Count) { cookieMap[cookiePair.Key] = cookiePair.Value;
[ -0.2948102355003357, -0.15387944877147675, 0.2878563106060028, -0.34550777077674866, 0.3662863075733185, -0.09597094357013702, 0.5127532482147217, -0.38346219062805176, -0.08524234592914581, -0.4392537474632263, -0.5346097946166992, 0.7003546357154846, -0.4128013849258423, 0.16960237920284...
} } else { cookieMap.Add(cookiePair.Key, cookiePair.Value); } }; foreach (string file in filesOfType1) { addToMap(file, GetType1FileCookiePair); } foreach (string file in filesOfType2) { addToMap(file, GetType2FileCookiePair); } ``` Salient features that must b...
[ -0.09497171640396118, -0.17743664979934692, 0.1640428602695465, -0.06590165197849274, 0.41427844762802124, -0.0005629221559502184, 0.2551831901073456, -0.21404694020748138, -0.17227056622505188, -0.9104097485542297, -0.5479211807250977, 0.47310665249824524, -0.4707188904285431, 0.040509015...
(key, value1) combination and a file of type 2 maps to a (key, value2) combination, then we add (key, value1) to cookieMap and *not* (key, value2). **Edit: as pointed out by Bevan, this is not satisfied by my original procedural code.** * Secondarily, `CookieContainer`s with a higher `Count` have higher priority, i.e. ...
[ 0.16957975924015045, -0.2664737403392792, 0.03118828311562538, -0.03810160234570503, 0.15316857397556305, 0.09518809616565704, 0.379317969083786, -0.3825558125972748, -0.33121126890182495, -0.5023455619812012, -0.11047150939702988, 0.989223837852478, -0.4510256052017212, -0.090635485947132...
cookieMap = (filesOfType1.Select(file => GetType1FileCookiePair(file)) .Concat(filesOfType2.Select(file => GetType2FileCookiePair(file)))) .GroupBy(pair => pair.Key) .Select(/* some way of selecting per the above bullets */) .ToDictionary(pair ...
[ 0.2811211347579956, -0.01749916560947895, 0.26750367879867554, -0.0170658640563488, 0.16848444938659668, 0.20660945773124695, 0.49692314863204956, -0.37833964824676514, -0.2722979485988617, -0.6624290347099304, -0.10003722459077835, 0.6049277782440186, -0.490098774433136, 0.235568463802337...
inelegant and filling in that comment block seems like a bitch. Right now I'm happy to stay procedural, but I thought that it might be a fun challenge to see if people can come up with something really clever. Here's my attempt - seemed simplest to split the task into three distinct statements. I'm using a helper func...
[ 0.33861541748046875, 0.474604070186615, 0.00021964644838590175, -0.2694300711154938, -0.061944182962179184, 0.3643115758895874, 0.2780015170574188, -0.16513587534427643, -0.3628426194190979, -0.5345032215118408, 0.19703739881515503, 0.220891073346138, -0.43751636147499084, -0.0356095731258...
it as intent. ``` // Handle all files of type 1 var pairsOfType1 = filesOfType1 .Select( file => Swallow( pairGetter(file))) .Where( pair => pair != null); // Handle files of type 2 and filter out those with keys already provided by type 1 var pairsOfType2 = filesOfType2 .Select( file...
[ 0.4308236241340637, 0.1308487206697464, 0.45375746488571167, -0.19757850468158722, -0.1033969596028328, 0.3201538622379303, 0.1557123363018036, -0.7659803628921509, -0.09239696711301804, -0.33817628026008606, -0.17626486718654633, 0.1680530458688736, -0.8041454553604126, 0.1304048150777816...
p.Key == pair.Key)); // Merge the two sets, keeping only the pairs with the highest count var cookies = pairsOfType1 .Union( pairsOfType2) .GroupBy( pair => pair.Key) .Select( group => group.OrderBy( pair => pair.Value.Count).Last()); .ToDictionary( pair => pair.Key); ```
[ 0.1465313881635666, -0.14699341356754303, 0.39431312680244446, -0.25407275557518005, 0.16740132868289948, 0.30531495809555054, 0.4792960286140442, -0.716360867023468, -0.10646064579486847, -0.7077696919441223, -0.44990962743759155, 0.30697834491729736, -0.5607607364654541, 0.18907457590103...
Joe Duffy states in the MSDN article "[Using concurrency for scalability](http://msdn.microsoft.com/en-us/magazine/cc163552.aspx)" that the cost of creating a thread is approximately 200,000 cycles, and the cost of destroying is about 100,000 cycles. When I try to create a new thread to perform some calculations, I wo...
[ 0.48632484674453735, 0.3175759017467499, -0.2466025948524475, -0.12418410181999207, 0.12061410397291183, 0.18098857998847961, 0.39948928356170654, 0.020232437178492546, -0.6185786128044128, -0.3918698728084564, 0.277024507522583, 0.16606296598911285, -0.3911193311214447, 0.3097246885299682...
of disturbance on the system being measured. When using threads however the goal is to avoid needless spawning new threads. Look into using the [thread pool](http://msdn.microsoft.com/en-us/library/ms973903.aspx). This will let you run work items asynchronously, but without having to spawn a new thread for each item.
[ 0.40718764066696167, -0.27852416038513184, 0.30286914110183716, 0.17914468050003052, 0.0469188392162323, -0.2342280000448227, 0.3679805099964142, -0.009900114499032497, -0.6117503046989441, -0.6841890215873718, 0.1140407994389534, 0.6167336702346802, -0.13270574808120728, 0.215205922722816...
We are an organisation who have purchased a system which is used by doctors to view test results of patients (quite sensitive information). Being a programmer, I have poked and prodded with the system and found that it submits the username and password via a HTTP GET request. On the domain it is run on, all computers a...
[ 0.7568724155426025, 0.2567290663719177, 0.5304633378982544, 0.2094736397266388, 0.06372994184494019, -0.03143611177802086, 0.15569116175174713, -0.16400781273841858, 0.15704135596752167, -0.38342270255088806, 0.1442999541759491, 0.32144278287887573, 0.12742938101291656, 0.3164808452129364,...
will be an 'enhancement' which will require additional $$$. (We never wrote the specifications for the system in the first place). What kind of case could I make to management to make them feel this isn't to standard and that probably the only way this system would be secure is through HTTPS? EDIT: Thanks for all you...
[ 0.6161052584648132, 0.04508739709854126, 0.48437607288360596, 0.1935938000679016, 0.17708508670330048, -0.1566874384880066, 0.34359753131866455, 0.10129818320274353, -0.08225203305482864, -0.5267283320426941, -0.011156918480992317, 0.43388915061950684, -0.08405093103647232, -0.145349413156...
they went that path. I will also try and explain the situation to other colleagues who don't have any direct involvement but may be able to have some influence on the matter. If it's medical data and you live in the United States, there is an excellent chance that access to it is subject to HIPAA regulations, including...
[ 1.0341635942459106, 0.2664361596107483, 0.2068646401166916, 0.1538051962852478, 0.3847392499446869, -0.32367876172065735, 0.4125063121318817, -0.18147194385528564, -0.5883161425590515, -0.3840397596359253, 0.06810813397169113, -0.16156567633152008, 0.18669798970222473, 0.1810389757156372, ...
saying that you're not compliant with the relevant governmental standards? Golly, maybe you should provide us with complete documentation on your security and privacy standards, safeguards, and procedures. Because obviously if we got hit with a fine, we'd be coming after you. " (IANAL and all that.) From a technical l...
[ 0.7439231276512146, 0.03511491417884827, 0.14002980291843414, 0.6020838618278503, 0.00897215399891138, -0.7459570169448853, 0.09607060253620148, 0.14952629804611206, -0.28380778431892395, -0.10848379135131836, -0.19838514924049377, 0.24128539860248566, -0.2163790613412857, 0.05878110975027...
back on *that* as a "security enhancement" is outrageous.
[ 0.6218951940536499, 0.2924695312976837, 0.08709046244621277, 0.18553754687309265, 0.08509990572929382, -0.3071953356266022, 0.07201393693685532, 0.1561897248029709, -0.19930437207221985, -0.05683298036456108, -0.1459457278251648, 0.32659444212913513, 0.15508447587490082, 0.3481591343879699...
I want to "remove" a UIView from a superview and add it again at the end... but at the "bottom" of the rest of the UIviews that belong to the superview. Is this possible? Any help is very appreciated! Hmmm... ``` - (void)insertSubview:(UIView *)view atIndex:(NSInteger)index; ``` Might be what you're after? Altern...
[ 0.08728192746639252, -0.21427243947982788, 0.6073563694953918, 0.025470897555351257, -0.18833357095718384, -0.06364702433347702, 0.5072844624519348, -0.0698680430650711, 0.09825777262449265, -0.7965813279151917, -0.1968233287334442, 0.6184595227241516, -0.34503602981567383, 0.4165353178977...
My application is logically divided into server, which contain my Grails domain objects and controllers; and client, where I have my Ext GWT classes that build all the UI pages. For UI requests, I am using an AJAX call to a controller method that returns, for instance, a list of domain objects as a JSON structure. Fo...
[ 0.06626106798648834, 0.08127167075872421, 0.7347110509872437, 0.16897334158420563, -0.1840488612651825, 0.0612001046538353, 0.04122362285852432, 0.044166021049022675, -0.15129601955413818, -0.7349582314491272, -0.09223537147045135, 0.3249320983886719, -0.19227567315101624, 0.47977104783058...
change multiple places when I add, change or remove a new field. Question is: is that a good way to go? If yes, how would be the best way to make .groovy domain objects available on the "client-side" Ext GWT Java classes? If no, why is it bad and what would you advice instead? There isnt a good way - you need a jav...
[ 0.2491549849510193, -0.03356501832604408, 0.2621053159236908, 0.1543550193309784, -0.07139025628566742, -0.20699185132980347, 0.3013041317462921, 0.10138367116451263, -0.2962796688079834, -0.6774038672447205, 0.1288241297006607, 0.3533717691898346, -0.41032060980796814, 0.25493916869163513...
object. A similar method is being used to autogenerate the RPCAsync interfaces in the gwt plugin - see GwtGrailsPlugin.groovy in the gwt plugin directory, line 133 or so is the start. You could hook into that (or just modify that file directly, probably easier) and insert some code to generate the data transfer fil...
[ 0.07314575463533401, -0.32271069288253784, 0.5098285675048828, 0.198806032538414, -0.1593746840953827, -0.2218128889799118, 0.03150302916765213, -0.05198432877659798, -0.3126870393753052, -0.6912415027618408, -0.12585820257663727, 0.5611355900764465, -0.2790263593196869, 0.2180913239717483...
I currently have a couple of SVN repositories hosted at Unfuddle and I'd like to have a local copy of the repositories as a backup. Ideally, it would be a "live" backup so my local repository would "ping" the remote repository, and if any changes were detected, the changes would be applied to my local repository. Has ...
[ 0.22795450687408447, -0.01698206551373005, 0.6391456723213196, 0.028761835768818855, -0.09152478724718094, -0.0618598498404026, 0.24864284694194794, -0.01395596656948328, -0.5041859745979309, -0.8368692398071289, 0.03768200799822807, 0.588726818561554, 0.045316655188798904, 0.2381080389022...
option. I already used both `svnsync` and `git-svn`.
[ -0.11771166324615479, -0.46734076738357544, 0.3673068881034851, 0.2415452003479004, -0.07418230175971985, -0.2347859889268875, 0.04211314395070076, 0.5466799736022949, -0.09834247082471848, -0.7423546314239502, -0.281907320022583, 0.83223956823349, -0.010134521871805191, 0.0797388330101966...
How do I call a url in order to process the results? I have a stand-alone reporting servlet which I link to for reports. I want to email these reports now, if I were doing this in the browser, I could just use an xhttprequest, and process the results - I basically want to do the same thing in Java, but I'm not sure ho...
[ 0.4967341125011444, 0.1816384494304657, 0.47583040595054626, 0.2188926339149475, -0.4077483117580414, -0.48840174078941345, 0.3069695830345154, 0.07404281944036484, -0.030376451089978218, -0.588835597038269, -0.03171470761299133, 0.415936678647995, -0.017098134383559227, 0.0837327316403389...
triggers the emailing, rather it is a scheduled email. ``` public byte[] download(URL url) throws IOException { URLConnection uc = url.openConnection(); int len = uc.getContentLength(); InputStream is = new BufferedInputStream(uc.getInputStream()); try { byte[] data = new byte[len]; int ...
[ -0.12701007723808289, -0.25257939100265503, 0.47114038467407227, -0.09419596940279007, 0.19646097719669342, -0.06005673483014107, 0.03600870445370674, -0.009986519813537598, -0.25824418663978577, -0.5247300863265991, -0.5510793924331665, 0.6669653654098511, -0.3574528396129608, 0.247621938...
if (read < 0) { break; } offset += read; } if (offset < len) { throw new IOException(
[ 0.11390744149684906, -0.49700602889060974, 0.002959759905934334, -0.2504459023475647, 0.09751126170158386, 0.08204678446054459, -0.00973459705710411, -0.3083692789077759, 0.014558042399585247, -0.4277362525463104, 0.030815957114100456, 0.7405186891555786, -0.20028698444366455, -0.220985069...
String.format("Read %d bytes; expected %d", offset, len)); } return data; } finally { is.close(); } } ``` Edit: Cleaned up the code.
[ 0.0003508277877699584, 0.17296050488948822, 0.5461943745613098, -0.2846623659133911, 0.08219669759273529, 0.02115011215209961, 0.13933788239955902, -0.06279736757278442, 0.0333135761320591, -0.5655055046081543, -0.3265771269798279, 0.5628306269645691, -0.2723889648914337, 0.415994167327880...
Here is the story. I was doing a program, every time the program is closed all the data(File links) created by the user is lost, so whenever the user reopen the program, he does have to do all the work again. So I decided to use an xml file to store the data, because a dbms would take too long to load and code to hand...
[ 0.2727338969707489, 0.05948370322585106, -0.05255760997533798, 0.24664151668548584, 0.28822752833366394, -0.056231189519166946, 0.11708740144968033, 0.30948710441589355, -0.06730114668607712, -0.5263340473175049, -0.2852344810962677, 0.004878149833530188, 0.015066845342516899, 0.5417761802...