instruction
stringlengths
0
30k
Whats the best way to securely publish a site post build?
|.net|windows|deployment|iis-6|
So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool? Edit: I should mention this is windows/.net and I'll be deploying to iis6
Well, AdExplorer runs on your Local Workstation (which is why I prefer it) and I believe that most users have read access to AD anyway because that's actually required for stuff to work, but I'm not sure about that.
Something that people don't tend to figure in his the time savings in Developer Hours between platforms. Take for example, a WISA app vrs a LAMP app, The initial cost of the enviroment may be a $2000 difference, but that is made up in just 20 developer hours. So, if by using .NET, you are able to trim 20 hours fr...
Python: <http://diveintopython.org/> JS: [a re-introduction to JavaScript](http://developer.mozilla.org/en/A_re-introduction_to_JavaScript) is the introduction to the *language* (not the browser specifics) for programmers. Don't know a good tutorial on JS in browser.
Python: <http://diveintopython.org/> JS: [a re-introduction to JavaScript](http://developer.mozilla.org/en/A_re-introduction_to_JavaScript) is the introduction to the *language* (not the browser specifics) for programmers. Don't know a good tutorial on JS in browser. Great idea by the way!
I know a few of the developers on the Carleton University developed [Blindside Project][1]. They are actively developing a web conferencing and presentation tool for e-learning, with the intent of eventually offering university courses online. It's pretty fully featured software, and is meant to be installed as a s...
I know a few of the developers on the Carleton University developed [Blindside Project][1]. They are actively developing an open-source web conferencing and presentation tool for e-learning, with the intent of eventually offering university courses online. It's pretty fully featured software, and is meant to be ins...
I use and recommend [DreamHost][1] for both their prices and customer service. I've hosted several sites here and performance has always been good. $5.95 a month for their basic package. [1]: http://www.dreamhost.com/
I have no specific sites to suggest, but a typical hosting company will charge you less than $10 per month for service. A simple Google search will turn up lots of results for "comparison of web hosts": <http://www.google.com/search?hl=en&q=comparison+of+web+hosts&btnG=Google+Search>
As long as the name of the folder doesn't need to be meaningful, how about using a GUID for them?
You could generate a GUID for your temporary folder names.
Well, Amazon EC2 is only as bad as the amount of traffic you get. So the ideal situation is to monetize your site (ads, affiliate programs, etc) so that that more traffic you get, the more you pay Amazon, but the more you make...in theory of course. As for a budget of nothing...there's not really much you can do......
I've had to do this a few times, and there are only two options that I know of. Copy the file locally to the SQL Server, or on the SQL server create a mapped network drive to the share that contains the backup file.
You can use [GetTempFileName][1] to create a temporary **file**, then delete and re-create this file as a directory instead. Note: link didn't work, copy/paste from: http://msdn.microsoft.com/en-us/library/aa364991(VS.85).aspx [1]: http://msdn.microsoft.com/en-us/library/aa364991(VS.85).aspx
You have to use `System.IO.Path.GetTempFileName()` > Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file. You can use `System.IO.Path.GetDirectoryName(System.IO.Path.GetTempFileName())` to get only the temp folder information, and create your folders in there They ...
I agree with pix0r. With your requirements of php5 and mysql it seems that for starting out Dreamhost would be a good recommendation. You can always move it over pretty easily to ec2 if it takes off. Dreamhost is great and cheap for a php5 mysql setup that gives you command line access. The problems come if you wan...
The syntax in PostgreSQL is: SELECT * FROM mytable ORDER BY somefield LIMIT 1 OFFSET 20; Apparently, the SQL standard is silent on the limit issue, which is why everyone implements it differently.
The syntax in PostgreSQL is: SELECT * FROM mytable ORDER BY somefield LIMIT 1 OFFSET 20; Apparently, the SQL standard is silent on the limit issue, which is why everyone implements it differently. Edit: Just to clarify - the example above selects the 21st row. "OFFSET 20" is telling Postgres to skip the fi...
In my experience, you're probably better off using an embedded database. SQL, while less than perfect, is usually much easier than designing a file format that performs well and is reliable. I haven't used JavaDB, but I've had good luck with [H2][1] and [SQLite][2]. SQLite is a C library which means a little more ...
There's some stuff in the [Apache Portable Runtime][1] (APR) that I'd expect to be very solid. [1]: http://apr.apache.org/ "Apache Portable Runtime"
I think the query cache size is 0 by default, which is off. Edit your my.cnf file to give it at least a few megabytes. No PHP changes necessary :)
Regrading the preserve transparency, then yes like stated in other posts imagesavealpha() have to be set to true, to use the alpha flag imagealphablending() must be set to false else it doesn't work. Also I spotted two minor things in your code: 1. You don't need to call getimagesize() to get the width/height fo...
is the problem working out the placement of controls? i.e. you know font X and Y work on OS A and B, and give the layout you want with the text you're using on those systems? MeasureString method might help in working out your layout in a way that you weren't tied to specific fonts. float textWidth = graphics.Mea...
You could consider some kind of single-sign-on software. I am unaware of any that are free and I've only ever used [SiteMinder][1] which is neither free nor good. [Crowd][2] may be better (but is again not [free][3]). [1]: http://ca.com/us/internet-access-control.aspx [2]: http://www.atlassian.com/software/cr...
PRQA have an excellent C++ coding standard based on books from Scott Meyers, Bjarne Stroustrop and Herb Sutter. It brings all this information together in one document. You can download a free copy from <http://www.codingstandard.com/>.
What's the answer to this Microsoft PDC challenge?
|pdc|encryption|
In [today's channel9.msdn.com video][1], the PDC guys posted a challenge to decipher this code: 2973853263233233753482843823642933243283 6434928432937228939232737732732535234532 9335283373377282333349287338449365335325 3283443783243263673762933373883363333472 893663933842883353523643333323763...
The trouble with international standards is that pretty much noone uses them. I try where I can, but I am forced to use dd/mm/yyyy almost everywhere in real life, which means I am so used to it it's always a conscious process to use ISO-8601. For the majority of people who don't even try to use ISO-8601 it's even worse...
Yes, you are right to lock at the VSZ. "ps u" will give you the VSZ and RSS, which are the virtual memory size and resident set size. The RSS is how much physical memory has been allocated to the process, and the VSZ is the virtual memory size of the process. If you have several copies of a program running, a lot ...
Localising date format descriptors
|internationalization|.net|c#|vb.net|asp.net|globalization|date|
What is the best way to localise a date format descriptor? As anyone from a culture which does not use the mm/dd/yyyy format knows, it is annoying to have to enter dates in this format. The .NET framework provides some very good localisation support, so it's trivial to parse dates according to the users culture, but...
|.net|date|internationalization|globalization|
My first action would be as follows: 1. Build the binaries in "Release" version but creating debug info file (you will find this possibility in project settings). 2. Use Dr Watson as a defualt debugger (DrWtsn32 -I) on a machine on which you want to reproduce the problem. 3. Repdroduce the problem. Dr Watson wi...
maybe [https://ci-bayes.dev.java.net/][1] or what about [http://www.cs.cmu.edu/~javabayes/Home/node2.html][2]? I never played with either. [1]: https://ci-bayes.dev.java.net/ [2]: http://www.cs.cmu.edu/~javabayes/Home/node2.html
Just use glTranslatef (or the DirectX equivalent) to draw a cube using the same code, but moving the relative point where you draw it. Maybe there's a better way to do it though, I'm fairly new to OpenGL. Be sure to set your viewpoint so you can see them all.
See this [blog post][1] where the author describes a method for overriding the default behavior for generating the ViewState and instead shows how to save it on the server Session object. > In ASP.NET 2.0, ViewState is saved by > a descendant of PageStatePersister > class. This class is an abstract class > for sa...
I'm not sure it's what you're thinking of, but you could do something similar with ssh tunneling. Let's say you wanted userA on 10.1.2.3/24 to connect a mysql server on userB's on 192.168.0.3/24. There's no direct network connectivity between the two networks, but both machines can connect to serverA on the public in...
@Joel you don't want to count on StackFrame. [In-lining][1] can ruin your day when you least expect it. But to the question: Either way doesn't really matter a whole lot. [1]: http://discuss.joelonsoftware.com/default.asp?dotnet.12.511358.10
I usually do what [Jack M](http://stackoverflow.com/questions/44176/searching-subversion-history-full-text#44226) says (use svn log --verbose) but I pipe to **grep** instead of less.
There's really nothing specific you need to learn to be an oracle devloper per se. Obviously you need to learn oracle sql syntax, and all the standard rdbms theory that goes along with database programming in general. The Java libs for database support are pretty easy to pick up and run with. I'm sure you can find a...
Jeff's article on <a href="http://www.codinghorror.com/blog/archives/001114.html">The Angle Bracket Tax</a> summarizes a number of alternatives (well, mainly YAML), and led me to the <a href="http://en.wikipedia.org/wiki/Lightweight_markup_language">wiki article on lightweight markup languages</a>.
How Can I Monitor Which Window Currently Has Keyboard Focus
|winapi|mfc|
Is there a way to track which window currently has keyboard focus. I could handle WM_SETFOCUS for every window but I'm wondering if there's an alternative, simpler method (i.e. a single message handler somewhere). I could use OnIdle() in MFC and call GetFocus() but that seems a little hacky.
I wouldn't dismiss plain text, like CSV or tab-delimited.
How about the Win32 [GetForegroundWindow][1]? [1]: http://msdn.microsoft.com/en-us/library/ms633505(VS.85).aspx
If you are doing enterprise software, a lot of users will have small monitors at low resolution. Or if they are old they will have it at a low res so they can see giant buttons ( I have seen an 800x600 on a 24"ish monitor). I have an old 15" monitor at a low resolution (800 x 600) so i can see what the program will loo...
I say pay the 50-80 bucks for a real host. The classic "you get what you pay for" is **very** true for hosting. This will save you time, time you can spend getting those $80.
Something like... using System.IO; string path = Path.GetTempPath() + Path.GetRandomFileName(); while (Directory.Exists(path)) path = Path.GetTempPath() + Path.GetRandomFileName(); Directory.CreateDirectory(path);
It may be helpful to know what kind of app we are talking about. Also what sort of traffic do you expect and to echo Adam's note what sort of business model (if any) do you have?
Internationalization in SSRS
|reporting-services|
What's the best way to handle translations for stock text in a SSRS. For instance - if I have a report that shows a grid of contents what's the best way to have the correct translation for the header of that grid show up, assuming the culture of the report is set correctly. Put another way - is it possible to do res...
|reporting-services|internationalization|
Compiled PHP?
|php|caching|zend|
Does anybody have experience working with PHP accelerators such as [MMCache][1] or [Zend Accelerator][2]? I'd like to know if using either of these makes PHP comparable to _faster_ web-technologies. Also, are there trade offs for using these? [1]: http://turck-mmcache.sourceforge.net/ [2]: http://www.zend.c...
|php|caching|zend|scriptalert1script|
|php|caching|zend|
Java and c# interoperability
|c#|java|interop|
I have two programs one in c# and another one in Java. Those programs will, most probably, always run on the same machine. What would be the best way to let them talk to each other ?
Got a answer over at [MSDN Forums][1] > This is the default behavior when you have Office 2007 installed on your > development computer. You can modify > this behavior under Tools->Options. > For more informaiton, see the > following threads: > > http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3762143...
There are other ways to do it, but most of them involve effort on your part (or take performance from your app, or you have to block a thread to use them, etc). FindFirstChangeNotification is a bit complicated if you're not used to dealing with function pointers, etc, but it has the virtue of getting the OS to do the b...
If you're running Sql Server 2005, you can write a custom aggregate function to handle this. C# version: using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Text; using Microsoft.SqlServer.Server; [Serializable] [Microsoft...
Take a look at [Hoard][1] if you are doing a lot of memory allocation. Roll your own [Lock Free List][2]. A good resource is here - it's in C# but the ideas are portable. Once you get used to how they work you start seeing other places where they can be used and not just in lists. [1]: http://www.hoard.org/ ...
That's actually so that you don't try to put any odd "object" in your "ol" list variant (as `List<object>` would seem to allow) - because your code would crash then (because the list really is `List<string>` and will only accept String type objects). That's why you can't cast your variable to a more general specificati...
On many unixen, you can get sort to sort by a particular column, or field. So by sorting the file by the ID, and then by the date, you no longer need to keep the associative array of when you last saw each ID at all. All the context is there in the order of the file. On my Mac, which has GNU sort, it's: sort...
I would have a look at Team City http://www.jetbrains.com/teamcity/index.html I know some people who are looking in to this and they say good things about it. My companies build process is done in FinalBuilder so I'm going to be looking at their server soon.
I would have a look at Team City http://www.jetbrains.com/teamcity/index.html I know some people who are looking in to this and they say good things about it. My companies build process is done in FinalBuilder so I'm going to be looking at their server soon. CC is quite good in that you can have one CC server mo...
I know a few of the developers on the Carleton University developed [Blindside Project][1]. They are actively developing an open-source web conferencing and presentation tool for e-learning, with the intent of eventually offering university courses online. It's pretty fully featured software, and is meant to be ins...
Natural language date/time parser for .NET?
|.net|datetime|nlp|
Does anyone know of a .NET date/time parser similar to [Chronic for Ruby][1] (handles stuff like "tomorrow" or "3pm next thursday")? Note: I do write Ruby (which is how I know about Chronic) but this project must use .NET. [1]: http://chronic.rubyforge.org/
The [BlindSide][1] site also listed these other projects: - [ePresence][2] - [OpenMeetings][3] - [DimDim][4] - [WebHuddle][5] All opensource as well. [1]: http://code.google.com/p/blindside/ [2]: http://www.epresence.tv/ [3]: http://code.google.com/p/openmeetings [4]: http://www.dimdim....
execute shortcuts like programs in powershell
|powershell|
Example: You have a shortcut <code>s</code> to <code>SomeProgram</code> in the current directory. In <code>cmd.exe</code>, you can type <code>s</code> and it will launch the program. In PowerShell, typing <code>s</code> gives: > <code>The term 's' is not recognized as a cmdlet, function, operable program, or scr...
Example: You have a shortcut `s` to `SomeProgram` in the current directory. In `cmd.exe`, you can type `s` and it will launch the program. In PowerShell, typing `s` gives: > `The term 's' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.` If you type `s....
I think if I were going to do this, I would use tags. It would be pretty easy to write a script that would tag both repositories with the same ID each time you upgraded the library and used it in the project. Then, if you need to roll back to a previous version, you just see what its most recent tag was, and roll the...
For the sake of completeness I will mention [Edifact][1] for which I wrote an interface a long time ago. [1]: http://en.wikipedia.org/wiki/EDIFACT
What is the best practice for estimating required time for development of the SDLC phases?
|project-management|time-management|
As project manager, your required to organize your time so that the project meets a deadline. Is there some sort of equation to use for estimating how long development will take for let's say the database (like time = sql storeprecedures * tables manipulated or something similar) or are you just stuck having to get the...
I think one possible situation where you *might* get a performance gain is if the enumerable type's size and the loop condition is a constant; for example: <pre><code>const int ArraySize = 10; int[] values = new int[ArraySize]; //... for (int i = 0; i < ArraySize; i++) { //... }</code></pre> In this...
Connector/Net _is_ the native provider you are looking for. If you're having trouble using it then you should open a new question asking how to get it working with crystal reports. I don't use crystal reports, so I can't help you there myself.
You're question is a little bit too vague in order to give a proper answer... If you plan to query the Oracle Database from an External Java Program (Either within a Swing Application or an Application Server) then you need to learn 2 core APIs: - JDBC (Java Database Connectivity) - JPA (Java Persiste...
The foreach sample roughly corresponds to this code: using(IEnumerator<Entity> e = entityList.GetEnumerator()) { while(e.MoveNext()) { Entity entity = e.Current; ... } } There are two costs here that a regular for loop does not have to pay: 1. The cost of al...
|encryption|pdc|
In [today's channel9.msdn.com video][1], the PDC guys posted a challenge to decipher this code: 2973853263233233753482843823642933243283 6434928432937228939232737732732535234532 9335283373377282333349287338349365335325 3283443783243263673762933373883363333472 893663933842883353523643333323763...
Why no favicon for my web page?
|firefox|ubuntu|
I've got a website that I've just uploaded onto the interwebs, and when using Firefox 3.0.1 on Ubuntu I don't see the favicon; Firefox 3.0.1 on WinXP shows it. Why isn't the favicon displaying under Ubuntu? It's a favicon.ico file in the root directory, not referenced in the meta tags; would it work better as a GI...
I've got a website that I've just uploaded onto the interwebs, and when using Firefox 3.0.1 on Ubuntu I don't see the favicon; Firefox 3.0.1 on WinXP shows it. **Why** isn't the favicon displaying under Ubuntu? It's a favicon.ico file in the root directory, not referenced in the meta tags; would it work better as ...
Why no favicon for my web site?
|firefox|ubuntu|favicon|