funfullson 0 Junior Poster in Training

Nobody has no answer?

funfullson 0 Junior Poster in Training

Hi every body.
I want to make a topographical image from a 2d Aerial photograph.
how can I do it in python?

Thanks if help me.

funfullson 0 Junior Poster in Training

Sorry.
I forgot to say that themes name's is "Topographical map".

funfullson 0 Junior Poster in Training

So there is no way to make such model?
My Real project is described below:
I have some Aerial photograph and am trying to make a model from the mountains.
If you saw before, Geographers make a model from this pictures by Contours.

Do you know any way that help me to do this?

funfullson 0 Junior Poster in Training

Thanks for your helps.
how about python opencv?
did u test it?

funfullson 0 Junior Poster in Training

I am trying to convert a 2d image to 3d one in python. please introduse me some good source or if there is an open source program.

Thanks alot.

funfullson 0 Junior Poster in Training

thanks friend.
I studied that and test it but after my Microsoft.DirectX.AudioVideoPlayback DLL did not attached to setup file.have u a better one or.....

thanks dears.

funfullson 0 Junior Poster in Training

Hi dears.
I wrote a program in C# with visual studio 2010 an now need to ensure that my program will work on any system with XP or seven or vista windows version.
I used from .net & directX in my project.
How can i compact it with an installer on start up?

Thanks realy if help me.

funfullson 0 Junior Poster in Training

Have a look in this page http://wiki.python.org/moin/IntegratedDevelopmentEnvironments

Thanks friends.but which one has this ability?

funfullson 0 Junior Poster in Training

Hello again friends.
I need an article o book or any wrote that discussed about storage engines structure.
for example explain that what made MyISAM faster than other engines in Inserting data or any such thing that argue the graphs that came in upper post link.

http://www.mysqlperformanceblog.com/2007/01/08/innodb-vs-myisam-vs-falcon-benchmarks-part-1/

Thanks.

funfullson 0 Junior Poster in Training

Friends, no one use an interface with this ability?
So if you want to trace your codes step by step, How do u do it?

Lets discuss stronger.
Lets List all _or at least more important_ interfaces of python that use in different operation systems.
for example a list of python interfaces that are used in linux, windows, mac or etc.

funfullson 0 Junior Poster in Training

at first a want do it on yahoo.

funfullson 0 Junior Poster in Training

I did but realy culden't find any suitable source.
what is your exact keyword to search?

funfullson 0 Junior Poster in Training

Sorry dear.
It maybe to explain more or introduce me a direct source?

funfullson 0 Junior Poster in Training

any one like help me????

funfullson 0 Junior Poster in Training

Hello friends.
In my project I need to know if some one is online or offline.
and other problem is that some one are online but are invisible.
At all how I can find the users state?
for example users of yahoo or google.
I realy know nothing about this works.
Introduce me module, book or anything which can help me.

Thanks alot.

funfullson 0 Junior Poster in Training

I used pyScripter.and when I write my code can trace it step by step with F7.
I need an interface like it in linux _ubuntu_.

funfullson 0 Junior Poster in Training

Hello dears.
I am using python 2.6 in Ubuntu 10.10.
I need an interface that make me able to trace my project.
for example portable python ver 1.1 has this ability.
please intruduse me an interface that be compatible with my os.

Thanks.

funfullson 0 Junior Poster in Training

Thanks dear.
I saw it before.it was a good source but I need one that have reason of this graphs.
a theory based article about engines structure.
Thanks..

funfullson 0 Junior Poster in Training

Hello friends.
I need a good article or book that compare storage engins _such as MyISAM, InnoDB, Falcon and etc_.
if any one know a good source please introduce me.
Tanks if help me.

funfullson 0 Junior Poster in Training

Hello dears.
I need to play a music in my projects background.
I did such below but it does not work.
what is problem please?

