I'm curious if anyone has done any performance comparisons with any or all of the main players in the .NET ORM space. Specifically I'm interested in comparisons between the following:
Linq to SQL
NHibernate
LLBL Gen
Entity Framework
Though it seems people don't really consider Linq to SQL a true ORM, I am still including it in this list. Some performance metrics would be nice to see.
When creating a Singleton in PHP, I ensure that it cannot be instantiated by doing the following:
class Singleton {
private function __construct() {}
private function __clone() {}
public static function getInstance() {}
}
However, I realised that defining a class as 'abstract' means that it cannot be instantiated. So is there anything wrong with doing the following instead:
abstract class Singleton {
public static function getInstance() {}
}
The second scenario allows me to write fewer lines of code which would be nice. (Not that it actually makes much of a difference.)
I'm doing infrequent development with Apache/PHP on my Windows machine so I've opted to run apache as a console process instead of a service. It would be nice if errors could be logged to the console window instead of a logfile so I can see them immediately. Can this be done somehow? It doesn't seem that apache has such a capability built in and I can't find a mod that would do this either.
Is there a CSS library which mimics the iPhone grouped UITableView?
I want to build a nice looking table which looks exactly like the grouped UITableView. As there are multiple text styles within the each line of text, and I don't need any interactivity except scrolling, it seems it would be easier to build with HTML and display it in a UIWebView. Is there a css library which matches this need?
How can I get "git add -i" to start up in patch mode directly without having to type "5" + Enter?
I know about "git add -p", but it's not the same as it doesn't show me a list of files to select from first.
This is very annoying because I'd like to jump between "git add -i" and "git commit" very quickly to turn my dirty tree into some nice looking commits.
Hi,
I have a string "hello [world] this {is} a (test)" I want to remove all text in braces, e.g. returning "hello this a". But only if the braces match.
Anyone have a nice neat solution?
Sure you could divide the remaining file size by the current download speed, but if your download speed fluctuates (and it will), this doesn't produce a very nice result. What's a better algorithm for producing smoother countdowns?
Is there any functionality in IDL that will allow it to evaluate a a string as code?
Or, failing that, is there a nice, dynamic way of including /KEYWORD in functions? For example, if I wanted to ask them for what type of map projection the user wants, is there a way to do it nicely, without large if/case statements for the /Projection_Type keyword it needs?
With even a small number of user options, the combinations would cause if/case statements to get out of hand very quickly to handle all the possible options.
I had some very strange problems with GraphicsGrid.
The individual PraphPlot:s looks nice and ok, but the code
GraphicsGrid[{{GraphPlot[{{a -> b, "ab"}, {a -> c,
"7"}}]}, {GraphPlot[{{a -> b, "5"}, {a -> c, "2"}}]}}]
just produces 2 big clots of garbage. If I remove the edge labels, everything works as expected. I am using Mathematica 7.0.0.
How can I get a nice list of files in a directory tree
that contains multiple OLD Files,
I d'like to see only files from directories named OLD that have a certain age.
In tprevious versions of Virtual PC, the Host's CD/DVD drives just get assigned drive letters. Nice and neat.
But in Windows Virtual PC (Win 7) the drives are all just available but without drive letters. I need to access the Host's CD drive using a drive letter.
ie6 isn't playing nice with my jquery snippet, why is this throwing a syntax error in IE6
if(typeof isIE6 !="undefined"){
$("#dropdown-list li").hover(
function(){ $(this).addClass("hover"); },
function(){ $(this).removeClass("hover"); },
);
};
Hi, is it possible to transfer a object from one application to another (in C#)?
I'm working with a CAD API. The initialization of that API takes a few seconds (10 - 15). Would be nice if I could initialize the object only once in App1 and call it up from App2 whenever I need it.
Any ideas? Thanks!
In my MySQL database, I have a float field named "HoursSpent" with values like "0.25", "1.75", "2.5", etc. Is there a way that I can have my SELECT statement format those values in a friendly format like this?:
0.25 = 15 minutes
1.75 = 1 hour and 45 minutes
2.5 = 2 hours and 30 minutes
The "HoursSpent" field is supposed to only have values in 0.25 increments, but if somebody were to put something random like 0.16, it would be nice if the SELECT statement handled that by rounding it up to the nearest 0.25 (so in this case 0.16 would become 0.25, or 15 minutes).
Hi, I'm using htaccess rewrite engine to make urls look nice,
from www.mysite.com/index.php?pag=home to www.mysite.com/pag/home
it works fine with this rule
RewriteRule ^pag/([^/]+)$ index.php?pag=$1 [L,QSA,NC]
but when I go to www.mysite.com it redirects me to www.mysite.com/index.php
is there a way to redirect to www.mysite.com/pag/home?
I tried
redirect 301 /index.php http://www.mysite.com/pag/home
but when i try to go to www.mysite.com the browser gives my "page do not exsist error"
I want to streamline my library on FreeBsd using PUID from MusicBrainz. I need a command line utility for this, but I have not been able to find. It would be nice to give input mp3-file and receive PUID as result.
i had very nice dev. env. - clojure, maven and jetty with hot deploy. now i moved to google appengine and i can not figure out how to configure maven achieve hot deploy
I've got a parser written using ruby's standard StringScanner. It would be nice if I could use it on streaming files. Is there an equivalent to StringScanner that doesn't require me to load the whole string into memory?
It turns out our slaves spend a considerable amount of time moving the archived artifacts back to the master Hudson node. It at least triples the duration of the build. It would be nice if there would be a way to prevent it. However, setting the maximum number of builds to keep doesn't have an influence at all. Is there another way to prevent sending the results back to the central Hudson master?
Preferably with visual illustrations... MSDN just lists class-names and what I really want to see is which versions of MFC have nice modern functionality like dockable toobars, collapsible windows, and other graphical niceties.
Does such a 'visual catalog' exist? From MSDN it's not always clear even what each class does without a pretty picture.
I am just wondering if you are supposed to write a sort of really secure application with data being transmitted over insecure networks, what kind of encryption algorithm will you use it in order to make it safe ? I know several c++ libraries for encryption providing nice functions with different algorithms, but i'm not quite sure which cipher to use - AES, DES, RSA, Blowfish or maybe something more different ?
Please provide your ideas and suggestions. Thank you.
Hello,
I tried Google Guice the first time and find it very nice.
But, when I reached the part of Built-in Bindings I do not understand the examples.
For me it looks like I can use it for logging like an interceptor, but I don't know how.
Could someone of you explain this type of Binding and how I can use it? And maybe (if it's possible) use it for logging?
Hi there!
I've been messing around with VS2010 beta 2 (ultimate) on windows7 and already I have a nasty problem - when I try to run devenv it's only shows me very-nice-beta2 splash screen and cpu usage of devenv process run to sky.
If thats can help - on machine i have already vs2008 installed.