Stefano Mtangoo 455 Senior Poster

Hi All,
I'm using XAMMP server in USB stick and have Web project in this structure:
F:\xampplite\htdocs\projects\Elijah

So my current working DIR is elijah. However, I don't want to write the long path "../projects/elijah/elijah.css" when linking css file or using images. I would like to use something like a function that will retrieve current working directory so that path will be
"The_function_to_get_DIR/elijah.css" I want the root to be seen virtually as elijah

Thanks for your help, and I'm ready to clarify wherever there's ambiguity :)

Stefano Mtangoo 455 Senior Poster

That is a good lecture guys!
Thanks alot

Stefano Mtangoo 455 Senior Poster

I think I should check Motherboard for dry joints, what do you guys suggest?

Stefano Mtangoo 455 Senior Poster

Hi All,
Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand:

---- If I divide index.php using table, how do I make other pages? Should them be full XHTML starting or just simple <div> ----

Thanks for your valuable reply

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Ok, I think you have to do Little trick here. Here is how I would go in such case:
1. I will take list of all files in scr directory
2. I will iterate in the list, moving each file to dst until I finish

I guess you know the right module and looping to do the job! :)

Stefano Mtangoo 455 Senior Poster

If Nothing is equivalent to NULL, why not use ctypes and get it? BTW I left VB long ago at early learning stage because I wasn't able to buy the VB 6 bundle, so I don't remember it!

Stefano Mtangoo 455 Senior Poster

What is wrong with you? You never had that question before in your life? Just help the little guy.

+1
We should help people, even how to ask question. If somebody fails to ask, help him to ask :)

I would recommend dev c++ from http://www.bloodshed.net/ because it both works in a local machine and in a portable drive or flash drive, so you can work whenever you are.

I right now use Code::Blocks portable in my USB stick

I heard code::blocks has some bugs in the libraries in windows version...

Not sure, but It have not thrown me out of sea. So I encourage people to use it. I have also Devshed, but Codeblocks Looks good to me! :D

Stefano Mtangoo 455 Senior Poster

In python, the interpreter will only be meek if you define a variable before you use it. It seems you try to use the variable before defining it. This is where the py Interpreter becomes harsh!

Stefano Mtangoo 455 Senior Poster

where is the code?
I cannot guess what you have written unless you post it

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

It was as easy as this :)
Don't worry, this is what python is :D

import shutil
src = "C:\\steve_test\\Test_xp\\added"
dst = "C:\\steve_test\\Test_xp\\moved"
shutil.move(src, dst)
Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

So any suggestion!

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Thanks alot I will pass through :)

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

for Ubuntu specific issues, you can try their forum here:
www.ubuntuforums.org

Stefano Mtangoo 455 Senior Poster

I have been learning PHP for sometimes and it is interesting.
Can anyone point me to good PHP/MySQL tutorials for newbie :)

So far I have been playing with simple PHP scripts like Forms etc.

Thanks all

Stefano Mtangoo 455 Senior Poster