class PlayMusic
{
    private string cmd;
    private bool isOpen;
    [DllImport("winmm.dll")]
    private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback);

    public void Close()
        {
            cmd = "close MediaFile";
            mciSendString(cmd, null, 0, IntPtr.Zero);
            isOpen = false;
        }

    public void Open(string sFileName)
        {
            cmd = "open "+ sFileName +" type mpegvideo alias MediaFile";
            mciSendString(cmd, null, 0, IntPtr.Zero);
            isOpen = true;
        }

    public void Play(bool loop)
        {
            if (isOpen)
            {
                cmd = "play MediaFile";
                mciSendString(cmd, null, 0, IntPtr.Zero);

                if (loop)
                    cmd = " REPEAT";
                mciSendString(cmd, null, 0, IntPtr.Zero);
            }
        }
    }

my headers are :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

and my playing action is:

PlayMusic pm = new PlayMusic();
pm.Open("c:\test.mp3");
pm.Play(true);

when I do it it do nothing.I dont know what is the probleme.
Thanks if help me dears.

funfullson 0 Junior Poster in Training

Thanks dears.
I did it in portable python but it did not do in terminal.
Hoe can I do it in terminal or Python IDLE for example?

thanks.

funfullson 0 Junior Poster in Training

I am using python 2.6 in windows.I am testing it.
I made a text file and wrote in it "ایران افتخار من است".
and tryed to read it.but I faced problem.I saw some semi-octet characters after reading the file.
and now I dont know how to do it.
I thing it is utf8 but am not sure.
at first:
how can I recognize that what my text type is.if it is utf8 or utf16 or...
and after:
how I read it truely or convert these bytes to true style.
thanks friends.

funfullson 0 Junior Poster in Training

I thing there is another way to do it:

>>> String = "Hello World!!"
>>> print String[2:6]
llo
funfullson 0 Junior Poster in Training

hi dears.
I have an unicode data in a file.it is a persian text.
I want to read it and after some change write it in another file.
but when I read it, I face to some hexadecimal characters.
what I have to do with them?

Thanks.

funfullson 0 Junior Poster in Training

So what will happens if my message be mixed from english and persian letters?
how I encode this example:
"hello in persian is 'سلام' in arabic is 'السلام'."
now english letters are 7 bit and arabic or persian ones are 8 bit.
I have to convert them to 16 bit?

funfullson 0 Junior Poster in Training

thanks but I saw it before.
I Coded my english message to octet.but realy I dont know how Ican do it when my message is made from persian word _that are 8 bit_.
in another style I have to encode a mixed message.
I dont know how I can do it.

funfullson 0 Junior Poster in Training

Sorry I dont understand your answer.
I am using the GSM Modem to sending and receiving sms.
there are 2 options for me.
1_sending in text mode
2_sending in pdu mode
I am using from pdu mode
in pdu mode I have to encode and decode sms.
english letter are 7 bit _Septet_ and persian or arabic letter are 8 bit _Octet_
and I confused how I have to encode them _when are mixed such as my example in first post_ to be able to realize sms after receiving and receiver be able too.
So, please explain more about your answer and help me more?
Thanks.

funfullson 0 Junior Poster in Training

Hi dears.
I want to send a string as sms in gsm modem witch mixed from english and unicode word.
for example:
"hello in persian is 'سلام' in arabic is 'السلام'."
now, how I can make a pdu format from this string and what change I have to make in my pdu format configuration?
Thanks alot if any one help me.

funfullson 0 Junior Poster in Training

Realy I have I gsm modem _witch are used in mobiles for sending and receiving sms_
I have to send and receive sms with that in my program.but I don't know how I can do it
I find some modula such as pysms and pygsm to do it but they have no suitable flexibility
and I don't know witch one is better or maybe I have to do it in another way at all.
I confused that what I have to do and how I have to start it.
please guide me.
thanks.

funfullson 0 Junior Poster in Training

