Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
62% Quality Score
Upvotes Received
5
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
2
~22.9K People Reached
Favorite Tags

52 Posted Topics

Member Avatar for debasishgang7

Hi All, Using pydbg I'm opening certain files(ex. c:\\myfile.txt) within a win32 application(Ex. c:\\notepad.exe) in this way. dbg = pydbg() dbg.load("c:\\notepad.exe", "c:\\myfile1.txt") So my question is, if the target application(Ex. c:\\notepad.exe) is already running then,then is it possible to open a another file(For example c:\myfile2.txt ) within the same application …

Member Avatar for debasishgang7
0
257
Member Avatar for debasishgang7

Hi, I have a problem.I have a third party HTML/Javascript code in which they have text area.They post the content of the text area when user press enter. there is no button to submit the form. So I wanna know how can I submit that form using javascript. Thanks.

Member Avatar for imBaCodes
0
180
Member Avatar for debasishgang7

Hi, I am trying to write a python func. which can replace nth occurance of any substring present in any string. For example: main_string = "badZZZZZZZZZZZZZZZZZZbadZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ" If I wanna replace the 2nd occurance of string "bad" with 'good' i will pass customreplace(main_string,'bad','good',2) So the Function should return badZZZZZZZZZZZZZZZZZZgoodZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ I have …

Member Avatar for bumsfeld
0
6K
Member Avatar for debasishgang7

