text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
you can find out with free tools such as [PEiD](http://www.aldeid.com/wiki/PEiD) - if the program is packed, you'll have to unpack it first OR [Detect-it-Easy](https://horsicq.github.io/) if you can't find PEiD anywhere. DIE has a strong developer community on [github](https://github.com/horsicq/Detect-It-Easy) current...
[ 0.3048512637615204, -0.1565026044845581, 0.15449368953704834, -0.018316276371479034, -0.40307125449180603, -0.03601991385221481, 0.012083500623703003, -0.293304979801178, -0.13322585821151733, -0.7258099317550659, -0.16828662157058716, 0.11480991542339325, 0.0390668660402298, 0.00058788398...
in 2006. SoftICE is kind of a hardcore tool that runs beneath the operating system (and halts the whole system when invoked). SoftICE is still used by many professionals, although might be hard to obtain and might not work on some hardware (or software - namely, it will not work on Vista or NVIDIA gfx cards). ### Disa...
[ 0.014380715787410736, -0.16950397193431854, 0.4162420630455017, 0.014078362844884396, -0.26306256651878357, 0.11881863325834274, 0.21972957253456116, -0.07289252430200577, -0.11447436362504959, -0.48360681533813477, -0.09178958833217621, 0.6247393488883972, -0.20678414404392242, 0.15506169...
believe W32Dasm is abandonware these days, and there are numerous user-created hacks to add some very useful functionality. You'll have to look around to find the best version. ### Decompilers: * Visual Basic: [VB Decompiler](http://www.vb-decompiler.org/), commercial, produces somewhat identifiable bytecode. * Delph...
[ 0.7070268392562866, -0.08672096580266953, 0.026954330503940582, 0.21681950986385345, -0.11911508440971375, -0.03788422420620918, 0.4372078776359558, -0.05416986718773842, -0.17033089697360992, -0.37989142537117004, -0.2243475764989853, 0.5769318342208862, -0.4826825261116028, -0.0877740308...
come handy in whatever it is you're doing are resource editors such as [ResourceHacker](http://angusj.com/resourcehacker/) (free) and a good hex editor such as [Hex Workshop](http://www.bpsoft.com/) (commercial). **Additionally, if you are doing malware analysis (or use SICE)**, I wholeheartedly suggest running everyt...
[ 0.7030625939369202, 0.16040325164794922, -0.0784226655960083, 0.07040345668792725, -0.13047188520431519, -0.17780406773090363, 0.09127067029476166, 0.22119513154029846, -0.30706146359443665, -0.7289596796035767, -0.08376266807317734, 0.7632371783256531, 0.1813051402568817, -0.1851073801517...
even debugging *other people's* software is usually against the EULA in the very least :)
[ 0.40068668127059937, 0.3145262897014618, 0.11974051594734192, -0.05726252868771553, -0.014954046346247196, -0.4226340353488922, 0.32334500551223755, 0.2895011007785797, 0.007653870619833469, -0.01563441753387451, -0.31632351875305176, 0.15110798180103302, -0.04245151951909065, 0.2467826902...
I'm trying to convert some Xaml to HTML using the .NET XslCompiledTransform and am running into difficulties getting the xslt to match Xaml tags. For instance with this Xaml input: ``` <FlowDocument PagePadding="5,0,5,0" AllowDrop="True" NumberSubstitution.CultureSource="User" xmlns="http://schemas.microsoft.com/winfx...
[ 0.018375663086771965, 0.25076815485954285, 0.8654896020889282, -0.1170770600438118, -0.19926440715789795, -0.13587462902069092, 0.08944331109523773, -0.622312068939209, -0.12461287528276443, -0.7399470210075378, -0.03872315585613251, 0.48050475120544434, -0.2983185052871704, -0.10231965035...
<p> <xsl:apply-templates /> </p> </xsl:template> ``` I get this output: ``` <html> <body> a </body> </html> ``` Rather than the expected: ``` <html> <body> <p>a</p> </body> </html> ``` Could this be a problem with the namespace? This is my first attempt at an xsl transform, so I'm ...
[ 0.16186611354351044, -0.08223418891429901, 0.41926896572113037, 0.017014972865581512, -0.354777455329895, -0.12985041737556458, 0.20065470039844513, -0.477687269449234, 0.019249647855758667, -0.7685191035270691, -0.12062042951583862, 0.5928352475166321, -0.4836300015449524, -0.239571675658...
declare this namespace in your transform, assign it a prefix, and then use that prefix in any patterns that are intended to match elements in that namespace. So your XSLT should look something like this: ``` <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Tran...
[ 0.21913324296474457, -0.474470317363739, 0.8740526437759399, -0.1530991494655609, -0.33477962017059326, -0.05999564379453659, 0.09321936964988708, -0.5810173749923706, 0.13178667426109314, -0.9006574153900146, -0.11226997524499893, 0.5020296573638916, -0.41542038321495056, -0.2968095839023...
Is it ever acceptable to have a [memory leak](http://en.wikipedia.org/wiki/Memory_leak) in your C or C++ application? What if you allocate some memory and use it until the very last line of code in your application (for example, a global object's destructor)? As long as the memory consumption doesn't grow over time, i...
[ 0.2228492796421051, -0.03836418315768242, 0.03968574106693268, 0.30043643712997437, 0.18919523060321808, -0.4708407521247864, 0.2615954279899597, 0.3221531808376312, -0.532688558101654, -0.23465414345264435, -0.3018874228000641, 0.4169543981552124, -0.3361871540546417, 0.11819612979888916,...
this situation on you? Would refuse to use that third party library no matter how great it otherwise might be? I only see one practical disadvantage, and that is that these benign leaks will show up with memory leak detection tools as false positives. No. As professionals, the question we should not be asking ourselv...
[ 0.514499843120575, 0.3446156680583954, 0.1506630778312683, 0.2890074849128723, 0.37757495045661926, -0.4312607944011688, 0.33225923776626587, 0.21503694355487823, -0.4425109326839447, -0.3078779876232147, -0.1122535765171051, 0.6227554678916931, -0.11383652687072754, 0.09883382171392441, ...
memory leaks. That makes my life simple, too. If I detect a memory leak, I eliminate it, rather than run through some elaborate decision tree structure to determine whether it's an "acceptable" memory leak. It's similar to compiler warnings – will the warning be fatal to my particular application? Maybe not. But it...
[ 0.5483559370040894, 0.5067636370658875, 0.000956578238401562, 0.1969018280506134, 0.3265337347984314, -0.1379665732383728, 0.49074846506118774, -0.010125246830284595, -0.22227321565151215, -0.39562609791755676, 0.023722149431705475, 0.4193049967288971, 0.0799722895026207, 0.154904142022132...
is possible that a circumstance could arise where the cost/risk of removing that piece of equipment exceeds the cost/risk of leaving it in, and there could be circumstances where it was harmless, if I saw this question posted on SurgeonOverflow.com and saw any answer other than "no," it would seriously undermine my con...
[ 0.6661598682403564, -0.008394179865717888, -0.06532853841781616, 0.248074471950531, 0.28516170382499695, -0.11920320242643356, 0.2988527715206146, -0.05654531717300415, -0.43215417861938477, -0.30483588576316833, 0.2723766565322876, 0.4786667823791504, 0.12103429436683655, 0.37495392560958...
one of the cupholders – it may not be a big deal in itself, but it portrays a lack of commitment to quality, so I would consider alternatives.
[ 0.5247430801391602, 0.15625117719173431, 0.09775479882955551, 0.2533678710460663, 0.136800155043602, 0.06410805881023407, -0.09458348155021667, 0.13658824563026428, 0.07650645822286606, -0.30419921875, 0.42411813139915466, 0.17590339481830597, 0.006186915561556816, 0.24255675077438354, -...
The title sort of explains itself. I am making some 'genrative' artwork in flash. Now I want to save the frame without making a screenshot so-on and sofort. And perhaps one day i would like to save a batch of frames. Is there an AS3 class/library out there that could help me out ? Actually, using the just released Fl...
[ 0.5392381548881531, 0.24096238613128662, 0.28055235743522644, 0.2646494209766388, -0.2675672769546509, -0.3816675543785095, -0.010763866826891899, 0.23406699299812317, -0.1978544145822525, -0.45232754945755005, 0.07332432270050049, 0.6533536314964294, 0.18551413714885712, 0.092825889587402...
Also, there is code out there already written that allows you to take snapshots using BitmapData, and compress to PNG or JPEG. I'd recommend PNG because it's lossless, which is nice for artwork you're creating. Here's a few relevant links: * [Example creating and saving a JPEG to local harddrive](http://blog.everythi...
[ 0.16949398815631866, -0.15375128388404846, 0.2766770124435425, 0.07957976311445236, -0.4583530128002167, -0.13544727861881256, -0.12728092074394226, -0.2171468287706375, -0.42142167687416077, -0.4351406991481781, -0.04971254616975784, 0.7101432085037231, -0.19867053627967834, -0.1807526051...
Is there anything like Winsplit Revolution for Mac OS X? **Try these**: * **[Zooom/2](http://coderage-software.com/zooom/)** ($15) has been my favorite since I installed it. Fast, flexible, and minimizes the number of key combinations I need to remember * **[Divvy](http://mizage.com/divvy/)** ($15) might soon replace ...
[ 0.030363716185092926, -0.6709676384925842, 0.7014382481575012, 0.244923934340477, 0.039661869406700134, 0.07201212644577026, -0.11050979048013687, -0.055896300822496414, -0.5540347695350647, -0.7779492139816284, 0.12522108852863312, 0.9035611152648926, -0.17161940038204193, -0.310390025377...
machines. * [Breeze](http://www.autumnapps.com/breeze/) ($8) makes it easy to make windows fullscreen, split left, or split right. It also lets you save screen states (generic) and for specific apps. * [Moom](http://manytricks.com/moom/) ($5) is a more recent entry. It supports both keyboard shortcuts and mouse shortcu...
[ -0.07034412771463394, -0.2701329290866852, 0.6248998641967773, 0.22577345371246338, 0.2832639515399933, 0.26135748624801636, 0.1533883959054947, -0.0603942908346653, -0.4868088662624359, -0.9325651526451111, 0.158639594912529, 0.414117693901062, -0.02954341284930706, 0.0974864736199379, ...
drawback is that it uses up a lot of global keyboard shortcuts, and there are so many I couldn't remember them all. * [Cinch](http://irradiatedsoftware.com/cinch/) ($7) is a mouse-driven app by the makers of SizeUp. Drag your window to various hot zones on the screen edges and the window will "cinch" to that edge and r...
[ 0.24952080845832825, -0.5999966859817505, 0.6246886849403381, 0.11801881343126297, -0.130569726228714, 0.2626691162586212, 0.08795072138309479, 0.20321999490261078, -0.09147262573242188, -0.7056787014007568, 0.1984865814447403, 0.4053964912891388, -0.12721705436706543, -0.02514009550213813...
WinSplit. I uninstalled it almost immediately. It struck me as powerful, but inefficient and unwieldy. * [The DIY approach](http://forums.macrumors.com/showthread.php?t=645660) (free) mentioned in another post is to combine some applescripts and bind them to quicksilver triggers. I haven't tried this. But it is a free ...
[ -0.0637182891368866, -0.24203890562057495, 0.6566263437271118, 0.2559185326099396, -0.03837414085865021, -0.37494516372680664, 0.13850770890712738, -0.04042936861515045, -0.19290916621685028, -0.7564164400100708, -0.19069194793701172, 0.6187468767166138, -0.24260137975215912, -0.1095814183...
consider it must-have functionality, especially on large monitors and multi-mon setups. On my Windows machine running 3 monitors, I would rank the importance of these different apps in the following order: 1. Winsplit-like window rearranging 2. Spaces-like virtual desktops 3. Expose-like application switching On my...
[ 0.3315580189228058, -0.01454071793705225, 0.5824890732765198, -0.023390600457787514, 0.13965392112731934, -0.26230108737945557, 0.22119227051734924, -0.10828590393066406, -0.07500147074460983, -0.6762120723724365, -0.28470125794410706, 0.6747450232505798, -0.38227924704551697, 0.0570658929...
I'm looking for a small and fast library implementing an HTTP server in .NET My general requirements are: * Supports multiple simultaneous connections * Only needs to support static content (no server side processing) * HTTP only, HTTPS not needed * Preferably be able to serve a page from an in memory source. I want ...
[ 0.23546664416790009, 0.1328200399875641, 0.3763037323951721, 0.17319245636463165, -0.15091919898986816, -0.21007516980171204, 0.0832425132393837, 0.03999631106853485, -0.2099597156047821, -0.9578691720962524, -0.07287272065877914, 0.4977489411830902, -0.2644583284854889, 0.1005575135350227...
so I can modify it if needed * *Definitely* needs to be free... it's for a personal project with no budget other than my own time. I also want to be able to release the final product that would use this library freely (even if that means complying to the particular OSS license of that library. Edit: To clarify some mo...
[ 0.5581985712051392, 0.34072718024253845, 0.15058857202529907, 0.11830712109804153, -0.09232732653617859, -0.3899649977684021, 0.08882880210876465, 0.13414506614208221, -0.24641995131969452, -0.648438036441803, -0.10329795628786087, 0.41824182868003845, -0.19146741926670074, 0.0334712229669...
sure I wasn't doing something that was already available. Use [Cassini](http://www.asp.net/downloads/archived/cassini/). Free, Open Source. It would take trivial hacking to serve from memory.
[ 0.6454010605812073, 0.12441283464431763, -0.3892711400985718, 0.31796354055404663, 0.1307850033044815, -0.00030287200934253633, -0.09638984501361847, 0.014196254312992096, -0.13975930213928223, -0.5070403218269348, -0.2424125373363495, 0.3672681748867035, -0.24682049453258514, 0.0710114389...
Few of us would deny the awesomeness of debuggers, but to make it more useful, some tricks can be used. For example in Python, you can use ***pass*** to do absolutely nothing except to leave you room to put a break point and allow you to observe the values in the Watch window. In C#, I used to do ***GC.Collect()***...
[ 0.7315690517425537, -0.07371217757463455, -0.05434548854827881, 0.07687867432832718, -0.2190077304840088, -0.33997640013694763, 0.35772573947906494, 0.17116262018680573, -0.412997305393219, -0.34400901198387146, 0.021376727148890495, 0.616179347038269, -0.5224732756614685, -0.2678824365139...
What are differences between CallContext and ThreadStatic? I've understood that in an ASP.NET environment data stored in CallContext could be persisted throughout the request until it ends while ThreadStatic may or may not work since the request may switch threads. I've also learned that the HttpContext is internally ...
[ 0.18255367875099182, -0.21392786502838135, 0.5249818563461304, 0.1065683662891388, -0.07568376511335373, 0.04587749391794205, 0.15197692811489105, -0.07305234670639038, -0.2489866018295288, -0.5024898648262024, 0.023535503074526787, 0.6749549508094788, -0.18008796870708466, 0.3619230091571...
that is to handle one request. Other framework that wants to provide thread agility could do the same to for contextual storage. Very often a request will use the same thread throughout, but it certainly won't always be the case - ASP.NET exhibits *thread agility*. There's an old [in-depth blog article about the matter...
[ -0.1611952930688858, -0.13547609746456146, 0.3946835398674011, -0.07783690840005875, -0.43361106514930725, -0.2049783319234848, 0.4446885287761688, -0.10637032985687256, -0.36535677313804626, -0.485159695148468, 0.02896411158144474, 0.3394359350204468, 0.03992381691932678, 0.10497742146253...
What is the best way to randomize the order of a generic list in C#? I've got a finite set of 75 numbers in a list I would like to assign a random order to, in order to draw them for a lottery type application. Shuffle any `(I)List` with an extension method based on the [Fisher-Yates shuffle](http://en.wikipedia.org/wi...
[ 0.25102680921554565, -0.5142696499824524, 0.10633962601423264, -0.01197892241179943, -0.09724001586437225, 0.08687613904476166, -0.311921089887619, -0.5375013947486877, -0.49782490730285645, -0.4860932230949402, 0.1326143592596054, 0.376128613948822, -0.6771705746650696, 0.341288298368454,...
int k = rng.Next(n + 1); T value = list[k]; list[k] = list[n]; list[n] = value; } } ``` Usage: ``` List<Product> products = GetProducts(); products.Shuffle(); ``` The code above uses the much criticised System.Random method to select swap candidates. It's fast but not as rando...
[ 0.18192847073078156, -0.5551788806915283, 0.0794898048043251, -0.08880016207695007, 0.08200739324092865, -0.008351192809641361, -0.24733048677444458, -0.42440247535705566, -0.4833761155605316, -0.4232634902000427, -0.32440927624702454, 0.20118974149227142, -0.4221583306789398, 0.0921575799...
generator in System.Security.Cryptography like so: ``` using System.Security.Cryptography; ... public static void Shuffle<T>(this IList<T> list) { RNGCryptoServiceProvider provider = new RNGCryptoServiceProvider(); int n = list.Count; while (n > 1) { byte[] box = new byte[1]; do provide...
[ 0.1833288073539734, -0.5562765598297119, 0.32626354694366455, -0.25003477931022644, 0.1459438055753708, 0.07360584288835526, 0.14244459569454193, -0.7602279186248779, -0.2245752364397049, -0.5836700797080994, -0.20666195452213287, 0.4351940155029297, -0.526276707649231, 0.36125925183296204...
T value = list[k]; list[k] = list[n]; list[n] = value; } } ``` A simple comparison is available [at this blog](https://web.archive.org/web/20150801085341/http://blog.thijssen.ch/2010/02/when-random-is-too-consistent.html) (WayBack Machine). Edit: Since writing this answer a couple years back, man...
[ 0.23021112382411957, -0.16687209904193878, 0.07860753685235977, -0.1952936351299286, -0.35874614119529724, -0.07590319961309433, 0.18469937145709991, -0.3410143256187439, -0.1995486617088318, -0.5156891942024231, 0.20183591544628143, 0.4513621926307678, -0.4989224672317505, 0.3014101088047...
asking for trouble if the method is going to be called repeatedly. Below is a fixed, full example based on a really useful comment received today from @weston here on SO. Program.cs: ``` using System; using System.Collections.Generic; using System.Threading; namespace SimpleLottery { class Program { private ...
[ -0.07377640902996063, -0.31134486198425293, 0.8072360157966614, -0.09216489642858505, 0.07846169173717499, 0.3198021948337555, 0.397651344537735, -0.32060563564300537, -0.43323788046836853, -0.3673509955406189, -0.25054097175598145, 0.8187464475631714, -0.44442859292030334, 0.0849593430757...
[ThreadStatic] private static Random Local; public static Random ThisThreadsRandom { get { return Local ?? (Local = new Random(unchecked(Environment.TickCount * 31 + Thread.CurrentThread.ManagedThreadId))); } } } static class MyExtensions { public static void Shuffle<T>(this ILis...
[ 0.10470135509967804, -0.5491855144500732, 0.3905881345272064, 0.08406684547662735, 0.24327297508716583, 0.2749146819114685, 0.11402344703674316, 0.1489570587873459, -0.4534551501274109, -0.6350990533828735, -0.030735554173588753, 0.564671516418457, -0.470025897026062, 0.6937680840492249, ...
n--; int k = ThreadSafeRandom.ThisThreadsRandom.Next(n + 1); T value = list[k]; list[k] = list[n]; list[n] = value; } } } } ```
[ -0.027102183550596237, -0.15833653509616852, 0.36568334698677063, -0.2715071141719818, 0.22973857820034027, 0.07439693808555603, 0.2701725959777832, -0.2623377740383148, -0.5149306654930115, -0.5587535500526428, -0.1724270135164261, 0.3290516436100006, -0.4672095775604248, 0.70835334062576...
Note: The examples below are C# but this problem should not be specific to any language in particular. So I am building an object domain using a variant of the [S# Architecture](http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx). For those unfamiliar with it, and to save you some reading time the...
[ 0.03521972522139549, 0.15796081721782684, 0.11068476736545563, -0.01847553439438343, -0.17041762173175812, -0.13857072591781616, 0.15910877287387848, 0.1821376383304596, -0.3882317841053009, -0.6184903979301453, 0.0005547591717913747, 0.4856535792350769, -0.3277469873428345, 0.452103167772...
product will lazy load the customer that purchased it as needed: ``` public class Product { private ICustomerDao _customerDao; private Customer _customer; public Product(ICustomerDao customerDao) {_customerDao = customerDao;} public int ProductId {get; set;} public int CustomerId {get; set;} public Custome...
[ 0.05354200676083565, -0.22892142832279205, 0.3235150873661041, -0.4339785873889923, 0.2605845034122467, 0.5631377696990967, 0.06922904402017593, -0.014155254699289799, 0.10054094344377518, -0.44453564286231995, -0.670814037322998, 0.2914218008518219, -0.43268585205078125, 0.500064015388488...
id); } ``` This is all well and good until you reach a situation where two objects need to be able to load each other. For example a many-to-one relationship where, as above, a product needs to be able to lazy load its customer, but also customer needs to be able to get a list of his products. ``` public class Custo...
[ -0.03761297091841698, -0.07007719576358795, 0.4375767409801483, -0.1367897093296051, 0.16637492179870605, 0.2521684467792511, -0.03638205677270889, -0.2400386482477188, -0.14905807375907898, -0.4726519286632538, -0.477841854095459, 0.4559808075428009, -0.40536990761756897, 0.25038278102874...
if(_products == null) _products = _productDao. GetAllForCustomer(this); return _products; } } public interface IProductDao { public Product[] GetAllForCustomer(Customer customer); } ``` I know that this is a really common situation but I am relatively new at this. My stumbling block is what to...
[ -0.11144496500492096, -0.08953824639320374, 0.4130707085132599, -0.1502694934606552, 0.12732653319835663, -0.11123093962669373, 0.1372414082288742, -0.08969493955373764, -0.034821778535842896, -0.7618382573127747, -0.4261581301689148, 0.3714093863964081, -0.36617231369018555, 0.30753794312...
ICustomerDao { private IProductDao _productDao; public CustomerDao(IProductDao productDao) {_productDao = productDao;} public Customer GetById(int id) { Customer c = new Customer(_customerDao); // Query the database and fill out CustomerId return c; } } public cla...
[ -0.34615883231163025, -0.12430521100759506, 0.2632973790168762, 0.12178477644920349, 0.40800559520721436, 0.20973189175128937, -0.0019335841061547399, -0.05544232577085495, -0.053914107382297516, -0.38025155663490295, -0.47549569606781006, 0.3663913905620575, -0.1973629742860794, 0.4546605...
ProductDao (ICustomerDao customerDao) {_customerDao = customerDao;} public Product[] GetAllForCustomer(Customer customer) { // you get the idea } } ``` And here we have the problem. You cannot instantiate CustomerDao without an IProductDao and vice versa. My inversion of control container (Cast...
[ -0.02557188645005226, 0.002606690628454089, 0.5933647155761719, -0.07546991109848022, 0.3467833399772644, 0.03567228466272354, 0.13978834450244904, 0.01908988133072853, -0.23944588005542755, -0.12282232940196991, -0.39591357111930847, 0.2121710330247879, -0.2787894010543823, 0.455782651901...
The above is a simplification of the architecture I'm actually using and I am not recommending someone actually pass DAOs to an object. A better implementation closer to what I am actually doing is similar to the way NHibernate works where the actual objects are very simple and the above are actually proxy objects whic...
[ -0.14016129076480865, 0.12389130890369415, 0.2651870846748352, 0.12585507333278656, -0.2064666599035263, -0.21976788341999054, 0.2927137613296509, -0.2738451063632965, -0.0818755105137825, -0.48594263195991516, -0.13505417108535767, 0.6686250567436218, -0.28700825572013855, 0.0636675879359...
fine: ``` public class CustomerDao : ICustomerDao { private IProductDao _productDao; public IProductDao ProductDao { get { return _productDao; } set { _productDao = value; } } public CustomerDao() { } public Customer GetById(int id) { Customer c = new Customer(_productDao)...
[ 0.35522353649139404, -0.27282950282096863, 0.6072999835014343, -0.18069638311862946, 0.17203933000564575, 0.03768822178244591, 0.02713879384100437, -0.41693034768104553, -0.21733438968658447, -0.3869427442550659, -0.3250899016857147, 0.7831659317016602, -0.4022490978240967, 0.3384054303169...
} } public class ProductDao : IProductDao { private ICustomerDao _customerDao; public ProductDao() { } public ICustomerDao CustomerDao { get { return _customerDao; } set { _customerDao = value; } } public Product[] GetAllForCustomer(Customer customer) { return null; } ...
[ -0.11884123831987381, -0.22730481624603271, 0.4280933737754822, -0.061424434185028076, 0.38484227657318115, 0.22459562122821808, -0.0022286686580628157, 0.06947752088308334, -0.06716102361679077, -0.43308553099632263, -0.6510639786720276, 0.5184421539306641, -0.39681991934776306, 0.3664190...
I have some pages on my site that are plain HTML pages, but I want to add some ASP .NET type functionality to these pages. My concern is that if I simple rename the .html page to .aspx that I will break links, and lose SEO, and so on. I would think there is a "best practice" for how to handle this situation. Create yo...
[ 0.4628118872642517, 0.2136898785829544, 0.388979971408844, -0.0396663062274456, -0.3332793414592743, -0.29136520624160767, 0.5912294387817383, 0.2637456953525543, -0.4206162691116333, -0.6464418768882751, -0.0829438790678978, 0.24041864275932312, -0.35927796363830566, 0.184983029961586, ...
a meta-refresh with no delay as a 301 redirect, so just do something like this: ``` <html> <head> <title>Moved to new URL: http://example.com/newurl</title> <meta http-equiv="refresh" content="0; url=http://example.com/newurl" /> <meta name="robots" content="noindex,follow" /> </head> <body> <h1>This page has been mov...
[ 0.08379422873258591, -0.07110866904258728, 1.0697005987167358, -0.16090178489685059, -0.38026395440101624, 0.18407940864562988, 0.4099545478820801, -0.23348909616470337, -0.23837810754776, -0.7942445278167725, -0.06351745873689651, 0.3831499516963959, -0.25789010524749756, 0.26151663064956...
So, if i have: ``` public class Sedan : Car { /// ... } public class Car : Vehicle, ITurn { [MyCustomAttribute(1)] public int TurningRadius { get; set; } } public abstract class Vehicle : ITurn { [MyCustomAttribute(2)] public int TurningRadius { get; set; } } public interface ITurn { [MyCus...
[ 0.38202720880508423, 0.1655808687210083, 0.45069819688796997, -0.07648417353630066, 0.06724008917808533, 0.38995689153671265, 0.3565554618835449, -0.682024359703064, 0.17825108766555786, -0.44562602043151855, -0.23271340131759644, 0.766394317150116, 0.24655714631080627, 0.17863541841506958...
attribute. The instance is the one built with MyCustomAttribute(1). This doesn't seem to work as expected. this is a framework issue. Interface attributes are ignored by GetCustomAttributes. see the comment on this blog post <http://hyperthink.net/blog/getcustomattributes-gotcha/#comment-65>
[ -0.2393384575843811, 0.035033777356147766, 0.272602379322052, 0.1923191398382187, -0.32762497663497925, -0.01946578174829483, 0.3343697488307953, -0.020944710820913315, -0.07227840274572372, -0.7018250226974487, 0.12745971977710724, 0.42074617743492126, -0.5132606029510498, 0.1550824493169...
I have code that lets me select a single item in arange: ``` COleVariant vItems = cstrAddr; hr = AutoWrap( DISPATCH_PROPERTYGET, &vCell,
[ -0.012176946736872196, 0.17359180748462677, 0.35351383686065674, -0.04256465658545494, 0.2939170300960541, 0.22859258949756622, 0.234160915017128, -0.5061991810798645, -0.07538364082574844, -0.6823518872261047, -0.24036407470703125, 0.4115457832813263, -0.24277903139591217, 0.0725274085998...
irange, L"Item", 2,
[ -0.5360000133514404, 0.12116753309965134, -0.4087993800640106, -0.14189112186431885, -0.106029212474823, 0.5260908603668213, -0.15114082396030426, 0.1081642434000969, -0.5326987504959106, -0.13956665992736816, -0.43719807267189026, 0.255510538816452, -0.2727195918560028, 0.0558015033602714...
COleVariant((short)(1)), COleVariant((short)(1))); if (FAILED(hr)) return hr; // Use the dispatch interface to select the cell COleVariant result; hr = AutoWrap(
[ -0.1990124136209488, -0.03513660281896591, 0.42174211144447327, -0.302254319190979, 0.864155650138855, 0.15372174978256226, 0.39501792192459106, -0.7992051243782043, 0.18693721294403076, -0.3562365770339966, -0.18989935517311096, 0.5439595580101013, -0.30540117621421814, -0.123332746326923...
DISPATCH_METHOD, &result, vCell.pdispVal, L"Select",
[ -0.517335832118988, -0.2652466893196106, 0.06948327273130417, 0.08592034876346588, 0.2017476111650467, 0.4760156571865082, -0.12432502210140228, -0.1794987916946411, -0.18269073963165283, -0.6297935247421265, -0.29250141978263855, 0.47521910071372986, -0.5324195623397827, -0.00984540581703...
0); if (FAILED(hr)) return hr; ``` This works fine. However, I need to select all the cells in the range, but I haven't been able to find a way to specify this in the "get" call for the Item property. Tried using -1,-1... tried passing in a pair of bstr in the 2 variants, specifying a colon separated range of...
[ -0.03812525048851967, -0.017521191388368607, 0.3951845169067383, -0.35478919744491577, -0.07810897380113602, 0.25420063734054565, 0.5079689025878906, -0.5121033191680908, -0.09022738039493561, -0.6021856069564819, -0.2501530051231384, 0.5181307196617126, -0.36653009057044983, 0.07941584289...
it does not select the range. Normally, I can't directly call the functions in the iRange struct; the result is a gpf or access violation -- so I have to use the autowrap function (to drive an Invoke call). I'm not surprised this call doesn't work. Hope I can get this working.... it's the last piece of this project. Yo...
[ 0.08582265675067902, 0.03244294598698616, 0.29193735122680664, 0.040044158697128296, -0.05854601040482521, -0.3023205101490021, 0.3715924620628357, 0.01983022876083851, -0.06474442780017853, -0.6843500733375549, -0.06656373292207718, 0.6732473969459534, -0.22343097627162933, -0.04976394400...
the DLL when you deploy, and you are set.
[ 0.3220541477203369, -0.34642475843429565, 0.5662428140640259, 0.12485147267580032, 0.22496281564235687, -0.48701170086860657, -0.175999253988266, 0.12624302506446838, -0.20068813860416412, -0.7452815175056458, -0.6197987794876099, 0.7653406262397766, 0.10533209890127182, -0.209717407822608...
I am using the .NET 3.5 SP1 framework and I've implemented URL routing in my application. I was getting javascript errors: `Error: ASP.NET Ajax client-side framework failed to load. Resource interpreted as script but transferred with MIME type text/html. ReferenceError: Can't find variable: Sys` Which I believ...
[ 0.0427497960627079, 0.11662782728672028, 0.4192272126674652, -0.11359279602766037, -0.18754470348358154, -0.25297918915748596, 0.6076229214668274, 0.03504840284585953, -0.2953305244445801, -0.8772104978561401, 0.057209353893995285, 0.2856369614601135, -0.4891696274280548, 0.124524079263210...
does not contain a definition for 'IgnoreRoute' and no extension method 'IgnoreRoute' accepting a first argument of type 'System.Web.Routing.RouteCollection' could be found (are you missing a using directive or an assembly reference?)` I've got the `System.Web.Routing` namespace imported, any ideas? You don't need to ...
[ 0.1578763723373413, -0.013355910778045654, 0.6395068168640137, 0.04595403000712395, 0.12827818095684052, -0.07432100921869278, 0.21155348420143127, -0.011083141900599003, -0.4924749433994293, -0.6178570985794067, -0.22238285839557648, 0.2450278103351593, -0.5414327383041382, -0.10992942005...
Has anybody implemented a feature where if the user has not touched the screen for a certain time period, you take a certain action? I'm trying to figure out the best way to do that. There's this somewhat-related method in UIApplication: ``` [UIApplication sharedApplication].idleTimerDisabled; ``` It'd be nice if y...
[ 0.45052412152290344, 0.045947521924972534, 0.2646925747394562, -0.04918033257126808, 0.06976105272769928, -0.17708787322044373, 0.06674225628376007, -0.023296184837818146, -0.4863526523113251, -0.9013047814369202, 0.18492095172405243, 0.5922441482543945, -0.1529955416917801, -0.16672286391...
had been looking for: Have your application delegate subclass UIApplication. In the implementation file, override the sendEvent: method like so: ``` - (void)sendEvent:(UIEvent *)event { [super sendEvent:event]; // Only want to reset the timer on a Began touch or an Ended touch, to reduce the number of timer ...
[ -0.2347872406244278, -0.3386665880680084, 0.683542788028717, -0.22709347307682037, 0.0981033593416214, -0.1950259804725647, 0.5316187739372253, -0.31040698289871216, -0.23689745366573334, -0.8757758736610413, -0.15915347635746002, 0.3804417550563812, -0.29584333300590515, 0.150735527276992...
*)[allTouches anyObject]).phase; if (phase == UITouchPhaseBegan || phase == UITouchPhaseEnded) [self resetIdleTimer]; } } - (void)resetIdleTimer { if (idleTimer) { [idleTimer invalidate]; [idleTimer release]; } idleTimer = [[NSTimer scheduledTimerWithTimeInterval:ma...
[ 0.00934442225843668, -0.5170483589172363, 0.6132729053497314, -0.4937143921852112, 0.44361740350723267, 0.16101613640785217, 0.23931750655174255, -0.3423396050930023, -0.45848193764686584, -0.53752201795578, -0.11775731295347214, 0.7171669006347656, -0.2706945240497589, 0.35306593775749207...
your main.m to tell UIApplicationMain to use your delegate class (in this example, AppDelegate) as the principal class: ``` int retVal = UIApplicationMain(argc, argv, @"AppDelegate", @"AppDelegate"); ```
[ -0.16705939173698425, -0.09314980357885361, 0.46615591645240784, 0.22800500690937042, 0.005418180488049984, -0.01991470716893673, 0.30567270517349243, 0.023924391716718674, -0.13033904135227203, -0.3678032159805298, -0.44312360882759094, 0.49685850739479065, -0.34529662132263184, 0.4174330...
I am working on an application, implemented in VC++ 2008 that needs to use sftp through libCurl. In order for this to happen, libCurl needs to be built with ssh support. The problem is that, unlike the mingw makefile, the makefile for vc8 does not have target configurations to build with SSH support. Does anyone know w...
[ 0.33983734250068665, -0.047441497445106506, 0.713812530040741, 0.0035415987949818373, -0.15759596228599548, -0.3570305109024048, 0.43248674273490906, -0.034853171557188034, -0.4244193434715271, -0.7519208192825317, 0.24762681126594543, 0.057788554579019547, -0.0415397509932518, 0.365392684...
on the control to set the realm. If you're doing it programmatically, you set the property on the IAuthenticationRequest object before calling RedirectToProvider(). As far as the session/cookie problem goes with hopping between the www and non-www host name, you have two options: 1. Rather than storing the original i...
[ 0.1618773639202118, -0.2574520707130432, 0.7626729011535645, 0.4408332109451294, -0.007714478764683008, -0.34830424189567566, 0.5304043292999268, -0.23881632089614868, -0.07130596041679382, -0.7299312949180603, 0.09092843532562256, 0.802524745464325, -0.33522829413414, 0.34025901556015015,...
Directed identity is just one scenario: If the user types 'yahoo.com', you probably don't want to say to them 'Welcome, yahoo.com!' but rather 'Welcome, id.yahoo.com/andrewarnott'! The only way you're going to get the right behavior consistently is to use the IAuthenticationResponse.FriendlyIdentifierForDisplay propert...
[ -0.017431793734431267, -0.12450596690177917, 0.4043549597263336, -0.07573024183511734, -0.26043084263801575, -0.1384887397289276, 0.4658210277557373, 0.12485816329717636, -0.1381775140762329, -0.4132164418697357, -0.1577635258436203, 0.5720811486244202, -0.42053449153900146, -0.30223932862...
Seems likes it might be useful to have the assert display a message when an assertion fails. Currently an `AssertionError` gets thrown, can you specify a custom message for it? Can you show an example mechanism for doing this (other than creating your own exception type and throwing it)? You certainly can: ``` asser...
[ 0.1924421340227127, -0.07775247097015381, 0.5191112756729126, 0.050649650394916534, -0.1813689023256302, -0.36919519305229187, 0.24764452874660492, -0.3973139822483063, -0.3207620084285736, -0.3503185510635376, 0.056702692061662674, 0.6533244252204895, -0.01236877590417862, 0.1268507242202...
I am looking at the pricing of various cloud computing platforms, particularly Amazon's EC2, and a lot of the quotes are based on a unit called an Instance-Hour. I am trying to get a handle on the exact definition of an instance-hour to better compare the costs of continuing to host a web-application versus putting i...
[ 0.32169148325920105, 0.3746394217014313, 0.19862434267997742, 0.3306270241737366, -0.06357894837856293, 0.28132033348083496, -0.08711540699005127, 0.0017869158182293177, -0.10043799132108688, -0.4679771661758423, 0.4510793685913086, 0.8191352486610413, 0.29680195450782776, 0.16726319491863...
hour is simply a regular hour where the instance was available to you, wether you used it or not. Amazon has priced their different types of instances differently, so you pay for the type of resource you are getting, not how much you use it. So... 1. No, it's just a regular hour. 2. It doesn't, it's already factored i...
[ 0.400869220495224, -0.0723218023777008, 0.1348649561405182, 0.4715438783168793, -0.20794545114040375, -0.024596471339464188, 0.1562516838312149, 0.11806228011846542, -0.2370617538690567, -0.6147012710571289, 0.3410642147064209, 0.6093869209289551, -0.13537681102752686, 0.16756047308444977,...
Many of us need to deal with user input, search queries, and situations where the input text can potentially contain profanity or undesirable language. Oftentimes this needs to be filtered out. Where can one find a good list of swear words in various languages and dialects? Are there APIs available to sources that c...
[ 0.7753920555114746, 0.24270878732204437, 0.2155180424451828, 0.3629758656024933, -0.3458287715911865, -0.34216058254241943, 1.0799708366394043, 0.11668115854263306, -0.18602553009986877, -0.4299755394458771, 0.024899650365114212, 0.6181135177612305, 0.047576677054166794, -0.213503241539001...
to answers that say simply avoid the programmatic issue:* ------------------------------------------------------------------------- I think there is a place for this kind of filter when, for instance, a user can use public image search to find pictures that get added to a sensitive community pool. If they can search f...
[ 0.40971434116363525, -0.007492685690522194, 0.2971184551715851, 0.5152669548988342, -0.11241809278726578, -0.2220679223537445, 0.22671350836753845, 0.060295261442661285, -0.24587520956993103, -0.3877221941947937, 0.09716153889894485, 0.41219019889831543, -0.029879285022616386, 0.1081874296...
figure out of a single token is dirty or not and then simply disallow it. I'd not bother preventing a sentiment like the totally hilarious "long necked giraffe" reference. Nothing you can do there. :) [Obscenity Filters: Bad Idea, or Incredibly Intercoursing Bad Idea?](http://blog.codinghorror.com/obscenity-filters-bad...
[ 0.4949181377887726, -0.20535174012184143, 0.2295316904783249, 0.4542536735534668, 0.08543361723423004, -0.3367212116718292, 0.23059844970703125, 0.15446245670318604, -0.29613569378852844, -0.08767174929380417, -0.16384001076221466, -0.16395527124404907, -0.24861948192119598, 0.251917570829...
implement a rudimentary tool to get rid of the drive-by's, but for the determined troll, you absolutely must have a non-algorithm-based approach. A system that removes anonymity and introduces accountability (something that Stack Overflow does well) is helpful also, particularly in order to help combat [John Gabriel's...
[ 0.6751456260681152, -0.01998431421816349, 0.2033296525478363, 0.34459811449050903, -0.5724232792854309, -0.3406636416912079, 0.28973862528800964, 0.18014676868915558, -0.43827739357948303, -0.14448761940002441, 0.10869380086660385, 0.3761114478111267, -0.17129400372505188, 0.02453889697790...
gleaning point for you. **Edit in response to the question edit:** Thanks for the clarification on what you're trying to do. In that case, if you're just trying to do a simple word filter, there are two ways you can do it. One is to create a single long regexp with all of the banned phrases that you want to censor, an...
[ -0.05875501409173012, -0.4450125992298126, 0.3769628703594208, 0.12237079441547394, -0.31440916657447815, -0.040109675377607346, -0.050257813185453415, 0.027491601184010506, -0.17845869064331055, -0.39220482110977173, -0.23855255544185638, 0.41249987483024597, -0.5647659301757812, -0.18583...
rather than a single long regex, and for long word lists, it may be more manageable. See the [preg\_replace()](http://us.php.net/preg_replace) for some good examples as to how arrays can be used flexibly. For additional PHP programming examples, see this page for a [somewhat advanced generic class](http://www.bitrepos...
[ 0.12867368757724762, -0.24027980864048004, 0.17168691754341125, 0.10160540044307709, -0.4241783320903778, 0.10022128373384476, 0.4455580413341522, -0.3711220920085907, -0.31708666682243347, -0.5451236963272095, -0.18285946547985077, 0.5054088234901428, -0.23852038383483887, -0.128088355064...
in the first place is the real question.*" -- in addition to some of the previous Dansgaurdian links, you may find [this handy .zip](http://urbanoalvarez.es/blog/2008/04/04/bad-words-list/) of 458 words to be helpful.
[ 0.09373638033866882, 0.13756495714187622, 0.1716460883617401, 0.0421321839094162, -0.5507309436798096, 0.27427586913108826, 0.5893575549125671, 0.19330450892448425, -0.3527721166610718, -0.49874046444892883, -0.07757408171892166, 0.20157170295715332, -0.11664015054702759, -0.33849895000457...
Hey all, I need some advice on this... We have certain permissions setup in the database for certain levels of control a user can have over the application. Disabled, ReadOnly and Edit. My question is: Are there more generic/better ways to handle permissions applied to a form element on the page than writing a secur...
[ 0.6161059141159058, 0.15072059631347656, 0.14396598935127258, 0.3905019760131836, -0.09840160608291626, -0.2120898813009262, 0.2232743501663208, -0.040320880711078644, -0.14244037866592407, -0.42352181673049927, 0.16491831839084625, 0.623078465461731, -0.19772771000862122, -0.0411316156387...
accept a constant from the form that the control is on, and return boolean to enable/disable controls, this would really reduce the amount of places I'd have to hit when/if I ever need to modify the security for all forms. Cheers! Sorry for going slightly off-topic here, but learn from my mistake: I had a simple web ...
[ 0.1705070436000824, 0.15632162988185883, 0.5073727369308472, 0.20514027774333954, -0.1621183454990387, -0.015637231990695, 0.30163291096687317, 0.11850608885288239, -0.1658034771680832, -0.2550807297229767, 0.16455447673797607, 0.9054875373840332, -0.14673607051372528, 0.031077280640602112...
levels as the project grew. It all started with a user that needed more than user control in one area of the program but not full admin control. What I should have done was setup an expandable system with finer control even though I didn't need it at first. This would have saved me sooo much time.
[ 0.25499165058135986, -0.18032357096672058, 0.24194951355457306, 0.2573152482509613, -0.2839755415916443, 0.11719948798418045, 0.20082391798496246, 0.0695328563451767, -0.19952507317066193, -0.4316761791706085, 0.27168890833854675, 0.5540754199028015, -0.15113481879234314, 0.273203223943710...
I'm trying to get a user control working asynchronously, yet no matter what I do it continues to work synchronously. I've stripped it down to its bare minimum as a test web application. This would be the user control: ``` <%@ Control Language="C#" %> <script runat="server"> SqlConnection m_oConnection; SqlComm...
[ 0.2810318171977997, -0.0037722373381257057, 0.4434714615345001, -0.08263975381851196, 0.35337352752685547, -0.05778856575489044, 0.4892977476119995, -0.2624245584011078, 0.012196850031614304, -0.741689145565033, -0.11122653633356094, 0.4755437970161438, -0.4754030704498291, 0.1758180856704...
delay '00:00:10'; select * from MyTable"; m_oConnection = new SqlConnection(strDSN); m_oCommand = new SqlCommand(strSQL, m_oConnection); m_oConnection.Open(); Page.RegisterAsyncTask(new PageAsyncTask(new BeginEventHandler(BeginHandler), new EndEventHandler(EndHandler), new EndEventHand...
[ -0.1007138267159462, -0.2131948173046112, 0.6967950463294983, -0.3432525396347046, 0.28158700466156006, 0.25536882877349854, 0.5090725421905518, -0.3828730881214142, -0.09170133620500565, -0.644220232963562, -0.3780803680419922, 0.30709174275398254, -0.29424089193344116, 0.4688495993614197...
} void EndHandler(IAsyncResult ar) { Trace.Warn("EndHandler"); GridView1.DataSource = m_oCommand.EndExecuteReader(ar); GridView1.DataBind(); m_oConnection.Close(); } void TimeoutHandler(IAsyncResult ar) { Trace.Warn("TimeoutHandler"); } </script> <asp:gr...
[ -0.15466059744358063, -0.11929761618375778, 0.7834417819976807, -0.24277673661708832, 0.22434096038341522, 0.20186695456504822, 0.07387197017669678, -0.44308915734291077, 0.04371782764792442, -0.709942638874054, -0.05740867555141449, 0.7107113599777222, -0.3622913956642151, 0.1730887293815...
<body> <form id="form1" runat="server"> <uc:mycontrol id="MyControl1" runat="server" /> <uc:mycontrol id="MyControl2" runat="server" /> <uc:mycontrol id="MyControl3" runat="server" /> </form> </body> </html> ``` The page gets displayed without errors, but the tr...
[ 0.13913573324680328, 0.0764039009809494, 0.6764893531799316, 0.3173059821128845, 0.13197721540927887, 0.09564483910799026, 0.2626548409461975, -0.24095290899276733, -0.08461423218250275, -0.6868565082550049, -0.22068557143211365, 0.16811548173427582, -0.27789822220802307, -0.10149028897285...
configuration setting somewhere I'm missing? Looks like I can answer my own question. The user control should not be calling `Page.ExecuteRegisteredAsyncTasks`. By doing that, the control was adding the async task, running it, and waiting for it to complete. Instead, each instance of the user control should call only ...
[ -0.07312073558568954, -0.06334610283374786, 0.4607449769973755, -0.14871180057525635, 0.19009025394916534, -0.11745136976242065, 0.1460600644350052, -0.07861291617155075, -0.36094996333122253, -0.9158679246902466, -0.1955113410949707, 0.4417206048965454, -0.563039243221283, 0.2116841673851...
{ Trace.Warn(ID, "Page_Load - " + Thread.CurrentThread.GetHashCode().ToString()); string strDSN = ConfigurationManager.ConnectionStrings["DSN"].ConnectionString + ";async=true"; string strSQL = "waitfor delay '00:00:10'; select * from TEProcessedPerDay where Date > dateadd(day, -90, getutcdate()...
[ 0.007873949594795704, -0.3016822636127472, 0.7318317294120789, -0.2627968192100525, 0.5591515302658081, 0.13792233169078827, 0.4627688527107239, -0.29407671093940735, -0.22357846796512604, -0.7014301419258118, -0.21459168195724487, 0.24839098751544952, -0.16639985144138336, 0.4786058962345...
null, true)); } IAsyncResult BeginHandler(object src, EventArgs e, AsyncCallback cb, object state) { Trace.Warn(ID, "BeginHandler - " + Thread.CurrentThread.GetHashCode().ToString()); return m_oCommand.BeginExecuteReader(cb, state); } void EndHandler(IAsyncResult ar) { ...
[ -0.07542872428894043, 0.010527070611715317, 0.43584826588630676, -0.4292837381362915, 0.25947895646095276, 0.330468088388443, 0.4858398139476776, -0.5513402819633484, -0.0671236515045166, -0.594359278678894, -0.25180235505104065, 0.5929189920425415, -0.36821112036705017, 0.3054694235324859...
} void TimeoutHandler(IAsyncResult ar) { Trace.Warn(ID, "TimeoutHandler - " + Thread.CurrentThread.GetHashCode().ToString()); } </script> <asp:gridview id="GridView1" runat="server" /> ``` And the unchanged page that creates three instances of the control: ``` <%@ page language="C#" async="true"...
[ -0.12171857059001923, -0.23941369354724884, 0.6517077684402466, 0.11182912439107895, 0.494966596364975, 0.23237666487693787, 0.06441155076026917, -0.49009212851524353, -0.018178289756178856, -0.5194066166877747, -0.07325718551874161, 0.36618995666503906, -0.5145982503890991, 0.122021012008...
<uc:mycontrol id="MyControl3" runat="server" /> </form> </body> </html> ```
[ -0.1214132308959961, 0.23794201016426086, 0.4441939890384674, -0.005841325502842665, 0.17850877344608307, -0.15172000229358673, -0.0664215162396431, 0.3560044467449188, -0.17125755548477173, -0.6174819469451904, -0.4763784408569336, -0.01642303168773651, -0.008253676816821098, 0.2529802918...
[Link](https://web.archive.org/web/20210126032647/http://geekswithblogs.net/michelotti/archive/2007/12/17/117791.aspx) I'm using ASP.NET with C# and trying to use linq to sql to update a data context as exhibited on the blog linked above. I created the timestamp field in the table just as stated and am using the follo...
[ 0.18477395176887512, 0.44921109080314636, 0.7390454411506653, -0.03399483487010002, 0.1554393470287323, -0.1352802813053131, 0.007845260202884674, -0.3177070617675781, -0.18316543102264404, -0.47770723700523376, -0.239273801445961, 0.5838887691497803, -0.4006042778491974, 0.091554805636405...
the primary key of the record that I'm updating before passing the object to this update method. During debugging the TimeStamp attribute of the object shows as null. I'm not sure if it's supposed to be that way or not. Every book and resource I have says that this is the way to do it, but none of them go into great d...
[ 0.2695903778076172, 0.3014693856239319, 0.09462392330169678, 0.13000553846359253, 0.10832084715366364, -0.1504794955253601, 0.3518299162387848, 0.42547836899757385, -0.36051079630851746, -0.6685339212417603, 0.11695226281881332, 0.3170356750488281, -0.18875053524971008, 0.3429098427295685,...
to assign it. Otherwise, you lose the ability to use the timestamp for optimistic concurrency checking. The idea is you take a copy of the timestamp when you get hold of your (disconnected) object, then when you update you can use this column to verify that nobody else has edited the row. There are two common scenari...
[ 0.1385176032781601, -0.28035786747932434, 0.36255544424057007, 0.14694592356681824, 0.3343486487865448, -0.10719852149486542, 0.14471204578876495, -0.34178370237350464, -0.5512527823448181, -0.12824954092502594, -0.04609396308660507, 0.470943421125412, -0.5404964685440063, 0.20372737944126...
(for example passing it to a client application for a while), then use something like serialization (LINQ-to-SQL objects support DataContractSerializer (optionally; you need to enable it)). So serialize the object at the server, pass it to the client - the client makes changes to their copy and passes it back. The serv...
[ 0.16440781950950623, 0.05787232145667076, 0.4123656451702118, 0.38369980454444885, 0.3097269833087921, -0.229715496301651, 0.001489552785642445, -0.1868797093629837, -0.4949231445789337, -0.5185419917106628, -0.21001572906970978, 0.3508036434650421, -0.23538106679916382, 0.420111745595932,...
Does anyone know the official method for submitting feedback on C# 4.0 so that Anders and his team will get the feedback and be able to respond to the submission? Probably the forums [here](http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/threads/), or (for bugs) [connect](https://connect.microsoft.com/Visua...
[ 0.7912034392356873, -0.06749734282493591, 0.3011990785598755, 0.27296358346939087, -0.4696407914161682, -0.12078238278627396, 0.13409343361854553, 0.32946768403053284, -0.49619364738464355, -0.29849541187286377, -0.027555221691727638, 0.3515799343585968, 0.13393588364124298, -0.11079763621...
It's a really basic question but i can't think at the second. How do i set up a loop that asks each time the function inside runs whether to do it again. So it runs it then says something like; "loop again? y/n" ``` while True: func() answer = raw_input( "Loop again? " ) if answer != 'y': break ``...
[ 0.2847120463848114, -0.042017702013254166, 0.24465903639793396, -0.19154436886310577, 0.09402217715978622, -0.09834355860948563, 0.3424553871154785, -0.22082176804542542, -0.10311058163642883, -0.11047763377428055, -0.16131141781806946, 0.5394698977470398, -0.2294396162033081, 0.1580666899...
The company I work for has historically had very little process as far as software development. Currently we don't really follow any specific method. The problem is of course it makes it difficult to plan, successfully have a decent release or even attract good software developers. I think I may be able to convince t...
[ 0.8768395185470581, 0.39490363001823425, -0.1115720123052597, 0.08935736864805222, 0.3342542350292206, -0.2759424149990082, 0.392608642578125, 0.22234851121902466, -0.17111420631408691, -0.1326753795146942, 0.13594186305999756, 0.6414459347724915, 0.21987320482730865, 0.38397425413131714, ...
plan to: 1. Give presentation on how Scrum works. how I see it working with the people we currently have and how it will benefit the business. 2. Ask for training for specific people so we aren't "making it up as we go along" 3. Set a date to implement, there is some planning and loose ends I probably have to tie up t...
[ 0.8390941619873047, -0.30328676104545593, 0.2681047320365906, 0.21952475607395172, 0.18238377571105957, -0.11332157999277115, -0.027037126943469048, -0.05957191064953804, -0.08468064665794373, -0.5121469497680664, -0.028929097577929497, 0.41216182708740234, 0.2339819371700287, -0.314112454...
took too long to develop. If you are going to advocate a process, it needs to be shown that you will not lose flexibility just to have structure. Points to make to decision makers: * Having a Scrum-like process will improve how much information that management has at its fingertips, and allow them to make decision...
[ 0.43060576915740967, -0.13746431469917297, -0.17669442296028137, 0.1395663619041443, -0.03477271646261215, -0.15693342685699463, 0.1885639876127243, -0.08934532105922699, -0.5734630227088928, -0.578947126865387, 0.344316303730011, 0.3946475684642792, 0.3284004032611847, 0.05814429372549057...
you couple that with TDD, where you define say 100 test cases, they can see that 50% of the test cases are left to get working, but from the burndown rate there is only enough time to do 25% (remember Managers like it simple, so this isn't a *perfect* state of the project, **but** it is an *easy to understand* one that...
[ 0.2824918329715729, -0.2685830891132355, 0.0719696581363678, 0.4066298007965088, 0.020054200664162636, -0.022493839263916016, 0.4688168466091156, -0.36852046847343445, -0.372061163187027, -0.8441839218139648, 0.09793852269649506, 0.4804173707962036, 0.03642293065786362, 0.0537228137254715,...
on bugs, more knowledge transfer (what happens if your star developer is hit by a bus), and all this means that the company will get developers focused on a better product than on continuously fixing bugs. ***e.g. this will save them money*** * A small set of changes will be implemented first. This will be a proof of c...
[ 0.307125449180603, 0.04092637076973915, 0.24839605391025543, 0.24180318415164948, 0.04150357469916344, -0.10534428060054779, 0.23981432616710663, 0.023918647319078445, -0.3855469226837158, -0.744327187538147, -0.11628063768148422, 0.7763093113899231, -0.09113311767578125, -0.15336401760578...
some data *before* you even make the proposal. Why? Good question: you need a baseline for 2 reasons: 1. You'll want to know how much the changes have helped. So you can propose more changes. 2. You'll likely have a manager complain about a problem while the proof of concept is going on. You'll want *evidence* that...
[ 0.3675553500652313, 0.018144559115171432, 0.11432770639657974, 0.5425180792808533, 0.03615639731287956, -0.15958037972450256, 0.03906778618693352, -0.21324825286865234, -0.4343274235725403, -0.4876539707183838, 0.3249393403530121, 0.39572080969810486, -0.15964004397392273, -0.0128274234011...
of concept process changes will be blamed. So be ready for it.*
[ 0.28868868947029114, 0.08627265691757202, 0.21521958708763123, 0.21196475625038147, -0.04503677040338516, -0.11670685559511185, 0.2173316478729248, -0.04847882688045502, -0.4785335659980774, -0.5537384152412415, -0.03852732107043266, 0.7142842411994934, 0.2309408038854599, 0.13486003875732...
I find AWK really useful. Here is a one liner I put together to manipulate data. ``` ls | awk '{ print "awk " "'"'"'" " {print $1,$2,$3} " "'"'"'" " " $1 ".old_ext > " $1 ".new_ext" }' > file.csh ``` I used this AWK to make a script file that would rename some files and only print out selective columns. Anyone...
[ 0.34215259552001953, 0.21616233885288239, 0.021776337176561356, 0.25048181414604187, -0.38897958397865295, 0.09858844429254532, 0.31081295013427734, -0.06331325322389603, 0.1516934186220169, -0.5888542532920837, 0.3202565908432007, 0.3051590621471405, -0.3192434012889862, 0.068159356713294...
now).
[ -0.08795062452554703, 0.0045367456041276455, 0.5731899738311768, 0.008371328003704548, 0.2213491052389145, 0.2668285667896271, 0.11290748417377472, -0.3182619512081146, 0.1086440160870552, -0.45209187269210815, -0.34693193435668945, 0.4700116515159607, -0.2710658311843872, 0.67865812778472...
I'm working on a Java based project that has a client program which needs to connect to a MySQL database on a remote server. This was implemented is as follows: Use JDBC to write the SQL queries to be executed which are then hosted as a servlet using Apache Tomcat and made accessible via XML-RPC. The client code uses ...
[ 0.35628610849380493, 0.4816140830516815, 0.18873804807662964, -0.003452192060649395, -0.1136242002248764, -0.27764177322387695, 0.038917407393455505, 0.11251801997423172, -0.05486397445201874, -0.47392284870147705, 0.06903955340385437, 0.4979904294013977, -0.2935624420642853, 0.27823558449...