text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm developing my first Word 2007 addin, and I've added an OfficeRibbon to my project. In a button-click handler, I'd like a reference to either the current `Word.Document` or `Word.Application`. I'm trying to get a reference via the `OfficeRibbon.Context` property, which the documentation says should refer to the cur...
[ -0.05205667018890381, -0.0330684669315815, 0.8011124730110168, 0.14836753904819489, -0.022786520421504974, 0.16550083458423615, 0.2783418893814087, -0.17967192828655243, -0.26629337668418884, -0.7252829670906067, 0.03301044926047325, 0.31244391202926636, -0.33268290758132935, 0.09320519119...
like it has initialized fine: The ribbon renders correctly in Word; I can step the debugger through both the constructor and the OnLoad members; Button click handlers execute correctly. * Here's [the online help for this property](http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.officeribbon.contex...
[ 0.28535985946655273, -0.24980980157852173, 0.768887460231781, 0.05257117375731468, 0.03275424987077713, -0.002883059671148658, 0.4491991698741913, -0.1876317709684372, -0.2234550267457962, -0.9278232455253601, -0.16207842528820038, 0.46771618723869324, -0.3276199400424957, 0.26075926423072...
property returns the application instance in which this OfficeRibbon is displayed. I also encountered this problem while creating an Excel 2007 AddIn using VS2008 SP1. The workaround I used was to store the Application in an `internal static` property in the main AddIn class and then reference it in the event handler i...
[ -0.031679462641477585, -0.2770662307739258, 0.42499634623527527, 0.00026237370911985636, -0.005428970325738192, 0.013753985986113548, 0.2420446276664734, -0.5014066100120544, -0.18891742825508118, -0.5063506960868835, -0.13943088054656982, 0.5521554350852966, -0.20340561866760254, 0.325409...
partial class MyRibbon : OfficeRibbon { private void button1_Click(object sender, RibbonControlEventArgs e) { DoStuffWithApplication(ThisAddIn.Context); } ... } ```
[ -0.17204976081848145, -0.15509989857673645, 0.4792659282684326, -0.022274477407336235, 0.10108553618192673, 0.16858692467212677, 0.8050787448883057, 0.010469437576830387, 0.051979437470436096, -0.6882882118225098, -0.4968915283679962, 0.5194835662841797, -0.2781509459018707, 0.307305574417...
How are assertions done in c++? Example code is appreciated. Asserts are a way of explicitly checking the assumptions that your code makes, which helps you track down lots of bugs by narrowing down what the possible problems could be. They are typically only evaluated in a special "debug" build of your application, so ...
[ 0.4836941957473755, 0.3193203806877136, 0.07499905675649643, 0.11427062004804611, -0.10125411301851273, -0.3726644217967987, 0.37775999307632446, -0.36957719922065735, 0.034718696027994156, -0.289850115776062, -0.08540697395801544, 0.9175955653190613, 0.00604098429903388, -0.15734305977821...
pointer_arg) { assert(pointer_arg != NULL); ... } ``` An important thing to note is that the expressions you assert must never have side effects, since they won't be present in the release build. So never do something like this: ``` assert(a++ == 5); ``` Some people also like to add little messages into t...
[ 0.15085339546203613, 0.06155281886458397, 0.3745391070842743, -0.24768224358558655, 0.06275755912065506, -0.14173904061317444, 0.7772387862205505, -0.29778772592544556, -0.06300316751003265, -0.3149939477443695, -0.21564823389053345, 0.8322393298149109, -0.33019259572029114, -0.11166859418...
I have an interface - here's a nicely contrived version as an example: ``` public interface Particle { enum Charge { POSITIVE, NEGATIVE } Charge getCharge(); double getMass(); etc... } ``` Is there any difference in how implementations of this would behave if I defined the `Charge` en...
[ -0.016115941107273102, -0.02513456717133522, 0.4215320348739624, 0.07558197528123856, -0.25295746326446533, 0.043406322598457336, -0.005802107509225607, -0.04396946355700493, -0.14197273552417755, -0.6146237850189209, 0.11040288209915161, 0.37001585960388184, -0.5335812568664551, 0.1178492...
Charge getCharge(); double getMass(); etc... } ``` No, it makes no difference. However the reason is not because it is a member declaration inside an interface, as Jon says. The real reason is according to language spec (**8.9**) that > Nested enum types are implicitly > static. It is permissable to > ex...
[ 0.3354381024837494, -0.11391442269086838, 0.2183314710855484, 0.05083050951361656, 0.04838785156607628, -0.23692741990089417, -0.06652652472257614, -0.3302253484725952, -0.35843992233276367, -0.20787492394447327, -0.27777302265167236, 0.41522446274757385, -0.713123619556427, 0.153873905539...
**private** enum (not implicitly public). ``` public class A { private static enum E {A,B} } ```
[ -0.10123933851718903, 0.0928732231259346, -0.06728360801935196, 0.0018867424223572016, 0.039324499666690826, 0.002762023825198412, 0.16846174001693726, 0.05412079393863678, 0.06368673592805862, -0.408390074968338, -0.5258917212486267, 0.3787524104118347, -0.3956241309642792, 0.217786192893...
When designing user table what would be the must have fields from the security/user authentication point of view for a Web based Application (.NET and SqlServer 2005) I came with with the following fields: ``` userID username -- preferably email passwordHash onceUsePassword -- to indicate that the password should be...
[ -0.3303896188735962, 0.26715508103370667, 0.3778071403503418, -0.10027734935283661, -0.052183181047439575, -0.08802590519189835, 0.02576317824423313, -0.12768393754959106, -0.1842348277568817, -0.3444209098815918, 0.11399770528078079, 0.21739189326763153, -0.3549952805042267, 0.24836304783...
going to be exposed anywhere)? **EDIT:** * I am limited to the use of .NET 1.1 (don't ask...) * The salt info will be merged with passwordHash * the account would be unlocked by sending a temporary, single use system generated password to the user email address (hence onceUsePassword field) Why not just use the buil...
[ 0.41558516025543213, 0.15939615666866302, 0.13750435411930084, -0.01793046109378338, -0.020151661708950996, -0.4008634388446808, 0.3761442303657532, -0.00844631902873516, -0.02170887216925621, -0.6788809895515442, 0.25354817509651184, 0.35720038414001465, -0.1222103089094162, 0.10018523782...
the consumption of the general public? If so, you might want to add a way for them to unlock their accounts via a secret question.
[ 0.8313822746276855, 0.15317101776599884, 0.043399877846241, 0.25731131434440613, -0.1353122591972351, 0.09985759854316711, 0.031277380883693695, 0.3576224446296692, -0.4970523715019226, -0.22111289203166962, 0.2199220210313797, 0.6137110590934753, 0.11317971348762512, 0.033664003014564514,...
I have an animation that I'm displaying using a UIImageView: ``` imageView.animationImages = myImages; imageView.animationDuration = 3; [imageView startAnimating]; ``` I know I can stop it using stopAnimating, but what I want is to be able to pause it. The reason is that when you call stop, none of your animation im...
[ 0.17791780829429626, 0.05534481257200241, 0.6454960107803345, -0.048326026648283005, -0.08422127366065979, -0.08372858166694641, 0.1117829829454422, 0.123592808842659, -0.43301454186439514, -0.6331559419631958, -0.2571658790111542, 0.49636518955230713, -0.1359882354736328, 0.25568228960037...
one seems to know I guess it's not possible. I went ahead and wrote my own `UIView`, with a `UIImageView` `subview`, that uses an `NSTimer` to switch between images. The advantage of this is that I can pause and resume the timer at my leisure, and performance doesn't seem to be an issue.
[ 0.344817578792572, -0.21016106009483337, 0.5972855091094971, 0.15537691116333008, 0.026068389415740967, -0.03156653419137001, -0.14227662980556488, 0.08061272650957108, -0.08567000180482864, -0.8059642910957336, 0.1759566217660904, 0.6040408611297607, -0.02136804163455963, -0.0177822187542...
I'm trying to design a model for a application allowing 2 people to bet with each other (I know, sounds stupid...). What I'm wondering about is how to connect the bet with users. The structure is like this ``` |-------------| |----------| | Bet | | User | | BetUser1 | |----------| | Be...
[ 0.12946869432926178, 0.08903905004262924, 0.311996191740036, 0.10616028308868408, -0.01450357586145401, 0.019054902717471123, -0.17391768097877502, -0.0293899979442358, 0.005268334876745939, -0.6116064786911011, 0.4840007722377777, 0.6542203426361084, -0.20899586379528046, 0.05399432033300...
| |-------------| ``` So we got 2 people that bet with each other (both are `Users` from django auth system) and then, after one of them wins, there's a winner. Now all those 3 fields are of type `User`, but: * Should I make BetUser1 and BetUser2 separate fields, or design some many-to-two relationship here? (with m...
[ 0.026824865490198135, 0.08363500982522964, 0.22876490652561188, -0.09904363006353378, 0.052448343485593796, 0.11199652403593063, -0.2919069826602936, -0.07684464752674103, -0.2083069533109665, -0.5041109323501587, 0.07966232299804688, 0.8257174491882324, -0.20488965511322021, -0.0608402788...
else? Just looking for some fresh point of view, as it seems that in such stupid case I'm stuck with the django model system. I would probably add a third model to represent a specific wager someone has placed, as it is conceivable that more than two people could enter into a bet. It would look something like this: `...
[ 0.5616686940193176, 0.2510702610015869, 0.2342035323381424, 0.010311332531273365, 0.22749125957489014, 0.0764787346124649, -0.3841460347175598, -0.15380974113941193, -0.47868984937667847, -0.2624727487564087, 0.5819544196128845, 0.655483067035675, -0.25073227286338806, 0.1381279081106186, ...
Bet (FK(Bet)) Winner (FK (Wager), null=True) Amount ``` Django will automatically generate `user.wager_set` and `bet.wager_set` based on the foreign keys. This allows you to easily iterate and display the wagers for a bet, as well as the wagers from each user. You can also add a `unique_together` co...
[ 0.1265963912010193, 0.5051729083061218, 0.3873825967311859, -0.06535117328166962, -0.06805650889873505, -0.13636228442192078, -0.1650945246219635, -0.38561248779296875, -0.3970772624015808, -0.4530509412288666, -0.003202663268893957, 0.5134721994400024, -0.26912808418273926, 0.169198602437...
you just set `bet.winner`. In case you run into it, you might see a warning about `related_name` by having `Bet` point to `Wager` and `Wager` point to `Bet`. To fix, just add `related_name=wagers` to `Wager.bet`.
[ 0.2682000398635864, -0.0849023386836052, 0.13993552327156067, 0.2126375138759613, 0.15665282309055328, -0.40512651205062866, -0.34365636110305786, 0.03918831795454025, -0.449868768453598, -0.2860637307167053, 0.13670431077480316, 0.7670524716377258, -0.045523978769779205, 0.158750936388969...
I need a smart way to get the data types out of INFORMATION\_SCHEMA.COLUMNS in a way that could be used in a CREATE TABLE statement. The problem is the 'extra' fields that need to be understood, such as NUMERIC`_`PRECISION and NUMERIC`_`SCALE. Obviously, I can ignore the columns for INTEGER (precision of 10 and scale ...
[ 0.3227454125881195, 0.32260656356811523, 0.07089869678020477, 0.2474939078092575, -0.1398380994796753, 0.10920624434947968, 0.0036969210486859083, -0.19553250074386597, -0.20000028610229492, -0.6778668761253357, 0.2747236490249634, 0.40988242626190186, -0.16776084899902344, -0.036271501332...
get something like : int, datetime, money, numeric\*\*(10,2)\*\* Here is an update (ripoff!) of [GalacticCowboy's answer](https://stackoverflow.com/a/253374/880904) to fix some issues and update for all (I think) SQL Server 2008R2 datatypes: ``` select data_type + case when data_type like '%text' or data_...
[ -0.15272705256938934, -0.2817387878894806, 0.7857785820960999, 0.3724711835384369, 0.19194616377353668, -0.0016095208702608943, -0.07669318467378616, -0.012288138270378113, -0.30290311574935913, -0.41225358843803406, -0.3987472951412201, 0.646513819694519, -0.06383528560400009, -0.05020352...
when data_type in ('datetime2', 'datetimeoffset', 'time') then '(' + cast(coalesce(datetime_precision, 7) as varchar(11)) + ')' when data_type in ('decimal', 'numeric') then '(' + cast(coalesce(numeric_precision, 18) as varchar(11)) + ',' + cast(coalesce(numeric_scale, 0) as varchar(11))...
[ -0.10028951615095139, -0.2594553232192993, 0.5354537963867188, -0.22935308516025543, 0.3623540997505188, 0.43450015783309937, 0.2479376494884491, -0.2820800244808197, -0.07927118986845016, -0.43002599477767944, -0.43848085403442383, 0.393832802772522, -0.0646461546421051, 0.043503582477569...
when character_maximum_length is not null then '(' + cast(character_maximum_length as varchar(11)) + ')' else '' end as CONDENSED_TYPE , * from information_schema.columns order by table_schema, table_name, ordinal_position ```
[ -0.2830790579319, 0.36675333976745605, 0.8571085929870605, -0.21406328678131104, 0.10954541712999344, 0.08955729007720947, -0.011263317428529263, 0.04065374284982681, -0.16419078409671783, -0.5672928094863892, -0.5703823566436768, 0.02774420939385891, -0.22573111951351166, 0.25958502292633...
In [Vim](http://en.wikipedia.org/wiki/Vim_%28text_editor%29), how do I insert characters at the beginning of each line in a selection? For instance, I want to comment out a block of code by prepending `//` at the beginning of each line assuming my language's comment system doesn't allow block commenting like `/* */`. ...
[ 0.2209911346435547, -0.05460939556360245, 0.7750121355056763, -0.037228237837553024, -0.08736258745193481, 0.25549617409706116, 0.18598823249340057, -0.3159737288951874, -0.1279173344373703, -0.6045011281967163, -0.4256502687931061, 0.5718305110931396, -0.11232590675354004, -0.148954451084...
appear on every line. For further information and reading, check out "[Inserting text in multiple lines](https://vim.wikia.com/wiki/Inserting_text_in_multiple_lines)" in the Vim Tips Wiki.
[ 0.3620164692401886, -0.3174685835838318, 0.4721405506134033, 0.3530866503715515, 0.044683538377285004, -0.22592078149318695, 0.03490939363837242, 0.14856214821338654, -0.33837661147117615, -0.48785829544067383, -0.11688215285539627, 0.34733760356903076, -0.16901762783527374, -0.21131211519...
Delphi (and probably a lot of other languages) has class helpers. These provide a way to add extra methods to an existing class. Without making a subclass. So, what are good uses for class helpers? I'm using them: * To [insert enumerators](http://17slon.com/blogs/gabr/2007/03/fun-with-enumerators-part-5-class.html "C...
[ -0.07783302664756775, -0.20549628138542175, 0.48353850841522217, -0.03644683212041855, -0.030322743579745293, 0.08577609062194824, -0.13715289533138275, -0.4007999300956726, -0.20827077329158783, -0.5465404987335205, -0.08642926067113876, 0.847122073173523, -0.3767344355583191, -0.23810853...
procedure Sort; procedure Remove(const s: string); end; { TGpStringListHelper } ``` * To simplify access to record fields and [remove casting](http://17slon.com/blogs/gabr/2008/03/walking-key-value-container.html "Walking the key-value container").
[ -0.23395229876041412, -0.3093087375164032, -0.01130557432770729, -0.24340371787548065, -0.17976589500904083, 0.008224480785429478, 0.11114013940095901, -0.26568666100502014, -0.46047747135162354, -0.22045721113681793, -0.156467005610466, 0.0492783859372139, -0.4032747745513916, 0.338413000...
I have a WPF control, that has a list of "Investors", and in the right column of the list, a "Delete" button. I could either waste some time making an image of an "x" in photoshop. Or, I could just use Wingdings font and set the content to "Õ" (which makes a cool looking delete button). Is this appropriate? My thinki...
[ 0.49991878867149353, 0.0845685750246048, 0.6067692637443542, 0.11016257107257843, 0.06660420447587967, -0.1942150741815567, -0.06206474080681801, -0.1514458805322647, -0.131098210811615, -0.6576109528541565, 0.2553856670856476, 0.41200143098831177, -0.25270918011665344, -0.0369750186800956...
feelings) on the matter. Should I worry about font size? etc. Honestly, if you're using WPF, it's probably just as easy to use a path to make an 'x' shape: ``` <Style x:Key="DeleteButtonStyle" TargetType="{x:Type Button}"> <Setter Property="HorizontalAlignment" Value="Stretch"/> <Setter Property="H...
[ 0.0710226371884346, -0.041985273361206055, 0.5861371159553528, -0.062019411474466324, -0.009015698917210102, 0.43490925431251526, -0.04989058896899223, -0.40380820631980896, -0.0532689094543457, -0.7666659951210022, -0.05987245589494705, 0.5067592263221741, -0.07189300656318665, -0.0051632...
<Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> <Path Name="Circle" Data="F1 M 0 7.5 A 7.5 7.5 0 1 1 15 7.5 A 7.5 7.5 0 1 1 0 7.5"/>
[ -0.12214437872171402, -0.389655202627182, 0.4607411026954651, 0.10782071948051453, -0.05933992564678192, 0.3765023350715637, 0.09691577404737473, -0.1592385321855545, -0.12302849441766739, -0.7132558226585388, 0.1486291140317917, 0.15288510918617249, -0.07153060287237167, 0.146852403879165...
<Path Fill="White" Data="F1 M 7.5 6 L 10.5,3 12,4.5 9,7.5 12,10.5 10.5,12 7.5,9 4.5,12 3,10.5 6,7.5 3,4.5 4.5,3 Z"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True">
[ -0.07683472335338593, -0.43159741163253784, 0.11849450320005417, 0.0464632511138916, 0.2559622526168823, 0.17854560911655426, 0.4569516181945801, -0.521966278553009, -0.07645969092845917, -0.573772668838501, 0.04011408984661102, 0.18018588423728943, -0.33372369408607483, 0.0401244200766086...
<Setter Property="Fill" TargetName="Circle" Value="SlateGray"/> </Trigger> <Trigger Property="IsMouseOver" Value="False">
[ -0.017033163458108902, -0.1889733523130417, 0.06783182173967361, -0.2292182892560959, -0.0268386397510767, -0.00014658579311799258, 0.2139727771282196, -0.34730082750320435, -0.05624369531869888, -0.44899389147758484, -0.27917835116386414, 0.4546853005886078, -0.3076256811618805, -0.106610...
<Setter Property="Fill" TargetName="Circle" Value="DarkGray"/> </Trigger> <DataTrigger Binding="{Binding}" Value="{x:Null}"> <Setter Property="Visibility" Value="Hidden"/>
[ -0.08604079484939575, -0.3561033606529236, 0.24417729675769806, 0.018671106547117233, -0.09473767876625061, -0.12639109790325165, 0.22831743955612183, -0.42542847990989685, -0.010590113699436188, -0.4432618319988251, -0.2749643623828888, 0.2974770665168762, -0.4589523673057556, -0.06544905...
</DataTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> <Setter Property="ToolTip" Value="Delete This Item"/> </Style> ``` Just apply this style to a button, and you get an instant "delete"
[ -0.009170085191726685, -0.3769727051258087, 0.6170009970664978, 0.029970867559313774, 0.11876236647367477, -0.03609989583492279, 0.17833785712718964, -0.3319571018218994, -0.46198588609695435, -0.5838968753814697, -0.3363761901855469, 0.25709107518196106, -0.37883371114730835, 0.0187410749...
button!
[ 0.050728343427181244, 0.008583716116845608, 0.10450652241706848, -0.08025556802749634, -0.09897450357675552, 0.09883376210927963, 0.08920261263847351, 0.34092745184898376, -0.6382471323013306, -0.14756597578525543, -0.20119048655033112, 0.22747187316417694, -0.363994300365448, 0.4266853630...
I was loading a Bitmap Image from a File. When I tried to save the Image to another file I got the following error "A generic error occurred in GDI+". I believe this is because the file is locked by the image object. Ok so tried calling the Image.Clone function. This still locks the file. hmm. Next I try loading a Bi...
[ 0.30541279911994934, 0.024016717448830605, 0.4585074782371521, 0.08315745741128922, 0.09331123530864716, -0.10994572192430496, 0.5581719279289246, -0.1347978264093399, -0.31307530403137207, -0.7691482901573181, 0.20912589132785797, 0.6689584255218506, -0.32670357823371887, 0.38212665915489...
the stream open to stop this exception but if I keep the stream open then the file remains locked. So no good with that method. In the end I created a copy of the file. So now I have 2 versions of the file. 1 I can lock and manipulate in my c# program. This other original file remains unlocked to which I can save modi...
[ 0.3276626765727997, 0.10664687305688858, 0.3962787687778473, 0.0894993245601654, -0.17951682209968567, 0.1053960993885994, 0.4107819199562073, -0.14137284457683563, -0.3456610143184662, -0.7574739456176758, 0.1626460999250412, 0.46665528416633606, -0.30136600136756897, 0.5119557976722717, ...
having to have 2 versions of the image file. Any ideas? I have since found an alternative method to clone the image without locking the file. [Bob Powell has it all plus more GDI resources](https://web.archive.org/web/20120419185819/http://www.bobpowell.net/imagefileconvert.htm). ``` //open the file Image ...
[ 0.5000290274620056, -0.07641838490962982, 0.5644531846046448, 0.04119528830051422, 0.007997918874025345, 0.28127235174179077, 0.07086100429296494, -0.28109681606292725, -0.39441460371017456, -0.8033711910247803, -0.21375659108161926, 0.5189053416252136, -0.42038050293922424, 0.182245418429...
i.Dispose(); //Can now save t.Save(path) ```
[ 0.3661697208881378, -0.12094812840223312, 0.1100878193974495, -0.15927690267562866, 0.36658164858818054, -0.17506802082061768, 0.42299729585647583, -0.1877513974905014, 0.0360565148293972, -0.9885644316673279, -0.1837732344865799, 0.5482801198959351, -0.4088193476200104, 0.3693143725395202...
For example if I have an auto-numbered field, I add new records without specifying this field and let DB engine to pick it for me. So, will it pick the number of the deleted record? If yes, when? // SQL Server, MySQL. // Follow-up question: [What happens when DB engine runs out of numbers to use for primary keys?]...
[ 0.04333249107003212, 0.06788868457078934, 0.11638247221708298, 0.12795519828796387, -0.048958759754896164, -0.08736295998096466, 0.05447730794548988, -0.3289847671985626, -0.49024802446365356, -0.3140052855014801, -0.09319239109754562, 0.6429674029350281, -0.19496020674705505, 0.2033061236...
I'm looking for an OpenSource server monitoring tool that allows the following: * Monitor a variety of services on TCP, UDP. * Supports custom port numbers. * Supports some basic response checking (beyond initial connection checking). * Basic dashboard overview of health status. * Alert notifications via e-mail. I co...
[ 0.537248432636261, 0.1373324990272522, 0.2661721408367157, 0.15948183834552765, 0.11809565871953964, -0.21220070123672485, 0.31967398524284363, 0.16775722801685333, -0.28497445583343506, -0.9932968020439148, 0.17005500197410583, 0.5420509576797485, -0.00610582809895277, 0.21306656301021576...
in MySQL). Whatever happens, it's not going to be pretty. You'd simply have to change the column type to a larger integer.
[ 0.07539616525173187, -0.04191667214035988, 0.5795296430587769, -0.006703801918774843, 0.009370789863169193, 0.05769903212785721, -0.020151400938630104, 0.16150261461734772, -0.3009282648563385, -0.5176588296890259, -0.013528924435377121, 0.20538747310638428, -0.38555943965911865, 0.0131282...
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I wanted to know if anyone had experience with that or could suggest a better one? Some criteria to be measured by * validation * peformance * multiple files * localisation ([browse](https://stackoverflow.c...
[ 0.27197688817977905, -0.06068963184952736, 0.7627509832382202, 0.2689109742641449, 0.030837176367640495, -0.4488373398780823, 0.1553664207458496, -0.09800733625888824, -0.5538151264190674, -0.5668699741363525, -0.15250617265701294, 0.5718408226966858, -0.0009692594176158309, 0.117029130458...
I was using an XSL style sheet to do the sorting but it seems to be very slow. Is there a more efficient way? It is a flat list of nodes, if I convert the nodes to an object and sort in a GenericList would it help? **EDIT** I don't need the end result to be XML. Personally, if you have the Telerik controls I would gi...
[ 0.4299648106098175, 0.007586310617625713, 0.4240404963493347, 0.32433101534843445, -0.18900708854198456, -0.18992532789707184, -0.01627214252948761, -0.11648022383451462, -0.2775774598121643, -0.6622411012649536, 0.18519042432308197, 0.41502800583839417, 0.05569864436984062, 0.039659839123...
In Microsoft Oslo SDK CTP 2008 (using Intellipad) the following code compiles fine: ``` module M { type T { Text : Text; } } ``` while compiling the below code leads to the error "M0197: 'Text' cannot be used in a Type context" ``` module M { type T { Text : Text; Value : Text; /...
[ -0.22359365224838257, 0.20334570109844208, 0.20224636793136597, -0.19293850660324097, -0.34627389907836914, -0.3225546181201935, 0.6498674154281616, -0.5474148988723755, 0.0983186811208725, -0.4684731960296631, -0.12356258928775787, 0.5278463959693909, -0.46926793456077576, -0.035396151244...
Text is also used in a Type context. UPDATE: To add to the confusion, consider the following example, which also compiles fine: ``` module M { type X; type T { X : X; Y : X; } } ``` The M Language Specification states that: > Field declarations override lexical scoping to prevent the type...
[ 0.3303839862346649, 0.24955998361110687, 0.29139113426208496, -0.22668667137622833, -0.20874452590942383, -0.28446897864341736, 0.4632432758808136, -0.3181019723415375, -0.14133653044700623, -0.22019623219966888, -0.6179200410842896, 0.8090992569923401, -0.5020421147346497, -0.176040887832...
following example: > > > type A; > type B { > A : A; > } > > > The lexically enclosing scope for the type ascription of the field declaration A is the entity declaration B. With no exception, the type ascription A would bind to the field declaration in a circular reference which is an error. The exception allows...
[ 0.15582168102264404, 0.1418948471546173, 0.28811848163604736, -0.2115708589553833, -0.1150708794593811, -0.2206791192293167, 0.1309526562690735, -0.361267626285553, 0.10679134726524353, -0.32029300928115845, -0.21678189933300018, 0.5109937191009521, -0.46059513092041016, 0.0207856502383947...
rename *Value* to *Y*. Any ideas? Regards, tamberg The primary benefits of a CHUI (that is something with forms and fields, not necessarily command line interfaces) is the keyboard for navigation and consistent layout. That is key. If your GUI can be completely, and efficiently, keyboard navigated, then your CHUI us...
[ 0.16659432649612427, 0.24739600718021393, 0.3363625109195709, 0.2804516553878784, 0.0807792916893959, 0.0715194121003151, -0.14438220858573914, 0.37253469228744507, -0.06715218722820282, -0.801971435546875, -0.28883349895477295, 0.37737083435058594, 0.0484134703874588, 0.025223124772310257...
trained (notably POS/Counter workers, but even back office scenarios like factory or warehouse floor, etc) have no problem using a CHUI. But the key is the keyboard support so the user don't have to wait for the screen to catch up with them. Seeing a skilled operator with a mastery of the keyboard can make an applicat...
[ 0.33516526222229004, -0.10898665338754654, 0.189226433634758, 0.13584400713443756, -0.001290164072997868, -0.30774298310279846, -0.15484686195850372, 0.05677831545472145, -0.1019437238574028, -0.5625439882278442, -0.28390997648239136, 0.2246652990579605, 0.07555070519447327, -0.29215648770...
I'm looking for a way to supply an argument to a ruby on rails project at runtime. Essentially, our project uses public key cryptography to encrypt some sensitive client data and we want the ability to supply the password to the private key file at runtime. An easy way to do this would be to create a Rails plugin that ...
[ -0.01742677390575409, 0.10997893661260605, 0.15510845184326172, 0.031442828476428986, -0.05266319215297699, 0.008293494582176208, 0.20953963696956635, -0.3940945863723755, 0.06768505275249481, -0.5345255732536316, -0.07920973747968674, 0.5828194618225098, -0.3964892625808716, 0.05403740331...
return @@argHash[key.to_sym] end end ``` Load the StartupArgs module into the Rails project's namespace and populate it with arguments in '$railsRoot/vendor/plugins/startup\_args/init.rb': ``` require "startup_args" promptString = "Enter arg name (type nothing to continue):" puts promptString while (newArg = gets...
[ -0.05184195563197136, 0.06310297548770905, 0.37381353974342346, -0.26304593682289124, 0.16896623373031616, 0.1295313984155655, 0.16562122106552124, -0.06391746550798416, 0.018143808469176292, -0.6369677782058716, -0.25723180174827576, 0.3191015422344208, -0.4860391914844513, 0.122102908790...
could read from a named-pipe instead of the console's standard input. Going one step further, you could remove all parts of 'init.rb' except for the 'require' statement and add an action that performs this setup to a controller that would take the relevant parameters as a post over the web. Make sure to configure Rail...
[ 0.36656486988067627, -0.473174124956131, 0.14926384389400482, 0.48195260763168335, 0.04174322634935379, -0.21433749794960022, 0.4084722697734833, -0.5098291039466858, 0.006086404900997877, -0.6144556403160095, -0.016624726355075836, 0.5816585421562195, -0.07708051055669785, 0.0302702412009...
configure your other Rails actions to ignore requests until the setup action has stored the appropriate parameters to the global object.) A Note For Micah: I don't have the reputation to comment directly on your post, so I will include my comment here. There might be a few reasons to consider a system that never requi...
[ 0.26804229617118835, -0.12841106951236725, -0.41032883524894714, 0.34291568398475647, -0.04263041540980339, -0.3476799428462982, 0.41677770018577576, 0.15701521933078766, -0.09971626102924347, -0.523806095123291, -0.05353992059826851, 0.41420331597328186, -0.12733732163906097, -0.114095501...
user could be compromised, cannot be trusted, or cannot be asked to sign confidentiality and security agreements, the developer might decide to add the additional obfuscation of placing the password in memory only (in the interest of requiring a slightly less secure system or a slightly more clever attack to steal the ...
[ -0.08870609849691391, 0.16822676360607147, 0.07780976593494415, 0.39580199122428894, 0.40724796056747437, -0.12457804381847382, 0.41408324241638184, 0.009696464985609055, -0.23519626259803772, -0.4030371606349945, -0.3458966016769409, 0.5154125690460205, -0.04478659853339195, 0.15014295279...
Having not done ASP.NET since v1.1, and now blitzing through the Wrox Pro ASP.NET v3.5 book, what other resources are available to get me developing enterprise ASP.NET apps the fastest? I've been developing in DotNet since Beta and have been doing Winform & middle-layer architecture/design/dev for 3.5 years now (as th...
[ 0.5654135346412659, 0.05697019025683403, 0.28568607568740845, -0.18834909796714783, -0.11550834774971008, 0.13578082621097565, 0.2635500729084015, 0.3418614864349365, -0.35297855734825134, -0.907397449016571, 0.15353308618068695, 0.542436420917511, 0.22660191357135773, -0.10564196109771729...
fun consuming the Wrox book though. Thanx much! I'd start with the [QuickStart tutorials](http://quickstarts.asp.net/QuickStartv20/default.aspx). That'll get you into the code, get you some exposure to the programming, architecture, controls, data access, and so on. You can also watch videos of how to accomplish variou...
[ 0.6796936392784119, -0.20576368272304535, 0.2579430639743805, 0.3749046325683594, -0.06221095100045204, -0.47935792803764343, 0.20139741897583008, 0.320184588432312, -0.11407060921192169, -0.5266119837760925, 0.25759291648864746, 0.8171499371528625, 0.403108149766922, -0.226958230137825, ...
In following code, I want to extend the behaviour of a class by deriving/subclassing it, and make use of an event of the base class: ``` public class A { public event EventHandler SomeEvent; public void someMethod() { if(SomeEvent != null) SomeEvent(this, someArgs); } } public class B : A { ...
[ 0.22985289990901947, -0.23931337893009186, -0.16063399612903595, -0.3812728524208069, -0.0012225991813465953, -0.019926656037569046, 0.40399864315986633, 0.09258013218641281, -0.27233994007110596, -0.3004436194896698, -0.16913560032844543, 0.49489110708236694, -0.264845073223114, 0.1671499...
the left hand side of += or -= //(except when used from within the type 'A') } } ``` Why isn't it possible? And what is the common solution for this kind of situation? The standard practice here is to have a protected virtual method OnSomeEvent on your base class, then call that method in derived classes. Also,...
[ 0.13940565288066864, -0.13866928219795227, -0.2725026309490204, 0.17208346724510193, 0.06220432370901108, -0.3808102607727051, 0.19353698194026947, -0.06574595719575882, -0.37861141562461853, -0.11590871214866638, -0.2519005537033081, 0.4307638108730316, -0.4407740831375122, 0.081027269363...
possible work around. ``` public class A { public event EventHandler SomeEvent; public void someMethod() { OnSomeEvent(); } protected void OnSomeEvent() { EventHandler handler = SomeEvent; if(handler != null) handler(this, someArgs); } } public class B...
[ 0.319776713848114, -0.32819026708602905, -0.03581523150205612, -0.24492147564888, 0.22160270810127258, -0.14435230195522308, 0.4112968146800995, 0.019035780802369118, -0.15364181995391846, -0.31145885586738586, -0.44286760687828064, 0.5695884227752686, -0.3247799873352051, 0.01235080137848...
OnSomeEvent(); } } ``` **Edit:** Updated code based upon [Framework Design Guidelines section 5.4](http://msdn.microsoft.com/en-us/library/cf18x51d(VS.71).aspx) and [reminders](https://stackoverflow.com/questions/253757/why-events-cant-be-used-in-the-same-way-in-derived-classes-as-in-the-base-class#253806) by oth...
[ 0.03130784630775452, -0.15687164664268494, 0.20436693727970123, 0.19049210846424103, 0.24820174276828766, -0.2260546088218689, 0.26556429266929626, 0.0862203985452652, -0.5336961150169373, -0.3718680441379547, -0.5535359382629395, 0.5211561918258667, -0.24023909866809845, -0.11368906497955...
Have you used the Perl 5.10 backtracking control verbs in your regexes yet? And what problems did they help you accomplish? --- Just as background: I have done some fiddling, but I can't get any really useful results. As a comparison, when I started getting what the `(?>` grouping did, it started showing up more in...
[ 0.31997665762901306, -0.22285178303718567, 0.10839266330003738, 0.055645544081926346, -0.28848546743392944, 0.18700341880321503, 0.5447071194648743, 0.21256336569786072, -0.25265392661094666, -0.4865320920944214, 0.06266024708747864, 0.7707539200782776, -0.004024931695312262, -0.1698694080...
--- When someone can tell me what *other* implementation of REs has backtracking control verbs--and PCRE *does not*, I can concede that it belongs in the general area of expertise of people knowledgeable about regexes. This is a *Perl* regex question, and guys helping people out with Ruby, Python, C#, Javascript--or a...
[ 0.20270316302776337, -0.015328308567404747, -0.004686112515628338, 0.2292017936706543, -0.32947465777397156, 0.02442684769630432, 0.22185073792934418, -0.395217627286911, -0.32690539956092834, -0.22942501306533813, -0.18554309010505676, 0.7193668484687805, -0.33713364601135254, -0.29093557...
How would you maintain the legacy applications that: 1. Has no unit tests have big methods 2. with a lot of duplicated logic have 3. have No separation of concern 4. have a lot of quick hacks and hard coded strings 5. have Outdated and wrong documentation 6. **Requirements are not properly documented**! This has actua...
[ 0.592465341091156, 0.1878669708967209, -0.03157578408718109, 0.35879600048065186, 0.28143933415412903, -0.24406684935092926, 0.21196815371513367, -0.21426542103290558, -0.351764053106308, -0.3481311500072479, 0.001654739840887487, 0.7289314270019531, -0.05649097263813019, 0.300450563430786...
little guidance on what should be ( or not) done. ??? You need the book [Working Effectively with Legacy Code by Michael C. Feathers](https://rads.stackoverflow.com/amzn/click/com/0131177052). ![alt text](https://i.stack.imgur.com/hVs5x.jpg)
[ 0.23877516388893127, 0.14954613149166107, 0.08768655359745026, 0.06753913313150406, 0.560857355594635, -0.3178146481513977, 0.32642412185668945, -0.41015899181365967, -0.11686177551746368, -0.3176754415035248, -0.12608569860458374, 0.4377623498439789, -0.2646315097808838, -0.39103698730468...
In a WPF app, is there a object I can assign to FileSystemWatcher.SynchronizingObject? I can make my own, but if there is one available, I would like to use it. Reflector shows that the only class that implements `ISynchronizeInvoke` (i.e., the type of the `FileSystemWatcher.SynchronizingObject` property) is `System.W...
[ 0.1124580129981041, -0.23514868319034576, 0.45603612065315247, -0.02255185879766941, -0.0398111566901207, -0.05158665031194687, 0.030061446130275726, -0.2725636959075928, -0.0996624007821083, -0.5298030972480774, -0.14662349224090576, 0.4660940170288086, -0.48126161098480225, -0.1515424847...
I've looked for references on the Audible format, and it appears that people are only interested in cracking/converting *out* of it. I've got a collection of MP3 files that I want to convert into Audible format for use on my Kindle and iPod. Does anybody have a good reference on the Audible or protected AAC formats an...
[ 0.7995060086250305, 0.3459031283855438, 0.05393318831920624, -0.044838324189186096, -0.0770944282412529, -0.07155781984329224, -0.03907221555709839, 0.17020051181316376, -0.3376636207103729, -0.44184741377830505, 0.2420082986354828, 0.8130340576171875, 0.0885922759771347, 0.159713774919509...
use it. I am not aware of any publicly available encoders that will create audible formatted files (for free or not). Since Amazon bought Audible I am not sure if they would even sell the right to anyone else anymore. I do not own a Kindle, but from what I can tell, it only supports Audible formatted files with full a...
[ 0.6069133877754211, 0.07953988760709763, 0.016826817765831947, 0.22176949679851532, 0.00803442858159542, -0.4777225852012634, 0.09488429129123688, 0.10347887128591537, -0.1950554996728897, -0.5334559679031372, 0.07806474715471268, 0.8171687126159668, -0.08220508694648743, 0.019620660692453...
track has the proper track reference to the text track. M4B is a version of MP4 that uses AAC audio. There are several programs to do this on the MAC and recently a few have surfaced for the PC. I have created a freeware software package with a Graphical User Interface (GUI) for the PC which is in Beta test now. It is...
[ 0.20419275760650635, 0.04487171024084091, 0.4332810938358307, 0.08657626062631607, -0.06574829667806625, 0.28618764877319336, 0.373445063829422, -0.3171958327293396, -0.06152194365859032, -0.49002888798713684, -0.06717316806316376, 0.8513962030410767, -0.20069840550422668, -0.1122666224837...
well. Several command line utilities exist as well. One is called Slide Show Assembler (SSA) that can be used to create podcasts as well as audiobooks. SSA is available from [jrlearnsmedia.com](http://jrlearnsmedia.com/blog/articles/ssa-downloads.aspx). Another is a command line utility for manipulating MP4 files call...
[ 0.2568874955177307, -0.13483843207359314, 0.28672659397125244, 0.25115710496902466, -0.05461454764008522, -0.37701550126075745, 0.158062145113945, -0.12168307602405548, -0.5146967172622681, -0.4210691750049591, -0.24784815311431885, 0.29544490575790405, -0.20599061250686646, 0.049273330718...
I have a case that keeps coming up where I'm using a ListView or similar control with a simple array such as string[]. Is there a way to use the DataKeyNames property when you are binding to simple collections? You could do this with Linq: ``` string [] files = ...; var list = from f in files select new { Letter...
[ 0.1986311972141266, -0.016348587349057198, 0.6645557880401611, -0.21193014085292816, 0.1035158783197403, -0.07385387271642685, 0.18323925137519836, -0.564617931842804, -0.3089938759803772, -0.530280590057373, -0.06906210631132126, 0.47538474202156067, -0.31759771704673767, 0.23397795855998...
I have a function I've written that was initially supposed to take a string field and populate an excel spreadsheet with the values. Those values continually came up null. I started tracking it back to the recordset and found that despite the query being valid and running properly through the Access query analyzer the ...
[ 0.011170763522386551, 0.08446473628282547, 0.008842880837619305, 0.07970613986253738, -0.01312774047255516, 0.12316858768463135, 0.2818944454193115, -0.022952649742364883, -0.14118552207946777, -0.2990933954715729, 0.1073225662112236, 0.18410319089889526, -0.40077918767929077, 0.4161417782...
"WHERE" clause of the query. If I don't put a "WHERE" clause on the query, the recordset always has data and the values for "DESCRIPTION" are normal. If I put *anything* in for the WHERE clause the recordset comes back either totally empty (`rs.EOF = true`) or the Description field is totally blank where the other fie...
[ -0.0009106127545237541, -0.0271917674690485, 0.37458351254463196, 0.204121395945549, 0.2533401846885681, -0.5275441408157349, 0.29818007349967957, 0.2507685720920563, -0.09514202922582626, -0.4868960678577423, -0.292987585067749, 0.7512680292129517, -0.03901452198624611, 0.32586470246315, ...
rsNewTest As ADODB.Recordset Dim sqlNewTest As String Dim Counter As Integer ' Set variables '---------------------------------------------------------- Set rsNewTest = New ADODB.Recordset sqlNewTest = "SELECT dbo_partmtl.partnum as [Job/Sub], dbo_partmtl.revisionnum as Rev, " & _ "dbo_part.partdescr...
[ -0.26819664239883423, -0.15763907134532928, 0.9261202812194824, -0.22384992241859436, -0.30454492568969727, 0.2956191301345825, 0.27630069851875305, -0.615557849407196, -0.06338450312614441, -0.2795053720474243, -0.29001614451408386, 0.47896844148635864, -0.33321720361709595, 0.38940343260...
"WHERE dbo_partmtl.mtlpartnum=" & Chr(34) & "3C16470" & Chr(34) ' Open recordset rsNewTest.Open sqlNewTest, CurrentProject.Connection, adOpenDynamic, adLockOptimistic Do Until rsNewTest.EOF For Counter = 0 To rsNewTest.Fields.Count - 1 MsgBox rsNewTest.Fields(Counter).Name Next ...
[ -0.019075172021985054, 0.19493304193019867, 0.738907516002655, -0.18121212720870972, 0.09820102155208588, -0.024085361510515213, 0.45522716641426086, -0.4751722812652588, 0.009885999374091625, -0.3298780024051666, -0.44267523288726807, 0.33443865180015564, -0.2574651539325714, 0.5819337964...
as [Job/Sub], dbo_partmtl.revisionnum as Rev, dbo_part.partdescription as [Description], dbo_partmtl.qtyper as [Qty Per] FROM dbo_partmtl LEFT JOIN dbo_part ON dbo_partmtl.partnum = dbo_part.partnum WHERE dbo_partmtl.mtlpartnum='3C16470' ``` --- I have tried double and single quotes using ASCII characters and implic...
[ -0.11425366252660751, -0.06386526674032211, 0.3954273462295532, 0.03972899913787842, 0.052425555884838104, 0.2249584197998047, 0.18408901989459991, -0.22310870885849, 0.06025402247905731, -0.3119621276855469, -0.14900676906108856, 0.5510029792785645, -0.20992107689380646, 0.296373933553695...
here. --- Here is an interesting tidbit. The tables are linked to a `SQL Server`. If I copy the tables (data and structure) locally, the ADO code above worked flawlessly. If I use DAO it works fine. I've tried this code on `Windows XP`, `Access 2003`, and various versions of `ADO (2.5, 2.6, 2.8)`. `ADO` will not work...
[ 0.24481496214866638, 0.5978493094444275, 0.5254764556884766, 0.09209754317998886, -0.021644314751029015, -0.2478233277797699, -0.014744993299245834, -0.057339634746313095, 0.027782849967479706, -0.6693854928016663, 0.11759233474731445, 0.7212410569190979, -0.47610968351364136, 0.1949818283...
Description Qty Per 36511C01 A MAIN ELECTRICAL ENCLOSURE 1 36515C0V A VISION SYSTEM 1 36529C01 A MAIN ELECTRICAL ENCLOSURE
[ 0.3244980275630951, 0.32494884729385376, 0.3212594985961914, 0.10664953291416168, 0.11658692359924316, 0.08106209337711334, 0.268020361661911, -0.3796914517879486, -0.02311035804450512, -0.46391043066978455, -0.23135344684123993, 0.4536359906196594, -0.16875825822353363, 0.0348551906645298...
1 ``` However, the same query returns empty values for Description (everything else is the same) when run through the recordset (messagebox errors because of "Null" value). --- I tried renaming the "description" field to "testdep", but it's still empty. The only way to make it display data is to remove the WHERE se...
[ 0.37792232632637024, 0.36542993783950806, 0.028669722378253937, -0.10902183502912521, -0.16321581602096558, -0.308109313249588, 0.2155998945236206, -0.11922914534807205, 0.09860341995954514, -0.6604909896850586, 0.030429000034928322, 0.3664410412311554, -0.5057787299156189, 0.1759908497333...
instead of \*. I know \* works in Access but for some stupid reason ADO won't work unless you use % instead. I had the same problem and ran accoss this forum while trying to fix it. Replacing \*'s with %'s worked for me.
[ 0.061291955411434174, 0.09524685144424438, 0.16656440496444702, 0.058803021907806396, -0.14001597464084625, 0.2638912796974182, -0.031122466549277306, 0.43741095066070557, 0.08715507388114929, -0.7314956784248352, 0.23647041618824005, 0.6469906568527222, -0.5027471780776978, 0.366365045309...
I need to conduct a survey of 3 questions: * The first question will be Yes/No. * The second will have multiple answers, in which you can select multiple answers for just that question, as well as an "other" box that you can use to fill in an answer. * The last question will be a textarea in which the user can enter g...
[ 0.6971704959869385, -0.03876831382513046, 0.23059625923633575, 0.04665357992053032, -0.15855316817760468, 0.5668748617172241, 0.20883101224899292, -0.024569299072027206, 0.10205364227294922, -0.6745501756668091, 0.45214417576789856, 0.3121725022792816, 0.002796323737129569, -0.084520004689...
others like this? EDIT: PHP/MySQL based. <http://docs.google.com> Create a form and collect results of the survey in spreadsheet
[ 0.4968135952949524, 0.048620305955410004, 0.31161853671073914, 0.32724836468696594, -0.052098385989665985, -0.015433027409017086, 0.14973807334899902, -0.21763072907924652, -0.09763535112142563, -0.48094943165779114, -0.008148450404405594, 0.27017742395401, -0.17120026051998138, -0.1529443...
I am looking for an expression for the .hgignore file, to ignore all files beneath a specified folder. eg: I would like to ignore all files and folders beneath bin Actually any advice on how the expressions are formed would be great Alternately: ``` syntax: glob bin/** ```
[ 0.25177136063575745, 0.10333524644374847, 0.44406968355178833, 0.012783664278686047, -0.09129570424556732, -0.04020814225077629, 0.23919068276882172, 0.42991572618484497, -0.13606514036655426, -0.5592156648635864, -0.35255372524261475, 0.373729407787323, -0.5606752038002014, -0.00342922937...
On Windows XP, the following command in a script will prevent any power saving options from being enabled on the PC (monitor sleep, HD sleep, etc.). This is useful for kiosk applications. ``` powercfg.exe /setactive presentation ``` What is the equivalent on Vista? powercfg.exe works a little differently in Vista, a...
[ 0.18148086965084076, -0.1851106733083725, 0.9590768218040466, -0.2544618844985962, -0.3399837613105774, -0.3443915843963623, 0.15090011060237885, -0.11883798986673355, -0.13780935108661652, -0.9406605362892151, -0.2386425882577896, 1.2232698202133179, -0.42160117626190186, -0.1030394434928...
or -X to change specific parameters on the current power scheme. Snippet from "powercfg.exe /?": > -CHANGE, -X Modifies a setting value in the current power scheme. > > > > ``` > Usage: POWERCFG -X <SETTING> <VALUE> > > <SETTING> Specifies one of the following options: > ...
[ 0.26429077982902527, -0.3916949927806854, 0.8283101320266724, 0.22533926367759705, 0.2637488543987274, -0.1596754938364029, -0.3100847005844116, -0.3926768898963928, 0.011362926103174686, -0.49732092022895813, -0.2975664734840393, 0.6280872225761414, -0.297538697719574, -0.0333364456892013...
-monitor-timeout-dc <minutes> > -disk-timeout-ac <minutes> > -disk-timeout-dc <minutes> > -standby-timeout-ac <minutes> >
[ 0.14926175773143768, -0.0349285826086998, 0.26055973768234253, 0.33921632170677185, -0.04170186072587967, -0.01356926653534174, -0.4723037779331207, 0.020716432482004166, -0.2908633351325989, -0.2604672312736511, -0.3261770009994507, 0.738247275352478, 0.024264482781291008, 0.4729131162166...
-standby-timeout-dc <minutes> > -hibernate-timeout-ac <minutes> > -hibernate-timeout-dc <minutes> > > Example: > POWERCFG -Change -monitor-timeout-ac 5 > > This would set
[ 0.3896322250366211, -0.34019333124160767, 0.460232138633728, -0.08563612401485443, -0.032932862639427185, -0.21070551872253418, 0.005429635755717754, -0.5337929129600525, 0.0286395400762558, -0.23959602415561676, -0.35988089442253113, 0.4147116541862488, -0.2555624842643738, 0.110470369458...
the monitor idle timeout value to 5 minutes > when on AC power. > > ```
[ 0.40455400943756104, -0.07353100925683975, 0.7986866235733032, 0.1432691067457199, 0.2581607699394226, -0.188788041472435, 0.09852785617113113, 0.08665256947278976, -0.07637236267328262, -0.7406755089759827, 0.09952301532030106, 0.9807193875312805, -0.05713779106736183, 0.10305223613977432...
I'm trying to write some LINQ To SQL code that would generate SQL like ``` SELECT t.Name, g.Name FROM Theme t INNER JOIN ( SELECT TOP 5 * FROM [Group] ORDER BY TotalMembers ) as g ON t.K = g.ThemeK ``` So far I have ``` var q = from t in dc.Themes join g in dc.Groups on t.K equals g.ThemeK into groups select ...
[ -0.08430720865726471, 0.012477819807827473, 0.7681381702423096, -0.07810289412736893, -0.32679781317710876, -0.046355973929166794, -0.03655429929494858, -0.43950003385543823, -0.43783894181251526, -0.4105284810066223, -0.15976205468177795, 0.4188152849674225, -0.07496938109397888, 0.369312...
end, but I can't get this syntax to work in c#. How do you use the take syntax in c#? edit: PS adding .Take(5) at the end causes it to run loads of individual queries edit 2: I made a slight mistake with the intent of the SQL above, but the question still stands. **The problem is that if you use extension methods in ...
[ 0.24408823251724243, -0.2023310661315918, 0.4706837832927704, -0.18487226963043213, -0.20309226214885712, -0.0707414448261261, 0.16385838389396667, -0.3547901213169098, -0.1848972588777542, -0.3078443109989166, -0.07576008886098862, 0.5619533658027649, -0.4187580943107605, -0.0272099953144...
query = dc.Themes .Join(subquery, t => t.K, g => g.ThemeK, (t, g) => new { ThemeName = t.Name, GroupName = g.Name } ); ``` The roundtrips in the question are caused by the groupjoin (join into). Groups in LINQ have a heirarchical shape. Groups in SQL have a row/column shape (grouped keys + aggregates). ...
[ -0.3970903754234314, 0.07492157071828842, 0.6268905401229858, 0.2419288456439972, 0.04932272434234619, 0.0073136198334395885, -0.19620126485824585, -0.3603259325027466, -0.04734927788376808, -0.17198629677295685, -0.18214267492294312, 0.07217539846897125, -0.14558692276477814, 0.2820290327...
How can I make a SQL Compact 2008 application for the desktop? I know how to connect to a .SDF file with SQL Management Studio 2008, but I can't figure out how to connect to it with my app. I have seen tutorials about this and I can see in the C# code they are referencing some special namespaces, but I can't seem to ge...
[ 0.007906625978648663, 0.3222728371620178, 0.1818617284297943, 0.28775304555892944, -0.03135242313146591, -0.29083847999572754, 0.2996748089790344, 0.10285091400146484, -0.1891833394765854, -0.5367753505706787, 0.22660362720489502, 0.535486102104187, -0.15074072778224945, 0.0863797292113304...
know where I can find the correct binaries for this. Have you [gone here and downloaded all the components](http://msdn.microsoft.com/en-us/library/aa983341.aspx) listed (including the design tools)? If you post the "error" you get it might be easier to diagnose your problem.
[ 0.37215757369995117, 0.23396718502044678, -0.15936024487018585, 0.34675726294517517, 0.32845374941825867, -0.2991553544998169, 0.4162072539329529, 0.16530455648899078, -0.0911821499466896, -0.7557222247123718, -0.09881872683763504, 0.34635037183761597, -0.2653771638870239, -0.0104052266106...
Recently I've been doing lots of weekend coding, and have began to really need a bugtracker as things are gaining speed. This is probably the worst case scenario because I basically have to let things cool down over the week,so I simply can't remember the bugs in my head. So far I've been using a text file to jot down ...
[ 0.7661019563674927, 0.24109908938407898, 0.04117639362812042, 0.12637336552143097, 0.41174933314323425, -0.014956892468035221, 0.5177431106567383, 0.35881301760673523, -0.3810887634754181, -0.7619820237159729, 0.17409875988960266, 0.5191287398338318, -0.18799670040607452, -0.11889372020959...
on a Mac so that would help, but solutions for other platforms are welcomed as they will likely help others. Personally, I use Excel. (Wait, come back, I'm not crazy!) For a bigger / team project, I've gotten a ton of mileage out of Bugzilla, but that tends to be kind of overkill for a one-person project. But, a well-...
[ 0.02226787991821766, -0.11038105189800262, -0.0025976309552788734, 0.44875288009643555, 0.12750893831253052, -0.24828127026557922, 0.13203568756580353, 0.18244026601314545, -0.38877347111701965, -0.6401631236076355, 0.040444113314151764, 0.34281444549560547, -0.011072169058024883, -0.33866...
"find in text file." Heck, if you use Google docs rather than excel, you can even publish the thing as an RSS feed and get it anywhere. And, the major advantage is that the setup time and learning curve are both effectively nil. Addendum: And of course, the instant your "One-Person Bug Tracker" becomes a "Two-Person...
[ 0.44411876797676086, -0.27256032824516296, 0.0015701651573181152, 0.3139550983905792, 0.29807478189468384, -0.3150390684604645, 0.08524177968502045, 0.6176120638847351, -0.23266179859638214, -0.6328537464141846, -0.031017955392599106, 0.7878068089485168, -0.39693573117256165, 0.03716618940...
My group has a source analysis tool that enforces certain styles that we have to comply with. I can't change it, and some of the rules are just a pain. One example is that all properties have to come before methods, and all constructors must come before properties. It seems silly to me that I have to take time to do so...
[ 0.5249401330947876, 0.25765958428382874, 0.03822916001081467, 0.24425716698169708, -0.18760396540164948, -0.3092077374458313, 0.3664676547050476, -0.29480576515197754, 0.029031366109848022, -0.3904242515563965, 0.2954171299934387, 0.6772390604019165, -0.10618412494659424, 0.126717105507850...
it automatically put using's inside the namespace block. You have different possibilities, depending on what exactly you want to do: Resharper: There is a auto-format function which formats the source code of a single file or all files in the project / solution depending on your selected rules. So you set the settings...
[ 0.37078726291656494, -0.185049369931221, 0.463236540555954, 0.2027832716703415, -0.006735697388648987, -0.05976351350545883, -0.012491273693740368, -0.3767465353012085, -0.11092373728752136, -0.696155846118927, -0.1382138878107071, 0.9051349759101868, -0.32084184885025024, -0.3373648822307...
great tool an you can also select the rules which you want to enforce.
[ 0.29187843203544617, -0.1209452897310257, -0.09891633689403534, 0.3568441569805145, -0.1069197878241539, -0.5111395120620728, 0.15495696663856506, 0.015591857954859734, -0.1202627494931221, -0.6680597066879272, 0.020624984055757523, 0.7894116044044495, 0.05262124165892601, 0.03547509759664...
Unsure if I've phrased this correctly, but in the callback how do I reference the controls property of the base class? This has been bugging me for some time and I usually work around it, but I'd be grateful if anybody can enlighten me on how I should do this properly. ``` var base = function() { var controls = {...
[ 0.1371411234140396, 0.003976172301918268, 0.17664773762226105, -0.15526758134365082, 0.09585093706846237, -0.3576675355434418, 0.2284211665391922, -0.2131825089454651, 0.18763314187526703, -0.40883421897888184, -0.021835239604115486, 0.6822905540466309, -0.27560412883758545, 0.092876024544...
foo: function(args) { this.init(args.controls); $(this.controls.DropDown).change(function() { $(this.controls.PlaceHolder).toggle(); }); } } }; ``` Much Obliged, Paul Use the power of closures: ``` var base = function() { var controls = {}; re...
[ -0.18667837977409363, 0.042586855590343475, 0.461916446685791, -0.4446348547935486, 0.08235588669776917, 0.2102646678686142, 0.31763625144958496, -0.4343700706958771, -0.27904340624809265, -0.132768914103508, -0.13459855318069458, 0.5576825737953186, -0.8253200650215149, 0.2607466876506805...