text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
`all_table_information`) on sql server containing that same information for every table that is validated in the program. If the table is a SQL table, I can run this query (of course restricting it to only the columns from the table I want): ``` insert into [all_table_information] (table_id, column_name, data_ty...
[ -0.33922600746154785, 0.4516490697860718, 0.44168034195899963, -0.02339022234082222, 0.03461364656686783, 0.06717656552791595, -0.05501272901892662, -0.2571370303630829, -0.24402184784412384, -0.5455478429794312, -0.2728523015975952, 0.4636569619178772, -0.6260503530502319, -0.075349070131...
from syscat.columns where ...restrict to needed table... ``` Then get a DataReader with the results and loop through it inserting each row using: ``` while (dr.Read()) { insert into [all_table_information] (table_id, column_name, data_type, max_char_length) values (..."'" + dr["whatever"] + "', '" + ....)...
[ -0.013973596505820751, 0.12261254340410233, 0.21116523444652557, -0.054067462682724, 0.04544917866587639, -0.018680738285183907, 0.2170988768339157, -0.051750991493463516, -0.24911713600158691, -0.662418007850647, -0.3779696822166443, 0.7699989676475525, -0.5592252016067505, -0.24788059294...
have to do a little of both: * Make sure the `gluSphere` is "facing" the fixed point, so that translating forward with respect to the sphere puts you closer to the center of its orbit * `glTranslatef` the `gluSphere` forward to the point around which you want it to rotate * `glRotatef` the direction you want the spher...
[ -0.017032533884048462, 0.1976621448993683, 0.720432698726654, 0.004728505853563547, -0.2114560902118683, 0.04716935753822327, 0.14312782883644104, 0.014763266779482365, -0.026421885937452316, -0.7545185685157776, -0.45783188939094543, 0.5543179512023926, -0.07382499426603317, -0.0971404463...
The iPhone app I am developing has a strange quirk where it runs ok when xcode has launched it, but not when launched directly on the device. I've checked the crash logs and the exception seems to be occurring in libxml2.2 in xmlParseCharData. It's quite a big xml document that is being parsed so I think that might be...
[ -0.03843570128083229, 0.35989809036254883, 0.3270585834980011, -0.035319115966558456, -0.005446462891995907, -0.15366022288799286, 0.3997776508331299, 0.14423450827598572, -0.38555222749710083, -0.4322842061519623, -0.2842320203781128, 0.3825874924659729, -0.5604525804519653, 0.00027930503...
xcode. Any ideas why this would be happening or how I might start trying to debug it? I found the problem. The app was taking too long to start. I eventually noticed in the console log in organizer that this was the problem. I changed the app so it has a proper landing screen and it works fine now.
[ 0.5911732316017151, 0.2111973911523819, 0.4619505703449249, 0.10116496682167053, 0.29208502173423767, -0.07539710402488708, 0.15663406252861023, 0.09210877120494843, -0.0009699931251816452, -0.9201402068138123, 0.026197679340839386, 0.22893714904785156, -0.5668076276779175, -0.015195461921...
I would like to use the High Performance Event Timer (HPET) for an profiling tool to take very high precision measurements, quickly. timeGetTime does not provide sufficient resolution at 1ms, and QueryPerformanceCounter is much slower per read than I'd like. I came across the HPET while researching the problem, but I c...
[ 0.10706483572721481, 0.038246624171733856, -0.039981625974178314, 0.2730892598628998, -0.17781990766525269, -0.5293299555778503, 0.04930767044425011, -0.15387870371341705, -0.1900976300239563, -0.6898539066314697, 0.15352845191955566, 0.48557397723197937, -0.19287289679050446, -0.026881113...
the most cost effective way. I will try it out when I get the guts to dig into assembly. :) **UPDATE** I tested this with my profiler. although a bit faster, it seems I still have tonnes of other overhead :( (I did not bother with timing as I it did not seem to be enough benefit)
[ 0.7208425998687744, -0.18625928461551666, 0.12288951128721237, 0.1789279580116272, 0.034424733370542526, 0.17609284818172455, 0.3526560962200165, 0.011327595449984074, -0.04346095770597458, -0.9085147380828857, 0.2667270302772522, 0.3670584261417389, 0.41233015060424805, -0.419324249029159...
When I call a ScriptMethod from an ASP.NET button using the OnClientClick property, the ScriptMethod returns 95% of the time (alert box shows), and the page submits. If I call the method from a HTML input button, the ScriptMethod returns 100% of the time, but of course the page doesn't submit. If I change the type to ...
[ 0.059245143085718155, 0.008083492517471313, 0.5287087559700012, -0.0362858884036541, -0.29624509811401367, 0.05415013059973717, 0.5155874490737915, -0.5815808176994324, 0.00834831316024065, -0.7615838646888733, -0.13348406553268433, 0.5949992537498474, -0.2805883586406708, -0.3317549228668...
time before the form submits. The ScriptMethod never actually fails. Page: ``` <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ScriptServiceMadness._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd...
[ 0.12727399170398712, -0.01812824234366417, 0.6283560395240784, -0.29743412137031555, 0.1420329362154007, -0.1264811009168625, 0.1739717721939087, -0.4776969254016876, 0.04232458397746086, -0.7507595419883728, -0.2925792932510376, 0.4019050598144531, 0.18298059701919556, -0.0786051601171493...
</asp:ScriptManager> <div> <asp:TextBox ID="VerifyPostbackTextBox" runat="server" Text="true" /> <asp:Button ID="SubmitFormButton" runat="server" OnClientClick="attack()" Text="Works 90%" OnClick="SubmitFormButton_Click" /> <input type="button" id="InputButton" value="Works 1...
[ -0.14413394033908844, -0.039765723049640656, 0.5690120458602905, -0.2969157099723816, -0.1387844979763031, 0.1042589396238327, 0.4890919327735901, -0.6705907583236694, 0.008854745887219906, -0.6170568466186523, -0.21247577667236328, 0.6611089706420898, -0.2195805162191391, -0.4782519340515...
ScriptServiceMadness.Chewbacca.ShootImperialProbeDroid(true, speak, youvefailedme); } function speak(result) { alert(result); } function youvefailedme(error) {
[ -0.08603008091449738, -0.07588037848472595, 0.3971392810344696, -0.2545205056667328, 0.26308271288871765, 0.18775099515914917, 0.5108782052993774, 0.1604912281036377, 0.4246256351470947, -0.4923613667488098, -0.11850631237030029, 0.9329575896263123, -0.27764660120010376, -0.255951523780822...
alert(error); } </script> </body> </html> ``` Code behind: ``` using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.W...
[ -0.008844830095767975, -0.06514716893434525, 0.3784290850162506, -0.06428442895412445, -0.05580650269985199, 0.12346052378416061, 0.2504725754261017, -0.22584089636802673, -0.26723551750183105, -0.6862465739250183, -0.3873927891254425, 0.6386386752128601, -0.5054059028625488, 0.13933604955...
VerifyPostbackTextBox.Text = DateTime.Now.Ticks.ToString(); } } } ``` ScriptService: ``` using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; using System.Web.Script.Services; using System...
[ -0.014683404937386513, 0.3200930058956146, 0.2636849880218506, 0.04694831371307373, -0.09471339732408524, -0.14195816218852997, 0.32569774985313416, -0.2599264085292816, 0.3646024763584137, -0.3255133330821991, 0.10992716997861862, 0.6606144309043884, -0.34347817301750183, -0.1680128276348...
public string ShootImperialProbeDroid(bool letHanDoIt) { if (letHanDoIt) { return "rrrroooorrrr"; } else {
[ 0.267159640789032, -0.1850706934928894, 0.19324813783168793, -0.11203186959028244, 0.07534307986497879, 0.01782313734292984, 0.29736724495887756, -0.28914445638656616, 0.16461503505706787, 0.11726506799459457, 0.024001557379961014, 0.8906899690628052, -0.3514619767665863, -0.30523401498794...
return "rrrraaaarrrr"; } } } } ``` One thing of interest...I removed the bool parameter from the SciptMethod while writing this question, and it seems to work 100% of the time. This of course may be coincidence. Since the script method executes asynchronously you cannot guarantee that it will ...
[ 0.33497893810272217, 0.00881616398692131, 0.38961678743362427, -0.013044851832091808, 0.14783218502998352, -0.007645750883966684, 0.4456743597984314, 0.13544322550296783, 0.11535006761550903, -0.49221810698509216, 0.10165853053331375, 0.5056543350219727, -0.1503666341304779, 0.203825399279...
I may suggest is you postback manually by calling the \_\_doPostBack routine once you get the response .
[ 0.2779825031757355, 0.24775910377502441, -0.023881016299128532, -0.06153027340769768, -0.02872040681540966, -0.1618134081363678, 0.3540206253528595, 0.10298541188240051, 0.01303244661539793, -0.5212327241897583, -0.08771971613168716, 0.35815104842185974, -0.2052106410264969, -0.03496531769...
I have an application using the following layout : [alt text http://img15.imageshack.us/img15/238/screenshot003xbo.png](http://img15.imageshack.us/img15/238/screenshot003xbo.png) When the app starts, the focus is on the first TextView, but if you try to type any letter in it, the focus goes directly to the tabs. It s...
[ -0.06611452996730804, 0.08120816946029663, 0.7943963408470154, -0.23778751492500305, -0.042869556695222855, 0.303771048784256, 0.11051581799983978, 0.0585469976067543, -0.24854518473148346, -0.755568265914917, -0.13312183320522308, 0.4171057641506195, -0.04212713986635208, 0.06534481793642...
<LinearLayout android:padding="5px" android:orientation="vertical" android:id="@+id/task_edit_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="50" > <LinearLayout android:orientation="vertical" ...
[ -0.34345754981040955, -0.33678320050239563, 0.6627681255340576, -0.3100356459617615, 0.21103806793689728, 0.5570150017738342, -0.3396673798561096, -0.2834014296531677, -0.19568529725074768, -0.23358987271785736, -0.10932815819978714, 0.18359598517417908, 0.15660978853702545, 0.109615266323...
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/title" android:textStyle="bold" /> <EditText android:id="@+id/title" android:layout_width="fill_parent"
[ -0.01586521789431572, -0.025820273905992508, 0.5072874426841736, -0.3080970048904419, -0.06192561611533165, 0.23816855251789093, 0.1761574000120163, -0.21926425397396088, 0.09033031761646271, -0.7864789366722107, -0.39339518547058105, 0.5151749849319458, -0.05311309173703194, -0.1588018685...
android:layout_height="fill_parent" /> </LinearLayout> <TabHost android:id="@+id/edit_item_tab_host" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabWidget android:layout_width="fill_parent" android:layou...
[ -0.5682082772254944, -0.3890630304813385, 0.6113170385360718, -0.5079542994499207, -0.07553020864725113, 0.4430101811885834, -0.2580316364765167, -0.08491070568561554, -0.26799526810646057, -0.6007559895515442, -0.19241534173488617, 0.3519257605075836, -0.19211062788963318, 0.0113397678360...
android:id="@android:id/tabs" /> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingTop="65px"> <!-- you need that if you don't want
[ -0.23506321012973785, -0.22095613181591034, 0.6310808658599854, -0.3726293444633484, 0.12986287474632263, 0.42360037565231323, -0.2583310008049011, -0.36283427476882935, -0.23253393173217773, -0.7725163698196411, -0.04791327938437462, 0.34445303678512573, -0.24126458168029785, -0.054186671...
the tab content to overflow --> <LinearLayout android:id="@+id/edit_item_date_tab" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
[ -0.4431864619255066, -0.2502054274082184, 0.8734425902366638, -0.13841041922569275, 0.06741619855165482, 0.3805626630783081, -0.21710841357707977, 0.0067877620458602905, -0.19294512271881104, -0.38516664505004883, -0.28875747323036194, 0.13431814312934875, -0.33892622590065, 0.196114301681...
android:padding="5px" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="date"
[ -0.11149445176124573, -0.34136754274368286, 0.5810401439666748, -0.5165179967880249, 0.24177336692810059, 0.32481130957603455, -0.008633185178041458, -0.10369927436113358, -0.18238481879234314, -0.5612512230873108, -0.2505461871623993, 0.2390720248222351, -0.058959994465112686, -0.17576448...
android:textStyle="bold" /> </LinearLayout> <LinearLayout android:id="@+id/edit_item_geocontext_tab" android:orientation="vertical"
[ -0.510008692741394, -0.2143642157316208, 0.6980785131454468, -0.13222450017929077, -0.09280532598495483, 0.45635786652565, -0.03189728409051895, -0.09279237687587738, -0.16981017589569092, -0.5369633436203003, -0.3108253479003906, 0.2939899265766144, -0.299611896276474, -0.1342952698469162...
android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5px" > <TextView android:layout_width="wrap_content"
[ -0.07961110025644302, -0.18922197818756104, 0.5786659121513367, -0.4155539572238922, 0.11820002645254135, 0.3291682004928589, -0.10253138095140457, -0.17590433359146118, -0.24219368398189545, -0.7269583344459534, -0.3838532567024231, 0.558025598526001, 0.0441308431327343, -0.29534637928009...
android:layout_height="wrap_content" android:text="lieu" android:textStyle="bold" /> </LinearLayout> <LinearLayout
[ -0.2719959616661072, -0.26507553458213806, 0.6215782761573792, -0.2515976130962372, 0.049742236733436584, 0.3885156810283661, 0.08307968825101852, -0.15768130123615265, -0.09016440808773041, -0.40753424167633057, -0.28922462463378906, 0.31295767426490784, -0.1743602603673935, -0.0021308592...
android:id="@+id/edit_item_text_tab" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5px">
[ -0.36003440618515015, -0.17433816194534302, 0.590375542640686, -0.3380432724952698, 0.034874845296144485, 0.7143983840942383, -0.3012982904911041, -0.2917006015777588, -0.27030667662620544, -0.6069765090942383, -0.23274070024490356, 0.3192059099674225, -0.19541728496551514, -0.089171402156...
<EditText android:id="@+id/details" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="vertical" />
[ -0.15086999535560608, -0.12679079174995422, 0.5639861226081848, -0.2702380418777466, -0.03126227483153343, 0.5518139004707336, -0.030897604301571846, -0.10043873637914658, -0.025452490895986557, -0.8725005984306335, -0.12938888370990753, 0.4136084020137787, -0.17201665043830872, -0.2267801...
</LinearLayout> </FrameLayout> </TabHost> </LinearLayout> <!-- Bottom pannel with "add item" button --> <LinearLayout android:padding="5px" android:orientation="horizontal" android:layout_weight="1" android:id="@+id/task_edit_panel" ...
[ -0.4018488824367523, -0.4065021574497223, 0.7078721523284912, -0.16181208193302155, 0.050295453518629074, 0.6621071696281433, -0.31064149737358093, -0.5105289220809937, -0.31577903032302856, -0.26766154170036316, 0.06601275503635406, 0.04744546860456467, -0.052505601197481155, -0.075817763...
android:layout_height="wrap_content" android:background="#E7E7E7" > <!-- Let the height set to fill_parent until we find a better way for the layout --> <Button android:id="@+id/item_edit_ok_button" android:layout_width="fill_parent" android:layout_height...
[ -0.40984585881233215, -0.18622003495693207, 0.7059988975524902, -0.41808679699897766, 0.25721803307533264, 0.2711363136768341, -0.18529012799263, -0.24083657562732697, -0.3150852620601654, -0.803997278213501, -0.3187754154205322, 0.5653607249259949, -0.17328472435474396, -0.105392262339591...
android:layout_gravity="bottom" android:text="@string/ok" style="?android:attr/buttonStyleSmall" android:layout_weight="1" /> <Button android:id="@+id/item_edit_cancel_button" android:layout_width="fill_parent" android:layout_he...
[ -0.3566160500049591, -0.32542264461517334, 0.6469283699989319, -0.34273648262023926, 0.02807544730603695, 0.39851802587509155, -0.17725326120853424, -0.360602468252182, -0.35152605175971985, -0.4885905981063843, -0.1712990701198578, 0.2625982165336609, -0.04230194911360741, -0.111602522432...
android:layout_gravity="bottom" android:text="@string/cancel" style="?android:attr/buttonStyleSmall" android:layout_weight="1" /> </LinearLayout> </LinearLayout> ``` And the Java code : ``` TabHost tab_host = (TabHost) findViewById(R.id.edit_item_tab_host); ...
[ -0.4526432454586029, 0.0011503356508910656, 0.7875033617019653, -0.3700265884399414, 0.04324362054467201, 0.3653067946434021, 0.0244496688246727, -0.338598370552063, -0.2691304087638855, -0.5654959678649902, -0.1406567394733429, 0.43601083755493164, -0.361743301153183, -0.09848826378583908...
an nullpointer exception tab_host.setup(); TabSpec ts1 = tab_host.newTabSpec("TAB_DATE"); ts1.setIndicator(getString(R.string.when), getResources().getDrawable(R.drawable.ic_dialog_time)); ts1.setContent(R.id.edit_item_date_tab); tab_host.addTab(ts1); TabSpec ts2 = tab_host.newTabSpec("TAB_GE...
[ -0.24250978231430054, -0.197773277759552, 0.7032703757286072, -0.14306983351707458, -0.08866686373949051, -0.011268451809883118, 0.5726809501647949, -0.02519938349723816, -0.3056688606739044, -0.5422791242599487, -0.4723699390888214, 0.1262742429971695, -0.7356232404708862, 0.1402356773614...
layout.
[ -0.3138691782951355, 0.10029185563325882, 0.26577630639076233, -0.12056565284729004, 0.4204530417919159, 0.19731751084327698, -0.03355535864830017, -0.10262811928987503, -0.32235005497932434, -0.8693705797195435, -0.3763458728790283, 0.1884966790676117, -0.21118034422397614, -0.21692427992...
I have a class that represents credit card details. To represent valid from and expiration months and years I am using four properties of type `int`: ``` public int ValidFromMonth { get; set; } public int ValidFromYear { get; set; } public int ExpiresEndMonth { get; set; } public int ExpiresEndYear { get; set; } ``` ...
[ 0.4472832977771759, 0.2796378433704376, 0.8702949285507202, 0.030279625207185745, 0.2440626621246338, -0.04676415026187897, -0.07844490557909012, -0.1676914244890213, -0.0721512883901596, -0.16768759489059448, -0.09582981467247009, 0.3040012717247009, 0.21791526675224304, 0.440255433320999...
will enforce this rule, possibly using a format string (e.g. `{0:00}`)? Note: I know that I could add my own `string` properties that do the formatting internally, and add an `[XmlIgnore]` attribute to my `int` properties, but this feels like a second-rate solution. **Edit:** After some consideration I am wondering i...
[ 0.48403194546699524, 0.05096686631441116, 0.32761669158935547, -0.0008534501539543271, 0.000656260410323739, -0.44298091530799866, 0.3547547459602356, -0.2190975844860077, -0.32703477144241333, -0.614173948764801, -0.13202603161334991, 0.9146295785903931, -0.3457863926887512, 0.06132923811...
XML Schema that defines the two-digit requirement is below. Simple type definitions: ``` <xs:simpleType name="CreditCardMonthType"> <xs:annotation> <xs:documentation>Two digit month</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:minLength value="2" /> <xs:maxLength value="2" ...
[ -0.026390761137008667, 0.07063444703817368, 0.6100178360939026, 0.013015533797442913, 0.09299519658088684, -0.13851776719093323, -0.4792189300060272, -0.5749900937080383, -0.06020128354430199, -0.20939429104328156, -0.4561883211135864, 0.4687780737876892, 0.15224552154541016, -0.0719745680...
use="optional"> <xs:annotation> <xs:documentation>Switch card's start year.</xs:documentation> </xs:annotation> </xs:attribute> ``` OK, ignore my previous code sample (I'll leave it up since it might help somebody else, though). I just remembered you can do this using [XmlEnumAttribute](http://msdn.microsoft.com/e...
[ 0.16610558331012726, -0.16299830377101898, 0.7581416964530945, -0.0845509022474289, -0.07825633138418198, -0.23318319022655487, 0.007354339584708214, -0.19203652441501617, -0.4116806983947754, -0.3253837823867798, -0.12350063771009445, 0.3030773401260376, 0.1520821750164032, -0.07922300696...
``` * Download JRuby 1.20. (zip file) * Extract the zip into C:\JRuby120 * Edit sytem "environment variables": * Add JRUBY_HOME -> point it to C:\JRuby120 * Modify the PATH environment variable to point to C:\JRuby120\bin; ``` After all this, I open up cmd.exe and type **jruby** ->"The system cannot find the path s...
[ 0.05041937530040741, 0.13859736919403076, 0.4255443513393402, -0.08205326646566391, 0.11537497490644455, -0.059589337557554245, 0.5907288193702698, -0.5299673676490784, -0.278011292219162, -0.6270025372505188, -0.3168970048427582, 0.6120709180831909, -0.46422839164733887, -0.03703058511018...
C:\JRuby120\bin\ is incorrect and points to the current dir, not to JRuby's bin dir, C:\>rem so we look on the PATH in such cases. C:\>IF EXIST "C:\JRuby120\bin\_jrubyvars.bat" (set FULL_PATH=C:\JRuby120\bin\ ) ELSE (set FULL_PATH=C:\JRuby120\bin\ ) C:\>call "C:\JRuby120\bin\_jrubyvars.bat" C:\>rem Environmen...
[ -0.34341466426849365, 0.06942594051361084, 0.5086439847946167, -0.19355334341526031, 0.38618868589401245, -0.13845326006412506, 0.4624418616294861, -0.4225756525993347, -0.004256278742104769, -0.824377715587616, -0.434145450592041, 0.5125859975814819, -0.4504466652870178, -0.16470071673393...
Files\Java\jdk1.6.0_11\bin" == "" goto gotJava C:\>set JRUBY_HOME=C:\JRuby120\bin\.. C:\>rem ----- Prepare Appropriate Java Execution Commands ------------------------- C:\>if not "" == "" goto gotCommand C:\>set _JAVA_COMMAND= C:\>set JAVA_COMMAND=java C:\>if not "Windows_NT" == "Windows_NT" goto noTitle ...
[ -0.059817105531692505, 0.3162775933742523, 0.49604371190071106, -0.26142674684524536, 0.06379055976867676, 0.17188528180122375, 0.37514349818229675, -0.6068410873413086, -0.09890338033437729, -0.5923808217048645, -0.38285157084465027, 0.4067857563495636, -0.11040949076414108, -0.0260232295...
arg processing sucks so bad? Can you believe this is even possible? C:\>rem http://support.microsoft.com/kb/71247 C:\>rem Escape any quotes. Use _S for ', _D for ", and _U to escape _ itself. C:\>rem We have to escape _ itself, otherwise file names with _S and _D C:\>rem will be converted to to wrong ones, when...
[ -0.5395954251289368, -0.02611074410378933, 0.5504090189933777, -0.0877857655286789, -0.029121363535523415, 0.1660270243883133, 0.5888869166374207, -0.4731391370296478, -0.37007400393486023, -0.511954665184021, -0.36638733744621277, 0.5085436701774597, -0.81081622838974, -0.0044788843952119...
%i in ("C:\JRuby120\bin\..\lib\jruby*.jar") do @call :setjrubycp %i C:\>if not "" == "" goto addjrubycp C:\>set JRUBY_CP=C:\JRuby120\bin\..\lib\jruby.jar C:\>goto :EOF C:\>for %i in ("C:\JRuby120\bin\..\lib\bsf*.jar") do @call :setjrubycp %i C:\>if not "C:\JRuby120\bin\..\lib\jruby.jar" == "" goto addjrubycp ...
[ -0.7031542658805847, 0.09350468218326569, 0.49823230504989624, -0.03616143390536308, 0.11321231722831726, 0.04145305976271629, 0.1881268471479416, -0.17564643919467926, 0.1225646585226059, -0.6506720781326294, -0.47023332118988037, 0.245340958237648, -0.2723221182823181, 0.2435632050037384...
-classpath "C:\JRuby120\bin\..\lib\bsf.jar;C:\JRuby120\bin\..\lib\jruby.jar;C:\JRuby120\bin\..\lib\profile.jar;.;" -Djruby.home="C:\JRuby120\bin\.." -Djruby.lib="C:\JRuby120\bin\..\lib" -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat org.jruby.Main C:\>set E=3 C:\>call "C:\JRuby120\bin\_jrubycleanup" ``` Well,...
[ -0.131087988615036, -0.09444759786128998, 0.2543579638004303, -0.12031938135623932, 0.12952084839344025, -0.41160711646080017, 0.6094530820846558, -0.1823394000530243, -0.11275210976600647, -0.8551345467567444, -0.16554316878318787, 0.5958741307258606, -0.5532007217407227, 0.05526433885097...
seen the output of jruby.bat, the problem appears to either be in finding `_jrubyvars.bat`, or finding something called within it. The only thing it calls is `_jrubyvmopts.bat`, which doesn't call anything else. Make sure that `C:\JRuby120\bin\_jrubyvars.bat` and `C:\JRuby120\bin\_jrubyvmopts.bat` exist, although I can...
[ 0.1018548533320427, 0.3567468822002411, 0.230702206492424, -0.6170253157615662, -0.22670166194438934, -0.2416142076253891, 0.532298743724823, 0.004307550843805075, -0.12104566395282745, -0.7283173203468323, -0.0757366195321083, 0.6282777190208435, -0.4616452753543854, 0.17663708329200745, ...
parent directory: `C:\Program Files\Java\jdk1.6.0_11\`". Give that a try and cross your fingers this time.
[ -0.06306024640798569, 0.25569602847099304, 0.34286636114120483, -0.1716986745595932, 0.21339638531208038, -0.3004186153411865, 0.3642611801624298, 0.20002411305904388, -0.17238561809062958, -0.7793837189674377, -0.038723256438970566, 0.42061135172843933, -0.24413812160491943, 0.21760395169...
I am using Delphi 2007 with all patches and updates. I have a file which is used by two different projects. In that file is a procedure, which I will simplify as follows: ``` procedure MyProcedure; const UniqueValue: integer = 0; begin //some code Inc(UniqueValue); //some more code end; ``` The Inc() comman...
[ -0.07447052747011185, 0.24497611820697784, 0.431705117225647, -0.2380758821964264, -0.0940089300274849, -0.1634472757577896, 0.19554397463798523, -0.04378115013241768, -0.08203410357236862, -0.45384278893470764, 0.10315544158220291, 0.7608001828193665, -0.39364415407180786, 0.1273390352725...
this incorrect code through. Here's what I've tried in project Bogus: 1 - Introduce an obvious error, like typing "slkdjflskdjf" in the middle of a line Result: I get an error,which proves that it is really trying to compile this file. 2 - Delete the .DCU, and rebuild the project Result: The .DCU is re-generated, ...
[ 0.3218618333339691, 0.2738726735115051, 0.09157392382621765, 0.2127489149570465, -0.17735052108764648, -0.1007346585392952, 0.7081471681594849, 0.07678346335887909, -0.07853101193904877, -0.5594287514686584, 0.08868219703435898, 0.6248904466629028, -0.34917956590652466, 0.35225340723991394...
from Delphi 5. Under Delphi 5 with similar code, they both compile fine. **Edit: Thanks for all your help. After changing the assignable typed constants directive, I can get consistent behavior across both projects. I learned something new today...** There is an option for this called "Assignable typed constants" in C...
[ 0.24283485114574432, -0.2849261164665222, 0.01577523536980152, -0.09324198216199875, -0.20435364544391632, -0.2609030306339264, 0.32882019877433777, 0.17897449433803558, -0.30140936374664307, -0.6317923665046692, 0.05765875428915024, 0.7656334042549133, -0.3471813201904297, -0.205391854047...
I am new to rails and trying to do a little refactoring (putting a partial renderer that lists titles in app/views/shared ) The renderer shows the dates along with the titles. However different users of the renderer use different dates. Part way through refactoring I have ``` title_date = list_titles.created_on ``` ...
[ 0.4046366214752197, 0.10273116081953049, 0.3397047519683838, -0.22008484601974487, -0.1891487091779709, -0.2818237543106079, 0.32409241795539856, 0.02972111478447914, 0.032917484641075134, -1.0258021354675293, 0.1760459691286087, 0.42641040682792664, -0.17215225100517273, 0.291944980621337...
date\_wanted string through from the view calling the partial renderer.) The equivalent statement in Ruby: ``` date_wanted = :created_on title_date = list_titles.send(date_wanted) ```
[ 0.19932346045970917, -0.057703614234924316, 0.4904007911682129, -0.3762020468711853, 0.16139620542526245, -0.10796242952346802, 0.18146197497844696, 0.045296866446733475, 0.0252585019916296, -0.3150565028190613, -0.399772971868515, 0.3823927044868469, -0.24145324528217316, 0.37452524900436...
Designing a web app with a admin section and a public facing section. It feels like having a public facing controller just for "index" and "show" is a bit redundant. All the suggestions I've read suggest a namespace for admin, which is fine. I just wonder if I should have one controller with an addition action, say "li...
[ 0.4841228127479553, 0.07259365171194077, 0.04320640116930008, 0.2613842189311981, -0.0560830757021904, 0.13042733073234558, 0.02176283299922943, 0.3205898404121399, -0.3641827702522278, -0.6718757748603821, 0.25666579604148865, 0.5422179698944092, -0.2923243045806885, 0.12590064108371735, ...
Thanks in advance. I would say having both controllers (one public, and one admin) is the best solution. Now what you could do is have both the controllers call the same method that does the related actions in the actions. ``` class MyController < ApplicationController def show MyModel.do_all_sorts_of_stuff e...
[ -0.011838261969387531, -0.023796305060386658, 0.4637981355190277, 0.43994420766830444, 0.2880847454071045, -0.3445475399494171, 0.2961187958717346, -0.057614363729953766, -0.42531999945640564, -0.7308458089828491, -0.32346469163894653, 0.4957852363586426, -0.34758424758911133, -0.143907859...
I want to know how to work out the new co-ordinates for a point when rotated by an angle relative to another point. I have a block arrow and want to rotate it by an angle theta relative to a point in the middle of the base of the arrow. This is required to allow me to draw a polygon between 2 onscreen controls. I can...
[ 0.1315077692270279, 0.2711237370967865, 0.5338693857192993, -0.10697392374277115, -0.11370342969894409, 0.21984577178955078, -0.2272235006093979, 0.11047399044036865, -0.12363506108522415, -0.781694769859314, 0.1593719720840454, 0.15280550718307495, -0.12064160406589508, 0.3998396992683410...
point `(ox, oy)` by angle `theta` you'll get: ``` p'x = cos(theta) * (px-ox) - sin(theta) * (py-oy) + ox p'y = sin(theta) * (px-ox) + cos(theta) * (py-oy) + oy ```
[ -0.26826488971710205, 0.3130287826061249, 0.6272786259651184, -0.34668660163879395, 0.0486207939684391, 0.2986488938331604, -0.23307879269123077, -0.29110753536224365, 0.020856553688645363, -0.5763863921165466, -0.08887441456317902, 0.4357347786426544, 0.1677730828523636, 0.14227195084095,...
Certainly there is some type of context switching, marshaling, serializing, etc that takes place when you choose to write a stored procedure in NET vs T/SQL. Are there any hard facts about this overhead as it relates to making a decision about using .NET vs T/SQL for stored procedures? What factors do you use in orde...
[ 0.1069227010011673, 0.11058048158884048, 0.2145622819662094, 0.3338374197483063, 0.1757802665233612, -0.23640449345111847, -0.22053159773349762, -0.10835861414670944, -0.30344057083129883, -0.4629581570625305, 0.18256613612174988, 0.8868424892425537, 0.013029350899159908, -0.20048768818378...
better 1. Using native .NET objects -- file system, network, etc 2. Using features not offered by TQL or not as good as .NET e.g regular expressions For yet others you will find TSQL procedures are better, either in terms of ease of use or raw execution speed 1. Using set based logic (where abc in def or abc not in ...
[ 0.2602747976779938, -0.31009048223495483, -0.07384012639522552, 0.26637426018714905, -0.3089103400707245, -0.27694177627563477, 0.0653453841805458, -0.397030770778656, -0.16395998001098633, -0.7793043851852417, 0.07454635202884674, 0.721535861492157, -0.3953835964202881, -0.421100407838821...
How can I use Fiddler to confirm that HTTP caching is working? Is there another better way? You can confirm caching by having a page fetch a resource and note that no request for the resource appeared in Fiddler. I can't think of a better way to do it. Works for me.
[ 0.21586190164089203, 0.10080093890428543, 0.48666563630104065, 0.187822163105011, -0.36505594849586487, 0.0033145006746053696, 0.2682003676891327, -0.019636914134025574, -0.07019663602113724, -0.614223062992096, 0.3060154318809509, 0.3230472803115845, 0.037774041295051575, 0.00052047614008...
I am trying to find a jquery content slider that contains say 3 boxes at one time and you can scroll through to reveal more. I have tried the jquery plugin repository and google, I have found ones like the Coda Slider, which I've used. Something along those lines but show three boxes of content at once. I am going t...
[ 0.7220028042793274, -0.3705253601074219, 0.04411230608820915, -0.0534454844892025, 0.013486999087035656, 0.10529302805662155, -0.27482736110687256, 0.29455363750457764, -0.5268093943595886, -0.5391820073127747, 0.19037091732025146, 0.32680055499076843, 0.15897192060947418, 0.05723157152533...
I have a program that reads a bunch of text and analyzes it. The text may be in any language, but I need to test for japanese and chinese specifically to analyze them a different way. I have read that I can test each character on it's unicode number to find out if it is in the range of CJK characters. This is helpful...
[ 0.5627634525299072, 0.31807971000671387, -0.3159969449043274, 0.3460865020751953, -0.11237627267837524, 0.12098795175552368, -0.008932589553296566, 0.0868346244096756, -0.013298067264258862, -0.5765041708946228, 0.10110730677843094, 0.17717255651950836, 0.014348063617944717, 0.147304341197...
character to tell with certainty that it is Japanese or Chinese because of the way the unihan code points are implemented in the Unicode standard. Basically, every Chinese character is a potential Japanese character. However, the reverse is not true. Also, there are a number of conventions that could be used to test to...
[ -0.01643317937850952, -0.018861910328269005, -0.07863675057888031, 0.18178263306617737, 0.005614671390503645, 0.1088414415717125, 0.08996707201004028, -0.08154251426458359, -0.12628895044326782, -0.4156487286090851, -0.056693509221076965, 0.12050692737102509, 0.20169535279273987, -0.200945...
kana](http://en.wikipedia.org/wiki/Kana) characters such as あいうえお then the text block you are working with is definitely Japanese. The problem arises with the sheer number of characters and words that are in common. However, if I needed a quick and dirty solution to this problem, I would check my entire blocks of text...
[ -0.09921763837337494, 0.3400152325630188, -0.2131272852420807, -0.15010719001293182, -0.7476232051849365, 0.4869553744792938, 0.3499653935432434, -0.11132069677114487, -0.20412130653858185, -0.4672347903251648, 0.2079300731420517, 0.05536440387368202, 0.13625898957252502, -0.03887829929590...
In my asp.net mvc application i have service layer, which operated with business object, pass its to repository layer and return to controller. No i can't decide where i need to validate object. First place - use data annotation validation with attribute of component model annotation in business objects class, for exam...
[ -0.04913715645670891, -0.4568096101284027, 0.75706547498703, -0.03136986866593361, -0.09715882688760757, 0.11955218017101288, 0.2865675687789917, -0.42625996470451355, -0.17800721526145935, -0.42756879329681396, -0.07969869673252106, 0.6523135900497437, -0.16168212890625, 0.150826528668403...
_sourceService.SaveSource(src); return RedirectToAction("Index"); } [MetadataType(typeof(Source.MetaSource))] public class Source { private class MetaSource { [Required] public string Name { set; get; } [Required] public string Url { set; get; } } public in...
[ 0.26899558305740356, -0.027212083339691162, 0.27080821990966797, 0.29486262798309326, 0.2001633495092392, 0.07557862997055054, 0.05889873206615448, -0.30031803250312805, 0.0713082030415535, -0.5215302109718323, -0.2469950020313263, 0.6744063496589661, -0.22425474226474762, 0.34819126129150...
public string Url { set; get; } public Source() { ID = null; } ``` Second way - validate objects in service layer, by passing validation dictionary to service layer, for example: ``` [AcceptVerbs("POST")] public ActionResult Edit(Source src) { if (!_sourceService.ValidateSource(...
[ 0.14366188645362854, 0.000041615978261688724, 0.6584356427192688, -0.07208006829023361, -0.12290661036968231, -0.030742468312382698, 0.28894758224487305, -0.2487531155347824, 0.0762391984462738, -0.3936658203601837, -0.52177894115448, 0.5042888522148132, -0.09644056856632233, 0.24025633931...
_sourceService.SaveSource(src); return RedirectToAction("Index"); } public bool ValidateSource(Source srcToValidate) { if (string.IsNullOrEmpty(srcToValidate.Name)) _validationDictionary.AddError("Name", "Name is required."); else if (srcToValidate.Name.Trim().L...
[ -0.1589224934577942, 0.03947097435593605, 0.6677413582801819, -0.07102065533399582, 0.3465610444545746, -0.10187411308288574, 0.2975342571735382, -0.5872470736503601, 0.1037290096282959, -0.2593387961387634, -0.1857513040304184, 0.5234159827232361, 0.0996764749288559, 0.21514032781124115, ...
_validationDictionary.AddError("Url", "Url is required."); else if (srcToValidate.Url.Trim().Length == 0) _validationDictionary.AddError("Url", "Url is required."); return _validationDictionary.IsValid; } ``` I think of create client side validation, and add loc...
[ 0.273789644241333, 0.19302542507648468, 0.5600417256355286, -0.007605908438563347, 0.11349858343601227, -0.3025836944580078, 0.7036593556404114, -0.36848700046539307, -0.009682927280664444, -0.08209339529275894, -0.09180258214473724, 0.535777747631073, -0.2620845139026642, 0.22152954339981...
of this 2 way, or maybe I need choose another way ? The asp.net website offers guidance for three cases: * [Validating with a service layer](http://www.asp.net/learn/mvc/tutorial-38-cs.aspx) * [Simple validation](http://www.asp.net/learn/mvc/tutorial-36-cs.aspx) * [Using IDataErrorInfo](http://www.asp.net/learn/mvc/tu...
[ 0.2575453221797943, -0.039901476353406906, 0.34433624148368835, 0.25258997082710266, -0.12891195714473724, -0.08957672119140625, 0.4687761962413788, -0.4093642830848694, 0.06081932783126831, -0.6873377561569214, -0.07560693472623825, 0.5767759084701538, 0.029367530718445778, -0.31799161434...
I have a web application with a custom configuration section. That section contains information I'ld like to encrypt (was hoping to use ASPNet\_RegIIS rather than do it myself). Web.Config: ``` <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <configSections...
[ 0.2014746218919754, -0.04659807309508324, 0.6254405975341797, 0.1784050464630127, 0.1987786889076233, -0.20061571896076202, 0.047345541417598724, -0.009101838804781437, -0.26675277948379517, -0.8074195981025696, 0.014152136631309986, 0.3099529445171356, 0.03300200030207634, 0.2265280336141...
type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" keyContainerName="MyKeyContainer" useMachineContainer="true" /> </providers> ...
[ -0.07539975643157959, -0.05740393325686455, 0.19443726539611816, -0.056921474635601044, 0.32923877239227295, 0.24387109279632568, 0.41989538073539734, -0.2502997815608978, -0.26541101932525635, -0.6544361710548401, -0.3041003346443176, 0.23101021349430084, -0.112545445561409, 0.19149950146...
</blah> </MyCustomSection> ``` The configuration handler works great before trying to encrypt it. When I try to encrypt it with: > aspnet\_regiis -pef "MyCustomSection" > c:\inetpub\wwwroot\MyWebsite -prov > DataProtectionConfigurationProvider I get an error: > Encrypting configuration section... An > erro...
[ 0.15891282260417938, 0.12784069776535034, 0.667365550994873, -0.06406976282596588, 0.1933377981185913, -0.25375837087631226, 0.4227389097213745, 0.140046626329422, -0.3251267671585083, -0.7322940230369568, -0.3382573425769806, 0.6020395755767822, -0.2040187269449234, 0.13391894102096558, ...
putting my assembly in the GAC for the registration. I also tried my log4net section just to try something that wasn't mine, with no luck. I've run the command prompt as Administrator. Any ideas? Or can ASPNet\_RegIIS just not be used for custom sections? One final shot after viewing [MSDN](http://msdn.microsoft.com/e...
[ 0.4858238399028778, -0.0968572199344635, 0.1572107970714569, -0.07984499633312225, -0.16402104496955872, 0.14223797619342804, 0.4129739999771118, -0.07827460020780563, -0.6337127089500427, -0.8851546049118042, 0.094582200050354, 0.23150870203971863, -0.06032176315784454, 0.2631881833076477...
this by creating directory called `aspnet_regiis_bin` in the same directory as `aspnet_regiis.exe` and an `aspnet_regiis.exe.config` file with `aspnet_regiis_bin` as a private path like this: ``` <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath...
[ 0.1665675938129425, -0.026278387755155563, 0.2597659230232239, 0.09481538832187653, 0.1015121340751648, -0.37580758333206177, 0.4071316421031952, -0.47659415006637573, -0.29494404792785645, -0.8278406858444214, -0.10818977653980255, 0.5231764912605286, -0.35803884267807007, -0.077018141746...
I want to create a stored procedure that takes a simple SELECT statement and return the resultset as a CSV string. So the basic idea is get the sql statement from user input, run it using EXEC(@stmt) and convert the resultset to text using cursors. However, as SQLServer doesn't allow: * select \* from storedprocedure(...
[ 0.25284072756767273, 0.15363121032714844, 0.18060745298862457, 0.06538963317871094, -0.25296321511268616, -0.03751353174448013, 0.41334831714630127, -0.11655919253826141, 0.11630629748106003, -0.6617125868797302, 0.1512758582830429, 0.6066934466362, -0.2667241394519806, 0.13238683342933655...
assign a cursor to the resultset returned by EXEC. SP and UDF do not work with Exec() while creating a temp table before inserting values is impossible without knowing the input statement. I thought of OPENQUERY but it does not accept variables as its parameters. [ScientificPython](http://dirac.cnrs-orleans.fr/plone/...
[ -0.26007652282714844, -0.08271848410367966, 0.9782186150550842, 0.03470775857567787, -0.30727532505989075, 0.37483206391334534, -0.14815177023410797, -0.427926629781723, -0.263522207736969, -0.5109842419624329, -0.03576767072081566, 0.48217272758483887, -0.5655789375305176, 0.0690795183181...
I have a set of three tables: ``` Dining_Tables; +--------------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------------+--------------+------+-----+---------+-------+ | dining_table | int(11) | NO | PRI | NULL | ...
[ -0.38784030079841614, 0.29342120885849, 0.5001094341278076, 0.030470002442598343, 0.18645386397838593, 0.4511706829071045, -0.01106321718543768, -0.24399633705615997, 0.09673057496547699, -0.7623736262321472, 0.0026047970168292522, 0.2878170311450958, -0.248126819729805, 0.3039891719818115...
| | | waiter | varchar(35) | NO | | NULL | | | server | varchar(35) | NO | | NULL | | +--------------------+--------------+------+-----+---------+-------+ Poker_Tables; +--------------------+--------------+------+-----+---------+-------+ | Field
[ -0.6173948645591736, 0.20610924065113068, 0.44613078236579895, 0.027948254719376564, 0.12554630637168884, 0.2444436252117157, 0.3307761251926422, -0.2431967407464981, -0.31173041462898254, -0.2676566541194916, -0.2629854083061218, 0.43424758315086365, -0.3249041736125946, -0.00804546382278...
| Type | Null | Key | Default | Extra | +--------------------+--------------+------+-----+---------+-------+ | poker_table | int(11) | NO | PRI | NULL | | | dealer | varchar(35) | NO | | NULL | | | pit_boss
[ -0.6152853965759277, 0.043866392225027084, -0.012520971707999706, -0.0242285318672657, 0.3896467387676239, 0.2449546605348587, 0.06509685516357422, -0.43699362874031067, -0.3897625803947449, -0.2153163105249405, -0.11095546931028366, 0.3832904100418091, -0.34845325350761414, 0.174880549311...
| varchar(35) | NO | | NULL | | +--------------------+--------------+------+-----+---------+-------+ Computer_Tables; +--------------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------------+--------------+------+---...
[ -0.5329063534736633, -0.01909780688583851, 0.3024928569793701, 0.017312919721007347, -0.04775071144104004, 0.1746647208929062, 0.020818237215280533, -0.44277799129486084, -0.2452024221420288, -0.0952228382229805, -0.20539337396621704, 0.640034019947052, -0.20871363580226898, 0.056172549724...
| varchar(35) | NO | | NULL | | +--------------------+--------------+------+-----+---------+-------+ ``` Each of these rows has globally unique table id associated with it: (`dining_table`, `poker_table`, `computer_table`) The other columns store the First/Last name of the person fulfilling the roll. ...
[ 0.3587318956851959, 0.3833516538143158, -0.06597606837749481, 0.09557327628135681, 0.13538429141044617, 0.23073884844779968, -0.1027912050485611, -0.080935537815094, -0.3689785897731781, -0.22920958697795868, -0.10942188650369644, 0.23014158010482788, -0.4686352014541626, 0.134942606091499...
to retrieve all the `table_ids` for a given person. Specifically, the query would then return a list of `table_ids` that Joe Smith is currently at. I could do something along these lines: ``` select dining_table from Dining_Tables where bus_boy = "Joe Smith" or waiter = "Joe Smith" or server = "J...
[ 0.08307548612356186, 0.35924968123435974, -0.12492520362138748, 0.043281953781843185, 0.3573204278945923, -0.03095639869570732, -0.049491725862026215, -0.02043641172349453, -0.5036293268203735, -0.7436452507972717, -0.022503292188048363, 0.424395352602005, -0.17965729534626007, -0.13015991...
programmer = "Joe Smith"; ``` However, that's three seperate queries and I'd really prefer to avoid doing that if possible. Can I do it in one query using joins? If you want to return it in a single query you could use a UNION statement that would join those three queries into one. > ``` > select dining_table as Tab...
[ 0.1845000684261322, 0.27680328488349915, -0.14001773297786713, -0.05135276913642883, -0.03975342586636543, 0.17452757060527802, 0.17222264409065247, -0.18375079333782196, -0.27075836062431335, -0.6333944797515869, 0.0010296219261363149, 0.3848091959953308, -0.5531120896339417, 0.2361207455...
where > dealer = "Joe Smith" or > pit_boss = "Joe Smith" > UNION > select computer_table as Table from Computer_Tables where > programmer = "Joe Smith" > > ``` Although it is three statements, it would be returned as a single result set. If you separated your "jobs" into a separate table, it wou...
[ -0.004043866414576769, 0.43318262696266174, -0.04669151455163956, -0.02970888279378414, -0.08463656157255173, 0.0950840562582016, -0.23665893077850342, -0.2906789779663086, -0.3100530505180359, -0.568027138710022, 0.2396991103887558, 0.3554062843322754, -0.21511004865169525, -0.11658184230...
Computer Tables ID TableTypeID ---------------------------- 1 1 2 1 3 2 4 3 5 2 6 3 Persons ID Name --------------------------- 1 Joe Smith 2 Mary Belcher 3 Norma Grey Roles ID RoleName ----------------------------- 1 Bus Boy 2 Waiter 3 Server 4 Dealer 5 ...
[ -0.28714120388031006, 0.4198767840862274, 0.16221237182617188, 0.445089727640152, 0.4326173663139343, 0.36763429641723633, -0.3991459012031555, 0.24320803582668304, -0.5155470967292786, -0.6414506435394287, 0.24973133206367493, 0.4626162052154541, 0.06902645528316498, -0.07393518835306168,...
PersonID ----------------------------- 1 1 1 //etc //etc ``` This would make all of your querying very simple and straightforward and also makes it scalable (so you can add more roles to each table without mucking your database)
[ -0.6641517281532288, -0.28086555004119873, 0.4275686740875244, 0.08191341161727905, -0.1893005222082138, 0.1643536239862442, 0.2735815644264221, -0.11318175494670868, 0.03964598849415779, -0.6994898915290833, -0.046981748193502426, 0.5452477931976318, -0.3495340645313263, -0.22741609811782...
I have a peculiar problem with Log4j. We are deploying on Weblogic 10 using `log4j.xml`. That works fine. We figured a way to run Tomcat 6 in such a way that we can develop on this platform and deploy on Weblogic 10. I have figured out how to make `log4j.properies` work with Tomcat 6 with additional JArs that use the ...
[ 0.052195269614458084, 0.36568617820739746, 0.35379260778427124, -0.022820821031928062, -0.18466567993164062, -0.1397675722837448, 0.40480339527130127, -0.04349737614393234, -0.14993740618228912, -0.5915510654449463, -0.12774823606014252, 0.6930299997329712, -0.4009414315223694, 0.138635650...
my question is how does on convert the following `log4j.xml` entries to `log4j.properties` ``` <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="vccashib" class="org.apache.log4j.DailyRollingF...
[ 0.2773269712924957, 0.021682394668459892, 0.19557902216911316, 0.025308966636657715, -0.06828931719064713, 0.15368501842021942, 0.11570966243743896, -0.6022125482559204, -0.23309747874736786, -0.621886670589447, 0.0508190393447876, 0.28938040137290955, -0.20848757028579712, 0.1347945183515...
`log4j.properties`? (I have taken care of a other values, such as type of appenders, DatePattern, ConversionPattern, FileName, layout etc.) Please note, I have sent you the only problem-specific code. Alternatively, if you know the answer on how to make `log4j.xml` that is part of my war archive with Tomcat 6 (JULI j...
[ -0.027240341529250145, 0.33832263946533203, 0.03933781385421753, 0.2504955232143402, -0.24549075961112976, -0.06007103621959686, 0.3158622682094574, -0.029467642307281494, -0.2571145296096802, -0.6234256029129028, -0.21222618222236633, 0.7092049717903137, -0.08753867447376251, -0.137782409...
out how to make `log4j.properies` work with Tomcat 6 with additional jars that use the JULI logging mechanism in Tomcat 6"). * is the config in the proper location? * are some of your jars being loaded from the global tomcat (`$TOMCAT_HOME/lib`) directory? If so the library might be looking for the config from the gl...
[ 0.1947028487920761, 0.28402629494667053, 0.399493008852005, -0.1313379406929016, 0.33683156967163086, 0.15688994526863098, 0.41023874282836914, -0.4443674385547638, -0.2763964831829071, -0.34535783529281616, -0.006587732583284378, 0.49248528480529785, -0.35009661316871643, 0.01845469139516...
package will # get logged here log4j.category.com.foo=DEBUG,Foo log4j.appender.Foo=org.apache.log4j.RollingFileAppender log4j.appender.Foo.layout=org.apache.log4j.PatternLayout log4j.appender.Foo.layout.ConversionPattern=%-d %-5p [%t] %c{1} %3x - %m%n log4j.appender.DetailLogFile.File=foo.log #this is the important lin...
[ 0.31891876459121704, -0.06452672183513641, 0.3891465365886688, -0.2760079503059387, 0.06661088764667511, 0.00005930883708060719, 0.4908813536167145, -0.6476147770881653, -0.019589805975556374, -0.7102465629577637, -0.07484796643257141, 0.7914887070655823, -0.346293181180954, -0.11242237687...
### Duplicate: > [Should I default my website to www.foo or not?](https://stackoverflow.com/questions/355217/should-i-default-my-website-to-www-foo-or-not) --- To be quite honest, I'm ignorant as to what the differences between "<http://example.com>" and "<http://www.example.com>" are. I typically always use the sh...
[ 0.5684586763381958, 0.3020186722278595, 0.47135740518569946, -0.23635540902614594, -0.21635021269321442, -0.031153440475463867, 0.27312546968460083, 0.3578900098800659, -0.4628065526485443, -0.4007858633995056, 0.012601437047123909, 0.5472180247306824, -0.5277186036109924, 0.21038144826889...
special about it. Back when most of the interaction with the Internet was services other than HTTP, it made sense to have the HTTP traffic use a specific subdomain. Nowadays, the vast majority of domain names exist simply to serve up HTTP traffic, so the distinction is unnecessary. I think it's generally preferred to u...
[ 0.7355209589004517, -0.16055944561958313, 0.1673165112733841, 0.05010983347892761, -0.5035073161125183, -0.29000595211982727, -0.18146149814128876, 0.5048972964286804, -0.41958001255989075, -0.16204145550727844, 0.06277591735124588, 0.08606168627738953, 0.08019355684518814, 0.3043976128101...
Anyone know of anything in VisualStudio to make your life easier when you have a bunch of files open that are named the same thing? Pretty often I'll have a bunch of files open with the same name and I don't know of any way distinguish them so I just have to go through the solution explorer. Is there a setting to add h...
[ 0.3578495383262634, 0.01833672821521759, 0.45189905166625977, 0.283195436000824, -0.24568359553813934, -0.38255926966667175, 0.31214672327041626, 0.25625085830688477, -0.3514350950717926, -0.5900522470474243, 0.06811067461967468, 0.560326099395752, 0.025874000042676926, -0.0680125728249549...
still a little cumbersome as you have to arrow around to see the full path, and when there are lots of files open it isn't really any faster than using solution explorer. I mouse over the tab and it shows me the file directory. Also since you are using Resharper you can use this keyboard shortcut and it will highlight...
[ -0.0425727441906929, -0.23879995942115784, 0.537747323513031, -0.023412132635712624, -0.051042985171079636, 0.22375033795833588, 0.3416562080383301, -0.06126398593187332, -0.12403663992881775, -1.0844638347625732, 0.17901228368282318, 0.8418294787406921, -0.18871299922466278, -0.0909102186...
based on which folder you want.
[ 0.6906986832618713, 0.11461901664733887, 0.20992843806743622, 0.2529294490814209, 0.07856541126966476, -0.03201959654688835, -0.4564300775527954, 0.06667759269475937, -0.23454566299915314, -0.2886577248573303, -0.19078746438026428, 0.34704160690307617, -0.0324920117855072, 0.07665552198886...
I have an array like [1,1,1,2,4,6,3,3] and I would like to get the list of repeated elements, in this case [1,3]. I wrote this: ``` my_array.select{|obj|my_array.count(obj)>1}.uniq ``` But it is tragically inefficient (o(n²)). Do you have a better idea? If possible concise. Thanks Inspired by Ilya Haykinson's answe...
[ -0.09056444466114044, 0.00921475701034069, 0.26421478390693665, -0.01927858404815197, -0.23095019161701202, 0.4917561709880829, 0.45021194219589233, -0.5683084726333618, -0.34834805130958557, -0.38201823830604553, 0.04963298887014389, 0.3099213242530823, -0.48235926032066345, 0.45586881041...
I have the following inner class: ``` @Entity @Table(name = "SATTET0") public class SATTET0Key { @Column(name="IESTATUT") public String estatut; @Column(name="IINICIO") public Date dataInicio; } ``` In the same class i have the following code: ``` Query q = exp.c...
[ -0.1973244696855545, -0.3816710114479065, 0.39753860235214233, -0.04722660779953003, 0.2375330924987793, 0.0786280706524849, -0.0044501107186079025, -0.12301339209079742, 0.13246454298496246, -0.5687626004219055, -0.11156037449836731, 0.25978991389274597, -0.21743746101856232, 0.3244381248...
"\n SATTET0 WHERE IESTATUT=? AND DATAFIM IS NULL ", SATTET0Key.class); q.setParameter(1, estatuto); try { key = (SATTET0Key) q.getSingleResult(); return key; } catch (NoResultException e) { return null; } ``` When i run this code i get the followin...
[ -0.2891060411930084, -0.2536296844482422, 0.3770550787448883, -0.3448607921600342, 0.18021075427532196, 0.08724939823150635, 0.6212840676307678, -0.3179442286491394, -0.15344659984111786, -0.5275881886482239, -0.3513365089893341, 0.3254297971725464, -0.5184720754623413, 0.1141706258058548,...
; nested exception is: <openjpa-1.1.0-r422266:657916 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Índice de colunas inválido at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:105) at weblogic.ejb.container.internal.Remote...
[ -0.35417506098747253, 0.14338737726211548, 0.08176085352897644, 0.009543240070343018, 0.13167569041252136, 0.2764328718185425, 0.5860567092895508, -0.51535564661026, -0.19555148482322693, -0.6451655626296997, -0.3427078425884247, 0.3717605471611023, -0.33378908038139343, 0.0985546782612800...
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runn...
[ -0.36841365694999695, 0.2143705189228058, 0.2129121720790863, 0.06370177119970322, -0.20708709955215454, 0.3404574394226074, 0.5122568607330322, -0.43535277247428894, -0.28586462140083313, -0.6962925791740417, -0.26480910181999207, 0.3264423906803131, -0.21588245034217834, 0.14540158212184...