instruction
stringlengths
0
30k
If you are developing something for a general audience, I would highly recommend against Silverlight as you immediately cut out Linux users. I went to watch videos for the Olympics (and I run exclusively Linux), and I couldn't watch the video on their site because they were in Silverlight. On top of that, they acti...
Well 6 million watched the Olympics on NBC, which used a silverlight player. So at least 6 million. I've never seen exact stats, but you can be pretty certain that it is pretty small still. Also, there is an implementation of silverlight for linux called [moonlight][1]. [1]: http://www.mono-project.com/Mo...
Challenge: Write a wrapper for your web site/service API of choice in your language of choice, that doesn't already exist (ex. a [ZenDesk API][1] wrapper written in C#). Release the wrapper as open source for others to use. Skill Level: Beginner to Intermediate Rationale: To learn how to extrapolate a 3rd party ...
If you want an ASCII-based approach, take a look at integrating [FIGlet][1]. You could make some custom fonts and do some font selection randomization per character to increase the entrophy. The kerning makes the text more visually pleasing and a bit harder for a bot to reverse engineer. Such as: <pre> ____...
IDE's will probably be "off the cloud" for a long time, if ever... powerful customizable editors like Emacs will also probably stay "off the cloud" for a while.
There's no reason that many corporations will move to an online system simply because of security concerns. For example, One of the greatest assets of Outlook is to go offline and continue working. Sure Google Gears has similar functionality, but then you're trusting Google with your corporate security.
I can recommend DBPro which is part of Visual Studio Team Edition. Have been using it for a few months for storing all parts of the database in Team Foundation Server as well as for deployment and database compares, etc. Of course, as someone else mentioned, it does depend on your environment and price range.
Video editing and other resource intensive tasks will probably stay off the cloud for a long time.
If I look at the application that we've selling and at the applications I've written as a consultant, I must very much agree with you. Most of them are useless if there is no internet connection. Some do work in disconnected mode, some don't, but all of them are pretty useless if you cannot connect to the big supportin...
Such applications are dead since 15 years, ever since Sun took market leadership with their [JavaStation][1]. No, wait. They did not. And things are not "more and more" moving to network-based applications. Sure, there is Webmail, but even GMail is FAR away from the comfort of modern Outlook or Thunderbird Clients. ...
I have a strange problem when I publish my website. I inherited this project and the problem started before I arrived so I don't know what conditions lead to the creation of the problem. Basically, 3 folders below the website project fail to publish properly. When the PrecompiledWeb is transferred to the host these ...
I have a strange problem when I publish my website. I inherited this project and the problem started before I arrived so I don't know what conditions lead to the creation of the problem. Basically, 3 folders below the website project fail to publish properly. When the PrecompiledWeb is transferred to the host these ...
You can store the list items in the Application object. You are right about the application_onStart(), simply call a method that will read your database and load the data to the Application object. In Global.asax public class Global : System.Web.HttpApplication { // The key to use in the rest of...
What do I need to manage XML files?
|xml|
I believe I need a DTD to define the schema and an XSLT if I want to display it in a browser and have it look "pretty". But I'm not sure what else I would need to have a well-defined XML document that can be queried using XQuery and displayed in a web browser.
Here is the pastebin link: [http://pastebin.com/m17d99f8a][1] I am using a stylesheet for the grid that I got from Matt Berseth's blog located here: [http://mattberseth.com/blog/2007/10/a_yui_datatable_styled_gridvie.html][2] I am using a similar stylesheet for the calendar that I cannot find the link for any...
HTML in Code?
|html|organizing|user-interface|
In a web application is it acceptable to use HTML in your code (non-scripted languages, Java, .NET) ?
Should HTML co-exist with code?
|html|organizing|user-interface|
In a web application, is it acceptable to use HTML in your code (non-scripted languages, Java, .NET)?
I think an interesting stat comes from this site itself. Have a look at how many silverlight questions there are! And how many responses - it's not the most active topic!
Imagine a sector of data on the physical disk. Within this sector is a magnetic pattern (a strip) which encodes the bits of data stored in the sector. This pattern is written by a write head which is more or less stationary while the disk rotates beneath it. Now, in order for your hard drive to function properly as a d...
If you can manipulate one of the arrays, you can resize it before performing the copy: T[] array1 = getOneArray(); T[] array2 = getAnotherArray(); Array<T>.Resize(array1, array1.Length + array2.Length); Array.Copy(array2, 0, array1, array1.Length, array2.Length); Otherwise, you can make a new a...
If you can manipulate one of the arrays, you can resize it before performing the copy: T[] array1 = getOneArray(); T[] array2 = getAnotherArray(); int array1OriginalLength = array1.Length; Array<T>.Resize(array1, array1OriginalLength + array2.Length); Array.Copy(array2, 0, array1, array1Origi...
\#region I made a 1,000 line class only one line with it! In all seriousness, the best way to avoid repetition is the things covered in your list, as well as fully utilizing polymorphism, examine your class and discover what would best be done in a abstract class, and how different components of it can be broken ...
"undefined" is undefined. So you can do this: if (var.field === undefined) ...
Its tough to say there is any relationship between modified assembly and the source which generated the unmodified version. It will certainly confuse debugging tools: register contents will no longer match the source variables they were supposed to correspond to. There are a number of places in packet processing cod...
Hmm, what platform and what version of emacs are you using? With GNU Emacs 22.1.1 on Windows Vista, it works fine for me. If, by any chance, you are doing this from windows to linux through a RealVNC viewer, make sure you are running "vncconfig -iconic" on the linux box first.....
Not so much an API but rather a renderer; [Povray][1]? There also seem to exist a [http][2] interface... [1]: http://www.povray.org/ [2]: http://columbiegg.com/httpov/
What I do is to use a good terminal tool (PuTTY on Windows, Konsole or Terminal on Linux) that has copy facilities built-in. In PuTTY, you highlight the text you want with the mouse and then paste it elsewhere. Right-clicking in a PuTTY window pastes the contents of the Windows copy/paste buffer. In Konsole or Te...
If you are looking at the assembly, then its fair to assume that you have a good understanding about how code gets compiled down. If you have this knowledge, then its sometimes possible to 'reverse enginer' the changes back up into the original language but its often better not to bother. The optimisations that you...
I always use quick paste -- drag selection in emacs, hit the middle mouse button in target window. (From the reference to kate, I take it you're on linux or similar and probably using emacs in X one way or another.)
Something you could try is to separate your original function into its own file, and provide a make rule to build the assembler from there. Then update the assembler file with your improved version, and provide a make rule to build an object file from the assembler file. Then change your link rules to include that obje...
Personal Linux web server
|java|php|linux|security|server|webapplications|
I'd like to set up a cheap Linux box as a web server to host a variety of web technologies (PHP & Java EE come to mind, but I'd like to experiment with Ruby or Python in the future as well). I'm fairly versed in setting up Tomcat to run on Linux for serving up Java EE applications, but I'd like to be able to open t...
|java|php|linux|security|server|
|java|php|linux|security|server|
Reorganise index vs Rebuild Index in Sql Server Maintenance plan
|sql|server|maintenance|plan|rebuild|reorganize|
In the SSW rules to better SQL Server Database there is an example of a full database maintenance plan: [SSW][1]. In the example they run both a Reorganize Index and then a Rebuild Index and then Update Statistics. Is there any point to this? I thought Reorganize Index was a fast but less effective version of Rebuild I...
|sql|server|maintenance|plan|rebuild|reorganize|
Error ADMA5026E for WebSphere Application Server Network Deployment
|deployment|server|networking|application|websphere|ibm|
What I'm doing wrong that I get the ADMA5026E error when deployment an application with the NetworkDeployment Console?
|deployment|networking|server|application|websphere|ibm|
Can someone give me a working example of a build.xml for an EAR that deploys in WebSphere 6
|ant|jakarta-ee|ear|websphere|rad|rational|
I'm trying to convince my providers to use ANT instead of Rational Application Development so anyone can recompile, recheck, redeploy the solution anyplace, anytime, anyhow. :P I started a build.xml for a project that generates a JAR file but stopped there and I need real examples to compare notes. My good friends! ...
I'm trying to convince my providers to use ANT instead of Rational Application Development so anyone can recompile, recheck, redeploy the solution anyplace, anytime, anyhow. :P I started a build.xml for a project that generates a JAR file but stopped there and I need real examples to compare notes. My good friends! ...
\#region I made a 1,000 line class only one line with it! In all seriousness, the best way to avoid repetition is the things covered in your list, as well as fully utilizing polymorphism, examine your class and discover what would best be done in a base class, and how different components of it can be broken away...
There are online calendars you can subscribe to. For example, Google provides US Holidays: [ICAL][1] [XML][2] [HTML][3] [1]: http://www.google.com/calendar/ical/usa__en%40holiday.calendar.google.com/public/basic.ics [2]: http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/b...
This was the [weekly poll over on CP][1] a few weeks back. Out of the 1463 developers responding, aprox. 62% had Silverlight installed on at least one system. So... if you're making a site targeted at Windows developers... and don't mind locking out a third of your potential market... [1]: http://www.codepro...
The rough estimate version of this issue that I learned is that 32-bit floats give you 5 digits of precision and 64-bit floats give you 15 digits of precision. This will of course vary depending on how the floats are encoded, but it's a pretty good starting point.
Select rows in dataset table based on other dataset table
|dataset|select|.net|vb.net|
I have a dataset that has two tables in it. I want to do the following (or something like it) is it possible and is how I have it correct? dsTabData.Tables("FilingTabs").Select("fs_ID not in (select fsp_fsid from ParentTabs)") how do you reference data from other table in the same dataset?
|.net|vb.net|dataset|select|
In an attempt to try and help, we may need some clarification. Maybe by restating the problem you can let us know if this is what you're asking: **How can one import existing xml into a SQL 2005 database, without relying on the built-in xml type?** A fairly straight forward solution that you already mentioned is ...
|asp.net|xss|cookies|
|asp.net|cookies|xss|
|asp.net|cookies|xss|httponly|
The `SetAuthCookie` allows you to issue the auth cookie but retain control over the navigation. After that method is called you can run your logic to do a typical ASP.NET redirect to wherever you want.
Explanation here from Ilia... 5.2 only though [httpOnly cookie flag support in PHP 5.2][1] [1]: http://ilia.ws/archives/121-httpOnly-cookie-flag-support-in-PHP-5.2.html As stated in that article, you can set the header yourself in previous versions of PHP header("Set-Cookie: hidden=value; httpOnly")...
Updating Android Tab Icons
|android|
I have an activity which has a TabHost containing a set of TabSpecs each with a listview containing the items to be displayed by the tab. When each TabSpec is created, I set an icon to be displayed in the tab header. The TabSpecs are created in this way within a setupTabs() method which loops to create the appropria...
<?php //None HttpOnly cookie: setcookie("abc", "test", NULL, NULL, NULL, NULL, FALSE); //HttpOnly cookie: setcookie("abc", "test", NULL, NULL, NULL, NULL, TRUE); ?> [Source][1] [1]: http://ilia.ws/archives/121-httpOnly-cookie-flag-support-in-PHP-5.2.html
You can specify it in the set cookie function [see the php manual][1] setcookie('Foo','Bar',0,'/', 'www.sample.com' , FALSE, TRUE); [1]: http://uk.php.net/setcookie
From the Apple Dev Site: > To start your application in landscape > mode so that the status bar is in the > appropriate position immediately, edit > your Info.plist file to add the > UIInterfaceOrientation key with the > appropriate value > (UIInterfaceOrientationLandscapeRight > or > UIInterfaceOrientationL...
Use common sense really. If you have something like public class ScreenCoord2D { public int x; public int y; } Then there's little point in wrapping them up in getters and setters. You're never going to store an x,y coordinate in whole pixels any other way. Getters and setters will...
|html|user-interface|web-development|
|html|user-interface|organizing|
In a web application, is it acceptable to use HTML in your code (non-scripted languages, Java, .NET)? There are to major sub questions: 1. Should you use code to print HTML, or otherwise directly create HTML that is displayed? 2. Should you mix code within your HTML pages.
Although SQL Server and MySQL are both RDBMs, MySQL has many unique features that can illustrate the difference between novice and expert. Your first step should be to ensure that the candidate is comfortable using the command line, not just GUI tools such as phpMyAdmin. During the interview, try asking the candidat...
You might want to specify what platform you are using. Is it on linux, unix, macosx, windows, ms-dos? I believe that for windows it should work. For MacOSX it will get added to the x-windows clipboard, which isn't the same thing as the macosx clipboard. For Linux, it depends on your flavour of window manager, but I ...
Server side rendering only makes sense if the scene consists of a huge number of objects such that the download of the data set to the client for client rendering would be far too slow and the rendering is not expected to be in realtime. Client side rendering isn't too difficult if you use something like [jogl](https:/...
There's an example in the [section on Multiple result sets in the docs][1]. [1]: http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm#MULTIPLE_RESULT_SETS
Five bytes in 16-bit asm which will cause a stack overflow. push cs push $-1 ret
Best Python supported server/client protocol?
|python|client|
I'm looking for a good server/client protocol supported in Python for making data requests/file transfers between one server and many clients. Security is also an issue - so secure login would be a plus. I've been looking into XML-RPC, but it looks to be a pretty old (and possibly unused these days?) protocol. Thank...
You're in High School. How much time do you have to work on this program? How many people are in your group? Do they know C++ or LabView already? From your question, I see that you know C++ and most of the group does not. I also suspect that the group leader is perceptive enough to notice that some members of th...
Is it possible to embed and use a portable executable in a .net DLL?
|.net|command-line|dll|resources|
The easiest way to think of my question is to think of a single, simple unix command (albeit, this is for windows) and I need progmatic access to run it. I have a single command-line based executable that performs some unit of work. I want to call that executable with the .net process library, as I can do with any ...
On my XP box, it was in the registry here: HKEY_CURRENT_USER\Software\JGsoft\RegexBuddy3\History There were two REG_BINARY keys called **Action0** and **Action1** that had hex data containing my two regexes from the history. <img src="http://farm4.static.flickr.com/3161/2845913119_ee2b3aac73_o.png" alt="Sc...
On my XP box, it was in the registry here: HKEY_CURRENT_USER\Software\JGsoft\RegexBuddy3\History There were two REG_BINARY keys called **Action0** and **Action1** that had hex data containing my two regexes from the history. <img src="http://farm4.static.flickr.com/3161/2845913119_c379d83cb0_o.png" alt="Sc...
Here is a [blog post](http://www.sharepointblogs.com/johnwpowell/archive/2007/07/13/display-version-number-and-other-sharepoint-metadata-in-word-2003-documents.aspx) which seem to be exactly the solution of your problem. Basically they create a custom field in the document library and use event receivers to keep the...
Here is a [blog post](http://www.sharepointblogs.com/johnwpowell/archive/2007/07/13/display-version-number-and-other-sharepoint-metadata-in-word-2003-documents.aspx) which seem to be exactly the solution of your problem. Basically they create a custom field in the document library and use event receivers to keep the...
Also, if you want to get rid of the list of open buffers, type C-x 1.
How heavily do you use the class libraries, and things that might be considered 'dangerous', like pinvoke, file system access and System.Diagnostics.Process?
these work for general strings (in case you do not want to output to file/console, but store for later use or soemthing. boost.lexical_cast MyStr += boost::lixical_cast<std::string>(MyInt); string streams std::stringstream Stream; Stream.str(MyStr); Stream << MyInt; MyStr = Stream.str...
these work for general strings (in case you do not want to output to file/console, but store for later use or soemthing. boost.lexical_cast MyStr += boost::lexical_cast<std::string>(MyInt); string streams //sstream.h std::stringstream Stream; Stream.str(MyStr); Stream << MyInt; M...
The HTML that makes up the view has to get sent to the browser in some way. In .net, each server control emits its own HTML markup as part of the page lifecycle. So yes it is OK to use HTML in server side code. Perhaps you should try following the ASP.net pattern. Create a bunch of controls that represent UI elem...
Google has a [Singleton Detector][1] for Java that I believe started out as a tool that must be run on all code produced at Google. The nutshell reason to remove Singletons: > because they can make testing > difficult and hide problems with your > design [1]: http://code.google.com/p/google-singleton-det...
Google has a [Singleton Detector][1] for Java that I believe started out as a tool that must be run on all code produced at Google. The nutshell reason to remove Singletons: > because they can make testing > difficult and hide problems with your > design For a more explicit explanation see '[Why Singletons A...