text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
</Trigger> <Trigger Property="IsChecked" Value="False"> <Setter Property="Source" TargetName="checkImage" Value="..\..\images\nocheck.png" /> </Trigger> </ControlTemplate.Triggers>
[ 0.15519312024116516, -0.2609025835990906, 0.07013323158025742, 0.10238656401634216, 0.04831631854176521, -0.0026835063472390175, 0.06787559390068054, -0.5859441161155701, -0.0858554020524025, -0.42233631014823914, -0.24266836047172546, 0.47841569781303406, -0.3094068169593811, -0.094125762...
</ControlTemplate> </Setter.Value> </Setter> </Style> ``` I had problems reading the "IsEnabled" property from the actual DataGrid column settings (its property is "IsReadOnly") but because my use of the DataGrid is read-only, I just set it to false here.
[ -0.1506763994693756, 0.2325068563222885, 0.485665887594223, -0.14355586469173431, 0.007268722169101238, -0.29032644629478455, 0.5451880097389221, -0.13459381461143494, 0.02745675854384899, -0.4732154607772827, 0.09892136603593826, 0.7254734039306641, -0.15626160800457, 0.21752209961414337,...
I have CSS that looks like this... ``` .ColorSeparatorArea { background-color: #3d3d77; height: 1px; } ``` ... and then I'm applying that style to a DIV element: ``` <div class="ColorSeparatorArea"></div> ``` It works fine in non-IE browsers, but in IE, it sets the height of the div to the height of one l...
[ -0.05947984755039215, 0.11572712659835815, 0.4684556722640991, -0.21570414304733276, -0.32854384183883667, 0.10509506613016129, 0.30001765489578247, -0.1430661678314209, -0.16018828749656677, -0.7998807430267334, -0.12894906103610992, 0.38887038826942444, -0.32317912578582764, -0.183770194...
I have a form that I am using to try and update a field on a 'thing', However, I'm getting massive problems that is probably down to something stupid. My code is as follows: ``` <% form_for :thing, :url => { :action => "update" } do |f| %> <%= f.collection_select :status_id, Thing.statuses, :first, :last %> <...
[ 0.1288090944290161, -0.05430379882454872, 0.31838637590408325, -0.14178334176540375, -0.12699145078659058, -0.02904847450554371, 0.4243835210800171, -0.24887539446353912, -0.2978220283985138, -0.6318033337593079, 0.13012410700321198, 0.22213618457317352, -0.17516952753067017, 0.14250561594...
(and I'm assuming you are) you could just do this: ``` <% form_for @thing do |f| %> <%= f.collection_select :status_id, Thing.statuses, :first, :last %> <%= f.submit 'Submit' %> <% end %> ``` And this will point to the correct action depending on if `@thing` is a `new_record?` or not.
[ 0.3171546459197998, -0.24276138842105865, 0.25424355268478394, 0.02777581848204136, 0.17692486941814423, -0.10199543088674545, -0.030476830899715424, -0.3358713984489441, -0.35530561208724976, -0.34105193614959717, -0.1354675441980362, 0.5725725293159485, -0.026791980490088463, 0.070361778...
What is the recommended approach to naming base classes? Is it prefixing the type name with "**Base**" or "**Abstract**" or would we just suffix it with "Base"? Consider the following: type: `ViewModel` e.g. *MainViewModel*, *ReportViewModel* base class: `BaseViewModel` or `ViewModelBase` or `AbstractViewModel` Als...
[ 0.2329193502664566, -0.06939024478197098, 0.2882537543773651, -0.1048247218132019, -0.31652674078941345, -0.045084621757268906, -0.05832809582352638, -0.054290883243083954, -0.18133413791656494, -0.5126727819442749, -0.1904800683259964, 0.4183126389980316, -0.14338167011737823, 0.248860761...
to emphasize the fact that it's an abstract class and felt that otherwise users of the class might expect the name to indicate a concrete implementation.
[ 0.2577763497829437, -0.20636679232120514, -0.5158471465110779, -0.01452220231294632, -0.14857016503810883, -0.12505461275577545, 0.35308292508125305, 0.220005065202713, -0.1047496497631073, -0.07827796041965485, -0.32584652304649353, 0.10421951860189438, -0.21493296325206757, 0.20301617681...
and thanks for reading. I am building a data entry form. I am trying to figure out a way to let the user to provide a criteria (last name for instance), search the employee table for all employees that match the criteria, display the result in a way they can select the correct employee, and pass the the ID of that emp...
[ 0.41664162278175354, -0.03574404865503311, -0.0005346741527318954, 0.2763325870037079, 0.033276453614234924, -0.2358560413122177, -0.07426328212022781, 0.03702569380402565, -0.47137051820755005, -0.4527928829193115, 0.24324233829975128, 0.3278050422668457, 0.13942387700080872, -0.291291207...
that stores the id. Use autocomplete via AJAX to get a list of name/id pairs returned as JSON based on the search criteria. Have the autocomplete set up to force selection from the list -- which will disallow any non-matching text in the field. When the user selects an item from the list have the result function store ...
[ 0.06326490640640259, -0.15792159736156464, 0.3282645642757416, 0.06825345009565353, 0.054746076464653015, 0.25560250878334045, 0.021576521918177605, -0.15773971378803253, -0.04719620943069458, -0.599328875541687, -0.356222927570343, 0.48457756638526917, -0.35614433884620667, 0.078899569809...
cacheLength: 1, mustMatch: true, formatItem: function(data,i,max,value) { return value; }, parse: function(data) { var array = new Array(); for (var i=0; i < data.length; i++) { var datum = data[i]; var display = datum.FirstName + ' ' + datum.LastName;
[ -0.0504591278731823, -0.15886308252811432, 0.3065866231918335, -0.12381646037101746, 0.052621517330408096, 0.4632004499435425, 0.49462890625, -0.5257657170295715, 0.06645889580249786, -0.559916079044342, -0.2708401381969452, 0.3097192943096161, -0.18697549402713776, 0.3738095462322235, 0...
array[array.length] = { data: datum, value: display, result: display }; } } }); $('#searchBox').result( function(event, data, formatted) { if (data) { $('#employeeID').val( data.EmployeeID ); } }); $('form').submit( function() { if (!$('#employeeID').val()) { alert( 'You must sel...
[ -0.1420193910598755, -0.4298820197582245, 0.37597861886024475, -0.21913474798202515, -0.04658239334821701, 0.2549142837524414, 0.08391387015581131, -0.4653280973434448, -0.293643981218338, -0.546387255191803, -0.4155764579772949, 0.6736807227134705, -0.40396562218666077, 0.0615646466612815...
int limit ) { var query = db.Employees.Where( e => e.LastName.StartsWith( q ) ) .OrderBy( e => e.LastName ) .Select( e => new
[ -0.11482151597738266, -0.20317783951759338, 0.49287891387939453, -0.23152120411396027, 0.3036402761936188, 0.24875442683696747, 0.22456452250480652, -0.4715832471847534, 0.0760008692741394, -0.43707355856895447, -0.2922680079936981, 0.37531864643096924, -0.17919625341892242, 0.567309677600...
{ FirstName = e.FirstName, LastName = e.LastName,
[ -0.399783194065094, -0.09267217665910721, 0.07969757914543152, 0.01850510574877262, 0.39284181594848633, 0.39102110266685486, 0.15700548887252808, 0.07833681255578995, 0.18082839250564575, -0.7093551754951477, -0.5863568186759949, 0.30335190892219543, -0.17872457206249237, 0.24815665185451...
EmployeeID = e.EmployeeID }); if (limit > 0) { query = query.Take(limit); } return Json( query.ToList() ); } public ActionResult SomeAction( int employeeID, ... ) { ... } ```
[ -0.3372516334056854, -0.4608898162841797, 0.3626895248889923, -0.3818276524543762, 0.13781531155109406, -0.0866541638970375, 0.17993301153182983, -0.16834965348243713, -0.09058861434459686, -0.40627697110176086, -0.3736147880554199, 0.4319731891155243, -0.4070286154747009, -0.1168445274233...
I'm new to usercontrols, having only created one so far, so bear with me. I've been reading today that usercontrols are supposed to be self-contained and not rely on any information from the parent container. I get that part, but what I'm having trouble understanding is the "right" way to design my program around that ...
[ 0.26096606254577637, 0.10300419479608536, 0.583607017993927, 0.1543421745300293, 0.11830119788646698, -0.17942646145820618, -0.32883358001708984, -0.1545037031173706, -0.11539115756750107, -0.5895808935165405, 0.00694691389799118, 0.4344867765903473, -0.21370166540145874, -0.15321695804595...
show the results of an SQL stored procedure. I'd really like to reuse this control, but I can't figure out how to "tell" the usercontrol what stored procedure I'd like to run for the specific page I'm on without violating the "don't rely on the parent container" rule. Thanks Don't rely on the parent container doesn...
[ 0.5633469820022583, 0.13555191457271576, -0.03065980225801468, 0.38222670555114746, 0.02305794693529606, -0.4236288368701935, 0.3997568190097809, 0.20286619663238525, -0.03226550295948982, -0.50154048204422, 0.13271762430667877, 0.5472193360328674, -0.22272269427776337, 0.14259769022464752...
might not be ideal, but you would be using the user control to provide a separation of code.
[ 0.2697432041168213, -0.004980340600013733, -0.20679423213005066, 0.3686125576496124, 0.0729733258485794, -0.06353270262479782, -0.033044878393411636, -0.13350042700767517, 0.016740506514906883, -0.3863256871700287, 0.04635492339730263, 0.4257740080356598, -0.16504965722560883, 0.0291776210...
I'm using the OnIdle-event for some simple animations, and it works all right. The trouble, though, is when the user starts to move or resize the window, the OnIdle-event stops firing until the move/resize-operation is completed. I need to detect when this happens, so that I can pause all animations. But how do I det...
[ 0.09551791101694107, -0.12005969136953354, 0.5778989791870117, -0.21032926440238953, 0.10990174859762192, 0.374525249004364, 0.28982672095298767, -0.21162301301956177, -0.5066620111465454, -0.7220442891120911, -0.29322776198387146, 0.5551362037658691, -0.2748403251171112, 0.050172720104455...
WMExitSizeMove(var Message: TMessage) ; message WM_EXITSIZEMOVE; procedure TForm.WMEnterSizeMove(var msg: TMessage); begin AnimationTimer.Enabled := false; inherited; end; procedure TForm.WMExitSizeMove(var msg: TMessage); begin AnimationTimer.Enabled := true; inherited; end; ```
[ -0.1108175665140152, -0.184828519821167, 0.614251971244812, -0.2508030831813812, 0.33527594804763794, 0.3452877998352051, 0.5533843636512756, -0.15574340522289276, -0.26020604372024536, -0.6369338035583496, -0.8183121085166931, 0.506286084651947, -0.4222218990325928, 0.3645789623260498, ...
I'm looking over .NET ORM implementations, and I have a major burning question - are there any .NET ORM implemenations that don't require public properties for every field in the database? When I see examples like [this](https://web.archive.org/web/20090831053827/http://blogs.hibernatingrhinos.com/nhibernate/archive/20...
[ 0.13114453852176666, 0.001914134481921792, 0.17839129269123077, -0.07578274607658386, -0.5215494632720947, -0.20996148884296417, 0.24882598221302032, -0.055507250130176544, -0.3578347861766815, -0.25880882143974304, -0.16557113826274872, 0.45598408579826355, -0.20638224482536316, 0.3918138...
strategies for class members. Public properties are a de-facto default but you can tell NHibernate to access the fields of your class directly. e.g. ``` <property name="CustomerName" access="field.camelcase-underscore" /> ``` will instruct NHibernate to use a field in your class declared like this: ``` protected s...
[ -0.28723907470703125, -0.3107292056083679, -0.01659085601568222, -0.006261225789785385, 0.039940398186445236, -0.030759185552597046, 0.22032779455184937, -0.1619671881198883, -0.08842875808477402, -0.736048698425293, -0.450517863035202, 0.8297244310379028, -0.291757196187973, -0.0491769425...
Why does constructor ORDER matter in VB.Net? I am building a .Net type library which is meant to wrap an underlying COM library completely so that the consumers of the API can pretend to use a nice .Net library with .Net collections and whatnot instead of a COM library. Currently most of my classes are just 1 to 1 wra...
[ 0.5056388974189758, -0.013235580176115036, -0.02547609992325306, 0.03922325745224953, -0.3725990951061249, 0.1326560080051422, -0.06595806777477264, -0.13480353355407715, -0.12459105253219604, -0.6459764838218689, 0.1427481770515442, 0.5776330232620239, -0.2942463159561157, 0.1816367805004...
All I need is a reference to the .Net library and all works good. The problems appear when I try using these classes from a VB.Net project. If the first constructor has a COM type as an argument, the VB.Net project requires the COM interop assembly as a reference. If the first constructor has no arguments or has only ...
[ 0.3143584132194519, 0.18102145195007324, 0.2599136531352997, -0.1565374732017517, 0.01177706103771925, 0.01614012010395527, 0.19386087357997894, -0.10071618854999542, 0.09445680677890778, -0.829305112361908, -0.057760633528232574, 0.8517234921455383, -0.38323187828063965, 0.121993690729141...
this.ID = id; } internal ObjectID(COMLib.ObjectID id) : this(id.Type, id.ID) { } public int ID { get; set; } public int Type { get; set; } internal COMLib.ObjectID ToCOM() { COMLib.ObjectID id = new COMLib.ObjectID(); id.ID = this.ID; id.Type = this.Type; retur...
[ 0.17572857439517975, 0.2330198436975479, 0.6665122509002686, -0.08001048117876053, 0.27088049054145813, -0.16520443558692932, 0.07383421063423157, -0.3972610831260681, 0.11542390286922455, -0.7017276883125305, -0.24220746755599976, 0.7887877821922302, -0.5578067302703857, 0.334171712398529...
to the COMLib.Interop assembly: ``` public class ObjectID { internal ObjectID(COMLib.ObjectID id) : this(id.Type, id.ID) { } public ObjectID(int type, int id) { this.Type = type; this.ID = id; } public int ID { get; set; } public int Type { get; set; } internal COMLib.Obj...
[ 0.09772228449583054, -0.24037934839725494, 0.5182818174362183, -0.182245671749115, 0.12664327025413513, 0.1766689568758011, 0.07651463896036148, -0.2519693672657013, 0.04417255520820618, -0.6894097924232483, -0.5402812957763672, 0.7467575669288635, -0.6217808127403259, 0.2766980528831482, ...
id.ID = this.ID; id.Type = this.Type; return id; } } ``` Now I can solve this by creating a dummy private constructor to these classes as the first constructor but I'm more curious about what causes this? Why does the order of the constructor declarations matter in VB.Net? **Update** This sounde...
[ 0.38918790221214294, -0.02009766362607479, 0.1495485007762909, 0.1139598861336708, -0.19944025576114655, -0.026822859421372414, 0.18577122688293457, -0.5351409912109375, -0.28743475675582886, -0.5078144073486328, 0.03126266598701477, 0.4806509017944336, -0.35487762093544006, 0.207220375537...
Wrapper ``` namespace Wrapper { public class Class1 { internal Class1(Wrapped.Class1 c) { } public Class1() { } } } ``` VB.Net Console app: Referer ``` Module Module1 Sub Main() Dim w As New Wrapper.Class1 End Sub End Module ``` Wrapper refers to Wrapped Referer refers ...
[ 0.09817330539226532, -0.19205285608768463, 0.8551381826400757, -0.23392151296138763, 0.10872145742177963, 0.09201705455780029, 0.23935705423355103, -0.38941970467567444, -0.20429295301437378, -0.3699539303779602, -0.49444782733917236, 0.5556000471115112, -0.37971746921539307, 0.17500382661...
Culture=neutral, PublicKeyToken=null' containing the type 'Wrapped.Class1'. Add one to your project. ``` Swapping the order of constructors takes care of the error. <https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=442224> **Update after playi...
[ 0.7435681819915771, -0.26125454902648926, 0.4764704704284668, 0.24394120275974274, -0.24878425896167755, 0.10502620786428452, 0.29804927110671997, -0.14960630238056183, -0.005378253757953644, -0.7267737984657288, 0.05900513380765915, 0.24373584985733032, -0.25819131731987, -0.0260817110538...
No error: Vb-ReferTest Vb-RefererTest | | Fixes error in Vb- V
[ -0.21387916803359985, 0.26880118250846863, 0.3610784113407135, -0.05354881286621094, -0.1344362050294876, 0.23282389342784882, 0.5079295635223389, -0.09345237165689468, 0.06830502301454544, -0.399873286485672, -0.28109344840049744, 0.6557928323745728, -0.010012900456786156, 0.0770749077200...
V RefererTest even Cs-Wrapper Cs-Wrapper Vb-Wrapper <- if the Vb-Wrapper | \ /
[ -0.2323901504278183, 0.203658327460289, 0.5686313509941101, -0.1797410100698471, -0.17258700728416443, -0.08569495379924774, 0.15898697078227997, 0.08077701181173325, 0.019825221970677376, -0.39365172386169434, -0.3546288013458252, 0.325326144695282, -0.4574989974498749, 0.1304481327533722...
and the RefererTest V V V have no direct Cs-WrappedLibrary Cs-WrappedLibrary relationship ``` If correct (I can't easily verify), that is fasinating. The order shouldn't
[ 0.025086957961320877, 0.2048359215259552, 0.42995551228523254, 0.037122730165719986, -0.31700700521469116, 0.01752711459994316, 0.169719398021698, 0.12099136412143707, -0.22224952280521393, -0.26946327090263367, -0.27719253301620483, 0.2796016335487366, -0.4434475302696228, 0.4729112088680...
matter, AFAIK. If you are sure about it, then perhaps [log as a bug on connect](http://connect.microsoft.com/VisualStudio) (with sample code).
[ 0.9468889832496643, -0.12131676077842712, 0.583257257938385, 0.2632867395877838, -0.12254325300455093, 0.06907918304204941, 0.21398873627185822, 0.17901985347270966, -0.21499811112880707, -0.5072979927062988, 0.046033505350351334, 0.3651529848575592, -0.2588188350200653, 0.2339559048414230...
In a TImage's OnClick event, I would like to extract the x,y coordinates of the mouse. I would prefer them in relation to the image, but in relation to the form or window is just as good. Mouse.CursorPos contains the TPoint, which in turn contains the X and Y position. This value is in global coordinates, so you can tr...
[ -0.175006702542305, -0.27343299984931946, 0.8003613352775574, -0.15282107889652252, 0.2185458391904831, 0.17798221111297607, 0.06322500854730606, -0.23830950260162354, 0.007753980811685324, -0.7817718982696533, -0.3272489905357361, 0.46340784430503845, -0.520465612411499, -0.19826778769493...
:= Mouse.CursorPos; // now have SCREEN position Label1.Caption := 'X = '+IntToStr(pt.x)+', Y = '+IntToStr(pt.y); pt := ScreenToClient(pt); // now have FORM position Label2.Caption := 'X = '+IntToStr(pt.x)+', Y = '+IntToStr(pt.y); end; ```
[ -0.06953678280115128, -0.20187929272651672, 1.0759148597717285, -0.07994555681943893, 0.21048450469970703, 0.25799962878227234, 0.14806689321994781, -0.15794169902801514, -0.16263073682785034, -0.9235198497772217, -0.42456260323524475, 0.4717843532562256, -0.2788008749485016, 0.12803736329...
I'm a newbie to WMI and I need to implement [RegistryValueChangeEvent](http://msdn.microsoft.com/en-us/library/aa393042(VS.85).aspx) in a C# service. I need an event handler that gets triggered each time any one of a set of registry values is changed. I want behavior similar to the [FileSystemWatcher](http://msdn.micr...
[ 0.3645842373371124, -0.17293116450309753, 0.3487967252731323, -0.07710807025432587, -0.04898357391357422, -0.1525413542985916, 0.19901911914348602, -0.3499629497528076, -0.16893506050109863, -0.5720100998878479, 0.07159944623708725, 0.6248421669006348, -0.15943965315818787, 0.1368428915739...
If I can get an example for watching just one registry value, that would be fine. I need a solution in .Net 2.0 Thanks. WMI can sometimes be interesting to work with...I think I understand your question, so take a look at the code snippet below and let me know if it's what you're looking for. ``` // ----------------...
[ -0.1485934853553772, -0.082284115254879, 0.30657103657722473, 0.40301889181137085, 0.3555057942867279, -0.486197292804718, 0.26428237557411194, 0.02246355451643467, 0.0034574358724057674, -0.8661184310913086, 0.09460622817277908, 0.7003394365310669, -0.10043840855360031, 0.2814482152462005...
{ /// <summary> /// Initializes a new instance of the <see cref="WmiChangeEventTester"/> class. /// </summary> public WmiChangeEventTester() { try { // Your query goes below; "KeyPath" is
[ 0.09677748382091522, -0.3066069483757019, 0.35479944944381714, 0.03911407291889191, 0.48419493436813354, -0.11553094536066055, 0.48700767755508423, -0.3986356258392334, 0.062063783407211304, -0.687713623046875, 0.07690934836864471, 0.6514995694160461, -0.3052222430706024, 0.093281440436840...
the key in the registry that you // want to monitor for changes. Make sure you escape the \ character. WqlEventQuery query = new WqlEventQuery( "SELECT * FROM RegistryValueChangeEvent WHERE " +
[ -0.1886260211467743, -0.22867631912231445, 0.7476051449775696, -0.057947009801864624, 0.6002286076545715, -0.13485781848430634, 0.4216547906398773, -0.018753526732325554, -0.2664123475551605, -0.6890493631362915, -0.19548764824867249, 0.6970632672309875, -0.1198263093829155, 0.397875905036...
"Hive = 'HKEY_LOCAL_MACHINE'" + @"AND KeyPath = 'SOFTWARE\\Microsoft\\.NETFramework' AND ValueName='InstallRoot'"); ManagementEventWatcher watcher = new ManagementEventWatcher(query); Console.WriteLine("Waiting for an event..."); // Set up the deleg...
[ 0.14959189295768738, -0.4446629583835602, 0.5136825442314148, -0.05299034342169762, 0.5009627938270569, -0.2008347511291504, 0.10244067013263702, -0.25171732902526855, -0.29060569405555725, -0.7921239733695984, -0.31609925627708435, 0.4579593539237976, -0.3618907928466797, 0.27613285183906...
watcher.EventArrived += new EventArrivedEventHandler(HandleEvent); // Start listening for events. watcher.Start(); // Do something while waiting for events. In your application, // this would just be continuing business as
[ 0.35754087567329407, -0.4013504981994629, 0.5226120352745056, -0.16261723637580872, 0.27953386306762695, -0.4423978924751282, 0.4553619921207428, -0.1730930507183075, -0.3117810785770416, -0.4426659643650055, 0.06089670956134796, 0.7298722863197327, -0.12861116230487823, 0.1021812632679939...
usual. System.Threading.Thread.Sleep(100000000); // Stop listening for events. watcher.Stop(); } catch (ManagementException managementException) {
[ 0.15723513066768646, -0.43524202704429626, 0.36537232995033264, -0.20217669010162354, 0.3852974772453308, -0.24551619589328766, 0.5625259280204773, -0.012467406690120697, -0.5151358842849731, -0.34158194065093994, -0.19029755890369415, 0.7789899706840515, -0.4825841784477234, 0.13750931620...
Console.WriteLine("An error occurred: " + managementException.Message); } } /// <summary> /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e.
[ -0.43392327427864075, -0.1644679754972458, 0.4955114722251892, 0.25320589542388916, 0.24199312925338745, 0.27095702290534973, -0.11944834887981415, -0.44901490211486816, 0.008340766653418541, -0.8938709497451782, -0.2613472640514374, 0.35937583446502686, -0.25136762857437134, 0.02429720573...
/// </param> private void HandleEvent(object sender, EventArrivedEventArgs e) { Console.WriteLine("Received an event."); // RegistryKeyChangeEvent occurs here; do something. } /// <summary> /// </summary> public static void Main()
[ 0.022145427763462067, -0.27475452423095703, 0.3981088697910309, -0.08130669593811035, 0.14690753817558289, 0.06668312102556229, 0.3713500201702118, -0.031754519790410995, -0.3015556037425995, -0.2976723909378052, -0.28242993354797363, 0.40287014842033386, -0.16592371463775635, 0.4544817507...
{ // Just calls the class above to check for events... WmiChangeEventTester receiveEvent = new WmiChangeEventTester(); } } } ```
[ 0.053812768310308456, -0.22984164953231812, 0.1482846885919571, -0.19468919932842255, 0.2663024961948395, -0.3604145050048828, 0.6071069240570068, -0.37787479162216187, -0.10022325813770294, -0.47055426239967346, -0.15358354151248932, 0.8164186477661133, -0.18605518341064453, 0.27262449264...
So I'm a slightly seasoned php developer and have been 'doin the damn thing' since 2007; however, I am still relatively n00bish when it comes to securing my applications. In the way that I don't really know everything I know I could and should. I have picked up [Securing PHP Web Applications](https://rads.stackoverflo...
[ 0.4810749590396881, 0.36127620935440063, 0.27925586700439453, -0.23177455365657806, 0.16779060661792755, -0.19506746530532837, 0.5774295926094055, -0.03861304745078087, -0.2570597231388092, -0.3954768776893616, 0.16225358843803406, 0.8026451468467712, 0.062175434082746506, -0.1025888845324...
What about other types of attacks different from sql injection. Could someone explain stored procedures and prepared statements with a bit more info than - you make them and make calls to them. I would like to know how they work, what validation goes on behind the scenes. I work in a php4 bound environment and php5 i...
[ 0.49945804476737976, 0.04618918150663376, -0.040029045194387436, 0.4041958153247833, -0.23403261601924896, -0.2517431080341339, 0.2849826514720917, 0.00429372675716877, -0.1960531324148178, -0.26134127378463745, 0.3891410231590271, 0.5606818199157715, 0.16343851387500763, -0.21971069276332...
be advantageous, emphasis on creating an infrastructure capable of withstanding upgrades and possible migrations (like moving php4 to php5). Note: have had a search around couldn't find anything similar to this that hit the php-mysql security. My recommendations: 1. ditch mysqli in favor of [PDO](http://www.php.net/p...
[ -0.06512702256441116, -0.007672388106584549, 0.15510906279087067, -0.05509355664253235, -0.22945638000965118, 0.02146635763347149, 0.3123944401741028, -0.08511535078287125, 0.024210726842284203, -0.822231650352478, -0.1850431114435196, 0.5757982134819031, -0.24268198013305664, -0.092292070...
1 ); $statement = $pdo_obj->prepare( $sql, array( PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY ) ); $statement->execute( $params ); $result = $statement->fetchAll( PDO::FETCH_ASSOC ); ``` **PROs:** 1. No more manual escaping since PDO does it all for you! 2. It's relatively easy to switch database backends all of a...
[ -0.28099262714385986, -0.30568739771842957, 0.3135111927986145, -0.10049139708280563, -0.0273143257945776, -0.013536994345486164, 0.5056663751602173, -0.6393884420394897, -0.294141560792923, -0.3697589635848999, -0.4152221083641052, 0.840855062007904, -0.6781600713729858, -0.11686879396438...
Is there a way to pre allocate my SQLite database to a certain size? Currently I'm adding and deleting a number of records and would like to avoid this over head at create time. There is a hack - Insert a bunch of data into the database till the database size is what you want and then delete the data. This works becaus...
[ 0.2730410397052765, 0.1605995148420334, 0.2323579490184784, 0.21671216189861298, 0.2141975462436676, -0.17697761952877045, 0.22342170774936676, 0.08163369446992874, -0.4418599605560303, -0.540118932723999, 0.22667688131332397, 0.2903445363044739, -0.2930546998977661, 0.5336580276489258, ...
But in the meantime, the > database file might be larger than > strictly necessary." Naturally, this isn't the most reliable method. (Also, you will need to make sure that auto\_vacuum is disabled for this to work). You can learn more here - <http://www.sqlite.org/lang_vacuum.html>
[ 0.4292742908000946, -0.006689831148833036, 0.3050634562969208, 0.0326727032661438, 0.5191269516944885, -0.2338639199733734, -0.04934440925717354, -0.0698852613568306, -0.24832986295223236, -0.431469589471817, -0.0570247508585453, 0.6715507507324219, -0.22810649871826172, 0.1240059509873390...
if I have an array of pointers like char \*\*lines, how can i determine its length? Thanks You can't. You have to manually keep track of the length of arrays.
[ 0.3279326558113098, -0.05742240324616432, 0.12331966310739517, 0.26114851236343384, -0.10966227203607559, -0.041546761989593506, 0.3096166253089905, -0.0036335685290396214, -0.3031010031700134, -0.5158613920211792, 0.2630411386489868, 0.5239596962928772, -0.08312304317951202, 0.10299573838...
How does a dynamic language decide how much memory to allocate for a variable? eg. How does the compiler change variable= 5 to variable ="xxx" without too much memory overhead? When does it use the hardware stack and when does it use the memory heap? The compiler allocates enough memory for each variable to hold a poin...
[ -0.16509242355823517, -0.17167210578918457, -0.009232972748577595, 0.07889610528945923, -0.15315160155296326, 0.31254637241363525, 0.07327727228403091, -0.0947054773569107, -0.3520253300666809, -0.28710076212882996, -0.0716216191649437, 0.5418378710746765, -0.4544197916984558, -0.208908393...
object, the pointer associated with that variable changes what it points to.
[ -0.14247563481330872, 0.17899036407470703, 0.3555023968219757, 0.14111976325511932, 0.05072225630283356, 0.09906908124685287, -0.1528390496969223, 0.2253761887550354, 0.01762745901942253, -0.6835085153579712, -0.23983150720596313, 0.18492448329925537, -0.2526998817920685, 0.681259393692016...
How do I extract the domain out of an URL? Is there a Perl Module? I could not find any. The [URI](http://search.cpan.org/perldoc?URI) module can parse URIs for you in a nice OO-ish way. To get the domain part: ``` my $url = URI->new( "http://www.stackoverflow.com/" ); my $domain = $url->host; print $domain; ```
[ 0.07677160948514938, 0.14983172714710236, 0.7506934404373169, 0.20230059325695038, 0.04129479080438614, -0.0644778460264206, -0.0897066593170166, -0.061555348336696625, -0.36422300338745117, -0.30325233936309814, 0.035930026322603226, 0.3031936585903168, -0.17556045949459076, 0.54223626852...
I am trying to run a task in the background checking a database for a number of records in a table, and if the number has changed since the last check, get those records, and do some work on them. Using the following code, I'm getting a stack overflow after about two hours. The application is doing nothing during this...
[ 0.10128118097782135, -0.010223102755844593, 0.44611844420433044, -0.35640209913253784, 0.3176698386669159, -0.2933618426322937, 0.33064523339271545, -0.07378987967967987, -0.5563803911209106, -0.6643054485321045, -0.1383015215396881, 0.5224772095680237, -0.353866308927536, 0.25448831915855...
threadTask.Start(); } } private void taskCheck() { int recordCountNew = GetDBRecordCound(); if (recordCountNew != recordCount) { taskDo(); recordCount = recordCountNew; // Reset the local count for the next loop } else Thread.Sleep(1000); // Give the thread a qui...
[ 0.062285613268613815, -0.5856409668922424, 0.33791545033454895, -0.3541122078895569, 0.5820121765136719, -0.08699145913124084, 0.46433013677597046, -0.08339798450469971, -0.43759170174598694, -0.4652875065803528, -0.338281512260437, 0.6314721703529358, -0.2673722803592682, 0.43908402323722...
} private void taskDo() { // get the top DB record and handle it // delete this record from the db } ``` When it overflows, there are a ton of `taskCheck()` in the call stack. I'm guessing that taskCheck() never completes until taskCheck() completes, ergo overflow, and hence why they all remain in the stack....
[ 0.006634100805968046, -0.05523313581943512, 0.022791778668761253, -0.11113284528255463, 0.1422557681798935, -0.2052130550146103, 0.3539988100528717, 0.04619164764881134, -0.19643791019916534, -0.45110827684402466, -0.20094113051891327, 0.699262797832489, -0.37090227007865906, 0.35301995277...
more until your stack overflows. What you should do is have a while loop in taskCheck instead: ``` private void taskCheck() { while(true) { int recordCountNew = GetDBRecordCound(); if (recordCountNew != recordCount) { taskDo(); recordCount = recordCountNew; // Reset the...
[ 0.2418200820684433, -0.49606576561927795, 0.43332454562187195, -0.11791238188743591, 0.5346902012825012, -0.09374576807022095, 0.4218464195728302, -0.10299372673034668, -0.6268154382705688, -0.43224257230758667, -0.1562097817659378, 0.8353681564331055, -0.2054750919342041, 0.31900146603584...
Thread.Sleep(1000); // Give the thread a quick break } } ```
[ 0.38526904582977295, -0.07017907500267029, 0.1859356313943863, -0.07441363483667374, 0.431704044342041, -0.18164655566215515, 0.23824428021907806, 0.07667092233896255, -0.2242835909128189, -0.9258580207824707, -0.14727018773555756, 0.5660523176193237, -0.4051479399204254, 0.332817792892456...
I am trying to use Aptana to build an IPhone *web* application. I've never use Aptana. I downloaded the iphone support and started a new project. It is now asking me if I want to import a javascript library and lists the "big ones." Will IPhone's Safari be able to use these, specifically jquery? I saw that jquery had a...
[ 0.3732677698135376, 0.06610910594463348, 0.15243209898471832, -0.038329560309648514, -0.2106582671403885, 0.0863540843129158, 0.029335329309105873, 0.1645098179578781, -0.47061991691589355, -0.6236473917961121, 0.1578007936477661, 0.5533961057662964, -0.3231222927570343, -0.185952857136726...
should work fine on the iPhone. The specific libraries you are talking about must be additions to take advantage of iPhone only features like being able to handle the display orientation event or maybe use the webkit css animation extensions. Although you will need to be careful with events since most mouse related e...
[ 0.08495621383190155, -0.15307174623012543, 0.28098559379577637, 0.16093526780605316, 0.15700317919254303, -0.10760373622179031, 0.17543376982212067, 0.05206935107707977, -0.36441394686698914, -0.4614066779613495, -0.012381389737129211, 0.6566055417060852, -0.07374846935272217, -0.510826945...
I am attempting to create a REST API in PHP and I'd like to implement an authentication scheme similar to Amazon's S3 approach. This involves setting a custom 'Authorization' header in the request. I had thought I would be able to access the header with $\_SERVER['HTTP\_AUTHORIZATION'], but it's nowhere to be found in...
[ 0.3799646496772766, 0.13436511158943176, 0.2985611855983734, 0.09339582920074463, -0.15087862312793732, -0.2607972323894501, 0.35676348209381104, -0.03599633276462555, 0.05312715843319893, -0.6135512590408325, 0.12842422723770142, 0.3928462564945221, -0.2399573177099228, 0.2134849429130554...
- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] <?php $auth = $_SERVER['HTTP_AUTHORIZATION']; ?> ``` Note that if you're using `mod_rewrite` for other purposes, it could end up being `$_SERVER['REDIRECT_HTTP_AUTHORIZATION']`.
[ 0.14190861582756042, -0.031957078725099564, 0.5424578189849854, -0.1986035704612732, 0.06664188206195831, -0.1831263303756714, 0.5205919146537781, -0.34898877143859863, -0.062271252274513245, -0.34717854857444763, -0.4818641245365143, 0.6046960949897766, -0.4045410752296448, 0.188191905617...
I'm getting the following using the PHP client on my server (connecting via FBML). I've included the appropriate php files (facebook etc..) ``` Fatal error: Call to undefined method FacebookRestClient::feed_publishUserAction() in ..../index.php on line 50 ``` I'm trying to use the [example given](http:/...
[ 0.35438135266304016, 0.20423918962478638, 0.4708713889122009, 0.0585644356906414, -0.04862908646464348, -0.18835875391960144, 0.19924317300319672, 0.15601640939712524, -0.29417166113853455, -0.7324422001838684, 0.12235494703054428, 0.49002134799957275, -0.3521629869937897, -0.0423338972032...
Hey I was just wondering if there is a cool "one liner" that would sort my hash holding array references. So I have a bunch of key/values in my hash something like: ``` $DataBase{$key} = \@value; ``` However I would like to sort the hash by the `array[0]` element. Then loop through 'em. I had this to begin with: `...
[ 0.2578318417072296, 0.16542349755764008, 0.37058523297309875, -0.03693896904587746, -0.1874697208404541, 0.0895480215549469, 0.09128961712121964, 0.06924686580896378, -0.19083872437477112, -0.4112296402454376, 0.44100692868232727, 0.24776571989059448, -0.3983456492424011, -0.02652083151042...
$key (sort {$DataBase{$a}->[0] cmp $DataBase{$b}->[0] } keys %DataBase) ```
[ -0.22809894382953644, 0.32623493671417236, 0.3516090214252472, -0.1371304988861084, 0.19041438400745392, -0.01472035888582468, 0.15414948761463165, -0.1768651306629181, -0.1347711831331253, -0.5496254563331604, -0.3256855905056, 0.3768406808376312, -0.3213685154914856, 0.2552341818809509, ...
I'm running a query against a table in a postgresql database. The database is on a remote machine. The table has around 30 sub-tables using postgresql [partitioning capability](http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html). The query will return a large result set, something around 1.8 million ...
[ -0.029482003301382065, 0.13730666041374207, 0.5275222659111023, -0.2043841928243637, -0.025701317936182022, 0.3092994689941406, 0.005804331041872501, -0.22201335430145264, -0.4081553816795349, -0.7495808005332947, 0.04973120614886284, 0.38917145133018494, -0.23020866513252258, 0.2990248799...
query worked fine when I used Oracle XE. But I'm trying to migrate to postgresql because of the partitioning feature, which is not available in Oracle XE. My environment: * Postgresql 8.3 * Windows Server 2008 Enterprise 64-bit * JRE 1.6 64-bit * Spring 2.5.6 * Postgresql JDBC Driver 8.3-603 In order to use a cursor ...
[ -0.5614438056945801, 0.0418185293674469, 0.5078776478767395, -0.06861183792352676, -0.47312554717063904, -0.09156166762113571, 0.29448777437210083, -0.10911668837070465, -0.3509003818035126, -0.622385561466217, 0.3003503084182739, 0.7193519473075867, -0.24001428484916687, 0.016009502112865...
does very horrible things with the optimizer and can cause massive performance issues where there should not be (depending on specifics of your data). In any case, is your row only 1.8M rows? There is no reason that it would need to be partitioned based on size alone given that it is appropriately indexed.
[ 0.02580745704472065, -0.0021650956477969885, 0.2541942894458771, 0.2793891429901123, 0.20636937022209167, 0.006590839475393295, -0.013497008010745049, -0.051630545407533646, -0.43990686535835266, -0.6018926501274109, 0.14641037583351135, 0.22790785133838654, -0.12344806641340256, 0.2862485...
If I use: OnSelectedIndexChanged like this: ``` <asp:DropDownList ID="ddl1" AutoPostBack="true" OnSelectedIndexChanged="Test_SelectedIndexChanged" runat="server"></asp:DropDownList> ``` UpdatePanel and UpdateProgress work correctly, meaning it shows my little gif etc. However as soon as I change this to call javas...
[ 0.43897151947021484, 0.11105390638113022, 0.3607763648033142, -0.03805558383464813, 0.0007489608251489699, -0.1845657229423523, 0.3509015738964081, -0.20082226395606995, -0.15718500316143036, -0.8272467255592346, 0.09619498252868652, 0.706828773021698, -0.10384740680456161, -0.098588198423...
type [rough estimates for the index](http://forums.oracle.com/forums/thread.jspa?threadID=575619): > Calculate the average size of each of > the columns that make up the index key > and sum the columns plus one rowid and > add 2 bytes for the index row header > to get the average row size. Now add > just a little...
[ 0.04062121361494064, -0.03375588729977608, 0.6055355668067932, 0.030699633061885834, -0.11689257621765137, 0.2760901153087616, 0.057717591524124146, -0.5120043754577637, -0.2819651663303375, -0.6161597371101379, 0.2989747226238251, 0.36316147446632385, -0.34691837430000305, 0.1326676309108...
then every table row may not > appear in the index. On a single > column index where 90% of the columns > are null only 10% would go into the > index. > > > Compare estimate to tablespace extent > allocation method and adjust final > answer if necessary. > > > Also a larger overhead factor may be > better as...
[ -0.22216814756393433, -0.18345315754413605, 0.4579409658908844, 0.3017694652080536, -0.09145646542310715, 0.06708548218011856, 0.09455455839633942, -0.3206513226032257, -0.22346851229667664, -0.7599735856056213, -0.24393227696418762, 0.07730136811733246, -0.29554954171180725, 0.11079279333...
> **Possible Duplicate:** > > [How do you count the lines of code in a Visual Studio solution?](https://stackoverflow.com/questions/1244729/how-do-you-count-the-lines-of-code-in-a-visual-studio-solution) How can I show the code metrics window in Visual Studio 2008 Professional SP1? I'm looking to see how many total...
[ -0.03183356299996376, 0.0513371080160141, 0.18843242526054382, 0.2408897876739502, -0.4568265676498413, 0.10159488767385483, 0.372955322265625, -0.0658598318696022, -0.3461938500404358, -0.4457073211669922, 0.1665840744972229, 0.46922188997268677, 0.071183942258358, -0.39619094133377075, ...
doesn't have this feature has anyone found a simple external method to count the lines in all .cs files in an automated way? Code Metrics is only available in the Team System versions of Visual Studio 2008. If you have an Express Edition, Standard, or Professional you're out of luck. See comments and screenshots here:...
[ 0.08569274842739105, -0.13435444235801697, 0.37172186374664307, 0.14120958745479584, -0.32525402307510376, 0.08415023237466812, 0.06976015120744705, -0.1909649670124054, -0.31763166189193726, -0.46909189224243164, 0.33447596430778503, 0.5078919529914856, -0.14981240034103394, -0.3560059368...
I hope this qualifies as programming related since it involves how to structure a project. Because I've always used the web site model with VS.net I never had solution and project files and putting everything into source control worked great. I knew that everything I had in my web site directory was all I needed for t...
[ 0.5072700381278992, 0.052116937935352325, 0.09545373916625977, 0.14414425194263458, -0.18624892830848694, -0.2538630962371826, 0.19436582922935486, -0.026264162734150887, -0.3864101767539978, -0.7675548195838928, 0.1252649575471878, 0.5744143128395081, -0.08334553986787796, 0.3670759797096...
gets messed up and people end up having to grab the latest solution file, see what got changed and then add back/remove their files and check in the solution file again. It's become sort of a problem because sometimes people don't realize the solution file was changed, they make other changes and then when they check i...
[ 0.2173757255077362, 0.022907501086592674, 0.15492403507232666, 0.456112802028656, 0.4314222037792206, -0.42691177129745483, 0.15527231991291046, 0.025513390079140663, -0.5228094458580017, -0.367131769657135, 0.11474215239286423, 0.0734601616859436, -0.25164666771888733, 0.48116806149482727...
and project files? I don't think it's normal - what are you using for source control? It sounds like developers aren't respecting changes that others a making - checking in without merging first. I know that early on in a project, when lots of files are being added & deleted, it can be a problem to keep up - you need ...
[ 0.7632200717926025, 0.09274721890687943, 0.009967940859496593, 0.3576095402240753, 0.08423597365617752, -0.3851841390132904, -0.1310642808675766, -0.03836213797330856, -0.5052850246429443, -0.25941774249076843, 0.20388218760490417, 0.5593481063842773, -0.26392924785614014, 0.23446895182132...
have one "holding" project for each developer, then clean them up periodically - though these types of temporary fixes do have a tendency to become permanent. I don't know of a way to set up a project file that's not in source control, though I suppose you could create a script that would generate them. Having been ...
[ 0.6808738112449646, 0.04579368978738785, 0.06015215814113617, 0.27803894877433777, 0.06786570698022842, -0.23018769919872284, 0.2009502798318863, 0.013829711824655533, -0.1607283651828766, -0.3358862102031708, -0.18193410336971283, 0.5388617515563965, 0.21001052856445312, -0.19347845017910...
I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been working great until now. I also have a DropDownList that I have a need to fire onSelectedIndexChanged with AutoPostBack. When I changed my code to do the AutoPostBack, the text field that has the jQuery AutoComplete on it comes back blank...
[ 0.16427357494831085, -0.001783145940862596, 0.47089263796806335, 0.027606457471847534, -0.33633676171302795, -0.15541209280490875, 0.4980905055999756, 0.1921464055776596, -0.17706696689128876, -0.8233160376548767, -0.06068195775151253, 0.5262656211853027, -0.00036422646371647716, 0.0242450...
workaround for it. Has anyone had any issues like this with the Autocomplete field getting blanked out on an AutoPostBack, and how did you get around it? I can post code if it's really necessary, but I'd need to sanitize a lot of it before I could due to company policy. How is the autocomplete field being initialize...
[ 0.13388387858867645, -0.14192421734333038, 0.22782982885837555, 0.08005819469690323, -0.067470483481884, -0.20449750125408173, 0.013078346848487854, -0.14176395535469055, -0.12143711745738983, -0.6910412907600403, -0.07185598462820053, 0.8204187750816345, -0.04401179775595665, -0.452877104...
in a var var temp = $('#mytextbox').val(); // Initialize the autocomplete plugin (winging it on the syntax) $('#mytextbox').autocomplete(); // Reset the value of the textbox. $('#mytextbox').val(temp); ```
[ -0.0023842293303459883, -0.15138575434684753, 0.2812696099281311, -0.316948801279068, -0.0834316536784172, 0.12206302583217621, 0.487685889005661, -0.019274761900305748, 0.11869930475950241, -0.4619050621986389, -0.722495973110199, 0.681773841381073, -0.60690838098526, -0.12082033604383469...
So I am continuing testing and releasing changes to my app and I have come across a pain point that I am unsure how to deal with. First off, my app uses a SQL Server CE database to store information and I need to be able to make changes to this db so I've created an internally updating process that runs whenever the a...
[ 0.4544839560985565, 0.3262454569339752, 0.4383876323699951, -0.13665923476219177, -0.07618772983551025, -0.0754680410027504, 0.1819039136171341, -0.15856508910655975, -0.1921018809080124, -0.8265272378921509, 0.1430288702249527, 0.2386215627193451, -0.24390636384487152, 0.28719478845596313...
am having is that the MSI distribution I created will not overwrite this file. It appears that when SQL Server CE opens this file, it changes the Modified date/time of the file. This is a flag to the MSI process that the file has changed, and that it shouldn't overwrite the file. Well now I am seeing that my db changes...
[ 0.37718185782432556, 0.6157749891281128, 0.4286591410636902, -0.22597573697566986, 0.12431333214044571, -0.4105953276157379, -0.031700216233730316, -0.29907000064849854, -0.3228125274181366, -0.3928397297859192, -0.03685411065816879, 0.3287287652492523, -0.15881140530109406, 0.806377053260...
this? ``` Uri baseUri = new Uri("http://www.contoso.com"); Uri myUri = new Uri(baseUri, "catalog/shownew.htm"); Console.WriteLine(myUri.ToString()); ``` Sample comes from <http://msdn.microsoft.com/en-us/library/9hst1w91.aspx>
[ 0.04083411023020744, 0.256244421005249, 0.28684553503990173, -0.0827445238828659, 0.2514961063861847, 0.14668188989162445, 0.0584506131708622, -0.0398440882563591, 0.028486622497439384, -0.46529367566108704, -0.37695905566215515, 0.12181098759174347, -0.3936537504196167, 0.2951964735984802...
I would like to parse the values from aspx pages, both what is passed before the ? and after it? So, what is the C# function that allows me to parse that out? I would like to do something like: ``` var pageType = parameter.trimBefore?(); var pageString = parameter.trimAfter?(); ``` Thanks for any advice. Try the S...
[ 0.2351389080286026, 0.17171919345855713, 0.4243759214878082, -0.05353532359004021, -0.09619699418544769, -0.018010428175330162, 0.048842430114746094, -0.18408489227294922, -0.22724273800849915, -0.5833349823951721, -0.28275537490844727, 0.5289634466171265, -0.41642478108406067, -0.06881038...
Has anybody out there got any real world experience with the [H2 database](http://www.h2database.com/html/main.html)? I'm interested in: * performance * stability * bugs We use H2 as the storage engine for a very large RCP/Eclipse-based design tool. The tool itself has been in use for over 2 years now on some data-hea...
[ 0.40350472927093506, 0.3562861979007721, -0.26481571793556213, 0.20266802608966827, -0.1366342157125473, -0.4825875759124756, 0.018527261912822723, -0.121498242020607, -0.21462984383106232, -0.4209119379520416, -0.04953308030962944, 0.4386177062988281, -0.13692514598369598, -0.026286898180...
to do some optimizations by hand. If you're used to working with enterprise-level databases that do a lot of this optimization for you, it may be a bit of a change. I'd recommend using the EXPLAIN command if you encounter a slow query to see what it's doing. Very often you can switch around the JOIN statements to force...
[ 0.2963019013404846, -0.0473998561501503, 0.038721006363630295, 0.32126331329345703, 0.19562457501888275, -0.31326261162757874, 0.27263978123664856, 0.34755510091781616, -0.1342243105173111, -0.48713499307632446, 0.16658194363117218, 0.5115879774093628, -0.042020998895168304, -0.20583392679...
I was listening to a podcast recently (may have been SO - can't remember) when the interviewee said that one of the reasons Java was so successful and popular was the tooling. Having use of great FOSS editors such as Eclipse, NetBeans. Metrics tools such as Cobertura, Find Bugs, Build tools such as Maven and ANT.. I'd...
[ -0.021629992872476578, 0.33361756801605225, -0.20671962201595306, -0.0005015057977288961, -0.2669554650783539, -0.08506451547145844, 0.2775651514530182, 0.4021965265274048, -0.27367788553237915, -0.6380333304405212, 0.08638108521699905, 0.6194206476211548, -0.05520704388618469, -0.18156957...
with a better community and tooling for getting the job done? Don't forget Perl's [CPAN](http://www.cpan.org) with a wealth of first-class code like e.g. [profilers](http://search.cpan.org/~timb/Devel-NYTProf-2.09/lib/Devel/NYTProf.pm), [ide's](http://search.cpan.org/~szabgab/Padre-0.34/lib/Padre.pm) and [modern Object...
[ 0.022370586171746254, 0.2754777669906616, 0.1268918663263321, 0.17924723029136658, -0.21148960292339325, -0.30162012577056885, 0.1268741637468338, -0.22294898331165314, -0.5294550657272339, -0.39675313234329224, -0.4570034146308899, 0.3171149492263794, -0.12539362907409668, -0.188561826944...
I'd like to use properties for my instance variables, but in many cases, I only want the class itself to have access to the setter. I was hoping I could do something like this: Foo.h: ``` @interface Foo { NSString *bar; } @property (readonly) NSString *bar; @end ``` Foo.m: ``` #import "Foo.h" @interface Foo () ...
[ 0.43075597286224365, 0.19882966578006744, 0.41477373242378235, -0.12296507507562637, -0.11545614153146744, -0.11325229704380035, 0.29092276096343994, -0.49697184562683105, -0.11772429198026657, -0.4678630530834198, 0.14280834794044495, 0.8110800385475159, -0.5218690633773804, 0.16219523549...
redeclaration of `@property bar` in the class extension must match the original declaration except for readwrite vs. readonly. So this will work: Foo.h ``` @interface Foo { NSString *bar; } @property (copy,readonly) NSString *bar; @end ``` Foo.m: ``` #import "Foo.h" @interface Foo () @property (copy,readwrite) ...
[ 0.004400317557156086, 0.016140149906277657, 0.3764182925224304, -0.1830473095178604, 0.028790786862373352, -0.1056811511516571, 0.03284744918346405, -0.6387647390365601, 0.007493478711694479, -0.7193952202796936, -0.33789578080177307, 0.7830886244773865, -0.40781939029693604, 0.24076895415...
I have the oddest problem (but aren't all programming problems odd?). I have a winform that contains a webbrowser object that opens a website that has flash on it. This winform is running on a touchscreen computer (I can't find the brand or model number). Here is what I know: * flash objects embeded in a website that...
[ -0.08629801124334335, 0.11018925905227661, 0.2190118432044983, 0.2648807466030121, -0.15304261445999146, -0.05781642347574234, 0.23185700178146362, 0.35033294558525085, -0.09493311494588852, -0.6152649521827698, 0.13777758181095123, 0.4941313564777374, -0.23596687614917755, 0.0643322840332...
object works. If my first 'click' misses a button, nothing works there after. * trying to 'click' an flash button gives the same response as just hovering over the button * This isn't a problem with the touch part of the touch screen as using a mouse also gives the same not working right response * this isn't a problem...
[ -0.13980913162231445, 0.028622258454561234, 0.43828943371772766, 0.2280377894639969, -0.4231110215187073, -0.1861640363931656, 0.8168749213218689, -0.18192806839942932, -0.4649365246295929, -0.6065313220024109, 0.16087086498737335, 0.8732376098632812, -0.12147657573223114, -0.1319463253021...
touch screen fault and not the program's fault, I can't blame anything right now. * the EXACT same program worked 100% on our old touch screen (which was having *other* problems so we had to get rid of it). * Oh, also, surfing just a 'normal' webpage in a webbrowser in the winform works just fine. In addition to the ot...
[ 0.32963258028030396, 0.05973432958126068, 0.22555086016654968, 0.43897682428359985, -0.07212993502616882, -0.2245275378227234, 0.46305450797080994, 0.02424005977809429, -0.2360229194164276, -0.7996021509170532, 0.11666294932365417, 0.712838351726532, -0.19649897515773773, 0.027639701962471...
When I try to edit texts in my iPhone application (`UITextfield`), it auto-corrects my input. Could you let me know how can I disable this? ``` UITextField* f = [[UITextField alloc] init]; f.autocorrectionType = UITextAutocorrectionTypeNo; ```
[ -0.2364577353000641, 0.1263420581817627, 0.46246397495269775, 0.010525857098400593, 0.15322868525981903, 0.0643293708562851, 0.605278730392456, 0.037073131650686264, 0.09220824390649796, -0.725363552570343, -0.32844725251197815, 0.7308389544487, -0.3560003340244293, -0.27099522948265076, ...
I just started using git with github. I followed their instructions and ran into errors on the last step. I'm checking in an existing directory that isn't currently source-controlled (project about a week old). Other than that, my use case should be pretty run of the mill. Here's what's happening: ``` $ git push orig...
[ 0.039559751749038696, 0.1434680074453354, 0.7685495018959045, -0.07400861382484436, -0.11399858444929123, -0.2459641396999359, 0.45428231358528137, -0.06065339222550392, -0.2990518808364868, -0.9344061017036438, -0.19873052835464478, 0.7196267247200012, -0.20879273116588593, 0.260834366083...
git init touch README git add README git commit -m 'first commit' git remote add origin git@github.com:{username}/{projectname}.git git push origin master ``` The error message leads to the conclusion that you do not have a `master` branch in your local repository. Either push your main development branch (`...
[ -0.18086880445480347, -0.36308249831199646, 0.43665751814842224, -0.11965684592723846, 0.037942055612802505, 0.14271457493305206, 0.1912699192762375, 0.08264298737049103, 0.0005675799329765141, -1.1227214336395264, -0.3470032215118408, 0.33364036679267883, -0.2277173548936844, 0.1259747445...
Is there a way in Python to list all the currently in-use drive letters in a Windows system? (My Google-fu seems to have let me down on this one) A `C++` equivalent: [Enumerating all available drive letters in Windows](https://stackoverflow.com/questions/286534/enumerating-all-available-drive-letters-in-windows) ``` ...
[ 0.024030305445194244, 0.2196042388677597, 0.32559922337532043, 0.08691773563623428, 0.17026036977767944, 0.12357217818498611, -0.002131756627932191, -0.020174607634544373, -0.19853270053863525, -0.4414145350456238, -0.3830421566963196, 0.6694170832633972, -0.3933733403682709, 0.01912320032...
I just started using the MVCContrib grid in a test project. I'm having a difficult time finding information on how to use it for edit/update/delete. Can anyone point me to information on how to put a row into edit mode, or if there isn't such a thing for that grid, discuss a best practice for editing list data in MVC....
[ 0.26446157693862915, -0.14983956515789032, 0.4905119836330414, -0.01672232896089554, -0.22172068059444427, -0.2904706299304962, 0.011307566426694393, -0.01790570840239525, -0.3010658621788025, -0.6951540112495422, 0.31908291578292847, 0.5918129682540894, -0.4220259189605713, 0.248946920037...
look like you can handle that functionality however you want to. If you want to go to a separate page for edit mode, just put a link in one of the columns with that row's id. The following is taken directly from: <http://www.jeremyskinner.co.uk/2009/03/01/mvccontrib-grid-part-5-the-action-syntax/> ``` <% Html.Grid(Mod...
[ 0.25679850578308105, -0.2700844407081604, 0.4561126232147217, -0.3145905137062073, 0.04606678709387779, 0.46532192826271057, 0.32093411684036255, 0.06676647067070007, -0.17928890883922577, -0.540131151676178, -0.0077677564695477486, 0.48873695731163025, -0.4489990472793579, -0.178312435746...