Hi Guys, I am trying to modify an xml string on the fly. I will enter a sample XML string and the code should generate modified xml.I have exploied it later. xml = xml = '''<FixedPage xmlns="http://schemas.microsoft.com/xps/2005/06" xmlns:x="http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key" xml:lang="en-us" Width="793.92" Height="1122.24"><FixedPage.Resources><ResourceDictionary><LinearGradientBrush x:Key="b0" StartPoint="0,0" EndPoint="0,1122.24" ColorInterpolationMode="SRgbLinearInterpolation" MappingMode="Absolute" SpreadMethod="Pad"><LinearGradientBrush.GradientStops><GradientStop Color="#FFFFFFFF" Offset="0" /><GradientStop …

Member Avatar for TrustyTony
0
314
Member Avatar for debasishgang7

Hi All, I wanna generate all possible combination of certain list using python. For Example I have a list like list = ['A','B','C'] I wanna generate all possible combination of these list elements like using "itertools": AAA AAB AAC ABA ABB ABC ACA ACB ACC BAA BAB BAC BBA BBB …

Member Avatar for TrustyTony
0
1K
Member Avatar for debasishgang7

Hi all, I wanna extract a certain link from a web page using python regular expression. The scenario is like this.. The code: blah... ... .... <div class="test" src="[B][url]http://www.test.com/file.ext[/url][/B]" style="top:0px;width:100%;" .... blah blah blah I wanna extract the url "http://www.test.com/file.ext" from the page using python regular expression. Thanks in advance!

Member Avatar for snippsat
0
285
Member Avatar for debasishgang7

Hi all here is my problem, I have a text area in html page containing a long html code. like [CODE]some code ..... ....... <input type="text" name="mobile" value="1234567890"/> some code ..... .......some code ..... .......[/CODE] From that code present in the <textarea> i need to extract following line <input type="text" …

Member Avatar for pritaeas
0
165
Member Avatar for debasishgang7

Hi All, I want to create a pattern like this using python.. [CODE]Aa0Aa1Aa2Aa3Aa4Aa5......Ab0Ab1Ab2.........and so on.[/CODE] Thanks...

Member Avatar for debasishgang7
0
261
Member Avatar for debasishgang7

Hi all, I am trying to extract some text from a HTML page using regex. [CODE]<html> ...some code.... <B><FONT color="green">TEXT to BE EXTRACTED 1</FONT></B><br> <P> <B><FONT color="green">TEXT to BE EXTRACTED 2</FONT></B><br> <P> <B><FONT color="red">TEXT to BE EXTRACTED 3</FONT></B> ....some code.... </html> [/CODE] I want to make a script which will …

Member Avatar for debasishgang7
0
128
Member Avatar for debasishgang7

hi all, I am trying to pass an array to a function. an array is like char game[4] = {'S', 'R', 'D'}; i wanna pass the entire array to a function which accept. like this void name(char *game) How to do this..?

Member Avatar for abhimanipal
0
181
Member Avatar for debasishgang7

hi all, i am trying to make a prog. which will read the first line of a text file and put the first line into an array and pass the entire array to a function. Here is my code: [CODE]#include <stdio.h> #include <conio.h> #include <string.h> #include <string.h> void exe(char cmd) …

Member Avatar for abhimanipal
0
191
Member Avatar for debasishgang7

[CODE]#include <stdio.h> #include <conio.h> main() { int i; char full; char array[10]="ABCD"; for (i=0;i<=6;i++) full = array[i]; printf("%c",full); } [/CODE] I wanna convert an array to a full character .So that i can print the character like this line printf("%c",full); This program unable to print the character?? Whats wrong in …

Member Avatar for abhimanipal
0
165
Member Avatar for debasishgang7

Hi guys here is my problem.I am trying to send ICMP packets to a HOST using WINSOK.So here is my code: [CODE]#define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <ws2tcpip.h> #include <stdio.h> #include <stdlib.h> #define IP_RECORD_ROUTE 0x7 // // IP header structure // typedef struct _iphdr { unsigned int h_len:4; // Length of …

0
163
Member Avatar for debasishgang7

As i dont know php i am unable to understand how this code is working? Can any body please help me to convert the following php code into python code. [CODE] function icmpChecksum($data) { if (strlen($data)%2) $data .= "\x00"; $bit = unpack('n*', $data); $sum = array_sum($bit); while ($sum >> 16) …

Member Avatar for debasishgang7
0
99
Member Avatar for debasishgang7

Hi all, I am trying to calculate checksum of some data using python. I am putting a sample ICMP header here and the correct checksum of that packet(Got this by sniffing network with wireshark) [B]DATA is "08 00 69 eb 8e 13 00 01" And the correct checksum is "0xa9eb". …

Member Avatar for debasishgang7
0
449
Member Avatar for debasishgang7

Hi all, I am trying convert IP addresses form Decimal format [Like 192.168.12.13] to HEX format [c0 a8 9d 80]. For Example the IP "192.168.157.128" is equivalent to "c0 a8 9d 80" in HEX. How to do that.??

Member Avatar for debasishgang7
0
2K
Member Avatar for debasishgang7

Hi all, I am trying to send Binary data using In python raw socketusing socket.send(). For that i will do following. [CODE]s = '\x01\x00\x12\x59' # some binary data sock.send(s) # assuming "sock" is a valid, open socket object[/CODE] i have created a DATAGRAM in HEX in by sniffing a network …

Member Avatar for debasishgang7
0
1K
Member Avatar for debasishgang7

Hii, I am trying to get a content of a php page(Dynamic) with the help of Ajax by sending Get request to the server page.Like the script should fetch the content of server page (Can be changeable with time )into a certain div tag that i will define. I dont …

Member Avatar for Palle L
0
161
Member Avatar for debasishgang7

I am trying to open multiple ports in a computer with PYTHON Sockets. Here is my code.. [CODE]import socket import thread from threading import * BUFSIZ = 1024 clientsock = socket.socket() def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: break def function(): for n in range(1,5): var = …

Member Avatar for Tech B
0
1K
Member Avatar for debasishgang7

Hi all, Here is mu scenario.I am trying to open multiple port on a compute. I am trying to make the code multi threaded.So here is my code: [CODE]import socket import thread from threading import * s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: …

Member Avatar for debasishgang7
0
903
Member Avatar for debasishgang7

So guys here is my situation. There is text file.Which contains some strings.They are all comma separated. What i wanna do is just read the text file and print individually those strings which are comma separated. Suppose the text file contains: dog,cat,bird,good,bad,blah,blah,blah etc.... The python script should print dog cat …

Member Avatar for vegaseat
0
156
Member Avatar for debasishgang7

I am designing a commenting script.I am fetching comments from My sql database with the help of php.And after fetching all comments i am trying to append the comment form (Enter Name:,Enter Comment blah blah...)at the last of the page. For Example: The main page here... ++++++++++++++++++++++++++++++ Name: XXX XXX …

Member Avatar for floatingDivs
0
126
Member Avatar for debasishgang7

I am Trying to design a footer which will Always be in the center bottom of a page.The dynamic page i am working with is Extending as visitors are posting new comments.And after a certain time the footer is getting overlapped by comments posted.How can i design a footer which …

Member Avatar for teedoff
0
118
Member Avatar for debasishgang7

So,Here is the scenario. [Linux PC -1]-----Virtual LAN----[Windows 7-PC2]---Ethernet----[Some PC PC-3] Virtual--Vm ware LAN. I wanna access all ports of the PC 3 from the Extreme left Linux PC.(Ex.if a web server is running on PC-3 then i should be able to access the web server from the PC-1).How to …

0
57
Member Avatar for debasishgang7

Hi,i want to access the filename of a any file using python.Ex. Suppose a folder contain some files Picture1.jpg,picture2.jpg,mypic.jpg..etx i want to make a program which will print all the file name Picture1.jpg picture2.jpg mypic.jpg of the certain folder.And the folder can have random file name but with .JPG extension. …

Member Avatar for TrustyTony
0
108
Member Avatar for debasishgang7

I am working with a chat application.I am putting all chat history into a div tag.Is it possible to add a side scroll bar,by which with time the chat window will not grow bigger but one can scroll the window to view the history..!!!

Member Avatar for macneato
0
75
Member Avatar for debasishgang7

I am designing a php,Ajax chat application with Mysql back-end.Its working fine.I wanna add an extra feature in this apps.I wanna show the users who is present in the chat room.When some one left the chat room it should write XXXX has left the chat room and his/her name should …

Member Avatar for debasishgang7
0
132
Member Avatar for debasishgang7

I am trying to call a function repeatedly after a certain amount of time delay with the help of java script. [CODE]<html> <head> <script type="text/javascript" src="prototype.js"></script> <script> function sendRequest() { Something to do } </script> </head> <body> <script type="text/javascript"> setTimeout ( "sendRequest()", 2000 ); </script> </body> </html>[/CODE] If i use …

Member Avatar for debasishgang7
0
129
Member Avatar for debasishgang7

I am using a XXS filter function to filter unwanted code.Here is my function xxs.php [CODE]<?php function clean($data) { // Fix &entity\n; $data = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $data); $data = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $data); $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data); $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8'); // Remove any attribute starting with "on" or …

Member Avatar for debasishgang7
0
1K
Member Avatar for debasishgang7

I am trying to make a php Database Driven commenting script.I have to fetch comment and name from the Database according to page id.Suppose i have to fetch comments against the id 45.Then the "fetchcomment.php?id=45".It should fetch all the comments One by one Under the Page ???How to do this.The …

Member Avatar for debasishgang7
0
146
Member Avatar for debasishgang7

How can i make a div tag which will Re size vertically depending upon the Text length of the this tag..??

Member Avatar for debasishgang7
0
103
Member Avatar for debasishgang7

I am trying to write a script that will get TOP ten values from a Table of a certain column. Here is my code.. [CODE]<?php include("../inc/db.php") $data = mysql_query("SELECT * FROM table ORDER by rank DESC LIMIT 10"); while($row = mysql_fetch_array($data)) { echo $row['id'] ; echo "-----"; } ?>[/CODE] Here …

Member Avatar for diafol
0
120
Member Avatar for debasishgang7

Hi all i am trying to make a script which will select nth (1st,2nd blah blah..)highest record from Database. Suppose i have a table with two columns "id" and "score".And for example i wanna select the "id" of member with the 5th highest score?? I am doing this with php …

Member Avatar for debasishgang7
0
134
Member Avatar for debasishgang7

Hello all,....I am trying to make a form which will be in a javascript pop up window.And there will be a submit button(also in the pop up window)..After submission this form will post some data to a php or asp...

Member Avatar for tinymark
0
98
Member Avatar for debasishgang7

I wanna write a script which will count the number of occurrence of a given string from a text file. Suppose a text file content many phone numbers and many of them occurs several times on that text file.I am gonna provide a particular number and i want that script …

Member Avatar for debasishgang7
0
193
Member Avatar for debasishgang7

Hi all,i can send AT commands to my phone(over Bluetooth) using Hyper Terminal.I am trying to do the same process using python.So here is my code: [CODE]import time import serial # configure the serial connections (the parameters differs on the device you are connecting to) ser = serial.Serial( port='COM8', baudrate=2400, …

0
105
Member Avatar for debasishgang7

I am using python in win32 enviornment.i wanna add extra library for using serial port.So i have downloaded the lib for windows env. The package is installing fine.But when ever i import serial following error i get.Can anyone please help me out... [CODE]>>> import serial Traceback (most recent call last): …

Member Avatar for debasishgang7
0
198
Member Avatar for debasishgang7

hi all, I am trying to make a prog. which will download image from a web site.But the problem is the dynamic nature of the web site. The url is like [url]http://www.site.com/image.aspx?id=445[/url] If i wanna access image 1,2 or anything i can change the id and i can view the …

Member Avatar for debasishgang7
0
461
Member Avatar for debasishgang7

hey all, i'm trying to get all content of a webpage using python and trying to put them all into a file. Here is my code: [CODE]import urllib data = urllib.urlopen('http://www.site.net/index.html').read() #print data //if i ignore the rest part of this code the code is just working awesome...its printing the …

Member Avatar for richieking
0
140
Member Avatar for debasishgang7

Hiii all.... I've been working on a project.. i have a problem when creating the menu of the website. The menu i'v designed is a sliding menu..bt its not the center of attraction. my problem is i wanna align the menu to the center of the page.. here i'm givin …

Member Avatar for Cool&Awesome
0
88
Member Avatar for debasishgang7

i am trying to send AT commands on a GSM modem. this is my code.. [CODE]import java.io.*; import java.util.*; import javax.comm.*; public class SimpleWrite { static Enumeration portList; static CommPortIdentifier portId; static String commands[] ={"AT+CMGS=1","AT+CMGS=\"+919007413343\","Hello there"}; static byte[] newline[]={(byte)13,(byte)10}; static SerialPort serialPort; static OutputStream outputStream; public static void main(String[] args) …

Member Avatar for JamesCherrill
0
176
Member Avatar for debasishgang7

Hii all... i wanna design a menu like that when a user bring mouse cursor on some topic the sub menu items will be shown as hyper link like windows start menu.So with the help of HTML how can i do it..??? EX. Course Offered--->Civil Mechanical Electrical Info Tech. When …

Member Avatar for debasishgang7
0
54
Member Avatar for debasishgang7

i have a very basic c++ problem. this is my problem first i am assigning an integer. int i=000; when i am writing the value of this integer into a file its writing only one "0". How can i write the all four zero in the file. actually i have …

Member Avatar for Fbody
0
257
Member Avatar for debasishgang7

I want to make a program which will send POST request to a web server. And also able to send required cookie(provided by me). Example. [url]http://www.somesite.com/requesthandler.asp[/url] POST DATA::::::::name=some_name&age=19 //i will provide the post data Cookie to be sent::::JHFFHJBSVB848X489CNU98C4Y //I'll Provide this cookie My desired application should POST the "POST DATA" …

Member Avatar for ixmike88
0
165
Member Avatar for debasishgang7

im new to php i have a problem.. i wanna design a website that will have index.php as the Home page. The index.php will include header.php(the universal header) menu.php(unuversal menu) topics.php(topics of my websites like global warming,child labour etc..) content.php(a welcome note for Home page.) ___________________________________________________ header.php ___________________________________________________ | menu.php …

Member Avatar for hielo
0
195
Member Avatar for debasishgang7

how to send email via smtp server like gmail with c++??????? i want the code if any web resources available pls provide..

Member Avatar for rahul8590
1
130
Member Avatar for debasishgang7

hi. i have a very basic problem in c++.. i use Microsoft visual c++ 2008. in many prog code i can see that there are many header file which are not included in MSVC++ library. and obviously error ocr. how can i get these library(.h) files and how to install …

1
79
Member Avatar for debasishgang7

hi i want 2 know ho to make Instant Messenger client with c++. pls. provide web resources if available.., .. pls..

Member Avatar for kabeer.khan
0
2K
Member Avatar for debasishgang7

Hi all I want to make an Instant Messenger Client(like gtalk)with c++. any one know something pls. help me out. if you know any available web resources pls. let me know about that .... I need only the code.I dont want the GUI prog.. pls.. pls..

0
102
Member Avatar for debasishgang7

hiii all.... i want to learn C++ GUI based programming.... i want to know how to make Text field,buttons,label,etc... in c++ is there any web resources????? pls help me out.....

Member Avatar for rtc1
0
116

The End.