text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
enough to fit the entire range of the file being mapped. This can become a problem if your address space becomes fragmented, where you might have 2 GB of address space free, but no individual range of it can fit a 1 GB file mapping. In this case you may have to map the file in smaller chunks than you would like to make...
[ 0.05427845939993858, -0.049683552235364914, 0.17923621833324432, 0.07199109345674515, -0.06407604366540909, 0.027766581624746323, 0.032337531447410583, -0.4132528007030487, -0.4164470434188843, -0.7068415284156799, -0.2807193696498871, 0.2662263810634613, -0.08155965805053711, -0.088687546...
offset `X` you will need to fixup that offset so it's compatible with `mmap`. And finally, read / write are the only way you **can** work with some types of files. `mmap` can't be used on things like [pipes](https://en.wikipedia.org/wiki/Named_pipe) and [ttys](https://en.wikipedia.org/wiki/Tty_(unix)).
[ 0.5919337272644043, 0.04987698793411255, 0.12099388241767883, 0.005724841728806496, -0.06070953235030174, -0.04475167393684387, -0.3817378580570221, -0.19187884032726288, -0.18635033071041107, -0.5880799293518066, -0.03152719512581825, 0.654075026512146, -0.25983917713165283, -0.3301425874...
What is the proper way to terminate a Swing application from the code, and what are the pitfalls? I'd tried to close my application automatically after a timer fires. But just calling `dispose()` on the `JFrame` didn't do the trick - the window vanished but the application did not terminate. However when closing the w...
[ 0.39173105359077454, 0.05345430225133896, 0.7148072123527527, -0.30079329013824463, -0.017068080604076385, -0.16969646513462067, 0.5116572380065918, -0.377598375082016, -0.15037278831005096, -0.4558165669441223, -0.24559839069843292, 0.46023857593536377, -0.19407649338245392, 0.28486332297...
should be considered a error (and solving it with System.exit is a very bad idea). The most common culprits are java.util.Timer and a custom Thread you've created. Both should be set to daemon or must be explicitly killed. If you want to check for all active frames, you can use [`Frame.getFrames()`](http://java.sun.c...
[ 0.39043816924095154, -0.033482104539871216, 0.11832956224679947, 0.09000008553266525, -0.04555029422044754, -0.3122517764568329, 0.4870097041130066, -0.004036430269479752, -0.46645185351371765, -0.7169516682624817, 0.02729855664074421, 0.3894088864326477, -0.5454736351966858, 0.32729190587...
I have signed numbers (2s complement) stored in 32-bit integers, and I want to extract 16-bit fields from them. Is it true that if I extract the low 16 bits from a 32-bit signed number, the result will be correct as long as the original (32-bit) number fits into 16 bits ? For positive numbers it is trivially true, and...
[ 0.3984088897705078, 0.06183815747499466, 0.017627988010644913, -0.29015272855758667, -0.312985360622406, 0.1003139317035675, 0.27292993664741516, -0.24387700855731964, -0.2058667093515396, -0.4225170910358429, -0.19099754095077515, 0.36863356828689575, -0.30981770157814026, -0.097596205770...
is ["sign extended"](http://en.wikipedia.org/wiki/Sign_extension) and has the same value. Example: [`Nibble`](http://en.wikipedia.org/wiki/Nibble)`(-2) = 1110 => Byte(-2) = 1111_1110` Obviously the opposite it true too, if you capture at least one sign bit then the value of the number remains unchanged.
[ 0.35948073863983154, -0.10536479204893112, 0.44831910729408264, -0.2980023920536041, -0.0928894653916359, -0.06220053508877754, -0.06069900095462799, -0.3229791522026062, -0.27949634194374084, -0.2853763699531555, -0.20828457176685333, 0.11395958811044693, -0.169642373919487, -0.1410922706...
I am investigating a production system where there are several Windows services communicating with each other through TCP/IP sockets. I'm trying to figure out which executable is listening to which IP address and which port on a given machine. Other than rummaging through each windows service's obscure configuration f...
[ 0.5775769948959351, 0.05409166216850281, -0.020122019574046135, 0.17319433391094208, 0.14622658491134644, -0.1701275259256363, 0.11116661876440048, 0.2812465727329254, -0.3006945252418518, -0.6751917600631714, -0.09262420982122421, 0.5352078676223755, -0.0614316463470459, 0.341394394636154...
at C:\WINNT\system32\netstat.exe . A help page is available with ``` netstat -? ``` Examples are: ``` netstat -a ``` Lists all local TCP connections and listening ports together with remote TCP endpoint. ``` netstat -o ``` Adds the process ID to the output. ``` netstat -b ``` Gives you the name of the ex...
[ 0.006407696288079023, 0.03802555426955223, 0.04649104177951813, 0.04771820828318596, 0.20026730000972748, -0.23176388442516327, -0.0028180787339806557, 0.28685542941093445, -0.21336236596107483, -0.781916081905365, -0.18610045313835144, 0.2307487428188324, -0.21668751537799835, 0.483132809...
I'm operating a neighbourhood [WIFI network in a rural environment](http://maps.google.de/maps/ms?ie=UTF8&hl=de&msa=0&msid=101021148567197540440.00043fcffa4cdf06fb4bc&ll=51.791948,8.173571&spn=0.033976,0.058365&t=h&z=14). Now I'm looking fo a monitoring tool to run on a server (Windows or Linux) which would track band...
[ 0.3391958773136139, -0.18190239369869232, 0.762834370136261, -0.08510430157184601, 0.1565728634595871, 0.0014818385243415833, 0.437438040971756, -0.05018571764230728, -0.3243549168109894, -0.9065878987312317, -0.09218933433294296, 0.32644644379615784, -0.2776418626308441, -0.03125335648655...
setup it's a single command: ``` cfgmaker --output=mrtg_myrouter.cfg public@1.2.3.4 ``` MRTG is good for high-bandwidth routers and the likes. It's not great for other data (it can be coerced into graphing most things, but it's a little unintuitive to setup) For monitoring other stuff I like [Munin](http://munin.pr...
[ 0.4505261182785034, -0.13062319159507751, 0.6094708442687988, 0.2474743276834488, -0.40082213282585144, -0.5938446521759033, -0.020452475175261497, 0.0023629004135727882, -0.7129938006401062, -0.6432530283927917, -0.11718235909938812, 0.6571366190910339, -0.41133448481559753, -0.2117307335...
are also prettier than MRG, I would say (clearly the most important factor..) There's an example installation of [MRTG here](http://www.switch.ch/network/operation/statistics/geant2.html), and [Munin here](http://munin.ping.uio.no/)
[ 0.24216842651367188, -0.6329851150512695, 0.3443993926048279, 0.2911728024482727, 0.10574781149625778, -0.10317430645227432, 0.15009556710720062, 0.11380533128976822, -0.486223429441452, -0.5260992050170898, -0.22682057321071625, 0.4493577778339386, 0.10104662925004959, -0.1863162070512771...
I'm doing .NET 3.5 programming in VB for a class. I have a .mdb database with 3 related tables, and a table adapter with some queries on it that look like this: ``` SELECT PropertyID, Street, Unit, City, Zip, Type, Bedrooms, Bathrooms, Area, MonthlyRent FROM tblProperties ``` Then in a form i have a Data...
[ 0.47667449712753296, 0.20141659677028656, 0.5761104226112366, -0.2526894807815552, -0.07539820671081543, 0.030177975073456764, 0.22440864145755768, -0.2024064064025879, -0.04290374740958214, -1.0317856073379517, 0.11891596019268036, 0.35793331265449524, -0.1330033242702484, 0.3169272243976...
selected (The ten are the only ones that have data in them however... so it's basically a table with a bunch of blank columns). My current, inelegant solution is to return the query to a DataTable, then iterate through the table's columns, deleting the one's i dont want. This is not robust, efficient, and does not lik...
[ -0.08162800967693329, -0.011267993599176407, 0.31502342224121094, 0.31762903928756714, -0.12404266744852066, 0.2703436613082886, -0.057135287672281265, -0.16033883392810822, -0.16966572403907776, -0.48794615268707275, 0.0026962230913341045, 0.41587045788764954, -0.2887582778930664, 0.25723...
.aspx/.aspx.vb pages, but this is the query code i have from the table adapter ``` SELECT tblRent.PaymentID, tblTenant.TenantName, tblProperties.Street, tblProperties.Unit, tblProperties.City, tblRent.AmountPaid, tblRent.PaymentDate, tblTenant.Telephone FROM ((tblProperties INNER JOI...
[ 0.13393442332744598, -0.1235760748386383, 0.9002346396446228, 0.004365175496786833, 0.2856324017047882, 0.488288938999176, 0.16692475974559784, -0.3447047472000122, -0.28684067726135254, -0.6309197545051575, -0.11265605688095093, 0.5132412314414978, -0.0894099622964859, 0.14024774730205536...
tblTenant ON tblProperties.PropertyID = tblTenant.PropertyID) ``` and here is where i use it in code: ``` Public Sub getRent() propView.DataSource = TblPropertiesTableAdapter.GetAllRentReceipts() propView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells) propView.ReadOnly = True ...
[ 0.020231030881404877, -0.38053280115127563, 1.088508129119873, -0.026616277173161507, -0.04018687084317207, -0.2920238971710205, 0.17967891693115234, -0.1522529274225235, -0.32155144214630127, -0.7201434373855591, -0.18176546692848206, 0.9202579855918884, -0.31199368834495544, -0.049233261...
great for other data (it can be coerced into graphing most things, but it's a little unintuitive to setup) For monitoring other stuff I like [Munin](http://munin.projects.linpro.no/). I would describe it again, but I posted an answer a while ago [here](https://stackoverflow.com/questions/40737/generate-disk-usage-grap...
[ 0.25860774517059326, -0.41782259941101074, 0.2748293876647949, 0.34829404950141907, -0.14687184989452362, -0.5360624194145203, 0.08023489266633987, 0.10143262892961502, -0.7068108320236206, -0.5132365226745605, -0.02739879861474037, 0.6466853618621826, -0.20370863378047943, -0.095907866954...
[MRTG here](http://www.switch.ch/network/operation/statistics/geant2.html), and [Munin here](http://munin.ping.uio.no/)
[ 0.10264653712511063, -0.53193199634552, 0.4315272271633148, 0.18546105921268463, 0.12386053055524826, -0.0643806904554367, -0.07522906363010406, -0.02253107912838459, -0.5429307222366333, -0.52904212474823, -0.4239937663078308, 0.36419543623924255, -0.04001787304878235, -0.0112543441355228...
On our TFS source control server, a lot of source files are checked out by people, which are not employed any more. Is there a central way where I can undo check out on all files in TFS? I'm not even sure that they exists in Active Directory anymore. Best thing to do is to delete their workspace using with the comman...
[ 0.550854504108429, 0.14850613474845886, 0.14811064302921295, 0.08111601322889328, 0.17721015214920044, -0.7212167978286743, 0.46339747309684753, -0.23527447879314423, -0.1710481494665146, -0.5300924181938171, -0.18555067479610443, 0.46335461735725403, -0.1649807244539261, 0.267997592687606...
I have a dictionary that I normally access with a key, so I need fast random access reads. However for one function I need to process every item in the dictionary where the order is important. It seems to be working OK in tests. Is it OK to depend on the order of items in a dictionary? No. If you need to keep an order,...
[ 0.40452560782432556, 0.02696218527853489, -0.060875244438648224, 0.12175237387418747, -0.11217241734266281, 0.08061914891004562, 0.21509160101413727, -0.12624213099479675, -0.2384788542985916, -0.48495835065841675, 0.13670137524604797, 0.5822486281394958, -0.08370807766914368, 0.0706711411...
that .NET doesn't have a dictionary which supports this itself - it's a reasonably common request - Java does, as [LinkedHashMap](http://java.sun.com/javase/6/docs/api/java/util/LinkedHashMap.html).
[ 0.25825661420822144, 0.14955592155456543, 0.09023367613554001, -0.021159637719392776, -0.12357273697853088, -0.39405715465545654, 0.1794915497303009, 0.08752894401550293, -0.29401713609695435, -0.4538153111934662, -0.3129272758960724, 0.316623717546463, -0.33797740936279297, 0.034763440489...
I have a web server which saves cache files and keeps them for 7 days. The file names are md5 hashes, i.e. exactly 32 hex characters long, and are being kept in a tree structure that looks like this: ``` 00/ 00/ 00000ae9355e59a3d8a314a5470753d8 . . 00/ 01/ ``` You get the idea. My problem is that de...
[ 0.21953624486923218, 0.5001095533370972, 0.3538982570171356, -0.030493896454572678, 0.20343166589736938, 0.05319146811962128, 0.3920614421367645, -0.20002354681491852, -0.3452742099761963, -0.678161084651947, -0.1672716736793518, 0.582510232925415, 0.14928178489208221, 0.472156822681427, ...
this has on the performance of the server. Additionally, the cache directory is now a black hole in my system, trapping the occasional innocent `du` or `find`. The standard solution to LRU cache is some sort of a heap. Is there a way to scale this to the filesystem level? Is there some other way to implement this in a...
[ 0.19654297828674316, -0.11715434491634369, 0.5630343556404114, -0.0659228265285492, 0.0654837042093277, -0.014576499350368977, 0.23664894700050354, 0.05200369656085968, -0.1547994464635849, -0.5398267507553101, -0.015510259196162224, 0.3827516436576843, -0.01095860917121172, 0.501234173774...
file is overwritten, and I'm not sure what it will do to the deletion time. 2. Save the files as blobs in a MySQL table with indexes on name and date. This seemed promising, but in practice it's always been much slower than FS. Maybe I'm not doing it right. Any ideas? When you store a file, make a symbolic link to a s...
[ 0.1700962781906128, -0.13984090089797974, 0.20169347524642944, 0.12429622560739517, 0.17216263711452484, -0.18001362681388855, -0.017589449882507324, 0.24589236080646515, -0.32702648639678955, -0.8373336791992188, -0.15777157247066498, 0.21144050359725952, -0.10832972079515457, 0.348205834...
Is there any way of using Memcached for fragment caching in Rails? You can set the fragment\_cache\_store in your environment.rb ``` ActionController::Base.cache_store = ActiveSupport::Cache::MemCacheStore.new() ``` <http://api.rubyonrails.org/classes/ActionController/Caching.html#M000628>
[ -0.07507432252168655, -0.030632080510258675, -0.05504486337304115, -0.0033999672159552574, -0.13776928186416626, -0.007347460836172104, 0.5150656700134277, -0.28726083040237427, -0.4127146899700165, -0.5288318395614624, -0.16729609668254852, 0.38165879249572754, -0.39477676153182983, 0.134...
I created an html helper ``` Html.BreadCrumb(IDictionary<string, string> crumbs) ``` Where the first string is the label and the second string is the URL. The helper creates the html required (an unordered list, some classes for first element, current element, last element, dead element and separators etc) All work...
[ 0.21801558136940002, 0.12387873232364655, 0.5251852869987488, -0.04889127239584923, -0.36105361580848694, 0.02735368348658085, 0.16882261633872986, -0.011940842494368553, -0.026426663622260094, -0.5954998135566711, -0.06065898761153221, 0.27418819069862366, -0.5791085958480835, 0.057529032...
instead of a stringbuilder? Or any other issues/improvements you have? It certainly is possible to use Response.Write instead of returning a string; see the source for System.Web.Mvc.Ajax.Form (in AjaxExtensions.cs) in the MVC source for an example. You then call the helper with <% instead of <%=. Will it be any fas...
[ -0.1834922581911087, -0.46921274065971375, 0.34784969687461853, 0.11697867512702942, -0.31209754943847656, 0.11848203092813492, 0.41316139698028564, 0.037904322147369385, -0.2592334747314453, -0.6941395998001099, 0.04738086834549904, 0.832606852054596, -0.4339507222175598, -0.0694408565759...
In either a Windows or Mac OS X terminal if you type... ``` nslookup -type=SRV _xmpp-server._tcp.gmail.com ``` ... (for example) you will receive a bunch of SRV records relating to different google chat servers.. Does anyone have any experience in this area and possibly know how to service this information (hostnam...
[ 0.1469254344701767, 0.13193783164024353, 0.3945838510990143, 0.014696737751364708, -0.031834401190280914, -0.18772459030151367, 0.36933833360671997, 0.20910529792308807, -0.38776323199272156, -0.7151355147361755, -0.10787166655063629, 0.46520155668258667, -0.08227287232875824, 0.2067868411...
details](https://developer.apple.com/library/mac/documentation/networking/conceptual/dns_discovery_api/Introduction.html). I've included some (incomplete) sample code too: ``` #include <dns_sd.h> int main(int argc, char *argv[]) { DNSServiceRef sdRef; DNSServiceErrorType res; DNSServiceQueryRecord( &s...
[ 0.00691255833953619, -0.003370590042322874, 0.4024164378643036, -0.032066185027360916, -0.003239590674638748, 0.05507253482937813, 0.20924220979213715, -0.4855198562145233, -0.18759097158908844, -0.3904711604118347, -0.2427665889263153, 0.6491442918777466, -0.08950527757406235, 0.262715041...
In a visual studio project I have three layers, Data Layer, Business Layer and Presentation Layer. In the Data Layer I have a few XSLT's that transform some objects into an email, all works fine but I have discovered that the XSLTs do not get built/copied when building. I have currently, created a folder in the dep...
[ 0.5891241431236267, 0.1531175971031189, 0.1989753246307373, -0.08053948730230331, -0.23324480652809143, -0.09469448029994965, 0.2647501826286316, 0.0725211426615715, -0.05204899609088898, -0.7777712941169739, -0.054454877972602844, 0.713506817817688, -0.14304541051387787, -0.16719968616962...
the build artifacts to the required location, does anyone have examples of this? Thaks If you are using Visual Studio 2005/2008, the easiest way to do this is by including your XSLT files as project resources. 1. Open the Properties for your project. 2. Select the Resources tab. You will probably see a link that says...
[ 0.40115025639533997, 0.23441672325134277, 0.08621330559253693, 0.1851377934217453, -0.2338927686214447, -0.1565970480442047, 0.26133280992507935, -0.2691984474658966, -0.1637895107269287, -0.7545649409294128, -0.00492826197296381, 0.6382514238357544, -0.06234808266162872, -0.01327376440167...
access the resources in the following manner: ``` // To get the contents of the resource as a string: string xslt = global::MyNamespace.Properties.Resources.MyXsltFile; // To get a Stream containing the resource: Stream xsltStream = global::MyNamespace.Properties.Resources.ResourceManager.GetStream("MyXsltFile"); ```...
[ -0.10623633861541748, 0.10451573133468628, 0.6439539790153503, -0.11203955858945847, 0.004016299732029438, 0.00635507283732295, 0.0531747080385685, -0.1813753992319107, -0.14942023158073425, -0.8205186724662781, -0.25490647554397583, 0.7881278395652771, -0.25285840034484863, 0.149973422288...
the folder containing the file, and the name of the file. For example, say your data layer assembly has a default namespace of My.DataLayer. Within your data layer project you have a folder named Templates which contains a file called Transform.xslt. The code to get your XSLT would look like this: ``` // There are nu...
[ 0.7001434564590454, -0.15208496153354645, 0.5880598425865173, -0.043805237859487534, -0.14405275881290436, -0.16629092395305634, 0.2909981906414032, -0.3912460505962372, -0.15075738728046417, -1.0206233263015747, -0.09802954643964767, 0.456486314535141, -0.36139580607414246, 0.341848641633...
[this article on CodeProject](http://www.codeproject.com/KB/dotnet/embeddedresources.aspx).
[ 0.34749525785446167, -0.013794765807688236, 0.14005640149116516, 0.019546063616871834, 0.1662384569644928, -0.11880602687597275, 0.17954161763191223, 0.41798096895217896, -0.41439831256866455, -0.3765387535095215, -0.6819413900375366, 0.38113483786582947, -0.37292197346687317, -0.117890074...
I have a models `A` and `B`, that are like this: ``` class A(models.Model): title = models.CharField(max_length=20) (...) class B(models.Model): date = models.DateTimeField(auto_now_add=True) (...) a = models.ForeignKey(A) ``` Now I have some `A` and `B` objects, and I'd like to get a query that selects a...
[ 0.14013659954071045, 0.07476215064525604, 0.3541160523891449, -0.25039151310920715, 0.20574793219566345, -0.01948457397520542, -0.04261237382888794, -0.020868707448244095, -0.296947717666626, -0.5200202465057373, 0.03888021782040596, 0.42895179986953735, -0.22425389289855957, 0.36484739184...
[`extra`](http://docs.djangoproject.com/en/dev/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none). ``` A.objects.extra( select={ 'b_count': 'SELECT COUNT(*) FROM yourapp_b WHERE yourapp_b.a_id = yourapp_a.id', }, where=['b_count < 2'] ) ```...
[ 0.32388344407081604, 0.024754229933023453, 0.5553417205810547, -0.24044334888458252, -0.27124708890914917, 0.3046715259552002, -0.11718970537185669, -0.7479722499847412, -0.6692060232162476, -0.13432176411151886, -0.24262507259845734, 0.34091225266456604, -0.5920363664627075, -0.0630709528...
for the A related to the given B. """ if not kwargs.get('created', True) or kwargs.get('raw', False): return cursor = connection.cursor() cursor.execute( 'UPDATE yourapp_a SET b_count = (' 'SELECT COUNT(*) FROM yourapp_b ' 'WHERE yourapp_b.a_id = yourapp_a.id' ...
[ 0.11954138427972794, -0.25367265939712524, 0.6148530840873718, -0.17654715478420258, 0.0741429552435875, 0.05248815566301346, 0.41098514199256897, -0.5350467562675476, -0.3118399679660797, -0.515921950340271, -0.2115389108657837, 0.4758719205856323, -0.4098963737487793, 0.324738472700119, ...
'WHERE id = %s', [instance.a_id]) transaction.commit_unless_managed() post_save.connect(update_b_count, sender=B) post_delete.connect(update_b_count, sender=B) ``` Another solution would be to manage a status flag on the A object when you're adding or removing a related B. ``` B.objects.create(a=some_a) if some...
[ 0.2859654128551483, -0.21816280484199524, 0.15295378863811493, -0.22085894644260406, 0.020370762795209885, 0.06519275903701782, 0.3291933536529541, -0.17155824601650238, -0.5390849709510803, -0.6215657591819763, -0.3356918692588806, 0.22723488509655, -0.5072819590568542, 0.2635858654975891...
I have a database that many different client applications (a smattering of web services, some java apps and a few dot net applications) connect to. Not all of these are running on windows (Sadly, otherwise it would make this an easy answer question with just enabling windows authentication for database connections). At...
[ 0.6472343802452087, 0.5061575174331665, 0.3756764531135559, 0.07915789633989334, 0.45348966121673584, -0.31936025619506836, 0.06912756711244583, 0.03330268710851669, -0.09948807954788208, -0.534487783908844, -0.18260782957077026, 0.5005043148994446, 0.20835483074188232, 0.24492979049682617...
to get a fair whack of data as it stands now. My question then, What is the best way to keep the passwords configurable, without having it too easily available to the casual human reader? **Edit** Just to clarify, DB server is Windows Server 2003, running MSSQL 2005. PS: I don't see any questions that this duplicate...
[ 0.05971280857920647, 0.25408506393432617, 0.39798733592033386, 0.28929534554481506, -0.11911125481128693, -0.2958914339542389, 0.3040480315685272, 0.3697548806667328, -0.3493306636810303, -0.35655122995376587, 0.0907011330127716, 0.5621615052223206, -0.26434147357940674, 0.0879563391208648...
the password with a bit of reverse engineering. Remember that you do not need to use the same protection for each different client. A few steps:- 1. Create different database accounts for different systems that access your database 2. Limit access on the database to only what they need using your inbuilt database GRA...
[ 0.4146674871444702, -0.010053492151200771, 0.25101950764656067, 0.4246329069137573, 0.20114761590957642, -0.27769532799720764, 0.6100344657897949, -0.28313714265823364, 0.059968382120132446, -0.7245668768882751, -0.09991706162691116, 0.8259641528129578, -0.07603780925273895, 0.140377521514...
and your operations staff then need to know the password. It's probably less secure.
[ 0.1962958574295044, 0.293291836977005, 0.3152748942375183, 0.13794662058353424, 0.45129337906837463, -0.36035263538360596, 0.3807981610298157, 0.011775444261729717, -0.3019119203090668, -0.24092286825180054, -0.3277289569377899, 0.5391311049461365, 0.17289616167545319, -0.31332534551620483...
With CSS bugs, do you fix them as and when they arise during each stage of your development, or do you save them up till the end? as I'm at quite an early stage in a large project and seem to be getting bogged down with annoying IE6 bugs. good advise here: test as you go along, YUI grid, scan the [list of IE bugs](http...
[ 0.3936511278152466, 0.09818679839372635, 0.07237822562456131, 0.05990305915474892, -0.1614242047071457, -0.36184048652648926, 0.5293424725532532, -0.001155290985479951, -0.281610369682312, -0.6853790283203125, 0.05594265088438988, 0.48951634764671326, -0.39744484424591064, -0.2741919755935...
looking for the standard bug-proofed way to convert "long names" such as "C:\Documents and settings" to their equivalent "short names" "C:\DOCUME~1" I need this to run an external process from withing my C# app. It fails if I feed it with paths in the "long name". Does the external process fail even if you enclose the...
[ 0.3132261037826538, 0.25355634093284607, 0.041368577629327774, -0.014295906759798527, 0.3940788209438324, -0.13992033898830414, 0.645118772983551, 0.11237814277410507, -0.14640741050243378, -0.41012319922447205, -0.17868100106716156, 0.5372304320335388, -0.6478615999221802, 0.1060406491160...
A lot of iPhone apps use a blue badge to indicate the number of items in the subviews, such as the Mail client: [iPhoto http://img.skitch.com/20081103-tjr9yupbhgr3sqfh7u56if4rsn.preview.jpg](http://skitch.com/leonho/4xeu/iphoto) Are there any standards way (or even an API) do this? UPDATE: I have created a class cal...
[ 0.27118104696273804, -0.11208902299404144, 0.1430843323469162, 0.21467816829681396, -0.15441152453422546, -0.04032508656382561, 0.23589465022087097, -0.0356009416282177, -0.5177106261253357, -0.514522910118103, -0.03550031781196594, 0.15840955078601837, -0.22465847432613373, -0.27502518892...
radius = bounds.size.height / 2.0; NSString *countString = [NSString stringWithFormat: @"%d", count]; CGContextClearRect(context, bounds); CGContextSetFillColorWithColor(context, ovalColor); CGContextBeginPath(context); CGContextAddArc(context, radius, radius, radius, M_PI / 2 , 3 * M_PI / 2, NO); CGContex...
[ -0.14531484246253967, -0.1312425583600998, 0.7072799801826477, -0.11575957387685776, -0.29523611068725586, 0.32461413741111755, 0.2989654839038849, -0.5366798639297485, -0.34222662448883057, -0.38541123270988464, -0.0400642454624176, 0.341698557138443, -0.1794176548719406, 0.24815334379673...
drawInRect: bounds withFont: font]; ```
[ -0.11114982515573502, 0.10316076129674911, 0.5542845726013184, -0.2922007739543915, -0.015902886167168617, 0.0037764853332191706, 0.00030986874480731785, -0.35533958673477173, 0.06106267869472504, -0.514500081539154, -0.24261733889579773, 0.7073741555213928, -0.5206794142723083, -0.1197434...
I have a text file of URLs, about 14000. Below is a couple of examples: <http://www.domainname.com/pagename?CONTENT_ITEM_ID=100&param2=123> <http://www.domainname.com/images?IMAGE_ID=10> <http://www.domainname.com/pagename?CONTENT_ITEM_ID=101&param2=123> <http://www.domainname.com/images?IMAGE_ID=11> <http...
[ 0.32964810729026794, 0.393562912940979, 0.6536599397659302, -0.31947797536849976, -0.38691434264183044, 0.14514540135860443, 0.21017712354660034, -0.46852996945381165, -0.320180743932724, -0.5302300453186035, 0.1645464450120926, 0.06962041556835175, 0.26787301898002625, 0.25850462913513184...
I have a large project for which I am attempting to use TDD. I am using [Tut](http://tut-framework.sourceforge.net/) as my test framework, which has its flaws but is sufficient for what I need. I need to exploit link time test seams, **each test must be in its own executable**. The project for this executable then la...
[ 0.6977784633636475, 0.12337031215429306, -0.16034694015979767, 0.0842190533876419, -0.060857824981212616, -0.19184471666812897, 0.3402100205421448, -0.10394001007080078, 0.04226086661219597, -0.6035342812538147, -0.01361043006181717, 0.4791519343852997, -0.14194542169570923, 0.166180148720...
build and yet still have them build? "Is it possible to hide projects from a build and yet still have them build?" You can make separate solution for test cases. Then you can set up post build step of your main projects. This post-build should build tests-projects via separate solution and run them. Building test-proj...
[ 0.7845901250839233, 0.11929347366094589, 0.013828190974891186, 0.19009830057621002, 0.21785594522953033, -0.013646828010678291, 0.24655978381633759, -0.5128796100616455, -0.03748674318194389, -0.4811859726905823, -0.1782897561788559, 0.5483294129371643, 0.3055401146411896, 0.11991989612579...
Does hitting the back button in a web browser cause the session data set in the preceding call to be deleted? No, it does not. Well, if the user arrived to the previous page by POST (as opposed to GET) and reposts the page, the server is going to process the request again. It won't delete the data in the session thoug...
[ -0.027359407395124435, -0.0020687447395175695, 0.326969176530838, 0.06208553537726402, -0.10070943087339401, -0.1318778395652771, 0.6104956269264221, 0.338776171207428, -0.57562655210495, -0.4365267753601074, -0.38186314702033997, 0.2106861174106598, -0.4145280718803406, 0.3394720852375030...
I am having an ajax tab control in my page each tab contains some 15 controls. My tab container has some 10 tabs. Its take some time load in my web page. Please let me know how to reduce the page loading time. or anyother suggestions Since the number of database calls are less. The controls are read only displays. N...
[ 0.03485822677612305, 0.1070312112569809, 0.5152620673179626, 0.3023849129676819, -0.20997871458530426, 0.11154869943857193, 0.3153400123119354, 0.11220395565032959, -0.29912373423576355, -0.8697110414505005, 0.25166094303131104, 0.486164927482605, -0.2901113033294678, 0.08590462058782578, ...
achieve this behaviour with some code, but that's not how it works by default.
[ 0.34655600786209106, 0.2213912308216095, 0.09460292756557465, 0.034787874668836594, 0.14193671941757202, -0.3273236155509949, 0.8225088715553284, 0.04450801759958267, 0.05450999364256859, -0.3773671090602875, -0.2759561538696289, 0.389687180519104, -0.21432073414325714, -0.3395605087280273...
Which XML validation tools can you recommend for both performance and accuracy, each of which is a critical issue on our system? We have the following requirements: * It is *not* xmllint (see below) * Supports RelaxNG * Can easily integrate with Perl (this is optional, but it would be nice) Why not xmllint? (This is ...
[ 0.3953363001346588, -0.16800342500209808, 0.4936572015285492, 0.16925601661205292, -0.07129484415054321, -0.42516767978668213, 0.1321556717157364, -0.2766665816307068, -0.16072289645671844, -0.10401550680398941, -0.09678015857934952, 0.5164514780044556, -0.05961718410253525, -0.50182646512...
kick in. xmllint routinely has issues in reporting validation errors incorrectly. It doesn't give false positives or negatives, but if the document fails to validate, xmllint will often report the wrong element or attribute for a given error. Sometimes the error is correct ("did not expect to see element 'bar'), but on...
[ 0.3313741385936737, 0.005742925219237804, 0.29953446984291077, 0.004486479330807924, -0.3032938241958618, -0.6437351107597351, 0.43253815174102783, -0.2551079988479614, 0.06453024595975876, -0.452763170003891, -0.17609252035617828, 0.3695623278617859, -0.555679440498352, -0.216560795903205...
huge XML documents and misreporting the errors causes much grief for both clients and developers. I think that JDrago has the right idea, that you need to avoid libxml2-based tools for RNG validation, at least for now. I'm discovering this as well in my project. I recently logged two bugs against libxml2 concerning RNG...
[ 0.1753200739622116, 0.3600602447986603, 0.10930641740560532, -0.01577743887901306, -0.10707341879606247, -0.19316668808460236, 0.14234933257102966, -0.29982659220695496, -0.21205268800258636, -0.1479371190071106, 0.13213413953781128, 0.6469448208808899, -0.41897356510162354, -0.29181578755...
Google Code site I link to above. Jing has proved consistently correct with our content and schema, and to give much better error messages than libxml2, though there is still a lot of room for improvement in that regard. The one shortcoming of jing vis a vis libxml2/xmllint is that it doesn't at present use OASIS XML...
[ 0.04413900151848793, 0.1709822118282318, 0.48270854353904724, 0.4379686713218689, -0.4724496304988861, -0.42466452717781067, 0.30209463834762573, -0.281760036945343, 0.10047497600317001, -0.44755828380584717, -0.021091686561703682, 0.44649943709373474, -0.06752302497625351, -0.046155851334...
In any (non-web) .net project, the compiler automatically declares the DEBUG and TRACE constants, so I can use conditional compiling to, for example, handle exceptions differently in debug vs release mode. For example: ``` #if DEBUG /* re-throw the exception... */ #else /* write something in the event log... ...
[ 0.4935465455055237, -0.023467885330319405, -0.03928288817405701, -0.08496911823749542, -0.06960734724998474, -0.29778391122817993, 0.3200765550136566, -0.12924177944660187, -0.29167062044143677, -0.5397052764892578, -0.3015120327472687, 0.7061935067176819, -0.3095890283584595, 0.1533298492...
VS 2008 Look at [ConfigurationManager.GetSection()](http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.getsection.aspx) - this should get you most of the way there.. however, I think you're better off just changing between debug and release modes and letting the compiler determine to exec...
[ 0.03847555071115494, -0.08999942243099213, 0.2932448387145996, 0.09660738706588745, -0.4401242733001709, -0.26768720149993896, 0.4401625096797943, -0.40085506439208984, -0.06018533185124397, -0.5192011594772339, 0.13697504997253418, 0.7071889638900757, -0.040768567472696304, -0.13475047051...
not.
[ 0.2839125394821167, 0.14281417429447174, 0.08102941513061523, 0.21480445563793182, 0.09800054877996445, -0.08835254609584808, 0.191866934299469, 0.0693545937538147, 0.11511902511119843, -0.6066678762435913, -0.295894980430603, 0.27094390988349915, -0.16991528868675232, 0.32442906498908997,...
How to calculate the length (in pixels) of a string in Java? Preferable without using Swing. EDIT: I would like to draw the string using the drawString() in Java2D and use the length for word wrapping. If you just want to use AWT, then use [`Graphics.getFontMetrics`](http://docs.oracle.com/javase/6/docs/api/java/awt...
[ 0.3046712279319763, -0.11296789348125458, 0.23241911828517914, -0.20610110461711884, -0.40272536873817444, 0.22687458992004395, -0.07641574740409851, -0.33788803219795227, 0.02574858069419861, -0.8169505596160889, 0.15813180804252625, 0.6458361148834229, -0.1860872507095337, -0.30212706327...
On top of a dual quad core physical host, I would like to run a single VM with 8 virtual CPU (if possible) or at least 4 virtual CPU - for the purpose of scientific computing. I have investigated what the market has to offer at this date and it seems that * VMWare Server 2.0 is limited to 2 virtual CPU. * Microsoft V...
[ -0.07309786975383759, -0.09613201767206192, 0.767195999622345, 0.5325486660003662, -0.3984086513519287, 0.062325023114681244, 0.4743954837322235, 0.2679256498813629, -0.5670360326766968, -0.3196805715560913, -0.038254909217357635, 0.5669269561767578, -0.27235129475593567, 0.515211164951324...
than you have, up to 32 CPUs per VM, at least.
[ 0.1070556491613388, 0.0578928217291832, 0.4449895918369293, 0.3878764510154724, 0.10820798575878143, -0.0046923113986849785, -0.07326293736696243, 0.18167786300182343, -0.6138346791267395, -0.6058468222618103, 0.04760399088263512, 0.6263657808303833, 0.25905194878578186, 0.2759287655353546...
Is it possible in Actionscript 3 to create a weak reference to an object, so that it can be garbage collected. I'm creating some classes to make debugging easier, so I don't want the objects to hang around in memory if they are only referenced here (and of course I don't want to fill the code with callbacks to remove ...
[ -0.6251111030578613, -0.08618755638599396, -0.20079664885997772, -0.2207130640745163, -0.2977604866027832, 0.16925790905952454, 0.3463408946990967, -0.40809139609336853, -0.25188061594963074, -0.40614110231399536, 0.026219191029667854, 0.3802857995033264, -0.4893765449523926, -0.3982461690...
I would like to know what the pros and cons are for using an Anemic Domain Model (see link below). [Fowler Article](http://www.martinfowler.com/bliki/AnemicDomainModel.html "Fowler Article") The pros: * You can claim it's a domain model and brag to your developer friends and put it on your resume. * It's easy to gene...
[ 0.3351985216140747, -0.001633737818337977, 0.10745380073785782, 0.18118061125278473, -0.033152900636196136, 0.03982562571763992, 0.22802776098251343, 0.12241373211145401, -0.15524812042713165, -0.5642063021659851, 0.2296585589647293, 0.7463508248329163, -0.3664654493331909, 0.1354301720857...
I am using the `OpenArgs` parameter to send a value when using `DoCmd.OpenForm`: ``` DoCmd.OpenForm "frmSetOther", acNormal, , , acFormAdd, acDialog, "value" ``` I then use `Me.OpenArgs` inside the opened form to grab the ***value***. It sometimes sends a **Null** value instead of the original string. What is wrong?...
[ 0.24566105008125305, -0.05007634311914444, 0.5972625613212585, -0.01950947567820549, -0.09023706614971161, -0.37891796231269836, 0.16266949474811554, -0.0963839590549469, 0.0264988224953413, -0.9083849787712097, -0.1713046282529831, 0.5447447299957275, -0.41661331057548523, 0.4159664213657...
Example: ``` addPropertyToForm "formFilter","Tbl_myTable.myField LIKE 'A*'",myFormName ``` The called function will try to update the value of the "formFilter" property of the object. If the property does not exist (err 2455 is raised), it will be added as a new property in the error management code. ``` Function a...
[ -0.07085756212472916, 0.18273359537124634, 0.5356302261352539, -0.3431473672389984, -0.0016012426931411028, 0.10205186158418655, 0.26089850068092346, -0.479232519865036, -0.1303631067276001, -0.441107839345932, -0.36836814880371094, 0.751743733882904, -0.3896133005619049, 0.236969083547592...
property " & x_propertyName & "was not created" End If End Function ```
[ 0.07895120978355408, 0.39036938548088074, 0.5319921970367432, -0.10904674977064133, 0.280139297246933, -0.5733025670051575, 0.29488080739974976, -0.1132851168513298, 0.19194336235523224, -0.20939914882183075, -0.4433501660823822, 0.47208085656166077, -0.08534304052591324, 0.682227492332458...
I have an SVN repository structure like below. We are using multiple levels under branches for various release maintenance branches, plus a directory for feature branches. git-svn init seems to work with a single --branches argument, i.e. it seems to expect all of the branches to be in a single location. ``` trunk br...
[ 0.38385099172592163, -0.04124182090163231, 0.3890836238861084, -0.015975382179021835, 0.008188216015696526, -0.24858617782592773, 0.15498949587345123, -0.024254407733678818, -0.23804454505443573, -0.4413364827632904, -0.19237302243709564, 0.6016030311584473, -0.13183459639549255, 0.2700208...
"svn"] url = svn://svnserver/repo fetch = trunk:refs/remotes/trunk branches = branches/*/*:refs/remotes/* tags = tags/*:refs/remotes/tags/* ``` This should let you grab the nested branches.
[ -0.18205884099006653, -0.2059241384267807, 0.6196131706237793, 0.09983112663030624, -0.07094868272542953, -0.19892923533916473, 0.2893032431602478, -0.05093223601579666, -0.45932385325431824, -0.40587279200553894, -0.13107609748840332, 0.23682568967342377, -0.03600924089550972, 0.341816902...
I'm looking for tutorials or walkthroughs for converting DTS packages into the new SSIS 2005. Any one knows. [Migrating DTS Packages to Integration Services](http://msdn.microsoft.com/en-us/library/cc768544.aspx) SQL Server Integration Services provides a robust way to process millions of rows of data. The platform is...
[ -0.01122263353317976, 0.10668140649795532, 0.35625919699668884, -0.10220390558242798, 0.0020969239994883537, 0.02040046453475952, 0.05544538050889969, -0.05925441533327103, -0.004713843576610088, -0.8370024561882019, -0.10447089374065399, 0.1955576092004776, -0.201647087931633, 0.240506723...
Help !!! I have just spent about 10 minutes looking for a way to do a search and replace over all the files in Delphi 2006 project. Please can you tell how to do it I would use Grep Search from [GExperts](http://www.gexperts.org/) for this
[ -0.153490349650383, 0.04500869661569595, 0.2689291536808014, 0.2582074999809265, -0.18198718130588531, -0.27713581919670105, 0.48075950145721436, -0.13898885250091553, -0.24046988785266876, -0.5678654313087463, -0.1667223423719406, 0.6666644215583801, -0.018559904769062996, -0.196381956338...
Is there a possible htaccess directive that can transparently forward request from index.php to index\_internal.php if the request is coming from an internal ip range? ``` RewriteEngine on RewriteCond %{REMOTE_ADDR} ^192\.168\.1\. [OR] RewriteCond %{REMOTE_ADDR} ^10\.15\. RewriteRule ^index\.php$ index_internal.php [R...
[ -0.30604490637779236, 0.006712016649544239, 0.8108296990394592, -0.008637904189527035, -0.040773384273052216, 0.037390004843473434, 0.24006061255931854, -0.3801470398902893, -0.19818933308124542, -0.6879611611366272, -0.2180434912443161, 0.3519618809223175, -0.21370571851730347, 0.36176833...
For a one-shot operation, i need to parse the contents of an XML string and change the numbers of the "ID" field. However, i can not risk changing anything else of the string, eg. whitespace, line feeds, etc. MUST remain as they are! Since i have made the experience that XmlReader tends to mess whitespace up and may ...
[ 0.4355829060077667, -0.08395937830209732, 0.08151281625032425, 0.037742648273706436, -0.1838235706090927, -0.24282358586788177, 0.14980366826057434, -0.2310982346534729, 0.06104660779237747, -0.5725891590118408, 0.014174793846905231, 0.6130704283714294, -0.28068336844444275, -0.29964518547...
number of the ID field needs to be updated in some cases. There can be many such VAR entries in the string. So i need to convert each ID to Int32, compare & modify it, then put it back into the string. ``` <VAR NAME="sf_name" ID="1001210"> ``` I am looking for the simplest (in terms of coding time) and safest way to...
[ 0.0860428586602211, -0.04778072237968445, 0.5148324370384216, -0.10633060336112976, 0.1387302726507187, -0.07756445556879044, -0.05572346970438957, -0.65707927942276, -0.04636291041970253, -0.6132161021232605, -0.08790314197540283, 0.5499849915504456, -0.5949437022209167, -0.11244124174118...
m) { // do stuff with m.Groups(1); return result.ToString(); } ``` If you need I can expand the Regex to match more specifically. Currently *all* ID values (that contain numbers only) are replaced. You can also build that bit of "extra intelligence" into the match evaluator function and make it return the match u...
[ 0.1380433738231659, -0.0025936367455869913, 0.33950990438461304, -0.07526450604200363, 0.3097636103630066, -0.08956144005060196, 0.25122860074043274, -0.39312419295310974, -0.04448102042078972, -0.5087096691131592, -0.07569409906864166, 0.686153769493103, -0.42169857025146484, 0.0118391197...
Is there an easy way to test whether your named pipe is working correctly? I want to make sure that the data I'm sending from my app is actually being sent. Is there a quick and easy way to get a list of all the named pipes? You can view these with [Process Explorer](http://technet.microsoft.com/en-us/sysinternals/bb89...
[ 0.4874388873577118, -0.09605998545885086, 0.2887638807296753, 0.1902208924293518, 0.31481048464775085, 0.16008040308952332, -0.01691812090575695, -0.13234467804431915, -0.30946895480155945, -0.7699969410896301, 0.04798762872815132, 0.34111708402633667, -0.138629749417305, 0.087285876274108...
When working with my .Net 2.0 code base ReSharper continually recommends applying the latest c# 3.0 language features, most notably; convert simple properties into auto-implement properties or declaring local variables as var. Amongst others. When a new language feature arrives do you go back and religiously apply it ...
[ 0.6239161491394043, 0.5974403619766235, -0.04285198822617531, -0.18914403021335602, -0.22103096544742584, -0.06814944744110107, 0.9188801646232605, -0.12866106629371643, -0.19759033620357513, -0.5062320232391357, -0.06583339720964432, 0.8386353850364685, -0.03399571403861046, 0.02127339690...
whirl, but you shouldn't really go randomly changing code "just because". Of course - in some cases, simplifying code is a valid reason to make a change - but even something as innocent as switching to an auto-implemented property could break code that makes assumptions and uses reflection to update the fields directl...
[ 0.4023200571537018, -0.5169088244438171, 0.18177267909049988, 0.3230340778827667, -0.13316690921783447, -0.4558103084564209, 0.4005659520626068, -0.42884403467178345, -0.33172059059143066, -0.20134657621383667, -0.0846734344959259, 0.5730392336845398, -0.14166636765003204, 0.20922476053237...
syntax yet? * does your project need to support C# 2.0 (for example, some open source projects might want to retain compatibility with C# 2.0). If neither of these are an issue, you should be OK to use the new features in new code... just be a *little* cautious before hitting "update all" on old code... Here's a triv...
[ 0.25508856773376465, -0.02001064084470272, 0.635594367980957, -0.3137344717979431, 0.018833031877875328, -0.19418826699256897, 0.4248639643192291, -0.0060388497076928616, 0.012051490135490894, -0.6477189064025879, -0.17501862347126007, 0.83887779712677, -0.26001638174057007, -0.02121211402...
} } static void Write(TextReader reader) { Console.Write(reader.ReadToEnd()); } static void Write(StreamReader reader) { throw new NotImplementedException(); } ``` Now switch to `var reader` on the line marked `[HERE]`...
[ -0.27837231755256653, -0.01822902448475361, 0.6597371101379395, -0.36606669425964355, 0.3069162666797638, -0.04834860563278198, 0.2121698558330536, -0.1114150807261467, 0.2154676616191864, -0.7611181139945984, -0.529813826084137, 0.8047608733177185, -0.3478009104728699, 0.3369072377681732,...
When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine. When I use the "Run as adminstrator" option it runs on Vista as well.. However this is a additional step requeried an the users might not know about this. Wh...
[ 0.19483256340026855, 0.16972100734710693, 0.35436058044433594, 0.01577414758503437, -0.1521107405424118, -0.1510493904352188, 0.6994860172271729, -0.1522088348865509, -0.36042529344558716, -0.7740824222564697, -0.009862867183983326, 0.8440329432487488, -0.3131256103515625, 0.19589225947856...
you have an installer for your app, you can add the registry key to force run as admin: > Path: > HKEY\_CURRENT\_USER\Software\Microsoft\Windows > NT\Currentversion\Appcompatflags\layers > > > Key: << Full path to exe >> > > > Value: RUNASADMIN > > > Type: REG\_SZ
[ 0.27550289034843445, -0.04527579993009567, 0.7272878289222717, 0.005989225581288338, 0.26378393173217773, 0.09221792221069336, 0.2697746157646179, 0.029007500037550926, -0.19774961471557617, -0.7970730066299438, -0.5423179268836975, 0.7872501611709595, -0.35636597871780396, -0.042445104569...
I am curious about what tools are used to build the next version of themselves. For example, Delphi has long claimed that "[Delphi is written in Delphi](http://en.wikipedia.org/wiki/Borland_Delphi#Products_developed_with_Delphi)". I assume Visual Studio is written using Visual Studio. What are some other examples of...
[ 0.39950934052467346, 0.24496954679489136, -0.031422875821590424, -0.18921329081058502, -0.38885942101478577, 0.013553962111473083, 0.10980833321809769, -0.21400342881679535, -0.33592283725738525, -0.5107872486114502, -0.06939700245857239, 0.4675942361354828, -0.12517884373664856, -0.265981...
Classes" was a C dialect that became > the immediate ancestor to C++. That > preprocessor translated "C with > Classes" constructs (such as classes > and constructors) into C. It was a > traditional preprocessor that didn't > understand all of the language, left > most of the type checking for the C > compiler ...
[ -0.09940748661756516, 0.050602804869413376, 0.236000657081604, 0.12712693214416504, -0.5147039890289307, -0.06323327869176865, 0.05414203181862831, 0.11617744714021683, 0.08345327526330948, -0.43469083309173584, 0.2479030042886734, 0.4589712619781494, -0.6401960253715515, 0.078874483704566...
So here I am just about to start a big project using LINQ to SQL and then I read this: [Is LINQ to SQL Truly Dead?](http://www.infoq.com/news/2008/11/DLINQ-Future) by Jonathan Allen for InfoQ.com Well, I don't want to be supporting LINQ to SQL indefinitely if it's a dead end. So, how should I get started learning abo...
[ 0.2207297533750534, 0.1937563717365265, 0.6020784378051758, 0.19126753509044647, -0.08205780386924744, -0.3673366904258728, 0.029052341356873512, -0.2714405655860901, -0.4226977229118347, -0.30187204480171204, 0.13223540782928467, 0.567088782787323, -0.11240453273057938, -0.016237242147326...
[MSDN Webcast: Framework Masterclass: LINQ to Entities (Level 200)](http://www.asp.net/learn/webcasts/webcast-181.aspx)
[ 0.008857960812747478, -0.29423752427101135, 0.5065659880638123, 0.21585217118263245, 0.06511758267879486, -0.13597626984119415, 0.008365878835320473, -0.18442058563232422, -0.48580119013786316, -0.6888002753257751, -0.3968702256679535, 0.3430565595626831, 0.010127871297299862, -0.199623793...
I've got an unusual situation: I'm using a Linux system in an embedded situation (Intel box, currently using a 2.6.20 kernel.) which has to communicate with an embedded system that has a partially broken TCP implementation. As near as I can tell right now they expect each message from us to come in a separate Ethernet ...
[ 0.24809344112873077, 0.17076754570007324, 0.3996267318725586, 0.19268514215946198, 0.1715269684791565, 0.014012244530022144, 0.1840057671070099, 0.24644380807876587, -0.23493923246860504, -0.6395208835601807, 0.003523804247379303, 0.41851571202278137, -0.35172101855278015, 0.34405195713043...
that may not end up being feasible. I've already set TCP\_NODELAY on my sockets (I connect to them), but that only helps if I don't try to send more than one message at a time. If I have several outgoing messages in a row, those messages tend to end up in one or two Ethernet frames, which causes trouble on the other s...
[ 0.41538041830062866, 0.11080607026815414, 0.4978925287723541, 0.05288058519363403, 0.06184909865260124, -0.16201727092266083, 0.36844000220298767, 0.1344979852437973, -0.5212407112121582, -0.8592464923858643, 0.18597052991390228, 0.5174718499183655, -0.3393417298793793, 0.2989048361778259,...
transmits and ending up allowing more than one of my messages into the same packet. Is there any way that I can tell whether the driver has data queued or not? Is there some way I can force the driver to send independent write calls in independent transport layer packets? I've had a look through the socket(7) and tcp(...
[ 0.3486345410346985, -0.06716188788414001, 0.3584865927696228, 0.26614734530448914, -0.43776053190231323, 0.11292396485805511, 0.3858639895915985, -0.030530035495758057, -0.5328500866889954, -0.6916853189468384, 0.0925428494811058, 0.5056350827217102, -0.43936675786972046, 0.417730569839477...
point. Any help greatly appreciated. IIUC, setting the TCP\_NODELAY option should flush all packets (i.e. tcp.c implements setting of NODELAY with a call to tcp\_push\_pending\_frames). So if you set the socket option after each send call, you should get what you want.
[ -0.15457312762737274, -0.3263601064682007, 0.536980390548706, 0.1232253834605217, 0.020285364240407944, -0.2672030031681061, -0.04602731391787529, 0.12322403490543365, -0.1782245635986328, -0.8173142671585083, -0.05012545362114906, 0.3052419424057007, -0.27390795946121216, 0.19807380437850...
Not sure if anyone listened to Hanselminutes episodes 134 and 135, but at the end of show 135 Scott Hanselman had a lot of great advice on how to setup a baseline secure environment for a web application. As a developer, most of my time is focused on developing the application, not on the network facet of the project, ...
[ 0.15761636197566986, 0.1496628373861313, 0.42227891087532043, 0.3310638666152954, -0.16830864548683167, -0.36706364154815674, 0.6502365469932556, 0.042234890162944794, -0.14114342629909515, -0.3269628882408142, 0.1793868988752365, 0.30188730359077454, 0.34438028931617737, -0.15255102515220...
topic that would help me understand Scott's recommended approach for setting up a secure network environment to host the application. IIS, SQL Server, Firewall, updating the site without having to use 'Remote Desktop' (to avoid any RDP vulnerabilities), etc. p.s. Jeff - nobody is faulting you for not having any money ...
[ 0.5091040134429932, 0.36389225721359253, -0.31538626551628113, 0.6460949182510376, 0.21577921509742737, -0.26464173197746277, 0.02285856567323208, 0.19676928222179413, -0.24617606401443481, -0.14423339068889618, 0.06740593910217285, 0.5317579507827759, 0.14270392060279846, 0.07326252758502...
security, I'm talking about encrypting traffic between servers, network topology, firewalls, etc. Edit #2: Changed topic. Since you're an ASP.NET person, you might look at the Microsoft Press book **Improving Web Application Security** ISBN 978-0735618428. The [entire text is hosted on MSDN here](http://msdn.microsoft...
[ -0.023146992549300194, 0.11581706255674362, 0.46346309781074524, 0.2823016047477722, 0.15843376517295837, -0.26681584119796753, 0.36399948596954346, -0.03330704942345619, -0.2725948095321655, -0.36830028891563416, -0.21049177646636963, 0.7854374051094055, -0.06815502792596817, -0.177074491...
principles are there.
[ 0.35160085558891296, 0.23303450644016266, -0.11753074824810028, 0.2559705078601837, 0.23572544753551483, -0.09088187664747238, 0.33824801445007324, -0.39781540632247925, 0.012078476138412952, -0.7318076491355896, 0.2448522001504898, 0.37247252464294434, -0.13254493474960327, 0.119356513023...
My application uses loads of Java threads. I am looking for a reliable understanding how the JVM (version 5 and 6) maps the Java threads to underlying Windows threads. I know there is a document for mapping to Solaris threads, but not Windows. Why doesn't Sun publish this information? I want to know if there's a 1:1 ...
[ 0.3556109666824341, 0.27802419662475586, 0.24199096858501434, -0.03516227751970291, -0.038212504237890244, -0.1914118528366089, 0.1066938042640686, 0.06905146688222885, -0.3173271715641022, -0.9345104694366455, 0.10572052747011185, 0.27448102831840515, -0.32244524359703064, 0.2273754179477...
threads? Don't have a document for you, but from the Threads column in the task-manager you can pretty reliably guess that it maps 1:1 to native threads (you need to enable the Threads column in the task manager first). Oh, almost forgot, you can download the jdk src [here](https://jdk6.dev.java.net/) and look yoursel...
[ 0.26423338055610657, 0.06319151073694229, 0.02602231316268444, 0.010281684808433056, 0.019530387595295906, -0.05322413891553879, 0.31977808475494385, 0.23283974826335907, -0.39940914511680603, -0.9461854696273804, 0.1160440593957901, 0.5445141792297363, -0.13527780771255493, 0.100824967026...
Is there a way for me to serialize an object in .NET without the XML Namespaces automatically serializing also? It seems that by default .NET believes the XSI and XSD namespaces should be included, but I don't want them there. Ahh... nevermind. It's always the search after the question is posed that yields the answer. ...
[ 0.13841930031776428, -0.18567612767219543, 0.7273932099342346, -0.004975071642547846, -0.27170664072036743, -0.18270951509475708, 0.30919939279556274, -0.2375049889087677, -0.2162492722272873, -0.6737468242645264, -0.2438482940196991, 0.45653125643730164, -0.45096495747566223, 0.1445411145...
As New MemoryStream(), _ sw As XmlWriter = XmlWriter.Create(ms, settings), _ sr As New StreamReader(ms) xs.Serialize(sw, obj, ns) ms.Position = 0 Console.WriteLine(sr.ReadToEnd()) End Using ``` in C# like this: ``` //Create our own namespaces for the output XmlSerializerNamespaces ns = new XmlSer...
[ -0.14473843574523926, -0.024048984050750732, 0.9231808185577393, -0.07764358073472977, 0.09261070191860199, 0.1980811357498169, 0.01884443871676922, -0.2770306468009949, -0.18361078202724457, -0.6249447464942932, -0.28292596340179443, 0.38974058628082275, -0.2376231998205185, 0.37791326642...
Just wondering what the difference between MFC control messages prefixed with the following is: ``` LVN (e.g. LVN_ITEMCHANGED) HDN (e.g. HDN_TRACK) NM (e.g. NM_HOVER) ``` Also, I am using a ListControl and trapping when the user clicks on an item using the NM\_CLICK message. I also want to trap when a user selects a...
[ 0.05276675149798393, -0.21651135385036469, 0.7720993161201477, 0.061312269419431686, 0.07921192795038223, -0.22512619197368622, 0.2934527099132538, -0.3757283389568329, -0.5395829677581787, -0.5086587071418762, -0.20946861803531647, 0.4630255699157715, -0.5114544034004211, 0.18048553168773...
// nm.iItem was selected or deselected if (!m_internalUIChange) { // see below } } ``` The first "if" checks if the "selected" state has changed. Note that, when selecting a different item in the list, this still fires twice: once for the old item to be deselected, and once for the new item to be selec...
[ -0.19156783819198608, -0.3406507670879364, 0.17352356016635895, -0.2073880136013031, 0.11760333180427551, -0.12043452262878418, 0.6743488907814026, -0.4694945216178894, -0.25065043568611145, -0.7350533604621887, -0.2681387960910797, 0.6338167190551758, -0.47014957666397095, 0.2149992585182...