text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
= registration.GetType(); if (registrationType.IsGenericTypeOf(typeof(ComponentRegistration<>))) { var componentType = registrationType.GetGenericArgumentsFor(typeof(ComponentRegistration<>))[0]; var name = (string)registrationType.GetProperty("Na...
[ 0.2455267459154129, -0.31418249011039734, 0.6604586243629456, -0.007441496476531029, 0.11668526381254196, -0.01746504195034504, 0.4008709192276001, -0.5754318237304688, 0.057722195982933044, -0.1272384524345398, -0.42450544238090515, 0.5921504497528076, -0.3947311043739319, 0.4222047030925...
if (name != null) { if (named.ContainsKey(name)) {
[ -0.22021536529064178, 0.06734424829483032, -0.2383142113685608, -0.18239367008209229, 0.41557151079177856, -0.34283414483070374, 0.37612512707710266, -0.12797127664089203, 0.08913905918598175, -0.05129217356443405, -0.4149239957332611, 0.21807818114757538, -0.4372033178806305, 0.4406626820...
_log.Debug( m => m("Skipped registering default named component {0}.", name)); continue; }
[ 0.044208064675331116, -0.21164323389530182, 0.29467058181762695, -0.07048933207988739, 0.49568846821784973, 0.04971699416637421, 0.6491568088531494, -0.07308834046125412, -0.3194326162338257, -0.2608150541782379, -0.3963533937931061, 0.6118268966674805, -0.396901398897171, 0.48641043901443...
} else if (unnamed.Contains(componentType)) { _log.Debug(
[ 0.26187747716903687, -0.14313048124313354, 0.1028025895357132, -0.041695550084114075, 0.47384926676750183, -0.18299292027950287, 0.45801854133605957, -0.35872387886047363, 0.09164484590291977, -0.08615061640739441, -0.16009652614593506, 0.6176903247833252, -0.42125454545021057, 0.348262906...
m => m("Skipped registering default component for type {0}.", componentType)); continue; } all.Add(registration); }
[ 0.13768868148326874, -0.15741468966007233, 0.5018245577812195, -0.22564585506916046, 0.1447819024324417, 0.06683411449193954, 0.5023502707481384, -0.48272886872291565, -0.18861618638038635, -0.388561874628067, -0.4705541431903839, 0.6182793974876404, -0.4619063138961792, 0.2729556858539581...
else { all.Add(registration); } } } return all.ToArray(); } } ```
[ 0.17436093091964722, 0.09517524391412735, 0.20172125101089478, -0.22811105847358704, 0.26136669516563416, -0.2640012800693512, 0.10946879535913467, -0.2924402058124542, -0.08547092229127884, -0.4949871003627777, -0.23365096747875214, 0.7250592112541199, -0.5184639692306519, 0.1645117700099...
I have two objects, one is in our enterprise level and another in in our service level. The service object is inheriting from the enterprise. Here is a quick example: ``` [DataContract] public class EnterpriseObject{ [DataMember] int ID{get; set;} string InternalUse{get; set;} } [DataContract] public ...
[ 0.014770496636629105, 0.03784972056746483, 0.191531702876091, -0.16079360246658325, 0.1594695746898651, -0.1656845062971115, 0.04736742377281189, -0.04801895469427109, -0.1903623789548874, -0.8792778849601746, -0.18560655415058136, 0.5056003332138062, -0.2920112609863281, 0.449625432491302...
option? As you can see in the example the DataMember attribute is not set for the InternalUser property. Is that the only way to do it? Thanks You handle inheritance by adding a `[KnownType(typeof(ServiceObject))]` to `EnterpriseBaseObject` - however, the `EnterpriseBaseObject` is still part of the contract, and its ex...
[ 0.26853474974632263, 0.006939498707652092, 0.35053956508636475, -0.015960218384861946, 0.09931206703186035, -0.2658642530441284, 0.14567260444164276, -0.25333619117736816, -0.24904295802116394, -0.49612438678741455, -0.09843751788139343, 0.5449692606925964, -0.16858181357383728, -0.1093115...
I'm looking into creating custom controls for WPF and I've found some reasonably useful blogs and such that vaguely go into enough detail but I'm still struggling a bit. Basically, what I'm trying to create is something akin to the infamous 'Coda Slider' but i just don't know enough to get started properly. Can anyone...
[ 0.4314596354961395, 0.04343213886022568, 0.33976584672927856, 0.2886063754558563, -0.026010582223534584, -0.15827280282974243, -0.05095219239592552, 0.10544097423553467, -0.22844339907169342, -0.5229024291038513, 0.21938656270503998, 0.32863253355026245, 0.009310897439718246, 0.22299002110...
WPF project called "WittyTwitter". When I looked through the code, they were using something called the ZapScroller in Kevin Moore's "WPF Bag-o-Tricks" library. He was a PM for WPF at Microsoft. Have a look here: <http://work.j832.com/2008/03/bag-o-tricks-march-edition.html>
[ 0.3874688446521759, -0.3908281922340393, 0.12671495974063873, 0.04644327238202095, -0.01515030488371849, -0.34569233655929565, 0.02065795660018921, -0.222243994474411, -0.5074318051338196, -0.31738215684890747, -0.018298713490366936, 0.2455238550901413, -0.3534255921840668, -0.399540841579...
I can make sense of most of the information contained in **/proc/meminfo** like total memory, buffers, cache etc. Could you tell me what do the less obvious ones like the ones listed below mean? * AnonPages * Mapped * Slab * NFS\_Unstable * Bounce * VmallocTotal * VmallocUsed * VmallocChunk If anyone is wondering, I...
[ 0.2319628894329071, 0.034270983189344406, 0.4087439477443695, 0.06525444239377975, -0.12141301482915878, -0.2781597971916199, -0.018269039690494537, 0.10818631201982498, -0.4813482165336609, -0.6787948608398438, -0.19571952521800995, 0.2755151391029358, -0.154566690325737, 0.12206458300352...
Slab: in-kernel data structures cache > NFS_Unstable: NFS pages sent to the server, but not yet committed to stable > storage > Bounce: Memory used for block device "bounce buffers" > VmallocTotal: total size of vmalloc memory area > VmallocUsed: amount of vmalloc area which is used > VmallocChunk: large...
[ -0.1511523723602295, -0.10745883733034134, 0.4807018041610718, -0.08541568368673325, -0.2070147544145584, 0.11070598661899567, 0.03805578872561455, -0.18144424259662628, -0.5135807991027832, -0.615086555480957, -0.2989289462566376, 0.1821654587984085, -0.2520766258239746, 0.193320080637931...
SOLUTION: ========= Thanks to [Patrick](https://stackoverflow.com/questions/658428/custom-watermarked-textbox-behaving-strangely/658613#658613) below, I have refactored the C# CodeProject version into a VB.NET version that works for me. Hopefully it can help you guys as well: ``` Partial Public Class WatermarkedTextB...
[ -0.17675475776195526, -0.11504381895065308, 0.4787569046020508, 0.0733528658747673, 0.382597416639328, -0.21378971636295319, 0.44744351506233215, -0.2568407654762268, -0.19235661625862122, -0.7357404232025146, -0.3189522922039032, 0.5724833011627197, -0.40888872742652893, 0.119081251323223...
_waterMarkColor = value End Set End Property Private _waterMarkText As String = "Watermark" Public Property WaterMarkText() As String Get Return _waterMarkText End Get Set(ByVal value As String) _waterMarkText = value
[ -0.06551558524370193, 0.07098224759101868, 0.673199474811554, 0.06106186285614967, 0.3105619251728058, -0.5052211880683899, 0.08046381920576096, -0.45548689365386963, -0.05347488820552826, -0.2544851005077362, -0.4782327115535736, 0.35771533846855164, -0.1742396205663681, 0.605706632137298...
End Set End Property Sub New() End Sub Protected Overloads Overrides Sub OnCreateControl() MyBase.OnCreateControl() End Sub Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) MyBase.WndProc(m) Const WM_PAINT As Integer = &HF If m.Msg = WM_PA...
[ -0.11380098760128021, -0.14749112725257874, 0.6739003658294678, -0.2027447521686554, 0.12512566149234772, -0.13293366134166718, 0.6168155670166016, -0.7135810852050781, -0.030202044174075127, -0.46871379017829895, -0.5197405815124512, 0.3378876745700836, -0.40924903750419617, 0.44520255923...
Return End If Using g As Graphics = Me.CreateGraphics g.DrawString(WaterMarkText, Me.Font, New SolidBrush(WaterMarkColor), 0, 0) End Using End If End Sub Protected Overrides Sub OnTextChanged(ByVal e As
[ -0.38099056482315063, -0.2553803026676178, 0.8290607929229736, -0.10102233290672302, -0.010732531547546387, 0.02101392112672329, 0.4163622558116913, -0.5779846906661987, 0.07537204772233963, -0.40195000171661377, -0.3418348729610443, 0.32986703515052795, -0.22472059726715088, 0.29452720284...
System.EventArgs) MyBase.OnTextChanged(e) Invalidate() End Sub Protected Overrides Sub OnLostFocus(ByVal e As System.EventArgs) MyBase.OnLostFocus(e) Invalidate() End Sub Protected Overrides Sub OnFontChanged(ByVal e As System.EventArgs) MyBase.OnFontChanged(e) ...
[ -0.741325855255127, -0.1848142296075821, 0.6358210444450378, -0.008943313732743263, 0.03791406750679016, 0.24476967751979828, 0.41367465257644653, -0.33705517649650574, -0.24444444477558136, -0.5021278858184814, -0.684314489364624, 0.32055702805519104, -0.3459954261779785, 0.35293418169021...
'' added so the watermark is not cleared until text is entered MyBase.OnGotFocus(e) Invalidate() End Sub End Class ``` --- I am building a kiosk application, and in order to keep it aesthetically pleasing I decided to implement a watermarked textbox as the entry fields. I found [this project](htt...
[ 0.5301976203918457, 0.2364111691713333, 0.6798908114433289, -0.3510547876358032, -0.3879106640815735, -0.1517237424850464, 0.35911187529563904, -0.09393715858459473, -0.220734104514122, -0.5459601283073425, -0.09457389265298843, 0.43068236112594604, -0.2669621706008911, 0.3461972773075104,...
text](https://i.stack.imgur.com/VxrAh.jpg "filled") So basically it is not clearing the whole watermark, just the space appropriated for the default height of a textbox. here is the converted code: ``` Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text Imports System.Windows.For...
[ -0.21599352359771729, -0.010690338909626007, 0.6219267845153809, -0.009808598086237907, -0.009404684416949749, -0.14277246594429016, 0.03981410712003708, -0.4478181004524231, -0.28306564688682556, -0.5864053964614868, -0.3932054936885834, 0.5527324080467224, -0.27331113815307617, 0.2837608...
End Get Set(ByVal value As Color) _waterMarkColor = value Invalidate() End Set End Property Private _waterMarkText As String = "Water Mark" Public Property WaterMarkText() As String Get Return _waterMarkText
[ 0.017821360379457474, -0.03675856441259384, 0.574976921081543, 0.1401035189628601, 0.35195600986480713, -0.4170525372028351, 0.17907898128032684, -0.547870934009552, 0.04039216414093971, -0.19224554300308228, -0.47218796610832214, 0.45126062631607056, -0.3424314558506012, 0.378592312335968...
End Get Set(ByVal value As String) _waterMarkText = value Invalidate() End Set End Property #End Region Public Sub New() JoinEvents(True) End Sub Protected Overloads Overrides Sub OnCreateControl() MyBase.OnCreateControl()
[ -0.09712959080934525, -0.18235746026039124, 0.6554681062698364, -0.04486863687634468, 0.3118988871574402, -0.5551141500473022, 0.6546483039855957, -0.486105352640152, 0.14145909249782562, -0.6100538372993469, -0.5421484708786011, 0.18787884712219238, -0.22785723209381104, 0.665549516677856...
WaterMark_Toggle(Nothing, Nothing) End Sub Protected Overloads Overrides Sub OnPaint(ByVal args As PaintEventArgs) 'Dim drawFont As New System.Drawing.Font(Font.FontFamily, Font.Size, Font.Style, Font.Unit) Dim drawFont As New Font("Arial", 28, FontStyle.Bold) 'New System.Drawing.Font(oldFont.Fo...
[ -0.20819270610809326, -0.1425056755542755, 1.1819062232971191, -0.16222359240055084, -0.06829830259084702, 0.12549500167369843, 0.37940821051597595, -0.6597665548324585, 0.0038187578320503235, -0.5639407634735107, -0.20716840028762817, 0.4819176197052002, -0.2633015811443329, 0.36777040362...
As Boolean) If join Then AddHandler Me.TextChanged, AddressOf WaterMark_Toggle AddHandler Me.LostFocus, AddressOf Me.WaterMark_Toggle AddHandler Me.FontChanged, AddressOf Me.WaterMark_FontChanged End If End Sub Private Sub WaterMark_Toggle(ByVal sender As Obj...
[ -0.25378161668777466, -0.026013949885964394, 0.9107856750488281, -0.3844521641731262, 0.017911605536937714, 0.10542337596416473, 0.3483763039112091, -0.33197635412216187, -0.1239321380853653, -0.31419098377227783, -0.1614271104335785, 0.5888183116912842, -0.27082476019859314, 0.31552439928...
EnableWaterMark() Else DisableWaterMark() End If End Sub Private Sub EnableWaterMark() oldFont = New System.Drawing.Font(Font.FontFamily, Font.Size, Font.Style, Font.Unit) Me.SetStyle(ControlStyles.UserPaint, True) Me.waterMarkTextEnabled = True Refre...
[ -0.06371673196554184, 0.021496722474694252, 0.9355117678642273, -0.22382564842700958, 0.20247285068035126, -0.10562151670455933, 0.7999346852302551, -0.5895383358001709, 0.18558546900749207, -0.6736435890197754, -0.37897956371307373, 0.7114094495773315, -0.47615939378738403, -0.09769517928...
Me.waterMarkTextEnabled = False Me.SetStyle(ControlStyles.UserPaint, False) If oldFont IsNot Nothing Then Me.Font = New System.Drawing.Font(oldFont.FontFamily, oldFont.Size, oldFont.Style, oldFont.Unit) End If End Sub Private Sub WaterMark_FontChanged(ByVal sender As Object,...
[ -0.13655929267406464, 0.06171393021941185, 0.8498424291610718, -0.24875026941299438, -0.10150379687547684, 0.06399641931056976, 0.5738533735275269, -0.41967418789863586, -0.1406818926334381, -0.7631083726882935, -0.22238174080848694, 0.5039918422698975, 0.09311354905366898, 0.4536029100418...
System.Drawing.Font(Font.FontFamily, Font.Size, Font.Style, Font.Unit) Refresh() End If End Sub End Class ``` I attempted to force the class to use my set font size in the OnPaint event, but no luck with that. Is there something else that I am missing that is making this more difficult than it...
[ 0.0650116428732872, -0.09289178997278214, 0.7628253698348999, -0.09941389411687851, 0.1382768154144287, -0.25210243463516235, 0.6284083127975464, -0.2415410727262497, -0.32896360754966736, -0.8434497714042664, -0.1897459179162979, 0.6170788407325745, -0.11618156731128693, 0.206992372870445...
Then Me.Font = New System.Drawing.Font(oldFont.FontFamily, oldFont.Size, oldFont.Style, oldFont.Unit) End If Refresh() End Sub ``` **EDIT:** Rather than using the UserPaint control style, you can handle the WM\_PAINT message in WndProc, and only print the watermark if the text is empty. The result is...
[ 0.10580617189407349, 0.1193130686879158, 0.9384373426437378, -0.47704553604125977, 0.18469543755054474, 0.18170897662639618, 0.4031318426132202, -0.5392794609069824, -0.1478583663702011, -0.9058675765991211, -0.2965118885040283, 0.7477213740348816, -0.24320460855960846, 0.24189214408397675...
Return End If Using g As Graphics = Me.CreateGraphics g.DrawString("Water Mark", Me.Font, Brushes.LightGray, 0, 0) End Using End If End Sub Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs) MyBase.OnTextChanged(e) Invalidate() End Sub Protected Override...
[ -0.5525991320610046, -0.18002118170261383, 0.7252540588378906, -0.10261884331703186, -0.07133328169584274, 0.2384934425354004, 0.3280881643295288, -0.49569496512413025, 0.0005690552643500268, -0.4781315326690674, -0.5058688521385193, 0.3266485631465912, -0.21611209213733673, 0.256351441144...
MyBase.OnFontChanged(e) Invalidate() End Sub ```
[ 0.17316831648349762, 0.3670746982097626, 0.31152477860450745, -0.06081470102071762, 0.16930608451366425, -0.4301622211933136, 0.17684414982795715, 0.2834857702255249, 0.21238629519939423, -0.554100513458252, -0.0687134638428688, 0.09146639704704285, -0.42578408122062683, 0.4343005716800689...
I have a project I'm working on where I have a team that is located in two different locations. We are using a source control system that integrates with VS 2008. We have created a solution folder where we store different web.config files so the different locations can pick and choose which configuration they need to u...
[ 0.6902934908866882, 0.06299757957458496, -0.01899244822561741, 0.30512210726737976, 0.1942596584558487, -0.22010502219200134, 0.021655471995472908, -0.05443410947918892, -0.22532537579536438, -0.8775607347488403, 0.18295831978321075, 0.46934774518013, -0.15660852193832397, 0.30549418926239...
SourceGear, and it is operating under its default configuration, which is very reminiscent of VSS to me. I would like to avoid having to exclude the web.config file from the project, but I don't see any other way without the source control system constantly trying to add the file back into the repository. How can I ig...
[ 0.3509311378002167, 0.07007754594087601, 0.38328707218170166, 0.20131202042102814, 0.04824715107679367, -0.24761928617954254, -0.024754300713539124, -0.00018105456547345966, -0.05951465666294098, -0.6870386600494385, -0.18009202182292938, 0.7559285759925842, -0.1445590853691101, 0.25145423...
and execution continues with its main function and its stuff. On a successful execution of those functions, they will never return because your `printf` does not exist anymore in memory. I think you confuse `exec*` with the [`fork`](http://www.opengroup.org/onlinepubs/9699919799/functions/fork.html) function. That wi...
[ 0.22898517549037933, 0.15768945217132568, 0.37080177664756775, 0.02502397634088993, 0.18633459508419037, 0.2827451825141907, 0.22772251069545746, -0.006620858795940876, -0.388451486825943, -0.647784411907196, -0.2269972860813141, 0.36719024181365967, -0.09427278488874435, 0.584162771701812...
using other mechanisms, like pipes or shared memory.
[ 0.3402695953845978, 0.2057679146528244, -0.1709890514612198, 0.4514848291873932, 0.3233984410762787, 0.08169260621070862, -0.2455397993326187, -0.18035203218460083, -0.24552056193351746, -0.7512063980102539, -0.3423190712928772, 0.20185025036334991, -0.052658744156360626, -0.05131132900714...
I'm using multiple Applications WinForm / ASP.NET that use data caching. How can y keep automaticaly my applications in sync when manual database changes accurs ? If you can load the assembly into a .NET application, you can do: ``` typeof(SomeTypeInTheAssembly).Assembly.FullName ``` If you cannot then you can use ...
[ 0.4717924892902374, -0.045195434242486954, 0.292238712310791, -0.17015892267227173, 0.02261567860841751, -0.17529913783073425, 0.3199479877948761, -0.23553860187530518, -0.07922247052192688, -0.8486754894256592, -0.0032368393149226904, 0.5223058462142944, -0.4415862262248993, 0.25183087587...
I want to convert British [OSGB 36](http://en.wikipedia.org/wiki/British_national_grid_reference_system) co-ordinates to [WGS 84](http://en.wikipedia.org/wiki/World_Geodetic_System) (i.e. "standard" latitude and longitude), in order to plot them into a KML file for Google Earth. What would be the best way to go about ...
[ 0.47018516063690186, 0.1324775367975235, 0.7204533815383911, -0.047981567680835724, -0.06872886419296265, 0.0555960014462471, 0.02061375044286251, -0.06616218388080597, -0.294079452753067, -0.4970604479312897, -0.10963607579469681, 0.09373095631599426, 0.00766021991148591, 0.23661181330680...
I work for have just open sourced a library to do exactly this: <http://code.google.com/p/geocoordconversion/>
[ 0.6270016431808472, 0.1983407586812973, 0.41721540689468384, -0.13792435824871063, 0.10047979652881622, 0.012041214853525162, -0.2399347424507141, 0.32329127192497253, -0.04971009120345116, -0.6361812949180603, -0.040205586701631546, 0.2098875343799591, -0.04365578666329384, 0.045524220913...
Is this possible? I installed Dreamweaver to take advantage of some third party plugin to make special xml files but upon installing it, it took over all my ASP.NET file types (even though I clicked 'select none' on the pop-up at first start). Anyways does anyone know if there is a quick automated way to restore them t...
[ 0.0843404158949852, -0.11980943381786346, 0.34600791335105896, 0.17229826748371124, -0.0005700879846699536, -0.3353419601917267, 0.42512691020965576, 0.07844644784927368, -0.3152102530002594, -0.7660863995552063, -0.015545210801064968, 0.3839719891548157, -0.16294166445732117, 0.3222424089...
I have a custom made class called Graph in which I use adjacency lists. To be more specific, I have an array of hash maps where each hash map contains all that node's neighbors as edges. The key is the end node and the value is an Edge object. Now i want to make this Graph class implement Iterable. Is there a way of ...
[ -0.14294098317623138, 0.07584255933761597, 0.463375449180603, -0.05233747139573097, -0.2493354082107544, -0.021350281313061714, 0.1537613570690155, -0.25940123200416565, -0.2455102801322937, -0.7128511071205139, 0.20764270424842834, 0.24282391369342804, -0.31269463896751404, 0.242745116353...
of the mapping in the Hash. A set is an iterable object. To make the Iterator, simply iterate through the array turning each hash into a set and then composing the individual iterators into a single Iterator... There is no built in way to compose Iterators in java, however, writing your own compose function should be ...
[ -0.12142199277877808, 0.11208920180797577, 0.10472004860639572, 0.0304187573492527, -0.044058531522750854, -0.023746870458126068, 0.18559247255325317, -0.5123507380485535, -0.011433498002588749, -0.3540162742137909, -0.3049888610839844, 0.3247290849685669, -0.43753769993782043, -0.22636425...
This is happening in one cookie with keys in one key only. The value should be "ÅÙÏ‘‹„‰Š„‹". Final Solution: Save As different file with "correct" encoding Changed encoding * From "Unicode (UTF-8 with signature) -Codepage 65001" * To "Western European (Windows) - Codepage 1252"
[ -0.1901126652956009, 0.041258446872234344, 0.2797931432723999, 0.002664742060005665, 0.23999205231666565, 0.3067658841609955, 0.41804176568984985, -0.11319026350975037, 0.000756864610593766, -0.870352566242218, -0.25633159279823303, 0.4265713691711426, -0.10942678153514862, 0.1665786206722...
I imagine a very common scenario is where an entire dynamic page can be cached in such a way that an entire framework/CMS stack can be bypassed, except that some small amounts of information change depending on whether somebody is logged in or not. For example, the menu might change from "login" to "Welcome Somebody!"....
[ 0.24710805714130402, 0.07152654230594635, 0.19879598915576935, 0.15499956905841827, 0.0674964115023613, -0.24801284074783325, 0.4108176529407501, 0.4490337371826172, -0.5398462414741516, -0.6477974653244019, -0.05641676113009453, 0.4584484100341797, -0.14375518262386322, 0.0347167812287807...
URL including the query string. If the page contains session data, include a session id in the file name. Keep a list of cached pages with their names somewhere so that you can look up whether something is in the cache without having to go to the file system. This is essentially what FatWire Content Server does.
[ 0.5594494938850403, 0.10920002311468124, 0.21791628003120422, 0.18127630650997162, -0.1872609555721283, -0.7641369104385376, 0.2959546446800232, 0.0816626325249672, -0.3157210350036621, -0.3967505693435669, -0.19582515954971313, 0.6110861897468567, -0.26037833094596863, 0.3606429100036621,...
I have been using oracle database throughout database courses, and I have programmed there a lot. However, now, I have to develop real life web application in ASP.NET and some people suggested me to use sQL server because it is more compatible with ASP.NET. But I did not like it at all using it, since, I got used to o...
[ 0.5430987477302551, 0.22816415131092072, -0.18676091730594635, 0.17704808712005615, -0.01692098006606102, -0.2709849178791046, -0.09459780901670456, 0.2651049494743347, -0.16886810958385468, -0.4569927155971527, 0.4240090548992157, 0.5518183708190918, -0.07450032979249954, 0.23848864436149...
Which databases will not create much problems when using them? I would be interested in getting more detail on how ASP.NET, a web application development platform is 'more compatible' with SQL Server, a database engine, given that they are totally disparate technologies. I would argue that the bottleneck is not the da...
[ 0.4974164366722107, 0.26654380559921265, -0.11673027276992798, 0.3115047216415405, -0.11598145961761475, -0.08241681009531021, -0.28183674812316895, 0.005901928525418043, -0.27029314637184143, -0.5557312965393066, 0.30547669529914856, 0.7799555659294128, -0.020703906193375587, 0.0538240075...
to be scratched is universal -- getting data out of the database and displaying it or pushing data back into the database. Linq2SQL is an option only available to SQL Server unlike NHibernate that has pretty good support for many databases. You could also evaluate other ORMs like [LLBLGEN](http://www.llblgen.com/)
[ 0.07664584368467331, 0.02497171424329281, 0.27336522936820984, -0.05429445952177048, 0.0033262462820857763, -0.22383174300193787, -0.15741461515426636, -0.058269184082746506, -0.08092475682497025, -0.5667216181755066, 0.39557117223739624, 0.38042354583740234, -0.24766714870929718, 0.083669...
I'm looking adding Subversion's revision number to the name of each .js file we include, so whenever the .js file is updated, the browsers will automatically fetch the new version. I believe Stackoverflow does this, but I wonder how. Is this part of the release procedure? Any hints on how to achieve this using Subversi...
[ 0.4593721926212311, -0.021436234936118126, 0.29414209723472595, -0.10199901461601257, -0.1755848526954651, -0.35589268803596497, 0.1478414535522461, 0.3345969021320343, -0.2845207154750824, -0.7511603832244873, -0.03265784680843353, 0.29341843724250793, -0.2469291090965271, 0.2353592664003...
I have an IIS6 web server that is hosting two application pools. Occasionally, one of the w3wp processes will spike the CPU for a while, and both app pools seem to suffer the consequences. I'm not sure which one is which, and without that information I don't know which application to blame. How can I tell which w3wp b...
[ 0.17270053923130035, 0.14712008833885193, 0.25581225752830505, -0.05193950980901718, -0.043198056519031525, 0.23006340861320496, 0.21376071870326996, 0.045522674918174744, -0.423136830329895, -0.8327694535255432, 0.01533953845500946, 0.47829562425613403, -0.25314801931381226, 0.27620053291...
**(Thanks everyone for the answers, [here is my refactored example](https://stackoverflow.com/questions/659232/it-this-an-example-of-the-single-responsibility-principle), in turn another StackOverflow question about the Single Responsibility Principle.)** Coming from PHP to C#, this syntax was intimidating: ``` conta...
[ 0.22334155440330505, 0.012229514308273792, 0.07890206575393677, -0.07695838809013367, -0.547582745552063, -0.1677473932504654, 0.19196876883506775, -0.22800995409488678, -0.3643862307071686, -0.2503359615802765, -0.1115284338593483, 0.33501100540161133, -0.3518736660480499, 0.1249473169445...
{ Container container = new Container(); container.RegisterType<Customer>("test"); container.RegisterType(typeof(Customer), "test"); Console.ReadLine(); } } public class Container { public void RegisterType<T>(string dummy)
[ 0.37444642186164856, -0.4643462002277374, 0.005485312081873417, -0.04435037821531296, 0.04080307483673096, 0.140042245388031, -0.15329642593860626, -0.11803245544433594, -0.07828246802091599, -0.39063790440559387, -0.26982808113098145, 0.20800191164016724, -0.20517265796661377, 0.623953580...
{ Console.WriteLine("Type={0}, dummy={1}, name of class={2}", typeof(T), dummy, typeof(T).Name); } public void RegisterType(Type T, string dummy) { Console.WriteLine("Type={0}, dummy={1}, name of class={2}", T, dummy, T.Name); } } public class Customer ...
[ -0.19013093411922455, -0.13980406522750854, 0.3037067651748657, -0.06504200398921967, 0.28486940264701843, 0.1756761223077774, -0.05377041921019554, 0.010008146055042744, 0.25176534056663513, -0.28385666012763977, -0.10109905898571014, 0.47126516699790955, -0.042939893901348114, 0.35069584...
type safety at compile time. If you are passing two `Type` objects you are placing the responsibility at the developer instead of the compiler. This is also why many IoC containers utilizes it, as your compiler will complain if an concrete type isn't inheriting the abstract type. ``` public void Register<TAbstract, T...
[ 0.2596144676208496, 0.049367550760507584, -0.2815178632736206, 0.010885711759328842, -0.1508604735136032, -0.5955756902694702, 0.24548307061195374, -0.3087799549102783, -0.0875745341181755, -0.12663227319717407, -0.11930836737155914, 0.5131924748420715, -0.6614640951156616, 0.0260988529771...
What have you done to remove (Helpers/extension methods) string literal in code? e.g. I have nhibernate search criteria code like this all over the place. ``` Expression.Eq("Status", LoginStatus.LoggedIn), ``` *“Status”* being the property of an entity object used as a string in the case. **Update**: Primary re...
[ 0.35950934886932373, 0.03944043442606926, 0.2091982662677765, -0.05517677962779999, -0.17774991691112518, -0.32603776454925537, 0.3680065870285034, -0.22972922027111053, -0.4236726760864258, -0.3849986791610718, -0.09172534197568893, 0.6159124970436096, -0.3461282551288605, 0.2616191804409...
{ return _FindByProperty((expression.Body as MemberExpression).Member.Name, value); } IList<User> costCenters = _FindByProperty( user=> user.Name, "name"); ``` ***Credits***: <http://suryagaddipati.wordpress.com/2009/03/14/code-as-data-in-c-taking-advantage-of-expression-trees/> This is related to a lot...
[ -0.16092710196971893, -0.11494216322898865, 0.09745945036411285, 0.12362682819366455, -0.0792447105050087, 0.03569604456424713, 0.09802539646625519, -0.4020927846431732, -0.12932570278644562, -0.09903308749198914, -0.3219853341579437, 0.5770639181137085, -0.11217424273490906, -0.0412184931...
Is there any tutorial out there on how to write a FileUpload in asp.net with a progress bar? i cant find any of if there is a free component that would also work! I found a few different options out there. I haven't used any of them, but I will most likely look into the 3rd option here in the near future. * <http://en...
[ 0.13882191479206085, -0.19071796536445618, -0.0011421317467465997, 0.2596615254878998, -0.3225041329860687, -0.22483904659748077, 0.2592887282371521, 0.24848774075508118, -0.16985365748405457, -0.5736961960792542, 0.13221313059329987, 0.5476593375205994, 0.10581183433532715, -0.20256043970...
I am using Visual Studio 2008, when I start up an Asp.net project that starts IE6, I do not see any jscript file in the “Script Document” folder in the Solution. [alt text http://img21.imageshack.us/img21/8338/example1t.png](http://img21.imageshack.us/img21/8338/example1t.png) However if I start up IE by hand and poi...
[ 0.22956933081150055, 0.265284925699234, 0.5574243068695068, -0.23138383030891418, -0.24904654920101166, -0.2806902229785919, 0.4389437735080719, 0.014435903169214725, -0.06140093505382538, -0.8500466346740723, -0.1252746880054474, 0.8173372745513916, -0.19592587649822235, 0.097724273800849...
just created a new Asp.net project with a single page that just contains one control and I have got the same result. All the files are hosted on the same machine as Visual Studio and IE. See my answer for what solved this for me, other people *may* find [this](https://stackoverflow.com/questions/658912/reenabling-ja...
[ 0.32360339164733887, -0.05711360648274422, 0.4826069176197052, 0.04100952669978142, -0.3784821629524231, -0.351471483707428, 0.44794273376464844, -0.31111618876457214, -0.31752631068229675, -0.42304933071136475, -0.03087805025279522, 0.5391976833343506, -0.29532620310783386, -0.30393671989...
did not need a reboot) * **The script debugger started to work.** I still don't know what caused the problem and lost over a day's work with it. How long before the script debugger stops working again..
[ 0.5220629572868347, 0.034154586493968964, 0.7241580486297607, 0.2699190676212311, 0.004753205459564924, -0.027514992281794548, 0.7861838936805725, 0.07911369204521179, -0.35657069087028503, -0.6190456748008728, -0.13293768465518951, 0.745968759059906, 0.03363926336169243, 0.230086013674736...
I have a Datagrid with 3 DropDownLists in it. Although it is a DataGrid it will really only have two rows. I am populating the BoundColumns using a DataTable in my code. Normally this is not a problem to setup and create the two rows, hold the two rows of values and retrieve them later. But as it turns out, I have to ...
[ 0.006931408774107695, -0.01353892870247364, 0.37978869676589966, -0.1784375011920929, -0.22643011808395386, 0.9057439565658569, -0.05423323065042496, 0.3032694458961487, -0.32077306509017944, -0.8566043376922607, -0.002436509123072028, 0.4167431890964508, -0.10577142238616943, -0.008912350...
am wondering what is the most painless way to accomplish this. I think a solution has to do with DataSource, and DataTextField and/or DataValueField properties of the DropDownList. But if I put a function in DataSource I am not sure how to pass it the row index so it will know which list to return. Using ItemTypes (Ite...
[ -0.15316349267959595, -0.26314452290534973, 0.39744898676872253, 0.22712349891662598, -0.04255829378962517, 0.14293937385082245, 0.2647378146648407, -0.23674391210079193, -0.24657197296619415, -0.7919158339500427, 0.06921006739139557, 0.4916240870952606, -0.35995617508888245, 0.23842748999...
conditionally bind any controls in Template columns.
[ 0.05174100771546364, -0.38853150606155396, -0.18086346983909607, 0.22628279030323029, -0.14846447110176086, -0.27929946780204773, 0.27974817156791687, -0.21519482135772705, 0.3036348521709442, -0.3740465044975281, -0.26568472385406494, 0.015675224363803864, -0.6207672357559204, -0.18821929...
A site I need requires a check on the user when they click links which will take them to external websites (don't ask why, it just does..) The client wants some sort of popup box which will then have "do you really want to go?" along with 2 buttons for yes or no. Now I've done all this in the classic browser popup so...
[ 0.5789004564285278, -0.12003405392169952, 0.2914232909679413, 0.09479052573442459, 0.22289440035820007, -0.5038958191871643, 0.41663703322410583, 0.5088840126991272, -0.19116425514221191, -0.5727755427360535, -0.02783890627324581, 0.38814860582351685, -0.1542108803987503, 0.016907289624214...
popups? I've been experimenting with [thickbox](http://jquery.com/demo/thickbox/#sectiond-1) and some [JQuery sliders](http://www.learningjquery.com/2006/09/slicker-show-and-hide) but as soon as you disable Javascript a) there is no "popup" b) even the link no longer points to where it was supposed to go thanks to t...
[ 0.10301164537668228, 0.051910918205976486, 0.8577853441238403, 0.06761568784713745, -0.07539079338312149, -0.00004652627103496343, 0.15612010657787323, 0.22352047264575958, -0.2577185332775116, -0.7494674324989319, -0.21056346595287323, 0.2610023319721222, -0.38674959540367126, -0.18514519...
I have the following code: ``` var tagToPosts = (from t2p in dataContext.TagToPosts join t in dataContext.Tags on t2p.TagId equals t.Id select new { t2p.Id, t.Name }); //IQueryable tag2postsToDelete; foreach (Tag tag in tags) {
[ -0.19196860492229462, -0.1183689758181572, 0.4568060636520386, -0.2053736001253128, 0.1467190980911255, -0.022437285631895065, 0.09906274080276489, -0.5511857271194458, 0.13500401377677917, -0.5525469779968262, -0.10679490864276886, 0.39022886753082275, -0.23101243376731873, 0.116870559751...
Debug.WriteLine(tag); tagToPosts = tagToPosts.Where(t => t.Name != tag.Name); } IQueryable tagToPostsToDelete = (from t2p in dataContext.TagToPosts join del in tagToPosts on t2p.Id equals del.Id
[ -0.468767911195755, -0.32885101437568665, 0.2935110628604889, 0.1702612340450287, 0.03299013152718544, -0.06973322480916977, 0.1716548651456833, -0.37222450971603394, -0.13737687468528748, -0.3458830416202545, -0.502128541469574, 0.42967990040779114, -0.35388800501823425, -0.02534257806837...
select t2p); dataContext.TagToPosts.DeleteAllOnSubmit(tagToPostsToDelete); ``` where `tags` is a `List<Tag>` - list of tags created by constructor, so they have no id. I run the the code putting a brakepoint on line with Debug and wait for a few cycles to go. Then I put tagToPosts.ToList() in the Watch window for que...
[ 0.1436719447374344, -0.31314805150032043, 0.7413846850395203, -0.05167686566710472, 0.23737818002700806, -0.00795492623001337, 0.2031538188457489, -0.6431474089622498, -0.199961319565773, -0.6340799927711487, -0.29945337772369385, 0.6569464206695557, -0.4215153753757477, -0.108285412192344...
can see every parameter parameter have the value of last `tag.Name` in a cycle. Have you any idea on how to get arout this and get cycle to add `Where` with new condition every tyme? I can see IQueryable stores only pointer to variable before execution. Change your `foreach` to: ``` foreach (Tag tag in tags){ var ...
[ 0.24978874623775482, -0.05870937183499336, 0.3374551832675934, -0.22990883886814117, 0.027963075786828995, -0.17953826487064362, 0.36456847190856934, -0.28526315093040466, -0.22162239253520966, -0.6894501447677612, -0.10010134428739548, 0.7621428966522217, -0.5180366039276123, 0.0325315967...
an expression tree that depends on some variables to execute. It's important to note that the actual variables are captured in that expression trees, not their values at the time of capture. Since the variable `tag` is used every time (and it's scope is the whole `foreach`, so it won't go out of scope at the end of eac...
[ 0.07374623417854309, -0.3124299943447113, 0.16500592231750488, 0.15709428489208221, 0.3612833023071289, -0.092945396900177, 0.3350299000740051, -0.2170390784740448, -0.1457306295633316, -0.4912170171737671, -0.39609527587890625, 0.40139684081077576, -0.48165836930274963, -0.236270710825920...
at each iteration and it the next iteration, it'll be considered a **new variable**.
[ 0.1970895677804947, -0.17478515207767487, 0.585257887840271, 0.0584477037191391, 0.19541028141975403, 0.007661702577024698, 0.024488314986228943, -0.17710170149803162, -0.02989285998046398, -0.40086111426353455, 0.07180627435445786, 0.33594831824302673, -0.10494676232337952, 0.458634287118...
I have a local class with a method used to build a list of strings and I'm finding that when I hit this method (in a for loop of 1000 times) often it's not returning the amount I request. I have a global variable: ``` string[] cachedKeys ``` A parameter passed to the method: ``` int requestedNumberToGet ``` The ...
[ -0.03972479701042175, -0.3183318078517914, 0.6110798716545105, -0.007341244723647833, -0.021954504773020744, 0.15885797142982483, 0.15315034985542297, -0.43247562646865845, -0.22890307009220123, -0.5633068084716797, 0.1694277673959732, 0.6848973631858826, -0.026606570929288864, 0.397747695...
< numberPossibleToGet && cachedKeys.Length >= numberPossibleToGet) { string randomKey = cachedKeys[rand.Next(0, cachedKeys.Length)]; if (!keysToReturn.Contains(randomKey)) keysToReturn.Add(randomKey); } if (keysToReturn.Count != numberPossibleToGet) Debugger.Break(); ``` I have approximately ...
[ -0.010267273522913456, -0.08299840241670609, 0.34984204173088074, 0.0696299821138382, 0.10897014290094376, 0.2869524657726288, 0.44098639488220215, -0.12057870626449585, -0.49541571736335754, -0.40714168548583984, -0.004858531057834625, 0.3267282545566559, -0.254887193441391, 0.30250096321...
the loop (I've seen 20s, 100s, 200s, 300s). Any one have any ideas where I'm going wrong with this? **Edit: Limited to .NET 2.0** **Edit: The purpose of the breakout is so that if the method is taking too long to execute, the client (several web servers using the data for XML feeds) won't have to wait while the othe...
[ 0.174781933426857, 0.0001494526950409636, 0.12941491603851318, 0.5629591345787048, -0.048354215919971466, 0.07923201471567154, 0.5333957672119141, -0.23125366866588593, -0.6034166216850281, -0.5532415509223938, 0.18563887476921082, 0.4454766511917114, -0.41797518730163574, 0.00218567857518...
main issue are the using retries in a random scenario to ensure you get unique values. This quickly gets out of control, specially if the amount of items requested is near to the amount of items to get i.e. if you increase the amount of keys, you will see the issue less often but that can be avoided. The following met...
[ -0.25282254815101624, -0.30455639958381653, 0.4189513325691223, 0.22292044758796692, 0.08374049514532089, -0.0599886029958725, 0.24968039989471436, -0.29445019364356995, -0.48231324553489685, -0.616766631603241, -0.08239074796438217, 0.8527522087097168, -0.06870269030332565, 0.337696343660...
Random rand = new Random(); for (int i = 0; i < numberPossibleToGet; i++) { int randomIndex = rand.Next(keysRemaining.Count); keysToReturn.Add(keysRemaining[randomIndex]); keysRemaining.RemoveAt(randomIndex); } return keysToReturn; } ``` The timeout was necessary on your versio...
[ -0.19777239859104156, -0.49572670459747314, 0.08218017220497131, -0.023969212546944618, -0.2711590826511383, 0.023754196241497993, 0.3478456437587738, -0.4752720296382904, -0.22835560142993927, -0.3969895541667938, 0.31909245252609253, 0.4913768172264099, -0.15065093338489532, 0.3901263773...
version that relies on retries. **Update:** The above performs better than these variations: ``` List<string> GetSomeKeysSwapping(string[] cachedKeys, int requestedNumberToGet) { int numberPossibleToGet = Math.Min(cachedKeys.Length, requestedNumberToGet); List<string> keys = new List<string>(cachedKeys); ...
[ -0.36641186475753784, -0.4540277123451233, 0.7582045793533325, -0.22902144491672516, 0.057489339262247086, 0.2177465558052063, 0.3209085464477539, -0.43315255641937256, -0.273412823677063, -0.6100695729255676, -0.26133716106414795, 0.6395570039749146, -0.1438283771276474, 0.199918583035469...
} return keysToReturn; } List<string> GetSomeKeysEnumerable(string[] cachedKeys, int requestedNumberToGet) { Random rand = new Random(); return TakeRandom(cachedKeys, requestedNumberToGet, rand).ToList(); } ``` Some numbers with 10.000 iterations: ``` Function Name Elapsed Inclusive Time Number of Cal...
[ -0.14583009481430054, -0.1689409464597702, 0.34686577320098877, -0.05875677987933159, 0.18005576729774475, 0.4935142695903778, 0.337880402803421, -0.45947104692459106, -0.35926932096481323, -0.30565345287323, 0.07142994552850723, 0.6658151745796204, 0.10821080207824707, 0.21356922388076782...
At present I am populating a standard .net 2.0 GridView & TreeView control using a physical XML document which uses an XSLT stylesheet. But i need to make the population of the grid more dynamic, while still using the XSLT style sheet Does anyone know if it is possible to populate a standard .net 2.0 Gridview & TreeVi...
[ 0.5392707586288452, -0.19117477536201477, 0.6291588544845581, -0.008026864379644394, -0.08891089260578156, -0.23229971528053284, -0.09477484971284866, -0.04224960505962372, -0.14065882563591003, -0.8055526614189148, -0.031203322112560272, 0.33061209321022034, -0.18331147730350494, 0.067083...
to make a physical file? If you are using an XmlDataSource you can set the Data property to any block of Xml. For example you could have a method which calls a webservice, returns some Xml, performs a transform and then assigns to the Data property. Calling DataBind on your grid will then update. It is important to not...
[ 0.5815752744674683, -0.22113798558712006, 0.24462682008743286, 0.35199129581451416, 0.0736982449889183, 0.056942250579595566, -0.05919340252876282, -0.6053034067153931, -0.26043835282325745, -0.6894863247871399, 0.04672430828213692, 0.5009928345680237, -0.14290611445903778, 0.3168988227844...
Visual Studio 2008 comes with nice javascript debugging features. But I have played a little with NetBeans debugger wich has installed an ugly Script Debugger from Microsoft to my IE... Normally IE should ask what do I want to use for debugging, but now I can't start debugging with Visual Studio, the Script Debugger i...
[ -0.11802753806114197, 0.3175414502620697, 0.2723881006240845, -0.014517861418426037, -0.7203665375709534, -0.33139508962631226, 0.5481040477752686, 0.026511844247579575, 0.19272403419017792, -0.6198778748512268, 0.27201297879219055, 0.8123992681503296, -0.36941400170326233, 0.1173951998353...
resolved yet, but I'll share what I have. To let IE see the debugger again do this: 1. Open Visual Studio. 2. Go to Tools > Options > Debugging > Just-In-Time. 3. Enable Script checkbox, click OK. 4. Close Visual Studio. Now when I try to debug it opens Visual Studio but gives this error: "Unable to attach to the...
[ 0.1764541119337082, 0.30176249146461487, 0.5143526792526245, -0.024723179638385773, -0.17018356919288635, -0.41448187828063965, 0.45517975091934204, 0.06549417972564697, -0.12314707785844803, -0.9214341044425964, -0.2700125575065613, 0.8050261735916138, 0.011450249701738358, 0.248977854847...
I have: ``` unsigned char *foo(); std::string str; str.append(static_cast<const char*>(foo())); ``` The error: `invalid static_cast from type ‘unsigned char*’ to type ‘const char*’` What's the correct way to cast here in C++ style? reinterpret\_cast
[ 0.19293728470802307, 0.414590448141098, 0.28630968928337097, -0.3460582494735718, 0.03675121068954468, -0.11111539602279663, 0.40025609731674194, -0.4672390818595886, 0.11968624591827393, -0.2508942186832428, 0.025133667513728142, 0.7011913061141968, -0.3187492787837982, 0.1524407714605331...
Does anyone use the MS SharePoint Solution Generator and VSeWSS 1.2 in a multi-developer environment with source safe? We are having issues **re**-deploying (because it doesn't really **upgrade** the solution with stsadm). It keeps saying the same feature is already installed - which it is, but it should retract the fe...
[ 0.44067803025245667, 0.018361099064350128, 0.4326196610927582, 0.2764706611633301, -0.038320209830999374, -0.3978821635246277, 0.4504174590110779, -0.08560771495103836, -0.08880911767482758, -0.7721235752105713, 0.10501059144735336, 0.8533764481544495, -0.4789518117904663, -0.0069796927273...
see the nice deployment targets (upgrade, etc) in STSDev but we're reluctant to use STSDev or the other codeplex tools because they are not supported by Microsoft. We have Visual Studio 2005 but not the money to upgrade to VS 2008 to get VSeWSS 1.**3** - bummer. ---UPDATE---- I think we found a bug in VSeWSS that othe...
[ 0.4592738747596741, -0.05365294963121414, 0.40408560633659363, -0.022470539435744286, -0.10714659094810486, -0.16451744735240936, 0.3340199887752533, -0.1761903315782547, -0.1370888203382492, -0.7563663721084595, 0.2755466401576996, 0.8211200833320618, -0.29766005277633667, -0.260376811027...
the usual "works on my machine" you should set up a build and deployment system. If you are using virtual server or ESX server it should be fairly simply, and cheap as well. You should be able to use open source software all the way if you have more man power then money.
[ 0.7489907145500183, 0.2547764182090759, 0.17728343605995178, 0.29370641708374023, 0.17297975718975067, -0.0759851485490799, 0.1648557037115097, 0.14761248230934143, -0.13926196098327637, -0.8963671326637268, -0.10493163019418716, 0.7409361004829407, 0.12092989683151245, -0.1336599141359329...
I have read the [perldoc on modules](http://perldoc.perl.org/perlmod.html), but I don't see a recommendation on naming a package so it won't collide with builtin or CPAN module/package names. In the past, to develop a local Session.pm module, I have created a local directory using my company's name, such as: ``` pack...
[ 0.3413163423538208, 0.11945746839046478, 0.2014094740152359, -0.19776538014411926, -0.1770142763853073, -0.2524537444114685, 0.040856897830963135, -0.11384303867816925, -0.4378192126750946, -0.05772732198238373, -0.11895528435707092, 0.5472525954246521, -0.2838653326034546, 0.3596401214599...
Best Practices* but I may not have been looking in the right place... Any recommendations on avoiding package namespace collisions the right way? **Update w/ Related Question**: if there *is* a package name conflict, how does Perl choose which one to use? Thanks everyone. The namespace `Local::` has been reserved fo...
[ 0.11389198154211044, 0.13120508193969727, 0.2803553640842438, 0.18844535946846008, -0.19630783796310425, -0.452949196100235, 0.320401668548584, -0.06671518087387085, -0.5074926614761353, -0.26787567138671875, -0.3001072108745575, 0.5412202477455139, 0.03172377124428749, 0.07454170286655426...
for the module".) Note that both those reservations apply only to the top-level name. For example, there are CPAN modules named `Time::Local` and `Text::CSV_XS`. But `Local::Time` and `Text_CSV::XS` are reserved names and would not be accepted on CPAN. Naming modules after your company is fine too. (Well, unless you ...
[ 0.03748799487948418, 0.020865339785814285, 0.5200930833816528, 0.0743420422077179, -0.010874968022108078, -0.21069011092185974, 0.076959528028965, -0.04451858252286911, -0.31393396854400635, -0.04950106143951416, -0.27752190828323364, 0.41202807426452637, -0.33406805992126465, 0.3911723494...
first module found is the one used. So the order of directories in `@INC` determines which module would be used (if you have modules with the same name installed in different locations). `perl -V` will report the contents of `@INC` (the highest-priority directories are listed first). But there are lots of ways to mani...
[ 0.43911564350128174, -0.25998935103416443, 0.2418927699327469, 0.18035826086997986, -0.0399707593023777, -0.23544490337371826, 0.034531284123659134, -0.25773850083351135, -0.3974170684814453, -0.3058261573314667, -0.29707252979278564, 0.5521326065063477, -0.35431626439094543, 0.09068354219...
Let's say I have a JButton, and I want it to be big enough to fit a string of 8 "M" characters, regardless of the string that is actually assigned to it and the font size, without using elipsis. The JButton has to have precisely this size, no more, no less. Layout manager in use is GridBagLayout. I tried overwriting ...
[ 0.21445634961128235, 0.14416323602199554, 0.5638977289199829, -0.25079941749572754, 0.046530917286872864, 0.3376810848712921, -0.11853278428316116, -0.02363833226263523, -0.4236753284931183, -0.6647214293479919, -0.2985050082206726, 0.4310445487499237, -0.26284557580947876, -0.062814541161...
borders are also considered. I tried to get the insets of the component, but they are all 0's. This is the code of my method: ``` public void getPreferredSize() { Dimension d = super.getPreferredSize(); // Geometry width indicates how many characters must fit char[] pad = new char[propGeomet...
[ 0.002748530823737383, -0.24622629582881927, 0.910436749458313, -0.20495600998401642, 0.19712993502616882, 0.11585819721221924, 0.12722131609916687, -0.651594340801239, -0.045082639902830124, -0.8231968879699707, -0.21485793590545654, 0.47143247723579407, -0.08473017066717148, -0.1025871858...
Rectangle2D tmpR2D = tmpMetrics.getStringBounds(tmpTemplateString, getGraphics()); int tmpWidth = (int)tmpR2D.getWidth(); int tmpHeight = (int)(tmpR2D.getHeight() * propGeometryHeight + tmpR2D.getHeight()); // We need to take into consideration borders and padding! Insets insets = getI...
[ 0.06057272478938103, -0.6049933433532715, 1.1237332820892334, 0.11748034507036209, 0.24127982556819916, -0.0914628803730011, 0.12250610440969467, -0.619290828704834, -0.4224599599838257, -0.845069408416748, -0.31319093704223633, 0.4065396189689636, -0.26892054080963135, 0.05820386856794357...
related to the fact that my component is not realized yet, but I am completely unsure how I could solve this issue. Am I approaching this problem from the wrong perspective? I think you may actually be doing it right already. From the [Javadoc for `getInsets()`](http://java.sun.com/javase/6/docs/api/javax/swing/JCompon...
[ 0.5540125370025635, -0.49354979395866394, 0.7024887204170227, -0.017589611932635307, 0.06151212006807327, 0.025187065824866295, 0.3352605998516083, -0.2772807776927948, -0.5450849533081055, -0.8084976077079773, 0.007955800741910934, 0.5741164684295654, -0.32724499702453613, -0.154581978917...
``` XmlElement updateRecipient = doc.CreateElement("UpdateRecipient"); XmlElement email = doc.CreateElement("EMAIL"); XmlElement listID = doc.CreateElement("LIST_ID"); XmlElement column = doc.CreateElement("COLUMN"); XmlElement name = doc.CreateElement("NA...
[ 0.2567855417728424, 0.4692131578922272, 0.4020843505859375, -0.2669026851654053, 0.02447608858346939, 0.04439569637179375, -0.0894358679652214, -0.3491098880767822, 0.02972385473549366, -0.5764922499656677, -0.5879104733467102, 0.32050108909606934, -0.4805647134780884, 0.13234493136405945,...
root.AppendChild(body); body.AppendChild(updateRecipient); updateRecipient.AppendChild(listID); listID.InnerText = _listID; updateRecipient.AppendChild(email); email.InnerText = _email;
[ -0.30239418148994446, 0.13217709958553314, 0.38394010066986084, -0.34128838777542114, -0.04570142552256584, 0.45994919538497925, 0.6401536464691162, -0.25660446286201477, -0.11052411049604416, -0.7942796945571899, -0.21298909187316895, 0.37249240279197693, -0.2899603545665741, 0.0609556250...
updateRecipient.AppendChild(column); column.AppendChild(name); name.InnerText = _columnNameFrequency; column.AppendChild(value); value.InnerText = _actionID.ToString(); updateRecipient.AppendChild(column);
[ -0.6640255451202393, -0.0010908333351835608, 0.6147671341896057, -0.41521143913269043, 0.14307637512683868, 0.5384343862533569, 0.4621853530406952, -0.32248416543006897, -0.021204616874456406, -0.6145362854003906, -0.4235266149044037, 0.604930579662323, -0.3962048292160034, -0.012449505738...
column.AppendChild(name); name.InnerText = _columnNameStatus; column.AppendChild(value); ``` for some reason, I end up getting only one sub column instead of two under updateRecipient Element. I need both to show up under UpdateRecipient Node like this: ``` <UpdateRecipient> <LIST_ID>...
[ -0.5419564247131348, 0.060793742537498474, 0.7965487241744995, -0.11189489811658859, -0.34735307097435, 0.5960304141044617, 0.34571605920791626, -0.4107988476753235, -0.28065693378448486, -0.8610336780548096, 0.03183009847998619, 0.40534859895706177, -0.14814600348472595, 0.019477516412734...
then is later overrident by the Status and I want it to just append a new under and I'mnot sure why it's overriding rather than adding another tag. The problem is that you are reusing the "column", "name", & "value" variables. You need to create new XmlElements for the 2nd set.
[ 0.2353108674287796, 0.06294113397598267, 0.5547288656234741, 0.12525400519371033, -0.09076946973800659, -0.05563715845346451, 0.2385958880186081, -0.1343238204717636, -0.019745364785194397, -0.5622057318687439, -0.20365604758262634, 0.30608683824539185, -0.010205061174929142, 0.09772900491...
One of the previous developers where I work habitually, consistently used: ``` ConfigurationSettings.AppSettings["Foo"].ToString() ``` It twigs me a bit since AppSettings collection items are already strings, but I got to wondering: way back in the ancient days of .net 1.0 and 1.1, did the collection store its item...
[ -0.03682715445756912, 0.007736205589026213, 0.46522974967956543, 0.017987433820962906, 0.09847667813301086, -0.17411765456199646, 0.0642324909567833, 0.027598189190030098, -0.3187549114227295, -0.4632049798965454, -0.24517163634300232, 0.4090516269207001, -0.5037667155265808, 0.10182207822...
I have an interface like so: ``` public interface IDocument : ISerializable { Boolean HasBeenUploaded { get; set; } void ISerializable.GetObjectData(SerializationInfo, StreamingContext) { } } ``` There are three documents that inherit from this, all of which serialize just fine. But when creating a simple we...
[ 0.2814823389053345, -0.1386537104845047, 0.5416465401649475, 0.10849915444850922, 0.01277197990566492, -0.2141028642654419, 0.28430303931236267, -0.3334364891052246, 0.018331410363316536, -1.044098138809204, -0.11956019699573517, 0.41659268736839294, -0.3649158775806427, 0.3784832954406738...
just returns true } } ``` I get this when trying to run it: "Cannot serialize interface IDocument" I'm not quite sure why this would be a problem. I know that [some people](https://stackoverflow.com/questions/360208/enforcing-serializable-from-an-interface-without-forcing-classes-to-custom-serial) have had troub...
[ 0.26632076501846313, 0.017800815403461456, 0.26788070797920227, -0.0001682252186583355, -0.05391357094049454, -0.35649996995925903, 0.3868122100830078, 0.10087408125400543, -0.3885086178779602, -0.7196589112281799, -0.11275898665189743, 0.7788952589035034, -0.4697025418281555, 0.3038297593...
attribute to your web method. A example can be found [here](http://www.pluralsight.com/community/blogs/craig/archive/2004/07/08/1580.aspx). We have run into this issue before and have added XmlInclude attributes to both our web service proxy class on the client and to certain web service methods. ``` [WebMethod] [XmlI...
[ 0.2173997014760971, 0.046815238893032074, 0.4474964737892151, 0.14476870000362396, -0.17702730000019073, -0.02705736644566059, 0.16540220379829407, -0.6619391441345215, 0.07189695537090302, -0.5139895677566528, 0.0891805961728096, 0.6478901505470276, -0.11120868474245071, 0.125064745545387...