text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I've tried figuring out this problem for the last 2 days with no luck. I'm simply trying to create an annotation based JUnit test using the spring framework along with hibernate. My IDE is netbeans 6.5 and I'm using hibernate 3, spring 2.5.5 and JUnit 4.4. Here's the error I'm getting: ``` Testcase: testFindContacts...
[ -0.10968109220266342, 0.21156492829322815, 0.3569636642932892, -0.07411409914493561, 0.03836408257484436, -0.11195138096809387, 0.7317278981208801, -0.5744087100028992, -0.03882410749793053, -0.6026470065116882, -0.01807633973658085, 0.639815628528595, -0.36158835887908936, -0.018697369843...
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:93) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(Sprin...
[ -0.2239929586648941, 0.08271583914756775, 0.23459582030773163, -0.2374287098646164, 0.04745516553521156, 0.20984195172786713, 0.6506474018096924, -0.44309231638908386, -0.1753816455602646, -0.6615810990333557, -0.39116331934928894, 0.4228013753890991, -0.5099627375602722, 0.211640760302543...
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(...
[ -0.4602956175804138, 0.14329874515533447, 0.18069930374622345, -0.4532955586910248, -0.019634583964943886, 0.40051132440567017, 0.8196457624435425, -0.03114408813416958, -0.6043949723243713, -0.470464289188385, -0.42182695865631104, 0.08399196714162827, -0.47490188479423523, 0.293647348880...
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47) at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30) at net.sf.cglib.core.DefaultGeneratorStrategy.genera...
[ -0.2316349744796753, 0.08633892238140106, 0.38518887758255005, -0.24128912389278412, -0.019472604617476463, 0.525547981262207, 0.5223495364189148, -0.49705439805984497, -0.30988380312919617, -0.9439817070960999, -0.4589427709579468, 0.35974061489105225, -0.4002763032913208, -0.087064772844...
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) at org.hibernat...
[ -0.2893531620502472, 0.2026202529668808, 0.6315174698829651, -0.34479421377182007, -0.1333460807800293, 0.6219083070755005, 0.5307408571243286, -0.34444209933280945, -0.2374611645936966, -0.7941765189170837, -0.41666659712791443, 0.19521254301071167, -0.28426289558410645, 0.035406671464443...
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterProp...
[ -0.4802124500274658, -0.025935621932148933, 0.1187051311135292, -0.49695703387260437, 0.004699534270912409, 0.2082483321428299, 0.556888222694397, -0.348723441362381, -0.29211729764938354, -0.5919471383094788, -0.36053335666656494, 0.3546379804611206, -0.5137919783592224, 0.121514484286308...
time than is on your runtime classpath.
[ -0.05094968527555466, -0.6265579462051392, 0.2376287281513214, 0.27772507071495056, 0.4516213834285736, -0.23261618614196777, 0.019219079986214638, 0.27774882316589355, -0.1445673555135727, -1.419658899307251, 0.3389042913913727, 0.195207417011261, 0.14209817349910736, 0.3755723834037781, ...
I don't think this is possible with just regular expressions, but I'm not an expert so i thought it was worth asking. I'm trying to do a massive search and replace of C# code, using .NET regex. What I want to do is find a line of code where a specific function is called on a variable that is of type DateTime. e.g: `...
[ 0.2933962047100067, 0.06827108561992645, 0.167618528008461, -0.0931246280670166, -0.22704701125621796, 0.022501152008771896, 0.05810748413205147, -0.23820184171199799, -0.24302831292152405, -0.33623844385147095, -0.07727795839309692, 0.452601820230484, -0.5759853720664978, 0.14533090591430...
if I try to match the all the text between the variable declaration and the function call like this: ``` DateTime (?<1>[^;]+).+?axRecord.set.+?\k<1> ``` it will find the first match - first based on first variable declared - but then it can't find any other matches, because the code is laid out like this: ``` DateT...
[ 0.054363809525966644, -0.21722611784934998, 0.4797421395778656, -0.293394535779953, 0.0020175680983811617, -0.21688280999660492, 0.13962452113628387, -0.3690868318080902, 0.06387391686439514, -0.5463547110557556, -0.2945195734500885, 0.8286234736442566, -0.26089605689048767, -0.07048300653...
a particular order: the order in which the variables are declared. What you want to do is match a likely-looking method call first, then use the lookbehind to verify the type of the variable. I just made a rough guess at the part that matches the method call. Like the others have said, whatever regex you use is going ...
[ 0.2940589487552643, -0.19425523281097412, -0.05128997191786766, 0.1527882069349289, -0.1211230605840683, -0.05347692221403122, -0.07612993568181992, -0.2284737229347229, -0.11814434081315994, -0.2262399047613144, 0.001910911058075726, 0.6612133979797363, -0.4429517388343811, 0.017070803791...
Is there a way to restrict certain tables from the mysqldump command? For example, I'd use the following syntax to dump *only* `table1` and `table2`: ``` mysqldump -u username -p database table1 table2 > database.sql ``` But is there a similar way to dump all the tables *except* table1 and table2? I haven't found a...
[ -0.051267240196466446, -0.03334544971585274, 0.4647400975227356, 0.0011885972926393151, 0.06463685631752014, -0.16036918759346008, 0.2774559557437897, -0.04240305349230766, -0.7505853176116943, -0.5366266965866089, -0.29110634326934814, 0.4547733664512634, -0.6506974101066589, -0.068906649...
times, this is documented to work since [at least version 5.0](https://web.archive.org/web/20151222055612/http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html#option_mysqldump_ignore-table). If you want an alternative way to ignore multiple tables you can use a script like this: ``` #!/bin/bash PASSWORD=XXXXXX HOST=...
[ 0.28174954652786255, 0.09521670639514923, 0.3242846429347992, -0.26340603828430176, -0.0266577135771513, -0.36380890011787415, 0.6029410362243652, -0.5548509955406189, -0.5523935556411743, -0.36290889978408813, -0.030377672985196114, 0.43246862292289734, -0.6339284777641296, -0.06682115793...
I was able to embed a video that auto plays on my local machine. When I upload my solution onto my staging server I get nothing. It's weird, everything is the same in the code. I am running Vista on my local machine and Windows Server 2003 on my server. Does someone with a little more experience in this feel like...
[ 0.18239127099514008, 0.25693055987358093, 0.6861567497253418, -0.23839591443538666, -0.3340561091899872, -0.0677700936794281, 0.3249918520450592, -0.15698765218257904, -0.38715142011642456, -0.43093445897102356, 0.1266164481639862, 0.6704840064048767, 0.00911780260503292, 0.020650923252105...
"flv-application/octet-stream" [FLV Mime-Type](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19439&sliceId=2 "FLV Mime-Type")
[ 0.03891771286725998, -0.05775504559278488, 0.5054156184196472, -0.24640603363513947, -0.11980602145195007, 0.19542650878429413, 0.3004995882511139, -0.24299220740795135, -0.15475913882255554, -0.08878403902053833, -0.6778357625007629, 0.6893373727798462, -0.32489150762557983, -0.2670715153...
I'm creating a small code plugin which allows you to do some things with arrays. I do not wish to add the functions to the array object using a prototype construction, what I want is that people can do something like: ``` arrayFunction( [1, 2, 3] ).someSpecialArrayFunction(); ``` Thus leaving the normal array object...
[ 0.09220248460769653, -0.1479741483926773, 0.2217768430709839, -0.3541785478591919, -0.30989617109298706, -0.01854872703552246, 0.29166942834854126, -0.2281120866537094, 0.027304694056510925, -0.48931270837783813, -0.024450119584798813, 0.4755019247531891, -0.5129186511039734, 0.04186247289...
//should I return something here? }, someSpecialArrayFunction: function(){ //Super cool custom stuff here. } } ``` However this does not work (obviously). What should happen in the init function()? The error right now is that when I try: ``` arrayFunction(array).someSpecialArrayFunction(); ```...
[ 0.0645507276058197, -0.13170266151428223, 0.26278719305992126, 0.05706700310111046, -0.22494804859161377, -0.16151003539562225, 0.4153057038784027, 0.2715342938899994, -0.0824040025472641, -0.4871470630168915, 0.04583358019590378, 0.6947969198226929, -0.24314028024673462, 0.042032137513160...
you do that? Or simply: ``` var arrayFunction = function(array) { var someSpecialArrayFunction = function() { // do something with array }; return { someSpecialArrayFunction: someSpecialArrayFunction } }; arrayFunction( [1, 2, 3] ).someSpecialArrayFunction(); ``` Although be careful w...
[ 0.10205329209566116, -0.2410067766904831, 0.05102591961622238, -0.08726363629102707, -0.027710163965821266, -0.16223730146884918, 0.39539939165115356, -0.2628992795944214, -0.12543803453445435, -0.3888704776763916, -0.052073895931243896, 0.6125768423080444, -0.3847959637641907, -0.03917048...
I want to make a horizontal list in my application, which will display images. While this is quite trivial, I want the image to open a flex alert box (the built in one) and display some text. For example, I will have an image of the .NET logo and I will enter some text somewhere (like in a collection), and this text wi...
[ 0.715740978717804, -0.3331298232078552, 0.3884013593196869, 0.17673352360725403, -0.05581141263246536, -0.17169763147830963, 0.14823715388774872, -0.11041180789470673, -0.5289415121078491, -0.9012737274169922, 0.15576143562793732, 0.3568905293941498, -0.10592349618673325, 0.035253193229436...
item in a list, there are a number of events available to you: itemClick, itemDoubleClick, change: ``` <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="this_initialize()" creationComplete="this_creationComplete()"> <mx:Script> <...
[ -0.04616868868470192, -0.2776525318622589, 0.4923000633716583, 0.039319392293691635, -0.2385782152414322, 0.16653692722320557, 0.028035517781972885, -0.5043048858642578, -0.4376831650733948, -0.4023788571357727, -0.6543024182319641, 0.20544007420539856, -0.5200130343437195, 0.0325679630041...
private function this_initialize():void { images = new Array(); images.push("myimage1.jpg"); images.push("myimage2.jpg"); images.push("myimage3.jpg");
[ -0.06851686537265778, -0.36906886100769043, 0.41397279500961304, -0.3189668357372284, 0.021320875734090805, 0.1460038423538208, 0.15915228426456451, -0.24112151563167572, -0.09370481222867966, -0.5809375047683716, -0.4236706495285034, 0.2978023588657379, -0.7633215188980103, 0.137365832924...
images.push("myimage4.jpg"); images.push("myimage5.jpg"); } private function this_creationComplete():void { } private function list_itemClick(event:ListEvent):void {
[ 0.19283616542816162, -0.4378485083580017, 0.38772153854370117, -0.12011563777923584, -0.0963222086429596, -0.06472688168287277, 0.06053205579519272, -0.24524791538715363, -0.49260076880455017, -0.46947380900382996, -0.4390673339366913, 0.43765896558761597, -0.45660078525543213, 0.241360485...
Alert.show(event.currentTarget.selectedItem as String); } ]]> </mx:Script> <mx:HorizontalList id="list" dataProvider="{images}" itemClick="list_itemClick(event)"> <mx:itemRenderer> <mx:Component> <mx:Image source="{data}" /> </mx:Component>
[ 0.06546730548143387, -0.5030280351638794, 0.6477206945419312, -0.09134534746408463, -0.11696837097406387, 0.006106940563768148, 0.1387731283903122, -0.398620069026947, -0.43004366755485535, -0.4965294301509857, -0.24351395666599274, 0.5473718047142029, -0.46855396032333374, -0.299921303987...
</mx:itemRenderer> </mx:HorizontalList> </mx:Application> ``` Is that what you're asking? You need only hook into one of the list events (see the Flex docs for more info) to retrieve which item was selected. Make sense?
[ 0.42436733841896057, -0.2887879014015198, 0.2885749340057373, 0.17734012007713318, 0.12695230543613434, -0.049606237560510635, -0.048563722521066666, -0.23896268010139465, -0.3665195107460022, -0.48447567224502563, -0.258651465177536, 0.48283112049102783, -0.543825089931488, -0.21460586786...
I'm setting up a maven build, and the destination server needs to be specified on the command line as a property (which is then used to select the appropriate profile), eg ``` mvn -Denv=test ``` I'd like the build to fail if the property's not set - is that possible? Yes, I'm a Maven newbie. **EDIT:** I've seen [t...
[ 0.5099912285804749, 0.2243724763393402, 0.5432383418083191, -0.33945268392562866, 0.3654957711696625, -0.2802312672138214, 0.5074227452278137, -0.36997121572494507, -0.05562945455312729, -0.6793085336685181, -0.20466867089271545, 0.4232434034347534, 0.01412044558674097, 0.08228336274623871...
the property.
[ 0.06405101716518402, 0.1411188542842865, 0.0637316033244133, -0.11130737513303757, 0.25116872787475586, -0.4696831703186035, -0.11174554377794266, -0.002551759360358119, -0.07222917675971985, -0.1410026103258133, -0.006209398154169321, 0.10570550709962845, 0.005920015275478363, 0.408696740...
I recently wrote a small tool to generate a class for each tier I hand write for the boring "forms over data" work where I spend almost 90% of my time (depressing I know) ... more on this as the economy improves ;) My question is this - will using this tool instead of hand typing all this code from day to day actually...
[ 0.5898985862731934, 0.23891812562942505, 0.09309984743595123, -0.06702166050672531, -0.07163427025079727, 0.125773087143898, 0.4340306222438812, 0.040777191519737244, -0.31631502509117126, -0.8749563694000244, 0.5111916661262512, 0.24816568195819855, -0.06587812304496765, 0.334236651659011...
feels like I might lose my edge ... am I wrong? If the tool can spit the code out without thought, then it probably saves you lots of thoughtless typing. Writing the tool in the first place requires thinking, so I'd guess you'd be more "on the edge" maintaining and writing the tool.
[ 0.3712104558944702, 0.24791748821735382, 0.017636412754654884, 0.2324974089860916, -0.06158103421330452, 0.017874032258987427, 0.4138655960559845, -0.01204069796949625, 0.015772761777043343, -0.4109402000904083, 0.3246046006679535, 0.6097850203514099, 0.3928699791431427, -0.035983014851808...
I keep getting stuck conceptually on deciding an Exception-handling structure for my project. Suppose you have, as an example: ``` public abstract class Data { public abstract String read(); } ``` And two subclasses FileData, which reads your data from some specified file, and StaticData, which just returns some...
[ 0.3622038662433624, 0.05780327692627907, -0.18092107772827148, 0.03976387158036232, -0.1067754253745079, -0.19797664880752563, 0.10972576588392258, 0.0349145270884037, -0.01914905570447445, -0.2933228611946106, 0.04774395748972893, 0.31777438521385193, -0.3478647768497467, 0.17042259871959...
read() method. Why? Because Data and the complicated machinery using it knows nothing about files, it just knows about Data. Moreover, there may be other Data subclasses (and more of them) that never throw exceptions and deliver data flawlessly. On the other hand, the IOException is necessary, for if the disk is unrea...
[ 0.3038490116596222, 0.15699703991413116, -0.1342848390340805, 0.4580730199813843, -0.017982928082346916, -0.30630189180374146, 0.2527538239955902, 0.052302341908216476, -0.1506231278181076, -0.49990370869636536, -0.05787495896220207, 0.6094337701797485, -0.30242300033569336, 0.053462333977...
why since java 1.4 Throwable supports exception chaining. There is no point to throw FileNotFoundException for a service that uses a Database for instance, or for a service that is "store" agnostic. It could be like this: ``` public abstract class Data { public abstract String read() throws DataUnavailableExceptio...
[ 0.18519975244998932, -0.13362495601177216, -0.0948457270860672, -0.2309572547674179, 0.06234978511929512, -0.1901482492685318, 0.45391491055488586, -0.377905011177063, -0.1490539014339447, -0.5067046284675598, -0.1864985227584839, 0.4616187512874603, -0.5141987204551697, 0.2307369560003280...
} try { .... } catch( IOException ioe ) { throw new DataUnavailableException( ioe ); } finally { ... } } class DataMemory extends Data {
[ -0.05138254165649414, -0.5643883347511292, 0.23172396421432495, -0.028446165844798088, 0.2141822725534439, 0.06571236252784729, 0.24123245477676392, -0.15645170211791992, 0.06572190672159195, -0.5240862965583801, -0.1895408034324646, 0.5958700776100159, -0.24610745906829834, -0.04789745807...
public String read() { // Everything is performed in memory. No exception expected. } } class DataWebService extends Data { public string read() throws DataUnavailableException { // connect to some internet service try { ... } catch( UnknownHostExcep...
[ 0.16792522370815277, -0.36820998787879944, -0.05735771730542183, 0.16021396219730377, 0.31847524642944336, -0.08043824881315231, 0.37590521574020386, 0.026540743187069893, -0.03936821594834328, -0.551293134689331, -0.22167496383190155, 0.39209622144699097, -0.4544219672679901, 0.1833295673...
uhe ) { throw new DataUnavailableException( uhe ); } } } ``` Bear in mind that if you program with inheritance in mind, you should design carefully for the specific scenarios and test implementations with those scenarios. Obviously if it is harder to code an general purpose library, be...
[ -0.005850580986589193, 0.01805202290415764, 0.15940120816230774, 0.18930646777153015, 0.0914832204580307, -0.07422412186861038, 0.11956718564033508, -0.2588300406932831, -0.16519910097122192, -0.7703359723091125, -0.20230159163475037, 0.5541500449180603, -0.39594849944114685, 0.21300831437...
exception be Runtime or Checked? It depends, the general rule is to throw Runtime for programming errors and checked for recoverable conditions. If the exception could be avoided by programming correctly ( such as NullPointerException or IndexOutOfBounds ) use Runtime If the exception is due to some external resource...
[ 0.43461528420448303, -0.17890110611915588, 0.046688053756952286, 0.1642477661371231, -0.036704450845718384, -0.2930171489715576, 0.46035850048065186, -0.08742678910493851, -0.12305791676044464, -0.629713237285614, -0.04988109692931175, 0.6571124792098999, -0.28625959157943726, -0.030115261...
be done, you could use a RuntimeException. For instance, you're supposed to write to a file, but the file was deleted and you cannot re-create it or re-try then the program should fail ( there is nothing you can do about it ) most likely with a Runtime. See these two items from Effective Java: * Use checked exception...
[ 0.4150254428386688, 0.16276146471500397, -0.1685187667608261, 0.05807558447122574, 0.13613896071910858, -0.22122345864772797, 0.6470323801040649, -0.2648559808731079, -0.2124822437763214, -0.8133906126022339, -0.08728934824466705, 0.7421596646308899, -0.07569845020771027, -0.19627438485622...
update: I know there is no one best way to do everything. Sorry for not saying that right off. In the context of the data-access tutorials, if you had to do the project he did in that tutorial, would you do what he did or would use use MVC, if you had to choose one of them? **Update:** Is MVC the more appropriate way ...
[ 0.4138381779193878, -0.21303462982177734, 0.10529211163520813, 0.20100101828575134, 0.07989877462387085, -0.22233803570270538, -0.013767377473413944, 0.09506027400493622, -0.32578733563423157, -0.44568485021591187, -0.060257747769355774, 0.4779788851737976, -0.24264653027057648, -0.2029296...
around for a very long time, and from what I found out it had. Then Microsoft started putting MVC into the .net framework. I ask because I don't know how to design things very well and thought I was doing well to emulate what's on the asp.net site with Scott Mitchell's tutorial. I thought that creating abstract layers...
[ 0.7088078260421753, 0.27792954444885254, 0.19589492678642273, -0.23509342968463898, -0.13247337937355042, -0.12011873722076416, -0.06901543587446213, 0.4973311424255371, -0.3292093873023987, -0.4481249153614044, 0.2924607992172241, 0.42219769954681396, -0.28931736946105957, 0.3364395499229...
missing something. Is MVC the correct way to start doing things in large projects, specifically I mean MVC and ASP.NET, but could just as well mean PHP and one of their MVC frameworks. I'd like to settle on a standard way of doing things...for now anyway. And, out of curiosity, why did Microsoft only now start doing...
[ 0.3003322184085846, 0.033036258071660995, 0.004127915017306805, 0.19429968297481537, -0.15850603580474854, -0.4765724837779999, 0.1565089225769043, 0.27735909819602966, -0.4648522138595581, -0.2466283142566681, 0.150252565741539, 0.5642480254173279, -0.31555697321891785, -0.024388046935200...
separate but unsure the best way to do it. I was using the asp.net tutorials. It worked fine. Then I found out the rest of the world, as I saw it anyway, was using MVC. Then Microsoft started developing MVC, so to me the other method seems obsolete and the wrong way to do things. No, it's not the only best way to do th...
[ 0.485446035861969, 0.1104423999786377, 0.1376805603504181, 0.25896933674812317, 0.06695625185966492, -0.08489703387022018, 0.13754487037658691, -0.11995290219783783, -0.34463638067245483, -0.2279474139213562, 0.105494424700737, 0.42811909317970276, -0.588316023349762, 0.0344344787299633, ...
a different approach. Unfortunately, some people think if they see a pattern, they should use it. It's just not true. Design patterns don't inherently make your application better. They are not an end. They are a means to an end (which is simplicity). So you should use them only if they are worth it. In my opinion, o...
[ 0.753929078578949, 0.1765439808368683, -0.07336024194955826, 0.07897883653640747, -0.255471408367157, -0.1003493145108223, 0.4511224329471588, -0.2877615988254547, -0.2628178298473358, -0.7261347770690918, 0.21974943578243256, 0.5665834546089172, -0.554560661315918, -0.07722392678260803, ...
have fine grained control over the HTML. Web Forms make Web development very easy but they have particularly a couple things that are good but sometimes are problematic. The first of which is `ViewState` and the second is complex `WebControl` architecture. Don't get me wrong. Those are signs of brilliance of ASP.NET. I...
[ -0.014503433369100094, 0.04699861630797386, 0.1717589944601059, 0.37813031673431396, -0.3522489666938782, -0.21023404598236084, 0.07312154769897461, -0.039951566606760025, -0.33424219489097595, -1.0173518657684326, -0.0547177828848362, 0.6074225902557373, 0.09920728206634521, -0.1753676831...
also want to make server side code maintainable in large projects. In those areas, ASP.NET MVC really shines. But I think ASP.NET Web Forms will remain a great technology where it's more applicable. After all, as I said regarding design patterns in general, you should carefully evaluate your design to see which one bet...
[ 0.5287522077560425, -0.07914379239082336, 0.43412142992019653, 0.3535729944705963, -0.276285856962204, -0.11049531400203705, -0.1520860642194748, -0.031697820872068405, -0.5255572199821472, -0.7798592448234558, -0.04181869328022003, 0.6418575644493103, -0.08102720230817795, -0.139438226819...
a table directly in a database. They have complex layout. StackOverflow is a great example of this. It is certainly data driven, but ASP.NET MVC better suits it.
[ -0.11233431100845337, -0.03316911682486534, 0.3032458424568176, 0.18465085327625275, -0.10698704421520233, -0.33095255494117737, -0.31781908869743347, -0.1393616944551468, -0.6041909456253052, -0.6375719308853149, -0.4417724013328552, 0.12231874465942383, -0.26319563388824463, 0.0950196608...
I'm writing a javascript based photo gallery with a horizontally scrollable thumbnail bar. [>> My current work-in-progress is here <<](http://www.sharehost.co.uk/gallerytest/) I would like the thumbnail bar to stop scrolling when it gets to the last thumbnail. To do this I need to find the total width of the contents...
[ 0.41330742835998535, 0.07710333168506622, 0.8216808438301086, -0.023496881127357483, -0.2606000006198883, -0.0627165362238884, 0.13674144446849823, -0.2004276067018509, -0.15014216303825378, -0.8945823907852173, 0.10862116515636444, 0.6370787024497986, 0.05291806161403656, 0.08417166024446...
FireFox, Safari, Opera, etc. The value 1540 is the correct one for my purposes, Can anyone tell me how to obtain this value in FireFox, etc. Maybe you're just referencing the wrong element. ``` document.getElementById('thumb_window').scrollWidth ``` is giving me 1540 on that page in both IE6 and firefox 2. Is that ...
[ 0.25092238187789917, -0.01843360811471939, 0.5947557687759399, 0.004602731671184301, -0.05672125145792961, -0.5164651274681091, 0.0331200435757637, -0.15276892483234406, -0.2194024920463562, -0.5487874746322632, -0.14108943939208984, 1.0138674974441528, -0.41930291056632996, -0.09107723832...
I'm getting "This page contains bothe Secure and Non secure items"message in IE. When I commented the following piece of code from dojo.js.uncompressed.js file, the message is gone. ``` if(dojo.isIE){ if(!dojo.config.afterOnLoad){ document.write('<scr'+'ipt defer src="//:" ' + 'onreadystatechange="if(this....
[ 0.0007292956579476595, 0.02642468735575676, 0.8980606198310852, -0.2508903443813324, 0.05661679431796074, -0.3509925603866577, 0.33358481526374817, -0.29522234201431274, -0.0914541482925415, -0.6820165514945984, -0.42915478348731995, 0.4542599022388458, -0.23198489844799042, 0.270757645368...
giving me 1540 on that page in both IE6 and firefox 2. Is that what you're looking for? BTW in IE6 the thumbnails extend way past the right scroller.
[ 0.25171804428100586, -0.023393502458930016, 0.62166827917099, -0.026774996891617775, -0.25871700048446655, -0.2817220985889435, 0.18519747257232666, 0.10888621211051941, -0.12352658808231354, -0.46078699827194214, 0.08345411717891693, 0.6767563819885254, 0.055391255766153336, -0.0103508457...
I am about to start a personal project using python and I will be using it on both Linux(Fedora) and Windows(Vista), Although I might as well make it work on a mac while im at it. I have found an API for the GUI that will work on all 3. The reason I am asking is because I have always heard of small differences that are...
[ 0.6494362950325012, 0.3027724623680115, 0.2669236958026886, -0.09556761384010315, 0.06331098824739456, -0.04946855455636978, 0.21034720540046692, 0.24772071838378906, -0.15115517377853394, -0.9017351269721985, 0.14471714198589325, 0.5900452136993408, -0.04744290933012962, -0.11122346669435...
points to the user's home/profile directory. * Avoid using things like unix-domain sockets, fifos, and other POSIX-specific stuff. More specific stuff: * If you're using wxPython, note that there may be differences in things like which thread certain events are generated in. Don't assume that events are generated in ...
[ 0.15948770940303802, -0.22278723120689392, 0.22303959727287292, 0.0787000060081482, -0.09430508315563202, -0.17168477177619934, 0.1451907753944397, 0.22779063880443573, -0.3687909245491028, -1.0600147247314453, 0.03183230385184288, 0.49807900190353394, -0.35884547233581543, 0.0718199163675...
An upcoming project of mine is considering a design that involves (what I'm calling) "abstract entity references". It's quite a departure from a more common data model design, but it may be necessary to achieve the flexibility we want. I'm wondering if other architects have experience with systems like this and where t...
[ 0.41594409942626953, 0.31224286556243896, 0.05984695628285408, 0.19430938363075256, -0.059068839997053146, -0.49595171213150024, 0.08521801978349686, -0.25509724020957947, -0.4299560785293579, -0.09103729575872421, 0.028121670708060265, 0.2147662490606308, -0.400317519903183, 0.38045325875...
Y, which has users Charlie, Dave, and Eve. * User Frank may enter data for [critical business object] X, and also the [critical business objects] in [critical business object group] U. * User George is not a member of Company T but may view the reports for Company T. The idea is that we have a lot of different securab...
[ 0.39985397458076477, 0.22101321816444397, 0.46991610527038574, 0.22880101203918457, -0.11528390645980835, 0.16947931051254272, 0.04286228120326996, 0.2801417112350464, -0.42926228046417236, -0.08735333383083344, -0.423340380191803, 0.12249142676591873, -0.16635331511497498, 0.0741999149322...
User * Company * User/Company Cross-Reference * UserGroup * User/UserGroup Cross-Reference * CBO ("Critical Business Object") * User/CBO Cross-Reference * CBOGroup * User/CBOGroup Cross-Reference * CBO/CBOGroup Cross-Reference * ReportAccess, which is a cross-reference between User and Company specifically for access t...
[ 0.3949110209941864, 0.8981742262840271, 0.4236076772212982, -0.07793870568275452, 0.09780874103307724, -0.0445062518119812, -0.3364218771457672, -0.0384032316505909, -0.2429617941379547, -0.4403064548969269, 0.1691003441810608, 0.10409443080425262, -0.23770520091056824, 0.48871102929115295...
of an Entity superclass). Then there's two additional tables that reference Entity \* Group, which is also an Entity "subclass". \* EntityRelation, which is a relation between two entities of any type (including Group). This will probably also have some sort of "Relationship Type" field to explain/qualify the relati...
[ -0.027529321610927582, 0.16277454793453217, 0.44258928298950195, 0.2652760148048401, 0.09966512024402618, -0.15609055757522583, -0.16381436586380005, -0.048539165407419205, -0.25993943214416504, -0.42319193482398987, -0.16117966175079346, 0.3819795846939087, -0.16251949965953827, 0.3189161...
however, whether this might not work very well in practice. The relationships between entities would become very complex and might be very hard for people (users and developers alike) to understand them. Also, they'd be very recursive; this would make things more difficult for our SQL-dependent report writing staff. D...
[ 0.3314760625362396, 0.18239833414554596, -0.14588114619255066, 0.4266863167285919, 0.16052250564098358, -0.19583699107170105, 0.17986370623111725, -0.05439629405736923, -0.3053075671195984, -0.45303842425346375, 0.2503235936164856, 0.6361965537071228, -0.13816674053668976, 0.09946339577436...
accurately, instead of trying to be clever. Your clever design may result in fewer tables (though not by an order of magnitude, actually), however you're trade-off is a lot more application code to manage it. For example, you already know that it's going to cause confusion for users and for report designers. Another w...
[ 0.4148993194103241, 0.483799010515213, 0.040084220468997955, 0.2524912357330322, -0.0400460846722126, -0.1841292530298233, 0.4533281624317169, -0.07248342782258987, -0.43919000029563904, -0.35517993569374084, 0.008583348244428635, 0.49144506454467773, -0.27423954010009766, 0.06614447385072...
IsMemberOf Company1` and `Bob IsMemberOf Company2`? You have to write application code to validate the data before inserting it, and after fetching it (because your code can never be sure another part of the code hasn't introduced a data integrity bug). You may also need to write application code to perform quality co...
[ 0.15514305233955383, 0.4127587676048279, 0.24256500601768494, -0.13079522550106049, 0.2904733717441559, -0.4342188239097595, 0.22741109132766724, -0.10652755945920944, -0.39813563227653503, -0.3130911588668823, -0.2490932047367096, 0.4123289883136749, -0.2380143254995346, 0.008481407538056...
if `Bob CanViewReportsOf Company1`, then should he be able to view reports of any UserGroup or CBO that is a member of that company? Or do you need to enter a separate row for every entity's reports Bob can read? These are policy problems, that will exist regardless of which design you use. --- To reply to your comme...
[ 0.6811810731887817, 0.5532091856002808, 0.24453888833522797, 0.045722924172878265, 0.09883768856525421, -0.41101711988449097, 0.3430655896663666, 0.04576046019792557, -0.430622398853302, -0.4436753988265991, 0.09473320096731186, 0.39969220757484436, -0.3294207751750946, 0.11011181771755219...
client who hired me would have used their money more effectively to hire one or two full-time administrative assistants to track their projects using paper and pencil. New exception cases that took me weeks to implement in software would have taken minutes to describe to the AA. Automation is harder than doing things ...
[ 0.4124179780483246, 0.23648756742477417, 0.10705816745758057, 0.022702375426888466, 0.3406156003475189, 0.16603802144527435, 0.1273563802242279, -0.40343210101127625, -0.3921322822570801, -0.39963498711586, 0.19617320597171783, 0.9500517249107361, -0.0457315668463707, -0.4303602874279022, ...
So, I've been writing a bunch of ruby gems recently, and one thing I would find convenient is to include the current version (as specified in the gemspec) in the `rdoc`-generated documentation for my libraries, and in the `OptionParser`-generated `--help` sections used by my scripts (which I'm distributing via gem). An...
[ 0.3260378837585449, 0.28353992104530334, 0.19592033326625824, -0.08373184502124786, 0.23208460211753845, -0.20552311837673187, 0.12834520637989044, 0.12982560694217682, -0.313114196062088, -0.5921325087547302, -0.2307683676481247, 0.7095451951026917, -0.06247520074248314, -0.09473844617605...
it multiple places at once - just in my gemspec. Currently I generate my gemspecs by hand, I haven't jumped on the Rake train yet. If I can't do what I want directly with only what rubygems gives me, would rake or another tool allow me to do this? There isn't a way, I don't think, because Rubygems is just an installat...
[ 0.4397033452987671, 0.07577934116125107, 0.20181821286678314, 0.00407362962141633, -0.15595278143882751, -0.1215963140130043, 0.31114837527275085, -0.10265466570854187, -0.19697925448417664, -0.4531261920928955, 0.1817837506532669, 0.743726909160614, -0.023108121007680893, 0.20227494835853...
For the following SQL Server datatypes, what would be the corresponding datatype in C#? **Exact Numerics** ``` bigint numeric bit smallint decimal smallmoney int tinyint money ``` --- **Approximate Numerics** ``` float real ``` --- **Date and Time** ``` date datetimeoffset datetime2 smalldatetime datetime tim...
[ -0.6021751165390015, 0.13574297726154327, 0.6373111009597778, -0.08285112679004669, -0.1736375242471695, 0.3012971878051758, -0.17682819068431854, -0.2280736118555069, -0.40722301602363586, -0.4188959300518036, 0.08727174252271652, 0.3997158110141754, -0.07777626067399979, 0.19276596605777...
type (SQL Server) | CLR data type (.NET Framework) | | --- | --- | --- | | varbinary | SqlBytes, SqlBinary | Byte[] | | binary | SqlBytes, SqlBinary | Byte[] | | varbinary(1), binary(1) | SqlBytes, SqlBinary | byte, Byte[] | | image | None | None | | varchar | None | None | | char | None | None | | nvarchar(1), nchar(1...
[ -0.23537452518939972, 0.2276216298341751, 0.7176689505577087, -0.012456448748707771, -0.48635706305503845, 0.021623259410262108, -0.02271927334368229, -0.1893526166677475, -0.12237820029258728, -0.3443737328052521, -0.14853425323963165, 0.37681442499160767, -0.6830929517745972, 0.326717257...
| | rowversion | None | Byte[] | | bit | SqlBoolean | Boolean | | tinyint | SqlByte | Byte | | smallint | SqlInt16 | Int16 | | int | SqlInt32 | Int32 | | bigint | SqlInt64 | Int64 | | smallmoney | SqlMoney | Decimal | | money | SqlMoney | Decimal | | numeric | SqlDecimal | Decimal | | decimal | SqlDecimal | Decimal | |...
[ -0.2922375500202179, -0.022654259577393532, 0.45272478461265564, -0.1950826644897461, -0.2530880272388458, 0.06942563503980637, -0.013848887756466866, -0.1155024915933609, -0.3179480731487274, -0.4552026093006134, -0.17204399406909943, 0.1266869157552719, -0.21175464987754822, 0.0795681774...
| None | None | | cursor | None | None | | timestamp | None | None | | xml | SqlXml | None |
[ -0.4715704619884491, 0.33185428380966187, 0.3711166977882385, 0.037827637046575546, 0.07611372321844101, -0.28388872742652893, -0.04881005734205246, 0.06812462210655212, -0.3139495849609375, -0.3429892361164093, -0.5194587111473083, 0.010333523154258728, -0.4520825743675232, 0.119857676327...
I am working on a project where the user will transfer his username to activate the internet. I want to always redirect the user to the https version and make the http version redirect to the https aswell, so there is only an http version. Is this a smart move? Could there be problems with mobile devices (WiFi enabled ...
[ 0.5346648097038269, -0.06084245443344116, 0.2933371663093567, 0.056293852627277374, -0.18833614885807037, -0.314962238073349, 0.3319554626941681, 0.10210269689559937, -0.1348029226064682, -0.7648491859436035, -0.012066160328686237, 0.33969977498054504, -0.4904617965221405, 0.12577812373638...
I am trying to do a comparison between company names using SOUNDEX, but the php call for soundex only outputs 3 digits so the comparisons aren't quite accurate. Is there a way to get a better soundex output so that the results are more accurate? try using [metaphone](http://us.php.net/metaphone) instead
[ 0.6272835731506348, 0.1917373239994049, 0.31618908047676086, 0.05179055780172348, 0.09171994775533676, 0.19424772262573242, 0.2446938306093216, 0.07582637667655945, 0.09923361241817474, -0.29205232858657837, 0.2592718005180359, 0.6076286435127258, -0.11567386984825134, 0.15914678573608398,...
I have a problem where I always need to give simple access to my local account, and don't want to deal with typing in my root password a million times on my local machine. How do I give perms so i can type 'mysql' with my local user and get access to everything? This gives the local user to the dev machine perms to sel...
[ 0.39345136284828186, -0.10367591679096222, 0.09171050786972046, 0.37598106265068054, 0.07119115442037582, 0.01619919203221798, 0.23525665700435638, 0.15795764327049255, -0.3699841797351837, -0.6046128869056702, 0.2653198838233948, 0.41265955567359924, -0.2920754551887512, 0.176284790039062...
User: ``` insert into user(host,user,password) values ('localhost','local_rails_user',''); grant SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD on *.* to 'local_rails_user'@'localhost'; ``` Local Viewer: ``` insert into user(host,user,password) values ('localhost','',''); grant SELECT on *.* to ''@'localho...
[ -0.20647524297237396, -0.05108433589339256, 0.2794342637062073, 0.28959140181541443, 0.3605809211730957, 0.0045119342394173145, 0.16992920637130737, -0.0013139834627509117, -0.07397709786891937, -0.8365665674209595, -0.40207892656326294, 0.5815869569778442, 0.06765889376401901, 0.164080128...
does jquery have any plugin that prevents entering any input to a textbox that doesnt match a regexp pattern. for example , i have a textbox for entering payment amount, i want user t be able to enter only numebers and . in the textbox, all other input wont have any effect on the textbox.. thanks [jquery-keyfilter plu...
[ 0.09896600991487503, -0.13289986550807953, 0.3687545359134674, 0.18142260611057281, -0.15494327247142792, -0.1327897161245346, 0.04440193995833397, 0.09137120097875595, -0.05183171480894089, -0.44705647230148315, -0.0430399514734745, 0.5459275841712952, -0.11192458122968674, -0.17211955785...
I've never developed Flash before but I have a project where I want to use an ActionScript 3 library and I'm not sure what tools I need to start. To further complicate things my main development box is an Ubuntu box. Are there any necessary packages I need to install? Or any `.deb`'s I can buy? A Windows or Mac box. :-...
[ 0.4586138129234314, 0.04727621376514435, -0.02057604119181633, 0.0720376968383789, -0.3122767210006714, -0.18496504426002502, -0.08416106551885605, 0.013272319920361042, -0.22638100385665894, -0.8440071940422058, -0.21623918414115906, 0.5737397074699402, -0.42992788553237915, -0.2121260613...
what works in both) then you should be able to import them and use them. Also, I've never tried it myself, but Flex Builder is based on Eclipse and I believe there's a way to configure Eclipse to compile with the opensource Flex compile if you'd rather work in a graphical IDE.
[ 0.5647488236427307, -0.3337004780769348, -0.13941973447799683, 0.11965874582529068, -0.39400145411491394, -0.13095936179161072, -0.31013551354408264, -0.2301560342311859, -0.3121461570262909, -0.9072728753089905, 0.1882990449666977, 0.9676864147186279, -0.13213185966014862, -0.337683677673...
I have bound my ListBox to some data. The problem is when I call myTableAdapter.Fill(..) method, SelectedValue changes to whatever is the first item ID in the list. Although "Selected Value" in VS is not bound anywhere (see image). [alt text http://img370.imageshack.us/img370/2548/ss20090108212745qz2.png](http://img37...
[ 0.37150853872299194, 0.019745344296097755, 0.65257728099823, 0.03273655101656914, -0.23813843727111816, -0.14329840242862701, 0.29793721437454224, -0.5913610458374023, -0.535818338394165, -0.6012475490570068, 0.02473740465939045, 0.2471935749053955, -0.5151599645614624, 0.49054285883903503...
||= '1' } Page.create(params[:page]) end end ```
[ -0.1628422886133194, 0.2601337730884552, 0.6835165619850159, 0.06210475042462349, -0.04185078293085098, -0.10570131987333298, 0.44076210260391235, -0.2568468749523163, -0.1742202788591385, -0.7315323948860168, -0.5579413175582886, -0.12297909706830978, -0.48289304971694946, 0.4449025690555...
I'm testing out my application with the hopes of migrating to SQL Server 2008 (From 200). In the SQL Server profiler, I'm seeing ``` Audit Login SQL:BatchStarting SELECT ..... SQL:BatchCompleted SELECT ..... Audit Logout ``` for every single query that is being run. From what...
[ 0.14439959824085236, 0.3082391321659088, 0.35315239429473877, -0.262825608253479, -0.08255405724048615, -0.10555160045623779, -0.06316876411437988, 0.14937548339366913, -0.33728742599487305, -0.6218598484992981, 0.45649799704551697, 0.3694101572036743, -0.037923190742731094, 0.243282184004...
Is this the case? If it is, is there anything I can do to trouble shoot why connection pooling wouldn't be working. I'm using a single constant strings for connection strings, and I'm always closing (to release it back to the pool) the connection immediately after I'm done with it. My connection string doesn't have poo...
[ 0.45339807868003845, 0.1804758459329605, 0.4899374544620514, 0.0919240266084671, 0.08683374524116516, -0.20899464190006256, 0.1155131459236145, -0.18259607255458832, -0.5133774876594543, -0.377949059009552, 0.13226693868637085, 0.6796196103096008, -0.22058206796646118, 0.06285567581653595,...
targetting the .NET 2 framework. This is expected behavior. From the documentation for the [Audit Login Event Class](http://msdn.microsoft.com/en-us/library/ms190260.aspx): The Audit Login event class indicates that a user has successfully logged in to Microsoft SQL Server. Events in this class are fired by new connec...
[ 0.07413768768310547, -0.19927120208740234, 0.1567768007516861, 0.03767609968781471, -0.09776537120342255, -0.6029998660087585, 0.22136537730693817, -0.077020563185215, -0.3738376796245575, -0.3477529287338257, -0.1691494882106781, 0.5640962719917297, -0.127537801861763, -0.1596669107675552...
I would like to print my Swing JComponent via iText to pdf. ``` JComponent com = new JPanel(); com.add( new JLabel("hello") ); PdfWriter writer = PdfWriter.getInstance( document, new FileOutputStream( dFile ) ); document.open( ); PdfContentByte cb = writer.getDirectContent( ); PdfTemplate tp = cb.createTemplate( pa...
[ 0.3358750641345978, 0.18427908420562744, 0.9273938536643982, -0.01776241883635521, -0.36192619800567627, 0.025577448308467865, 0.20936046540737152, -0.6316339373588562, -0.28790047764778137, -0.6220641732215881, -0.19004423916339874, 0.4840970039367676, -0.12150883674621582, -0.17911987006...
I am currently working for a client who are **petrified** of changing lousy un-testable and un-maintainable code because of "performance reasons". It is clear that there are many misconceptions running rife and reasons are not understood, but merely followed with blind faith. One such anti-pattern I have come across i...
[ 0.4004054069519043, 0.3468380272388458, -0.2342478185892105, -0.09877150505781174, -0.05960945785045624, 0.1751451939344406, 0.4440147578716278, 0.2824332118034363, -0.27119460701942444, -0.7578575015068054, -0.10704023391008377, 0.2244367003440857, -0.027470091357827187, 0.323918700218200...
* **Not measuring performance** before and after the changes. Collecting performance data will show if a certain technique was successful or not. Not doing so will result in pretty useless activities, because someone has the "feeling" of increased performance when nothing at all has changed.
[ 0.7872458100318909, 0.076247937977314, 0.19125542044639587, 0.2073512077331543, -0.08114831894636154, -0.10627005249261856, 0.7842398285865784, -0.05827070772647858, -0.4248896539211273, -0.5172615647315979, -0.047898199409246445, 0.44322606921195984, -0.004624626599252224, -0.179832771420...
I am using the AJAX Toolkit: ``` <ajaxToolkit:CascadingDropDown ID="CategoryDDL_C" runat="server" TargetControlID="CategoryDDL" Category="Main" PromptText="Please select a category" LoadingText="[Loading...]" ServiceMethod="MainDDL" /> ``` And for the Service Method: ``` [WebMethod] [Syste...
[ 0.12001243233680725, 0.13910305500030518, 0.8495261073112488, -0.16486042737960815, -0.21709036827087402, -0.4021555185317993, 0.4953524172306061, -0.0697406753897667, -0.16872824728488922, -0.7916257977485657, -0.38551953434944153, 0.4784911870956421, -0.17105479538440704, 0.0891885906457...
can update the Page Method without doing a full rebuild? Web *application* projects need to be recompiled when codebehind files change, web *site* projects do not. Which is yours?
[ 0.2790255844593048, -0.036838874220848083, 0.5528410077095032, 0.257516473531723, -0.16294918954372406, -0.029074767604470253, 0.38803982734680176, -0.2520481050014496, -0.3254827857017517, -0.6277999877929688, 0.07454685866832733, 0.47787022590637207, -0.09173668920993805, -0.073174290359...
In the modern era of CSS, how would I create a pair of panels (for example, a preview window like in Outlook, or for master/detail views)? Ideally where the top (master) pane would get scrollbars, etc.? The intended use-case is so that a user can scroll in the top window while always being able to see the preview / de...
[ 0.21595367789268494, -0.043595150113105774, 0.4313531219959259, 0.06950294971466064, -0.34255173802375793, 0.11496035754680634, -0.24048922955989838, -0.17075003683567047, -0.2917824387550354, -1.0428584814071655, -0.07808104902505875, 0.17054255306720734, 0.02178584784269333, -0.091033838...
how does this translate to CSS? (and in particular, getting the scrollbars on the two windows). Well, if you're actually using windows, then it sounds like you're talking about frames or even iFrames. My assumption, though, is that when you say "window" you're just referring to the idea of a scrollable area. To do tha...
[ 0.2944532036781311, 0.07422158122062683, 0.3660176396369934, -0.012463667429983616, -0.28060027956962585, -0.002224705182015896, 0.0807824581861496, -0.24668535590171814, -0.2448589950799942, -0.8120999932289124, -0.21621252596378326, 0.4064502716064453, -0.18391698598861694, -0.0506838820...
<div id="window-one"> <p>Content for window one goes here.</p> </div> <div id="window-two"> <p>Content for window two goes here.</p> </div> </body> </html> ``` This would create two "panes" (windows) that take up 50% of the height, but span the entire width of window. Scrollbars would ...
[ 0.17592376470565796, -0.15607568621635437, 0.5624828338623047, 0.090844064950943, -0.14793889224529266, 0.1706756353378296, -0.0748075321316719, -0.2756812572479248, -0.16732670366764069, -0.9612971544265747, -0.3071344196796417, 0.40439945459365845, -0.07461075484752655, -0.03618061542510...
Here is the code to add a pfx to the Cert store. ``` X509Store store = new X509Store( StoreName.My, StoreLocation.LocalMachine ); store.Open( OpenFlags.ReadWrite ); X509Certificate2 cert = new X509Certificate2( "test.pfx", "password" ); store.Add( cert ); store.Close(); ``` However, I couldn't find a way to set perm...
[ 0.12123117595911026, 0.17162908613681793, 0.7420029640197754, 0.11452791839838028, 0.19797994196414948, -0.1626763641834259, 0.19084365665912628, -0.31906554102897644, -0.30417031049728394, -0.7753074765205383, -0.2360624074935913, 0.305294930934906, -0.5102532505989075, 0.1127284243702888...
the "AddAccessToCertificate" method).
[ -0.42186039686203003, -0.15559235215187073, 0.5613906383514404, -0.26594680547714233, 0.09900598973035812, 0.17041261494159698, -0.04245874285697937, -0.5390808582305908, 0.02396569587290287, -0.44061875343322754, -0.45381250977516174, 0.8169612884521484, -0.4580867886543274, -0.0976568982...
One of the things I'm doing includes several links on the **show** view. For instance, I have a link (or button) for "Accepting", and another one for "Rejecting". Click on Accept, and the model updates the is\_accepted field as true, click on Reject, and the is\_accepted field is false. Now, how best do I handle this?...
[ 0.30355438590049744, -0.16239652037620544, 0.29914653301239014, -0.12610460817813873, -0.21496151387691498, -0.10405368357896805, 0.06981329619884491, -0.16755343973636627, 0.01670845039188862, -0.8367019891738892, 0.15741844475269318, 0.5237910151481628, -0.3825637996196747, 0.31797218322...
identical, that look like this: ``` <%= form_for @thing do |f| %> <%= hidden_field_tag 'thing[is_accepted]', '1' %> <%= f.submit "Accept" %> <% end %> <%= form_for @thing do |f| %> <%= hidden_field_tag 'thing[is_accepted]', '0' %> <%= f.submit "Reject" %> <% end %> ``` This feels weird to me, but I can't see...
[ 0.14062485098838806, 0.1952015459537506, 0.5384162068367004, 0.0412009172141552, -0.02799801528453827, -0.02423090673983097, 0.16399411857128143, -0.4911925494670868, -0.1645229309797287, -0.4366050660610199, 0.27107492089271545, 0.5782889127731323, -0.19471250474452972, 0.1709803342819214...
way. One way to clean up your forms is by using the model form helpers all the way through, so you'd end up with something like ``` <%= form_for @thing do |f| %> <%= f.hidden_field :accepted, :value => true %> <%= f.submit "Accept" %> <% end %> <%= form_for @thing do |f| %> <%= f.hidden_field :accepted, :value ...
[ 0.3652380704879761, -0.11541491001844406, 0.556222140789032, 0.26666104793548584, 0.19646798074245453, -0.32002878189086914, 0.46615785360336304, -0.3400994539260864, -0.28815722465515137, -0.7438411712646484, 0.04709668457508087, 0.28420719504356384, -0.14692401885986328, 0.10582440346479...
a model in this instance). Using the submit tag as the switch and detecting it in params[] is also a good way, but I usually prefer to keep my controllers as vanilla as possible. In the end, both of these ways would end up with the same amount of 'stuff' in the UI, so whichever style you'd rather use should be fine.
[ 0.18332421779632568, -0.4479594826698303, 0.3111073076725006, 0.5417636036872864, -0.02100992202758789, -0.21537625789642334, 0.22751379013061523, -0.29451364278793335, 0.03936469554901123, -0.5903887152671814, -0.0933869481086731, 0.448994517326355, -0.11260420829057693, 0.090280078351497...
We are having trouble with a Java web application running within Tomcat 6 that uses JDBC to connect to a SQL Server database. After a few requests, the application server dies and the in the log files we find exceptions related to database connection failures. We are not using any connection pooling right now and we ...
[ 0.3815382122993469, 0.2609185576438904, 0.3384498953819275, 0.24226301908493042, -0.03597881272435188, -0.3656452000141144, 0.2894882261753082, 0.03169354796409607, -0.23276673257350922, -0.5509958863258362, 0.276054710149765, 0.35780709981918335, -0.4468010663986206, 0.3425789773464203, ...
by using the model form helpers all the way through, so you'd end up with something like ``` <%= form_for @thing do |f| %> <%= f.hidden_field :accepted, :value => true %> <%= f.submit "Accept" %> <% end %> <%= form_for @thing do |f| %> <%= f.hidden_field :accepted, :value => false %> <%= f.submit "Reject" %> ...
[ 0.031605593860149384, -0.19814743101596832, 0.5097521543502808, 0.11484035849571228, -0.0878264307975769, -0.27372220158576965, 0.30458319187164307, -0.547490119934082, 0.09383589774370193, -0.5374172925949097, -0.05644061043858528, 0.5233669281005859, -0.177779883146286, 0.055343952029943...
as the switch and detecting it in params[] is also a good way, but I usually prefer to keep my controllers as vanilla as possible. In the end, both of these ways would end up with the same amount of 'stuff' in the UI, so whichever style you'd rather use should be fine.
[ 0.4498136341571808, -0.46271681785583496, 0.4291207194328308, 0.2787259817123413, -0.20052959024906158, -0.19681903719902039, 0.014629218727350235, -0.04351228103041649, -0.19313223659992218, -0.32061001658439636, 0.035063933581113815, 0.2638266086578369, 0.0160369835793972, 0.148877918720...
I've got a SQL Server 2000 box that I'd like to put on "the Internet" so that developers could connect remotely without VPN access. What's the safest way to do so? It might be temporary, e.g. every once in a while, but it's definitely necessary. Thanks, Rob Short answer - don't do this. Long answer: Install good f...
[ 0.6897287368774414, 0.1522694230079651, 0.21590547263622284, 0.1805521845817566, -0.11205797642469406, -0.24094901978969574, 0.2814696133136749, -0.005943134892731905, -0.04280298948287964, -0.6548522114753723, 0.0861903578042984, 0.3676299452781677, -0.26380953192710876, 0.122055478394031...
In my C# application, I use a regular expression to validate the basic format of a US phone number to make sure that the user isn't just entering bogus data. Then, I strip out everything except numbers, so this: > (123) 456-7890 x1234 becomes > 12345678901234 in the database. In various parts of my application, how...
[ 0.09970886260271072, 0.1628473699092865, 0.41219767928123474, 0.0583413802087307, 0.22917242348194122, -0.3843368887901306, 0.21510466933250427, 0.039473678916692734, -0.17523495852947235, -0.3689199388027191, -0.3209652602672577, 0.6641467809677124, -0.4666507840156555, -0.157512113451957...
I'm using an in-house code generator in which we supply all the metadata regarding our objects, and it generates our database, and object model including validation logic. Once we load all the data in the database, we use classic ASP <% %> to build our templates. I would like to know what open-source frameworks similar...
[ 0.7834389209747314, 0.3058820962905884, 0.018764864653348923, 0.12281972169876099, -0.15247420966625214, -0.42783600091934204, -0.09951628744602203, -0.02430437132716179, -0.08379385620355606, -0.5782286524772644, 0.019415713846683502, 0.5414267778396606, 0.011380950920283794, 0.0941444560...
I need open source database that I can ship with my commercial application. It should not have any installation (i.e., no window service and no setup). It can be single user database. It should work in Windows environment and used from Java code. Thanks I really like [SQLite](http://www.sqlite.org/). You can use it w...
[ 0.7088658809661865, -0.12222154438495636, 0.05040070042014122, 0.22097963094711304, 0.12871544063091278, -0.24074240028858185, 0.07730631530284882, 0.0665978342294693, 0.06948816776275635, -0.8439102172851562, 0.3803724944591522, 0.6545417904853821, -0.1430402398109436, 0.20349858701229095...
I'm trying to call a stored procedure (on a SQL 2005 server) from C#, .NET 2.0 using `DateTime` as a value to a `SqlParameter`. The SQL type in the stored procedure is 'datetime'. Executing the sproc from SQL Management Studio works fine. But everytime I call it from C# I get an error about the date format. When I r...
[ 0.18123453855514526, 0.054821208119392395, 0.39962461590766907, -0.21717144548892975, 0.12368333339691162, -0.18468120694160461, 0.07077813893556595, 0.014713486656546593, -0.15120606124401093, -0.317043274641037, 0.19249311089515686, 0.4607272744178772, -0.3285551369190216, 0.081268809735...
`SqlDateTime`, the field is surrounding by a PAIR of single quotes, such as ``` @Date_Of_Birth=N''1/8/2009 8:06:17 PM'' ``` 2) If I pass the `DateTime` in as a string, I only get the single quotes 3) Using `SqlDateTime.ToSqlString()` does not result in a UTC formatted datetime string (even after converting to unive...
[ 0.2886245846748352, 0.26274216175079346, 0.5979467630386353, 0.026655694469809532, 0.07383466511964798, -0.16045629978179932, 0.0683717280626297, -0.05521808937191963, -0.003928011283278465, -0.3570716977119446, 0.19320829212665558, 0.4302324652671814, -0.139992818236351, 0.306049525737762...
why is it so difficult to get working? I can't seem to convert `DateTime` to a string that is SQL compatable (e.g. '2009-01-08T08:22:45') **EDIT** RE: BFree, the code to actually execute the sproc is as follows: ``` using (SqlCommand sprocCommand = new SqlCommand(sprocName)) { sprocCommand.Connection = transacti...
[ -0.06223297119140625, -0.05077086016535759, 0.9107962250709534, 0.050816942006349564, 0.33603692054748535, 0.22608354687690735, 0.18004736304283142, -0.6367879509925842, -0.42537063360214233, -0.08772436529397964, -0.3172593414783478, 0.38129839301109314, -0.041000038385391235, 0.080504104...