Removing
-Dorg.eclipse.swt.internal.carbon.smallFonts
from eclipse.ini and changing the font to menlo seems to improve the situation a bit. However the font is still a bit unsharp, compared to Xcode.
I don't see why they ship it like that or do they just don't care about the mac version?
Hi I just deployed onto spring project. I don't even know a little about spring framework. I just want learn Spring framework with a guidance of a best book. Can you please suggest me the books that should cover version 3.0.
what's the difference between
var div = document.createElement('div');//output -> [object HTMLDivElement]
document.getElementById('container').appendChild(div);
and
var div = '<div></div>';
document.getElementById('container').appendChild(div);//output -> <div></div>
shouldn't both be the same? and if not, how do i get the 2nd version to work?
Hi
I am trying to compare the performance of Single and Multithreaded Java programs. Are there any single thread benchmarks which are available which I could then use and convert to their multithreaded version and compare the performance. Could anybody guide me as to what kind of programs(not very small) are suitable for this empirical comparison.
Thanks in advance
I just found two piece of code
#if CONSOLE // defined by the console version using
ournamespace.FactoryInitializer;
#endif
and
#if _NET_1_1
log4net.Config.DOMConfigurator.ConfigureAndWatch(new System.IO.FileInfo(s) );
#else
log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(s) );
#endif
Can any one please tell me with a running sample( please provide a simple one) what is the significance of those code snippets and when and how to use those?
Thanks.
hi, i have a few programs that check if file exist, and if its old version delete him and paste the new one. However under Windows 7 Professional i can't delete the file some System process is always restoring it (same with the dll files) and as you can imagine a lot of programs are crashing because of that behaviour. So WHAT SERVICE/PROCESS can lock/recreate/restore files? I have disabled System Recovery.
Hey, take this as a challange, my informatics professor made it in less than 10 rows, it work perfectly and its very efficient. I'd like to "surprise" him giving a better/shorted version of it. Ofcourse i wouldn't take the credits, hah, u can trust in me.
It's a simple anagras finder! If you can.. write it in c++! thanks!
A friend wrote a query with the following condition:
AND ( SELECT count(1) FROM users_alerts_status uas
WHERE uas.alert_id = context_alert.alert_id
AND uas.user_id = 18309
AND uas.status = 'read' ) = 0
Seeing this, I suggested we change it to:
AND NOT EXISTS ( SELECT 1 FROM users_alerts_status uas
WHERE uas.alert_id = context_alert.alert_id
AND uas.user_id = 18309
AND uas.status = 'read' )
But in testing, the first version of the query is consistently between 20 and 30ms faster (we tested after restarting the server). Conceptually, what am I missing?
We just upgraded from MonoRails 1 to MonoRails 2.0, and want to use the CombineJS as seen here:
http://erichauser.net/2009/01/27/javascript-compression-for-monorail/
In Firebug Net, it loads as
http://www.domain.com/MonoRail/Files/BuiltJS.rails?name=deflayout&version=8204059377542922030
But it has must-revalidate in the cache-control:
Cache-Control public, must-revalidate, max-age=259200
How can I get rid of that?
Thanks in advance! :)
I'm basically looking for a C++ version of fdopen(). I did a bit of research on this and it is one of those things that seems like it should be easy, but turns out to be very complicated. Am I missing something in this belief (i.e. it really is easy)? If not, is there a good library out there somewhere to handle this?
I was trying to add a method to the String class. This method should mutate the current string (of course it would be possible to write a not mutating version but I'd prefer the mutating one). I had no idea how to do this and after some googling I found the method rb_str_modify which makes a given string mutable. That's exactly what I need but I couldn't find an equivalent in the Ruby language. Did I miss something or is there really no possibility in the language itself?
Is there any way to fit in 1 line using the pipes the following:
output of
sha1sum $(xpi) | grep -Eow '^[^ ]+'
goes instead of 456
sed 's/@version@/456/' input.txt > output.txt
I am using jQuery version of TinyMce with enabled template plugin. Is there a way to apply a template automatically without having to click on template button and choosing one.
Thanks.
I just downloaded and put an captcha test to my website. It's a free version and it does seem to do the job right. Is there any major difference between a free one and a professional one?
Is there a recommended one I should use? That's free :)
Is there any way that i can access the email accounts that are saved
in the default email client of android.
Basically i want to access the inbox and display their mails without
asking for username and password.
Does AccountManager class thats available in android version 2 answer
my query? and if yes then is there any alternative for v1.5 or v1.6.
In VS6 times there was BoundsChecker from Numega. I understand it is dead now, please correct me if I am wrong. What are the reliable alternatives? Preferably free or at least with trial version available.
Hi,
if i filter an array with array_filter to eliminate null values, keys are preserved and this generated "holes" in the array. Eg:
The filtered version of
[0] => 'foo'
[1] => null
[2] => 'bar'
is
[0] => 'foo'
[2] => 'bar'
How can i get, instead
[0] => 'foo'
[1] => 'bar'
? Thanks
I just wanted to develop a translation app in a Django projects which enables registered users with certain permissions to translate every single message it appears in latest version.
My question is, what character set should I use for database tables in this translation app? Looks like some european language characters cannot be stored in UTF-8?
What are Ruby variables preceded with double at signs (@@)? My understanding of a variable preceded with an at sign is that it is an instance variable, like this in PHP:
PHP version
class Person {
public $name;
public function setName($name) {
$this->name = $name;
}
public function getName() {
return $this->name;
}
}
Ruby equivalent
class Person
def set_name(name)
@name = name
end
def get_name()
@name
end
end
What does the double at sign @@ mean, and how does it differ from a single at sign?
Hi,
I'm having a bit of a strange problem with an application using the Files.probeContentType(path)-method to test for file type: On both my Ubuntu and Fedora systems, it works fine, but when moved to a RedHat Enterprise server (2.6.18-194.el5 #1 x86_64 x86_64 x86_64 GNU/Linux), it only returns null. I'm using java 7 early access (1.7.0-ea-b84). I have to use this version due to functionality that isn't included in 1.6.
Does anyone have an idea of what might be the problem here?