Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~12.1K People Reached
Favorite Tags
Member Avatar for gsingh2011

I came across a program a program called Enounce MySpeed which allowed me to watch videos (my school lectures) at a faster rate. I was able to watch 60 minute lectures in 25 minutes, so this software was extremely valuable to me. However, this software is shareware, which is dumb, …

Member Avatar for ~s.o.s~
0
114
Member Avatar for gsingh2011

I'm writing an Android app that will follow the route of a vehicle that has GPS in it. The basic overview is app asks the server for the location of the vehicle, the server gets the location from the GPS installed in the vehicle, and returns it to the device …

Member Avatar for tajendra
0
84
Member Avatar for gsingh2011

The assembly code below is equivalent to: [CODE]a=1; b=1; if(a=b){ x=2+2 }[/CODE] It is generated code so don't worry about inefficiency. My problem is when I use the sete command I get the error "error: invalid combination of opcode and operands". Here is the code: [CODE][list -] %include 'win32n.inc' [list …

Member Avatar for gsingh2011
0
335
Member Avatar for gsingh2011

I've been struggling with understanding segmentation for some time now. Here's what I know. There are different types of segments, such as the code segment, data segment, stack segment, and extra segments. In old architectures (286 and below), segments were limited to 64kB and used a segment:offset addressing scheme. In …

Member Avatar for BitBlt
0
449
Member Avatar for gsingh2011

Hi, how would I login to an HTTPS site? I used the following code to connect to the site, but how do I login? [CODE]import httplib HOSTNAME = 'login.yahoo.com' conn = httplib.HTTPSConnection(HOSTNAME) conn.putrequest('GET', '') conn.endheaders() response = conn.getresponse() print response.read() [/CODE]

Member Avatar for gsingh2011
0
120
Member Avatar for gsingh2011

Does anyone know if its possible to type in a number and get the resulting ASCII characters in a batch file? I think in Unix based machines you type the command then \042 or whatever number you want, but I don't know if you can do it in batch files...

Member Avatar for SimonEyes
0
4K
Member Avatar for gsingh2011

I need to log in to a website using python. The two fields are username and password. This is what I have tried: [CODE]import urllib import urllib2 import httplib username = "username" password = "password" url = "https://webconnect.bloomfield.org/Zangle/StudentConnect/logincheck.aspx" password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() password_mgr.add_password(None, "https://webconnect.bloomfield.org/Zangle/StudentConnect/", username, password) handler = urllib2.HTTPBasicAuthHandler(password_mgr) opener = …

Member Avatar for Beat_Slayer
0
243
Member Avatar for gsingh2011

This is my code so far to connect to a webpage and retrieve the html: [CODE]#include <winsock2.h> #include <windows.h> #include <iostream> #pragma comment(lib,"ws2_32.lib") using namespace std; int main (){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { cout << "WSAStartup failed.\n"; system("pause"); return 1; } SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); struct hostent *host; …

Member Avatar for marco93
0
725
Member Avatar for gsingh2011

I need to save an object to a file and then reload it later on. I think this is called serialization but I don't know. I have made a simple example below that I need to fix. [CODE]#include <iostream> #include <fstream> #include <windows.h> using namespace std; #define MAXV 1000 class …

Member Avatar for Ancient Dragon
0
113
Member Avatar for gsingh2011

I'm making a graph theory problem solver and basically I made a bunch of functions that will set up the graph and allow the user to modify the graph, but obviously these functions can only be called from the program. The user can't just type the function name and expect …

Member Avatar for rahul8590
0
140
Member Avatar for gsingh2011

