instruction stringlengths 0 30k ⌀ |
|---|
You can't run Aero on the 'basic' editions, and there are some 'extras' that only run in Ultimate. You probably won't care about those for development, though. The only thing to be careful of would be that it has the same client access restrictions that XP did. |
It took me a couple minutes to find a site that I could source for this,
> The card is valid until the last day of the month indicated, after the last
> day of the next month; the card cannot be used to make a purchase if the
> merchant attempts to obtain an authorization. - [Source][1]
Also, while looking thi... |
It took me a couple minutes to find a site that I could source for this,
> The card is valid until the last day of the month indicated, after the last
> day of the next month; the card cannot be used to make a purchase if the
> merchant attempts to obtain an authorization.
> - [Source][1]
Also, while looking... |
|.net|asp.net|asp.net-mvc|webforms| |
How to make a button appear as if it is pressed? |
|c#|.net|winforms|user-interface|button| |
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"?
Imagine this button is an on/off switch.
ToolStripButton has the Checked property, but the regular Button does not. |
|c#|.net|winforms|user-interface|button| |
Best Way to Begin Learning Web Application Design |
|language-agnostic|web-application|resources| |
I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications.
I don't usually have any issues learning new languages or technologies, so I'm not worried a... |
|language-agnostic|web-applications|resources| |
Access files from network share in c# web app |
|c#|fileio|security|asp.net|webapp| |
I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be?
I can't give the network service or aspnet accounts access to the network share. I could possibly use impersonation.
The network share and the web application are bot... |
|c#|asp.net|security|web-application|file-io| |
|c#|asp.net|security|web-applications|file-io| |
Storing logged in user details |
|bestpractices|web-application| |
When creating a web application, and lets say you have a User object denoting a single user, what do you think is the best way to store that the user has logged in?
Two ways I've thought about have been:
* Stored the user database id in a session variable
* Stored the entire user object in a session variable
... |
What is the best way to deploy a VB.NET application? |
|visual-studio|vb.net|installation|clickonce| |
Generally when I use ClickOnce when I build a VB.NET program but it has a few downsides. I've never really used anything else, so I'm not sure
what my options are.
Downsides to ClickOnce:
- Consists of multiple files - Seems easier to distribute one file than manageing a bunch of file and the downloader to dow... |
From SQL Server Books Online:
> To write full-text queries in
> Microsoft SQL Server 2005, you must
> learn how to use the CONTAINS and
> FREETEXT Transact-SQL predicates, and
> the CONTAINSTABLE and FREETEXTTABLE
> rowset-valued functions.
That means all of the queries written above with the % and _ are not... |
From SQL Server Books Online:
> To write full-text queries in
> Microsoft SQL Server 2005, you must
> learn how to use the CONTAINS and
> FREETEXT Transact-SQL predicates, and
> the CONTAINSTABLE and FREETEXTTABLE
> rowset-valued functions.
That means all of the queries written above with the % and _ are not... |
HTML: center a block of content when you don't know in advance its width. |
|html|css| |
After lots of attempts and search I have never found a satisfactory way to do it with CSS2.
A simple way to accomplish it is to wrap it into a handy TABLE as shown in the sample below. Do you know how to do it avoiding table layouts and also avoiding quirky tricks?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.... |
PHPUnit is a standard, but it's sometimes also overwhelming, so if you find it too complex, check out [phpt][1] to get you started. It's very, very easy to write tests in it. A no brainer for any programmer.
And to answer your TDD question - I am not sure if TDD is widley used in the PHP space. I can see that rapid ... |
[Console.ReadKey](http://msdn.microsoft.com/en-us/library/system.console.readkey.aspx) |
It may be helpful to understand the difference between a "registrar" and a "registry" to begin with. A registrar is a company that sells domain names (ie. godaddy) to buyers. Anyone can be a registrar. You can become a registrar.
A registry is an entity (chosen by ICANN) that maintains the master database of domain... |
In general, you don't want to create objects inside an object. That's a bad habit, instead, write a clear API and inject a model into your model.
<?php
// in your controller
$model1 = new Model1();
$model2 = new Model2();
$model2->setWhatever($model1);
?> |
I'd like to offer something I've used at times in the past: a rudimentary leak checker which is source level and fairly automatic.
I'm giving this away for three reasons:
1. You might find it useful.
2. Though it's a bit krufty, I don't let that embarass me.
3. Even though it's tied to some win32 ... |
|php|ajax|ide| |
What do the getUTC* methods on the date object do? |
|javascript|webdevelopment| |
What does it mean when you get or create a date in UTC format in JavaScript? |
|javascript| |
It is possible. You can create library with window hook proc using managed C++. All you need to do is to inject this hook to some application using standard WinAPI (SetWindowsHookEx etc.). Inside this hook you can call System::AppDomain::CurrentDomain->Load method to load your assembly into target application's AppDoma... |
Kevin,
it is possible. You can create library with window hook proc using managed C++. All you need to do is to inject this hook to some application using standard WinAPI (SetWindowsHookEx etc.). Inside this hook you can call System::AppDomain::CurrentDomain->Load method to load your assembly into target application's... |
Kevin,
it is possible. You can create library with window hook proc using managed C++. All you need to do is to inject this hook into some application using standard WinAPI (SetWindowsHookEx etc.). Inside this hook you can call System::AppDomain::CurrentDomain->Load method to load your assembly into target application... |
What is the best way to prevent session hijacking? |
|session|cookies|secure|webdevelopment| |
Specifically this is regarding when using a client session cookie to identify a session on the server.
Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an existing client session cookie?
And perhaps seco... |
|session|cookies|secure| |
|security|session|cookies| |
I would really recommend [Restful Authentication][1]. I think it's pretty much the de-facto standard.
[1]: http://github.com/technoweenie/restful-authentication/tree/master |
One key feature in a functional language is the concept of first-class functions. The idea is that you can pass functions as parameters to other functions and return them as values.
Functional programming involves writing code that does not change state. The primary reason for doing so is so that successive calls to... |
I think the best way to do this is with a pseudo-cron. I have seen it on several occasions, and although not exact in the timing, it should do what you need it to do. Since in Wordpress the index.php is the first thing always hit based upon the settings in the .htaccess, create a file called pseudo-cron.php, dump it in... |
Vista Home Basic only has enough IIS features to host WCF services and does not have any of web server features for hosting static files, asp.net, etc.
Here is a [link][1] to compare editions. I would recommend going with Home Premium or Ultimate depending on whether the computer will run on a domain.
[1]: h... |
How to send MMS with C# |
|c#|mms| |
<br />
I need to send MMS thought a C# application. I have already found 2 interesting components:
http://www.winwap.com<br />
http://www.nowsms.com
Does anyone have experience with other third party components?<br />
Could someone explain what kind of server I need to send those MMS? Is it a classic SMTP Server... |
This is a similar question - [Connection Pool Settings for Tomcat][1]
This is my response to that question and it fixed the problem for the other guy. It may help you out too.
[Tomcat Documentation][2]
DBCP uses the Jakarta-Commons Database Connection Pool. It relies on number of Jakarta-Commons components:
... |
The two '|' at the start and end probably aren't needed (and in fact would probably muck things up)
Also, your forward slashes should I believe be backward slashes.
And since PHP 4.04 $n is the preferred way of referring to a capture group.
$output = preg_replace("(\D)\s+(\d+;)", "$1,$2", $output); |
The two '|' at the start and end probably are incorrect - and should both be forward-slashes.
All other forward slashes should be backward slashes (and need escaping).
And since PHP 4.04 $n is the preferred way of referring to a capture group.
$output = preg_replace("/(\\D)\\s+(\\d+;)/", "$1,$2", $output); |
The two '|' at the start and end probably are incorrect - and should both be forward-slashes.
All other forward slashes should be backward slashes (and need escaping).
And since PHP 4.04 $n is the preferred way of referring to a capture group.
$output = preg_replace("/(\\D)\\s+(\\d+;)/", "$1,$2", $output);... |
CPAN to the rescue: [IO::LockedFile][1].
[1]: http://search.cpan.org/~rani/IO-LockedFile-0.23/LockedFile.pm |
Here's a tutorial: http://ruby.meetup.com/73/boards/view/viewthread?thread=2203432
I don't know if it's any good.
And here's one with InstantRails+Netbeans: http://weblogs.java.net/blog/bleonard/archive/2007/03/instant_rails_w.html |
Cross Page Postback doesn't work for client-side enabled button |
|asp.net| |
I am using a cross page postback for Page A to pass data to Page B.
The button that causes the postback has its postbackurl set but is disabled until the user selects a value from a DDL at which point the button is enable using javascript. However this prevents the cross page postback from occurring, Page A just pos... |
If you believe in a deterministic universe, true randomness doesn't exist. :-) For example, someone has suggested that radioactive decay is *truly* random, but IMHO, just because scientists haven't yet worked out the pattern, doesn't mean that there isn't a pattern there to be worked out. Usually, when you want "random... |
I recently read [Dreaming in Code][1] and found it to be an interesting read. Perhaps more so since the day I started reading it Chandler 1.0 was released. Reading about the growing pains and mistakes of a project team of talented people trying to "change the world" gives you a lot to learn from. Also Scott brings up a... |
No, but there are two solutions I would recommend:
* Adiscon [EventLogger](http://www.eventreporter.com/en/) is a third-party product that will send your Windows EventLog to a SQL database. You can either send all events or create filters. Of course, once the events are in a SQL database, you can use any of the usua... |
From SQL Server Books Online:
> To write full-text queries in
> Microsoft SQL Server 2005, you must
> learn how to use the CONTAINS and
> FREETEXT Transact-SQL predicates, and
> the CONTAINSTABLE and FREETEXTTABLE
> rowset-valued functions.
That means all of the queries written above with the % and _ are not... |
From SQL Server Books Online:
> To write full-text queries in
> Microsoft SQL Server 2005, you must
> learn how to use the CONTAINS and
> FREETEXT Transact-SQL predicates, and
> the CONTAINSTABLE and FREETEXTTABLE
> rowset-valued functions.
That means all of the queries written above with the % and _ are not... |
Does this help?
[http://www.quirksmode.org/js/iframe.html][1]
[1]: http://www.quirksmode.org/js/iframe.html
I only tested this in firefox, but if you have something like this:
<iframe name='myframe' id='myframe' src='http://www.google.com'></iframe>
You can get its address by using:
docum... |
Would simple globs be enough? For globs it's just a matter of replacing * with .* and adding ^ and $. Or may be Excel-style patterns? It should not be too hard to write a regexp generator for simple rules like this...
My point is, adjust your requirements to simplify the code, and then may be add more features as ne... |
This is going to be the lamest answer, but it works:
[**Use the deprecated <center> tag**][1].
:P
I told you it would be lame. But, like I said, it works!
\*shudder\*
[1]: http://www.w3schools.com/TAGS/tag_center.asp |
SQL Server Full-Text Search: Hung processes with MSSEARCH wait type |
|sql-server|full-text-search| |
We have a SQL Server 2005 SP2 machine running a large number of databases, all of which contain full-text catalogs. Whenever we try to drop one of these databases or rebuild a full-text index, the drop or rebuild process hangs indefinitely with a MSSEARCH wait type. The process can’t be killed, and a server reboot is r... |
web site structure/architecture |
|architecture| |
What web site structure(s)/architecture(s) would the community swear by, with a narrowing down in the direction towards more of a small facebook style project?
I understand the question to be rather broad/subjective; but being relatively new to the area of web development, I find just looking at and learning from ex... |
|architecture| |
(This isn't really iPhone specific - the same thing with happen in regular Cocoa).
NSUnknownKeyException is a common error when using [Key-Value Coding][1] to access a key that the object doesn't have.
The properties of most Cocoa objects can be accessing directly:
[@"hello world" length] // Objective-C... |
Capture MouseDown event for .NET TextBox |
|c#|.net|events|windows-mobile| |
Is there any way to capture the MouseDown even from the .NET 2.0 TextBox control?
I know the inherited Control class has the event, but it's not exposed in TextBox.
Is there a way to override the event handler?
I also tried the OpenNETCF TextBox2 control which does have the MouseDown event exposed, but no matter w... |
XAML - In C# |
|xaml|c#| |
Hi just trying to get my head around XAML.
Thought that I would try some writing XAML in code.
Trying to add a grid with 6 by 6 column definitions then add a textblock into one of the grid cells.
I dont seem to be able to reference the cell that I want - there is no method on the grid that I can add the tex... |
|c#|xaml| |
Hi just trying to get my head around XAML.
Thought that I would try some writing XAML in code.
Trying to add a grid with 6 by 6 column definitions then add a textblock into one of the grid cells.
I dont seem to be able to reference the cell that I want - there is no method on the grid that I can add the tex... |
From SQL Server Books Online:
> To write full-text queries in
> Microsoft SQL Server 2005, you must
> learn how to use the CONTAINS and
> FREETEXT Transact-SQL predicates, and
> the CONTAINSTABLE and FREETEXTTABLE
> rowset-valued functions.
That means all of the queries written above with the % and _ are not... |
If you're trying to prevent search engine bots from accessing certain pages, make sure you're using a properly formatted [robots.txt][1] file.
Using HTTP_REFERER is unreliable because it is [easily faked][2].
Another option is to check the user agent string for known bots (this may require code modification).
... |
I've been happy with [StackOverflow][1].
I listen to / watch a few others:
- [No Agenda][2]
- [This Week In Tech][3]
- [Cranky Geeks][4]
But the constant MS/Google/Apple/Yahoo fluff of these is getting really old.
I've listened to a couple [Hanselminutes][5] and might start listening more regularly.... |
Creating an installer project, with a dependency on your EXE (which in turn depends on whatever it needs) is a fairly straightforward process - but you'll need at least VS Standard Edition for that.
Inside the installer project, you can create custom tasks and dialog steps that allow you to do anything you code up.
... |
Since those log entries aren't problems, it sounds like the global log level has been turned up to DEBUG. Alternatively, perhaps a new Logger/LogWriter has been implemented that writes to stdout, and thus is being re-logged by Weblogic. I would look at the configuration of your logger. (Or provide it with one, if it is... |
Since those log entries aren't problems, it sounds like the global log level has been turned up to DEBUG. Alternatively, perhaps a new Logging mechanism has been implemented or a new log Appender that writes to stdout, and thus is being re-logged by Weblogic. I would look at the configuration of your logger. (Or provid... |
I found this during my research on Sqlite. I haven't had the chance to use it though. Let us know if this works for you.
<http://sqlite.phxsoftware.com/>
> **System.Data.SQLite** System.Data.SQLite is the original
> SQLite database engine and a complete
> ADO.NET 2.0 provider all rolled into a
> single mixed... |
Javadoc template generator |
|java|javadoc|documentation|generation| |
I have a large codebase without javadoc and I want to run a program to write a skeleton with the basic javadoc information (e.g. for each method's parameter write @param...) so I just have to fill the gaps left.
Somebody knows a good solution for this? |
I have a large codebase without javadoc and I want to run a program to write a skeleton with the basic javadoc information (e.g. for each method's parameter write @param...) so I just have to fill the gaps left.
Somebody knows a good solution for this?
Edit:
With the code generation of eclipse you have to add th... |
Secure session cookies in ASP.NET over HTTPS |
|asp.net|security|session|cookies| |
I got a little curious after reading [this /. article][1] over hijacking HTTPS cookies. I tracked it down a bit, and a good resource I stumbled across lists a few ways to secure cookies [here][2]. Must I use adsutil, or will setting requireSSL in the httpCookies section of web.config cover session cookies in addition t... |