199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for johndoe444

Dear friends, I have this code which attempts to get the last modified date of an http resource: [CODE]request = urllib2.Request('http://www.imdb.com') >>> opener = urllib2.build_opener() >>> request.headers {} >>> first = opener.open(request) >>> first.headers.dict {'transfer-encoding': 'chunked', 'set-cookie': 'session-id=209.251.138.146.1246519635845007; path=/; domain=.imdb.com, uu=bN4RO5T1YWqLBgRAupwcdgCRSyzj0j26pvJ+qYPCXqmT117Zs9L+/LfGO4zGx50bwJFtjNPSXuqj8g4pgDJ+meCRbaoGcS2aoNZb7PiBbbqjkm66I/I+qSAyfpnj8l7qA/I+qTAyfpngkW2KBnEtmqDXe20AkW26oLFtuqC3KyrjwW26o5IOuZOyLtnAgc0ZsLFtuqCRbergwR2Ko=;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.imdb.com, cs=xOA2Pyx3xsSbt7wMU8ZOhAbGfbqgkW2NmIHl2qPyXuoj8j6pMDJ+meCRbYoGES2aoJFb/feFHbqjsg7/p9HNySCRWyxAGW26oKdbraCRbbqgsW26oJFt+uDBHYqg==;expires=Fri, 03 Jul 2009 …

Member Avatar for siddhant3s
0
219
Member Avatar for sarithak

Hi frnds... Here i am going to display albums in a table...But, all albums is display in only one row.Its looking not good in my page...So,i want to display in 2 or 3 rows..plz change this code as my requirement.. .[CODE] <table width="142" height="188" border="0" align="center"> <tr align="center"> <?php $gquery="SELECT …

Member Avatar for sarithak
0
114
Member Avatar for kes_ee

How to acheive this in Python? [QUOTE]Converting the string "HelloPythonWorld" to "HELLO_PYTHON_WORLD"[/QUOTE]

Member Avatar for shadwickman
0
178
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
182
Member Avatar for thrusai

Can someone help me parse a XML string using SAX parser and then validate the same against the XSD defined' I have the program that works when I pass the input xml and xsd as arguments but my requirement involves passing a input string containing the target XML and the …

Member Avatar for thrusai
0
102
Member Avatar for Jx_Man

hi all, i m a newer in c#. a already start to using c# today. in my first project i make program to add,edit and delete data from database. i m already do all of them. now i want to showing data in every control (textbox,combobox, etc) when i click …

Member Avatar for lksath
0
351
Member Avatar for kerek2

Hi Alls, I'm really need your's help... I develop console application as a engine to pull data from oracle to SQL...the connection to both database is ok..but when to insert got problem....somebody help me plz.... [CODE] 'Connection To Sql Dim sqlcn As SqlConnection Dim sqldr As SqlDataReader Dim sqlda As …

Member Avatar for kvprajapati
0
166
Member Avatar for CNIDog

I have a Flash movie on a web page and I want to send parameters to it with JavaScript to have it go to a selected frame. The AS3 code receives its information via an ExternalInterface API. The following code parses the URL argument (?page=x) and I want to send …

Member Avatar for Airshow
0
136
Member Avatar for caquake

I am trying to create a program that uses nested loops to create a box. Only one of the overloaded functions need the details of nested loops.. the other 3 should call the one that has the details.. my problem is the last function and the for nested loops. Here …

Member Avatar for shadwickman
0
406
Member Avatar for jhappy

hi there, im a php trainee and really need a help in my javascript ..anyone? i have my code here that injects a patient name ..i need to know if the patient is already injected..if so..it should not be allowed and should pop an alert that say...'sorry the name has …

Member Avatar for jhappy
0
134
Member Avatar for vizy

Hi Friends, I am using update Panel to update the records without being page refreshed... and using updateProcess control to lock the screen with ModalPopup div Css.. After Updating the Record from the CS Files, giving the alert message using ScriptManager.RegisterStartupScript method. But this message is displayed on the modalPopUp …

Member Avatar for vizy
0
147
Member Avatar for ayesha789

Passsword Strength Checker [CODE=php]<?php function testPassword($password) { if ( strlen( $password ) == 0 ) { return 1; } $strength = 0; /*** get the length of the password ***/ $length = strlen($password); /*** check if password is not all lower case ***/ if(strtolower($password) != $password) { $strength += 1; …

Member Avatar for ayesha789
0
254
Member Avatar for goody11

I was working on a program for spanish where I want to input the spanish and english and then the programputs the words in 2 listboxes when "ADD" is clicked. Here is my code and it does compile so you can kind of get an idea of what I want …

Member Avatar for goody11
0
211
Member Avatar for Debby0424
Member Avatar for lotrsimp12345

it needs to make sure numbers aren't duplicate and are ordered. maybe change my cout statements to arrays? Thanks. This is what program is supposed to do input Q 1,2,3-5,6-7 output do problem 1,2,3,4,5,6,7 of Q. [code] #include <iostream> #include <cstdlib> #include <sstream> #include <string> using namespace std; int main() …

Member Avatar for kvprajapati
0
104
Member Avatar for dchaosblade

Hey, I'm hoping someone can give me a hand here...I'm currently writing a JApplet which uses several buttons on several different JPanels. Two of these buttons use an image and label (e.g. I did [icode]contestant.setIcon(cc); contestant.setText("C.C.");[/icode] where contestant is the button, and all formatting occurs just after and the Image …

Member Avatar for dchaosblade
0
159
Member Avatar for Debby0424

[code=JAVA] import java.util.Arrays; // Class that hold a collection of CD objects class Inventory { // maximum number of CDs that will be held static public final int MAX_NUM_OF_PRODUCTS = 10; private CD products[] = new CD[MAX_NUM_OF_PRODUCTS]; // number of CDs currently in the inventory private int numOfProducts; // default …

Member Avatar for Debby0424
0
233
Member Avatar for OmniX

I would like to make a button that will save the current webpage you are viewing like clicking FILE>SAVE AS in IE, FF, etc. Once clicked you can "precode" the default name of the file based on the variables used in the webpage. Also I if possible I would like …

Member Avatar for digital-ether
0
510
Member Avatar for Q8iEnG

Hi mates.. I would like to ask you small question and I do really appreciate if you helped me out. I want to make a VERY SIMPLE "Poll" using Javascript here's my code, below it I'll tell you what I'm stuck at: [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for Airshow
0
336
Member Avatar for jen140

Hello all. I would like to add a small handler. Imagine that i have a listbox, and when i right click i want to appear a menu with two options . How can i do it ? Thanks in advance.

Member Avatar for sknake
0
63
Member Avatar for mexx

I am trying to read a file which contains URLs and are 100 million in number. What I need to do is find out the different websites they are from. So, I am taking chunk of data in memory and reading it line by line. Also, I need to find …

Member Avatar for zdeepblue
0
317
Member Avatar for mustafaneguib

hey all i need some help in redirecting my page. following is my code. here is the scenario: when the user enters the admin panel from another website set up on a different host/server (a cms actually) the user is redirected to this page and the data from the main …

Member Avatar for digital-ether
0
170
Member Avatar for Hockeyfreak889

how would i display a yes/no dialog that would return one value if the user clicks yes and another value if they click no. I know you can do it using some part of JOptionPane but im not sure what

Member Avatar for BestJewSinceJC
0
73
Member Avatar for claudiu_is

I`m trying to write a web crawler but i `don`t know how to handle the situation when i have to login to acces a site. [B]How to type in that login form from my java program?[/B] I`ve searched on the net but the results points to JSP. I haven`t worked …

Member Avatar for dkhang
0
183
Member Avatar for BretFelix

I have a program and I want to create a function that sorts multiple [B]lines[/B]. The lines are like this: lastName,firstName,gender,studentNumber I want to sort them by LINES, not individual words. Any thoughts? This is for a school project.

Member Avatar for MosaicFuneral
0
2K
Member Avatar for Democles

I am attempting to take names and weights from strings and just simply output them. For some reason it can't get out of the while loop, it just sets there waiting for the users to input names and weights. Here's my code [code=C++] #include <iostream> #include <string> #include <vector> using …

Member Avatar for VernonDozier
0
11K
Member Avatar for uesuva

I'm having issues as well; I have a database jokes with a couple rows already and am trying to insert another row (the ID is auto incrementing). This is what I have, as you can see I'm trying to insert a value from a form. Here's the form [code] <FORM …

Member Avatar for uesuva
0
92
Member Avatar for pmyk

How to use the name of one Userform which is received in another Userform as a variable? P. Michael

Member Avatar for vb5prgrmr
0
89
Member Avatar for serkan sendur

in the custom installer i want to differentiate between if the windows installer run by command prompt or by GUI. i can check for custom parameter but my command line is already long, i want to use something built-in(parameter). Thanks

Member Avatar for sknake
0
150
Member Avatar for serkan sendur
Member Avatar for Furtano

Hello, i have some decimal numbers and want to put them hexadecimal in a string stream. Every Hex number should consist of 2 chars^^. I can't find a flag for it. [code]0__1__2__3__4__5__6__7__8__9__a__b__c__d__e__f__10__11__12__13__14__15__16__17__18__19__1a__1b__1c__1d__1e__1f__20__21_[/code] should be [code]00__01__02__03__04__05__06__07__08__09__0a__...[/code] [code=c++] #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <iomanip> using namespace std; int …

Member Avatar for daviddoria
0
99
Member Avatar for Acidburn

Hey guys, I'm trying to access the file system of a Nokia device which operates on Symbain OS 60. Is this possible with Java? I've googled around but can't seem to find much... Most likely my search terms. Could someone point me in such a direction? Thanks, John

Member Avatar for di2daer
0
300
Member Avatar for Hiroshe

Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C …

Member Avatar for Hiroshe
0
142
Member Avatar for shadiadiph

I am having problems with a data entry issue i have a field in my database which is called headline it is set to varchar 255 when i insert for example something with for eample. [code] The 'dogs' are very big. [/code] the code is sent by normal $headline=$_POST["headline"]; then …

Member Avatar for uesuva
0
302
Member Avatar for goody11

I was going through a tutorial and had some trouble with an example program. Here's the coding I have and I can't fix it. Here is the main cpp file. [code] #include <windows.h> #include "resource.h" BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: …

Member Avatar for goody11
0
208
Member Avatar for fatalbert55

Hello All, I am trying to learn C++ on my own, but I think I am having some problems with Code::Blocks. I am familiar with Java (I did some CS as an undergrad) and I feel that the C++ basics are pretty easy to translate from Java; however, I am …

Member Avatar for fatalbert55
0
287
Member Avatar for sfuo

Hi I have been trying for a while to make a win32 app client be able to talk to a server app that I put on my friends computer. I am not 100% sure if the problem is caused by the fact that I have two routers which may interfere …

Member Avatar for sfuo
0
171
Member Avatar for DNDSH

hi all i have a C++ assinment and i can't solve it can anyone help me to solve it is three questions: Q1. Write a C++ program that sends a pointer of an array of characters to function with the function profile void Analyze ( char *abc) . Function Analyze …

Member Avatar for DNDSH
0
273
Member Avatar for erms

Hi, I am having trouble replacing this pattern. Could someone help please? FROM: (URL="http://google.com") google website (/URL) The sign () is actually [] but vbulletin is changing it to a link, so made a () sign instead. TO: <a target="_blank" href="http://google.com"> google website </a> Thanks :)

Member Avatar for erms
0
71
Member Avatar for mypicturefaded

I need to pull out the information in the Document\Property(label = Individual Information)\value. The code I am using does not work, or I am not using it correctly. What would be the correct syntax? [ICODE] <?xml version="1.0"?> <fnApiResponse status="ok" xml:space="preserve"> <document idmId="12214" name="214214" label="me" class="Signature" version="1" mime="image/x-win-metafile" library="mylib" user="me" group="blah" …

Member Avatar for mypicturefaded
0
122
Member Avatar for johndoe444

Hi, This is the existing code: [CODE]for c in chartNames: chartUrl = baseChartUrl+c hd = extractChart(chartUrl) writeChart(hd,c) for key in hd: if key in chart: chart[key].append(c) else: chart[key] = [c] [/CODE] when i wanted to insert a line before [CODE]chartUrl = baseChartUrl+c[/CODE] by putting the cursor to the end of …

Member Avatar for jlm699
0
162
Member Avatar for GooeyG

I'm just having a hard time understanding the syntax of C++. The book(How to program C++ (fifth edition), by Deitel & Deitel) that my school recommended is impossible for me to understand of what is going on. Can anyone offer any advice or suggestion in making the learning curve of …

Member Avatar for Q8iEnG
0
139
Member Avatar for serkan sendur

in windows installer user interface i want to have check box dialog and according to what checkboxes are checked, i want to display textbox dialog. how is that possible? thanks.

0
70
Member Avatar for MrNoob

Hello people i got a h.w to do Using nested loops to produce the following pattern: F FE FED FEDC FEDCB FEDCBA I had idea to do it but that will require array and strlen(char first int of the outer loop) and the thing says that I must do it …

Member Avatar for MrNoob
0
230
Member Avatar for history84084

I am using a textbox as a user visible log on my form1. The following code works as long as it is used only on form1.cs. lboxLog.Items.Insert(0,"Log this message"); If it is used on any other form I get the following message The name 'lboxLog' does not exist in the …

Member Avatar for sknake
0
93
Member Avatar for manizzi

Hey guys, am learning php/mysql and am trying to learn how to do the following. I have a database, and a form with 3 fields. I want fields 2 and 3 to be filled with data from mysql table immeadiately after field 1 receives a value. I think I am …

Member Avatar for manizzi
0
86
Member Avatar for Zetlin

Hi everyone it's been almost a year since I gave up programing in python so I have forgotten a lot of things, so just bare with me. Ok so I was playing around with python and ended up with this little program. [code=python] def test(): number = input("Number: ") scale …

Member Avatar for jlm699
0
114
Member Avatar for sonia sardana

I want to read just the last record of file....I m able to read the whole file. Secondly I want to know that in VB.Net we have ubound to get the upper bound of the array..What is the equivalent in ASP.net? [code] protected void Page_Load(object sender, EventArgs e) { string …

Member Avatar for sonia sardana
0
146
Member Avatar for asw.asela

i need to develop my own application with user name and password which allow users to login to windows.....how can i do tha....pl guide me on this...... thanks

Member Avatar for asw.asela
0
111
Member Avatar for nigelburrell

Whenever I echo or print a string containing an email address to my webpage the HTML code automatically parses the text and shows it as a "mailto" link. If I use... echo "Hello"; it prints Hello as expected on the webpage. If I use... echo "hello@whatever.com"; it now appears as …

Member Avatar for almostbob
0
194

The End.