Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
32,517
2
null
32,493
0
null
I, too was not born with a strong design skillset, in fact quite the opposite. When I started out, my philosophy was that if the page or form then my job was done! Over the years though, I've improved. Although I believe I'll never be as good as someone who was born with the skills, sites like [CSS Zen Garden](http:...
null
CC BY-SA 2.5
null
2008-08-28T15:08:01.870
2008-08-28T15:08:01.870
null
null
3,201
null
32,521
2
null
32,458
31
null
There is a half-way house here which has some use, which is to seed your PRNG with a constant. That allows you to generate 'random' data which is repeatable. Personally I do think there are places where (constant) random data is useful in testing - after you think you've done all your carefully-thought-out corners, u...
null
CC BY-SA 2.5
null
2008-08-28T15:09:04.613
2008-08-28T15:09:04.613
null
null
987
null
32,513
1
32,794
null
1
953
Is there any way to Write files to App_Data under medium trust hack? Im sure I've heard about some hack, is that true?
Write files to App_Data under medium trust hack?
CC BY-SA 3.0
null
2008-08-28T15:05:28.177
2015-04-16T05:16:20.167
2015-04-16T05:16:20.167
707,364
2,972
[ "asp.net", "trust" ]
32,422
2
null
32,412
0
null
This will reverse that, also it would be wise to take sysobject permissions away from the username your site runs with, and to sanitize input of course ``` DECLARE @T VARCHAR(255),@C VARCHAR(4000) DECLARE Table_Cursor CURSOR FOR SELECT a.name,b.name FROM sysobjects a,syscolumns b WHERE a.id=b.id and a.xtype='u' and...
null
CC BY-SA 2.5
null
2008-08-28T14:33:07.990
2008-08-28T14:33:07.990
null
null
740
null
32,528
2
null
32,493
0
null
As I mentioned in a thread yesterday, I have found working through tutorials for Adobe Photoshop, Illustrator, InDesign, and After Effects to be very helpful. I use Adobe's [Kuler](http://kuler.adobe.com) site for help with colors. I think that designers spend a lot of time looking at other's designs. Some of the books...
null
CC BY-SA 2.5
null
2008-08-28T15:11:40.317
2008-08-28T15:11:40.317
null
null
3,114
null
32,507
2
null
32,145
0
null
I've always handled this issue in a similar with a __call which ends up pretty much as boiler plate code in many of my classes. However, it's compact, and uses the reflection classes to only add getters / setters for properties you have already set (won't add new ones). Simply adding the getter / setter explicitly will...
null
CC BY-SA 2.5
null
2008-08-28T15:02:40.510
2008-08-28T15:02:40.510
null
null
2,745
null
32,531
2
null
32,458
19
null
In the book [Beautiful Code](http://oreilly.com/catalog/9780596510046/), there is a chapter called "Beautiful Tests", where he goes through a testing strategy for the [Binary Search](http://en.wikipedia.org/wiki/Binary_search) algorithm. One paragraph is called "Random Acts of Testing", in which he creates random array...
null
CC BY-SA 2.5
null
2008-08-28T15:12:04.357
2008-08-28T15:12:04.357
null
null
613
null
32,519
1
32,707
null
3
1,119
I have a list, each item of which has several things in it, including a `JProgressBar` which can be updated a lot. Each time one of the items updates its `JProgressBar`, the `ListDataListener` on the list tries to scroll it to the visible range using ``` /* * This makes the updating content item automatically scroll ...
List in JScrollPane painting outside the viewport
CC BY-SA 4.0
null
2008-08-28T15:08:47.547
2018-08-08T23:46:31.263
2018-08-08T23:46:31.263
770,254
3,333
[ "java", "swing", "jscrollpane" ]
32,529
1
32,549
null
26
15,588
I want to limit my users to a directory and its sub directories but the "Parent Directory" button allows them to browse to an arbitrary directory. How should I go about doing that?
How do I restrict JFileChooser to a directory?
CC BY-SA 3.0
0
2008-08-28T15:11:45.277
2017-02-19T13:54:20.910
2017-02-19T13:54:20.910
1,033,581
2,443
[ "java", "swing", "jfilechooser" ]
32,535
2
null
32,462
1
null
Your best bet for parts 1 and 2 is to make a large request, say returning 100 or 200 photos and store the URL and other details. Then producing random selections from your local copy should be simple. For part 3 I'm not sure how you would accomplish this without some form of human intervention, unless you can define '...
null
CC BY-SA 2.5
null
2008-08-28T15:12:43.167
2008-08-28T15:12:43.167
null
null
1,908
null
32,514
2
null
13,039
2
null
Maybe you could elaborate a little on what "visual display" and "pretty charts" you are after? A roundabout way would be to clone the svn repository with [git-svn](http://git-scm.com/docs/git-svn), then you can use the graphical [gitk](http://lwn.net/Articles/140350/) or [giggle](http://developer.imendio.com/projects/...
null
CC BY-SA 2.5
null
2008-08-28T15:06:02.810
2008-08-28T15:06:02.810
null
null
2,905
null
32,530
2
null
23,689
4
null
@Blair Conrad - Good ideas! I tried to get Chronic running under IronRuby but had some problems with dependencies - I don't know that it's ready yet. I found a project on [Codeplex](http://www.codeplex.com) ([DateTimeEnglishParser](http://www.codeplex.com/DateTimeEnglishParse)) that is attempting to do the same thing....
null
CC BY-SA 2.5
null
2008-08-28T15:11:55.963
2008-08-28T15:11:55.963
null
null
521
null
32,539
2
null
32,533
0
null
I assume you are still talking about them separately for each individual platform? As running them on both is completely doable by just creating a 32bit binary.
null
CC BY-SA 2.5
null
2008-08-28T15:13:51.183
2008-08-28T15:13:51.183
null
null
194
null
32,537
1
32,686
null
2
319
For scripting languages, what is the most effective way to utilize a console when developing? Are there ways to be more productive with a console than a "compile and run" only language? Added clarification: I am thinking more along the lines of Ruby, Python, Boo, etc. Languages that are used for full blown apps, but a...
What is the best way to use a console when developing?
CC BY-SA 2.5
null
2008-08-28T15:13:20.157
2017-09-13T06:16:06.790
2008-08-28T15:28:05.127
2,001
2,001
[ "scripting", "console" ]
32,542
2
null
32,533
0
null
The biggest one is making sure you don't put pointers into 32-bit storage locations. But there's no proper 'language-agnostic' answer to this question, really. You couldn't even get a particularly firm answer if you restricted yourself to something like standard 'C' or 'C++' - the size of data storage, pointers, etc,...
null
CC BY-SA 2.5
null
2008-08-28T15:14:40.013
2008-08-28T15:14:40.013
null
null
987
null
32,536
2
null
32,493
2
null
That's a difficult thing. Usually people think "artistic skills" come from your genes but actually they do not. The bests graphic designer I know have some sort of education in arts. Of course, photoshop knowledge will allow you to do things but being interested in art (painting specially) will improve your sensitivit...
null
CC BY-SA 2.5
null
2008-08-28T15:12:55.587
2008-08-28T15:21:52.897
2008-08-28T15:21:52.897
2,695
2,695
null
32,545
2
null
32,533
1
null
One solution would be to target a virtual environment that runs on both platforms (I'm thinking Java, or .Net here). Or pick an interpreted language. Do you have other requirements, such as calling existing code or libraries?
null
CC BY-SA 2.5
null
2008-08-28T15:14:55.083
2008-08-28T15:14:55.083
null
null
1,908
null
32,547
2
null
32,533
1
null
The same things you should have been doing all along to ensure you write portable code :) [mozilla guidelines](http://developer.mozilla.org/En/C___Portability_Guide) and the [C faq](http://c-faq.com/questions.html) are good starting points
null
CC BY-SA 2.5
null
2008-08-28T15:15:21.743
2008-08-28T15:15:21.743
null
null
269
null
32,549
2
null
32,529
14
null
You can probably do this by setting your own [FileSystemView](https://docs.oracle.com/javase/8/docs/api/javax/swing/filechooser/FileSystemView.html).
null
CC BY-SA 3.0
null
2008-08-28T15:15:28.793
2015-05-28T17:28:51.043
2015-05-28T17:28:51.043
1,960,111
304
null
32,550
1
33,332
null
0
1,258
When writing a SQL statement in SQL Server 2005, does the READUNCOMMITTED query hint imply NOLOCK or do I have to specify it manually too? So is: ``` With (NoLock, ReadUnCommitted) ``` the same as: ``` With (ReadUnCommitted) ```
Does ReadUncommitted imply NoLock
CC BY-SA 2.5
0
2008-08-28T15:17:00.083
2008-11-17T21:48:11.320
2008-11-17T21:48:11.337
3,743
383
[ "sql-server-2005", "nolock" ]
32,533
1
32,553
null
0
2,323
What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ? EDIT: What kind of areas do I need to take care in, e.g. printing strings/characters or using structures ?
How do you write code that is both 32 bit and 64 bit compatible?
CC BY-SA 3.0
0
2008-08-28T15:12:15.290
2012-04-21T22:59:14.107
2012-04-21T22:59:14.107
95,735
381
[ "language-agnostic", "compatibility", "32bit-64bit" ]
32,551
2
null
7,661
5
null
[Tile utility code in Java](http://web.archive.org/web/20110809084551/http://mapki.com/wiki/Tile_utility_code_in_Java) on mapki.com (great resource for google map developers)
null
CC BY-SA 3.0
null
2008-08-28T15:17:00.740
2015-04-29T01:06:15.980
2015-04-29T01:06:15.980
950,427
2,108
null
32,554
2
null
32,533
0
null
In C (and maybe C++) always remember to use the sizeof operator when calculating buffer sizes for malloc. This way you will write more portable code anyway, and this will automatically take 64bit datatypes into account.
null
CC BY-SA 2.5
null
2008-08-28T15:18:23.013
2008-08-28T15:18:23.013
null
null
2,567
null
32,556
2
null
32,550
-1
null
I think you can say that ReadUnCommitted has the abilities of NoLock However you cannot say that NoLock has the abilities of ReadUnCommitted
null
CC BY-SA 2.5
null
2008-08-28T15:18:44.213
2008-08-28T15:18:44.213
null
null
17
null
32,552
2
null
32,533
0
null
It honestly depends on the language, because managed languages like C# and Java or Scripting languages like JavaScript, Python, or PHP are locked in to their current methodology and to get started and to do anything beyond the advanced stuff there is not much to worry about. But my guess is that you are asking about l...
null
CC BY-SA 2.5
null
2008-08-28T15:17:29.990
2008-08-28T15:17:29.990
null
null
17
null
32,559
2
null
32,550
1
null
According to Kalen Delaney... The NOLOCK hint has nothing to do with the index options. The hint tells SQL Server not to request locks when doing SELECT operations, so there will be no conflict with data that is already locked. The index options just tell SQL Server that this level of locking is allowed, when locking ...
null
CC BY-SA 2.5
null
2008-08-28T15:18:53.077
2008-08-28T15:18:53.077
null
null
3,201
null
32,522
2
null
32,462
1
null
I would suggest moving the code that selects, randomizes, downloads and caches photos to separate service. It could be locally accessible REST application. Keep your core code clean and don't clutter it with remote operations and retention policy. 1. Build tags-to-images map and store it locally, in file or database....
null
CC BY-SA 2.5
null
2008-08-28T15:09:08.310
2008-08-28T15:09:08.310
null
null
2,169
null
32,540
1
32,594
null
19
1,372
How is your javaScript code organized? Does it follow patterns like MVC, or something else? I've been working on a side project for some time now, and the further I get, the more my webpage has turned into a full-featured application. Right now, I'm sticking with [jQuery](http://jquery.com), however, the logic on the...
Alternative "architectural" approaches to javaScript client code?
CC BY-SA 2.5
0
2008-08-28T15:13:57.533
2009-08-22T20:37:05.160
2008-08-30T10:57:48.057
3,436
3,436
[ "javascript", "model-view-controller", "architecture", "client", "ria" ]
32,560
2
null
32,059
1
null
OK, so the key difference between this and kristof's answer is that you only want a count of 1 to show against page 1, because it has been tagged only with one tag from the set (even though two separate users both tagged it). I would suggest this: ``` SELECT page.ID, page.content, count(*) AS uniquetags FROM ( SE...
null
CC BY-SA 3.0
null
2008-08-28T15:19:27.257
2015-08-04T10:03:11.607
2015-08-04T10:03:11.607
5,150,826
3,267
null
32,557
2
null
32,537
1
null
I think it depends on the console. The usefulness of a CMD console on windows pails in comparison to a Powershell console.
null
CC BY-SA 2.5
null
2008-08-28T15:18:45.587
2008-08-28T15:18:45.587
null
null
1,358
null
32,564
2
null
7,017
2
null
If you really want to accomplish this, the way to do it is with texture coordinates. Much like you would make a stretchable button/panel design in HTML with a table, you simply define the UV coordinates for the corners, the top stretchable area, the bottom stretchable area, the side stretchable areas, and then the mid...
null
CC BY-SA 2.5
null
2008-08-28T15:22:00.337
2008-08-28T15:22:00.337
null
null
3,433
null
32,572
2
null
32,493
1
null
Drawing is probably what I'd recommend the most. Whenever you have a chance, just start drawing. Keep in mind that what you draw doesn't have to be original; it's a perfectly natural learning tool to try and duplicate someone else's work. You'll learn a lot. If you look at all the great masters, they had understudi...
null
CC BY-SA 2.5
null
2008-08-28T15:23:59.990
2008-08-28T15:23:59.990
null
null
2,276
null
32,553
2
null
32,533
2
null
Options: Code it in some language with a [Virtual Machine](http://en.wikipedia.org/wiki/Virtual_machine) (such as Java) Code it in .NET and don't target any specific architecture. The [.NET JIT compiler](http://www.dotnet-guide.com/jit.html) will compile it for you to the right architecture before running it.
null
CC BY-SA 2.5
null
2008-08-28T15:17:48.397
2008-08-28T15:17:48.397
null
null
2,695
null
32,541
1
33,036
null
42
47,528
Anybody have a good example how to deep clone a WPF object, preserving databindings? --- The marked answer is the first part. The second part is that you have to create an ExpressionConverter and inject it into the serialization process. Details for this are here: [http://www.codeproject.com/KB/WPF/xamlwriterand...
How can you clone a WPF object?
CC BY-SA 2.5
0
2008-08-28T15:14:29.967
2019-01-12T17:53:18.463
2019-01-12T17:53:18.463
900
null
[ "c#", "wpf", "binding", "clone" ]
32,562
2
null
32,513
1
null
I don't think you are able to create new files, but you should be able to write to existing files in the App_Data folder. But I have honestly never experienced any problems with Medium Trust and writing to the App_Data folder. Are you sure it has the necessary permissions needed for writing files to the hard drive?
null
CC BY-SA 2.5
null
2008-08-28T15:20:50.903
2008-08-28T15:20:50.903
null
null
17
null
32,561
2
null
32,533
0
null
In most cases the only thing you have to do is just compile your code for both platforms. (And that's assuming that you're using a compiled language; if it's not, then you probably don't need to worry about anything.) The only thing I can think of that might cause problems is assuming the size of data types, which is ...
null
CC BY-SA 2.5
null
2008-08-28T15:19:32.060
2008-08-28T15:19:32.060
null
null
510
null
32,429
2
null
32,241
3
null
I found a thread with a bunch of Perl guys arguing the toss on this question over at [http://www.perlmonks.org/?node_id=336331](http://www.perlmonks.org/?node_id=336331). I hope this isn't too much of a non-answer to the question, but I would say you have a bit of a problem in that it would be a very open-ended algori...
null
CC BY-SA 3.0
null
2008-08-28T14:34:55.863
2013-04-05T11:04:06.813
2013-04-05T11:04:06.813
588,306
3,394
null
32,570
1
32,577
null
1
1,676
Is there some way I can use URLs like: [http://www.blog.com/team-spirit/](http://www.blog.com/team-spirit/) instead of [http://www.blog.com/?p=122](http://www.blog.com/?p=122) in a Windows hosted PHP server?
How to make 'pretty urls' work in php hosted in IIS?
CC BY-SA 4.0
null
2008-08-28T15:23:53.500
2022-08-16T08:06:25.800
2019-01-18T11:12:10.863
567,854
184
[ "php", "iis" ]
32,575
2
null
32,541
0
null
How about: ``` public static T DeepClone<T>(T from) { using (MemoryStream s = new MemoryStream()) { BinaryFormatter f = new BinaryFormatter(); f.Serialize(s, from); s.Position = 0; object clone = f.Deserialize(s); return (T)clone; ...
null
CC BY-SA 2.5
null
2008-08-28T15:24:45.900
2008-08-28T15:29:50.867
2008-08-28T15:29:50.867
900
900
null
32,591
2
null
32,282
1
null
for online: [](http://regexpal.com/)[http://regexpal.com/](http://regexpal.com/) for desktop: [The Regex Coach](http://www.weitz.de/regex-coach/)
null
CC BY-SA 2.5
null
2008-08-28T15:29:16.060
2008-08-28T15:29:16.060
null
null
356
null
32,585
2
null
20,321
5
null
Personally, I prefer separate databases, specifically a database for each entity. I like this approach for the following reasons: 1. Smaller = faster regarding the queries. 2. Queries are simpler. 3. No risk of ever accidentally displaying one customer's data to another. 4. One database could pose a performance bottl...
null
CC BY-SA 2.5
null
2008-08-28T15:26:33.853
2008-08-28T15:26:33.853
null
null
2,890
null
32,587
2
null
32,533
0
null
Keep in mind that many compilers choose the size of integer based on the underlying architecture, given that the "int" should be the fastest number manipulator in the system (according to some theories). This is why so many programmers use typedefs for their most portable programs - if you want your code to work on ev...
null
CC BY-SA 2.5
null
2008-08-28T15:27:08.203
2008-08-28T15:27:08.203
null
null
2,915
null
32,577
2
null
32,570
1
null
This is how I did it with WordPress on IIS 6.0 [http://www.coderjournal.com/2008/02/url-rewriter-reverse-proxy-iis-wordpress/](http://www.coderjournal.com/2008/02/url-rewriter-reverse-proxy-iis-wordpress/) However it all depends on what version of IIS you are using. If you are lucky enough to use IIS 7.0 you don't r...
null
CC BY-SA 2.5
null
2008-08-28T15:25:17.553
2008-08-28T15:25:17.553
null
null
17
null
32,597
1
39,208
null
3
2,673
What are the best practices in setting up a new instance of TFS 2008 Workgroup edition? Specifically, the constraints are as follows: - - Should I install SQL Server 2008, Sharepoint and the app layer in a virtual instance of Windows Server 2008 or 2003(I am already running Hyper-V) or split the layers with a dat...
Installing Team Foundation Server
CC BY-SA 2.5
0
2008-08-28T15:30:34.280
2010-06-01T05:06:16.447
2008-11-02T02:16:43.320
null
224
[ "visual-studio", "visual-studio-2008", "version-control", "tfs", "hyper-v" ]
32,598
1
32,626
null
6
4,331
If you have Subversion installed on your development machine and you don't work in a team, is there any reason why you should use the protocol instead of ?
Any disadvantages in accessing Subversion repositories through file:// for a solo developer?
CC BY-SA 2.5
null
2008-08-28T15:30:37.727
2017-06-22T12:31:14.107
2008-08-29T07:07:27.210
1,670
1,670
[ "svn" ]
32,596
1
34,771
null
0
2,324
I am experiencing some oddities when working with a Grid component in flex, I have the following form that uses a grid to align the fields, as you can see, each GridRow has a border. My problem is that the border is still visible through GridItems that span multiple rows (observe the TextArea that spans 4 rows, the Gr...
Odd behaviour for rowSpan in Flex
CC BY-SA 3.0
null
2008-08-28T15:30:27.040
2017-08-04T14:18:49.513
2017-08-04T14:18:49.513
1,836,618
1,638
[ "apache-flex" ]
32,586
1
null
null
24
29,048
Is there an easy way to discover a File's creation time with Java? The File class only has a method to get the "last modified" time. According to some resources I found on Google, the File class doesn't provide a getCreationTime() method because not all file systems support the idea of a creation time. The only work...
How to discover a File's creation time with Java?
CC BY-SA 2.5
0
2008-08-28T15:26:46.443
2015-09-24T22:26:46.017
2008-08-28T17:01:05.187
1,471
1,471
[ "java", "windows", "file-io" ]
32,602
2
null
32,540
1
null
Not 100% sure what you mean here, but I will say that after doing ASP.NET for the last 6 years, my web pages are now mostly driven by JavaScript once the basic page rendering is done by the server. I use JSON for everything (have been for about 3 years now) and use [MochiKit](http://www.mochikit.com) for my client-side...
null
CC BY-SA 2.5
null
2008-08-28T15:31:35.727
2008-08-28T15:31:35.727
null
null
1,790
null
32,609
2
null
32,598
0
null
I use svn:// for personal projects because I often work on multiple machines on the same network and I want to store everything in the repository on my desktop machine.
null
CC BY-SA 2.5
null
2008-08-28T15:33:53.540
2008-08-28T15:33:53.540
null
null
3,381
null
32,611
2
null
32,570
3
null
[Isapi Rewrite Filter on CodePlex](http://www.codeplex.com/IIRF) - actively developed, free ("DonationWare"), open source.
null
CC BY-SA 2.5
null
2008-08-28T15:34:00.573
2008-08-28T15:34:00.573
null
null
1,278
null
32,588
2
null
32,537
0
null
I've added a shortcut to my Control-Shift-C key combination to bring up my Visual Studio 2008 Console. This alone has saved me countless seconds when needing to register a dll or do any other command. I imagine if you leverage this with another command tool and you may have some massive productivity increases.
null
CC BY-SA 2.5
null
2008-08-28T15:27:15.177
2008-08-28T15:27:15.177
null
null
36
null
32,612
1
33,622
null
5
6,582
I'm new to NHibernate (my 1st big project with it). I had been using a simple method of data access by creating the ISession object within a using block to do my grab my Object or list of Objects, and in that way the session was destroyed after exiting the code block. This doesn't work in a situation where lazy-load...
Best way to manage session in NHibernate?
CC BY-SA 3.0
0
2008-08-28T15:34:09.467
2014-05-04T21:58:34.707
2014-05-04T21:58:34.707
1,537,726
1,284
[ "c#", ".net", "nhibernate" ]
32,594
2
null
32,540
7
null
..but Javascript has many facets that OO. Consider this: ``` var Vehicle = jQuery.Class.create({ init: function(name) { this.name = name; } }); var Car = Vehicle.extend({ fillGas: function(){ this.gas = 100; } }); ``` I've used this technique to create page-level javascript classes that have ...
null
CC BY-SA 2.5
null
2008-08-28T15:29:51.863
2008-08-28T15:29:51.863
null
null
3,381
null
32,607
1
null
null
93
63,283
I'd like to rollback a change I made recently in TFS. In Subversion, this was pretty straightforward. However, it seems to be an incredible headache in TFS: ### Option 1: Get Prior Version 1. Manually get prior version of each file 2. Check out for edit 3. Fail - the checkout (in VS2008) forces me to get the lates...
How do I rollback a TFS check-in?
CC BY-SA 2.5
0
2008-08-28T15:33:04.633
2012-02-06T22:51:50.360
2020-06-20T09:12:55.060
-1
1,338
[ "visual-studio-2008", "version-control", "tfs", "rollback" ]
32,614
2
null
32,607
2
null
If you did 1 check-in and you just want to undo it, that has a changeset # associated with it. Do a history on the folder in question to see the bad changeset. Open it up to see the details (all files changed, etc). I believe that you can restore or undo a changeset from that screen, but my Visual Studio just crashe...
null
CC BY-SA 2.5
null
2008-08-28T15:36:39.600
2008-08-28T15:36:39.600
null
null
3,381
null
32,606
2
null
28,713
5
null
To answer the first question (although it's been answered to death): A CSS width is what you need. But I wanted to answer [Gaius's question](http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/) in the answers. Gaius, you're problem is that you are setting the width's in em's. ...
null
CC BY-SA 3.0
null
2008-08-28T15:33:01.200
2016-12-02T05:53:59.393
2016-12-02T05:53:59.393
2,571,493
1,900
null
32,599
2
null
32,537
0
null
Are you kidding? In my Linux environment, the console is my lifeblood. I'm proficient in bash scripting, so to me a console is very much like sitting in a REPL for Python or Lisp. You can quite literally do anything. I actually write tools used by my team in bash, and the console is the perfect place to do that dev...
null
CC BY-SA 2.5
null
2008-08-28T15:30:58.973
2008-08-28T15:30:58.973
null
null
3,279
null
32,620
2
null
32,598
-2
null
Even if working by myself ... my protocol is to use source control even for personal projects. It gives you a single point of backup for all of your code work, and allows you to change your mind and/or retrieve older versions.
null
CC BY-SA 2.5
null
2008-08-28T15:38:04.073
2008-08-28T15:38:04.073
null
null
3,433
null
32,617
1
32,627
null
1
128
On Windows, will move the text cursor from one "word" to the next. While working with Xcode on the Mac, they extended that so that will move the cursor to the beginning of the next . For example, if the cursor was at the beginning of the word `myCamelCaseVar` then hitting will put the cursor at the first `C`. Thi...
Is there a way to do "intraWord" text navigation in Visual Studio?
CC BY-SA 2.5
null
2008-08-28T15:37:32.720
2011-03-31T19:35:28.890
2011-03-31T19:35:28.890
63,550
863
[ "visual-studio", "keyboard" ]
32,624
2
null
32,612
2
null
check out the [SummerOfNHibernate](http://www.SummerOfNHibernate.com) webcasts for a great tutorial... What you're looking for specifically doesn't come until webisode 5 or 6.
null
CC BY-SA 2.5
null
2008-08-28T15:43:20.287
2008-08-28T15:43:20.287
null
null
2,849
null
32,627
2
null
32,617
2
null
ReSharper has a "[Camel Humps](http://www.jetbrains.com/resharper/features/navigation_search.html#CamelHumps)" feature that lets you do this.
null
CC BY-SA 2.5
null
2008-08-28T15:44:03.093
2008-08-28T15:44:03.093
null
null
2,688
null
32,626
2
null
32,598
8
null
If you are working by yourself on a single machine, then in my experience using the file:// protocol works fine. Even when my team was using Subversion off a remote server, I would set up a local file-based repository for my own personal projects. If you get to the point where you need to access it from a different mac...
null
CC BY-SA 2.5
null
2008-08-28T15:43:48.507
2008-08-28T15:43:48.507
null
null
3,114
null
32,610
2
null
32,598
0
null
None that I know if. It should prove to a be at least a [little bit faster](http://svn.haxx.se/users/archive-2007-04/0067.shtml).
null
CC BY-SA 2.5
null
2008-08-28T15:33:54.320
2008-08-28T15:33:54.320
null
null
2,009
null
32,543
2
null
32,493
4
null
Most of artistic talent comes from putting in the time. However, as in most skills, practicing bad habits doesn't help you progress. You need to learn basic drawing skills (form, mainly) and practice doing them well and right (which means slowly). As you practice correctly, you'll improve much faster. This is the k...
null
CC BY-SA 2.5
null
2008-08-28T15:14:42.617
2008-08-28T15:14:42.617
null
null
2,915
null
32,634
2
null
32,366
3
null
Please be sure to include a URL in your user-agent string that explains who/what/why your robot is crawling.
null
CC BY-SA 2.5
null
2008-08-28T15:48:06.687
2008-08-28T15:48:06.687
null
null
1,902,010
null
32,623
2
null
32,612
1
null
Keep your session open for your entire unit of work. If your session is life is too small, you cannot benefit from the session level cache (which is significant). Any time you can prevent a roundtrip to the database is going to save a lot of time. You also cannot take advantage of lazy loading, which is crucial to ...
null
CC BY-SA 2.5
null
2008-08-28T15:43:02.860
2008-08-28T15:43:02.860
null
null
3,381
null
32,635
2
null
32,598
1
null
A while back on a project we were using ant to do builds. Ant would check out the latest code from the SVN repo, do the build, then create a tag in the SVN repo of the code the build was based off of. We found that the Ant automation couldn't work across any protocol except for the svn:// protocol. So, if you want t...
null
CC BY-SA 2.5
null
2008-08-28T15:48:44.923
2008-08-28T15:48:44.923
null
null
2,109
null
32,632
2
null
32,360
0
null
> If there was a true 1:1 relationship, every record in the first table would have a corresponding record in the second table and vice-versa. In that case, you would probably just want to make one table (unless you needed some strange storage optimization). This is very incorrect. Let me give you an example. You have ...
null
CC BY-SA 2.5
null
2008-08-28T15:47:43.303
2008-08-28T15:47:43.303
null
null
3,221
null
32,621
1
67,303
null
4
2,022
I'm trying to find the latitude and longitude of the corners of my map while in birdseye view. I want to be able to plot pins on the map, but I have hundreds of thousands of addresses that I want to be able to limit to the ones that need to show on the map. In normal view, VEMap.GetMapView().TopLeftLatLong and .Botto...
How do I find the the exact lat/lng coordinates of a birdseye scene in Virtual Earth?
CC BY-SA 2.5
null
2008-08-28T15:38:42.577
2011-10-31T13:02:22.163
null
null
3,420
[ "javascript", "virtual-earth" ]
32,637
1
32,648
null
17
17,318
I am consuming the Twitter API and want to convert all URLs to hyperlinks. What is the most effective way you've come up with to do this? from ``` string myString = "This is my tweet check it out http://tinyurl.com/blah"; ``` to ``` This is my tweet check it out <a href="http://tinyurl.com/blah">http://tinyurl.c...
Easiest way to convert a URL to a hyperlink in a C# string?
CC BY-SA 2.5
0
2008-08-28T15:49:32.690
2015-08-14T18:12:31.943
2010-04-18T07:29:10.347
41,956
2,347,826
[ "c#", "regex", "string", "hyperlink" ]
32,618
2
null
32,597
1
null
I just upgraded our team to TFS 2008, from TFS 2005. The hardest part was upgrading SharePoint 2.0 to 3.0, so I would make sure to do that first, if you have not already installed TFS 2008. We had a couple of other difficulties, but they were all either related to the SharePoint upgrade, or to the fact that we were usi...
null
CC BY-SA 2.5
null
2008-08-28T15:37:36.230
2008-08-28T15:37:36.230
null
null
3,114
null
32,641
2
null
32,282
1
null
+1 For Regex Coach here. Free and does the job really well. [http://www.weitz.de/regex-coach/](http://www.weitz.de/regex-coach/)
null
CC BY-SA 2.5
null
2008-08-28T15:50:39.567
2008-08-28T15:50:39.567
null
null
1,900
null
32,633
1
1,330,776
null
28
19,440
I can easily set breakpoints in embedded JS functions, but I don't see any way of accessing external JS scripts via Firebug unless I happen to enter them during a debug session. Is there a way to do this without having to 'explore' my way into the script? @Jason: This is a good point, but in my case I do not have easy...
How can I set breakpoints in an external JS script in Firebug
CC BY-SA 2.5
0
2008-08-28T15:48:03.083
2014-08-08T08:51:00.387
2011-03-26T00:49:37.870
56,338
2,133
[ "javascript", "debugging", "firebug" ]
32,639
2
null
32,633
2
null
Clicking on the line number in the left hand margin should create a break point for you (a red circle should appear). All loaded scripts should be available from the firebug menu - click where it says the name of the current file should show a drop down with all files listed.
null
CC BY-SA 2.5
null
2008-08-28T15:50:05.980
2008-08-28T15:50:05.980
null
null
1,908
null
32,631
2
null
32,458
90
null
There's a compromise. Your coworker is actually onto something, but I think he's doing it wrong. I'm not sure that totally random testing is very useful, but it's certainly not invalid. A program (or unit) specification is a hypothesis that there exists some program that meets it. The program itself is then evidence o...
null
CC BY-SA 3.0
null
2008-08-28T15:46:31.963
2013-01-28T16:37:17.793
2013-01-28T16:37:17.793
388,702
3,434
null
32,647
2
null
32,598
5
null
You can always add a subversion server later, have it points to your file:// repository, and you'll get svn:// access immediately. The protocol doesn't matter, it just allow transport over different kinds of medium, it's the repository content that matters. And installing SVNSERVE later is rather easy. However, the ...
null
CC BY-SA 2.5
null
2008-08-28T15:52:39.657
2008-08-28T15:52:39.657
null
null
3,055
null
32,648
2
null
32,637
24
null
Regular expressions are probably your friend for this kind of task: ``` Regex r = new Regex(@"(https?://[^\s]+)"); myString = r.Replace(myString, "<a href=\"$1\">$1</a>"); ``` The regular expression for matching URLs might need a bit of work.
null
CC BY-SA 3.0
null
2008-08-28T15:54:16.923
2015-08-14T18:12:31.943
2015-08-14T18:12:31.943
1,945,957
1,908
null
32,654
2
null
32,643
0
null
The Intel Performance Primitives (IPP) library has a lot of very efficient algorithms that help with this kind of a task. The library is callable from C/C++ and we have found it to be very fast. I should also note that it's not limited to just Intel hardware.
null
CC BY-SA 2.5
null
2008-08-28T15:57:19.660
2008-08-28T15:57:19.660
null
null
3,114
null
32,650
2
null
32,598
1
null
Not that I know of. It always pays to use source control, so even if file:// is in some way inferior, if it means you actually subversion rather then get fed up with the set up and just start coding, then its OK by my book.
null
CC BY-SA 2.5
null
2008-08-28T15:55:02.037
2008-08-28T15:55:02.037
null
null
3,024
null
32,655
2
null
32,059
0
null
Leigh Caldwell answer is correct, thanks man, but need to add an alias at least in MySQL. So the query will look like: ``` SELECT page.ID, page.content, count(*) AS uniquetags FROM ( SELECT DISTINCT page.content, page.ID, page-tag.tag-id FROM page INNER JOIN page-tag ON page.ID=page-tag.page-ID WHERE page-tag.tag...
null
CC BY-SA 2.5
null
2008-08-28T15:57:35.120
2008-08-28T15:57:35.120
null
null
2,138
null
32,642
1
32,653
null
3
6,281
Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.
Beginning ASP.NET MVC with VB.net 2008
CC BY-SA 2.5
0
2008-08-28T15:50:49.927
2022-07-21T14:05:52.117
2008-11-02T02:15:42.633
null
3,334
[ "asp.net-mvc", "vb.net", "visual-studio-2008", "model-view-controller", ".net-3.5" ]
32,653
2
null
32,642
3
null
Have you tried adding the word "VB" to your searches?? [http://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx](http://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx) [http://www.asp.net/learn/mvc/tutorial-07-vb.aspx](http://www.asp.net/learn/mvc/tutorial-07-vb.aspx) <[Link](https://web.archive.org/web/201...
null
CC BY-SA 4.0
null
2008-08-28T15:57:10.003
2022-07-21T14:05:52.117
2022-07-21T14:05:52.117
4,751,173
1,908
null
32,656
2
null
32,598
0
null
I have many different machines I work with so it's easier for me to use svn:// for the paths. In addition to that, I find that the svn path is almost always shorter than my file paths, so it's less to type.
null
CC BY-SA 2.5
null
2008-08-28T15:57:37.960
2008-08-28T15:57:37.960
null
null
2,547
null
32,640
1
32,672
null
70
48,474
So the controller context depends on some asp.net internals. What are some ways to cleanly mock these up for unit tests? Seems like its very easy to clog up tests with tons of setup when I only need, for example, Request.HttpMethod to return "GET". I've seen some examples/helpers out on the nets, but some are dated. F...
Mocking Asp.net-mvc Controller Context
CC BY-SA 2.5
0
2008-08-28T15:50:35.543
2013-02-22T04:39:09.813
2013-02-22T04:39:09.813
171,847
1,946
[ "asp.net-mvc", "unit-testing", "mocking", "moq", "rhino-mocks" ]
32,657
2
null
22,165
2
null
Another good way for rollback/undo is the [Memento Pattern](http://en.wikipedia.org/wiki/Memento_pattern). It's usually used to take a snapshot of the object at a given time and let the object state to be reverted to the memento.
null
CC BY-SA 2.5
null
2008-08-28T15:57:47.647
2008-08-28T15:57:47.647
null
null
3,087
null
32,649
1
32,705
null
19
10,612
When making changes using `SubmitChanges()`, LINQ sometimes dies with a `ChangeConflictException` exception with the error message `Row not found or changed`, without any indication of either the row that has the conflict or the fields with changes that are in conflict, when another user has changed some data in that r...
Data Conflict in LINQ
CC BY-SA 3.0
0
2008-08-28T15:54:56.047
2019-02-28T07:42:02.657
2012-04-26T00:45:15.757
1,332,690
3,394
[ "c#", "linq", "linq-to-sql" ]
32,667
2
null
23,027
0
null
The default build publisher in CC.NET does not provide a way to do this. You have a few options: - - -
null
CC BY-SA 2.5
null
2008-08-28T16:05:16.037
2008-08-28T16:05:16.037
null
null
1,559
null
32,662
2
null
32,123
2
null
I've used it. My company had an very NFS-intensive infrastructure at one point (less so now) and many Perl sysadmin tools dating back to the mid 90s. We wrapped lockfile in a perl module so that we could do consistent locking across NFS mounts. For that matter, our home directories were NFS mounted and we used procm...
null
CC BY-SA 2.5
null
2008-08-28T15:58:44.383
2008-08-28T15:58:44.383
null
null
430
null
32,664
1
68,753,665
null
445
146,625
Can anyone tell me if there is a way with generics to limit a generic type argument `T` to only: - `Int16`- `Int32`- `Int64`- `UInt16`- `UInt32`- `UInt64` I'm aware of the `where` keyword, but can't find an interface for these types, Something like: ``` static bool IntegerFunction<T>(T value) where T : INumeric ``...
Is there a constraint that restricts my generic method to numeric types?
CC BY-SA 3.0
0
2008-08-28T16:04:49.797
2022-10-20T08:07:27.597
2015-12-16T09:40:26.340
216,074
1,736
[ "c#", "generics", "constraints" ]
32,643
1
34,311
null
3
1,448
We're looking for a package to help identify and automatically rotate faxed TIFF images based on a watermark or logo. We use libtiff for rotation currently, but don't know of any other libraries or packages I can use for detecting this logo and determining how to rotate the images. I have done some basic work with...
Automatic image rotation based on a logo
CC BY-SA 3.0
null
2008-08-28T15:50:57.133
2017-10-20T12:12:08.190
2017-10-20T12:12:08.190
6,602,192
3,269
[ "opencv", "tiff", "watermark", "image-rotation" ]
32,668
1
32,692
null
34
15,387
I don't edit CSS very often, and almost every time I need to go and google the [CSS box model](http://www.w3.org/TR/REC-CSS2/box.html) to check whether `padding` is inside the `border` and `margin` outside, or vice versa. (Just checked again and `padding` is inside). Does anyone have a good way of remembering this? ...
How to remember in CSS that margin is outside the border, and padding inside
CC BY-SA 3.0
0
2008-08-28T16:06:04.803
2016-07-14T10:29:06.370
2016-07-14T10:29:06.370
2,663,073
3,189
[ "css", "padding", "margin", "mnemonics" ]
32,673
2
null
32,668
5
null
pin - P is in
null
CC BY-SA 2.5
null
2008-08-28T16:07:14.097
2008-08-28T16:07:14.097
null
null
184
null
32,674
2
null
32,668
4
null
Print the diagram from the [Box Dimensions](http://www.w3.org/TR/CSS2/box.html#box-dimensions) section of the specification, and put it on the wall.
null
CC BY-SA 2.5
null
2008-08-28T16:07:38.777
2008-08-28T16:07:38.777
null
null
2,670
null
32,669
2
null
30,861
17
null
It appears that .NET 3.5 added a new namespace to deal with this issue - System.DirectoryServices.AccountManagement. Code sample is below: ``` Private Function ValidateExternalUser(ByVal username As String, ByVal password As String) As Boolean Using context As PrincipalContext = New PrincipalContext(ContextType.Do...
null
CC BY-SA 2.5
null
2008-08-28T16:06:26.050
2008-08-28T16:06:26.050
null
null
1,194
null
32,680
2
null
32,668
2
null
use firebug to help you see.
null
CC BY-SA 2.5
null
2008-08-28T16:10:12.000
2008-08-28T16:10:12.000
null
null
648
null
32,666
2
null
32,280
3
null
Spec# looks very interesting! When something like that isn't available, I generally test non-private methods with a run-time null-check, and assertions for internal methods. Rather than code the null check explicitly in each method, I delegate that to a utilities class with a check null method: ``` /** * Checks to ...
null
CC BY-SA 2.5
null
2008-08-28T16:05:14.757
2008-08-28T16:05:14.757
null
null
3,446
null
32,672
2
null
32,640
66
null
Using MoQ it looks something like this: ``` var request = new Mock<HttpRequestBase>(); request.Expect(r => r.HttpMethod).Returns("GET"); var mockHttpContext = new Mock<HttpContextBase>(); mockHttpContext.Expect(c => c.Request).Returns(request.Object); var controllerContext = new ControllerContext(mockHttpContext.Objec...
null
CC BY-SA 2.5
null
2008-08-28T16:06:37.890
2008-10-07T15:13:07.983
2008-10-07T15:13:07.983
null
598
null
32,675
2
null
32,668
4
null
To me, "padding" just sounds more inner than "margin". Perhaps thinking about the printed page would help? Margins are areas on the far outside - generally, you cannot even print to the edge - they are unmarkable. Within those margins, the content could be padded to provide an extra barrier between the content and t...
null
CC BY-SA 2.5
null
2008-08-28T16:08:21.647
2008-08-28T16:08:21.647
null
null
96
null
32,665
2
null
32,637
6
null
This is actually an ugly problem. URLs can contain (and end with) punctuation, so it can be difficult to determine where a URL actually ends, when it's embedded in normal text. For example: ``` http://example.com/. ``` is a valid URL, but it could just as easily be the end of a sentence: ``` I buy all my witty T-...
null
CC BY-SA 2.5
null
2008-08-28T16:05:06.117
2008-08-28T16:17:10.283
2008-08-28T16:17:10.283
872
872
null
32,681
2
null
23,027
1
null
I'm not sure with a web project, but for our winforms app, you can grab the TargetOutputs from the MSBuild task like so: ``` <MSBuild Projects="@(VSProjects)" Properties="Configuration=$(Configuration)"> <Output TaskParameter="TargetOutputs" ItemName="BuildTargetOutputs"/> </MSBuild> ``` and then do a copy: ```...
null
CC BY-SA 2.5
null
2008-08-28T16:10:16.617
2008-08-28T16:10:16.617
null
null
2,848
null