I'm using this example code to grayscale an image,but the result is not right:
I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
imshow(BW)
Where to see how graythresh is actually implemented?
BTW,is there a reason for using matlab feels so alike with python?
Or is it known that graythresh doesn't work well for images with little spatial resolution(like 62*21 ones)?
From wiki: In computing, just-in-time compilation (JIT), also known as dynamic translation, is a technique for improving the runtime performance of a computer program.
So I guess JVM has another compiler, not javac, that only compiles bytecode to machine code at runtime, while javac compiles sources to bytecode,is that right?
Hi, looking at a database dump file, and I see many records in various tables with their version number set in values other than 0 (even 94 in one case). I understand it has to do with hibernate locking strategy, but my concern is that today is Sunday, and the site has almost no visitors so is: is this normal ? Or is there a known hibernate bug or even some programming malpractice producing this ?
Thanks in advance.
I'm trying to clone a local git repository.
The repository's name contains a `:'. This is confusing both me and git. I get the following error:
~/work/c% git clone ../a::b .
Initialized empty Git repository in /home/user/work/c/.git/
ssh: Could not resolve hostname ../a: Name or service not known
fatal: The remote end hung up unexpectedly
How would you escape the `:'? For now I'm just changing the name of the original repository :-)
I'm using zshell...
Hi,
I have published a small website and I'm using an excel file as a database. The problem is that the excel file could be easily downloaded if its path is known !
(e.g. www.mysite.com/myexcel.xls - opens a "save as" window)
What can I do, to protect my data.
Kind regards.
Hi,
I have been looking for a JSF extension (Richfaces, IceFaces, and more) but all seem to be according to JSF1.x and ones for JSF2.0 are still alpha or in development and most of the documentation assumes you're using JSF1.2.
Is there any production well known extension available?
Hi
i'm developing a small prototype of a desktop application using Qt and Python because i would like to distribute it in a multiplatform way.
A friend of mine is annoying me on messenger because he claims that there are not known cool mainstream desktop apps developed with Qt and python technologies so, what i am doing, is just an exercise without future.
Do you know any cool apps developed in python+Qt?
thanks
How do I get intellisense to pop up while I am coding? I know it pops up when I start typing a known type e.g.:
if I type NSS it will finish it for me NSString.
How do I get it to give me a bunch of options like in Visual Studio e.g.:
if I type NS I want to see what my options are like NSString, NSInteger etc?
And if I have not typed anything I still want a bunch of options like all the instance variables etc.
It seems Zend Gdata doesn't provide a way to interface with the PUT API for Google Docs.
I'd like to clear a document with a known id and update its contents.
Should I authenticate with Zend's Gdata and use an HTTP PUT request? How?
One thing I have in mind is, that datasets in Core Data (or lets say: managed objects) have no ID like known from other databases such as MySQL. Also, they're not in a specific guaranteed order.
What else makes Core Data much more "special" compared to working with a relational database like MySQL? Besides the whole object graph persisting and ORM stuff?
I've got quite a few SQL statements like such:
SELECT foo FROM things WHERE user_id IN (1,2,3..n)
Is there a known limit to the number of elements that will safely fit in an IN clause like that?
Non Stop systems are known for their high availability and reliability, and higher price. How do Linux or Unix based clusters compare with them, in these respects and others?
git revision syntax is really powerful, but I can't find how to simplify things like:
git diff 1a2e^..1a2e
without writing tree'sh1 twice?
Is there now "NEXT" syntax, something like:
git diff 1a2e^..NEXT
OR
git changeset 1a2e
??
Another "next" syntax which might be useful if 1a2e is a known revision:
git cherry-pick 1a2e+NEXT..origin/featureBranch
^^ "cherry pick anything from 1a2e to master EXCEPT 1a2e itself"
Hi!
Is there any lightweight validation library available for PHP that easily can check if a specific string or value is valid for a known database type -
Something like this:
if (is_MEDIUMINT($var)) {
$this->db->insert($anothervar);
}
Thanks!
using : ksh
*abc = 1
efg = 2
hgd = 3 not known to me *
say if i have
Value="abc efg hgd"
abc efg hgd all contains some value which i dnt know.
Now I want to grep the value contained inside abc.
like
for i in $Value
do
grep "echo $(($((echo $i | cut -d'|' -f2))))"
done
this grep should look for the value inside abc efg hgd
grep 1
grep 2
grep 3
I am using libxml2 to parse xml content in my iPhone app. The xml content is downloaded from a server similar to the Apple's own TopSongs sample app. When I check for leaks using the Instruments tool, I see memory leaks being reported on xmlNewParserCtxt, xmlNewInputStream and xmlAllocParserInputBuffer. I have called xmlFreeParserCtxt(context) at applicable places (dealloc).
Am I missing something else ? Is this a known issue to contend with when using libxml2 parsers ?
Hi,
I would like to set the selected value to a known value. However, after InititializeComponent() has been called, the data is not yet filled in a databound Combobox so I can't set my selected value there.
Which event is triggered when the data has finished to be added in the combobox from the databound object ? Is there any other way you would suggest handling this ?
Many thanks
Hello,
I created a .NET 2.0 application on Windows 7.
When I tried to run the .exe on my Windows XP machine [SP3 as well as SP2], it doesn't start up. It shows me a message that Windows has encountered a problem....send error report...
Any known issues?
Thanks for help!
I am using the .eq() method to select a specific child element of a known element. It appears that the element indices are different in IE and in Chrome/FF, as .eq(2) returns different values depending on browser. (The element I'm looking for shows up as .eq(2) in FF/Chrome, but .eq(3) in IE)
For example,
alert($(this).parent().children().eq(2).text());
shows different results depending on the browser.
Is there a better way of doing this?
I have a list of search terms:
A | B | C | D | E |
_______________________________________________________________
1 | SEARCH TERM PR #1 PR #2 PR #3 PR #4
2 | lcd screens
3 | mud
4 | eurpoean sport cars
5 | perfume
How can the search term in my spreadsheet fetch the Google PageRank of the top five domain/page results for each term?
I've seen similar "pagerank fetching" questions here, but those are based on known domains. In my scenario, the domain is unknown until results are fetched based on a search term.
Suppose I typedef an integer or integer array or any known type:
typedef int int2
Then I overload operator * for int2 pairs, now if I initialize variables a and b as int. Then will my * between a and b be the overloaded * ?
How do I achieve overloading an int and yet also use * for int the way they are. Should I create a new type?
i have known that winpcap library enabled a person to obtain advanced information about installed devices...
given all the networking devices found in the computer, how will i know which one of this has an internet connection?!
thanks:)
Its a well known fact that static method can work only on static members.
public static void Main()
{
Test t1 = new Test();
}
Here Main method is static, but I hav'nt declared t1 as static. Is it implicitly static.
am doing one project using vb6.0+access+crystal report8.5
some error occur during the crystal report.
Query Name
seqquery:
SELECT segment_trans.division_name, sum(segment_trans.Total_value) AS total, division_master.Target
FROM segment_trans, division_master
GROUP BY segment_trans.division_name, division_master.Target;
crystal report percentage formula:
{(seqquery.total * 100) / seqquery.Target }
Error: This field name is not known.
note: Total_value and Target field's datatype "Text"
how to solve this ?
please help me.
Thanks
Sathik