text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
sorting, but a predefined order that the developers specify. This then brings the problem - how do I specify the order in these attributes? Since one `MenuItemAttribute` describes a whole hierarchy, the order specification should also include order numbers for the whole (or at least a part) of the hierarchy. An order ...
[ -0.11583078652620316, -0.07449880987405777, 0.027716390788555145, -0.24504627287387848, -0.21660993993282318, 0.193992018699646, -0.05118069052696228, -0.29330772161483765, -0.2158866971731186, -0.5624682903289795, -0.059280164539813995, 0.43785360455513, -0.4112267792224884, -0.1665850281...
array of pairs, but that then would complicate the syntax a lot. The last idea is that I could make the strings have special format, but that would be rather messy IMHO. --- I'd put a single extra (optional) value in the MenuItemAttribute constructor, which is "order" or "priority": ``` [MenuItem(0, "Company", "Clien...
[ 0.14991967380046844, -0.052042968571186066, 0.22978690266609192, -0.22041729092597961, -0.1244572103023529, 0.34861159324645996, -0.2736624479293823, -0.1834622621536255, -0.16556183993816376, -0.36420831084251404, -0.13617587089538574, 0.5137750506401062, -0.549103856086731, -0.1628703027...
After trying to understand why client code is not rendered in a page (injected by user control) I found this [link](http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=105002), it turns out you must have a form tag for it to work ([Page.RegisterClientScriptBlock](http://msdn.microsoft.com/en...
[ 0.044201865792274475, 0.07440946251153946, 0.8705206513404846, -0.23922021687030792, -0.3163878321647644, 0.034706003963947296, 0.3409043550491333, -0.3243265748023987, -0.3350568413734436, -0.7300662994384766, -0.056052714586257935, 0.4182734489440918, -0.3414618670940399, -0.205861076712...
= "alert('123');"; Page.Header.Controls.Add(x); ``` But this did not work for me. Got it! My mistake was not doing it in the **OnPreRender** method (I used the **Render** method). Now all that is needed is - like Mitchel Sellers wrote, set the header to runat server and than add to it's controls: ``` HtmlGene...
[ 0.16904428601264954, -0.11922632157802582, 0.6371135115623474, 0.08666134625673294, -0.03602628409862518, -0.20265358686447144, 0.5291233062744141, -0.3485179841518402, -0.2060377597808838, -0.5243144631385803, -0.15784859657287598, 0.37101325392723083, -0.41847917437553406, -0.22762863337...
Would you be aware of any tools(preferably free) or browser plugins that would allow me to easily determine the styling properties of an element on the web page. For example it could be a tool that would import all the styling information from the css files associated with the page and presented it as an in-line styl...
[ 0.7103736996650696, -0.006107470951974392, 0.35294318199157715, 0.2013777196407318, -0.12617257237434387, -0.2764599323272705, 0.058925844728946686, -0.54823899269104, 0.13817833364009857, -0.7526324391365051, 0.07811727374792099, 0.6401292681694031, -0.15163567662239075, -0.28484034538269...
Toolbar.
[ -0.05505635589361191, 0.19118328392505646, 0.15326626598834991, 0.03400453180074692, 0.18497313559055328, 0.2780950963497162, -0.21352426707744598, -0.15610846877098083, -0.21259421110153198, -0.729413628578186, -0.32619062066078186, 0.4864593744277954, 0.053199946880340576, 0.335026830434...
Java has a regex function called "LookingAt()" which will allow partial matches against patterns, my question is: Does .net have an equivalent of "LookingAt()"? I may or may not use it for KeyPress validation but I just would like to know for future reference. Thanks in advance Jon I don't think `lookingAt()` is th...
[ 0.020128102973103523, -0.19956012070178986, -0.1204797551035881, 0.030861953273415565, -0.22685706615447998, -0.3525351583957672, 0.03185582160949707, 0.24569359421730042, -0.19505994021892548, -0.6868464946746826, 0.22758708894252777, 0.34764543175697327, -0.7974485158920288, -0.204611688...
you're trying to do is prevent users from entering invalid data. For example, if a textfield expects a decimal number with two decimal places, your validation regex might be `\d+\.\d\d` . If a user starts by typing a digit, the regex doesn't match, but the digit *could* be part of a valid entry, so you let them keep on...
[ 0.36953970789909363, 0.1706269085407257, 0.00037389525095932186, 0.05928987264633179, 0.08994212746620178, -0.2528025209903717, 0.28928807377815247, -0.03269883990287781, -0.21084973216056824, -0.3518102467060089, -0.21473999321460724, 0.39318543672561646, -0.2937016189098358, 0.2966645956...
if the string matches part of the regex. There is a way to do that in Java, using the `hitEnd()` method, but I don't think .NET has an equivalent for that. In fact, I don't know of any other regex flavor that does. But blocking users' keypresses is rather rude anyway, in my opinion. I prefer to let them know by some ...
[ 0.11586853116750717, -0.02705887146294117, 0.24223856627941132, 0.03712117671966553, -0.09234416484832764, -0.3737174868583679, 0.3477019965648651, -0.0030595033895224333, -0.14533141255378723, -0.568969190120697, -0.23698467016220093, 0.4391303062438965, -0.37125757336616516, 0.2089295685...
textfield, you check the contents against your (full) regex and update the state of the field and/or button accordingly. Here's demonstration of `hitEnd()`: ``` import java.util.regex.*; public class Test { public static void main(String[] args) throws Exception { Pattern p = Pattern.compile("\\d+\\.\\d\\d"...
[ 0.16690519452095032, -0.24807019531726837, 0.2251264750957489, -0.33663296699523926, 0.07227771729230881, -0.18343408405780792, 0.39988523721694946, -0.18068377673625946, 0.09291579574346542, -0.534628689289093, -0.4792492687702179, 0.6423865556716919, -0.5335249304771423, -0.0973941832780...
} else if (m.hitEnd()) { System.out.println("partial match"); } else { System.out.println("no match"); } } } } ``` I get "full match" for the first string, "partial match" for the second, and "no match" for the third.
[ -0.11495139449834824, -0.015342175029218197, 0.3418574333190918, -0.6738141179084778, 0.20614100992679596, -0.06972949951887131, 0.36456578969955444, -0.37519440054893494, 0.20498284697532654, -0.48779717087745667, -0.4496326744556427, 1.0149595737457275, -0.391829252243042, 0.123917169868...
I am in a situation where my application has to read an XML file that another application will drop onto a specific location on the file system (on multiple platforms). I control the contents of this document. The other application is simply providing transport. I'd like to ensure that the document hasn't been modifie...
[ 0.49565500020980835, 0.42824074625968933, 0.3891366720199585, 0.01276190485805273, 0.22946497797966003, -0.26405173540115356, -0.03640545532107353, -0.010937481187283993, -0.06588547676801682, -0.4896218478679657, -0.2601988911628723, 0.32290053367614746, 0.08113018423318863, 0.24354554712...
remainder of the document, and then send it to the parser. Does anyone have any experience with this kind of scenario that they'd like to share? Are there any flaws or easier ways I'm missing? Depending on how critical these documents are a hash may be sufficient. However a more bullet proof mechanism would be to use ...
[ 0.18919990956783295, 0.114938884973526, 0.4751962423324585, 0.2921687960624695, -0.08610107004642487, -0.32040855288505554, 0.27619898319244385, 0.09296350181102753, -0.06310433894395828, -0.3490678369998932, -0.30268964171409607, 0.4486694931983948, 0.2156282663345337, -0.2513665854930877...
Sorry for the slightly noobish question, as I am writing my first rails app. I get the idea of the layout view, but if you are using them, is there any way to include a view specific js or css file? For example, I have `layouts/products.html.erb`, and for `products/edit.html.erb` I want `products_edit.css`, but I don'...
[ 0.3503659963607788, -0.00747872656211257, 0.05320189520716667, -0.03275173902511597, -0.2771576941013336, 0.03217610716819763, 0.16197989881038666, -0.15788525342941284, -0.19736044108867645, -0.5650982856750488, 0.12662185728549957, 0.5093728303909302, -0.3035716712474823, -0.172287151217...
tags into the head. `layout.html.erb` ``` <head> ... <%= yield(:header) if @content_for_header %> </head> ``` `products/edit.html.erb` ``` <% content_for :header do -%> <%= stylesheet_link_tag 'edit_product' %> <% end -%> ```
[ 0.3763514459133148, -0.04516734555363655, 0.7998026013374329, -0.07303886860609055, 0.10909578204154968, -0.17951062321662903, -0.08086249232292175, -0.6523295044898987, -0.12379579246044159, -0.6464137434959412, -0.2847011089324951, 0.4014877378940582, -0.3862397074699402, -0.140687614679...
Is there a way to reserve or skip or increment value of identity column? I Have two tables joined in one-to-one relation ship. First one has IDENTITY PK column, and second one int PK (not IDENTITY). I used to insert in first, get ID and insert in second. And it works ok. Now I need to insert values in second table w...
[ -0.09534939378499985, -0.022373760119080544, 0.19635678827762604, 0.1981118768453598, 0.06721130013465881, 0.36016902327537537, -0.32149362564086914, -0.20541998744010925, -0.3464632034301758, -0.6624700427055359, 0.31486251950263977, 0.39130091667175293, 0.012123970314860344, 0.0172401256...
row -- so i will insert foo row, get id, and delete it INSERT INTO TABLE1 (SomeRequiredField) VALUES ('foo'); SET @NewID = SCOPE_IDENTITY(); DELETE FROM TABLE1 WHERE ID=@NewID; -- Then I can insert in TABLE2 INSERT INTO (ID, Field, Field) VALUES (@NewID, 'Value', 'Value'); ``` Once again - this works. Questi...
[ 0.019695335999131203, 0.27429792284965515, 0.4507565498352051, -0.15897250175476074, 0.052050501108169556, 0.02835018001496792, 0.12020013481378555, -0.5112428069114685, 0.05630818381905556, -0.49600738286972046, 0.08858772367238998, 0.6601181626319885, -0.45893949270248413, 0.279952108860...
around this to do what you are looking for, but typically it is in a distributed environment and not done because of what appears to be a data model change.
[ 0.35050272941589355, -0.07624812424182892, 0.22111298143863678, 0.20803746581077576, 0.19699594378471375, -0.6227961182594299, -0.025714438408613205, 0.10819090157747269, -0.5067684054374695, -0.5933899879455566, -0.09258350729942322, 0.00037523559876717627, -0.20166119933128357, 0.1263173...
I'm using C#.Net and the Socket class from the System.Net.Sockets namespace. I'm using the asynchronous receive methods. I understand this can be more easily done with something like a web service; this question is borne out of my curiosity rather than a practical need. My question is: assume the client is sending som...
[ 0.28269684314727783, 0.04546651989221573, 0.14183643460273743, -0.06605619937181473, -0.375241756439209, 0.1491669863462448, -0.04215437173843384, 0.21074669063091278, -0.19428357481956482, -0.6326280832290649, -0.08213671296834946, 0.49769464135169983, -0.13890159130096436, 0.313889324665...
.Net world. What happens if the object is larger than the buffer? How would I know, 'hey, gotta resize the buffer because the object is too big'? You *either* need the protocol to be self-terminating (like XML is, effectively - you know when you've finished receiving an XML document when it closes the root element) *or...
[ 0.2276320457458496, -0.3960265815258026, 0.056155975908041, 0.16197000443935394, -0.17423973977565765, -0.4096527099609375, 0.3258221745491028, 0.4770820140838623, -0.35949379205703735, -0.7840511202812195, -0.17291846871376038, 0.13725057244300842, -0.4078330397605896, 0.3822191655635834,...
you may well not have enough hooks. Length-prefix is by far the easiest solution here.
[ 0.4656279981136322, -0.25699546933174133, 0.023223072290420532, 0.057779572904109955, -0.25000375509262085, 0.22613362967967987, 0.19408123195171356, -0.09783336520195007, -0.49599549174308777, -0.14158299565315247, -0.005752291530370712, 0.4112413823604584, -0.1172272190451622, -0.0643784...
I'm trying to perform some calculations on a non-directed, cyclic, weighted graph, and I'm looking for a good function to calculate an aggregate weight. Each edge has a distance value in the range [1,∞). The algorithm should give greater importance to lower distances (it should be monotonically decreasing), and it sho...
[ -0.1321554332971573, -0.11252831667661667, 0.21648256480693817, 0.026559198275208473, -0.20569415390491486, 0.16066521406173706, -0.07644932717084885, -0.302161306142807, -0.08712086081504822, -0.6805775761604309, 0.09802686423063278, 0.3234378695487976, -0.18783695995807648, 0.12243416905...
the difference between 1/1 and 1/2 than the difference between 1/34 and 1/35. I'd like to even that out a bit more. I could use √(1/d) or ∛(1/d) or even ∜(1/d), but I feel like I'm missing out on a whole class of possibilities. Any suggestions? (I thought of ln(1/d), but that goes to -∞ as d goes to ∞, and I can't thi...
[ 0.3420628309249878, -0.4799666702747345, 0.27382510900497437, -0.3961161673069, -0.13654185831546783, 0.3253859877586365, 0.054222844541072845, -0.46227318048477173, 0.0886039286851883, -0.5481422543525696, 0.09257443994283676, 0.5228269696235657, 0.022175204008817673, -0.1369369626045227,...
I'm currently using a homegrown method to run a process as a different user in Vista, and I can't escape the feeling that's it hack-ish and less than ideal (in addition to the fact that it craps out UAC, crashing my app with a security exception, and forcing me to disable UAC altogether). My process consists of two pro...
[ 0.39392855763435364, 0.13704858720302582, 0.4600030481815338, -0.049459051340818405, 0.0845123901963234, 0.049997638911008835, 0.17813150584697723, -0.31033989787101746, 0.054686110466718674, -0.9118977189064026, 0.09385663270950317, 0.6039658784866333, -0.18864867091178894, 0.177985250949...
create an instance of LaunchStub.exe (LS) as the new user 4. LS uses ProcessStartInfo (with ShellExecute set to true) to launch the requested file, and since it's already running as the requested user, so is the new process. The reason I have a two-step process is that I want users to be able to right-click on any fil...
[ 0.20339199900627136, 0.07880368828773499, 0.540145754814148, -0.17617876827716827, 0.3958473205566406, -0.26098698377609253, 0.12438680231571198, -0.0180871170014143, -0.10378730297088623, -0.6911035180091858, -0.389326810836792, 0.7495220303535461, -0.17754462361335754, 0.2267849892377853...
- first, the user has to already exist on the computer, meaning they have to have logged in locally before. If there's no local profile for that user, the requested app will sometimes launch, but I get registry and profile exceptions because the application expects things to exist that don't yet (like an HKCU hive in t...
[ 0.5654578804969788, 0.2981192469596863, 0.42848870158195496, 0.08621538430452347, 0.23821836709976196, -0.12235277891159058, 0.09269658476114273, 0.039924006909132004, -0.33711275458335876, -0.538835346698761, -0.21296226978302002, 0.268553227186203, 0.033927008509635925, 0.245202466845512...
a good code sample for that, and I'm not sure that it would allow running as a completely different user. Does this all make sense? I just can't help feel like there's a better way to do this. --- **UPDATE:** I just tried [some Impersonation code](http://weblogs.asp.net/ralfw/archive/2003/11/24/39479.aspx) I found on...
[ 0.30531322956085205, 0.24465832114219666, 0.09431387484073639, -0.06079530343413353, 0.14925935864448547, -0.3220970332622528, 0.5102378726005554, 0.22195982933044434, -0.14821197092533112, -0.5312252044677734, -0.057754307985305786, 0.6043562889099121, -0.1606905162334442, 0.3868291378021...
create new processes under different credentials and optionally load user profile information. In the code snippet below if you replace * username - with your username * domain - with your domain or "vbNullString" * password - with your password * parameter 4 - replace 0 with 'LOGON WITH PROFILE' to load the specifie...
[ 0.5103057026863098, 0.12396631389856339, 0.2125987708568573, -0.04958370327949524, 0.03778676316142082, -0.4956285357475281, 0.11216109246015549, -0.26781487464904785, -0.42121005058288574, -0.6797046065330505, -0.261202335357666, 0.48610204458236694, -0.22105439007282257, 0.23424805700778...
<StructLayout(LayoutKind.Sequential)> _ Public Structure STARTUPINFO Public cb As Integer Public lpReserved As String Public lpDesktop As String Public lpTitle As String Public dwX As Integer Public dwY As Integer Public dwXSize As Integer Public dwYSi...
[ 0.03339487686753273, 0.07326231151819229, 0.13756079971790314, 0.005175014492124319, -0.02574358507990837, 0.2766326665878296, -0.03855978697538376, 0.007659327704459429, -0.3333095610141754, -0.5892425179481506, -0.1968991607427597, 0.363851934671402, -0.4748670160770416, 0.22742244601249...
Public dwXCountChars As Integer Public dwYCountChars As Integer Public dwFillAttribute As Integer Public dwFlags As Integer Public wShowWindow As Short Public cbReserved2 As Short Public lpReserved2 As Integer Public hStdInput As Integer Public hStdOutput ...
[ -0.047299064695835114, -0.015184350311756134, 0.16500666737556458, 0.32013988494873047, -0.3809513747692108, 0.32458844780921936, 0.14839588105678558, 0.12120834738016129, -0.1453275978565216, -0.28191879391670227, -0.24612590670585632, 0.4192267060279846, -0.3260682225227356, 0.2614461779...
Public hStdError As Integer End Structure <StructLayout(LayoutKind.Sequential)> _ Public Structure PROCESS_INFORMATION Public hProcess As IntPtr Public hThread As IntPtr Public dwProcessId As Integer Public dwThreadId As Integer End Structure Public Declare Unicode ...
[ -0.4097556173801422, 0.2640687823295593, 0.6737881898880005, -0.15895624458789825, 0.02939072623848915, 0.31471145153045654, 0.10203179717063904, -0.4342127740383148, -0.018377840518951416, -0.5567053556442261, -0.22537052631378174, 0.48273107409477234, -0.2659209966659546, 0.1926168799400...
ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal dwCreationFlags As Int32, ByVal lpEnvironment As IntPtr, ByVal lpCurrentDirectory As String, ByRef si As STARTUPINFO, ByRef pi As PROCESS_INFORMATION) As Integer Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As IntPtr) As In...
[ -0.1533605009317398, -0.04441399127244949, 0.724108099937439, -0.30611735582351685, 0.1976269632577896, 0.4170997142791748, -0.11982908099889755, -0.3335268795490265, -0.07781960070133209, -0.4992181360721588, -0.2655988931655884, 0.8484231233596802, -0.533638060092926, 0.09760529547929764...
Shell(ByVal strCmdLine As String, ByVal strCurrentDirectory As String) As Boolean Dim pi As PROCESS_INFORMATION Dim si As New STARTUPINFO si.cb = Marshal.SizeOf(si) si.dwFlags = STARTF_USESHOWWINDOW si.wShowWindow = SW_SHOW Dim result As Integer = CreateProcessWithLogo...
[ -0.1089610829949379, -0.1653679758310318, 0.47753456234931946, -0.22556540369987488, 0.4127005636692047, 0.20659998059272766, -0.031743429601192474, -0.31519952416419983, -0.06813275814056396, -0.34697991609573364, -0.2852068245410919, 0.8222570419311523, -0.0794949010014534, 0.36158168315...
Call CloseHandle(pi.hThread) Call CloseHandle(pi.hProcess) Else Return False End If Return True End Function End Module ```
[ -0.3060564696788788, 0.42617127299308777, 0.8281729817390442, -0.2046087235212326, 0.04917729273438454, -0.1707388460636139, 0.22013086080551147, -0.4306117296218872, 0.17745190858840942, -0.1158209815621376, -0.36192113161087036, 0.44915223121643066, -0.5447395443916321, 0.007959892041981...
The .Net C# offers two (well four) constructors: ``` Regex(String) Regex(String,RegexOptions) ``` The first constructs a regular expression with default options, while the second gives you somewhat more control. Take a peak under the hood with Reflector shows that the first constructor calls the second with a Regex...
[ 0.22677959501743317, -0.196736678481102, 0.30171656608581543, -0.09407734870910645, -0.3748205006122589, -0.18776369094848633, 0.2306455820798874, -0.06515148282051086, -0.17836622893810272, -0.41513484716415405, -0.12557005882263184, 0.8211702108383179, -0.4272450804710388, -0.29842174053...
mobilezoo](http://mobilezoo.biz/j2me.php) (ie. the api you are looking for, the [jsr 75](http://mobilezoo.biz/jsr/75/fileconnection/index.html)). I think that Sun doesn't keep these javadocs because they are out of their control. But sure the jcp guys should maintains a browsable version of the specifications.
[ 0.23580044507980347, 0.3314792513847351, 0.3989790380001068, -0.423176646232605, 0.1338069587945938, -0.12194879353046417, -0.003387110074982047, -0.016862468793988228, -0.46959027647972107, -0.5580856800079346, -0.07015685737133026, 0.5291816592216492, -0.25322604179382324, -0.10210119932...
Is there a way to convert a `List(of Object)` to a `List(of String)` in c# or vb.net without iterating through all the items? (Behind the scenes iteration is fine – I just want concise code) **Update:** The best way is probably just to do a new select ``` myList.Select(function(i) i.ToString()).ToList(); ``` or ``...
[ 0.18821614980697632, -0.09901547431945801, 0.3663400113582611, -0.09701238572597504, 0.09821665287017822, -0.13368363678455353, 0.11756467074155807, -0.41030049324035645, -0.24896934628486633, -0.5970674157142639, -0.049824025481939316, 0.6968477368354797, -0.4108693301677704, -0.109862998...
I have two tables (in postgres) - ads and logs. After every insert into logs table, depending on the action it should increment the count of a column in the ads table. I have tried to write a function which the trigger will call, but it throws a error while trying to create the function. I am new to postgresql trigge...
[ 0.43069571256637573, 0.1643635630607605, 0.6418030261993408, -0.2612564265727997, -0.23894630372524261, 0.1816629022359848, 0.04287390038371086, -0.47536221146583557, -0.17216163873672485, -0.5604870319366455, 0.2611018121242523, 0.7610911726951599, -0.4561491310596466, 0.01735114865005016...
id=ad_id;) end;$$ language sql ``` The error I get is ``` ERROR: syntax error at or near "case" LINE 2: as $$case when action=\'VIEW\' then ^ ``` **Update:** @Tomalak: Thanks for the function and updating the update statement (couldn't resist the pun). I learnt after lot of googling, that the func...
[ 0.1556849628686905, 0.16609975695610046, 0.626427948474884, -0.3270159661769867, -0.19044476747512817, 0.10354127734899521, 0.3377041220664978, -0.6122097969055176, -0.13171356916427612, -0.3171215355396271, -0.05863315612077713, 0.8305006623268127, -0.5645418763160706, -0.0052747982554137...
ad_id INT) RETURNS VOID AS $$ BEGIN IF action = 'VIEW' THEN UPDATE ads SET views = views + 1, updated = NOW() WHERE id = ad_id; END IF; END; $$ LANGUAGE plpgsql; ``` CASE is not a flow-control statement, it cannot be used like an IF statement. It is a value-producing statement (an expression) and must be us...
[ 0.11212001740932465, -0.01348003651946783, 0.6566285490989685, -0.47054323554039, -0.21182045340538025, 0.21917253732681274, 0.1633453369140625, -0.4048725962638855, 0.07253141701221466, -0.38689467310905457, -0.24596764147281647, 0.5947970151901245, -0.6208003759384155, 0.0473706908524036...
Is it possible to link to someone's outlook calendar (assuming you have priveleges to view it through outlook itself) from a web page? I am working on an intranet site and would like to provide a link to someone's calendar similar to: ``` outlook:\\Public Folders\All Public Folders\Shared Calendar ``` However,...
[ 0.5846272706985474, 0.179076686501503, 0.17644256353378296, 0.20881864428520203, 0.03444920480251312, -0.006970867048949003, 0.03465225175023079, 0.6228671669960022, -0.35324472188949585, -0.893524169921875, 0.3005296587944031, 0.40478450059890747, -0.026583412662148476, 0.2325444817543029...
it directly from an intranet site. When I drag and drop the calendar to an email message or to word, I get something that looks like: outlook:\00000000887D87050344B04AA77DC6DC84B49A4C0100CB432CC39A577C4CBB19ECFA. This link works from within the email, but not from word or html. Thanks! ***Bottom line*: Use OWA!** *...
[ 0.3593306541442871, 0.16507165133953094, 0.3907613754272461, 0.17694532871246338, -0.03611703962087631, 0.14079159498214722, 0.2648182809352875, 0.34720826148986816, -0.13033896684646606, -0.7348718047142029, 0.24859513342380524, 0.23254118859767914, -0.22521983087062836, 0.159952580928802...
said, and I quote, **“There is no workaround for either symptom 1 or symptom 3 listed above.”** <http://support.microsoft.com/kb/968416> This apparently affects outlook 2007, as opposed to versions prior, where it worked fine. According to the article, even if it were possible for us to run command line apps from out ...
[ -0.13310310244560242, 0.4542761743068695, 0.4525734782218933, -0.2900474965572357, 0.1494634598493576, -0.03747839480638504, 0.4276573061943054, 0.34783366322517395, -0.25891798734664917, -0.48689043521881104, 0.05644761025905609, 0.6742333173751831, -0.304753839969635, 0.05729784071445465...
outlook:\\Public%20Folders\All%20Public%20Folders\Corporate\Executive%20Calendar ``` **I basically concluded that it can't be done.** **HOWEVER, I did find that I can link directly an Outlook Web Access (OWA) version of the calendar using a URL like this:** ``` http://OWAUrl.MyOrganization.org/public/Corporate/Exe...
[ 0.06188998371362686, 0.20904769003391266, 0.595133364200592, -0.15773405134677887, -0.09307485073804855, 0.016384586691856384, 0.004506304860115051, 0.42027175426483154, -0.05665263533592224, -0.9736399054527283, 0.016173288226127625, 0.687617838382721, -0.05480210855603218, -0.02841281145...
I really want to be able to have a function pass some responsiblity to another object and then return on a different thread. I know this means the caller would not know that it had switched threads, but I REALLY want to know if there is ANY way to have the function return on a different thread than it was called on. As...
[ 0.32805579900741577, -0.1417192667722702, 0.3674139678478241, -0.06061409413814545, -0.013297542929649353, -0.20709128677845, 0.3852103650569916, -0.09497475624084473, -0.3945927321910858, -0.4340255856513977, -0.12535592913627625, 0.7361805438995361, -0.1351638287305832, 0.169847086071968...
an illusion to make the code easy to read, write, and reason about; under the hood it's doing all the normal async stuff with BeginRead/EndRead/callbacks/etc.
[ 0.350144624710083, 0.1063515916466713, 0.13719704747200012, 0.21212171018123627, 0.1919262707233429, -0.5688698291778564, 0.5462108254432678, 0.3376583456993103, 0.2500172257423401, -0.1023445799946785, -0.2325853556394577, 0.5590664744377136, -0.0014713950222358108, -0.14958533644676208, ...
I plan to develop a tool for realtime video manipulation using C++, Qt and OpenGL. Video overlay isn't an option since shaders should be used for frame processing. At the moment I imagine a following sequence of steps: 1. Decode video (CPU) 2. Preprocess it (optional, CPU) 3. Transer it to video memory (GPU using DMA)...
[ 0.2516143321990967, -0.1187201738357544, 0.742110550403595, 0.28076088428497314, -0.34286341071128845, -0.09090586006641388, 0.05331946909427643, -0.14096567034721375, -0.10249212384223938, -0.9257171154022217, -0.1308063268661499, 0.517205536365509, -0.18391132354736328, 0.352493017911911...
driver *might* use it, or might use something else. In any case, step 3 will be "change texture data on the graphics card". In OpenGL that's PBO (Pixel Buffer Object) extension or good old glTexSubImage\* function. In D3D9 it's LockRect on the texture or other ways (e.g. LockRect on a scratch texture, then blit into a...
[ -0.06509849429130554, -0.13240724802017212, 0.4969845712184906, 0.03951782360672951, -0.3157934248447418, 0.11981151252985, -0.0012333296472206712, -0.015488061122596264, 0.163534015417099, -0.8889596462249756, 0.11289038509130478, 0.8101344704627991, -0.2399114966392517, 0.065664373338222...
(e.g. blur/glow/...). Using Direct3D is easier in a sense that there are clearly defined "wast ways" of doing stuff. In OpenGL there are a lot more options to do anything, and you have to somehow figure out which ones are fast (sometimes the fast paths are different on different platforms or hardware).
[ 0.14923213422298431, -0.3294634521007538, 0.5586718320846558, 0.3970707952976227, -0.5632250905036926, -0.2844901382923126, 0.07061944156885147, 0.2222212851047516, -0.11434956640005112, -0.8465677499771118, -0.012443896383047104, 0.49317529797554016, -0.33658283948898315, -0.2311660796403...
Here at work we have a very large application with multiple sub applications. (500 + dlls) As a developer it is very frustrating working with all these dlls and dependencies. You create a new project and add 5+ dlls to get core pieces of the system to work (Logging, Auditing, security, messaging ect). Each new subappl...
[ 0.44629284739494324, 0.21048451960086823, 0.1530594527721405, 0.26804211735725403, 0.03362803906202316, -0.1459624469280243, 0.2011963129043579, -0.08368925005197525, -0.5307209491729736, -0.651716411113739, 0.05214487761259079, 0.505587100982666, -0.2137351930141449, 0.283058226108551, ...
think what is best.. the modular approach seems good for re-usablity, and hot patching items without taking down the system for one application. But the headache in managing 500 dlls is a nightmare. Does each subsystem really need 3-4 projects, and reference the other 5 core pieces? What are other ways of managing la...
[ 0.4522196054458618, -0.1304393708705902, 0.05926549807190895, 0.3056681752204895, 0.045281581580638885, -0.08803081512451172, 0.11872156709432602, 0.10688652098178864, -0.34163111448287964, -0.5531092286109924, -0.183427631855011, 0.2326287031173706, 0.1035628393292427, 0.37091064453125, ...
something you need. Don't worry about count of references in project. If you are frustrated of adding X references every time, you can create a macro which will do it instead you. Or you can create a template VS solution/project/items(files) with your special requirements. The large projects are large, so it's not su...
[ 0.5522477626800537, -0.30332088470458984, -0.11863584071397781, 0.5087258219718933, 0.22360366582870483, -0.1261913925409317, -0.007204689551144838, 0.16727641224861145, -0.4287757873535156, -0.726256251335144, 0.026356831192970276, 0.44833508133888245, -0.12067621201276779, 0.175805374979...
Is C# a superset of C in anyway, like Objective-C or C++? Is there a way to compile C online with constructs such compiler flags? In a word, No.
[ 0.28349587321281433, -0.0054371654987335205, -0.16581851243972778, 0.41151922941207886, -0.2362324595451355, -0.38230180740356445, -0.00670097628608346, 0.19470395147800446, -0.33771055936813354, 0.05930519476532936, -0.092780202627182, 0.48966550827026367, -0.3210127353668213, -0.04975945...
Is there any way to convert the 2008 Report format back to a 2005 format? I don't think I got prompted about my upgrading my reports and now I think they are in the new format. Any way to save my changes and go back a version? There is no way to go from 2005 to 2000. I would assume this is true still. <http://msdn.mic...
[ 0.30521538853645325, 0.04178229346871376, 0.3372727632522583, 0.12313185632228851, -0.24295009672641754, -0.24323134124279022, 0.2638181149959564, 0.05869219824671745, -0.6128785610198975, -0.5080476999282837, 0.26810550689697266, 0.4615621864795685, 0.014398934319615364, 0.226216182112693...
Is there any way i can access the page object from within the global.asax Application\_EndRequest function ? I'm trying to set the text of a label at the end of the request but accessing the page is proving to be more difficult than I thought. here is what i have that's currently NOT working: ``` protected void Appl...
[ -0.19378197193145752, -0.10175319761037827, 0.7307324409484863, -0.18340349197387695, 0.03747249022126198, 0.07879959046840668, 0.2756403684616089, -0.09167461842298508, -0.17917826771736145, -0.8717589974403381, -0.29939159750938416, 0.22287428379058838, -0.28020721673965454, 0.4111236631...
System.Web.UI.Page page = System.Web.HttpContext.Current.Handler as System.Web.UI.Page; if (page != null) { Label label = page.FindControl("lblProcessingTime") as Label; if (label != null) { label.Text = String.Format("Request Processing Time: {0}", ts...
[ -0.35980257391929626, -0.45189645886421204, 0.900040864944458, -0.24424174427986145, 0.23661638796329498, 0.022082138806581497, 0.2388150990009308, -0.33180707693099976, -0.35955893993377686, -0.5818931460380554, -0.6027429699897766, 0.31508439779281616, -0.34412333369255066, 0.27561631798...
} } } ``` page is always null here. Thanks in advance. It's probably best just to create a BasePage class from which all your pages should inherit. Then you can put the code within the Unload event of the page and there will be no issue.
[ 0.18421776592731476, 0.22524291276931763, 0.2191348522901535, 0.1557919830083847, -0.1413295418024063, -0.2837821841239929, 0.17161883413791656, 0.4337588846683502, 0.0008613335667178035, -0.6160922646522522, -0.19066555798053741, 0.4134964048862457, -0.2659515142440796, 0.2241353988647461...
Seems like every C# static analyzer wants to complain when it sees a public field. But why? Surely there are cases where a public (or internal) *field* is enough, and there is no point in having a property with its `get_` and `set_` methods? What if I know for sure that I won't be redefining the field or adding to it (...
[ 0.24473264813423157, 0.2665339410305023, -0.00343660288490355, 0.20711492002010345, -0.134515181183815, -0.4223998486995697, 0.4593445062637329, -0.10006047785282135, -0.2868853509426117, -0.1600186824798584, -0.3416309654712677, 0.5367042422294617, -0.5022357702255249, 0.31608840823173523...
encapsulation complaints) and do what's right for your project. Don't let the OO nazis tell you otherwise.
[ 0.5742064118385315, 0.276773601770401, 0.12802059948444366, 0.4162063002586365, -0.3759179711341858, -0.2458542138338089, 0.7263970375061035, -0.0019518914632499218, 0.11937510967254639, -0.3824957311153412, -0.5569909811019897, 0.3154735863208771, -0.09863030165433884, 0.02096900902688503...
Does anyone know why `java.lang.Number` does not implement `Comparable`? This means that you cannot sort `Number`s with `Collections.sort` which seems to me a little strange. **Post discussion update:** Thanks for all the helpful responses. I ended up doing [some more research about this topic](http://radioeiffel.blo...
[ 0.15619926154613495, 0.3550577461719513, -0.037543125450611115, 0.09055765718221664, -0.5417954921722412, -0.25690171122550964, 0.31310728192329407, -0.02573833242058754, -0.12730394303798676, -0.38685187697410583, 0.3047676682472229, 0.4522131681442261, -0.32739439606666565, 0.37242797017...
`Comparable` on mutable types because the objects can change during or after comparison rendering the result of the comparison useless. Both `AtomicLong` and `AtomicInteger` are mutable. The API designers had the forethought to not have `Number` implement `Comparable` because it would have constrained implementation of...
[ -0.24934080243110657, -0.001317791291512549, 0.25394904613494873, 0.1620669811964035, -0.4056673049926758, 0.0007240542327053845, 0.10314369201660156, -0.1415998488664627, -0.00296703795902431, -0.8640861511230469, 0.13632521033287048, 0.6352552175521851, -0.38035327196121216, 0.1929458975...
in terms of mathematics and performance is a bit unclear to me, but my intuition finds that solution kludgy. It's worth mentioning that the following expression: ``` new Long(10).equals(new Integer(10)) ``` is always `false`, which tends to trip everyone up at some point or another. So not only can you not compare a...
[ 0.019465699791908264, 0.19777055084705353, 0.0726376548409462, -0.057792652398347855, -0.11720581352710724, -0.030494695529341698, 0.3345046043395996, -0.6117237210273743, -0.09466195106506348, -0.4285779297351837, 0.1076318621635437, 0.4951726198196411, -0.06619462370872498, 0.10284286737...
d2 += 0.1d; } System.out.println(d2 - d1); ``` and you'll be left with some small difference. So back to the issue of making `Number` `Comparable`. How would you implement it? Using something like `doubleValue()` wouldn't do it reliably. Remember the `Number` subtypes are: * `Byte`; * `Short`; * `Integer`; * `Long`...
[ 0.18753600120544434, 0.17777396738529205, 0.0453651063144207, 0.14821824431419373, -0.38915714621543884, 0.13639923930168152, 0.2474120557308197, -0.4468984603881836, -0.030548211187124252, -0.6241185665130615, 0.1648789644241333, 0.57000333070755, -0.040211886167526245, 0.1584718078374862...
Simple question, would love a solution if there is one! I assume there has to be some keyboard shortcut that will insert a null but Google isn't helping. Thanks in advance! I followed Brent's suggestion and got my answer: `ctrl`+`del`.
[ -0.21254700422286987, -0.15047387778759003, 0.3056420385837555, 0.40881186723709106, -0.1662786304950714, 0.06827584654092789, 0.20087099075317383, 0.17707543075084686, -0.11109191924333572, -0.261207640171051, 0.020180698484182358, 0.30275148153305054, -0.07339845597743988, -0.15840788185...
I'm studying ICT. One of my courses is C# and another is Physics. Our Physics teacher used Visual Studio to animate some movements gave us some of the code he used to do it. He told us to look it up. Here's something I don't recognize: ``` public static Vector operator + (Vector v1, Vector v2) { return new Vector(...
[ 0.1742224544286728, -0.11056961864233017, 0.4619649052619934, 0.15608389675617218, 0.08222446590662003, 0.32596272230148315, -0.15303468704223633, 0.2963135540485382, -0.5406320691108704, -0.7374973893165588, 0.0022433733101934195, 0.07788719981908798, -0.2577701807022095, -0.1092862933874...
constructor. It's an operator method for the '+' operator. It defines what happens when you do somethig like the following:- ``` var Vector v1 = new Vector(1,2,3); var Vector v2 = new Vector(1,2,3); var Vector v3 = v1 + v2; ```
[ 0.017309967428445816, -0.3144915699958801, 0.6070448160171509, -0.08703044801950455, -0.24768425524234772, 0.09332138299942017, -0.06571724265813828, -0.5438644289970398, 0.07619231939315796, -0.5320161581039429, 0.1696232259273529, 0.4520505666732788, -0.2826840877532959, 0.18819013237953...
What is a Vanilla JS or jQuery solution that will select all of the contents of a textbox when the textbox receives focus? ``` $(document).ready(function() { $("input:text").focus(function() { $(this).select(); } ); }); ```
[ 0.1258622109889984, -0.2956211566925049, 0.39981597661972046, -0.07923325896263123, 0.16857491433620453, 0.13192133605480194, -0.03625740855932236, -0.0812438353896141, -0.06725706160068512, -0.4089287221431732, -0.5506476759910583, 0.5655598640441895, -0.690529465675354, 0.001819624216295...
I have an extension method on the HttpApplicationState object for getting my IoC container out of the application. This same code will also create the container if it doesn't exist. I have 2 questions: 1. Is my code actually thread safe as I intend it to be 2. Is this considered the best practice for dealing with the...
[ 0.06622523814439774, -0.20288117229938507, 0.3235001266002655, 0.013052836991846561, 0.253509521484375, -0.29979532957077026, 0.5022708177566528, -0.21393568813800812, -0.042019836604595184, -0.7052071690559387, -0.11054829508066177, 0.32778844237327576, -0.2704426646232605, 0.161896482110...
{ application.Lock(); container = application[GlobalContainerKey] as IUnityContainer; if (container == null) { container = new UnityContainer(); application[GlobalContainerKey] = container;
[ -0.5836539268493652, -0.4240420460700989, 0.8895089030265808, -0.20478765666484833, 0.49407127499580383, 0.2619819641113281, 0.25190269947052, -0.031158586964011192, -0.20246970653533936, -0.49403709173202515, -0.3516540825366974, 0.31490379571914673, -0.5059283971786499, 0.599921047687530...
} } finally { application.UnLock(); } } return container; } ``` You need to put ``` var container = application[GlobalContainerKey] as IUnityContainer; ``` in the lock as well, otherwise many threads may create a new container in sequence. ``` private const str...
[ -0.3394700288772583, -0.3318840265274048, 0.7921872138977051, -0.09773824363946915, 0.32491663098335266, 0.00815139152109623, 0.331813246011734, 0.03917543217539787, -0.3706219494342804, -0.7250257730484009, -0.3865942358970642, 0.42690467834472656, -0.507617175579071, 0.6132550835609436, ...
application) { var IUnityContainer container = null; lock (lockObject) { container = application[GlobalContainerKey] as IUnityContainer; if (container == null) { container = new UnityContainer(); application[GlobalContainerKey] = container; } } ...
[ -0.44388431310653687, -0.20924486219882965, 1.0278956890106201, -0.18086174130439758, 0.4279822111129761, 0.23134338855743408, 0.4103073179721832, -0.27494558691978455, -0.19745859503746033, -0.5321311950683594, -0.3775220513343811, 0.4820287525653839, -0.5542780756950378, 0.61680334806442...
I'm in a situation where I need to make a call to a stored procedure from Rails. I can do it, but it either breaks the MySQL connection, or is [a pseudo hack that requires weird changes to the stored procs](https://stackoverflow.com/questions/471517/is-it-possible-to-call-a-mysql-stored-procedure-from-ruby). Plus the p...
[ 0.2866007685661316, 0.23054364323616028, 0.0517292320728302, 0.0667276382446289, 0.0451655350625515, -0.08558078855276108, 0.6627601981163025, 0.22773578763008118, -0.3779233992099762, -0.6554374098777771, 0.022118985652923584, 0.5885964632034302, -0.309903085231781, 0.37231260538101196, ...
the innards of the MySQL well enough to know it's 100% safe. It would solve my problem neatly, in that with the controller actions that need to call a stored proc would open a fresh database connection, make the call and close it. I might sacrifice some performance, but if it works that's good enough. It also solves t...
[ 0.00331566808745265, 0.03840527683496475, 0.3385009169578552, 0.1917576938867569, -0.06006596237421036, -0.1990184187889099, 0.4487173557281494, 0.12645691633224487, -0.07185341417789459, -0.5341823697090149, 0.2846737504005432, 0.6563729643821716, -0.17034319043159485, 0.09184500575065613...
Active Record. So, is this a bad idea and/or dangerous? We've since tried the latest mysql gem from github and even that doesn't solve the problem. We've patched the mysql adapter in Rails and that actually does work. All it does is make sure the MySQL connection has no more results before continuing on. I'm not acc...
[ 0.4471680521965027, 0.021797874942421913, 0.10690991580486298, 0.4360277056694031, 0.1369399130344391, -0.287828654050827, 0.5688219666481018, 0.24996568262577057, -0.2716498374938965, -0.46167001128196716, 0.29213905334472656, 0.6438312530517578, -0.11114943772554398, 0.08211333304643631,...
We have a static method in a utility class that will download a file from a URL. An authenticator has been set up so that if a username and password is required, the credentials can be retrieved. The problem is that the credentials from the first successful connection are used for every connection afterwords, as long a...
[ -0.10936246812343597, 0.1122199222445488, 0.5818071961402893, 0.20111992955207825, 0.006507021840661764, -0.12569570541381836, 0.14726705849170685, 0.11093120276927948, -0.1997738778591156, -0.4446887671947479, -0.22433222830295563, 0.46257299184799194, -0.3202286660671234, 0.5602073073387...
static File download(String url, String username, String password, File newFile) { auth.set(username, password); Authenticator.setDefault(auth); URL fURL = new URL(url); OutputStream out = new BufferedOutputStream(new FileOutputStream(newFile)); URLConnection conn = fURL.openConnection(); InputS...
[ -0.09541944414377213, -0.6622647047042847, 0.9298442602157593, -0.060675397515296936, 0.22290374338626862, 0.10033892840147018, 0.15220783650875092, 0.03354353830218315, -0.1630438268184662, -0.48021629452705383, -0.42443159222602844, 0.6081547141075134, -0.4685252606868744, 0.325147926807...
in.close(); if (out != null) out.close(); } return newFile; } public class URLAuthenticator extends Authenticator { private String username; private String password; public URLAuthenticator(String username, String password) { set(username, password); } pu...
[ -0.16117112338542938, 0.0053885336965322495, 0.7801159620285034, -0.48319217562675476, 0.24535223841667175, 0.04180987551808357, 0.21071933209896088, -0.256714791059494, 0.3835979104042053, -0.25135788321495056, -0.7360489368438721, 0.4928257167339325, -0.3078794777393341, 0.37763613462448...
this.password = password; } protected PasswordAuthentication getPasswordAuthentication() { log.debug("Retrieving credentials '" + username + "', '" + password + "'."); return new PasswordAuthentication(username, password.toCharArray()); } } ``` I only see the log statement from getPas...
[ -0.07592528313398361, 0.0358169749379158, 0.5498687028884888, -0.014163278974592686, 0.4171687960624695, -0.3886878788471222, 0.5803693532943726, -0.30401259660720825, -0.31039726734161377, -0.5981738567352295, -0.49020034074783325, 0.8624955415725708, -0.25415894389152527, 0.2277426868677...
credentials can be entered, and a successful connection can still be made. Is this possibly a result of the download method being static, and in a static class? **Edit** I forgot to mention that this is in a JSF webapp running under tomcat - maybe one of those technologies is setting some default credentials somewhere...
[ 0.07690685987472534, 0.23900887370109558, 0.5041366219520569, 0.2538483440876007, 0.060222458094358444, -0.40293261408805847, 0.6620899438858032, -0.04772819206118584, -0.17100487649440765, -0.3267150819301605, -0.08686958998441696, 0.6631451845169067, -0.053493253886699677, 0.234483510255...
here since I'm setting the Authenticator everytime, but I thought I'd throw it out there. The NTLM authentication is definately getting used, because if the server is run as a user that has access to the downloaded file, the credentials aren't even asked for, the file just downloads. So something obviously is grabbing ...
[ 0.13796226680278778, 0.3665400743484497, 0.3451760411262512, 0.08406085520982742, 0.2948624789714813, -0.24583441019058228, 0.6063699126243591, -0.20289373397827148, -0.34228894114494324, -0.766787588596344, -0.1661207377910614, 0.55184406042099, -0.34419751167297363, 0.2504885792732239, ...
AuthCache at the top of the download function described in the question. During compile, you'll get warnings about using these classes. This doesn't completely fix the problem: if NTLM authentication works, the authenticator still won't get called, but as long as the server is running under a user that has does not hav...
[ 0.04416421428322792, 0.06288415193557739, 0.24698126316070557, 0.06519083678722382, -0.054242052137851715, -0.26352033019065857, 0.5499655604362488, -0.23272685706615448, -0.032523754984140396, -0.5269601941108704, -0.03821831941604614, 0.4894395172595978, -0.1716303527355194, 0.2753313779...
We got strange error last days. \_\_\_doPostBack is undefined. We are building quite advanced website, but not using postbacks much. One of place where postback used is ASP.NET Login Status control. It is probabalystic, sometimes it is rendered, sometimes - not. For IE, Chrome it works mostly fine, but from FireFox i...
[ 0.21653343737125397, 0.19334235787391663, 0.34968331456184387, 0.09262670576572418, -0.20974399149417877, -0.14802634716033936, 0.46938276290893555, 0.3108476400375366, -0.05328451842069626, -0.9645984768867493, 0.33949723839759827, 0.4388461410999298, -0.3276017904281616, 0.07346668094396...
out and try again please
[ 0.060564570128917694, 0.17176365852355957, 0.09410437941551208, -0.11633899062871933, -0.21221812069416046, 0.3869146406650543, 0.44461801648139954, -0.13249653577804565, -0.015887076035141945, -0.5172320008277893, 0.131125807762146, 0.36938223242759705, -0.48959586024284363, 0.24347950518...
I have been creating a website with Ruby on Rails, and will be hosting it through a friend. He has the space and capacity to host the server, and I have a system to devote to being a dedicated server. And this is my first attempt at a Rails website, plus self-hosting with a friend. I will be formatting and preparing t...
[ 0.16075780987739563, 0.3573155999183655, 0.12626945972442627, 0.06312201917171478, -0.28587621450424194, -0.09359344840049744, 0.46735960245132446, 0.0779397264122963, -0.03360915184020996, -0.6109405159950256, 0.06699427962303162, 0.3668556809425354, -0.07514400035142899, -0.1410426199436...
yet, and being new to Rails I haven't the experience to navigate my way through this yet. ### What build of Linux is most recommended for this configuration? I have been planning to deploy on CentOS. The caveat is that I have been a Windows user since my early days, and have only used Linux as a webhost and *very few...
[ 0.2130233645439148, 0.0891142338514328, 0.16755910217761993, 0.09607572108507156, 0.152910977602005, -0.056124910712242126, 0.06686613708734512, 0.42680659890174866, -0.11477454006671906, -0.71346515417099, -0.0497443825006485, 0.6741177439689636, 0.0848393589258194, -0.1829211264848709, ...
to dry. This includes things like building anything from source code. ### How do I set up Capistrano on my server for remote deployment? I know this is an oxymoron (Capistrano is client-side, not server-side) but I don't know what it needs on the server. Does it need FTP? SFTP? SSL? SSH? What? What do I configure o...
[ 0.3786936402320862, -0.02520463615655899, 0.7337074875831604, 0.11558151245117188, -0.03856932744383812, 0.009160853922367096, -0.23622514307498932, 0.14410372078418732, -0.4273061454296112, -0.6388335227966309, 0.100552037358284, 0.5827251076698303, -0.19261835515499115, 0.354003369808197...
on the server, but I'm not entirely sure how to do that. ### What is the biggest snag you watch for when deploying from a localhost development, to deployment on a totally different OS? ### Miscellaneous *Why not deploy to Windows then?* Because I'm footing the bill, and I don't want to pay for another copy of XP or...
[ 0.4537588357925415, 0.10785477608442307, 0.3141267001628876, 0.049137428402900696, -0.07565482705831528, -0.19666646420955658, 0.22995300590991974, 0.25494319200515747, -0.22861126065254211, -0.6765661835670471, -0.050715137273073196, 0.7549078464508057, 0.05433861166238785, -0.05491510033...
now, and I'm trying to expand my horizons by doing the server configuration and the remote deployment (for further development of the site) by myself. I've relied on hosts in the past for my PHP websites, but they're much more homogeneous in their configuration. Ruby servers are expensive, prohibitively so for me, and ...
[ 0.13778649270534515, 0.333171010017395, 0.11962194740772247, 0.09270953387022018, -0.268454372882843, 0.017063340172171593, 0.21168917417526245, 0.1778917759656906, -0.1472659856081009, -0.6303724050521851, 0.23275671899318695, 0.631931722164154, 0.07166899740695953, 0.15113700926303864, ...
use CentOS and find its package manger to be ridiculously easy to use ([yum](http://yum.baseurl.org/)). ``` yum install -y httpd ruby gem install rails passenger ``` Then all you have to do is a little configuration in `/etc/httpd/conf/httpd.conf` to add Passenger (following the install file for Passenger `passenger...
[ -0.41386789083480835, 0.055528752505779266, 0.5454705357551575, 0.14469370245933533, 0.022970644757151604, 0.03385217860341072, 0.08544744551181793, -0.28259387612342834, -0.18455065786838531, -0.7713145017623901, -0.2329300493001938, 0.5536884665489197, -0.31682929396629333, -0.0295103676...
access with sufficient permissions to deploy, migrate, restart app server, etc. Just follow the [getting started guide](http://www.capify.org/getting-started) at the [Capistrano website](http://www.capify.org/) and you will be up and running in no time. Capistrano needs access to your SCM, you will need to allow it to...
[ 0.021405598148703575, 0.11919770389795303, 0.9440746903419495, 0.18920746445655823, 0.5281272530555725, -0.27908387780189514, -0.10610631108283997, -0.13962718844413757, -0.9321410655975342, -0.8184543251991272, -0.07068483531475067, 0.48595792055130005, -0.4447861909866333, 0.127412289381...
and test them some more. A bug in your application is easy to fix and redeploy, but a bug in your migration could end up a huge pain in the ass with the possibility of data loss.
[ 0.5764377117156982, 0.2817166745662689, -0.09464413672685623, 0.43873900175094604, 0.43546515703201294, -0.15579672157764435, 0.27387115359306335, 0.04104447737336159, -0.22358821332454681, -0.3995797634124756, 0.17544345557689667, 0.364035427570343, 0.03474609926342964, -0.042755536735057...
This is a followup question to this question: [select all contents of textbox when it receives focus (Javascript or jQuery)](https://stackoverflow.com/questions/480735/select-all-contents-of-textbox-when-it-receives-focus-javascript-or-jquery) Basically I am using a textbox in conjunction with the [jQuery masked inpu...
[ 0.2303302139043808, -0.3478189706802368, 0.23622183501720428, 0.010174048133194447, -0.3934556841850281, -0.2697594165802002, -0.10126958787441254, -0.16079677641391754, -0.12406983971595764, -0.6132747530937195, -0.1981007605791092, 0.6386274695396423, -0.29678550362586975, -0.40830901265...
type="text" value="01/01/2009" /> <br /> <input id="focustest" type="text" value="on focus will select all contents..." /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="http://jquery-joshbush.googlecode.com/files/jquery.ma...
[ 0.03535475209355354, -0.4328996539115906, 0.7278956174850464, -0.2819444239139557, -0.33155325055122375, 0.3041904866695404, 0.133182555437088, -0.44606247544288635, 0.2097533792257309, -0.7727029323577881, -0.31986871361732483, 0.7474702596664429, -0.16591095924377441, -0.4974933862686157...
.focus(function() { $(this).select(); }); }); </script> </body> </html> ``` I'm the author of the [Masked Input Plugin](http://digitalbush.com/projects/masked-input-plugin/) for jQuery. I decided that this should be the default behavior for completed masks and I got it i...
[ 0.4748307764530182, -0.677902102470398, 0.47403234243392944, -0.19741104543209076, -0.15820492804050446, -0.17583481967449188, 0.16267022490501404, -0.13574902713298798, -0.017856646329164505, -0.7715261578559875, -0.29249289631843567, 0.864660918712616, -0.2597980797290802, -0.56098103523...
I am a beginner SQL user (not formally trained; OJT only) and need some assistance with a simple update statement. I would like to write an update statement that allows me to list ID's. The statement shown below is how I am currently writing it. Ideally, the statement would allow me to write it like "where plantunitid ...
[ 0.4152444899082184, -0.08813907951116562, 0.48827067017555237, -0.06146441027522087, 0.4257492125034332, -0.1985013633966446, 0.02217935398221016, -0.24268731474876404, -0.06887758523225784, -0.6162530183792114, 0.23869958519935608, 0.2793475389480591, -0.2341730147600174, -0.0553867369890...
Do you know any freely available WPF component for using masks (regex) in textbox? I think you will find what you need in this control library: <http://www.codeplex.com/WPFDeveloperTools> Look for 'FilteredTextBox' amongst all the other useful controls. I don't think it does regex, but it should be able to filter just...
[ 0.5145485401153564, -0.4909888505935669, 0.0002680791658349335, 0.10576248914003372, -0.4111332297325134, -0.2924049198627472, 0.3574521839618683, -0.013979846611618996, -0.08793658018112183, -0.6624862551689148, 0.2394983023405075, 0.3821313977241516, -0.48356297612190247, -0.420743256807...
Right now I'm thinking write the paths to a file in the pre-build event and then read from that file in the code, but I'm wondering if there's an easier more elegant way. edit: This is sort of a follow up to [Help with one step build all projects + installer (.NET + WiX)](https://stackoverflow.com/questions/480748/hel...
[ 0.4284495711326599, -0.0880623310804367, 0.24249061942100525, -0.005167285446077585, -0.07177508622407913, -0.1798017919063568, 0.4519106149673462, -0.4670030176639557, -0.2858545780181885, -0.7517434358596802, -0.022545505315065384, 0.32111290097236633, -0.43826982378959656, -0.1341301798...
the file `SolutionDirFile.txt` in your C# code.
[ -0.2349555343389511, 0.020895419642329216, 0.21553657948970795, 0.14719942212104797, 0.5966148376464844, -0.13341613113880157, 0.4646875858306885, 0.3214299976825714, -0.07161268591880798, -0.6995854377746582, -0.38413676619529724, 0.5023928880691528, -0.3135623037815094, 0.076494023203849...
So, I have this situation where I need to see if an object is in my stl map. If it isn't, I am going to add it. ``` char symbolName[] = { 'H', 'e', 'l', 'l', 'o', '\0' }; map<string,TheObject> theMap; if (theMap.find(symbolName)==theMap.end()) { TheObject theObject(symbolName); theMap.insert(pa...
[ 0.025011247023940086, 0.2206646353006363, 0.23152633011341095, -0.13238310813903809, 0.17422635853290558, 0.11714830249547958, 0.4384530484676361, -0.3417348563671112, -0.12231006473302841, -0.9463717341423035, -0.49463218450546265, 0.4301227927207947, -0.2341163009405136, -0.0223217178136...
in the map. Supposedly, if the item is not in the map, it is supposed to return an iterator equivelent to map::end What is going on here? GCC: 3.4.6 It can crash because of many reasons. Without knowing the definition of at least `TheObject`'s constructors, i think we are largely left to guess at the problem. So far,...
[ -0.30615779757499695, 0.10901506245136261, 0.4141613841056824, -0.08452276140451431, 0.02087980881333351, -0.20000265538692474, 0.3401789963245392, -0.2222106009721756, -0.18709242343902588, -0.9862632155418396, -0.2042880803346634, 0.5299215316772461, -0.32264503836631775, 0.1811870932579...