text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
interface I loaded from the bin and the interface returned from typeof is that the typeof assembly has a location in the temp ASP.net path (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\08c43c8b\3adac8cf\assembly\dl3\eb7a4127\0235ea60\_a3c8c901\ReflectionTest.DLL) Thanks Paul Alexander I h...
[ 0.12553362548351288, 0.0610031895339489, 0.14622162282466888, 0.1210910975933075, -0.3507939875125885, 0.13967397809028625, 0.5002840757369995, -0.2799803912639618, -0.29129064083099365, -0.7837824821472168, 0.12330307811498642, 0.3108428716659546, -0.40092283487319946, 0.01956179179251194...
Failures](http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx). If the assembly that you're loading is already in the Bin directory - you can load it by name. You don't need to know the exact path as the Bin folder is already in the assembly probing path.
[ 0.18795862793922424, 0.2038843035697937, -0.19403992593288422, 0.055330514907836914, 0.17318372428417206, 0.04476393386721611, 0.4900377094745636, -0.14768147468566895, -0.4711504876613617, -0.48371824622154236, -0.23896647989749908, 0.6650252938270569, -0.23977388441562653, 0.330481112003...
We are developing a Java EE application backed by any database of customer choice. We will sell to customers based on per user license price. How do I make sure, the application is getting used as per our conditions, i.e., not easily hackable? Are there any tutorials available? [Bill Karwin's answer](https://stackover...
[ 0.48818764090538025, 0.22187919914722443, 0.014211992733180523, 0.18288040161132812, 0.5391578078269958, -0.2938288748264313, 0.5122717022895813, -0.24083150923252106, -0.12971307337284088, -0.07775873690843582, -0.25889578461647034, 0.3796398937702179, 0.006375435274094343, -0.24929222464...
frustrating system. From your question, it's tough to tell if each user will install the application. If so, you probably just need to require a license code that they must contact you in some way to get. If it's a client-server thing, then your options are a lot more limited; in fact, I can't think of a single soluti...
[ 0.10472746938467026, 0.18628890812397003, -0.07385116815567017, 0.3806295692920685, 0.02804703451693058, 0.11179515719413757, 0.2539922595024109, 0.31527090072631836, -0.3318442404270172, -0.4800586998462677, 0.2649729251861572, 0.46332278847694397, -0.3177570104598999, 0.17953133583068848...
for and then disallow the creation/use of users in excess of that number. At that point, though, you're really walking that frustration line I mentioned.
[ 0.6445913314819336, 0.14902234077453613, -0.04695045202970505, 0.039170797914266586, -0.00578987505286932, -0.07660140842199326, 0.13404341042041779, 0.007494643796235323, -0.03269694373011589, -0.22744013369083405, 0.316020131111145, 0.6354897618293762, -0.1473795771598816, 0.285429179668...
I need an elegant way to store dynamic arrays (basically spreadsheets without all the functionality) of various sizes (both x and y), mostly being used as ENUMs, lists, lookup data, price sheets, that sort of thing. Multi-lingual would be a great bonus. Speed of the essence. Here's an example of a typical "sheet" ; ...
[ 0.1581282913684845, -0.08659563958644867, 0.448331356048584, 0.1899328976869583, -0.0010808210354298353, 0.10415462404489517, -0.1870022565126419, -0.11690671741962433, -0.19425763189792633, -0.6436483860015869, 0.1313854455947876, 0.35983648896217346, -0.23507174849510193, 0.1398676633834...
| 3$ | 6$ | 9$ | 12$ model C | 4$ | 8$ | 10$ | 13$ ``` So, to get info, I would do ; ``` $price = this_thing_im_after ( '3', 'model B' ) ; echo $price ; // Prints '9$' ``` I'm in the PHP5 and Zend Framework world, but thoughts on design and SQL is just as dandy, even suggestions on and from the outside ...
[ 0.29981565475463867, 0.26906076073646545, 0.45604223012924194, -0.2183046042919159, -0.19026978313922882, -0.027635542675852776, 0.26671120524406433, -0.21978773176670074, 0.02777092717587948, -0.654447615146637, 0.16671527922153473, 0.6165083646774292, -0.11147031933069229, 0.079082675278...
dynamic sheets later. Thoughts, ideas, pointers? Just an edit to point out that I'd prefer not to serialize and blob the data as I would like to query the indeces and sheets, perhaps even the data (or type for those who support such, now *that* would be awsome!) if I'm in a crazy mood. But again, this is not a breaker...
[ -0.04585661366581917, -0.4654856324195862, 0.6314606070518494, 0.5161924362182617, -0.19039283692836761, -0.16097481548786163, 0.004429335705935955, 0.18775911629199982, -0.6384478807449341, -0.606452226638794, 0.017734510824084282, 0.5015432834625244, -0.07321204990148544, 0.1827985495328...
with a key/value table where your key is the row and col fields: ``` CREATE TABLE sheet ( sheet_id int not null, name varchar(32), rows int, -- stores max dimension if needed cols int, -- stores max dimension if needed primary key (sheet_id) ); CREATE TABLE cells ( cell_id ide...
[ -0.4105437099933624, -0.03887350112199783, 0.6632947325706482, 0.10520025342702866, 0.26756295561790466, 0.1098647490143776, -0.14608588814735413, -0.2641853988170624, -0.2298317700624466, -0.6514751315116882, -0.1929319202899933, 0.4051244258880615, -0.3210596740245819, 0.1431644558906555...
foreign key to sheet table row int not null, col int not null, value smalltext, -- or a big varchar depending on need primary key (cell_id), -- for updates unique index (sheet_id, row, col), -- for lookup index (value) -- for search ); CREATE TABLE row_labels ( sheet_id in...
[ -0.445064902305603, 0.08120688796043396, 0.6158161759376526, 0.045538872480392456, 0.14050781726837158, 0.12254061549901962, -0.14327944815158844, -0.02550080418586731, -0.06609980016946793, -0.469229131937027, -0.3013369143009186, 0.33535319566726685, -0.30673059821128845, 0.3635672926902...
label varchar(32), primary key (sheet_id, row) ); CREATE TABLE col_labels ( sheet_id int not null, col int not null, label varchar(32), primary key (sheet_id, col) ); ``` This allows you to slice the data nicely: ``` // Slice [4:20][3:5] SELECT row, col, value FROM cells WHERE...
[ -0.2660708427429199, -0.20228374004364014, 0.7494011521339417, -0.09462150186300278, -0.08468807488679886, 0.33055469393730164, -0.1370038539171219, -0.5828928351402283, -0.2749587297439575, -0.6979697346687317, -0.20247666537761688, 0.24654081463813782, -0.3079027235507965, 0.263485670089...
{ $cell[$A['row'][$A['col']] = $A['value']; // or unserialize($A['value']); } ```
[ -0.18890556693077087, 0.27847951650619507, 0.010615685023367405, -0.39609286189079285, 0.4366922080516815, -0.22817911207675934, 0.3100219666957855, -0.2515774369239807, -0.10891061276197433, -0.22186076641082764, -0.4924912750720978, 0.574207603931427, -0.6172651052474976, 0.3767547905445...
I'm looking for an implementation of thread-safe blocking queue for .NET. By "thread-safe blocking queue" I mean: - thread-safe access to a queue where Dequeue method call blocks a thread untill other thread puts (Enqueue) some value. By the moment I'v found this one: <http://www.eggheadcafe.com/articles/20060414.asp>...
[ 0.09651719778776169, -0.22760121524333954, 0.22185087203979492, -0.07131417095661163, -0.32042428851127625, -0.1813545972108841, 0.2570420503616333, 0.2799954414367676, -0.3932323753833771, -0.4744804799556732, 0.18690705299377441, 0.11292964965105057, -0.5898410677909851, 0.28259250521659...
I have an IIS server with 4 sites configured, using host headers and sharing the same IP. During a server move, I want to turn off the sites and display a holding page. To do this I intend to create a 5th site with no host headers configured (ie a catch-all), a 404 handler with maintenance notice, and during the upgra...
[ 0.43364161252975464, 0.07693768292665482, 0.5258873105049133, 0.13931415975093842, 0.13552695512771606, -0.09269566833972931, 0.4402576684951782, -0.08263115584850311, -0.46637123823165894, -0.7396950125694275, -0.14316913485527039, 0.25685396790504456, -0.28115522861480713, 0.457567781209...
XP machine with IIS 5 to experiment with. I checked the MSDN articles, but they do not seem to mention what happens when individual websites are stopped. Yes, when you stop a site on address $IP with a specified host header, its requests will pass through to a site with just address $IP. Your migration method will work...
[ 0.3596242368221283, -0.008022094145417213, 0.6935113668441772, -0.031425874680280685, -0.2845748960971832, -0.13595470786094666, 0.3019746243953705, -0.17992271482944489, -0.3205358684062958, -0.7545591592788696, -0.1751255989074707, 0.6327383518218994, -0.4318537414073944, 0.1306909322738...
#2.
[ -0.26522356271743774, 0.10338228195905685, 0.17235229909420013, 0.18742774426937103, -0.16549356281757355, 0.24826034903526306, 0.01911153458058834, -0.2910856008529663, 0.25186362862586975, -0.1772853434085846, -0.436662882566452, 0.337688148021698, -0.23637402057647705, 0.146222606301307...
I have a plain old Windows Forms application with a WiX installer, and it is installed for all users to the `Program Files` folder as you would expect. The application hosts add-ins using the [System.AddIn framework](http://msdn.microsoft.com/en-us/library/bb384241.aspx). Because the System.AddIn framework needs to wr...
[ 0.7126867771148682, 0.1787301003932953, 0.5514130592346191, -0.3229765295982361, 0.30533549189567566, -0.05224146321415901, 0.035253316164016724, -0.24911315739154816, 0.15922653675079346, -0.9728685021400452, -0.11090097576379776, 0.45355066657066345, -0.3407208323478699, 0.15393802523612...
that there are conflicting requirements here (users can't mess with other users' add-ins, the add-ins need to be installed for all users and all users need permission to write) but what is the best practical route to take? It's a shame that the files the System.AddIn framework needs to write can't be stored separately...
[ 0.2293025702238083, 0.136161208152771, 0.4651888608932495, 0.06955520808696747, 0.10466238111257553, -0.27775412797927856, 0.1335543543100357, 0.021480420604348183, -0.13655051589012146, -0.5736400485038757, -0.11719826608896255, 0.5369389057159424, -0.2976685166358948, 0.22199268639087677...
case, this folder should have permission to read/write and be the same for all users. Don't forget to create a subfolder for your company/application name: ``` string companyName = "My Company"; string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); string path = Path.Combine(...
[ 0.29726240038871765, 0.1942390352487564, 0.4813286364078522, -0.23067374527454376, 0.4786173403263092, -0.14268432557582855, 0.14617089927196503, 0.09944655001163483, -0.13993392884731293, -0.6446277499198914, -0.4029809832572937, 0.409399151802063, -0.49351221323013306, 0.2111804783344268...
Context: We are building a framework for rapid delivery of WPF applications. This framework uses Autofac as an IoC container and also uses regions from Prism v1. We are scheduling tasks with Parallel extensions from Microsoft. We are facing the following problem: When we boot the application with empty views (so just ...
[ -0.11021728068590164, -0.11948186159133911, 0.3414212465286255, 0.36052870750427246, -0.10958917438983917, 0.1496647447347641, 0.16432732343673706, -0.2200593203306198, -0.31629636883735657, -0.6406779289245605, -0.0924413874745369, 0.3813992142677307, -0.09936416149139404, -0.132344037294...
leak. I started out by using dotTrace but I couldn't see any difference between 2 snapshots taken 30 minutes apart. Moved on to .NET memory profiler because it gives me more information but again we cannot see any differences between 2 snapshots. We can see that a number of objects get created but they are removed too...
[ 0.5537707209587097, -0.3869459927082062, 0.22247743606567383, 0.16642439365386963, -0.28598108887672424, -0.39772817492485046, 0.20946316421031952, -0.11070891469717026, -0.08030756562948227, -0.7102018594741821, 0.38212111592292786, 0.367357075214386, -0.5266971588134766, 0.39022666215896...
try next to find out what/who is the culprit? As it turns out it was a bug inside WPF and the workaround was to create a window handler as very first object or something. Thanks guys
[ 0.2353609949350357, -0.3699246048927307, -0.08387520909309387, 0.6927892565727234, -0.28667694330215454, -0.31621861457824707, 0.4801632761955261, 0.5752185583114624, -0.24997328221797943, -0.5636311173439026, 0.23016656935214996, 0.4028240442276001, -0.20901086926460266, 0.029395865276455...
I'm trying to track down the cause of performance bottlenecks in an application I'm debugging under Linux. The various processes involved seem to spend a lot of their time blocking on I/O requests, and I was wondering if anybody knew any Linux tricks that let you see *why* a particular process is blocked/what resource ...
[ 0.7246953845024109, -0.1600923240184784, 0.20771770179271698, 0.09284619241952896, 0.2530154883861542, -0.12528297305107117, 0.07301341742277145, 0.40801650285720825, -0.3254839777946472, -0.8258844017982483, -0.2309151291847229, 0.45538386702537537, -0.3789099156856537, 0.0446325577795505...
[gdb](http://sources.redhat.com/gdb/onlinedocs/gdb.html). Tools like [iostat](http://linux.die.net/man/1/iostat) might show you in general what is going on (e.g. if disk is bottleneck).
[ 0.36435356736183167, -0.05935544893145561, -0.13818515837192535, 0.17969968914985657, -0.0866924598813057, -0.48710665106773376, -0.009783158078789711, 0.04634591564536095, -0.5421711206436157, -0.4850277304649353, -0.45855605602264404, 0.5339146852493286, -0.2225077748298645, -0.070995762...
I have a java app that uses `ProcessBuilder` to prepare an operating system command and gives me a `Process` object. (The actual os command is rsync over ssh using cygwin). This is working well in Windows, however if I want to stop the process using `process.destroy()` it will not kill the child ssh and rsync processe...
[ 0.26286956667900085, 0.24472734332084656, 0.09237446635961533, 0.01914573647081852, 0.02184995263814926, -0.1817696988582611, 0.31398892402648926, 0.058779507875442505, -0.06444451957941055, -0.8078110814094543, 0.04028526693582535, 0.7283763289451599, -0.2830229103565216, 0.42856678366661...
order to kill ssh entirely is problematic. What I would do, is one of the following approaches. Either use windows commands to find out who are ssh's sons (which is a little bit problematic, since you need to know your current pid in order to recieve your own children-processes). I believe [pstools](http://technet.mic...
[ 0.4019679129123688, -0.30181801319122314, 0.14143575727939606, 0.08726771175861359, 0.08292216062545776, -0.10725373029708862, 0.24455274641513824, -0.31409215927124023, -0.28726670145988464, -0.3548976182937622, -0.1869894117116928, 0.4572841227054596, -0.5242408514022827, 0.2172500640153...
library such as [winp](http://winp.kohsuke.org/ "winp") to execute and control the ssh process. I believe you'd be able to list all its children and forcibly kill them if sending the correct message would not suffice. This would be my preferred approach. Please note that the [killRecursively](https://winp.dev.java.net/...
[ 0.4934110641479492, -0.13282640278339386, -0.12986090779304504, 0.1940581053495407, -0.10755891352891922, -0.2606995403766632, 0.20081698894500732, -0.33499443531036377, -0.08503738790750504, -0.43379655480384827, -0.11661040782928467, 0.4746079444885254, -0.30361196398735046, -0.039124384...
solutions I found are.
[ 0.13167084753513336, 0.3307313919067383, 0.11839496344327927, 0.3676334321498871, 0.1633976399898529, 0.312045693397522, 0.12060156464576721, -0.230100616812706, 0.0779189020395279, -0.8177418112754822, 0.002406824380159378, 0.34053754806518555, -0.02014983631670475, -0.008497652597725391,...
I am working on a windows application. I need to simulate Session (that we have in a web app) in the win app where if the user is inactive for certain period, he gets logged off. The user login status is maintained in the database. Any innovative ideas??? You do not need Session (or CallContext, or anything else), jus...
[ 0.7645739912986755, -0.10068958252668381, 0.21245166659355164, 0.03229348361492157, 0.30181440711021423, -0.11011318862438202, 0.22333812713623047, -0.04225195199251175, -0.28049948811531067, -1.0154541730880737, 0.12875039875507355, 0.23035097122192383, -0.08117323368787766, -0.1113603040...
could be: ``` [User login] | ! [User 'store' saves user date + login time] [This is a singleton ]
[ -0.016044314950704575, -0.025902939960360527, -0.09121333062648773, -0.28127145767211914, 0.10460954904556274, -0.0062623717822134495, 0.21301227807998657, 0.2721194624900818, -0.20576436817646027, -0.5751775503158569, -0.24080386757850647, 0.4189629554748535, -0.28518614172935486, 0.42773...
... [Next time user wants to do something. The ] [program asks user data from the user 'store'] | ! [If the actual time is greater than user ] [lastactivity + LOGOUTTIME, user cannot do it] [If not, then update last activity ] ``` UserStore can be implemented as
[ 0.32195529341697693, -0.26744815707206726, 0.37297114729881287, 0.17669455707073212, 0.3457137942314148, -0.10504218935966492, 0.056414272636175156, -0.00008624514885013923, -0.21959002315998077, -0.5868624448776245, -0.0991595908999443, 0.8440320491790771, -0.33364006876945496, -0.1257870...
a *Dictionary* and used as: ``` // Log in Singleton.UserStore.Add("John", new UserData( yourUserObject, DateTime.Now)); ... // Check (ie. in a property-get) var userData = Singleton.UserStore["John"]; if (userData.LastActivityDate + _LOGOUTIME > DateTime.Now()) { throw UserAutomaticallyLoggedOut(); } else { u...
[ 0.10844656080007553, 0.007747344672679901, 0.3884645104408264, -0.2990345060825348, 0.3860483467578888, 0.06036566570401192, 0.3770568370819092, -0.14614354074001312, -0.23545372486114502, -0.6275376677513123, -0.32105210423469543, 0.5029308199882507, -0.2129041999578476, 0.196178138256073...
I've always thought that Python's advantages are code readibility and development speed, but time and memory usage were not as good as those of C++. [These stats](http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=python3&lang2=gpp) struck me really hard. What does your experience tell you about Python vs ...
[ -0.04583384096622467, 0.07343554496765137, -0.16335654258728027, 0.053478751331567764, -0.5775054693222046, -0.0032218683045357466, 0.055278290063142776, 0.010228491388261318, -0.560729444026947, -0.5968401432037354, 0.2520880103111267, 0.787276566028595, -0.0072545274160802364, -0.1229721...
the order of between 10 and 100 times slower than C++ when doing any serious number crunching. There are many reasons for this, the major ones being: a) Python is interpreted, while C++ is compiled; b) Python has no primitives, everything including the builtin types (int, float, etc.) are objects; c) a Python list can ...
[ -0.1313062161207199, 0.15690326690673828, -0.011569526046514511, 0.11130645871162415, -0.3614189624786377, -0.1881764829158783, 0.5890500545501709, -0.12318310886621475, -0.17276357114315033, -0.47548776865005493, -0.0963544249534607, 0.3608831465244293, -0.35255467891693115, -0.2513717114...
100 time slowness factor. Development cost is where Python wins with the simple and concise style. This improvement on development cost often outweighs the cost of additional cpu and memory resources. When it doesn't, however, then C++ wins.
[ -0.2346094697713852, 0.1479329764842987, 0.044742174446582794, 0.22548756003379822, -0.3680326044559479, 0.09262950718402863, 0.28372737765312195, 0.158628910779953, -0.19186699390411377, -0.6523089408874512, -0.37726420164108276, 0.472788542509079, -0.0753716230392456, -0.3559824526309967...
Registered table has stucture ``` regid userid var Registered = form r in dc.registered where ... // list contains userid as f.k. ``` I want user list who has registered. so query like ``` var user = from u in dc.users where u.userid in // should contains in Register.userid ``` I want to learn more about linq ...
[ 0.18774613738059998, 0.1381376087665558, 0.8401328921318054, 0.20602038502693176, -0.14603599905967712, -0.10746771842241287, -0.1595962792634964, -0.22200140357017517, -0.21362990140914917, -0.5692814588546753, 0.02252216450870037, 0.2759382724761963, -0.05927206575870514, 0.1567480564117...
efficient than an "Any" solution as it will build up the set of registered user IDs once (as a hashset) at which point the test for each user is quick.
[ -0.015841307118535042, -0.22557255625724792, 0.19725605845451355, 0.27196669578552246, 0.2342318296432495, -0.314899206161499, 0.005906969774514437, -0.31820034980773926, 0.0979178175330162, -0.9070500731468201, 0.0700153335928917, 0.3024541437625885, -0.08441566675901413, -0.4288059175014...
I have a textbox in which i have to write content inside stringbuilder. Following is my stringbuilder. ``` Dim strString As New StringBuilder() strString.AppendLine("<table>") strString.AppendLine("<tr><td>") strString.AppendLine("<br/><br/>") strString.AppendLine("<div style=""text-tra...
[ 0.0735383853316307, 0.17407257854938507, 1.3032196760177612, -0.2862744629383087, -0.10162173956632614, -0.12861262261867523, 0.47669970989227295, -0.2941586971282959, 0.03213927522301674, -0.7240045070648193, -0.14683474600315094, 0.5390868782997131, -0.11422939598560333, 0.40613883733749...
strString.AppendLine("<br /><br />") strString.AppendLine("Your appointment Time: " + Session("AppTime")) strString.AppendLine("<br />") strString.AppendLine("Your appointment Date: " + Session("AppointmentDate")) strString.AppendLine("</td></tr>") strString.AppendLine("<tr><td>"...
[ -0.0829753428697586, 0.2943557798862457, 1.3090169429779053, -0.40284326672554016, -0.18067969381809235, -0.04293031245470047, 0.4589075446128845, -0.6484445929527283, -0.17360050976276398, -0.5589845776557922, -0.21526223421096802, 0.5528672337532043, -0.3828062415122986, -0.2219067066907...
want to write in above given html format? No need for the tags in a textbox, you should do something like the following: ``` Dim strString As New StringBuilder() strString.AppendLine() strString.AppendLine("Dear " & System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(Session("PatientName")) & ","...
[ 0.1528497338294983, 0.15835854411125183, 1.3551127910614014, -0.15287135541439056, 0.4254189431667328, -0.3013090193271637, 0.3555380403995514, -0.1796121895313263, -0.08531884849071503, -0.5038527250289917, -0.08810590952634811, 0.6020881533622742, -0.2782800793647766, 0.3332839906215668,...
I have created a form in my application as follows: ``` <form action="/search/" method="get"> <input id="search-box" name="search" type="text" size=30 title="Search" value="" /> <input id="search-submit" type="image" alt="Search" src="/images/search-button.gif" /> </form> ``` But when I am submitting my form ...
[ 0.5093094706535339, 0.162216916680336, 0.9366036057472229, -0.10657474398612976, -0.17636464536190033, -0.13252611458301544, 0.2286350578069687, -0.6789534687995911, -0.019910240545868874, -0.7068290114402771, 0.03284186124801636, 0.5287122130393982, -0.14374007284641266, 0.278877615928649...
image button to make my form look good. Please tell me how to remove these x and y parameteres from URL. You'll always get mouse co-ordinates for a submit button type="image" You can use a standard submit type button and just apply styles to it to change the look. ``` <input type="submit" id="search-submit" value="" ...
[ 0.24835586547851562, 0.057426679879426956, 1.0911580324172974, -0.06597550213336945, -0.3268287777900696, 0.03420889005064964, 0.06057407706975937, -0.2890877425670624, -0.10554869472980499, -0.6402742862701416, 0.020575547590851784, 0.6214300394058228, 0.021066054701805115, -0.09257525205...
I'm designing a new site for a local government department in Scotland and I want to make sure I meet the minimum accessibility level for the site. I had planned to use some jQuery effects, and also to AJAXify the content. But I realised all this JavaScript probably won't be accessible. We will be using VS2008 ASP.NE...
[ 0.5117204785346985, -0.2042197436094284, 0.5720420479774475, -0.054577503353357315, 0.12194699048995972, -0.26411256194114685, 0.5653551816940308, 0.2500140070915222, 0.011552535928785801, -0.5896783471107483, -0.23692063987255096, 0.24312229454517365, 0.3507523238658905, -0.09141840040683...
there for checking our web site? Built in/Add on tools for Visual Studio would be great. We normally design in house site for our administration teams, so this is the first time we've had to worry about accessibility so answer in a "For Dummies" style if you want! :) Thanks! You also have to comply with the Disabilit...
[ 0.666455864906311, 0.2046324759721756, 0.5076927542686462, -0.07280879467725754, -0.07785417884588242, -0.33368995785713196, 0.3220910429954529, -0.198961079120636, -0.32044345140457153, -0.3098093271255493, -0.11127371340990067, 0.4327780604362488, 0.09062936156988144, -0.1722262054681778...
those with visual impairments can use them, as such they need to be able to be navigated if the user has JavaScript and CSS disabled. You need to ensure that if you use any CSS on the site that the navigation and structure degrade gracefully so that they make sense (e.g. don't make the navigation the last item on the ...
[ 0.29897451400756836, 0.22048985958099365, 0.38286009430885315, 0.20736458897590637, 0.04319966956973076, -0.22961337864398956, 0.5202552080154419, 0.13893552124500275, -0.4890187978744507, -0.77925705909729, -0.10841576755046844, 0.5169956088066101, -0.20824770629405975, -0.138890951871871...
ensure there are no errors. All images need ALT attributes All links need title attributes Any tables should have a summary There are many more items like these but testing should flag these up. In terms of testing the site, there are a few free screen readers available - although we had limited success with these...
[ 0.9999297857284546, 0.3915863037109375, 0.07335851341485977, -0.06905197352170944, 0.05387146770954132, -0.47757580876350403, 0.28428545594215393, -0.02338072657585144, -0.1757877916097641, -0.4298880994319916, 0.18242043256759644, 0.6839011907577515, 0.33713725209236145, -0.16071228682994...
site on a text-only browser such as Lynx. A few more resources can be found below: Jaws <http://www.freedomscientific.com/products/fs/jaws-product-page.asp> Free <http://www.screenreader.net>, <http://www.webaim.org/simulations/screenreader.php>, <http://www.xpscreenreader.com/> <http://firevox.clcworld.net/> - Fir...
[ 0.45764267444610596, 0.09618856012821198, 0.22686393558979034, 0.0238356776535511, -0.384746253490448, -0.06950370967388153, 0.1692638099193573, -0.23379278182983398, -0.24975916743278503, -0.7601426243782043, -0.09402231872081757, 0.402155339717865, -0.10606233775615692, -0.37435704469680...
I have a many-to-one relationship between objects `Product` and `Supplier`. I need to be able to delete `Supplier` without deleting the `Product`s that belong to it. Here is a simplified version of classes: ``` public class Supplier { public virtual IList<Product> Products { get; protected set; } } public class ...
[ 0.5825003385543823, -0.04312398284673691, 0.33314865827560425, -0.3134199380874634, 0.1850101798772812, 0.27708449959754944, 0.01992848329246044, -0.36787036061286926, 0.1255127191543579, -0.5556887984275818, -0.19571015238761902, 0.7682079076766968, -0.30598703026771545, 0.575257360935211...
<key column="SupplierID" /> <one-to-many class="Me.Product, Me, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /> </bag> <many-to-one name="Supplier" column="SupplierID" /> ``` This creates a foreign key on the Products table, so when I attempt to do a straight delete on a Supplier I get a foreign key ...
[ 0.535344660282135, 0.11619246751070023, 0.3671698272228241, -0.2933150827884674, 0.011160274036228657, 0.2673942744731903, -0.01056631188839674, -0.32945623993873596, -0.12318669259548187, -0.283922016620636, 0.0910695418715477, 0.5112562775611877, -0.5474949479103088, 0.5332989692687988, ...
a way I can achieve this behaviour through the mapping? The mapping properties only take effect when the entity is actually loaded, and when you are not querying through HQL. As an example, if you specify `Cascade=ALL`, if you delete a supplier with the query `"delete from Supplier where id=:id"`, you will probably get...
[ 0.1445421725511551, -0.03675699979066849, 0.15714502334594727, 0.03151445463299751, -0.17748843133449554, -0.029101712629199028, 0.20359715819358826, -0.29079657793045044, -0.38641273975372314, -0.4100513160228729, 0.07633239775896072, 0.21429623663425446, -0.3848869502544403, 0.4244167506...
supplier to null, and use this method before deleting any Suppliers * Before issuing a Supplier delete, make sure your DAO sets the product's supplier to null Example: ``` public int Delete(Supplier s) { return Session.CreateQuery("udpate Product set Supplier = null where Supplier = :supplier") .SetParame...
[ 0.6197251081466675, -0.26249632239341736, 0.3687300682067871, -0.320229172706604, -0.01775359734892845, 0.35500213503837585, 0.1085723415017128, -0.3002154231071472, 0.11576565355062485, -0.37209686636924744, -0.38035744428634644, 0.45260027050971985, -0.29988282918930054, 0.47576886415481...
Edit: The objective is to make quote documents that were attached to Purchase ***Requisitions*** available to staff that processes the Purchase ***Orders*** directly an in an easy way without having to navigate back to the requisition document itself. I would like to use the `DocuRef::openDocHandling` method from with...
[ 0.6319175362586975, 0.05904307961463928, 0.450130432844162, 0.14858825504779816, -0.3955228924751282, -0.009866195730865002, 0.05333365499973297, 0.03814525902271271, -0.027711171656847, -0.6612616181373596, -0.2378777265548706, 0.662048876285553, -0.043122805655002594, 0.0493420846760273,...
add a datasource VendPurchOrderJour with the (active) purchase requistion. You do not have to display any of the fields of the datasource, so you might use the OnlyFetchActive property. Then create the form method "docCursor", to tell the DocuView form which record is the active one. ``` public Common docCursor() { ...
[ 0.0192902572453022, -0.22624054551124573, 0.8920230865478516, -0.21980103850364685, 0.2348470538854599, 0.04471204802393913, -0.11715416610240936, -0.2409350723028183, -0.0706053376197815, -0.530332088470459, -0.37118643522262573, 0.9390145540237427, -0.4347291886806488, -0.109326474368572...
method of PurchTable. This solution does not allow for documents on purchase lines, you may have to expand the solution like this (line is a form group): ``` public Common docCursor() { return reqDoc ? vendPurchOrderJour : line.contains(element.selectedControl()) ? purchLine : ...
[ -0.3713620603084564, -0.25412890315055847, 0.6290273070335388, 0.16172580420970917, 0.1814054548740387, -0.09485384076833725, 0.3371516466140747, -0.27546268701553345, 0.02339022606611252, -0.4432026445865631, -0.42934033274650574, 0.14931803941726685, -0.43730372190475464, 0.1994015574455...
How do winforms options systems work? I've seen one article which implements the functionality via xml serialisation. Is it possible to implement this functionality via a class using static or constant variables? I can't quite remember, but do consts/static variables maintain state even when the application is closed?...
[ 0.23173850774765015, -0.1720866858959198, 0.27061450481414795, 0.09060563892126083, 0.23634465038776398, 0.025959426537156105, 0.03841318562626839, 0.05352391302585602, -0.16464753448963165, -0.67841637134552, -0.0016129979630932212, 0.6842738389968872, -0.06839605420827866, 0.092753134667...
I want to obtain an array of ActiveRecord objects given an array of ids. I assumed that ``` Object.find([5,2,3]) ``` Would return an array with object 5, object 2, then object 3 in that order, but instead I get an array ordered as object 2, object 3 and then object 5. The ActiveRecord Base [find method API](http:/...
[ 0.03536864370107651, -0.037934787571430206, 0.39750123023986816, -0.10686793178319931, 0.08691750466823578, 0.07990097999572754, 0.27152392268180847, -0.3522428274154663, -0.19467207789421082, -0.4172905385494232, 0.06296414136886597, 0.41392767429351807, -0.37751320004463196, 0.0441556200...
objects myself (either somewhat simple and poorly scaling or better scaling and more complex), but is there A Better Way? It's not that MySQL and other DBs sort things on their own, it's that they don't sort them. When you call `Model.find([5, 2, 3])`, the SQL generated is something like: ``` SELECT * FROM models WHER...
[ 0.005874111317098141, 0.2777753174304962, 0.24629026651382446, 0.29982447624206543, -0.41433197259902954, 0.22439536452293396, 0.19761919975280762, -0.17085005342960358, -0.4449613690376282, -0.46112701296806335, 0.05259910225868225, 0.29800742864608765, -0.255570650100708, 0.3414491713047...
a guaranteed order is to add an order clause. If your records will always be returned in a particular order, then you can add a sort column to the db and do `Model.find([5, 2, 3], :order => 'sort_column')`. If this isn't the case, you'll have to do the sorting in code: ``` ids = [5, 2, 3] records = Model.find(ids) sor...
[ 0.04544671252369881, -0.1037391722202301, 0.18580177426338196, -0.01595662161707878, 0.13495442271232605, -0.03500039130449295, 0.1448347121477127, -0.4275016784667969, -0.1307816356420517, -0.5428074598312378, -0.22395539283752441, 0.3813406229019165, -0.6712081432342529, 0.13962149620056...
I can bind a ListBox like this: **XAML:** ``` <UserControl x:Class="TestDynamicForm123.Views.ViewCustomers" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StackPanel Margin="10"> <ListBox ItemsSource="{Binding}"/> </St...
[ -0.13355986773967743, -0.0666470155119896, 0.65792316198349, -0.2214500457048416, -0.19334226846694946, 0.06040213629603386, 0.10622462630271912, -0.5119137167930603, -0.14392809569835663, -0.5989229679107666, -0.32023727893829346, 0.22361573576927185, -0.22997547686100006, 0.2114244848489...
} } } ``` **View Model:** ``` using System.Collections.ObjectModel; namespace TestDynamicForm123.ItemTypes { class Customers : ItemTypes { protected ObservableCollection<Customer> collection; public static ObservableCollection<Customer> GetAll() { ObservableCollectio...
[ -0.01998787187039852, -0.043009717017412186, 0.7721186280250549, -0.36412742733955383, 0.4425741732120514, 0.5638535618782043, 0.07849305123090744, -0.04907628521323204, -0.4054219722747803, -0.39905720949172974, -0.70869380235672, 0.4246070683002472, -0.3274247944355011, 0.456420958042144...
customers.Add(new Customer() { FirstName = "Jim", LastName = "Smith", Age = 23 }); customers.Add(new Customer() { FirstName = "John", LastName = "Jones", Age = 22 }); customers.Add(new Customer() { FirstName = "Sue", LastName = "Anders", Age = 21 }); customers.Add(new Customer() { Fi...
[ 0.374220073223114, 0.20823410153388977, 0.6050563454627991, -0.4028029143810272, 0.32869598269462585, 0.5898828506469727, 0.2963353097438812, 0.14936482906341553, -0.4471737742424011, -0.5694366693496704, -0.3222048580646515, 0.48161134123802185, -0.24994657933712006, 0.25964197516441345, ...
= "James", LastName = "Anders", Age = 37 }); return customers; } } } ``` But how do I "move it up a level" so I can **in the code behind bind to Customers itself and within my XAML bind to Customers various methods**, e.g. GetAll() for a ListBox and GetBest() for another control, etc.? I trie...
[ 0.1688057780265808, 0.08186572790145874, 0.9432477355003357, -0.32098379731178284, 0.23167648911476135, -0.02120864950120449, 0.1780601292848587, -0.40087851881980896, -0.17683690786361694, -0.6656424403190613, -0.3543975353240967, 0.3102376461029053, -0.29567256569862366, 0.19948311150074...
Source={StaticResource GetAll}}"/> (returns error) ``` You need to use [`ObjectDataProvider`](http://msdn.microsoft.com/en-us/library/system.windows.data.objectdataprovider.aspx) to bind to methods, but that should be the exception rather than the norm. Usually your VM would just expose properties that you bind to, in...
[ 0.31998538970947266, 0.039818793535232544, 0.4286402761936188, 0.04709216579794884, -0.07695430517196655, -0.3614642322063446, 0.1838042140007019, -0.2698015868663788, -0.2799500524997711, -0.5537567734718323, -0.307595819234848, 0.5469210743904114, -0.36652663350105286, 0.3203770518302917...
I have a project that has .htaccess Authentication but i want to remove it for a certain assets folder. i tried adding a htaccess in that folder with : ``` AuthType none Satisfy Any Allow from All Order Allow, Deny ``` but it doesnt seem to work :( Any thought on this. Thank you so much **Edit** The directory i a...
[ 0.02198762260377407, 0.2808641195297241, 0.3877222239971161, 0.044742584228515625, 0.0413985550403595, -0.42743054032325745, 0.4364330768585205, -0.17377330362796783, 0.057644858956336975, -0.765264093875885, -0.024692531675100327, 0.5864802002906799, -0.1786612868309021, 0.137515082955360...
I have a stored procedure that executes much faster from Sql Server Management Studio (2 seconds) than when run with `System.Data.SqlClient.SqlCommand` (times out after 2 minutes). What could be the reason for this? --- Details: In Sql Server Management Studio this runs in 2 seconds (on production database): ``` EX...
[ 0.26343783736228943, 0.0038430567365139723, 0.6337287425994873, 0.06490793824195862, 0.1824398934841156, -0.18395034968852997, 0.21023617684841156, -0.2934449315071106, -0.2828206419944763, -0.8668661117553711, -0.09990710020065308, 0.4584232270717621, -0.005969308316707611, 0.197807952761...
connection.Open(); using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) { } } } } ``` I also tried with `selectCommand = "sp_Stat"`, `CommandType = StoredProcedure`, and an `SqlParameter`, but it's the same result. And without ...
[ -0.48921069502830505, -0.20934975147247314, 0.6174147725105286, 0.13707375526428223, 0.060655973851680756, -0.11859682947397232, 0.11689382791519165, 0.0154568525031209, -0.41411885619163513, -0.6704477071762085, -0.12448400259017944, 0.46958500146865845, -0.4924699366092682, 0.46041455864...
development database both cases finishes in less than 1 second. So it's related to that there's a lot of data in the database, but it seems to only happen from .NET... --- What Marc Gravell wrote about different `SET` values makes the difference in the presented case. SQL Server Profiler showed that Sql Server Manag...
[ -0.08628486096858978, 0.02928953990340233, 0.16131632030010223, 0.1315535455942154, 0.1299324333667755, -0.213132843375206, 0.08258814364671707, -0.39401009678840637, 0.1365000307559967, -0.829483687877655, -0.13044624030590057, 0.5927603840827942, -0.20396257936954498, 0.17761987447738647...
SET ANSI_PADDING ON SET ANSI_WARNINGS ON SET CURSOR_CLOSE_ON_COMMIT OFF SET IMPLICIT_TRANSACTIONS OFF SET QUOTED_IDENTIFIER ON SET NOEXEC, PARSEONLY, FMTONLY OFF ``` When I included these, the same query took the same amount of time in SSMS and .NET. And the responsible `SET` is ... ``` SET ARITHABORT ON ``` W...
[ 0.42595064640045166, -0.030473943799734116, 0.4743976593017578, 0.08111138641834259, -0.1406082659959793, -0.1918034702539444, 0.19234681129455566, -0.46998560428619385, -0.17883461713790894, -0.5616294145584106, -0.21648700535297394, 0.5880512595176697, -0.48704496026039124, -0.1992498338...
impact if you are looking at (for example) a calculated + persisted (and possibly indexed) column: if the `SET` options aren't compatible, it can be forced to re-calculate the values, rather than using the indexed value - which can change an index seek into a table scan + calculation. Try using the profiler to see wha...
[ 0.08015726506710052, -0.1869906187057495, 0.2777678966522217, 0.1830051690340042, -0.32770639657974243, -0.1474522352218628, -0.352191686630249, 0.015601416118443012, -0.6535325050354004, -0.6131489872932434, -0.0681503415107727, 0.5516395568847656, -0.32719069719314575, -0.078604236245155...
isolation level.
[ -0.04253728687763214, 0.12440855801105499, -0.01568988896906376, -0.07368551194667816, -0.052811287343502045, -0.11093323677778244, 0.2958678901195526, -0.25735098123550415, -0.1388668566942215, -0.5533367395401001, -0.04141026362776756, 0.07096827030181885, -0.13331086933612823, 0.2968329...
With inspectdb I was able to get a "interval" field from postgres into django. In Django, it was a TextField. The object that I retrieved was indeed a timedelta object! Now I want to put this timedelta object in a new model. What's the best way to do this? Because putting a timedelta in a TextField results in the str ...
[ 0.211252361536026, -0.11705252528190613, 0.3084370493888855, 0.07859848439693451, -0.20392920076847076, -0.24244657158851624, 0.16491590440273285, -0.19235225021839142, -0.13759613037109375, -0.4059140980243683, 0.28254374861717224, 0.2352598011493683, -0.5655670166015625, 0.15592753887176...
your timedelta as a float. Here's the "Normalize to Seconds" version. ``` timedelta.days*86400+timedelta.seconds ``` Here's the reverse (using seconds) ``` datetime.timedelta( someSeconds/86400 ) ```
[ 0.5384166240692139, -0.3850318193435669, 0.6271319389343262, 0.12242506444454193, -0.010503129102289677, 0.14207060635089874, 0.009806804358959198, -0.25077736377716064, -0.09923064708709717, -0.22473762929439545, 0.14085207879543304, 0.24252066016197205, -0.1095503568649292, 0.17848140001...
I have two classes: Account and Operator. Account contains a list of Operators. Now, whenever an operator (in the list) receives a message I want to notify Account object to perform some business logic as well. I think of three alternatives on how to achieve this: 1) Hold a reference within Operator to the container ...
[ 0.2527766227722168, 0.11558018624782562, 0.16527581214904785, -0.1026226207613945, -0.0624086819589138, -0.03998320922255516, 0.2223387360572815, -0.23824600875377655, -0.3059524595737457, -0.2675648629665375, 0.19001780450344086, 0.6683459877967834, -0.43576109409332275, -0.19032414257526...
Accounts, and within them, internally, handler operators. This one is a bit limiting because in this case I cannot pass around references to operators. I wonder which approach is the most advantageous from the architectural point of view. How do you usually handle this task? It would be great if you could point out s...
[ 0.4569745361804962, 0.3386971056461334, -0.0223764069378376, 0.2208324670791626, -0.06706877052783966, -0.09790638089179993, 0.2958669662475586, -0.02818399854004383, -0.30874285101890564, -0.3527272939682007, 0.23522058129310608, 0.7862660884857178, -0.2874010503292084, -0.378988295793533...
garbage collects them just fine without any thinking on your part. What possible problem do you have with mutual (birectional) relationships? "...operate only Accounts, and within them, internally, handler operators. This one is a bit limiting because in this case I cannot pass around references to operators. " What...
[ 0.674774706363678, 0.10543946176767349, 0.034893639385700226, 0.40214774012565613, -0.35616767406463623, -0.17471008002758026, 0.09105939418077469, -0.008450688794255257, -0.3299719989299774, -0.2580026388168335, 0.3394901156425476, 0.482108473777771, -0.5468854904174805, 0.087324425578117...
I avoided CodePlex because of it's lack of support for proper SVN and was dissuaded by complaints about short comings. Recently, I have been wanting to port my project from beanstalk over to codeplex because the latter is more social. What problems have you encountered and how good is the support for SVN. How good is ...
[ 0.3921354413032532, 0.254137247800827, 0.28394585847854614, -0.5164917707443237, -0.40230855345726013, 0.04271857440471649, 0.25964173674583435, 0.10932815074920654, -0.38728097081184387, -0.9169541001319885, 0.2685414254665375, 0.466806024312973, -0.2444639503955841, 0.17430253326892853, ...
Two of those projects were migrated from SourceForge. SourceForge's UI has gotten progressively worse and worse, while CodePlex has been listening to its users and has improved the user experience. The main issue I have a problem with is that your commits don't get a consecutive id. The id pool is shared with all the ...
[ 0.7158552408218384, -0.08060789853334427, 0.2734453082084656, -0.08785267174243927, -0.4492296576499939, -0.21492354571819305, 0.3631994426250458, -0.1562267690896988, -0.3953424394130707, -0.8869460821151733, 0.22536295652389526, 0.3783746361732483, -0.2958393394947052, 0.3059503138065338...
things. Other than that, CodePlex is just fine.
[ 0.5230320692062378, -0.32175761461257935, 0.2501715123653412, 0.3708919286727905, 0.07070666551589966, -0.1434301882982254, 0.27941909432411194, 0.4987742006778717, -0.4705964922904968, -0.5195590853691101, -0.18027012050151825, 0.6857970952987671, -0.2888617515563965, 0.06107902154326439,...
I have an input field which when the enter key is pressed (as there is no submit field) I would like javascript to add the @ character infront of each keyword when the form is submitted. ### For example: The text would be entered as... *home, personal, call* But the value that is submitted would be... *@home, @per...
[ 0.23646071553230286, 0.25794717669487, 0.4558483064174652, -0.4102016091346741, -0.2274278998374939, 0.2372763454914093, 0.07759654521942139, -0.5091098546981812, 0.23330426216125488, -0.8702161312103271, 0.011628053151071072, 0.6762465238571167, -0.030009688809514046, 0.04785406216979027,...
the field at spaces and then add an @ in front of each array value, then add that back as the value for the input. Also I recommend listening for the submit event of the form instead of the enter key in the input field. ``` $('#form').submit( function() { var words = $('#inputfield').val().split(' '); var newwo...
[ 0.26465603709220886, -0.020448436960577965, 0.6469470858573914, -0.43253234028816223, -0.21638070046901703, 0.22881926596164703, 0.5147950053215027, -0.7004603147506714, 0.02571658045053482, -0.737553596496582, -0.5039466619491577, 0.805648922920227, -0.24284613132476807, 0.147124573588371...
I am writing an Objective-C class but it uses an API written in C. This is mostly fine as mixing C calls with Objective-C calls causes few problems. However one of the API call requires a call back method (example): ``` success = CFHostSetClient(host, MyCFHostClientCallBack, &context); ``` Where `MyCFHostClientCall...
[ 0.3919318914413452, 0.3056521415710449, 0.45944276452064514, -0.26452019810676575, 0.04999624192714691, -0.087539441883564, 0.4361165761947632, -0.46443280577659607, 0.18569818139076233, -0.4289190471172333, -0.13175296783447266, 0.6488320231437683, -0.5046549439430237, -0.1563247293233871...
a simple example that uses the SQLite API within an iPhone App: ([course site](http://stanford.edu/class/cs193p/cgi-bin/index.php)) > Download the [Zip file (09\_MySQLiteTableView.zip)](http://stanford.edu/class/cs193p/cgi-bin/drupal/system/files/sample_code/09_MySQLiteTableView.zip) C functions need to be declared o...
[ -0.13032513856887817, 0.2508385181427002, 0.32931578159332275, -0.09829721599817276, 0.1328870803117752, 0.07863431423902512, 0.10208655148744583, -0.12166188657283783, -0.05754280835390091, -0.3466636538505554, -0.33725428581237793, 0.58192378282547, -0.37005576491355896, -0.0152440797537...
any Objective-C object to the C function. As in the [sample code](http://stanford.edu/class/cs193p/cgi-bin/drupal/system/files/sample_code/09_MySQLiteTableView.zip), this can be manipulated with normal Objective-C operations. In addition please read this answer: [Mixing C functions in an Objective-C class](https://st...
[ 0.4631263315677643, 0.09766815602779388, -0.00940158311277628, 0.014552820473909378, -0.10575065016746521, 0.04057415947318077, 0.10884612053632736, -0.10818223655223846, -0.2511763572692871, -0.06744050979614258, -0.02570360340178013, 0.4027298092842102, -0.4234561622142792, 0.15899361670...
I am a newbie to Java Web Application development. So far all I have used are plain old servlets, jdbc and jsps. I started to read about all the frameworks and I am totally confused and lost in the swarm of frameworks? So here are some questions I have: 1. Are EJB3 and Hibernate competing technologies or can they be u...
[ 0.27861618995666504, 0.1040104553103447, -0.05664097145199776, -0.10444124788045883, -0.3829646110534668, -0.30741044878959656, 0.2096533477306366, -0.02352214977145195, -0.19047290086746216, -0.8637820482254028, 0.05084705725312233, 0.3378450572490692, -0.23752078413963318, -0.03566243126...
a webapp using JBoss Seam? Is it some or all of the following: Seam (ofcourse) JSF EJB3 Hibernate Spring Inversion of control container 4. Can I use JBoss Seam to develop an application on JBoss Portal? thanks Vikas *1. Are EJB3 and Hibernate competing technologies or can they be used together.* They have competing A...
[ -0.030617136508226395, -0.12942402064800262, 0.2970917224884033, 0.24666376411914825, -0.3454667627811432, -0.17153459787368774, 0.3251616656780243, 0.0065958090126514435, -0.261944442987442, -0.7798852324485779, -0.028614766895771027, 0.3219192922115326, -0.14858178794384003, -0.187070921...
takes care of that?* As I understabnd it, you can do either. *3. What are the typical frameworks I will need to learn if I have to develop a webapp using JBoss Seam? Is it some or all of the following: Seam (ofcourse) JSF EJB3 Hibernate Spring Inversion of control container* JSF - essential for Seam to really make s...
[ 0.12981347739696503, 0.03038197197020054, 0.39092424511909485, 0.19032949209213257, -0.26290011405944824, -0.07236968725919724, 0.32805460691452026, 0.053536634892225266, -0.31897425651550293, -0.6536745429039001, -0.1105676218867302, 0.3830960988998413, -0.021898195147514343, -0.363394439...
else I've tried. EJB3 - if you like, or not, up to you. Heading this way drags you into Java EE which still scares me a little, though it has many benefits. Hibernate - if you like, up to you. JPA entity managers provide the alternative. Spring IoC, er... yeah sure if you like, again its up to you. Seam takes care o...
[ 0.20409466326236725, -0.25025269389152527, 0.008716348558664322, -0.11771727353334427, -0.3005467653274536, 0.09589603543281555, 0.18952254951000214, 0.33823540806770325, -0.5560296773910522, -0.689175009727478, -0.40931975841522217, 0.44166824221611023, 0.15653309226036072, -0.41698950529...
+ Hibernate + Spring to be quite a good combination for creating UIs over jBPM and also on another project for delivering content pages, though that is not really what Seam is for. 4. Can I use JBoss Seam to develop an application on JBoss Portal? Sorry, can't help you there.
[ 0.12342800945043564, -0.4863835275173187, 0.5235361456871033, 0.15925264358520508, -0.6634587645530701, -0.1354590803384781, 0.2830376625061035, 0.05641081929206848, -0.21141621470451355, -0.5347883105278015, -0.014176779426634312, 0.43025103211402893, 0.054162606596946716, -0.176767498254...
I need to construct the URL of a page in a String, to send it an email (as part of an email verification system). If i use the ~ symbol to denote the app root, it is taken literally. The app will be deployed on a server on three different sites (on different ports) and each site can be accessed via 2 different URLs (o...
[ 0.2925019860267639, 0.2588481903076172, 0.7428188323974609, 0.1031249538064003, -0.10031665861606598, 0.12879596650600433, 0.39730995893478394, -0.03750865161418915, -0.2581167221069336, -0.7333189249038696, -0.24682356417179108, 0.21680966019630432, -0.2667572498321533, 0.1823558211326599...
<http://--->. So i had to extract these from request.url. Something like this ``` Uri url=HttpContext.Current.Request.Url; StringBuilder urlString = new StringBuilder(); urlString.Append(url.Scheme); urlString.Append("://"); urlString.Append(url.Authority); urlString.Append("/MyDesiredPath"); ``` Can someone spot a...
[ 0.3243040442466736, -0.030397210270166397, 0.7630866765975952, -0.07306370884180069, 0.03266826644539833, 0.003339932067319751, 0.6145917773246765, -0.3886329233646393, -0.24414807558059692, -0.7522994875907898, -0.027149753645062447, 0.45550015568733215, -0.36991721391677856, 0.3362895846...
Let's consider the two following lines in C# (using framework .NET 3.5) ``` Regex regex = new Regex(@"^((E|e)t )?(M|m)oi (?<NewName>[A-Za-z]\.?\w*((\-|\s)?[A-Za-z]?\w{1,})+)$", RegexOptions.Compiled | RegexOptions.IgnoreCase); Match m = regex.Match("moi aussi jaimerai etre un ordinateur pour pas m'énnerver "); ``` (...
[ 0.10583192855119705, 0.2250809669494629, 0.4423292875289917, -0.2763622999191284, 0.2287324219942093, -0.05103166028857231, 0.5149884223937988, -0.15883982181549072, 0.01329497154802084, -0.5024849772453308, -0.5312725305557251, 0.46777379512786865, -0.3538593053817749, 0.19456073641777039...
a timeout for instance). Does someone know if this is well-known problem with the .NET Regular Expression and if there is an easy way to work around it or do I have to thread these lines and abort them if needed (definitely I wouldn't like to do that). I think you should simply launch the Regex match on a separate thr...
[ 0.4688255488872528, -0.3880651593208313, 0.32709354162216187, 0.4344548285007477, 0.2701506018638611, -0.46218082308769226, 0.4135642349720001, 0.2610607445240021, -0.08644715696573257, -0.6005220413208008, 0.11568348109722137, 0.4806501865386963, -0.4369470477104187, 0.1830397993326187, ...
I have an Infragistics UltraNumericEditor (version 5.3, quite old) control on a form. If I set the .Value field to something less than .MinValue or something more than .MaxValue then I get a System.Exception thrown with the following message: > The 'Value' property cannot be set to a value that is outside the range ...
[ 0.2521337866783142, -0.18197111785411835, 0.566287636756897, 0.050039809197187424, 0.15295138955116272, -0.24442481994628906, 0.37621089816093445, -0.11929483711719513, 0.13261628150939941, -0.6629941463470459, -0.19932107627391815, 0.6388415694236755, -0.17135050892829895, 0.2314746826887...
through our codebase, so rather than check MinValue and MaxValue vs the value we're trying to set *every time*, I thought I'd subclass the control and put the check there: ``` public class OurNumericEditor : Infragistics.Win.UltraWinEditors.UltraNumericEditor { public object Value { get {...
[ 0.2901743948459625, -0.14476993680000305, 0.13373211026191711, 0.20832735300064087, 0.44014155864715576, -0.14116792380809784, 0.13391025364398956, -0.16535969078540802, 0.20191054046154022, -0.46021535992622375, -0.04127884283661842, 0.5886918902397156, -0.2596244215965271, -0.03300873562...
{ // make sure what we're setting isn't outside the min or max // if it is, set value to the min or max instead double min = (double)base.MinValue; double max = (double)base.MaxValue; double attempted = (double)value;
[ 0.2174474149942398, -0.24862371385097504, 0.028493454679846764, -0.38638046383857727, 0.2812603712081909, 0.35624122619628906, 0.4347838759422302, -0.3039455711841583, -0.02727661281824112, -0.33152833580970764, -0.40444549918174744, 0.5428557395935059, -0.11367098242044449, -0.33131259679...
if (attempted > max) base.Value = max; else if (attempted < min) base.Value = min; else base.Value = value; }
[ 0.12554655969142914, -0.2686727046966553, 0.045636244118213654, -0.23103725910186768, 0.32223963737487793, 0.30150407552719116, 0.6939018368721008, -0.34181326627731323, 0.07461194694042206, -0.11139880865812302, -0.3104729652404785, 0.4958972632884979, -0.07053203135728836, -0.12544642388...
} } ``` Clearly this works fine when the type of value, MinValue and MaxValue can be casted to doubles, but I would expect an InvalidCastException when that's not possible. Now I may just be having a blonde moment here but I think it should be possible to write a method that makes use of generics to do the compariso...
[ 0.6139698028564453, 0.07329495251178741, -0.09306858479976654, 0.10950162261724472, -0.1530502289533615, -0.11575924605131149, 0.3102014362812042, 0.22064223885536194, -0.20959320664405823, -0.5323663353919983, 0.34600478410720825, 0.7691828012466431, -0.37713804841041565, 0.34761932492256...
numeric data to `double` values: ``` double min = Convert.ToDouble(base.MinValue); double max = Convert.ToDouble(base.MaxValue); double attempted = Convert.ToDouble(value); ``` This has the benefit that it also handles cases with mixed data types, like when `MinValue` is an `int` and `value` is a `double`.
[ 0.0712127536535263, -0.22271482646465302, -0.10615409165620804, -0.24063941836357117, -0.1295926421880722, 0.3351997435092926, 0.16801205277442932, -0.36975744366645813, 0.1298275589942932, -0.2240617722272873, -0.1127060204744339, 0.3813866674900055, -0.21448932588100433, -0.1943365782499...
I want to select the top N rows of a table, ranked by how high the number in one of their columns is. I already have: `SELECT * FROM movie ORDER BY worldwide_gross DESC;` How can I get the first twenty? If it makes any difference I'm using MySQL. Cheers! Definition: Limit is used to limit your MySQL query results ...
[ 0.33060622215270996, -0.09067805111408234, 0.5401446223258972, 0.08384224772453308, -0.1025119498372078, 0.12219411879777908, -0.2018003761768341, -0.1207619160413742, -0.2132931649684906, -0.34145742654800415, 0.008291169069707394, 0.47867512702941895, -0.027908695861697197, 0.25707969069...
is the starting point (remember the first record is 0) and Y is the duration (how many records to display). Also Known As: Range Results Examples: ``` SELECT * FROM `your_table` LIMIT 0, 10 ``` This will display the first 10 results from the database. ``` SELECT * FROM `your_table` LIMIT 5, 5 ``` This will show...
[ 0.2887784540653229, -0.0375761017203331, 0.5372238755226135, -0.1520361453294754, 0.3128833770751953, -0.11518978327512741, -0.20473593473434448, -0.354406476020813, -0.197188600897789, -0.10187984257936478, -0.1358480006456375, 0.6889234185218811, 0.11700502783060074, 0.02752883918583393,...