I know some people are against converting jars to exes, but I needed to in this case. The jar worked fine but my exe gives me the error below. The code is just, [CODE]package mail; import java.net.*; import java.io.*; public class Mail { public static void main(String[] args) { System.out.println(args.length); …

Member Avatar for masijade
0
183
Member Avatar for gsingh2011

I need to call a script on a website but I don't want to open a browser. I have the code in python as, response = urllib2.urlopen('http://www.sygmd.org/email2.php?message=' + message) but I need this to work on all windows computers, not just the ones with python and I can't make the …

0
71
Member Avatar for gsingh2011

This is my python script: [url]http://gsingh.pastebin.com/mc602006[/url] This is my setup.py file for py2exe: [url]http://gsingh.pastebin.com/m70a19449[/url] When I go to command prompt and run the .py file with the command, email.py message It works fine, it sends me an email with the message, which is what it's supposed to do. When I …

Member Avatar for snippsat
0
631
Member Avatar for gsingh2011

So I've been trying this for a long time and I've given up. I can't code it myself and no examples are helping. I want to log on to a website and return some text from it. The returning text part won't be hard, the logging in is the problem. …

Member Avatar for zachabesh
0
1K
Member Avatar for gsingh2011

Hi, I want to make a program that opens a url, finds the data I need, and returns it to me. The problem is I have to login to the website, and I don't know how to do this. I've looked at some examples, and this is what I have …

Member Avatar for siddhant3s
0
106
Member Avatar for gsingh2011

I need to log in to a website with Java, its an https(SSL) site. I have some code that doesn't give me an error but it doesn't log in. I've tried a similar program in python and it didnt login either. I think I'm missing some basic concept about this... …

Member Avatar for gsingh2011
0
167
Member Avatar for gsingh2011

How would I make a program that can insert text into a text field in another program? Or click a button in another program?

Member Avatar for Stinomus
0
121
Member Avatar for gsingh2011

How would I make a program that can insert text into a text field in another program? Or click a button in another program?

Member Avatar for gsingh2011
0
66
Member Avatar for gsingh2011

I just learned how to use py2exe to turn a helloworld.py script into a helloworld.exe script. But when I do it for something more complicated, I get an error. The exe is created, but when I run it I get an error: C:\Documents and Settings\Gulshan\My Documents\Python Scripts\dist>snake.exe snake.exe:85: RuntimeWarning: use …

Member Avatar for Arthurharr
0
242
Member Avatar for gsingh2011

Hi, I'm getting a warning when compiling the following code: [CODE]void printstr(unsigned char *string, volatile unsigned char *videoram) // Print a string { int i = 0; while(string[i] != '\0') { videoram[2*i] = string[i]; videoram[1+(2*i)] = 0x07; i++; } } unsigned char *memset(unsigned char *dest, unsigned char val, int count) …

Member Avatar for nucleon
0
417
Member Avatar for gsingh2011

I had some code that worked fine, but then I decided to put it in a header file and now its not working. This is my first time using my own header files so I'm assuming I made a beginner mistake somewhere... [CODE]/* kernel.c */ #define SCRWIDTH 200 #define SCRHEIGHT …

Member Avatar for ArkM
0
88
Member Avatar for gsingh2011

I'm trying to make a table in VB but I'm not sure how to do it. Basically it will have two columns and an undefined amount of rows. Whenever the user gets to the last row a new row is created. Each cell has a dynamically named variable with it. …

Member Avatar for Ramy Mahrous
0
97
Member Avatar for gsingh2011

Hi, I'm a beginner at VB.NET and I want to know how to change the appearance of a form when you click a button. Basically, I have a table that holds information. The user can choose between this table view or a preview. If he chooses preview, the table will …

Member Avatar for Ramy Mahrous
0
107
Member Avatar for gsingh2011

Hi, what are the advantages of C# over C++? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to.

Member Avatar for ddanbe
0
833
Member Avatar for gsingh2011

Hi, what are the advantages of C++ over C#? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to.

Member Avatar for d0pedup
0
192
Member Avatar for gsingh2011
Member Avatar for gsingh2011

I'm trying to run a program using a python program. The program is supposed to run the program, get the output, and write it to a text file. The program being run (which is an exe), takes one argument, so I used: subprocess.call(["path", "arg"]) This works fine, but the problem …

Member Avatar for BearofNH
0
466
Member Avatar for gsingh2011

Ok, I just learned the basics of Python yesterday, and because of other programming knowledge, I picked it up pretty fast. So then I decided to try out pygame, and I installed it directly to my Python26 directory. But none of the example code I paste from any website doesn't …

Member Avatar for Stefano Mtangoo
0
535