Assembly Guy 72

how can I hide this error!?

You really should use mysqli_ or else one day in the future when you upgrade PHP, your code will just stop working, and you'll have PHP complaining that mysqlconnect() doesn't exist. When functions are deprecated, it is a sign that you must begin migrating to the alternatives. I highly recommend using mysqli as the syntax is pretty much the same as mysql_*.

If you still insist to use mysql_*, then you can tell PHP not to report the use of deprecated functions. Look through /etc/php/php.ini and search for error_reporting. Append & ~E_DEPRECATED to it. For example, my PHP config has:

error_reporting = E_ALL

so I'd end up with

error_reporting = E_ALL & ~E_DEPRECATED

Hope this helps

Assembly Guy 72

I don't use MASM, but from what deceptikon said, you'll need a linker as well as MASM.

Assembly Guy 72

set /p is a set command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested):

set /p "myvar=Enter a value: "
echo You said %myvar%

To answer your second question, check out DosTips.

Assembly Guy 72

Do you mean that Ubuntu set up a tiny partition and is only using that? Maybe post a summary of sudo cfdisk /dev/your-hdd-or-disk-or-whatever. You can extend and shrink partitions fairly safely using gParted, remembering to run it from a disk which isn't the one you're changing.

Assembly Guy 72

Are you sure that there is more than one result being returned?

Assembly Guy 72

That's a statement, what's your question? What have you done so far?

Assembly Guy 72

Looks fine for me, although I'm running Firefox and Chromium on Linux, not Chrome on Win7

Assembly Guy 72

Which errors are you getting?

Assembly Guy 72

If you work at home, then yes you can.

That would be omitting the fact that a lot of clients are driven away by people who aren't suit-wearing, conforming pricks. But four posts up, happygeek dealed with that issue.

Assembly Guy 72

It's valid HTML5.

Okay, that's good to know. Maybe my memory was stuck in the HTML4 days...

Assembly Guy 72

AFAIK, it's not valid HTML, but I'm still in agreement with Mike. It's kinda annoying.

Assembly Guy 72

However, writing an OS looks like work to me.

Fun work, in some people's eyes

Assembly Guy 72

I can't find a list of ranks in endorsements, but you can always see the members ranked by their post count, reputation and solved Q&As here

Assembly Guy 72

As someone else on Daniweb has said, he gives a lot, he gets a lot :)

<M/> commented: Yep... who said that? +0

Assembly Guy 72

They must be so dedicated

Assembly Guy 72

We have no plans currently to support images in signatures.

Thank god. No offence to iLikePHP, but the last thing I want to see are banners on most people's posts, all the way down a thread.

Assembly Guy 72

What's your question? What code do you have so far?

Assembly Guy 72

I get this error:

  File "/tmp/asdf.py", line 6
    print "i am in function func1"
                                 ^
SyntaxError: invalid syntax

You should be getting the same error. What's your Python version?

Assembly Guy 72

@Schol-R-LEA, You're on OSDev too? I had no idea!

Assembly Guy 72

Those comments you mentioned are intended to be put in with HTML, not CSS. I would suggest tracking down why it's not looking the same in IE as other browsers, this would find the root cause, rather than just putting an extra layer of complication into your web pages what with the conditional statements and all.

Assembly Guy 72

According to this, it is fully supported in IE9. Could you please post the line of code you're using it in so we can help you better?

Assembly Guy 72

Right, I see what you mean, but technically, it wouldn't be an OS, hence my confusion.
It's quite a good task for learning Python and becoming familar with Tkinter, in fact it's how I learned much of the VB5 which I have now forgotten :)

Assembly Guy 72

No. Python is a scripting language, which means that it requires an external program to interpret the python source code for it to be executed. To be able to execute Python, you require the Python Interpreter to be installed. This interpreter only runs in an existing operating system, such as Windows or Linux. On top of that, Tkinter requires a window manager to be present. On Windows, the window manager is part of the OS.

This renders it impossible to write an OS directly in python.

ddanbe commented: Yes. +14

Assembly Guy 72

I wonder how it would stack up today.

Yeah, a lot of things you thought were awesome just don't have the same feel in the present.

In relation to Sublime Text, I like the look of the colours on the black background, but like others have said, I'd prefer if it stuck to my Gtk theme.

Assembly Guy 72

Too bad those aren't for the PC.

Someone's bound to have ported to PC. Surely?

Assembly Guy 72

Nice. Does it work? You could probably write a function to print a question, get an answer and say correct or incorrect. You would just have to pass the question and correct answer as pointers.

Assembly Guy 72

Nice going on the PHP, in my opinion (and many others'), it's the best language for generating hypertext.

Assembly Guy 72

I also opted for MinGW back when I used Windows. It's good if you're going to expand into C++ someday.

Assembly Guy 72

Well to make it do another question, you would just use the same process you used to check the first question, except printing a different question. So instead of using msga, you might write another, such as msgb and print that to the screen instead.

Assembly Guy 72

You might want to post the solution in case someone else has the same problem - it's up to you :)