instruction stringlengths 0 30k ⌀ |
|---|
It's gotta be free. It's hobby, after all, not a business!. |
|video-game-consoles| |
|video-game-consoles|xna| |
|xna|video-game-consoles| |
It's gotta be free. It's hobby, after all, not a business!. Creating for-profit software isn't an issue, but anything that requires a hardware mod is out. |
There is a Ruby port of Lucene called "[Ferret][1]". In addition to the Ruby API, you can get at the underlying c implementation called "cFerret".
[1]: http://ferret.davebalmain.com/trac |
I think it depends on the design of the wrapper. If the manager wrapper's interface will be nearly identical to the unmanaged library's interface, then rethrow the exceptions 1:1. If you're changing the interface significantly, then throw exceptions most appropriate for the new interface. Either way, make sure the wrap... |
We raise errors when errors occur, and we return status information in output variables or return values. |
@Ben: It isn't the setf call that is wrong--the problem is that he is not updating xs.
ie: xst is being set to xs with the element removed, but xs is not being updated. If a second element is to be removed, xst will have the first back in it.
If you wanted to have your original code work (although I agree Ben's s... |
@Ben: It isn't the setf call that is wrong--the problem is that he is not updating xs.
ie: xst is being set to xs with the element removed, but xs is not being updated. If a second element is to be removed, xst will have the first back in it.
you would need to bind xst to xs, and replace the xs in the remove call... |
I've done it both ways you are talking about, My preferred approach now is the persistent ignorant (or PONO -- Plain Ole' .Net Object) method where your domain classes are only worried about being domain classes. They do not know anything about how they are persisted or even if they are persisted. Of course you have... |
This is a big question that depends a lot on context that would take you a lot of time to type into one of these little text boxes. Also, all three of these appear substantially similar when used for the usual stuff most programmers do, so even understanding the differences requires some fairly esoteric knowledge.
... |
What is cool about generics, why use them? |
|c#|generics|types| |
I thought I'd offer this softball to whomever would like to hit it out of the park. What are generics, what are the advantages of generics, why, where, how should I use them? Please, keep it fairly basic. Thanks. |
Sorry, but the bloody posting parser removed the whitespace and formatting on my post. It makes it a log harder to read. |
You might look into the features available with a tool such as Ants Profiler as it does give method executing/run times, but I'm not sure what it offers in terms of repeated testing. |
Your best bang for the buck would probably be to use an upload component (I've used ASPUpload) that allows you to upload/download files from a folder that isn't accessible from the website.
You'll get some authentication hooks and won't have to worry about someone casually browsing the folder and downloading the f... |
[TotalView][1] is what the national labs use for huge clusters. I believe it has some good support for thread parallelism, too. It's probably out of your price range, but you can try it for free.
[1]: http://www.totalviewtech.com/index.html |
SWFAddress Deeplinks and C# library? |
We've had a very hard time marrying our GWT codebase with HTML web templates that we got from a web designer (static HTML pages with specific div ids that we wanted GWT to manage). At least back when we used it, we couldn't get GWT to integrate with parts of our website that were not coded in GWT. We had it working eve... |
Perhaps, get used to creating logfiles, and write output into the file directly, then bring up in your favorite text editor. |
You do have the option of sticking with the 2.0 branch. This will be maintained with just bug fixes until 2010. Take a look at http://wordpress.org/download/legacy/ |
PHP doesn't differentiate between the scanning and the Markup. It simply outputs to buffer when in Markup mode, and then switches to parsing when in code mode. You don't need a two pass scanner, and you can do this with just a single flex lexer. |
PHP doesn't differentiate between the scanning and the Markup. It simply outputs to buffer when in Markup mode, and then switches to parsing when in code mode. You don't need a two pass scanner, and you can do this with just a single flex lexer.
If you are interested in how PHP itself works, download the source ... |
No, that's about DP books and this thread is about the particular patterns.
Interpreter and Flyweight comes to mind from the Gang of 4 book.
I consider Bridge and Mediator powerful and deep patterns in the sw developer's toolbox. |
Lightweight, can be run without installing it on a client's machine, fast, can debug kernel mode.
|
How do you deal with configuration management of Database Tables? |
|sql|sql-server|database|t-sql| |
How do you deal with source control management and automated deployment (configuration management) of database tables. I work in a SQL Server environment and it's pretty easy to script out drop and create files for stored procedures/triggers/functions even jobs. It's also easy to handle scripting out the creation of ... |
The IOComp package looks great, but does not seem inexpensive to me.
FarPoint and codejock, AFAIK, do not have chart controls.
There are a couple of _free_ chart controls at codeproject:
<http://www.codeproject.com/KB/miscctrl/CBarChart.aspx>
<http://www.codeproject.com/KB/miscctrl/High-speedCharting.aspx>
... |
The IOComp package (<http://iocomp.com/> ) looks great, but does seem quite expensive to me at around $850 for a developer license
The TeeChart package ( <http://www.steema.com> ) looks comparable at a smaller prices of $450. They have a free 50 day evaluation license
There are a couple of _free_ chart controls... |
From <a href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">the CSS 2.1 specification</a>:
> The 'medium' value is the user's preferred font size and is used as the reference middle value.
If a browser doesn't do this, then the browser is buggy. |
> "I don't want to use "svn update -r 2 A.txt" because this will delete all the revisions after r2, namely r3 and r4."
Uh... it won't, actually. Try it: do a regular svn update after the -r 2 one and you'll see the working copy updated back to r4. |
ffmpeg has an API and also [python bindings](http://pymedia.org/), seems to be the way to go !
Thanks |
Update won't delete any revisions on the server. The only changes it makes are to your local working copy:
[SVN Update Command](http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.update.html)
"brings changes from the repository into your working copy"
"synchronizes the working copy to the revision given by the ... |
To add to the Emacs suggestions, I would also recommend that you look at the advantages of distel when running the Emacs erlang-mode. |
It's very easy... just use [System.Path.ChangeExtension][1]
[1]: http://msdn.microsoft.com/en-us/library/system.io.path.changeextension.aspx |
It's very easy... just use [System.IO.Path.ChangeExtension][1]
[1]: http://msdn.microsoft.com/en-us/library/system.io.path.changeextension.aspx |
You can use either Modules or RSL.
RSLs have the advantage of getting cached by flash rather than the browser so they stick around longer.
Modules are easier to create and use. I have used modules and had issues with modules failing to load (code needs to handle that case). I haven't tried RSLs yet.
Here is so... |
<p>You can indeed support cookie authentication but the only guaranteed way for it to work is to attach the cookie ID as part of the URL i.e. cookieless sessions. Yes, this is bad practice as it's ugly and very insecure and all modern phones support cookies.</p> <p>But some devices have cookie limitations and, what's m... |
Regex for Specific Tag |
|regularexpression| |
Greetings!
I'm working on a regular expression to get a specific tag. I would like to match the entire DIV tag and its contents:
<html>
<head><title>Test</title></head>
<body>
<p>This is a paragraph - nothing special here.</p>
<div id="super_special">
<p>An... |
|regularexpression|.net| |
Greetings!
I'm working on a regular expression in a .NET project to get a specific tag. I would like to match the entire DIV tag and its contents:
<html>
<head><title>Test</title></head>
<body>
<p>This is a paragraph - nothing special here.</p>
<div id="super_special">
... |
Greetings!
I'm working on a regular expression in a .NET project to get a specific tag. I would like to match the entire DIV tag and its contents:
<html>
<head><title>Test</title></head>
<body>
<p>The first paragraph.</p>
<div id='super_special'>
<p>The Store ... |
|.net|regularexpression| |
|.net|regular-expressions| |
|.net|regex| |
Greetings!
I'm working on a regular expression in a .NET project to get a specific tag. I would like to match the entire DIV tag and its contents:
<html>
<head><title>Test</title></head>
<body>
<p>The first paragraph.</p>
<div id='super_special'>
<p>The Store ... |
Managing user stories for a large project |
|project-management|agile|scrum|user-stories| |
We are just starting on a pretty big project with lots of sub projects. we don't currently use any kind of named process but I am hoping to get some kind of agile/scrumlike process in by the back door.
The area I will be focusing on most is having a good backlog for the whole project and, at least in my head, the id... |
The best interface I've seen for this was a home-grown control that drew a tree to clearly show the order of operations. I've never seen a third-party control that did this but I haven't looked for one either. |
Lucene is very good. And although it was originally written in java there is a php implementation http://framework.zend.com/manual/en/zend.search.lucene.html |
Why doesn't GCC optimize structs? |
|c|optimization|gcc|struct| |
Systems demand that certain primitives be aligned to certain points within the memory (ints to bits that are multiples of 4, shorts to bits that are multiples of 2, etc.). Of course, these can be optimized to waste the least space in padding.
my question is why doesn't GCC do this automatically? Is the more obviou... |
If you're using SQL Server Management Studio, you can enter both versions into the Query Editor and then right-click and choose Display Estimated Execution Plan. It will give you two percentage costs relative to the batch. If they're expected to take the same time, they'll both show as 50% - in which case, choose which... |
|asp.net|flash| |
Is there a C# class for interacting with SWFAddress deeplink URL strings (reading deeplink parameters, building SWFAddress URLs, etc.)? Planning to write one myself otherwise; but I wanted to make sure I wasn't reinventing the wheel first. |
It's important to include refactoring time in your original estimates. Going to your boss after you've delivered the product and then telling him that you're not actually done is lying about being done. You didn't actually make the deliverable deadline. It's like a surgeon doing surgery and then not making sure he put ... |
With respect to performance testing I've been very skeptical of using vmware or other virtualization processes. The way we have handled this in the past is to have part of the build install the latest version on a static machine and run the tests. You should see more consistent results outside of the virtualization. |
xslt is great for xml to xml, when you have data that is already escaped and a clear definition of inputs and outputs. using it for things like xml2html to me just seems like such a headache, and with nearly any dynamic language and css the output is a lot easier to implement with style. |
C++ Quiz - Singletons |
|c++|oop|design-patterns| |
I'll soon be posting an article on [my blog][1], but I'd like to verify I haven't missed anything first.
Find an example I've missed, and I'll cite you on my post...
The topic is failed Singleton implementations - in what cases can you *accidentally* get multiple instances of a singleton?
So far, I've come up ... |
|c++|oop|design-patterns|quiz| |
Generics allow you to create objects that are strongly typed, yet you don't have to define the specific type. I think the best useful example is the List<T> and similar classes.
Using the generic list you can have a List<string> List<int> List<yourObject> whatever you want and you can always reference the strong ... |
The way I did it was to take a few minutes initially to go over the most basic stuff -- moving the cursor around, searching forwards and back, jumping to next and previous words/sentences/paragraphs, etc. Inserting, appending. Whatever you can fit in your head. Then, when you've got something to do that doesn't have... |
Using the javax.script package for javascript with an external src attribute |
|java|javascript|javax.script| |
Say I have some javascript that if run in a browser would be typed like this...
<script type="text/javascript"
src="http://someplace.net/stuff.ashx"></script>
<script type="text/javascript">
var stuff = null;
stuff = new TheStuff('myStuff');
</script>
... and I... |
Timeslicing is inherent to any round-robin scheduling system in practice, AFAIK.
I disagree with InSciTek Jeff's implication that the following *is* round-robin scheduling:
> That is, each task at the same priority in the round-robin rotation can be allowed to run until they reach a resource blocking condition befo... |
Timeslicing is inherent to any round-robin scheduling system in practice, AFAIK.
I disagree with InSciTek Jeff's implication that the following *is* round-robin scheduling:
> That is, each task at the same priority in the round-robin rotation can be allowed to run until they reach a resource blocking condition befo... |
Depends on the database as each database has a different way to add sequence numbers. I would alter the table to add the column then write a db script in groovy/python/etc to read in the data and update the id with a sequence. Once the data has been set, I would add a sequence to the table that starts after the top num... |
for oracle you could do something like
alter table mytable add (myfield integer);
update mytable set myfield = rownum; |
How is your linked server set up? You generally have some options as to how it authenticates to the remote server, which include logging in as the currently logged in user or specifying a SQL login to always use. Have you tried setting it to always use a specific account? That should eliminate any possible permissio... |
ref: http://jimyjoshi.com/blog/2007/08/rfc822dateparsinginjava.html for parsing dates.
Times must always be stored in UTC (GMT) - i.e. after parsing convert from the timezone to GMT and remove daylight savings offset.
You can stored the date with the timezone.
If you remove or don't handle the timezone it can ... |
This could be the obvious answer but the FLVPlayBack component is really nice if you have a single video you need to throw on a website in hurry. Drag it on the stage - select a control panel - double click controls to edit with the Flash drawing tools - post to the website.You might have to use a FlashVar to get the ... |
It would help if you posted what SQL database you're using. For MySQL you probably want auto_increment:
<pre><code>ALTER TABLE tableName ADD id MEDIUMINT NOT NULL AUTO_INCREMENT KEY</code></pre>
Not sure if this applies the values retroactively though. If it doesn't you should just be able to iterate over your ... |
Google Maps, Z Index and Drop Down Javascript menus |
|javascript|html|css|z-index|googlemaps| |
I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map?
Thanks! |
|javascript|html|css|google-maps|z-index| |
yes it is. however it doesnt support all of the features one would expect in an object oriented programming language lacking inheritence and polymorphism. this doesnt mean however that you cannot simulate these capabilities through the protyping system that is avaialble to the language. |
Most efficient way to increment a Map value in Java |
AFAIK you can not do that in C#. What the BCL does and there are plenties of examples there is to create a class that is not generic and then create a generic class that inherits the base behavior from the previous one. See example below.
class Foo
{
}
class Foo<T> : Foo
{
}
The you... |
How much does this product cost? |
you might be well served by writing a regex that will *succeed* when it encounters the words you're looking for, and then invert the condition.
For instance, in perl you'd use:
if (!/boon\.ini|http/) {
# the string passed!
} |
This is kind of a horrible question. I mean, .NET has an image control where you can set the source to anything you want. I'm not sure what you're wanting to be discussed. |
For pagination, [will_paginate][1].
[1]: http://github.com/mislav/will_paginate/tree/master |
Here is some pseudocode for Linux/UNIX:
initialization_code()
if(failure) exit(1)
if( fork() > 0 ) exit(0)
setsid()
setup_signal_handlers()
for(fd=0; fd<NOFILE; fd++) close(fd)
open("/dev/null", O_RDONLY)
open("/dev/null", O_WRONLY)
open("/dev/null", o_WRONLY)
chdir("... |
Check out the new [DynamicImage control][1] released in CodePlex by the ASP.NET team.
[1]: http://www.codeplex.com/aspnet/Wiki/View.aspx?title=WebForms&referringTitle=Home |
Here is the solution
<asp:DropDownList ID="dd1" runat="server" onChange="ondd1ChangeHandler(this)>
</asp:DropDownList>
<asp:DropDownList ID="dd2" runat="server">
</asp:DropDownList>
<cc1:CascadingDropDown ID="cdd2" runat="server" Category="Cat1"
ParentControlID="dd1" PromptText="(Select... |
Best practices for manipulating database result sets in Python? |
|python|database| |
I am writing a simple Python web application that consists of several pages of business data formatted for the iPhone. I'm comfortable programming Python, but I'm not very familiar with Python "idiom," especially regarding classes and objects. Python's object oriented design differs somewhat from other languages I've w... |
Timeslicing is inherent to any round-robin scheduling system in practice, AFAIK.
I disagree with InSciTek Jeff's implication that the following *is* round-robin scheduling:
> That is, each task at the same priority in the round-robin rotation can be allowed to run until they reach a resource blocking condition befo... |