Hi dears.
I want make relation with gsm modem.
my first goal and main one is sending and receiving sms.
_then I want go front.for example for mms sending and ..._
I want to do it on a linux server.
please introduce me a suitable modula with it's tutorial or documentation.
thanks if guide me.

funfullson 0 Junior Poster in Training

sorry I can not write eng well.
we can play command line's commands in python.
for example in cmd you can play "cls" to clear command line.
and in python we do it like below code:

import os
os.system("cls")

it will play well.but some of commands are that you have to return again to command line and play a new command.

for example:

c:\>

manualy at first you have to type nslookup.then you have to wait.you will see second line that apear like below:

nslookup>

after you have to enter another command.for example:

nslookup>server 127.0.0.1

now I can not play such instructions.I have to return to command line again and play second command.but python will wait for command line.

funfullson 0 Junior Poster in Training

Hi dears.
I am playing windows commands with python scripts.
for example I did:

import os
print os.system("ipconfig -a")

but there is a problem with some commands.for example see this:

>netsh
netsh>dhcp
netsh>dhcp>scope 192.168.100.10

after playing the first one script, I have to come back to shell and play second one and ...
but how can I do it and also how can I do it in linux?

funfullson 0 Junior Poster in Training

Hi dears.
I am searching around a reporter for python.
some thing such as crystal_report or stimul_report witch used for C# and some languages other.
thanks.

funfullson 0 Junior Poster in Training

Thanks.I tried to get random number generating code from vs _by step debugging over "srand" function_ but it have used some registers from upper version than 8086 and it made me confused.
there is a problem at assemby86 function.it returns same sequence of random number every time.how we can improve it?

funfullson 0 Junior Poster in Training

Sorry! is it pseudo code?
what are these? precision clock and !keyhit.

funfullson 0 Junior Poster in Training

hi dears.
I am using Emu8086.
I need to generating an array of random numbers.
Are there any ready procedure or intrupt?
if there are not, how can I do it?
thanks.

funfullson 0 Junior Poster in Training

So we have no private attribute as C++ in python.yes?
has python any thing about machine for hardware managmente or some thing like?
for example if we want to write a program that works on a set such as CNC or other sets such as this?

funfullson 0 Junior Poster in Training

I tried to say my friend that python is as powerful as java.but they said me this problem.and the other was java's machine.it wor4k on every thing but python...
I don't know.I am using python since 2 years.I choosed it and I LOVE IT.
But we have to understand python's abilities.is not True.

funfullson 0 Junior Poster in Training

I found that in python we have no realy private attributes.we just can use _ or __.but these are not deny access to my attributes.some thing such as private variables in c++.
Is it TRUE? Realy python is week in these?

funfullson 0 Junior Poster in Training

lets Know more about my project.a corporation has a List of payments.
for example upkeep , digging and... .in each of them there are thousands factors and cheques witch have to add.some times they wants to add a new payment parameter into theme's list.I have no problem with theme's payments ID or adding them into my tables.
I have problem adding or deleting a new payment subject.
every of Costs Items are consider of many records.
I cannot read and write English good.It may be I say my mean wrong or find out your means wrong.Sorry If it is.

funfullson 0 Junior Poster in Training

I have a code that plays fast _it's order is log(n)_.I have to meter it's play's elapsed time.I used from time.time() and time.clock() but they returned 0.I need a timer witch meter nano second.
How can I do it?

funfullson 0 Junior Poster in Training

I have no problem in here.at first my change have to stores.for example the user wants insert a new cost to list.it will be add to the list compile time but at the next program playing my list is free.how i save it for my next plays.

other thing was my tables coulomns name.them's name is rely to the index of comboboxe's new item.
for example it has 3 cost in its list.
cost1
cost2
cost3
we removed the cost 2.
tables coulomn's name are
cost1
cost3
if we write the below code sqlserver will returns an error.and it is true.

sql = "ALTER TABLE tblCost cost";
      sql += cmbList.Items.count.Tostring() + " float";

