text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
guard against this case like so: `self.number ||= 0.0 if self.has_attribute? :number` and for a boolean column... `self.bool_field = true if (self.has_attribute? :bool_value) && self.bool_field.nil?` Also note that the syntax is different prior to Rails 3.2 (see Cliff Darling's comment below)
[ -0.03661052882671356, -0.146908238530159, 0.07957961410284042, -0.0826079472899437, 0.04054420068860054, -0.08243536949157715, 0.6430284380912781, -0.2548143267631531, -0.13582170009613037, -0.20697033405303955, 0.056006770581007004, 0.8276230096817017, -0.45100611448287964, 0.058910984545...
I'm a long time C++/Java developer trying to get into Python and am looking for the stereotypical "Python for C++ Developers" article, but coming up blank. I've seen these sort of things for C#, Java, etc, and they're incredibly useful for getting up to speed on language features and noteworthy differences. Anyone have...
[ 0.5414260029792786, 0.38554444909095764, -0.4530037045478821, 0.26360824704170227, -0.07620347291231155, -0.2477061003446579, 0.19744740426540375, 0.7357897758483887, -0.2786109745502472, -0.2942615747451782, 0.14599347114562988, 0.690254807472229, 0.03016294166445732, 0.0420856848359108, ...
go looking to learn Language X I want to learn how to program in it the way that Language X programmers do, not the way Language Y programmers do. I want to learn the features, idioms, etc. that are unique to the language that I am learning. I want to be able to take advantage of the things that make the language speci...
[ 0.3114449381828308, 0.3688301742076874, -0.2613702416419983, 0.25344014167785645, -0.019936878234148026, 0.029842665418982506, 0.3969453275203705, 0.5978021025657654, -0.16842974722385406, -0.6147539019584656, -0.1707034558057785, 0.5316794514656067, -0.04762584716081619, 0.019563257694244...
you can learn your first language without a tutorial geared towards something you already know you should be able to pick up a second language the same way (and in my experience, the more languages you know the easier it is to learn new ones). With that said, I would recommend [The Python Tutorial](http://docs.python....
[ 0.3863871991634369, -0.09834112226963043, -0.31173351407051086, 0.004055234603583813, 0.14570486545562744, -0.2870034873485565, 0.4492717981338501, 0.2258368283510208, -0.18103335797786713, -0.5418246984481812, -0.27110764384269714, 0.8175073862075806, -0.06246497482061386, -0.358210533857...
of good examples and design practices, the standard python libraries are pretty clean and easy to read.
[ 0.10978329181671143, 0.26525235176086426, -0.37935754656791687, 0.10926921665668488, -0.18359723687171936, -0.2926681935787201, 0.3730733394622803, 0.3005877435207367, -0.2823895514011383, -0.43315067887306213, -0.34026962518692017, 0.3545968532562256, -0.009770872071385384, -0.25852915644...
I guess it should be a common technique, However, I tried the following two options: 1) Using my existing POP3 PHP client to access my local mail account. I am getting a "could not connect". Same code works if I run it with my localhost connecting to GoDaddy's pop3 server 2) Parsing the local mbox file - I can't figu...
[ 0.1453278660774231, 0.039008740335702896, 0.13103130459785461, 0.17708374559879303, -0.23449468612670898, -0.13802196085453033, 0.4597965478897095, 0.2572498619556427, -0.3427426218986511, -0.6789723038673401, 0.1281009465456009, 0.27147459983825684, -0.2548891007900238, 0.3447812497615814...
I can't be able to access the mbox file directly either. So I figure it is just not going to work. Thanks all repliers! Maybe there are OTHER inexpensive shared hosting plans that provide this option...
[ 0.5049092769622803, 0.410591185092926, 0.3158796727657318, 0.4146903455257416, 0.05769284814596176, -0.11791185289621353, 0.17567110061645508, 0.6961852312088013, -0.3842942714691162, -0.7169075012207031, 0.07888171821832657, 0.4388750493526459, -0.10168888419866562, 0.3729623556137085, ...
I used to use the implicit call of toString when wanting some debug info about an object, because in case of the object is null it does not throw an Exception. For instance: ``` System.out.println("obj: "+obj); ``` instead of: ``` System.out.println("obj: "+obj.toString()); ``` Is there any difference apart fro...
[ 0.19997510313987732, -0.07697743922472, 0.13553492724895477, -0.2239406257867813, -0.3037060499191284, -0.018525246530771255, 0.20599478483200073, -0.021332403644919395, -0.06898912787437439, -0.3567802906036377, 0.04199148342013359, 0.5721603035926819, -0.5225318670272827, 0.1236025765538...
s = String.valueOf(obj); ``` **Edit**: The question was extended, so I'll extend my answer. In both cases, they compile to something like the following: ``` System.out.println(new StringBuilder().append("obj: ").append(obj).toString()); ``` When your `toString()` is implicit, you'll see that in the second append....
[ -0.12049798667430878, -0.0005906563019379973, 0.8547012805938721, -0.502769410610199, -0.1041783019900322, 0.15211667120456696, 0.5255911350250244, -0.5042688250541687, -0.40909186005592346, -0.8660198450088501, -0.5410570502281189, 0.4332476258277893, -0.39768651127815247, 0.1100813150405...
str) { super.append(str); return this; } ``` So...very similar things happens in both cases. One just does a little more work.
[ 0.2623474895954132, 0.13905872404575348, 0.432270348072052, -0.36724308133125305, -0.03730985149741173, -0.11035820096731186, 0.4538516402244568, -0.4318440854549408, -0.06696908921003342, -0.5839942097663879, -0.27000945806503296, 0.527740478515625, -0.39300820231437683, 0.248827829957008...
In my application, a user has\_many tickets. Unfortunately, the tickets table does not have a user\_id: it has a user\_login (it is a legacy database). I am going to change that someday, but for now this change would have too many implications. So how can I build a "user has\_many :tickets" association through the **l...
[ 0.0873817652463913, 0.006260108668357134, 0.4558926820755005, 0.23877567052841187, 0.07797092944383621, -0.3303901255130768, 0.008770409971475601, -0.23085631430149078, -0.44127774238586426, -0.9546278119087219, 0.0885896384716034, 0.5157996416091919, -0.5123328566551208, 0.249932229518890...
referenced by from /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2355:in `interpolate_sql' from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:214:in `qualified_name_for' from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:4...
[ -0.07378970831632614, 0.26259297132492065, 0.72218918800354, 0.061518315225839615, -0.08989118784666061, 0.2217569649219513, 0.15694087743759155, -0.7792809009552002, -0.18612799048423767, -0.45474451780319214, -0.07767636328935623, 0.26956644654273987, -0.42073023319244385, 0.092268168926...
sql injection). In a test database, I added a user\_id column in the tickets table, and tried this finder\_sql: ``` :finder_sql => 'select t.* from tickets t where t.user_login=#{id}' ``` Now this works fine. So apparently, my problem has to do with the fact that the users column I am trying to use is a string, not...
[ 0.09426441788673401, -0.048527512699365616, 0.1804373562335968, 0.18735761940479279, -0.30187615752220154, -0.0797019675374031, -0.11556180566549301, -0.37502628564834595, 0.0063107553869485855, -0.6467882990837097, 0.5465916991233826, 0.6418158411979675, -0.5597562193870544, 0.00757135543...
'#{login}', '#{subscription_date}'] ``` Edit: I cannot use the :foreign\_key parameter of the has\_many association because my users table *does* have an id primary key column, used elsewhere in the application. Edit#2: apparently I did not read the documentation thoroughly enough: the has\_many association can take...
[ 0.4313017725944519, 0.261414110660553, 0.45763105154037476, 0.24845248460769653, -0.0016541751101613045, -0.4790019989013672, -0.07716307044029236, -0.03846375271677971, -0.29064056277275085, -0.9857377409934998, -0.022991731762886047, 0.6827943325042725, -0.10294444859027863, 0.4487424194...
specify the column on the current Table who's value is stored in the `:foreign_key` column on the other table. ``` has_many :tickets, :foreign_key => "user_login", :primary_key => "login" ``` I found this by reading the [has\_many](http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M00159...
[ 0.425772488117218, -0.006516110617667437, 0.3070778548717499, 0.044470030814409256, 0.1253812164068222, -0.20497718453407288, 0.09580951929092407, -0.2879863977432251, -0.15180182456970215, -0.6092950701713562, 0.02740528993308544, 0.46836310625076294, -0.27853766083717346, 0.1294812858104...
I have a dev branch that hasn't been touched for a while. I merged the trunk into it to integrate many fixes/changes in the main line since it was branched out, but now I have many small conflicts (merge-left/merge-right). I want the latest trunk revision to be used to resolve each conflict. Is there a command I can r...
[ 0.1349017471075058, -0.14809328317642212, 0.46359074115753174, 0.2608998715877533, -0.11809947341680527, 0.04600399732589722, 0.5574583411216736, 0.019824570044875145, -0.27544620633125305, -0.7260364294052124, 0.10659097135066986, 0.6320681571960449, -0.30713579058647156, 0.12410909682512...
option in SVN 1.0. Still looking for a solution. I think you can use the "--accept theirs-full" option when you issue the svn merge command. That should do what you want...
[ 0.13261564075946808, -0.3214876651763916, 0.38976621627807617, 0.019717581570148468, 0.13035370409488678, -0.07354637235403061, 0.1201605424284935, 0.2499900907278061, -0.34447431564331055, -0.5551510453224182, -0.2566196620464325, 0.6218220591545105, -0.20736387372016907, -0.1922177821397...
**Update:** This turned into a blog post, with updated links and code, over at my blog: <https://egilhansen.com/2008/12/01/how-to-take-control-of-style-sheets-in-asp-net-themes-with-the-styleplaceholder-and-style-control/> --- The problem is pretty simple. When using ASP.NET Themes you do not have much say in how you...
[ 0.22263626754283905, 0.04114614054560661, 0.6103690266609192, 0.08248373866081238, -0.35661813616752625, -0.10808294266462326, 0.034903157502412796, 0.04710238799452782, -0.41335487365722656, -0.7065582275390625, -0.17339414358139038, 0.2626159191131592, -0.2553544044494629, -0.03782862052...
post](http://rustyswayne.com/post.aspx?id=cba116ea-b672-4c90-9f4e-18b70ca2f50a) on the technique for more information). This is especially important if you use a reset style sheet, which I highly recommend; it makes it much easier to style a site in a consistent form across browsers (take a look at [Reset Reloaded fro...
[ 0.48884186148643494, 0.08914512395858765, -0.010629987344145775, 0.06339725106954575, -0.26451966166496277, -0.32199451327323914, 0.4979647099971771, 0.007523776032030582, -0.2227829247713089, -0.4925808906555176, -0.2814313471317291, 0.05298609659075737, -0.39082175493240356, 0.3014829754...
how the StylePlaceholder and Style control resolve the above issues, credit where credit is due, my solution is inspired by [Per Zimmerman’s blog post](http://www.dentaku.com/2007/01/take-control-over-stylesheet-order-and-media-when-using-asp-net-2-0-themes.aspx) on the subject. The StylePlaceHolder control is placed ...
[ 0.34115803241729736, 0.006892673205584288, 0.9046428203582764, 0.1702999770641327, -0.21456658840179443, -0.07740712910890579, -0.2952979505062103, -0.478153795003891, -0.03307194635272026, -0.5087785720825195, -0.12327619642019272, 0.3533756136894226, -0.12242637574672699, 0.0755554959177...
property. With other properties you control how the style sheet it renders to the page. Let me show an example. Consider a simple web site project with a master page and a theme with three style sheets – 01reset.css, 02style.css, 99iefix.cs. Note: I have named them using prefixing technique described earlier, as it ma...
[ 0.41093161702156067, -0.16416145861148834, 0.6925208568572998, 0.22747740149497986, -0.1890343874692917, -0.07283991575241089, -0.03079911507666111, -0.4292195439338684, -0.25178027153015137, -0.7440661191940308, -0.13609522581100464, 0.5826060175895691, 0.13420911133289337, 0.005719773471...
<ass:Style CssUrl="~/App_Themes/Default/02style.css" /> <ass:Style CssUrl="~/App_Themes/Default/99iefix.css" ConditionCommentExpression="[if IE]" /> </ass:StylePlaceHolder1> ``` That is basically it. There are a more properties on the Style control that can be used to control the rendering, but this is the basic ...
[ 0.27181199193000793, 0.01189825776964426, 0.6359711289405823, -0.07896469533443451, -0.1824672967195511, 0.16678181290626526, 0.24646082520484924, -0.0950392484664917, -0.3224043548107147, -0.9222196340560913, -0.041234634816646576, 0.7170992493629456, -0.044485196471214294, -0.14281761646...
controls (in fact, these two are my first attempts), so I would very much like input on the following. In a current WCAB/WCSF based project I am developing, I am seeing errors like this in Visual Studios design view, and I have no idea why. The site compiles and everything works online. [Example of design time error i...
[ 0.03511190414428711, -0.1313377022743225, 0.6410170793533325, 0.09953083097934723, -0.01703508011996746, 0.022690311074256897, -0.06494718790054321, -0.6645404696464539, -0.059119097888469696, -0.5836331248283386, -0.09426447004079819, 0.7386728525161743, -0.3006749153137207, -0.2245242893...
[ToolboxData("<{0}:StylePlaceHolder runat=\"server\" SkinID=\"ThemeStyles\"></{0}:StylePlaceHolder>")] [ParseChildren(true, "Styles")] [Themeable(true)] [PersistChildren(false)] public class StylePlaceHolder : Control { private List<Style> _styles; [Browsable(true)] [Categor...
[ 0.1744566261768341, -0.3718130588531494, 0.44095268845558167, 0.13985954225063324, 0.28880050778388977, 0.04827335476875305, 0.35498517751693726, -0.28012311458587646, -0.13616980612277985, -0.49825388193130493, -0.49128031730651855, 0.8067182898521423, 0.013292231597006321, 0.146041184663...
{ get { if (_styles == null) _styles = new List<Style>(); return _styles; }
[ -0.08720780909061432, -0.6198512315750122, 0.54792720079422, -0.10196290910243988, 0.24319152534008026, 0.09947337210178375, 0.36719459295272827, 0.018170634284615517, -0.14740140736103058, -0.66017085313797, -0.6109023690223694, 0.7811023592948914, -0.2172083705663681, 0.1285756677389145,...
} protected override void CreateChildControls() { if (_styles == null) return; // add child controls Styles.ForEach(Controls.Add); } protected override
[ 0.2230507731437683, -0.16228428483009338, 0.21157611906528473, -0.03252590075135231, 0.5759400725364685, -0.10021224617958069, 0.3704964816570282, -0.6021357178688049, 0.06626997143030167, -0.43589192628860474, -0.180770143866539, 0.616812527179718, -0.24617578089237213, 0.1727414727210998...
void OnLoad(EventArgs e) { base.OnLoad(e); // get notified when page has finished its load stage Page.LoadComplete += Page_LoadComplete; } void Page_LoadComplete(object sender, EventArgs e) { // only remove
[ 0.061842501163482666, -0.20270594954490662, 0.6856120228767395, -0.2831321954727173, 0.011682778596878052, -0.22201880812644958, 0.417113333940506, -0.14491982758045197, -0.14486752450466156, -0.5720476508140564, -0.5192933082580566, 0.4369083046913147, -0.5522885918617249, 0.2679166495800...
if the page is actually using themes if (!string.IsNullOrEmpty(Page.StyleSheetTheme) || !string.IsNullOrEmpty(Page.Theme)) { // Make sure only to remove style sheets from the added by // the runtime form the current theme. var themePath
[ -0.05945369228720665, -0.2070617824792862, 1.0959079265594482, -0.0057463557459414005, 0.3790284991264343, -0.22485080361366272, 0.0287986621260643, -0.10397785902023315, -0.3740207254886627, -0.6505652666091919, -0.19348236918449402, 0.37142127752304077, -0.19495484232902527, 0.3002076745...
= string.Format("~/App_Themes/{0}", !string.IsNullOrEmpty(Page.StyleSheetTheme) ? Page.StyleSheetTheme
[ -0.07028957456350327, 0.13048392534255981, 0.993511438369751, -0.09955191612243652, 0.3346143364906311, 0.20280160009860992, 0.18340343236923218, -0.2983666658401489, -0.39147064089775085, -0.5913383960723877, -0.31836459040641785, 0.17273226380348206, -0.31007564067840576, 0.0904712751507...
: Page.Theme); // find all existing stylesheets in header var removeCandidate = Page.Header.Controls.OfType<HtmlLink>()
[ 0.036824844777584076, -0.12564586102962494, 0.8998380899429321, -0.02821510098874569, -0.06066707521677017, -0.17936089634895325, 0.18568210303783417, -0.405846506357193, -0.25442180037498474, -0.4104228615760803, -0.2728991210460663, -0.08312657475471497, -0.47843989729881287, 0.279992520...
.Where(link => link.Href.StartsWith(themePath)).ToList(); // remove the automatically added style sheets removeCandidate.ForEach(Page.Header.Controls.Remove); } } protected override void AddParsedSubObject(object obj) {
[ 0.017906952649354935, -0.06729985773563385, 0.7590566873550415, -0.15782031416893005, 0.22299261391162872, -0.4179675579071045, 0.3623766303062439, -0.18910177052021027, -0.10378963500261307, -0.4816080331802368, -0.5228386521339417, 0.392213374376297, -0.49250152707099915, 0.3364371657371...
// only add Style controls if (obj is Style) base.AddParsedSubObject(obj); } } } ``` And the code for the Style control: ``` using System.ComponentModel; using System.Security.Permissions; using System.Web; using System.Web.UI; [assembly: TagPrefix("Assimilated.Extensions.We...
[ 0.14280664920806885, -0.09857223927974701, 0.746347188949585, 0.10334204882383347, 0.1810358464717865, -0.006075131706893444, 0.13117371499538422, -0.45299088954925537, -0.15516704320907593, -0.5241512060165405, -0.5488353967666626, 0.6487372517585754, -0.2040022313594818, -0.0068960217759...
public class Style : Control { public Style() { // set default value... for some reason the DefaultValue attribute do // not set this as I would have expected. TargetMedia = "All"; } #region
[ 0.01477605476975441, -0.7472857236862183, 0.4277585446834564, 0.1820794939994812, 0.2979898154735565, -0.3449302017688751, -0.004460081923753023, 0.09740833193063736, -0.012273132801055908, -0.8101404309272766, -0.30803805589675903, 0.47700536251068115, -0.2368839830160141, 0.3851180374622...
Properties [Browsable(true)] [Category("Style sheet")] [DefaultValue("")] [Description("The url to the style sheet.")] [UrlProperty("*.css")] public string CssUrl { get; set; } [Browsable(true)]
[ -0.157579243183136, 0.12467210739850998, 0.3846822679042816, 0.16650758683681488, -0.12201252579689026, -0.3110184967517853, 0.42843759059906006, 0.0037832355592399836, -0.4081471562385559, -0.6210802793502808, -0.6861215829849243, 0.577940046787262, -0.05603542551398277, 0.379939258098602...
[Category("Style sheet")] [DefaultValue("All")] [Description("The target media(s) of the style sheet. See http://www.w3.org/TR/REC-CSS2/media.html for more information.")] public string TargetMedia { get; set; } [Browsable(true)] [Category("Style shee...
[ 0.33822396397590637, -0.28451621532440186, 0.6926555037498474, 0.09737873822450638, -0.18068146705627441, -0.43733036518096924, -0.0025016397703438997, 0.03569766879081726, -0.16688193380832672, -0.7464248538017273, -0.7648864984512329, 0.7287925481796265, -0.4046058654785156, 0.1710156798...
[Description("Specify how to embed the style sheet on the page.")] public EmbedType Type { get; set; } [Browsable(false)] [PersistenceMode(PersistenceMode.InnerDefaultProperty)] public string InlineStyle { get; set;
[ 0.14283591508865356, 0.009765403345227242, 0.4995073080062866, -0.1315823346376419, 0.020075196400284767, 0.040708284825086594, 0.4470009505748749, 0.08969874680042267, 0.006110393907874823, -0.6000562310218811, -0.34976717829704285, 0.7796610593795776, -0.6055616736412048, 0.1496387720108...
} [Browsable(true)] [Category("Conditional comment")] [DefaultValue("")] [Description("Specifies a conditional comment expression to wrap the style sheet in. See http://msdn.microsoft.com/en-us/library/ms537512.aspx")] public string ConditionalCommentExpression { ...
[ -0.07154455035924911, -0.18123850226402283, 0.23003718256950378, -0.0443294495344162, 0.06300201267004013, -0.18609589338302612, 0.5408537983894348, 0.18390130996704102, -0.2546466886997223, -0.5389360189437866, -0.7429040670394897, 0.8697779178619385, -0.43186914920806885, 0.0821176916360...
[Category("Conditional comment")] [DefaultValue(CommentType.DownlevelHidden)] [Description("Whether to reveal the conditional comment expression to downlevel browsers. Default is to hide. See http://msdn.microsoft.com/en-us/library/ms537512.aspx")] public CommentType ConditionalCommentType ...
[ 0.07429593801498413, -0.28516873717308044, -0.03325146064162254, -0.06116098910570145, -0.2403101623058319, -0.14577719569206238, 0.3951670229434967, -0.016110757365822792, -0.3092854619026184, -0.31513282656669617, -0.7762327790260315, 0.6924248933792114, -0.5150468349456787, 0.1268223971...
override string SkinID { get; set; } #endregion protected override void Render(HtmlTextWriter writer) { // add empty line to make output pretty writer.WriteLine(); // prints out begin condition comment tag
[ -0.02459588460624218, -0.4800238609313965, 0.5861056447029114, -0.4402361214160919, 0.13415686786174774, 0.09007760882377625, 0.538826048374176, -0.31290218234062195, 0.342070609331131, -0.7256535291671753, 0.07706894725561142, 0.6270836591720581, -0.3976231813430786, -0.3663385212421417, ...
if (!string.IsNullOrEmpty(ConditionalCommentExpression)) writer.WriteLine(ConditionalCommentType == CommentType.DownlevelRevealed ? "<!{0}>" : "<!--{0}>", ConditionalCommentExpression); if (!string.IsNullOrEmpty(CssUrl)) {
[ -0.5450501441955566, -0.22003863751888275, 0.7868340611457825, -0.5396746397018433, 0.45800507068634033, 0.08062194287776947, 0.38916873931884766, -0.21654528379440308, -0.06550198048353195, -0.5058631300926208, -0.5030152797698975, 0.48354339599609375, -0.309760183095932, -0.0194715093821...
// add shared attribute writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/css"); // render either import or link tag if (Type == EmbedType.Link) {
[ 0.023545587435364723, -0.1587519347667694, 0.32554399967193604, -0.07048757374286652, -0.2578412592411041, 0.06823000311851501, 0.06547243893146515, -0.272116482257843, 0.1542438119649887, -0.7259809970855713, -0.03319147601723671, 0.5364167094230652, -0.5144233107566833, -0.05368256196379...
// <link href=\"{0}\" type=\"text/css\" rel=\"stylesheet\" media=\"{1}\" /> writer.AddAttribute(HtmlTextWriterAttribute.Href, ResolveUrl(CssUrl)); writer.AddAttribute(HtmlTextWriterAttribute.Rel, "stylesheet"); writer.AddAttribute("media", TargetMedia);
[ -0.06571920961141586, -0.13788217306137085, 0.9458199143409729, -0.21684609353542328, -0.1632058471441269, 0.018106821924448013, 0.3190416097640991, -0.2722444236278534, 0.03814544156193733, -0.9792731404304504, -0.5467349886894226, 0.3934120833873749, -0.42374086380004883, 0.0209442805498...
writer.RenderBeginTag(HtmlTextWriterTag.Link); writer.RenderEndTag(); } else { // <style type="text/css">@import "modern.css" screen;</style>
[ -0.16132602095603943, -0.07303906977176666, 0.4781024754047394, -0.4696849286556244, -0.08454930782318115, 0.20245622098445892, 0.5240422487258911, -0.027779875323176384, 0.11568726599216461, -1.0980587005615234, -0.21124066412448883, 0.46711117029190063, -0.343577116727829, 0.125447794795...
writer.RenderBeginTag(HtmlTextWriterTag.Style); writer.Write("@import \"{0}\" {1};", ResolveUrl(CssUrl), TargetMedia); writer.RenderEndTag(); } }
[ -0.331470787525177, -0.14909370243549347, 0.5983392596244812, -0.4661414921283722, -0.03758828714489937, 0.27594611048698425, 0.462755024433136, 0.14617134630680084, 0.0813126191496849, -1.186585783958435, -0.2742310166358948, 0.3102896511554718, -0.4847099184989929, 0.11224362999200821, ...
if(!string.IsNullOrEmpty(InlineStyle)) { // <style type="text/css">... inline style ... </style> writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/css"); writer.RenderBeginTag(HtmlTextWriterTag.Style); writer.Write(InlineStyle);
[ -0.21673917770385742, -0.1759764552116394, 0.7309298515319824, -0.4759736657142639, 0.07802557945251465, 0.23361368477344513, 0.4284650683403015, -0.10500293970108032, 0.31294500827789307, -0.9326762557029724, -0.20185475051403046, 0.41909259557724, -0.5638109445571899, -0.0997558534145355...
writer.RenderEndTag(); } // prints out end condition comment tag if (!string.IsNullOrEmpty(ConditionalCommentExpression)) { // add empty line to make output pretty writer.WriteLine();
[ -0.41510000824928284, -0.31105658411979675, 0.5108850598335266, -0.49480077624320984, 0.22504664957523346, 0.2135239690542221, 0.5089667439460754, -0.07179028540849686, 0.2614670693874359, -0.5954402685165405, -0.1420382857322693, 0.45383420586586, -0.45468971133232117, 0.00455073919147253...
writer.WriteLine(ConditionalCommentType == CommentType.DownlevelRevealed ? "<![endif]>" : "<![endif]-->"); } } } public enum EmbedType { Link = 0, Import = 1, } public enum CommentType {
[ -0.17083658277988434, 0.005212744697928429, 0.3086852729320526, -0.23733967542648315, -0.014615804888308048, 0.1883816123008728, 0.2662683427333832, -0.13533350825309753, 0.3048582673072815, -0.6748573184013367, -0.2460869550704956, 0.4107944965362549, -0.578683078289032, 0.101654738187789...
DownlevelHidden = 0, DownlevelRevealed = 1 } } ``` So what do you guys think? Is this a good solution to the asp.net theme problem? And what about the code? I would really like some input on it, especially in regards to the design time experience. I uploaded a [zipped version of the Visual Studio solutio...
[ 0.3328339159488678, -0.03794208914041519, 0.48469799757003784, 0.16502508521080017, -0.03619929030537605, -0.35183122754096985, 0.0465206652879715, 0.07613397389650345, -0.3445088267326355, -0.5254409909248352, -0.16512130200862885, 0.402840256690979, -0.12908834218978882, -0.2001275867223...
has yet to fix](http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=361826). So the above code works as expected, also in design mode, as long as you just include the custom controls in a pre compiled assembly, and not through another project in the same solution. See the link above for a ...
[ 0.39701443910598755, -0.20076362788677216, 0.6172578930854797, 0.4029298722743988, 0.16715474426746368, 0.13477295637130737, 0.11484023183584213, -0.16636449098587036, -0.4180854260921478, -0.4312517046928406, 0.06933031976222992, 0.5339396595954895, -0.14436712861061096, -0.08881846815347...
After moving to .NET 2.0+ is there ever a reason to still use the systems.Collections namespace (besides maintaining legacy code)? Should the generics namespace always be used instead? For the most part, the generic collections will perform faster than the non-generic counterpart and give you the benefit of having a st...
[ -0.005194882862269878, -0.2475421279668808, 0.3865072727203369, 0.06213279813528061, -0.28846803307533264, -0.3387977182865143, 0.21112552285194397, -0.09345008432865143, -0.49846842885017395, -0.6704308986663818, -0.0659988522529602, 0.32775452733039856, -0.39815106987953186, 0.3719291090...
List<T> BitArray N/A CaseInsensitiveComparer N/A CollectionBase Collection<T> Comparer Comparer<T> DictionaryBase Dictionary<TKey,TValue> Hashtable
[ -0.11070992052555084, -0.24901828169822693, 0.17566044628620148, 0.21654370427131653, -0.30564382672309875, 0.1273772418498993, -0.14171648025512695, -0.3236015737056732, -0.20043088495731354, -0.5000392198562622, -0.2867966890335083, 0.25782132148742676, -0.5122165083885193, 0.20993848145...
Dictionary<TKey,TValue> Queue Queue<T> ReadOnlyCollectionBase ReadOnlyCollection<T> SortedList SortedList<TKey,TValue> Stack Stack<T> DictionaryEntry
[ -0.3481503427028656, -0.23862424492835999, 0.2696796655654907, -0.10664307326078415, -0.13493044674396515, 0.1256444752216339, -0.28157976269721985, 0.1872026026248932, -0.08820841461420059, -0.6196926832199097, -0.05565992370247841, 0.3516172468662262, -0.265253484249115, 0.05941192060708...
KeyValuePair<TKey,TValue> ICollection N/A (use IEnumerable<T> or anything that extends it) IComparer IComparer<T> IDictionary IDictionary<TKey,TValue> IEnumerable IEnumerable<T> IEnumerator
[ -0.10931116342544556, -0.5201370120048523, 0.40519407391548157, 0.1825583577156067, 0.3228550851345062, -0.06937480717897415, -0.15708088874816895, -0.425060898065567, -0.22650150954723358, -0.6263360381126404, -0.3628152310848236, 0.42958393692970276, -0.20445550978183746, 0.1660852730274...
IEnumerator<T> IEqualityComparer IEqualityComparer<T> IList IList<T> ``` ICollection is immutable (no members to change the contents of the collection) while ICollection<T> is mutable. This makes the interfaces similar in name only while ICollection and IEnumerable<T> differ by ver...
[ 0.009513726457953453, -0.32995855808258057, 0.2350006401538849, 0.3086875081062317, -0.2133816033601761, -0.3014724850654602, -0.012849976308643818, -0.24023668467998505, 0.034226175397634506, -0.7344799041748047, -0.011338887736201286, 0.6428207159042358, -0.43566790223121643, 0.247952803...
How should I check if my ISP blocks port 25? ``` cmd> telnet <some well known email provider IP> 25 ``` to determine which exactly host (subdomain) is listening port 25: ``` nslookup -q=MX <top-level domain> ``` For example: ``` cmd> nslookup -q=MX gmail.com gmail.com MX preference = 50, mail exchanger = g...
[ -0.09790687263011932, 0.570871889591217, 0.9257712364196777, -0.03781332075595856, -0.334267258644104, 0.3616349399089813, 0.6265900731086731, -0.04021158814430237, -0.19606132805347443, -0.8435788750648499, -0.1949007213115692, 0.6711311340332031, -0.22200559079647064, -0.0121534522622823...
mail exchanger = alt2.gmail-smtp-in.l.google.com gsmtp147.google.com internet address = 209.85.147.27 gsmtp183.google.com internet address = 64.233.183.27 gmail-smtp-in.l.google.com internet address = 64.233.183.114 cmd> telnet gsmtp147.google.com 25 220 mx.google.com ESMTP l27si12759488waf.25 ``` On ...
[ 0.12801587581634521, 0.42058971524238586, 0.3351840674877167, 0.16256622970104218, -0.3327162265777588, 0.20989342033863068, 0.524308979511261, 0.4392465651035309, -0.2525997459888458, -0.5802555680274963, -0.13862194120883942, 0.4452767074108124, -0.29631179571151733, 0.34188345074653625,...
I am making a C# app for a class project. I want to ensure a string has one of three values. Normally, in a web app, I would do validation with javascript on the client side. However, this is currently a console app. I know that I should do the validation early, but what are some good rules of thumb for validation? Eac...
[ 0.6443442702293396, 0.38388317823410034, 0.3946482241153717, -0.08128008246421814, -0.06169871240854263, -0.12765707075595856, 0.25042882561683655, -0.12550251185894012, 0.02396359294652939, -0.34817540645599365, 0.11267740279436111, 0.6677094101905823, -0.267756849527359, 0.03147783502936...
occurs on the client side, because that can lead to security holes. Code that runs on the client has been known to change from time to time.
[ 0.21561968326568604, 0.12071339040994644, 0.030870109796524048, 0.04224617779254913, 0.41920408606529236, -0.06510910391807556, 0.5095627903938293, 0.33861589431762695, -0.16014480590820312, -0.6852807998657227, -0.1889280527830124, 0.2878378927707672, -0.3996274173259735, 0.23873405158519...
All, I'd like to check Django out and maybe hack together some web pages to see how it feels - but after having a look at a few tutorials like [this one](http://www.showmedo.com/videos/video?name=stoops010) I am starting to wonder if there is any way of getting it up and runinng without typying cmd line stuff for 1/2 ...
[ 0.6715298295021057, 0.09190510958433151, 0.2612926661968231, 0.002006916794925928, -0.09390570968389511, -0.5088443160057068, 0.39868319034576416, 0.0775238424539566, -0.3314466178417206, -0.4490183889865875, 0.2904757559299469, 0.6849673390388489, 0.11435683816671371, -0.0740448459982872,...
at: <http://docs.djangoproject.com/en/dev/> It will teach you the gist of Django it in a very short time. This is definitely one of the best official documentation of a framework I've seen so far. In order to test it out under Windows, just installing the latest release should be enough as described [here](http://do...
[ 0.5436098575592041, 0.32697293162345886, 0.1647956818342209, -0.052142903208732605, -0.18797388672828674, -0.7078249454498291, 0.2369178980588913, 0.20103833079338074, -0.06771659851074219, -0.50789874792099, 0.2261119782924652, 0.598064124584198, 0.12827080488204956, -0.2795524597167969, ...
this tutorial as well.
[ 0.058073561638593674, 0.01927417702972889, 0.1764708161354065, 0.29222816228866577, -0.028329679742455482, -0.08834701776504517, -0.028698181733489037, 0.14674027264118195, -0.03779800608754158, -0.2526143789291382, 0.0377625934779644, 0.3246079087257385, 0.2792516350746155, -0.02135971747...
Does anyone know how to auto-mount an [Elastic Block Storage](http://aws.amazon.com/ebs/) (EBS) volume when starting a Windows 2003 instance in Amazon's [Elastic Compute Cloud](http://aws.amazon.com/ec2/) (EC2)? Setup: * Make sure the EBS volume is formatted and labeled (in the example I used the label PDRIVE). * Setu...
[ 0.03307998552918434, -0.10122943669557571, 0.39562883973121643, -0.01290756557136774, -0.018984686583280563, -0.27424356341362, 0.31274572014808655, -0.39523670077323914, -0.2693522274494171, -0.5469847321510315, -0.14473740756511688, 0.6864758729934692, -0.21785882115364075, -0.2349130660...
SYSTEM /t information /id 100 /so AttachEbsBoot /d "Starting attach-ebs-boot.cmd" REM local variables REM Make sure you include the directory with curl.exe and the EC2 command line tools in the path set path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Utils;C:\ebin\ec2\bin set JAVA_HOME=c:\java set EC2_...
[ 0.15348882973194122, -0.002086179330945015, 1.11539626121521, -0.1393769383430481, 0.31849801540374756, -0.13432462513446808, 0.1949605941772461, -0.4285823404788971, -0.23552076518535614, -0.6121869087219238, -0.49038854241371155, 0.7655660510063171, -0.05741669982671738, 0.16055563092231...
%%a in ('curl http://169.254.169.254/latest/user-data') do (set EBS_VOLUME=%%a) for /f "delims=" %%b in ('curl http://169.254.169.254/latest/meta-data/instance-id') do (set INSTANCE_ID=%%b) C:\WINDOWS\system32\eventcreate /l SYSTEM /t information /id 102 /so AttachEbsBoot /d "Volume == %EBS_VOLUME%" C:\WINDOWS\system3...
[ -0.282455176115036, 0.17587240040302277, 0.9777299761772156, -0.41695261001586914, 0.10869140177965164, 0.21197600662708282, 0.15285642445087433, -0.543981671333313, -0.22856341302394867, -0.4298373758792877, -0.6631308197975159, 0.4550926685333252, -0.031844254583120346, 0.263466626405715...
Event 100 - Script start REM Event 101 - Script end REM Event 102 - Volume ID REM Event 103 - Instance ID REM Event 104 - Command line for ec2attvol ```
[ -0.5298371911048889, 0.031903546303510666, 0.5511190891265869, -0.12249352037906647, 0.05690416693687439, -0.22496990859508514, 0.41068634390830994, -0.46386826038360596, -0.058126501739025116, -0.2580340504646301, -0.6415414214134216, 0.5062162280082703, 0.028735237196087837, -0.076758258...
Give me some of your thoughts on which is a better coding practice/makes more efficient code/looks prettier/whatever: Increasing and improving your ability to use if statements to anticipate and catch potential problems? Or simply making good use of try/catch in general? Let's say this is for Java (if it matters). **...
[ 0.11540962755680084, 0.010294103063642979, -0.31715282797813416, 0.0033482180442661047, -0.6148267984390259, -0.07080687582492828, 0.46533748507499695, 0.0004904797533527017, -0.18766678869724274, -0.46591976284980774, 0.2762472331523895, 0.2821844816207886, 0.009471062570810318, -0.330505...
I am trying to execute a stored procedured from a linked database in MS SQL 2005. The linked database is a db2 database on a iseries server. I am using the iSeries IBMDASQL service provider. I am able to query the stored procedure without problems using a simple vbscript and ado. When I try to execute the same stored p...
[ 0.037449076771736145, 0.2535445988178253, 0.08409656584262848, -0.16180244088172913, -0.14207614958286285, 0.023181861266493797, 0.6524748206138611, -0.08164114505052567, 0.0008700466714799404, -0.4396640658378601, 0.22392867505550385, 0.5580539107322693, -0.28565239906311035, 0.1038404777...
below-- ``` DECLARE @emailToAddress char(50) DECLARE @emailFromAddress char(50) set @emailToAddress = 'customer.service@company.com' set @emailFromAddress = 'customer@gmail.com' If Object_ID('tempdb..#tmpResultTbl') Is Not Null Drop Table #tmpResultTbl Create Table #tmpResultTbl ( OUTPGMID Char(15...
[ -0.23873084783554077, 0.3988324701786041, 0.8665387034416199, -0.2355082631111145, 0.17405666410923004, 0.28329217433929443, 0.18479737639427185, -0.43938201665878296, -0.13508670032024384, -0.5067954063415527, -0.27786141633987427, 0.7575507760047913, -0.13734017312526703, 0.0060711847618...
@TSQL EXEC (@TSQL) --output below-- SELECT \* FROM OPENQUERY(MAM400,'CALL abicqual.VP\_GETCCEPGMID(''customer.service@company.com'', ''customer@gmail.com'')') Msg 7357, Level 16, State 2, Line 1 Cannot process the object "CALL abicqual.VP\_GETCCEPGMID('customer.service@company.com', 'customer@gmail.com')". The OLE DB ...
[ -0.08880025148391724, 0.4104601740837097, 0.7308362722396851, -0.20275434851646423, -0.14262421429157257, 0.013643109239637852, 0.280853271484375, 0.02396966703236103, -0.08288737386465073, -0.30859288573265076, -0.03882969915866852, 0.5015621185302734, -0.4591551125049591, 0.3947198688983...
worked properly. Cheers!
[ 0.5602108240127563, 0.17482036352157593, 0.2581612467765808, 0.13239455223083496, 0.037815410643815994, -0.11042933166027069, 0.6329719424247742, -0.21190282702445984, -0.05164213478565216, -0.11620984971523285, 0.07255885750055313, 0.45774000883102417, 0.444467693567276, -0.25037139654159...
Why do you think Microsoft wants us to go through IEnumerable to get to IEnumerator? Isn't the presence or absence of a valid cast to IEnumerator for a given type enough to determine if the type is enumerable or not? For example whats wrong with the following? ``` class MyClass : IEnumerator { ... } MyClass myOb...
[ -0.06706461310386658, -0.08436929434537888, 0.32780730724334717, -0.04335496947169304, 0.06316499412059784, -0.10536578297615051, 0.29793599247932434, -0.1691870242357254, 0.04137250781059265, -0.6882232427597046, -0.22422587871551514, 0.29882267117500305, -0.4244065582752228, 0.0685948953...
you only had IEnumerator, you'd have to remember to reset yourself before using it, even in a single-threaded scenario.
[ 0.2723597586154938, -0.10213880985975266, 0.044085338711738586, 0.3520964980125427, 0.0846380889415741, -0.18356052041053772, 0.40472641587257385, -0.06283584982156754, -0.17801526188850403, -0.5961495041847229, 0.16797977685928345, 0.41947853565216064, -0.052909087389707565, -0.6127789616...
What are the tensions between multithreading and exception-safety in C++? Are there good guidelines to follow? Does a thread terminate because of an uncaught exception? I believe the C++ standard does not make any mention of multithreading - multithreading is a platform-specific feature. I'm not exactly sure what the ...
[ 0.23588863015174866, 0.32190775871276855, 0.06437527388334274, -0.016948141157627106, 0.1353314369916916, -0.37970802187919617, 0.6413909792900085, 0.006037787068635225, -0.6012362837791443, -0.015055777505040169, -0.06322964280843735, 0.36055102944374084, -0.4301823377609253, 0.3577105104...
used follows: ``` #include <stdio.h> #include <pthread.h> void *threadproc(void *x) { throw 0; return NULL; } int main(int argc, char **argv) { pthread_t t; pthread_create(&t, NULL, threadproc, NULL); void *ret; pthread_join(t, &ret); printf("ret = 0x%08x\n", ret); return 0; } ``` Compiled with...
[ 0.10821975767612457, 0.03495536744594574, 0.2391929179430008, -0.3896145224571228, 0.2747466564178467, 0.07546912133693695, 0.4799688160419464, -0.3952181935310364, -0.21475324034690857, -0.2702455520629883, -0.48203805088996887, 0.5176569819450378, -0.5294173359870911, 0.3045644462108612,...
I have a stored procedure that returns values from a temp table. In my DBML, it displays (None) for the return type. What is the trick to get it to recognize the columns from my temp table? ``` CREATE PROCEDURE [dbo].[GetCategoryPriceRanges] @CategoryId int AS BEGIN DECLARE @MinPrice money, @MaxPrice money SELE...
[ 0.04669314622879028, 0.032768312841653824, 0.5185844302177429, -0.1766165941953659, -0.0755353644490242, 0.33123645186424255, 0.0011222088942304254, -0.43902119994163513, -0.018788432702422142, -0.2974584996700287, 0.18187031149864197, 0.44837895035743713, -0.3166995644569397, 0.2870444953...
1 SET @thisHigh = 2 * @thisLow - 1 SELECT @loopCatch = @loopCatch + 1 END SELECT * FROM #prices DROP TABLE #prices END ``` If you have a table which returns the same set of columns you can assign the stored procedure to return that type in the data model diagram. (Either by dragging the stored prco...
[ 0.4258641004562378, -0.19721080362796783, 0.7225479483604431, -0.11041349917650223, -0.0763644278049469, 0.009070991538465023, -0.44960060715675354, -0.25973284244537354, -0.19911260902881622, -0.4654957354068756, 0.03364061936736107, 0.46285000443458557, -0.5123369693756104, 0.00152677355...
the return type property of the stored procedure.)
[ -0.2226741462945938, -0.07581108808517456, 0.04642672464251518, -0.08842956274747849, 0.2550145387649536, 0.022282395511865616, 0.11277350038290024, -0.07031156867742538, 0.09135189652442932, -0.1233530268073082, -0.2855488955974579, 0.5870879888534546, -0.24355368316173553, 0.102485708892...
I'm struggling to think of a good way to use linq2sql, simply I want to use it, but I can't figure out whether it's best to wrap up the linq2sql generated classes inside my model classes providing some form of generic abstract base class / or interface for the common methods on my model classes like add, update, delete...
[ 0.32850900292396545, 0.19204497337341309, 0.05117112025618553, 0.27946674823760986, -0.01672237180173397, 0.0005357703776098788, 0.09922221302986145, -0.024213571101427078, -0.011704327538609505, -0.5493482947349548, 0.24192826449871063, 0.5708262920379639, 0.08437583595514297, 0.122293546...
ways, however , I'm not sure if it should be tagged as so. Feel free to edit and make a community wiki if you think it should be.) Personally, I wrap Linq2SQL in the repository pattern.
[ 0.5857345461845398, -0.056543633341789246, 0.2271186262369156, 0.11656724661588669, -0.01943812146782875, -0.5202853679656982, 0.13726143538951874, 0.31946930289268494, -0.36882469058036804, -0.6029859781265259, 0.16053594648838043, 0.235177144408226, 0.03584330528974533, -0.08673981577157...
how do you handle them? In domain names, you can do use IDN domains, if they are supported by the registrars you want to register them with. Elsewhere in the URL, they are generally sent by the browser as utf8 urlencoded. Only recently I was looking at: <http://en.wikipedia.org/wiki/Pfeffern%C3%BCsse> And found it c...
[ 0.43688637018203735, 0.1624031811952591, 0.2817424535751343, 0.09873007237911224, -0.28384897112846375, -0.15387482941150665, 0.02536039985716343, 0.14751248061656952, -0.452968955039978, -0.41925570368766785, -0.08337081223726273, 0.13374555110931396, -0.014298852533102036, 0.301300883293...
In `SQL Server`, I can do something like this: ``` UPDATE tbl1 SET col2 = tbl2.col2 FROM table1 tbl1 INNER JOIN table2 tbl2 ON tbl1.col1 = tbl2.col1 ``` I haven't bothered to look whether this is part of any SQL standard or not, and I'm sure there are other ways to do it, but it is *astoundingly* usefu...
[ -0.02663394995033741, 0.2441541850566864, 0.491975337266922, -0.19712236523628235, -0.2188137322664261, -0.25172948837280273, 0.0033062249422073364, -0.0005993723752908409, -0.2626101076602936, -0.640221357345581, 0.10681626945734024, 0.5640058517456055, -0.6760465502738953, 0.010745787061...
I'm experimenting with the Tiny MCE editor. We also use jQuery, and I noticed that the standard Tiny MCE install includes a file called `tiny_mce_jquery.js`. Can anyone enlighten me as to what that's for? Oddly, I can't find anything about it online. Should I reference it in addition to the standard Tiny MCE script, or...
[ 0.5188925862312317, -0.1413383036851883, 0.44144076108932495, -0.0506950244307518, 0.20248623192310333, -0.08054842054843903, 0.03709109127521515, -0.13729049265384674, -0.238305002450943, -0.5372455716133118, -0.020447999238967896, 0.8524670600891113, -0.10331951081752777, -0.046027876436...
area.
[ 0.33732840418815613, 0.35521095991134644, 0.28688639402389526, -0.6330129504203796, 0.4312093257904053, -0.3140580654144287, -0.06571327894926071, -0.06683206558227539, -0.33662596344947815, -0.8682392835617065, -0.3255169689655304, 0.19204699993133545, -0.16595879197120667, 0.305768907070...
First off, I apologize if this doesn't make sense. I'm new to XHTML, CSS and JavaScript. I gather that in XHTML, the correct way to have a nested page is as follows (instead of an iframe): ``` <object name="nestedPage" data="http://abc.com/page.html" type="text/html" width="500" height="400" /> ``` If I have a nes...
[ 0.47905588150024414, 0.14225226640701294, 0.25503867864608765, -0.13214801251888275, -0.07909274846315384, -0.1664087176322937, -0.0020314836874604225, -0.12184282392263412, -0.21492689847946167, -0.8694887757301331, -0.11745841801166534, 0.3005569279193878, -0.358685702085495, 0.240805596...
the nested page, yet it is **on the same domain** (don't ask) ``` d = document.getElementsByTagName('object').namedItem('nestedPage').getContentDocument(); d.styleSheets[d.styleSheets.length].href = 'whereever'; ``` WARNING: hasn't been tested in all browsers.
[ 0.13136836886405945, 0.01653941161930561, 0.4890936315059662, 0.06140439957380295, 0.03329137712717056, -0.4065168797969818, 0.46199363470077515, -0.23367412388324738, -0.10079453885555267, -0.7309987545013428, -0.513569176197052, 0.24006173014640808, -0.28555887937545776, 0.20748791098594...
Is there a medium-sized Clojure sample application that could be used as a "best-practices" example, and a good way to see what such an application would look like in terms of code and code organization? A web application would be particularly interesting to me, but most important is that the program do something commo...
[ 0.20034459233283997, 0.2696656584739685, -0.29488515853881836, 0.2742716372013092, -0.1674399971961975, 0.08297233283519745, -0.080927275121212, 0.17199541628360748, -0.29082250595092773, -0.40758398175239563, 0.050424542278051376, 0.2341272234916687, -0.012114896439015865, -0.363100588321...
author it was written with your purpose in mind.
[ 0.6346782445907593, 0.464620441198349, 0.22883157432079315, -0.03376949578523636, 0.14827091991901398, -0.34613850712776184, 0.3464507758617401, 0.35518065094947815, 0.18468426167964935, -0.8051276803016663, -0.19215282797813416, 0.20923714339733124, -0.31202396750450134, 0.313391417264938...
I am considering purchasing a code signing certificate from VeriSign or Thawte to sign an XBAP with. My question is this: What happens when that certificate expires? $299 and $599 are pretty hefty prices for 1-year/2-year cerificates, and if I have to deliver a newly signed build to my customers whenever my certificate...
[ 0.7161765098571777, 0.5889053344726562, 0.6933399438858032, 0.04954972118139267, 0.279009610414505, -0.1708466112613678, 0.2787511348724365, 0.24349471926689148, -0.09146131575107574, -0.5510729551315308, -0.04559004679322243, 0.27770960330963135, 0.1410665363073349, 0.3836285173892975, ...
used on a LAN, so I suppose I could always use Windows Installer to install my home brewed certificate (although I'm unsure on how to do this - anyone have any ideas?). This wouldn't really be a problem if I was delivering a partial trust application - but my application needs Web permissions, since it will be talking...
[ 0.43295571208000183, 0.44910928606987, 0.3166123032569885, -0.08599334210157394, 0.07899319380521774, -0.43569663166999817, 0.4551272690296173, 0.19747105240821838, -0.02783058024942875, -0.5844231843948364, 0.14385351538658142, 0.39580127596855164, -0.102745920419693, 0.2421361207962036, ...
to use it in a closed (LAN) environment is to setup your own CA. Windows Server versions include easy to use Certification Authority but even easier is to setup a minimal CA by means of the demoCA provided by [openssl](http://www.openssl.org/), which consists of several scripts. You can run openssl demoCA in [Cygwin](h...
[ 0.35651013255119324, 0.21283406019210815, 0.13191017508506775, -0.0025905363727360964, -0.04388720542192459, -0.3202759027481079, -0.050161462277173996, -0.25121834874153137, -0.1487962007522583, -0.5884287357330322, -0.1624061018228531, 0.2921554446220398, -0.22803623974323273, -0.0951671...
since the CA certificate will stay the same. Typically a CA certificate should last for 5-10 years, but you can configure as much as you want (remember that it is your own CA). The CA certificate will be installed on every client machine. If your application trusts Windows System security it should be installed on IEx...
[ 0.4717783033847809, 0.3397541046142578, 0.5831312537193298, -0.214213028550148, 0.14623282849788666, -0.5287827253341675, 0.12748460471630096, -0.12939998507499695, -0.10075131058692932, -0.5531697869300842, -0.07521133124828339, 0.2692636549472809, -0.043968092650175095, 0.026462115347385...
In the past I wrote most of my unit tests using C# even when the actual software development was in another .NET language (VB.NET, C++.NET etc.) but I could use VB to get the same results. I guess the only reason I use C# is because most of the examples in the internet are written in C#. I you use unit tests as part o...
[ 0.6368566155433655, 0.17974182963371277, -0.23302164673805237, 0.15056143701076508, -0.24721600115299225, -0.031187068670988083, 0.12425296008586884, 0.15481451153755188, -0.08559157699346542, -0.5865088105201721, 0.2945602536201477, 0.6610285043716431, -0.023156601935625076, -0.0403077490...
interested in finding out is whether there is a preference of a specific language to use while unit testing. You should use what ever language is comfortable for your dev team. I don't see what you would write your unit tests in a language other than the language that the rest of the project is written in as it would ...
[ 0.4660385549068451, -0.0218834038823843, -0.5679190158843994, 0.41051754355430603, -0.05852217599749565, -0.06298498064279556, 0.3976277709007263, 0.35787519812583923, 0.19570082426071167, -0.6107012033462524, -0.021814674139022827, 0.5915656685829163, 0.17682239413261414, -0.1499321907758...
I've got an ASP.NET application running and on the production box it's using about 450MB RAM, however, it shouldn't be using quite so much, and it seems to increase over time, so it seems there might be a leak or atleast something not being released properly. I took a look with PerfMon and there was 416MB in GC Gen2....
[ -0.0634966567158699, -0.11216270178556442, 0.4852948486804962, 0.331607848405838, -0.21288277208805084, -0.25775882601737976, 0.452019065618515, 0.05084385722875595, -0.6150942444801331, -0.7110912799835205, 0.006918658036738634, 0.509817898273468, -0.14457100629806519, -0.0093360096216201...
by Tess would be a good start. She demonstrates using adplus to take a dump of an ASP.NET application that is consuming a great deal of RAM, then loading that dump into WinDbg for analysis. Use the !gcroot command in WinDbg to find unexpected roots and go from there. She advises against storing complex types that cont...
[ -0.03536728024482727, -0.023643281310796738, -0.1653767228126526, -0.060354311019182205, -0.2575714588165283, -0.07809770852327347, 0.49724501371383667, -0.5116438865661621, -0.08171400427818298, -0.493017315864563, 0.039612848311662674, 0.3948275148868561, -0.11873975396156311, 0.02992758...
in Microsoft Access, is there a way which I can programatically set the Confirm Action Queries flag on the options screen to False? Ideally when the database is started up I would like to check if it's true, and if so, mark it as false for the currently logged in user. The application is locked down reasonably tightly...
[ 0.2783164978027344, 0.03593987599015236, 0.4000522494316101, 0.23650792241096497, 0.3575863838195801, -0.29634222388267517, 0.1149546205997467, -0.03440244495868683, -0.07685168087482452, -0.2883157432079315, -0.14867490530014038, 0.6670782566070557, -0.1502256989479065, -0.164112374186515...
I've recently started with Python, and am enjoying the "batteries included" design. I'e already found out I can import time, math, re, urllib, but don't know how to know that something is builtin rather than writing it from scratch. What's included, and where can I get other good quality libraries from? Firstly, the [...
[ 0.41327497363090515, 0.274563729763031, 0.01934671401977539, -0.18037688732147217, -0.09287120401859283, -0.13755905628204346, 0.0415428951382637, -0.364248126745224, -0.18271301686763763, -0.3638383448123932, -0.01526226568967104, 1.009779930114746, -0.34195998311042786, -0.13809655606746...
print 'No foobar module' ``` If you do this on startup for modules not necessarily present in the distribution you can bail with a sensible diagnostic. The [Python Package Index](http://pypi.python.org/pypi) plays a role similar to that of CPAN in the perl world and has a list of many third party modules of one sort...
[ 0.43614882230758667, 0.20603716373443604, 0.0783880427479744, -0.1416095644235611, -0.253650426864624, -0.3298557996749878, 0.228981152176857, 0.16139020025730133, -0.41436558961868286, -0.29812100529670715, -0.2841792106628418, 0.6744586825370789, -0.38922202587127686, -0.3058781921863556...
this is still very active. * Various of the [items linked off](http://www.python.org/links/) the Python home page. * Various home pages and blogs by python luminaries such as [The Daily Python URL](http://www.pythonware.com/daily/), [effbot.org](http://www.effbot.org/), [The Python Cookbook](http://code.activestate.com...
[ 0.6816911697387695, 0.2957119643688202, -0.04848926141858101, -0.33232757449150085, -0.27686962485313416, -0.21237622201442719, 0.21249054372310638, 0.3573594093322754, -0.5704366564750671, -0.12996652722358704, -0.22117123007774353, 0.2289591282606125, -0.04532456770539284, 0.003268197178...
I'm using the following code to have a non-JS navigation: ``` <ol id="navigation"> <li id="home"><a href="#"><img src="./images/nav/home-hover.png" alt="Home" /></li> ... </ol> ``` And the CSS: ``` #navigation a { display: block; height: 25px; } #navigation a img { display: none; } #navigation...
[ -0.11742114275693893, 0.21512927114963531, 0.9133025407791138, -0.3491221070289612, 0.01086623314768076, 0.17749983072280884, 0.020485134795308113, -0.1340263932943344, -0.2875095307826996, -0.9960952997207642, -0.06586269289255142, 0.37304821610450745, -0.27028635144233704, 0.060621924698...