Just turn the Outline view OFF and CPU back to 10-20%... too many classes , methods, properties are killing Outline view in Eclipse PDT. Don't keep it constantly open.
Friday, September 3, 2010
Eclipse PDT 64Bit Windows 7 problem
This was the first thing that I thought is happening - my PDT IDE is working too slow because of incompatibility with my 64bit OS. I was 100% sure... because PDT "ate" ~80-100% of one of my 4 CPUs. I hate these moments thinking that my QuatroCore SUCKS runing java app :( ... Thanks Lord I was wrong.
Wednesday, September 1, 2010
SD Card size must be at least 9MB
If you receive this error when creating new Android Virtual Device (AVD) even though you've input much more than 9MiB into "SD Card size" field... Consider following advice:
Taken from here
Here is some additional detail on what sizes are considered valid or invalid when generating a new AVD (set to MiB): 0-8: invalid 9-2047: valid 2047-4104: invalid 4105-6143: valid 6144-8200: invalid 8201: valid
Taken from here
Ярлыки:
android sdk,
anroid
Installing Android SDK
What a wonderful day is when you start learning new things...
Today was one of those, cuz I've started with Android SDK. Downloaded (for Windows) it and run "SDK Setup.exe", then wanted to create new Virtual Device (AVD) and failed, cuz "Target dropdown" was disabled and New AVD Wizard complains that is should be selected.
I've started googling, got many advices, most of them too complicated to be true for my situation. From the bottom of my "IMHO" I felt that there should be easier way, and so it was.
I've noticed the error I ignored on the first run, something about "Setup was not able to fetch smth via https"...
So the first thing you should do after downloading and running Android SDK (Windows) , go to Settings and check "Force https:// ... sources to be fetched using http:// ...", then go to "Available packages" and Refresh. There should be more options available under main Repository URL... select them and Install.
Now you have some new Targets available on the "Create new Android Virtual Device (AVD)" Wizard window.
GL & HF
Ярлыки:
android sdk,
anroid
Monday, August 16, 2010
Sphinx extended query syntax
One advice I should give is about the syntax of query.
I your text-search involves more than one attribute, then you have two choices to build your query like:
1. Query: @attr1 "*keyword*" | @attr2 "*keyword*" | @attr3 "*keyword*"
2. Query: @(attr1|attr2|attr3) "*keyword*"
Now benchmarking:
1st Query, on 1000 iterations, took 23.2s of pure sphinx time
2nd Query, on 1000 iterations, took 16.2s of pure sphinx time.
Make you conclusions... ;)
PS: I also tried 3rd approach:
I made concatenated attribute, named it @attr1_attr2_attr3 in sphinx's configuration file, and query's format was like:
@attr1_attr2_attr3 "*keyword*"... 1000 iterations of this type of query, took 17.9 seconds... much better than 1st one, but still 2nd is better.
I your text-search involves more than one attribute, then you have two choices to build your query like:
1. Query: @attr1 "*keyword*" | @attr2 "*keyword*" | @attr3 "*keyword*"
2. Query: @(attr1|attr2|attr3) "*keyword*"
Now benchmarking:
1st Query, on 1000 iterations, took 23.2s of pure sphinx time
2nd Query, on 1000 iterations, took 16.2s of pure sphinx time.
Make you conclusions... ;)
PS: I also tried 3rd approach:
I made concatenated attribute, named it @attr1_attr2_attr3 in sphinx's configuration file, and query's format was like:
@attr1_attr2_attr3 "*keyword*"... 1000 iterations of this type of query, took 17.9 seconds... much better than 1st one, but still 2nd is better.
Ярлыки:
sphinx,
sphinx query
Wednesday, August 11, 2010
Bromine first install. Fatal error
I love those tricky moments, when you have to dance with a
Show romanizationtambourine around your pc, to make it work using our galaxy logic etc.
So, the problem: I got following error when first started, freshly unzipped bromine project:
Notice: Trying to get property of non-object in /usr/home/.../www/cake/libs/cache/file.php on line 244
Fatal error: Call to a member function cd() on a non-object in /usr/home/.../www/cake/libs/cache/file.php on line 244
It's under FreeBSD (that should be important moment I guess).
You wanna know how this SHOULD be fixed?
Here is what I've found:
Go to www/app/config/core.php's line stating:
date_default_timezone_set('UTC');
and uncomment it.
Cake engine does not like when this line is commented out and acts unpredictably
Show romanizationtambourine around your pc, to make it work using our galaxy logic etc.So, the problem: I got following error when first started, freshly unzipped bromine project:
Notice: Trying to get property of non-object in /usr/home/.../www/cake/libs/cache/file.php on line 244
Fatal error: Call to a member function cd() on a non-object in /usr/home/.../www/cake/libs/cache/file.php on line 244
It's under FreeBSD (that should be important moment I guess).
You wanna know how this SHOULD be fixed?
Here is what I've found:
Go to www/app/config/core.php's line stating:
date_default_timezone_set('UTC');
and uncomment it.
Cake engine does not like when this line is commented out and acts unpredictably
IE8 dynamically created tables
I had to generate tables and append them to DOM dynamically (on ajax data requests responded).
IE8 acted as a bad-ass teacher to me, cuz I forgot to use tbody tag. So hopefully that helps:
BAD code:
var table = document.createElement("table");
var tr = document.createElement("tr");
table.appendChild(tr);
...
document.appendChild(table);
GOOD code:
var table = document.createElement("table");
var tbody = document.createElement("tbody");
var tr = document.createElement("tr");
tbody.appendChild(tr);
table.appendChild(tbody);
...
document.appendChild(table);
Otherwise IE ignores the content of your table and shows it with zero height and zero width.
I should mention, that IE8's Developer Tools did help me to find that out ;)
Niivisi
IE8 acted as a bad-ass teacher to me, cuz I forgot to use tbody tag. So hopefully that helps:
BAD code:
var table = document.createElement("table");
var tr = document.createElement("tr");
table.appendChild(tr);
...
document.appendChild(table);
GOOD code:
var table = document.createElement("table");
var tbody = document.createElement("tbody");
var tr = document.createElement("tr");
tbody.appendChild(tr);
table.appendChild(tbody);
...
document.appendChild(table);
Otherwise IE ignores the content of your table and shows it with zero height and zero width.
I should mention, that IE8's Developer Tools did help me to find that out ;)
Niivisi
Ярлыки:
IE8 table,
table tbody,
table zero height
HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
When creating dynamically generated pages, you can meet following error in IE browser:
HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
That "KB927917" secret code also comes along with
Line: 0
Character: 0
Source: 0
So now you "know" where to dig to.
So I met one. And it was odd, cuz my JS is runing on Jquery's document.ready event, when everything should be ready:
$(document).ready(function(){
... my js ...
});
But it does not make any sense for IE? No. For FF3, Chrome, etc. does, but not for IE. So what does?
$(document).ready(function(){
setInterval("documentIsReallyReadyNowEvenInIE();",1000);
});
function documentIsReallyReadyNowEvenInIE() {
... my js ...
}
Вот-так-то
HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
That "KB927917" secret code also comes along with
Line: 0
Character: 0
Source: 0
So now you "know" where to dig to.
So I met one. And it was odd, cuz my JS is runing on Jquery's document.ready event, when everything should be ready:
$(document).ready(function(){
... my js ...
});
But it does not make any sense for IE? No. For FF3, Chrome, etc. does, but not for IE. So what does?
$(document).ready(function(){
setInterval("documentIsReallyReadyNowEvenInIE();",1000);
});
function documentIsReallyReadyNowEvenInIE() {
... my js ...
}
Вот-так-то
Ярлыки:
IE,
IE unspecified error,
IE8,
jquery,
KB927917
Subscribe to:
Comments (Atom)