Ok It sometimes Gets on and I get into XP and after sometime, it gets on but displays nothing :(

I suspect CMOS battery to be exhausted. What are symptoms of exhausted CMOS battery? Can it be the cause? :$

Stefano Mtangoo 455 Senior Poster

Mhh I don't know, May be I will have to do something later
I have to rest for now!

Stefano Mtangoo 455 Senior Poster

No Black POST window nothing happens at all. Just little LED that shows computer is on! I wonder what is wrong with the Laptop :(

Stefano Mtangoo 455 Senior Poster

IBM Thinkpad Machine cannot start. Once it started and displayed Warning that desktop was recovered and then it hanged. Now it cannot start completely. I wonder what would be wrong. I remove RAM and HDD and nothing happens. I returns everything in place, yet nothing :(

The friend reported that, the crash was due to game, and I thought may be the fan wasn't working properly but it does. I have checked anything I can think of, but nay, I hit the wall. Any suggestion?? :(

Stefano Mtangoo 455 Senior Poster

Thanks

Stefano Mtangoo 455 Senior Poster
#include <iostream>

using namespace std;

class Math{
    int Addition(int a, int b)
        {
            int r = a+b;
            return (r);
            }

    int substract(int a, int b)
        {
            int r = a-b;
            return(r);
            }
    };


int main()
{
    Math Steve;
    int z ;
    z = Steve.Addition(1, 9);
    cout<<"Good! Answer is"<< z<<endl;
    return 0;
}
Stefano Mtangoo 455 Senior Poster

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong.

Can anyone clarify how to rectify this? Also, could you explain to this New Bee how to make honey of CLASSES' using keyword PRIVATE and PUBLIC? (Make function visible yet the Local variables to function invisible)

thanks alot

Stefano Mtangoo 455 Senior Poster

Thanks

Stefano Mtangoo 455 Senior Poster

I'll test

Stefano Mtangoo 455 Senior Poster

Seems BIOS doesn't detect it!
Two option:
1. Upgrade your bios (Be careful to follow instructions as it is dangerous)
2. Use boot Disk to do the Job
http://bootdisk.com/

Stefano Mtangoo 455 Senior Poster

what does that do?

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

I have Dictionary that I update time after time and the dictionary result get inserted to the wxListCtrl in report mode. The problem comes when I insert new data. It seems that the unicode character (u') is also get inserted as part of data. Is there any way to strip it out?

I wanted to doit with .strip("u") but I'm afraid it will strip all U's in my data. Is there a way out

Thanks all

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Ok I thought Here is a place I will get quick answers. For Now I was doing another task and was curious if it have got it!

If when I finish this nobody responds I will do a googling by myself

Thanks!

Stefano Mtangoo 455 Senior Poster

After looking the image file, it looks like ownership problem. Try to copy that file into another Location and try to double click and see

Stefano Mtangoo 455 Senior Poster

Check default program setting on Ctrl panel.
Then select VLC and set it to all files it is supposed to open.

Stefano Mtangoo 455 Senior Poster

Simple Question, Does HP Presario C700 have bluetooth? :)

Stefano Mtangoo 455 Senior Poster

Go to python installation, and find the uninstaller (Or just run installer) and there should be repair option

Stefano Mtangoo 455 Senior Poster

Just put the code or exe and we will
Personally I can do only in spare time

Stefano Mtangoo 455 Senior Poster

Thank alot I will try. I didn't think it was just as easy as consulting my best friend F1

Stefano Mtangoo 455 Senior Poster

Personally i never use GUI builders, i just code from scratch, it leaves you learning a lot more about the code and how it works and stuff like that, so in my opinion its best to just learn how to write the code

+1

Also makes you know what you are doing easily!
Maintenance is easy :)

Stefano Mtangoo 455 Senior Poster

(I have installed both MSDN and VC++ 2008 Edition
How do I access MSDN?

Thanks all

Stefano Mtangoo 455 Senior Poster

do you mean you want to print what you get to to the printer?
If so, then check report Lab http://www.reportlab.org/

Stefano Mtangoo 455 Senior Poster

Hello Scru,
I can say it is good project but prepare for tough-time-taking task.
Here are my three suggestions:
1. Make New toolkit -- Create Python classes that interfaces Win32 API with python. i.e. wrap functions from win32 api with pythonic type

2. Join wxpython Dev team and extend it where it lacks, create new widgets...etc
3. Create another win 32 module for python that will be more eay and well documented.

Don't be afraid to start, because once you start and progress one step, people will join you!

Not expert in Big project though :)

Stefano Mtangoo 455 Senior Poster

A
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.protocol.Protocol;
Thanks

You missed my point :(
I knew he was dealing with network protocols but didnt knew WHAT PROTOCOL do those modules support. Seeing the module name, I suggested he would check the sockets module.

Anyway, I don't know the modules and Java in general...so....I would not argue anymore :)

Stefano Mtangoo 455 Senior Poster

Write "CODE=python" enclosed in square brackets then paste your code from your editor and end it with "/CODE" also in square brackets.
Note, all are without Quotes

Stefano Mtangoo 455 Senior Poster

Use code tags to preserve pythonic look and catalyse rate of answering your question

Stefano Mtangoo 455 Senior Poster

Mark Pilgrim is preparing his Book dive into python 3. He isn't finished yet and I thought I should publish here for someone to watch

:)

http://diveintopython3.org/

Stefano Mtangoo 455 Senior Poster

I don't Know what those modules do, but For it sounds to me like you need to take a look at socket module

http://www.google.co.tz/search?q=SOCKET+MODULE&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Stefano Mtangoo 455 Senior Poster

I was cleaning my Machine and found this Link
Try it and see what it can do for you! :)
http://www.winprog.org/tutorial/files/forgers-win32-tutorial.zip