|
|
I have been using OpenSUSE as my Desktop-OS for quite some time, as a replacement for Windows. It was the only distro that correctly recognized all hardware. Quite simple to install, got Wine and Mono on there.
Lot's of configuration options in the UI, but most examples on the internet will use the shell to change those.
Bastard Programmer from Hell
|
|
|
|
|
An important question to ask is: is your hardware supported by the Linux you want to use? And typically you'll find that out only by installing that Linux on your computer...
Of course, you can use a boot manager and share a data partition. But at some installation a Linux might report a problem when updating the boot manager ("write protected")...
Eventually I installed Windows, getting rid of those problems.
|
|
|
|
|
Bernhard Hiller wrote: some installation a Linux might report a problem when updating the boot manager ("write protected")
Never encountered a one of this kind... I have used RedHat, Ubuntu, Live Mint, Fedora, Debian and couple of others till date...
|
|
|
|
|
I do not remember which one it was with the write protected error. The different distros used different versions of the boot manager and were not able to update it correctly in all cases - I had to manually edit afterwards several times.
I tested Ubuntu 10 and 11, OpenSuse, Suse Server, Suse Desktop, and CentOS; all 64 bit.
|
|
|
|
|
Can't create table '.\userdb\od.frm' (errno: 150).
Getting this error while creating following table in mysql...
create table od(no. int,foreign key(no.) references emp(empno));
|
|
|
|
|
"no." is a strange column name - I never use dots or commas in a column name. Try "no" or "number" instead.
By the way, does your MySQL user have the right to create tables?
|
|
|
|
|
This is a foreign key error caused by the use of "." in your column identifyers. If you use capital letter format, for example: "ItemNumber" or underscores ("item_number") instead and you should be able to execute. Good luck
|
|
|
|
|
I have a button in my form and on click of that button I am writing this code....
<pre>
OdbcCommand cmd ;
cmd = new OdbcCommand("abc", cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error..
ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'abc()' at line 1.
So plz tell me what should be the problem.
|
|
|
|
|
Can you show us the procedure that you have written?
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Sir I have corrected that...thanks...
|
|
|
|
|
Hi,
$arr = array(5=>dog, 3=>cat, 6=>cow)
How can you delete say 2nd element from an array without using unset or any inbuilt php functions?
cheers
|
|
|
|
|
Why would you not want to use an inbuilt function?
I guess you could copy the array element by element, skipping the one you don't want. Or are you not allowed to use loops either?
|
|
|
|
|
If you really want to do that, move each item into a new array without the one you want to remove from the original.
If you've never failed... You've never lived...
|
|
|
|
|
|
You will do a lot better by asking in the Joomla forum[^]. There's too much learning involved for most of us here - over there they have already climbed that mountain.
Good hunting,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thank you for your answer!
I've been struggling with this problem for a couple of days now and the joomla communitues shine with their absence when it comes to questions deeper than "name an extension that does this".
In my mind there's something wrong with the logic somewhere since so I was hoping that a higher skilled programmer might been able to see something despite the "joomla syntax"...
Thanks.
// Alekks
|
|
|
|
|
I've had no experience with Joomla, but I have done some simple paddling around in Drupal. I guess I was 'arguing by analogy' in that the Drupal forum is pretty good for people who know how to frame a question (as you do).
Cheers,
Peter
[edit]fixed typos[/edit]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Hi,
i am creating a user register class using pdo prepared statements etc. But it looks like, something is going wrong in my following code.
I am getting error on the following code in bold -
public function isUsernameTaken($username)
{
$st = $this->getPdo()->prepare("select count(*) as cnt from ".
$this->getDbUserTable()." where username=?");
$row = $st->execute(array($username))->fetch();
if($row['cnt']==0)
{
return false;
}
return true;
}
the error is - Call to a member function fetch() on a non-object
Any idea about the error?
Thanks
modified 10-May-12 10:30am.
|
|
|
|
|
According to my reading of the PHP manual, $st->execute() will return a bool , indicating success/fail of the SQL call. If it succeeded, you can then call $st->fetch() to get the results.
Simple, really.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
|
How do I restart or shutdown the machine on the same network or access the files in other machines(Computers)?
|
|
|
|
|
Many ways, but it depends on the machines, what OS they are running what type of network connections they have, etc., etc. Try a more explicit question.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
If you have SSH set up, all that is easy... just SSH into the machine you want to control and you can use regular command line commands to restart/shutdown. The alternative to SSH would be to have some sort of remote viewer like VNC, although VNC is not really as flexible as SSH (but it does allow you to view things with a GUI).
To access files, you'll need something like FTP or a Samba share.
|
|
|
|
|