Is there a well-known implementation, that has friendly open-source licensing (not GPL), of an ECC (error correcting code) library (e.g. Reed-Solomon) for Java?
Hi,
Just wondering, would the following code arrangement cause any issues when calling mysql_connect, i.e.:
public function connect() {
mysql_connect($this->host,
$this->username,
$this->password)
or die("Could not connect. " . mysql_error());
or does it need to be all on one line, i.e.:
mysql_connect($this->host,$this->username,$this->password) or die("Could not connect. " . mysql_error());
Thanks.
Hello, is there any easy way to port Lua code to C#?
The biggest problem would probably be to port tables neatly in some dictionaries.
And to prevent any misunderstanding: no I cannot use embedded Lua in my program.
hello
I was wondering how to assign a style via code in adroid.
suppose I have a TextView created with the following snippet:
TextView myText = new TextView(this);
how do I assign the class xxx so that myText will be styled like an hard coded TextView like this:
<TextView style="@style/xxx" />
thanks
While, compiling a package, written in C++ on RHEL 5.0. I am getting the following error.
error: nocreate is not a member of std::ios
The source-code corresponds to:
ifstream tempStr(argv[4],ios::in|ios::nocreate);
I have tried
#g++ -O -Wno-deprecated <file.cpp> -o <file>
as well as:
#g++ -O -o <file>
Please suggest a solution.
I wish to 'engineer' the google wave and try it for my blog/website ? Is it possible to tinker with the source code of Google Wave ? Where is it available ?
Hello all,
I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on favourite an item (a 5 star rating system).
It looks like it is making an AJAX request but I can not see this from my Firebug to debug this - why is this the case?
More importantly what does the error code 0 mean?
Thank you all for any help
can one map all the application's objects to a UML map (maybe parsing through the code base) so one can have the objects visualized and see all the relations and the design patterns used?
I'm working on a data mining research project and use code from a big svn.
Apparently one of the methods I use from that svn uses randomness somewhere without asking for a seed, which makes 2 calls to my program return different results. That's annoying for what I want to do, so I'm trying to locate that "uncontrolled" randomness.
Since the classes I use depend on many other, that's pretty painful to do by hand. Any idea how I could find where that randomness comes from ?
I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
function checkLength(obj,url){
//alert("URL="+url+" OBJ="+obj);
if(obj) {
var params = 'query='+obj;
var myAjax = new Ajax.Request(url, {
method: 'post', parameters: params, onComplete: loadResponse
});
}
}
The code isn't working, but I don't know why. I think I need to include other files, but I don't know which
I have been struggling in fixing this code, wonder what is wrong at all...
var tips = "<p class="adobe-reader-download">Most computers will open PDF documents automatically, but you may need to download <a title='Link to Adobe website-opens in a new window'";
tips +=" href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'>Adobe Reader</a>.</p>";
if($("div#maincontent a[href*='.pdf']").length>0){
$("div#maincontent").children(":last-child").after(tip);
SELECT *
(
SELECT *
FROM `table1`
WHERE `id` NOT IN (
SELECT `id` FROM `table2`
WHERE `col4` = 5
)
group by `col2` having sum(`col3`) > 0
UNION
SELECT *
FROM `table1`
WHERE `id` NOT IN (
SELECT `id` FROM `table2`
WHERE `col4` = 5
)
group by `col2` having sum(`col3`) = 0
) t1;
For readability and performance reasons, I think this code could be refactored. But how?
Hi
this is my code which will not work correctly ! what is wrong with its data type :( thanks
CREATE TABLE T1 (A INTEGER NOT NULL);
CREATE TABLE T3 (A SMALLINT NOT NULL);
INSERT T1 VALUES (32768.5);
SELECT * FROM T1;
INSERT T3 SELECT * FROM T1;
SELECT * FROM T3;
done some html code updates on my company's asp.net website and the above error appears.
i dont have a line 474 on the errored file.
this error only on IE, and not FF.
anybody?
I am trying to create a landscape and portrait mode only for tablets. For portrait mode I added the files under layout-xlarge and for landscape in tablets I added files under layout-xlarge-land, but just to test if its working I tried switching the background color under landscape to green, but it didnt seem to work. Is there anything else I need to alter for code to recognize landscape mode for tablets?
Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location.
(This is similar to http://stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.)
Related question: http://stackoverflow.com/questions/158557/get-street-address-at-latlong-pair
What is the correct way of knowing operating system language (locale) from java code?
I have tried
Locale.getDefault()
System.getProperties("user.language")
etc.
but they are not correct nothing actually displays the "System Locale" which is available by the command "systeminfo" in windows.
Please help.
We are trying to install:
http://www.activecampaign.com/activespell/
But are getting this JS error:
[CPAINT Error] invalid HTTP response code '404'
It seems the ajax is unable to access something, but not sure what or why, anyone experienced this problem before?
I'm a bit perplexed by some code I'm currently writing. I am trying to preform a specific gradient descent (main loop included below) and depending on the initial conditions I will alternatively get good looking results (perhaps 20% of the time) or everything becomes NaN (the other 80% of the time). However it seems to me that none of the operations in my code could produce NaN's when given honest numbers!
My main loop is:
// calculate errors
delta = m1 + m2 - M;
eta = f1 + f2 - F;
for (int i = 0; i < numChildren; i++) {
epsilon[i] = p[i]*m1+(1-p[i])*m2+q[i]*f1+(1-q[i])*f2-C[i];
}
// use errors in gradient descent
// set aside differences for the p's and q's
float mDiff = m1 - m2;
float fDiff = f1 - f2;
// first update m's and f's
m1 -= rate*delta;
m2 -= rate*delta;
f1 -= rate*eta;
f2 -= rate*eta;
for (int i = 0; i < numChildren; i++) {
m1 -= rate*epsilon[i]*p[i];
m2 -= rate*epsilon[i]*(1-p[i]);
f1 -= rate*epsilon[i]*q[i];
f2 -= rate*epsilon[i]*(1-q[i]);
}
// now update the p's and q's
for (int i = 0; i < numChildren; i++) {
p[i] -= rate*epsilon[i]*mDiff;
q[i] -= rate*epsilon[i]*fDiff;
}
This behavior can be seen when we have
rate = 0.01;
M = 30;
F = 30;
C = {15, 25, 35, 45};
with the p[i] and q[i] chosen randomly uniformly between 0 and 1, m1 and m2 chosen randomly uniformly to add to M, and f1 and f2 chosen randomly uniformly to add up to F.
Does anyone see anything that could create these NaN's?