because it want to add a new coulomn to tbl by name cost2.
while this name is exist.
I have to see at last item of combobox.here is cost3.
my new table's name have to be cost4.how can i earn it's name?

funfullson 0 Junior Poster in Training

Hi Friends.
I have an project with vs2005 and sqlserver2005.There is a page contain a combobox , a text box and two button.The combox items are my cost list that maybe thems count increase by user.how can I manage it?

more about it:

if person clicks the add button we have to add textboxe's text as an item for combobox.
I did it like below:

cmbList.Items.Add(txtName.Text);

problem is that ofter programs running the added items have to remains for next play.How Can i save my new list for next plays?
And I have to add this item as a database's culomn which I did so:

sql = "ALTER TABLE tblCost cost"; 
sql += cmbList.Items.count.Tostring() + " float";

this sql command will plays.here is no problem.
so my tables culomns are named as items index's in my combobox and my tables culomns named as cost0, cost1, ... and new coulumns name is "cost"+(new indexe's number) _The items that added currently_.
the problem starts if the user delete one Item.so my combobox item's counts will increase and it makes error in altering the table.
so how can i improve it?

funfullson 0 Junior Poster in Training

It worked.I forgot using the below code.

child.expect(pexpect.EOF, timeout=None)

Thanks alot.

funfullson 0 Junior Poster in Training

sorry.I saw links but i can not solve my problem yet.
I say my problem again.it may be you found out it wrong.
At first I have not to do any thing in shell.
now I want change users password.I send the shell:

os.system("passwd %s" % username)

now shell wants me "Enter new password:" and i have to type it in shell.
but i have not do it.so i have to send the password in my code.but how can i do it?

funfullson 0 Junior Poster in Training

I found my wrong.thanks alot.

Integrated Security = True

access to sql was denied without this.
or I have to make a user and password for a special user in sql server and in my code have to send as connection string to database.

but now I have a new problem.I have some text box and want send their values as string in to my database.I did it like below code:

sql = "Insert into specs (name, family)";
sql += "values ('{0}', '{1}')";
sql += string.Format(sql, txtName.Text, txtFamily.Text);

it is my string witch will be send to sqlserver.
but every time it makes 2 rows in my table.
one is consist {0} as name and {1} as family.
and other row is consist my real values.
how can i improve it and what is the common way?

funfullson 0 Junior Poster in Training

I wrote below code for my database connection but every time its catch part play.what is the problem?

public myDb()
{
    canConnect = true;
    sqlString = "Connection Timeout=5;Server=127.0.0.1;Database=ghanat;";
    dbConnect = new SqlConnection(sqlString);
    dbCmd = new SqlCommand();
    dbCmd.Connection = dbConnect;
    dbAdapter = new SqlDataAdapter(dbCmd);

    try
    {
        dbConnect.Open();
        MessageBox.Show("You connected", "Connection", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
    catch
    {
        canConnect = false;
        MessageBox.Show("Connection Error", "Connection", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
    finally
    {
        dbConnect.Close();
    }
}

At the next step i have to send my sql string to database.
can you guide me or introduce me a clear brief Tutorial or an example project?

thanks alot.

funfullson 0 Junior Poster in Training

I want to do every thing in pythons scripts.
Some thing like below pseudo code:

execute in shell("change password")
if shells result was "New password: "
    send to shell("my new password")
if shells result was "Retype new password: "
    send to shell("my new password")

every things managed in pythons scripts an there are no need to write any thing.

funfullson 0 Junior Poster in Training

hi.I want play linux shells command with python.for example i did it:

def add(userName, pasword):
    import os
    os.system("useradd -d /home/%s  -m -p %s %s"%(userName, pasword, userName))

but some where i have problem.
for example when you want change the users password you have to send the command for changing password and then the shell wants you to enter the password and at the next it wants you to retype the password.
how can i answer its questions witch asks after a commands play?