text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
you need IE 6 support, take a deep breath and [check this out](http://locusoptimus.com/css-trickery/ie-image-border-styles-on-hover-solution.php) (thanks to @Brian Kim for reminding me about IE6): ``` <html> <head> <style> a:hover{ background-color:white; } a:link img, a:visited img{ border:5px sol...
[ 0.17615218460559845, -0.07154291868209839, 0.7222121357917786, 0.08407184481620789, -0.10145686566829681, -0.12239260971546173, 0.37809255719184875, -0.10103953629732132, -0.1263425648212433, -1.0548291206359863, -0.22479283809661865, 0.2902487814426422, -0.07444429397583008, -0.0689510926...
be more suitable to your situation.
[ 0.2652144730091095, 0.05128774791955948, -0.4457080662250519, 0.028715599328279495, -0.10233166813850403, 0.02803345024585724, 0.3291347920894623, 0.3842554986476898, 0.31854528188705444, -0.9237176775932312, -0.44047215580940247, 0.3014851212501526, 0.15283600986003876, -0.372719943523407...
I am looking to develop an audio player in C#, but was wondering what libraries are available for playback. I am looking for a free library that allows for an extensive list of audio formats to be played (for example mp3, wma, wav, ogg, etc.) Thats pretty much the basic functionality I would need. But if I could get pi...
[ 0.5723025798797607, 0.14591176807880402, 0.2345990389585495, 0.3008907437324524, -0.20006896555423737, -0.4067239761352539, -0.36572977900505066, 0.14148375391960144, -0.21851365268230438, -0.4325450360774994, 0.16633544862270355, 0.8721166253089905, -0.3024730682373047, 0.3896351158618927...
work, and I'd prefer to just package my application with a dll instead of having my users have the VLC software installed on their machine as well. Thanks for any tips or advice on this. [Bass Audio Library](http://www.un4seen.com/) is one option.
[ 0.9382909536361694, -0.40137025713920593, 0.31340640783309937, 0.24029980599880219, 0.012077124789357185, -0.4351752698421478, -0.16204442083835602, 0.24135087430477142, -0.5095309615135193, -0.37520185112953186, 0.06236101686954498, 0.7997958660125732, -0.22279489040374756, 0.249365389347...
I'm using the [Sortable](http://docs.jquery.com/UI/Sortable) component of [jQuery UI](http://ui.jquery.com/). The callbacks don't seem to work at all, even with this minimalistic test: ``` <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript" src="jquery-ui-personalized-1.6rc4.js"...
[ -0.1264219582080841, -0.01789766177535057, 0.7194398641586304, -0.2263391613960266, -0.1866213083267212, 0.13294298946857452, 0.011934308335185051, -0.3587520718574524, -0.20025813579559326, -0.8797113299369812, -0.21472050249576569, 0.6152146458625793, -0.08730155974626541, -0.14362049102...
id="outer"> <li>apple</li> <li>orange</li> </ul> ``` I get none of the alerts when I reorder these elements. Is my usage correct or am I perhaps misreading the [documentation](http://docs.jquery.com/UI/Sortable/sortable#options)? > start Function(Event, ui) > > > Function that gets called when sorting starts. It ...
[ -0.3657590448856354, -0.214280903339386, 0.4539806842803955, -0.060479797422885895, -0.012163951061666012, -0.023128077387809753, 0.13115456700325012, 0.03668995946645737, -0.5724867582321167, -0.7822596430778503, -0.28825801610946655, 0.45105499029159546, -0.15046560764312744, -0.23513832...
In an ASP.NET (2.0) application I use FormsAuthentication. In the Global.asax / Application\_AuthenticateRequest method I check if HttpContext.Current.User is null. Is this enough to know if the forms authentication cookie exists, the ticket is not expired, and overall, that the forms authentication mechanism has don...
[ 0.15395453572273254, -0.09300705790519714, 0.526894748210907, 0.0569719597697258, 0.0078019676730036736, -0.4317626953125, 0.15635505318641663, -0.29124972224235535, -0.27550795674324036, -0.8132368326187134, -0.0801287516951561, 0.06520938873291016, -0.17951111495494843, -0.03884212300181...
if the page accessed in this "location" needs protection or not, and if yes, to know if the user have been authenticated already, or I need to redirect to Logon. EDIT: As the answers suggest, most probably I'll go with IsAuthenticated. In order for me to grasp it better, here are 2 bonus questions :) (please, edit oth...
[ 0.12615612149238586, 0.16042479872703552, 0.753892183303833, 0.2229190319776535, 0.014394436031579971, -0.33525341749191284, 0.32018429040908813, -0.07754140347242355, -0.03370390832424164, -0.5487582087516785, -0.13928991556167603, 0.47902435064315796, -0.02802296169102192, 0.010437661781...
few pages are excluded with "location" directive? No, the `User` could just be a reference to the anonymous user. Check [`HttpContext.Current.Request.IsAuthenticated`](http://msdn.microsoft.com/en-us/library/system.web.httprequest.isauthenticated.aspx).
[ 0.13216717541217804, -0.027751853689551353, 0.38897740840911865, 0.3745131492614746, 0.08100494742393494, -0.4424971640110016, 0.33558064699172974, 0.35776692628860474, -0.2815099358558655, -0.5044729113578796, -0.45660915970802307, -0.1469021439552307, -0.3070848882198334, 0.4147602617740...
When I use top the iowait on the host is really high. iostat tells me which disk is utilized more but I want to find out which process is the culprit? I am trying to find this out on a red hat linux host. Any suggestions. EDIT: My linux flavor does not either have atop or ntop and since building kernel is not an o...
[ 0.26783549785614014, 0.2718338966369629, 0.019819382578134537, 0.2190292328596115, 0.015396307222545147, -0.4079034924507141, 0.5564159154891968, 0.17899461090564728, -0.4335355758666992, -0.6572027802467346, 0.11246316879987717, 0.6287489533424377, -0.30252063274383545, 0.0698795318603515...
macro, it can stringize that stuff, and it will print *if(condition) func(foo);*, but not with the actual values of the variables substituted. Remember the preprocessor doesn't know about the structure about that code. For debugging, i would use some type-safe printf variant like boost.format or some home brew [print...
[ -0.02282428927719593, 0.10021300613880157, 0.3113185465335846, -0.27408257126808167, 0.2898654341697693, -0.07378604263067245, -0.14576081931591034, -0.04706377536058426, -0.27140626311302185, -0.3920673429965973, -0.03240737318992615, 0.8558856248855591, -0.3981875479221344, -0.3665970563...
Does it matter how many files I keep in a single directory? If so, how many files in a directory is too many, and what are the impacts of having too many files? (This is on a Linux server.) Background: I have a photo album website, and every image uploaded is renamed to an 8-hex-digit id (say, a58f375c.jpg). This is t...
[ 0.6338698863983154, 0.27931588888168335, 0.3842165172100067, -0.011413444764912128, 0.09920362383127213, -0.052346035838127136, 0.013749397359788418, -0.12910093367099762, -0.4924507141113281, -0.5384710431098938, 0.10835132747888565, 0.45492252707481384, 0.15712492167949677, 0.08288096636...
files in the directory (through FTP or SSH client) take a few seconds. But I can't see that it has any effect other than that. In particular, there doesn't seem to be any impact on how quickly an image file is served to the user. I've thought about reducing the number of images by making 16 subdirectories: 0-9 and a-f...
[ 0.07407565414905548, -0.15800392627716064, 0.6910195350646973, 0.15905989706516266, -0.126919224858284, 0.006217272952198982, 0.022478841245174408, 0.08254142105579376, -0.45591500401496887, -0.7158787846565247, -0.27567246556282043, 0.4587581157684326, -0.16030649840831757, 0.184247836470...
number of files: 268,173,300 * Maximum number of files per directory: 216 - 1 (65,535) * Maximum file size: 2 GiB - 1 without [LFS](http://en.wikipedia.org/wiki/Large_file_support), 4 GiB - 1 with [NTFS](http://en.wikipedia.org/wiki/NTFS): ========================================== * Maximum number of files: 232 - 1 ...
[ -0.30872854590415955, 0.2651122510433197, 0.27190378308296204, -0.04990188777446747, -0.11520978063344955, 0.4445173144340515, 0.2771126925945282, -0.3075380325317383, -0.47469398379325867, -0.794121503829956, -0.514390766620636, 0.5149614214897156, -0.14709462225437164, 0.2223326414823532...
size of 4 KiB) + 32 TiB (block size of 8 KiB) [ext3](http://en.wikipedia.org/wiki/Ext3): ========================================== * Maximum number of files: min(volumeSize / 213, numberOfBlocks) * Maximum file size: *same as ext2* * Maximum volume size: *same as ext2* [ext4](http://en.wikipedia.org/wiki/Ext4): ==...
[ -0.2988499104976654, 0.12265095114707947, 0.47122180461883545, -0.08149660378694534, -0.21582761406898499, 0.37280526757240295, 0.12372852116823196, -0.32777470350265503, -0.5265341997146606, -0.512150228023529, -0.42844370007514954, 0.4999617338180542, -0.2491661012172699, 0.2234411686658...
Conceptually, I would like to accomplish the following but have had trouble understand how to code it properly in Python: ``` from threading import Thread for i in range(0,3): t = Thread(target=myfunction) t.start() # wait until threads have finished executing print 'complete!' ``` add the threads to a list ...
[ 0.3654126226902008, 0.01859361305832863, 0.4945637881755829, -0.4346867799758911, -0.0873277336359024, -0.07724139094352722, 0.22616244852542877, -0.25228485465049744, -0.25099214911460876, -0.5837005376815796, -0.09105022996664047, 0.7000204920768738, -0.4011179804801941, -0.0376455970108...
I have a listview that you select a row/item on. This is linked to a datatrigger that displays an image on the row. The image should only be displayed when the row is selected. This part works fine, however when you move the focus to something else, such as a textbox, or a messagebox is displayed, the listviewitem los...
[ 0.35927581787109375, -0.23528648912906647, 0.46004536747932434, 0.021697642281651497, -0.20933382213115692, -0.0720139592885971, 0.24472568929195404, 0.024465588852763176, -0.36249232292175293, -0.8854405283927917, 0.3074261546134949, 0.5211232304573059, -0.18880024552345276, 0.33869445323...
on this please? ``` <Style x:Key="deleteImageStyle" TargetType="{x:Type Image}"> <Setter Property="Source" Value="Resources/iconDelete.png" /> <Setter Property="Margin" Value="0,2,5,0" /> <Setter Property="Height" Value="16" /> <Setter Property="Width" Value="16" /> <Setter Property="HorizontalAlig...
[ -0.20399323105812073, -0.029627669602632523, 0.9935643672943115, 0.1633666455745697, 0.1854865998029709, 0.1684398651123047, -0.03862502798438072, -0.5859881043434143, -0.25659412145614624, -0.6561309099197388, -0.10196921229362488, 0.5860358476638794, -0.14811234176158905, 0.0171185377985...
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBoxItem}},Path=IsSelected}" Value="False"> <Setter Property="Visibility" Value="Hidden"/> </DataTrigger> <Trigger Property="IsEnabled" Value="False"> <Setter Property="Visibil...
[ -0.033212531358003616, -0.15985718369483948, 0.392566978931427, 0.1410829871892929, -0.13296997547149658, 0.12329097092151642, 0.2587178647518158, -0.3912350833415985, -0.10541757941246033, -0.5275077223777771, -0.012317219749093056, 0.42627274990081787, -0.3172496557235718, 0.031377017498...
and IsFocused are true, otherwise hidden. One way to do this is to set default Visibility to Visible, and then add two triggers that set Visibility to Hidden: one trigger for IsSelected = False, and another trigger for IsFocused = False. Or the opposite, set default Visibility to Hidden, and use a MultiTrigger with ...
[ -0.2236330807209015, -0.47635769844055176, 0.1026969626545906, 0.0454341322183609, 0.21474407613277435, 0.05552936717867851, 0.3695313632488251, -0.04141600430011749, -0.04781419038772583, -0.41737693548202515, -0.38692790269851685, 0.8070473074913025, -0.3719249963760376, -0.2575946152210...
Anyone else using this? I've just installed it, documentation is hidden somewhere, and so far it's not doing to well. It's Toolbox tab is missing, and when I add the items manually, they disappear again seconds later. I have managed to get one report done, but nowhere can I find how to make the viewer show it, without ...
[ 0.46592870354652405, 0.23870787024497986, 0.48030388355255127, 0.12929867208003998, 0.08177164942026138, -0.2972739338874817, 0.3762957453727722, 0.07818181812763214, -0.33426743745803833, -0.37798088788986206, 0.23813024163246155, 0.5389504432678223, 0.12188621610403061, 0.074109598994255...
I have not experienced any problems so far. I've read that they had problems with the toolbox in x64 bit machines, but it has been resolved in the latest service pack, so you might want to make sure you are using the latest version first. However adding the items manually to the toolbox would definitely work and if you...
[ 0.7304362654685974, -0.03314986452460289, 0.3745002746582031, 0.18909397721290588, -0.045374948531389236, -0.2351183295249939, 0.3790413439273834, -0.12686212360858917, -0.3124907314777374, -0.9068067073822021, -0.0790240615606308, 0.6142804622650146, 0.07070568948984146, 0.028740154579281...
a whole section about their reportviewer and how to use it - check it out: <http://www.telerik.com/help/reporting/aspnetreportviewerembedding.html>
[ 0.7064756155014038, -0.2198103964328766, 0.43622663617134094, 0.17909552156925201, -0.3339267671108246, -0.40923747420310974, 0.36934298276901245, 0.029515059664845467, -0.284328818321228, -0.46336472034454346, 0.061234354972839355, 0.24548621475696564, 0.05252697318792343, -0.095911487936...
I need to convert a datagrid table in Adobe Flex to an ArrayCollection. I was expecting to be able to loop through each row of a datagrid and write that to the Array collection, but the only method for accessing data in the datagrid that I can find is SelectedItem, which doesn't help me. Obviously one could just copy ...
[ 0.16001595556735992, 0.05403833091259003, 0.316901296377182, 0.08843213319778442, -0.31615254282951355, -0.2133633941411972, 0.2272331714630127, -0.1469098925590515, -0.3074062764644623, -0.9987878203392029, 0.10298798978328705, 0.529403030872345, -0.20212367177009583, 0.14857658743858337,...
check if this.provider is Array or ArrayCollection. If it is ArrayCollection then access it simply by: ``` var gotIt:ArrayCollection = this.someDG.dataProvider as ArrayCollection; ``` if it is an Array, then: ``` var gotIt:ArrayCollection = new ArrayCollection(this.someDG.dataProvider as Array); ``` Hope this hel...
[ 0.14704835414886475, 0.1346125602722168, 0.21583391726016998, -0.03607212379574776, 0.015114313922822475, -0.28353407979011536, 0.10827706754207611, -0.1564188301563263, -0.10696204751729965, -0.5626948475837708, -0.11335210502147675, 0.4070615768432617, -0.20930920541286469, 0.12262490391...
Using Python, how can information such as CPU usage, memory usage (free, used, etc), process count, etc be returned in a generic manner so that the same code can be run on Linux, Windows, BSD, etc? Alternatively, how could this information be returned on all the above systems with the code specific to that OS being ru...
[ 0.15457378327846527, -0.1476634293794632, -0.16128848493099213, 0.040226858109235764, -0.36905667185783386, -0.010669334791600704, 0.1058322936296463, 0.17187586426734924, -0.30569595098495483, -0.3608344495296478, -0.16240327060222626, 0.39433467388153076, -0.7484135627746582, 0.080370731...
sys.platform: import linux_sysinfo as sysinfo #etc print 'Memory available:', sysinfo.memory_available() ``` For specific resources, as Anthony points out you can access `/proc` under linux. For Windows, you could have a poke around at the [Microsoft Script Repository](http://www.microsoft.com/technet/scriptcenter...
[ 0.16794796288013458, -0.007298387587070465, 0.04980393499135971, 0.17329327762126923, 0.3015112280845642, 0.03230347856879234, 0.07795669138431549, 0.3219970464706421, -0.2647869288921356, -0.626948356628418, -0.42401495575904846, 0.6682683825492859, -0.3438153862953186, -0.189964085817337...
From what I understand, the goal of the Command pattern is to help separate UI interaction from application logic. With properly implemented commands, a click on a "Print" menu item might result in a chain of interaction like this: ``` (button) ---click executes command----> (command) ---calls Print() in app logic ---...
[ 0.19824910163879395, 0.1600196361541748, 0.37995919585227966, -0.0370463989675045, -0.07829952239990234, -0.014840968884527683, 0.07332201302051544, -0.201520174741745, -0.2197132408618927, -0.6714105010032654, -0.24933500587940216, 0.7163554430007935, -0.5158514380455017, 0.01327689457684...
you are discouraged from separating the UI from application logic. For example, consider this simple WPF window that has a button to paste text into the text box: ``` <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.c...
[ -0.17312867939472198, -0.06124918907880783, 0.4948391020298004, -0.18688775599002838, -0.23580874502658844, -0.11476554721593857, 0.04084447771310806, -0.1906227469444275, -0.2671830654144287, -0.4626322090625763, -0.17430910468101501, 0.5984476208686829, -0.18682482838630676, 0.1485058814...
<Button Command="Paste" Content="Paste" /> </StackPanel> </Window> ``` Here's the code-behind: ``` namespace WpfApplication1 { public partial class Window1 : Window { public Window1() { InitializeComponent(); } private void CommandBinding_Executed(object sende...
[ -0.01429055631160736, -0.17780758440494537, 0.47573426365852356, -0.47566431760787964, 0.28103962540626526, 0.11768322438001633, 0.3760530650615692, -0.09825941175222397, -0.12948554754257202, -0.7070339322090149, -0.577073335647583, 0.43505537509918213, -0.527130126953125, 0.2373171150684...
} } } ``` What did I gain from the command? It seems to me that I could have just as easily put the code from the command binding event handler into the button's `Click` event. Sure, now I can associate multiple UI elements with the Paste command and I only have to use the one event handler, but what if I want t...
[ 0.039296019822359085, -0.0799642875790596, 0.22437016665935516, -0.2819359004497528, 0.023941706866025925, -0.07691420614719391, 0.025956720113754272, -0.08487435430288315, -0.3165353536605835, -0.7264159321784973, 0.12755417823791504, 0.824360728263855, -0.3756689429283142, 0.082313977181...
---executes Routed Command---> (Window) ---executes command binding----(command binding) (logic) <---calls application logic--- (event handler) <-----raises event --------------| ``` What am I missing here? It looks like an extra layer of indirection to me. In addition to the things already mentioned, what you've for...
[ 0.009125660173594952, -0.04444117471575737, 0.3172076940536499, 0.04944683238863945, -0.16882985830307007, -0.09335016459226608, 0.11812242865562439, -0.07393702864646912, -0.14296947419643402, -0.5526906251907349, -0.03058278188109398, 0.6949071884155273, -0.2712179720401764, 0.0090849203...
Is there a .NET library/tutorial available that will let me show me how to customize the Windows 7 Jump List for my application? channel9.msdn.com did a series of discussions covering the new taskbar, including the jumplist. [Jump Into Windows 7 Taskbar Jump Lists](http://channel9.msdn.com/posts/yochay/Jump-into-the-W...
[ 0.33124983310699463, -0.35272669792175293, 0.11865898221731186, 0.06642971932888031, -0.4213569462299347, -0.00242762453854084, 0.08260708302259445, -0.15276053547859192, -0.5406836271286011, -0.22307966649532318, -0.11359347403049469, 0.7456533908843994, -0.162705197930336, -0.49917057156...
My company, like everyone else's, requires password resets from time to time. This is all good and well for security's sake, but I'd like to explore the challenge of resetting it through a script (notably because we can't use our previous 25 passwords; Perl is much quicker about cycling through a list two-dozen deep th...
[ 0.4005223214626312, 0.15226081013679504, 0.4208051562309265, -0.06583551317453384, 0.350590318441391, -0.04648284241557121, 0.19847407937049866, 0.20155499875545502, -0.28470009565353394, -0.6777323484420776, -0.30012404918670654, 0.9497882723808289, -0.3254130780696869, 0.0710900425910949...
$ldap_user = $ldap->OpenDSObject('LDAP://' . $dn,'username','password',1); $ldap_user->SetPassword('mySw337NewPassword'); ``` And all I get for my troubles is: ``` Win32::OLE(0.1707) error 0x80070005: "Access is denied" in METHOD/PROPERTYGET "SetPassword" at pw.change.pl line 8 ``` Is this something that can...
[ 0.033395007252693176, 0.004404584411531687, 0.777165949344635, 0.033122263848781586, -0.007585855200886726, -0.297964483499527, 0.4323660135269165, -0.16015253961086273, -0.30468401312828064, -0.5570821166038513, -0.24448205530643463, 0.8841352462768555, -0.5303459763526917, 0.068177945911...
props to barneyton!** Final solution: ``` use strict; use Win32::OLE; my $orig_password = 'password123Test'; my $target_password = 'password321Test'; my $dn = 'cn=myname,dc=corp,dc=com'; my $ldap = Win32::OLE->GetObject('LDAP:'); my $ldap_user = $ldap->OpenDSObject('LDAP://'.$dn,'myname',$orig_passwor...
[ 0.4159989655017853, -0.13817206025123596, 0.6576334834098816, -0.1350996047258377, 0.06694965064525604, 0.34588009119033813, 0.6360391974449158, -0.3415759801864624, -0.08193569630384445, -0.6150329113006592, -0.22722136974334717, 0.9038218855857849, -0.3941238820552826, -0.089878574013710...
really meant [change](http://msdn.microsoft.com/en-us/library/aa746341(VS.85).aspx) password rather than [set](http://msdn.microsoft.com/en-us/library/aa746344(VS.85).aspx) password. There is a difference between the two. "SetPassword" requires god/admin privilege since you are setting a user's password to a new value ...
[ 0.42416447401046753, -0.1618935614824295, 0.5674945712089539, 0.13144207000732422, 0.004514521919190884, -0.29310429096221924, 0.5042809247970581, 0.1289035975933075, -0.09060091525316238, -0.6575096249580383, -0.12389355152845383, 0.6429823637008667, -0.07001568377017975, 0.04544676840305...
I have a WinForm application built with VS 2008 (C#) and SQL Server Express 2008 that is currently deployed on test users PC. I have modifications to do on the database structure (add fields, tables, etc.) and I wonder what's the best method to distribute the changes on the users PC (without loosing the users data). ...
[ 0.2303823083639145, 0.09240738302469254, 0.45909708738327026, 0.07846962660551071, -0.15832650661468506, -0.07634807378053665, 0.20491982996463776, -0.2255489081144333, -0.03852922096848488, -0.628231942653656, 0.25162023305892944, 0.783456027507782, -0.11621802300214767, 0.006982635241001...
I have to write my own update application? I currently use ClickOnce to distribute the changes in the EXE file. Is ClickOnce still a viable solution when you have to do changes in the database with the new version? TIA There are lots of ways you can do this - either build up your own homegrown version somehow (e.g. w...
[ 0.5401987433433533, -0.017593642696738243, 0.2751273810863495, 0.08058229833841324, 0.10139746218919754, -0.2579157054424286, 0.24791231751441956, -0.4339902997016907, 0.004444933496415615, -0.6842964291572571, 0.12447796016931534, 0.7092143893241882, -0.3902205228805542, 0.086466498672962...
save you lots of time and effort.
[ 0.3612913489341736, 0.1710485816001892, -0.26062488555908203, 0.33623307943344116, 0.17376425862312317, 0.08483989536762238, 0.3870822787284851, 0.6169763803482056, 0.12212707847356796, -0.7375359535217285, 0.23638351261615753, 0.1659584492444992, 0.40128380060195923, -0.34976235032081604,...
I am getting my feet wet with Git and have the following issue: My project source tree: ``` / | +--src/ +----refs/ +----... | +--vendor/ +----... ``` I have code (currently MEF) in my vendor branch that I will compile there and then move the references into `/src/refs` which is where the project picks them up from....
[ 0.3680577278137207, 0.31257832050323486, 0.5511698722839355, -0.16950839757919312, -0.10198693722486496, -0.1341717690229416, 0.5284209847450256, 0.0185476653277874, -0.380777508020401, -0.7997311949729919, 0.04281836375594139, 0.37187787890434265, -0.28853797912597656, 0.25060123205184937...
make sure that I don't forget to add them. I have read the man page on `git ls-files` and can not make it work. It seems to me that `git ls-files --exclude-standard -i` should do what I want. What am I missing? Notes: * [xiaobai](https://stackoverflow.com/users/814145/xiaobai)'s [answer](https://stackoverflow.com/a/1...
[ -0.21812598407268524, 0.3929789662361145, 0.0387166403234005, -0.06751198321580887, -0.1179233193397522, 0.0741204097867012, 0.3915863335132599, -0.3455972671508789, -0.5483202338218689, -0.34249645471572876, -0.4624677300453186, 0.49332064390182495, -0.30243223905563354, -0.02445038035511...
use the [**`git check-ignore -v`**](http://git-scm.com/docs/git-check-ignore) command, at least on Unix (**doesn't work** in a CMD **Windows** session) ``` git check-ignore * git check-ignore -v * ``` The second one displays the actual rule of the `.gitignore` which makes a file to be ignored in your git repo. On...
[ -0.02619715966284275, 0.3852401077747345, 0.4316278100013733, 0.010869299061596394, 0.12376631796360016, -0.32014021277427673, 0.37625405192375183, -0.09113595634698868, -0.49750086665153503, -0.4494374990463257, -0.6117985248565674, 0.6481249332427979, -0.5725721120834351, 0.0078459652140...
-not -path './.git/*' | git check-ignore --stdin ``` --- Original answer 42009) ``` git ls-files -i ``` should work, except [its source code](http://www.mail-archive.com/git@vger.kernel.org/msg03245.html) indicates: ``` if (show_ignored && !exc_given) { fprintf(stderr, "%s: --ignored needs some e...
[ -0.06073278561234474, -0.19686347246170044, 0.6062789559364319, -0.05297022685408592, 0.19610266387462616, -0.13981474936008453, 0.4306960701942444, 0.032998476177453995, -0.4164321720600128, -0.6290193200111389, -0.2730761766433716, 0.539294421672821, -0.6100224256515503, 0.16668145358562...
quite what you want) --- Example: ``` $ cat .git/ignore # ignore objects and archives, anywhere in the tree. *.[oa] $ cat Documentation/.gitignore # ignore generated html files, *.html # except foo.html which is maintained by hand !foo.html $ git ls-files --ignored \ --exclude='Documentation/*.[0-9]' \ --exc...
[ 0.08303500711917877, -0.05436089634895325, 0.4872192442417145, -0.11901979893445969, -0.10260738432407379, -0.04681191220879555, 0.365924209356308, -0.13034330308437347, -0.321532666683197, -0.2730230987071991, -0.10678327828645706, 0.6259142160415649, -0.21019849181175232, -0.184275820851...
--exclude-from=.git/info/exclude git ls-files -i --exclude-from=.git/info/exclude git ls-files --others --ignored --exclude-standard git ls-files -o -i --exclude-standard ``` should do the trick. (Thanks to [honzajde](https://stackoverflow.com/users/271996/honzajde) pointing out [in the comments](https://stackoverf...
[ 0.015232550911605358, 0.29247361421585083, 0.14961528778076172, -0.01144921313971281, -0.09190668910741806, -0.36500564217567444, 0.11850724369287491, -0.16650693118572235, -0.4171794056892395, -0.41673657298088074, -0.5658313035964966, 0.29667842388153076, -0.3982253968715668, 0.018766518...
In Objective-C, what's the difference between declaring a variable `id` versus declaring it `NSObject *`? With a variable typed `id`, you can send it any known message and the compiler will not complain. With a variable typed `NSObject *`, you can only send it messages declared by NSObject (not methods of any subclass)...
[ 0.13503094017505646, 0.020803965628147125, -0.03332656994462013, -0.15409432351589203, -0.47930026054382324, -0.350639283657074, 0.11849284917116165, -0.004686851520091295, 0.05395672842860222, -0.046476539224386215, -0.09647441655397415, 0.6407962441444397, -0.6811104416847229, -0.1503369...
it a message that the class doesn't declare, the compiler can tell you, "Wait, that object isn't supposed to get that message!" Also, if two classes have methods with the same name but different signatures (that is, argument or return types), it can guess which method you mean by the class you've declared for the varia...
[ 0.06676170229911804, -0.33710479736328125, -0.24681547284126282, 0.18058998882770538, -0.32170429825782776, -0.27874210476875305, 0.31063032150268555, 0.05452312156558037, -0.2787541449069977, -0.36305996775627136, -0.1959507316350937, 0.29012447595596313, -0.34800922870635986, 0.134346395...
two more specific classes.)
[ 0.2717723846435547, -0.2821508049964905, -0.19028332829475403, 0.2345152646303177, -0.24619795382022858, 0.31472253799438477, 0.39467015862464905, -0.13543573021888733, -0.33851486444473267, -0.5471034049987793, -0.12919041514396667, 0.5426427721977234, 0.006780225317925215, 0.008683705702...
Is it possible to enumerate all managed threads in C#? Visual Studio seems to be able to do this when you hit a break point while debugging. In the "Threads" window it shows a list of all running threads, including managed names. Does anyone know how it does this? Debuggers are often able to do things "normal" code can...
[ 0.4015173614025116, -0.01016941387206316, -0.07804623991250992, 0.20200510323047638, -0.20332159101963043, -0.33226513862609863, 0.2842250168323517, 0.26419520378112793, -0.49775201082229614, -0.37807950377464294, 0.20014305412769318, 0.5078809857368469, -0.17716094851493835, -0.0555695854...
I'm trying something like this Output.py ``` print "Hello" ``` Input.py ``` greeting = raw_input("Give me the greeting. ") print "The greeting is:", greeting ``` At the cmd line ``` Output.py | Input.py ``` But it returns an *EOFError*. Can someone tell me what I am doing wrong? Thanks for your help. **EDIT...
[ -0.11929681152105331, 0.27016502618789673, 0.1499076634645462, -0.10125593841075897, 0.02251421846449375, -0.09244220703840256, 0.5611526966094971, 0.02558058686554432, -0.12541572749614716, -0.5026540160179138, -0.3674510419368744, 0.3809652328491211, -0.398720920085907, -0.12711569666862...
this one but at least this should provide you with a workaround for now. It may have something to do with the way the file handler is invoked for .py files. **UPDATE**: well, what do you know. Looks like this is actually a bug in Windows where stdin/stdout redirection may not work properly when started from a file as...
[ -0.09632331132888794, -0.10441414266824722, 0.369133323431015, -0.09182574599981308, -0.38290759921073914, -0.009707123041152954, 0.3979596197605133, -0.1542976349592209, -0.5571896433830261, -0.5902829766273499, 0.043540120124816895, 0.5746339559555054, -0.4495636522769928, 0.067551940679...
make Windows pipes work as expected for stdin/stdout redirection, you can add this value to the registry (tested on my box and verified this works as desired). > 1. Start Registry Editor. > 2. Locate and then click the following key in the registry: > > > **HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\CurrentVers...
[ 0.209947869181633, -0.30409717559814453, 0.6182786822319031, -0.10873620957136154, 0.10800494998693466, -0.18580272793769836, 0.38270333409309387, -0.5562702417373657, -0.03205455467104912, -1.0160002708435059, -0.1622307002544403, 1.0100960731506348, -0.38375309109687805, 0.15858387947082...
We use Selenium to test the UI layer of our ASP.NET application. Many of the test cases test longer flows that span several pages. I've found that the tests are very brittle, broken not just by code changes that actually change the pages but also by innocuous refactorings such as renaming a control (since I need to pa...
[ 0.35902148485183716, -0.0018759515369310975, 0.13676220178604126, 0.403717964887619, -0.06875988095998764, -0.03355725482106209, 0.3749754726886749, -0.0527564212679863, 0.11025124788284302, -0.6055343151092529, 0.08993048220872879, 0.11373843997716904, -0.04901335760951042, -0.03292545676...
Selenium tests? Or a better web UI testing tool? **Edited to add:** Generally the first draft is created by recording a test in the IDE. (This first step may be performed by QA staff.) Then I refactor the generated C# code (extract constants, extract methods for repeated code, maybe repeat the test case with different...
[ 0.5777623653411865, 0.0214958805590868, 0.10626783221960068, 0.0872468575835228, -0.31069624423980713, -0.16374234855175018, 0.1343204230070114, -0.3142975866794586, 0.49827250838279724, -0.6664878129959106, -0.05580596625804901, 0.13034749031066895, 0.06751614063978195, -0.123020417988300...
cases. I use the same scenario you have selenium + c# Here is how my code looks like: A test method will look like somethink like this ------------------------------------------------ ``` [TestMethod] public void RegisterSpecialist(UserInfo usrInfo, CompanyInfo companyInfo) { var RegistrationPag...
[ 0.08628003299236298, 0.01883642189204693, 0.5368645191192627, -0.03980480507016182, 0.49399539828300476, 0.14946433901786804, 0.282450407743454, -0.06782817840576172, 0.1745670735836029, -0.7383520603179932, -0.1809578537940979, 0.5542513728141785, -0.27979761362075806, 0.23305602371692657...
Assert.IsTrue(RegistrationPage.VerifySpecialistRegistrationMessagePayPal()); selenium.WaitForPageToLoad(Resources.GlobalResources.TimeOut); paypal.LoginSandboxPage(usrInfo.sandboxaccount, usrInfo.sandboxpwd); Assert.IsTrue(paypal.VerifyAmount(usrInfo)); paypal.SubmitPayment(); Re...
[ -0.024110756814479828, 0.12295443564653397, 0.8253836631774902, 0.006220140960067511, -0.03602982684969902, -0.14490057528018951, 0.4385218024253845, -0.5122268795967102, -0.10101457685232162, -0.407196968793869, -0.26248452067375183, 0.6141180992126465, -0.16803723573684692, 0.28238248825...
public ISelenium selenium { get; set; } #region Constructors public PublicRegistrationPage(ISelenium sel) { selenium = sel; selenium.Open(Resources.GlobalResources.PublicRegisterURL); } #endregion #region Methods public PublicRegistrationPage FillUserInfo(UserInfo usr) ...
[ -0.16010896861553192, -0.14296740293502808, 0.7317844033241272, -0.1948300004005432, 0.2004927098751068, -0.10025924444198608, 0.05730274319648743, -0.12404559552669525, -0.21120348572731018, -0.8388926982879639, -0.8238363265991211, -0.20914700627326965, -0.17200976610183716, 0.5297595262...
selenium.WaitForPageToLoad(Resources.GlobalResources.TimeOut); selenium.Type("ctl00_cphComponent_ctlContent_wizRegister_tUserEmail", usr.Email ); selenium.Type("ctl00_cphComponent_ctlContent_wizRegister_tUserDirectTel", usr.DirectTel); selenium.Type("ctl00_cphComponent_ctlContent_wizRegister_tUs...
[ -0.0764809250831604, -0.09757187217473984, 0.5306236743927002, -0.23746004700660706, 0.12344300001859665, 0.07801549136638641, 0.148804172873497, 0.008760000579059124, -0.1359356790781021, -1.1720784902572632, -0.48777446150779724, 0.006402327213436365, -0.2278161346912384, 0.3070618808269...
I am comparing text files in junit using: ``` public static void assertReaders(BufferedReader expected, BufferedReader actual) throws IOException { String line; while ((line = expected.readLine()) != null) { assertEquals(line, actual.readLine()); } assertNull("Actual had more lines t...
[ 0.10274327546358109, -0.01735403761267662, 0.5085479021072388, -0.2862699627876282, -0.5986728072166443, 0.2116473913192749, 0.39485496282577515, -0.33097705245018005, 0.32025325298309326, -0.5780473351478577, 0.15931257605552673, 0.5700823068618774, -0.1612006574869156, -0.082340762019157...
expected: [b] but was:[a] ```
[ -0.028832949697971344, 0.057607538998126984, 0.19035255908966064, -0.12538546323776245, -0.3637439012527466, -0.002744644647464156, 0.3793317973613739, 0.180933877825737, -0.0802818164229393, -0.12523970007896423, -0.3780075013637543, 0.5179782509803772, -0.09390144050121307, -0.0549569837...
My Ant build includes a junit task that runs some tests. In order for the tests to work, the value of the property that specifies the current working directory (`user.dir`) must be changed, but I am unsure how to achieve this. The task in question currently looks like this: ``` <junit printsummary="withOutAndErr" for...
[ 0.14392484724521637, 0.018385684117674828, 0.2946585416793823, -0.26580336689949036, -0.027266010642051697, 0.16034874320030212, 0.554743230342865, -0.2950451374053955, 0.13909469544887543, -1.1112122535705566, 0.4084572196006775, 0.22180545330047607, -0.29424333572387695, -0.1259948015213...
<fileset dir="${lib.dir}" includes="**/*.jar"/> </classpath> <batchtest fork="no" todir="${web.build.dir}/testresults"> <formatter type="xml"/> <zipfileset src="${web.build.dir}/test-obp-web.jar"> <include name="**/*Test.class"/> </zipfileset> </batchtest> ...
[ 0.006898640654981136, -0.06356138736009598, 0.20424093306064606, -0.3169924318790436, -0.1105981096625328, 0.1877758502960205, 0.36239680647850037, -0.33954858779907227, -0.13067352771759033, -0.8696662783622742, 0.12259099632501602, 0.31159740686416626, -0.3576599657535553, 0.062468681484...
on, I see the following output, which indicates that the working dir has not been set correctly: > **[junit] dir attribute ignored if running in the same VM** > > > **[junit] Using System properties** > {java.runtime.name=Java(TM) SE Runtime > Environment, > sun.boot.library.path=c:\jdk6\jre\bin, > java.vm.versi...
[ -0.15417298674583435, -0.06770741194486618, 0.5586321949958801, -0.02732107602059841, -0.02299390360713005, 0.1536855250597, 0.23928223550319672, -0.3741641640663147, -0.2987363338470459, -0.7315464615821838, -0.3121723532676697, 0.6469539999961853, -0.2622853219509125, 0.16209200024604797...
fork **must** be true on both the *junit* tag and the *batchtest* tag as the *batchtest* tag overrides the value from *junit*. Jvmargs only work if junit forks a new JVM.
[ 0.19097936153411865, 0.08105607330799103, 0.42613834142684937, -0.18064060807228088, -0.04520415514707565, -0.21445710957050323, 0.5830162763595581, 0.08588596433401108, 0.10517670214176178, -0.3246321678161621, -0.05846860259771347, 0.4804825484752655, -0.12932544946670532, 0.301116287708...
I want to be able to let users enter dates (including recurring dates) using natural language (eg "next friday", "every weekday"). Much like the examples at <http://todoist.com/Help/timeInsert> I found [this post](https://stackoverflow.com/questions/23689/natural-language-date-time-parser-for-net), but it's a bit old ...
[ 0.09958978742361069, -0.29690948128700256, 0.6142709255218506, 0.040272120386362076, 0.06916067749261856, -0.14023859798908234, 0.19851161539554596, 0.20518048107624054, -0.26731857657432556, -0.3939996659755707, -0.003345913952216506, 0.1326296627521515, -0.16752752661705017, 0.1812038272...
6/4/2005; 8:15 PM; 22:30:45; +5years
[ 0.04246516153216362, 0.5428344011306763, 0.9535166025161743, -0.49882781505584717, -0.1811317652463913, 0.09506016969680786, 0.7745562195777893, 0.29155224561691284, -0.1456194818019867, 0.15101471543312073, -0.3367103040218353, 0.24307629466056824, 0.5214118957519531, 0.18508414924144745,...
Recently I have learned the basics concepts of Git. We did use a bit of git-svn to get familiar with using it. I would like to start my first "true" project on git along with my friends. Therefore I would like to ask you what are the best practices of using Git in general, and if there are any pitfalls that SVN famili...
[ 0.6549631953239441, 0.07879181206226349, -0.07405874878168106, 0.17028452455997467, -0.2909921109676361, -0.2532764673233032, 0.011473135091364384, 0.24538150429725647, -0.18072128295898438, -0.7671419978141785, 0.16533443331718445, 0.4894111454486847, 0.16699755191802979, 0.32796406745910...
repositories, is difficult and prone to error. Also, using a central repository will feel more comfortable coming from a Subversion background. One great thing about Git is that you can easily have more than one "common" repository. I have my development set up so I keep a set of bare repositories on one server that I...
[ 0.3602752983570099, -0.03484543412923813, 0.21733467280864716, 0.5303756594657898, -0.24942398071289062, -0.12249145656824112, -0.08932267129421234, 0.2951989471912384, -0.18929317593574524, -0.9499348998069763, -0.21960732340812683, 0.19386276602745056, 0.10807844996452332, 0.346216768026...
push to my own copy.
[ -0.06401082873344421, 0.30126291513442993, 0.13634292781352997, 0.10175550729036331, -0.13447041809558868, 0.039536476135253906, -0.1873842179775238, 0.21531745791435242, 0.09566745162010193, -0.5305294394493103, -0.07400213181972504, 0.30877283215522766, -0.03129131719470024, 0.0636285245...
I'm using SQL Server 2000, and many of the stored procedures it use temp tables extensively. The database has a lot of traffic, and I'm concerned about the thread-safety of creating and dropping temp tables. Lets say I have a stored procedure which creates a few temp tables, it may even join temp tables to other temp ...
[ 0.34497761726379395, 0.23152372241020203, 0.19493025541305542, -0.11003478616476059, -0.177458718419075, -0.18657679855823517, 0.06210857629776001, -0.24711298942565918, -0.3392980992794037, -0.4198106825351715, 0.3292805254459381, 0.4147326648235321, -0.4089275598526001, -0.01582596823573...
but gets stopped because a table called #temp already exists in the database? * How about if the same user executes the same stored procedure twice on the same connection? * Are there any other weird scenarios that might cause two users queries to interfere with one another? For the first case, no, it is not possible, ...
[ 0.34676337242126465, -0.26529189944267273, 0.4273751974105835, 0.3814331293106079, 0.002247822703793645, -0.3310569226741791, 0.545712947845459, 0.31780073046684265, -0.7191983461380005, -0.40811464190483093, -0.06464217603206635, 0.4851192831993103, -0.6445086002349854, 0.0967576950788497...
temp table. In your case, since you are creating a local temp table in a stored procedure, [that temp table will be dropped when the scope of the procedure is exited](https://web.archive.org/web/20120713010552/http://msdn.microsoft.com/en-us/library/aa258255(v=sql.80).aspx) (see the "remarks section"). > A local temp...
[ -0.045649319887161255, 0.0530596487224102, 0.19204305112361908, -0.011229699477553368, 0.2169824093580246, 0.07937410473823547, 0.13689827919006348, 0.14090651273727417, -0.6219047904014587, -0.4268939197063446, -0.4031948447227478, 0.21196846663951874, -0.5370853543281555, 0.3354315459728...
exists, and the table lasts for as long as the connection does. If this is the case, then I recommend you check for the existence of the table before you try to create it.
[ 0.3432145416736603, 0.2843436598777771, 0.3344765901565552, 0.23000645637512207, 0.19178573787212372, -0.35279181599617004, -0.11425183713436127, 0.34067603945732117, -0.16927489638328552, -0.7516642212867737, 0.028746167197823524, 0.20225629210472107, -0.13145984709262848, 0.2709506750106...
Vista puts out a new security preventing Session 0 from accessing hardware like the video card, and the user no longer logs into session 0. I know this means that I cannot show the user a GUI, however, does that also mean I can't show one at all? The way my code is set up right now, it would be more work to make it com...
[ 0.30140790343284607, 0.15003997087478638, 0.45680665969848633, -0.029529554769396782, 0.046905990689992905, -0.5332837104797363, 0.5433679819107056, -0.05617852881550789, -0.030966350808739662, -0.7783624529838562, -0.048077378422021866, 1.031825304031372, -0.20957604050636292, -0.00616967...
to create a user interface (UI), such as a dialog box, in Session 0. Because the user is not running in Session 0, he or she never sees the UI and therefore cannot provide the input that the service is looking for. The service appears to stop functioning because it is waiting for a user response that does not occur. W...
[ 0.1626298576593399, -0.002694951370358467, 0.26943695545196533, 0.06920507550239563, -0.06179343909025192, -0.17742307484149933, 0.4987795948982239, 0.08138708025217056, -0.12769079208374023, -0.953710675239563, -0.13546869158744812, 0.4225054979324341, -0.32084792852401733, 0.207678869366...
can show one; it just doesn't show up. There is a little notification in the taskbar about there being a GUI window and a way to switch to it. Anyway, there actually is a TerminalServices API command to switch active session that you could call if you really needed it to show up.
[ 0.18351589143276215, -0.4451223909854889, 0.2537567615509033, 0.41359415650367737, 0.0195168349891901, -0.18696926534175873, 0.05792706459760666, 0.6451378464698792, -0.21122820675373077, -0.7310172319412231, 0.15733934938907623, 0.7703651189804077, -0.09838137030601501, -0.061145093291997...
I would like to be able to kill a user's query in Oracle 10.2.0.4 without killing their entire session. This would allow the query to end, but not log that user out of their session, so they can continue making other queries. Is this possible at all? Or is the blunt hammer of killing the session the only way to go abou...
[ 0.6315032243728638, 0.061904411762952805, -0.19570383429527283, -0.011130384169518948, -0.1273297518491745, 0.07456959784030914, 0.2651194632053375, -0.06182606890797615, -0.19900712370872498, -0.3167435824871063, 0.4178336560726166, 0.5008484125137329, -0.37848711013793945, 0.142940625548...
to have the SID and SERIAL# of the session you want to interrupt. Call SYS.DBMS\_SYSTEM.SET\_EV( *sid*, *serial#*, 10237, 1, '' ) to activate the event in the target session. Any currently executing statement should be interrupted (receiving "ORA-01013: user requested cancel of current operation"). As long as the even...
[ 0.258421927690506, -0.24565616250038147, 0.3537244498729706, -0.1196661964058876, 0.10872948914766312, -0.19678689539432526, 0.5307840704917908, 0.03535513952374458, -0.49518123269081116, -0.45955681800842285, -0.5815706253051758, 0.7855680584907532, -0.42319512367248535, 0.315090477466583...
set, which may take time, or may never happen, depending on what it is doing. So you can't just quickly toggle the event on and off. You would need to turn it on, verify that the statement in question has stopped, then turn it off. Here's some sample code. This is meant to be run as an anonymous block in SQLPlus, with...
[ 0.6942327618598938, -0.25750550627708435, 0.5345295667648315, -0.208932027220726, 0.16022276878356934, 0.11692733317613602, 0.09817050397396088, -0.30427098274230957, -0.24263638257980347, -0.4293670356273651, -0.07371429353952408, 0.46375423669815063, -0.5934981107711792, 0.28832423686981...
l_status FROM v$session WHERE sid = &sid and serial# = &serial; EXIT WHEN l_status='INACTIVE'; END LOOP; dbms_system.set_ev( &sid, &serial, 10237, 0, ''); END; ```
[ 0.14368687570095062, -0.06697116047143936, 0.8390717506408691, -0.4028567373752594, 0.4694162607192993, 0.2804911136627197, 0.4091057777404785, -0.2073892503976822, -0.28505760431289673, -0.6813415884971619, -0.3949551582336426, 0.5069540739059448, -0.2549968659877777, 0.591485321521759, ...
We're developing a site that will only run on the intranet, and computers with access to this intranet will have this executable installed. We can't have any "Would you like to open [filename].exe?" prompts. Click a link and the program begins running. I realize that giving websites the ability to run executables on t...
[ 0.513508141040802, 0.37853750586509705, 0.3109733760356903, 0.19461630284786224, 0.23845051229000092, -0.5420111417770386, 0.25710564851760864, 0.19339503347873688, -0.20325422286987305, -0.7295242547988892, -0.2702459990978241, 0.6131762266159058, -0.3030300736427307, 0.3365534245967865, ...
the EXE is already installed on the desktop? You just want to launch it from the website? If so, you can associate the EXE with a [MIME Content Type](http://en.wikipedia.org/wiki/MIME#Content-Type) and when the user clicks it, it will launch. **Pick a Content Type and a file extension, for your EXE name, for instance...
[ 0.22157512605190277, -0.18870191276073456, 0.605246901512146, -0.1395108699798584, -0.0577230304479599, 0.008409909904003143, 0.14352788031101227, -0.0018246324034407735, -0.02513257972896099, -0.5774084329605103, -0.5322043895721436, 0.30180948972702026, -0.5245803594589233, 0.15962889790...
{app}\CauseChaos.exe,0; Flags: uninsdeletekey Root: HKCR; Subkey: CauseChaos\shell\open\command; ValueType: string; ValueData: "{app}\CauseChaos.exe ""%1"""; Flags: uninsdeletekey ``` **Associate the MIME content type with the file extension, through the EXE install.** ``` [Registry] (continued...) Root: HKCR; Subke...
[ 0.0046758451499044895, 0.422597199678421, 0.5925588011741638, -0.3722291588783264, 0.1220184713602066, 0.4753580093383789, 0.3460908532142639, -0.2981026768684387, -0.2277180552482605, -0.43165937066078186, -0.6884979605674744, 0.31914424896240234, -0.6203409433364868, 0.14150182902812958,...
I have an events calendar and on each event in the calendar there is an edit link which open up ajax `ModalPopupExtender` for editing the event information. The issue that I am facing right now is that the edit has to be in a form so it can update the information on the server.. How do I deal with this? And what woul...
[ 0.45337018370628357, 0.24343226850032806, 0.22930046916007996, 0.1704815924167633, -0.2408958375453949, -0.3864787817001343, 0.13448959589004517, 0.20270924270153046, -0.2421649694442749, -0.8856385946273804, 0.20315711200237274, 0.4049875736236572, -0.03848457336425781, 0.2908701896667480...
the iframe though, just the event. Try something like this: ``` <iframe id='RS' name='RS' src='about:blank' onload='loaded()'></iframe> <form action='wherever.php' target='RS' method='POST'>...</form> ``` script block: ``` var loadComplete = 0 function loaded() { //avoid first onload if(loadComplete==0) ...
[ -0.250576913356781, -0.2086504101753235, 0.5358386039733887, -0.3164869248867035, -0.14887231588363647, -0.113258957862854, 0.0820033848285675, -0.11401768028736115, -0.29826346039772034, -0.6207892894744873, -0.13271799683570862, 0.3993387818336487, -0.4642890691757202, -0.065666630864143...
Mind you, I am using master pages, but can I locate a div within the page and throw some html in there? Thanks. You can add a div with runat="server" to the page: ``` <div runat="server" id="myDiv"> </div> ``` and then set its InnerHtml property from the code-behind: ``` myDiv.InnerHtml = "your html here"; ``` If...
[ 0.2706756889820099, 0.07239580154418945, 0.5689402222633362, -0.1421968638896942, -0.42662736773490906, 0.1049688458442688, 0.32439133524894714, -0.03269844502210617, -0.15912052989006042, -0.8280258774757385, -0.20428292453289032, 0.4826228618621826, -0.36062660813331604, 0.04104989767074...
I've got a .Net web system with a VB.Net front end talking to a SQL Server 2005 back end over ADO.Net. Essentially, what I want to do is this: ``` Dim command As SqlCommand = New SqlCommand("", connection) command.CommandText = "SELECT * FROM someTable ORDER BY orderValue @SortOrder" Dim sortParam As SqlParameter = Ne...
[ 0.22805841267108917, 0.07926466315984726, 0.6725749373435974, -0.19297531247138977, -0.05449612811207771, -0.21488438546657562, 0.2610127627849579, -0.4223111569881439, -0.29712212085723877, -0.5787192583084106, 0.06825945526361465, 0.4866880774497986, -0.24266110360622406, 0.2212009429931...
client is only running .net 2.0, so LINQ-based solutions won't work, sadly. Thanks, all! Update / Response: Well, that's what I thought. Thanks for the sanity check, everybody. (For some context, the command string is currently being built dynamically, but we're moving the system in a more prepared statement directi...
[ 0.19131872057914734, -0.10042311251163483, 0.5517542958259583, 0.2523391842842102, -0.14709943532943726, -0.11501309275627136, 0.5302257537841797, 0.27386125922203064, -0.591712236404419, -0.5749207735061646, -0.010630600154399872, 0.8884636759757996, -0.2048572152853012, 0.057907149195671...
then use a View to do your sorting. --- With another 6 years or so of experience (plus SQL Server Versions), I have a way of accomplishing this. ``` DECLARE @SortByIdASC AS INT; SET @SortByIdASC = 1; WITH cte AS ( SELECT Id, Foo, Bar , ROW_NUMBER() OVER (ORDER BY Id ASC) AS IdSortAsc , ROW_NUMBER() OVER ...
[ -0.3179141879081726, -0.11820800602436066, 0.5644007921218872, -0.34382763504981995, -0.016264770179986954, 0.2674753665924072, 0.049212340265512466, -0.35897213220596313, -0.15772810578346252, -0.8316320776939392, -0.053112298250198364, 0.463687002658844, -0.26308751106262207, 0.175408542...
WHEN @SortByIdASC = 2 THEN IdSortDesc ELSE '' END , Foo, Bar ``` This also allows for Sorting up,down, or even excluding that particular column from the given sort order.
[ -0.2603565454483032, -0.18814979493618011, 0.40664011240005493, -0.2150759994983673, -0.06826458126306534, -0.07652216404676437, 0.15528753399848938, -0.10148502886295319, -0.18758244812488556, -0.5776885151863098, -0.16415736079216003, 0.022343095391988754, -0.37296709418296814, 0.0577157...
So it seemed easy enough. Use a series of nested loops to go though a ton of URLs sorted by year/month/day and download the XML files. As this is my first script, I started with the loop; something familiar in any language. I ran it just printing the constructed URLs and it worked perfect. I then wrote the code to dow...
[ 0.539606511592865, 0.09792555123567581, 0.10842623561620712, 0.16934749484062195, -0.00478247320279479, 0.013353114016354084, 0.17019715905189514, 0.12604908645153046, -0.17849615216255188, -0.40010523796081543, 0.1754322201013565, 0.01686234399676323, -0.2889220416545868, 0.17381660640239...
therefore ran the debugger and as I stepped through it, it became stuck on this one line: > warnings::register::import(/usr/share/perl/5.10/warnings/register.pm:25):25:vec($warnings::Bits{$k}, $warnings::LAST\_BIT, 1) = 0; If I just hit r to return from the subroutine it works and continues to another point on its wa...
[ 0.23302730917930603, 0.15546025335788727, 0.5924845337867737, -0.16611111164093018, 0.13278165459632874, 0.3804894685745239, 0.7862579226493835, -0.6125533580780029, -0.11817820370197296, -0.2579478621482849, -0.09979283809661865, 0.6874662041664124, -0.46402621269226074, 0.105190113186836...
`/usr/lib/perl/5.10/IO/Socket.pm' line 12 > > > $ = IO::Socket::BEGIN() called from file `/usr/lib/perl/5.10/Socket.pm' line 7 > > > $ = eval {...} called from file `/usr/lib/perl/5.10/Socket.pm' line 7 > > > $ = require 'IO/Socket.pm' called from file `/usr/share/perl5/LWP/Simple.pm' line 158 > > > $ = LWP::Si...
[ -0.307974636554718, 0.34915071725845337, 0.7771241068840027, -0.04564717039465904, 0.08248042315244675, 0.1528533697128296, 0.24078626930713654, -0.25867465138435364, -0.446790874004364, -0.07477957755327225, -0.3469950258731842, 0.19779780507087708, -0.012402393855154514, 0.40178027749061...
while($month<=12) { $day=1; while($day<=31) { $newUrl = "$urlBase$year/$months[$month]/$day.xml"; $content = get($newUrl); if($content ne $nullXML) {
[ 0.13608349859714508, -0.2680666446685791, 0.7577353715896606, -0.10857077687978745, -0.012945308350026608, -0.049914631992578506, 0.22979949414730072, 0.06283161044120789, -0.35341566801071167, -0.17619721591472626, -0.6298918128013611, 0.07885072380304337, -0.20030373334884644, 0.48993980...
$filename = "$year-$month-$day.xml"; open(FILE, ">$filename"); print FILE $content; close(FILE); } $day++;
[ 0.13027586042881012, -0.09022536873817444, 0.7637481689453125, -0.12923531234264374, 0.14571818709373474, -0.15864837169647217, 0.13877072930335999, 0.09128181636333466, 0.016315272077918053, -0.5308414697647095, -0.6630240082740784, 0.26205581426620483, -0.3214511275291443, 0.622703313827...
} $month++; } $year++; } ``` I am almost positive it is something tiny I just dont know, but google has not turned up anything. Thanks in advance, B. **EDIT:** It's official, it just hangs forever inside this get method, runs for several loops then hangs again for a while. But its still a p...
[ 0.45467644929885864, -0.10546460747718811, 0.7001283168792725, 0.2501201331615448, 0.2831745743751526, -0.42976975440979004, 0.2516416609287262, 0.3237614929676056, -0.531630277633667, -0.13331611454486847, -0.0929899662733078, 0.17293384671211243, -0.08426273614168167, 0.3737025260925293,...
I'm assuming that isn't the real link you are using, which makes it hard for us to test. As a general rule, please use example.com instead of making up hostnames, that's why it is reserved. You should really ``` use strict; use warnings; ``` in your code - this will help highlight any scoping issues you may have (...
[ 0.3723967671394348, 0.12863074243068695, 0.09041724354028702, 0.04421461746096611, -0.1453319638967514, -0.30043700337409973, 0.3531334698200226, 0.56871497631073, -0.36213234066963196, -0.7210196256637573, -0.007310944143682718, 0.3096770942211151, -0.39617249369621277, 0.6027439832687378...
'my' in front to make your code strict. If using strict and warnings doesn't get you any closer to a solution, you could warn out the link you are about to use each loop so when it sticks you can try it in a browser and see what happens, or alternatively using a packet sniffer (such as [Wireshark](http://www.wireshar...
[ 0.9839986562728882, -0.276245653629303, 0.29337412118911743, 0.20618721842765808, -0.13526946306228638, -0.4903280735015869, 0.5540647506713867, 0.0596097968518734, -0.2504284083843231, -0.4276614785194397, 0.0605001263320446, -0.0611550435423851, -0.25591036677360535, 0.18832464516162872,...
I'm developing a Python web app as a learning exercise, and I am looking into making my app RESTful. To that end, I want to be able to handle various types of HTTP actions/verbs where they are applicable. For example, if widget with id 12 is represented with the URI <http://domain/widget/12>, and I want to give the en...
[ 0.5770572423934937, 0.04055529832839966, 0.30789488554000854, -0.07244755327701569, -0.34808775782585144, -0.02588691934943199, 0.3713873028755188, -0.1491440236568451, -0.18918609619140625, -0.6136244535446167, -0.08892103284597397, 0.5903135538101196, -0.13449813425540924, -0.23036967217...