199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for differentiation

The code that has been attatched (i couldnt post it for some reason) produces the error message: Traceback (most recent call last): File "filename", line 36, in <module> for i in range(len(bytesmessage)/7): TypeError: 'float' object cannot be interpreted as an integer In this line for i in range(len(bytesmessage)/7): The variable …

Member Avatar for HiHe
0
251
Member Avatar for Decode098

I'm currently making a program that saves the longest and shortest words in a sentence inside a list but i cant seem to append multiple words in a list as well as enter multiple sentence and only stop after a specific text or number is inputed. Python gui still confuses …

Member Avatar for HiHe
0
303
Member Avatar for Niloofar24

Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" …

Member Avatar for HiHe
0
313
Member Avatar for Niloofar24

Hello. I have used ScrolledText in my code, the scroll bar that appears is attached to the frame and although it scrolls the text box contents, I want that it was attached to the text widget itself. What can i do?

Member Avatar for HiHe
0
349
Member Avatar for krishreddy

Hi here i am facing problem with, i am running moodle on my system i am facing the error on my web page "Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\sandbox\config.php on line 22 "can anybody please resolve this.

Member Avatar for minitauros
0
77
Member Avatar for SimonIoa

Hello can anyone tell if i am doing this right? I use this code to resize image with php include('simpleimage.php'); $query1=mysql_query("select image_path from user_uploads where id=".$p ); while($row=mysql_fetch_array($query1)) { $newdata=$row['image_path']; $final_image=$base_url.$path.$newdata; $final_image = new SimpleImage(); $final_image->load($final_image); $final_image->resize(50,50); echo '<a class="show-all-audio" href="#show-all-audio' . $messageid . '" style="cursor:pointer" id="show_all_audio"><img src="'.$final_image.'" class="small_icon" original-title="'.$message.'" …

Member Avatar for SimonIoa
0
487
Member Avatar for andrew mendonca

I am trying to write this recursive function: void printFactors(int n) For this function, I need to print prime factors in ascending order. e.g. for n = 24 the output would be 2 2 2 3. I cannot use loops and static variables for this function. Here is my solution: …

Member Avatar for tinstaafl
0
219
Member Avatar for compulove

I wanted to know how to send all the entered user information from the textboxes on my form to one text file. I was thinking I need to say MessageBox.Show("each textbox), but I don't think that is right. All of this is is login information plus other user data so …

Member Avatar for ddanbe
0
211
Member Avatar for parag.bhuyan.75

i am final year student i am doing my project on ns-2.34..i want to intergrate new modules in existing protocl. i have desgined my new module , but i cannot execute it seperately. please help me..

Member Avatar for JasonHippy
0
281
Member Avatar for UmeshBorse13

Warning: Cannot modify header information - headers already sent by (output started at /home/pushpamsanskruti/public_html/admin/logout.php:3) in /home/pushpamsanskruti/public_html/admin/logout.php on line 5

Member Avatar for almostbob
0
75
Member Avatar for fireburner29
Member Avatar for AntonyRayan

In alert box i anto show two buttons, 1. OK and 2. Cancel. If cancel it should redirect to previous page. How?

Member Avatar for AntonyRayan
0
4K
Member Avatar for Madiri Salman

how to update multiple update in database using checkbox with php mysql <form action="enableprofile1.php" method="post"> //user id <input type="hidden" name="id1[]" id="id1[]" value="<?php echo $sn; ?>" /> //user id //enable checkbox <input type="checkbox" name="enable[]" id="enable[]" value="1" <?php if($en=='1'){ echo 'checked';} ?> /> //enable checkbox <input type="submit" name="save" value="Save" class="fontBold"> </form>

Member Avatar for Madiri Salman
0
2K
Member Avatar for divinity02

hey all I have a program to write and I need to use the JOptionPane dialog box to use JOptionPane to say Yes_No_Option, all I would like to know what is the code to be used , how does it work and will it work in a program.

Member Avatar for divinity02
0
193
Member Avatar for harishprakash
Member Avatar for Afi83

Hello, I have an one dimension numpy array with 1 to 5 numbers. I need to map these values to corresponding numbers between 0.76 to 1.24 with 0.12 interval. Then the problem is the find exact values in one array and fill the exact index in the second array. for …

Member Avatar for Gribouillis
0
601
Member Avatar for Nation

I have a JTable that a user can input data. I have an image that I would want to put at the top of my page when printed and also another image that I would want to work as footer. How do I print these on the same page including …

Member Avatar for mKorbel
0
1K
Member Avatar for ravi142

Hello, Need your help for this error i have search also wordpress Forms but **not find out perfect solution** for that Even not given permission of wp-admin. **Fatal Error:** Call to undefined function wp_get_current_user() in /wp-includes/class-wp.php Line no.529 Thanks

Member Avatar for minitauros
0
123
Member Avatar for ojejones

Ok excuse my stupidity here but I have a sitemap for my site [url]http://www.bongal.com/sitemap.xml[/url] but I wish to make an rss feed using the content in the sitemap. I dont want to have to waste my coders time with this but wondered if there is a simple way to do …

Member Avatar for Stacey_1
0
337
Member Avatar for gentlemedia

Hi peeps, Not sure if this is the right forum to ask, but I've been asked to look into a situation for a client. They have a .com domain for their website and they registered also their name as .nl, .eu, .be and a couple more. I know how to …

Member Avatar for Stacey_1
0
276
Member Avatar for saharfatima

#include<iostream> #include<conio.h> #include<ctime> #include<cstdlib> #include<string> int score=0; using namespace std; void display(int &score) { switch(score) { case 98:score=28;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 95:score=24;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 92:score=51;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 83:score=19;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 73:score=1;cout<<"OPPSSSSS......snaked …

Member Avatar for saharfatima
0
177
Member Avatar for AntonyRayan

Can any one tell me what are the library book categories available for school library management?

Member Avatar for AntonyRayan
0
75
Member Avatar for PinoyDev

Good day! I have a news letter form and ajax validation on empty fields is working find.. But when I try to submit the form with all the required fields, I cannot get the data_html response from my php file? Maybe i missed some part that I cannot see t …

Member Avatar for PinoyDev
0
206
Member Avatar for Phaelax

Doing a custom file upload button like so: CSS: input[type="file"]::-webkit-file-upload-button{ visibility:hidden;width:0;height:0;} input[type="file"]{font-size:30px !important;background:none !important;} input[type="file"]::before{ content: 'Select an image'; display: inline-block; background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3); border: 1px solid #999; border-radius: 3px; outline: none; white-space: nowrap; -webkit-user-select: none; cursor: pointer; text-shadow: 1px 1px #fff; font-size: 40px; margin:auto auto; text-align:center; line-height:80px; width:624px; …

Member Avatar for pixelsoul
0
233
Member Avatar for ashrraine_25

can u help me to create a sample of databases models, including heirarchical, relatioship, network and object oriented models. thank you

Member Avatar for ashrraine_25
0
94
Member Avatar for cambalinho

how can i do the control autosize? i think in these way: 1 - get the text rect: RECT textrect; int a=DrawText (test->hDC,inst->strCaption.c_str(),-1,&textrect,DT_CALCRECT); (the a isn't zero) 2 - testing the rectangle with image size: if(textrect.bottom<inst->imgtest.height()) inst->intHeight=inst->imgtest.height(); if(textrect.right<inst->imgtest.width()) inst->intWidth=inst->imgtest.width(); 3 - change the control size: SetWindowPos(inst->hwnd, 0, 0, 0, inst->intWidth, …

Member Avatar for cambalinho
0
203
Member Avatar for msajid.sarwar.7_1
Member Avatar for guru.charan.77377

This is an project title for a c++ project given by my collage, Plz can anyone guide me with some good reference books/journals for data visualization and word image identification using image processing so i can begin my project with some kind of background study. Any help is appreciated

Member Avatar for vieru.dorincristian
0
132
Member Avatar for emaus9

here's the html code <article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well researched and thorough. Below you will find our process of Translation in detailed.</p>--> <img src="Translation Process.jpg" alt="Translation Process" id="transprocess"> </td> …

Member Avatar for broj1
0
343
Member Avatar for Mr.M

Hi Dw I have a multi-threaded server that connects thousands of clients. The clients sends in data that the server must write to a text file. As there are a thousands of clients sending in data the server has about 60 texts files but the data sent by the client …

Member Avatar for JamesCherrill
0
11K
Member Avatar for emaus9

<article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well researched and thorough. Below you will find our process of Translation in detailed.</p>--> <img src="Translation Process.jpg" alt="Translation Process" id="transprocess"> </td> <td> <form id="form" action="formdata.php" …

Member Avatar for emaus9
0
385
Member Avatar for cutedipti

Hello all, I am implementing linked list programs in C. And for that i want to know more about Self Referential Structure in C. If anyone knows more detail information about it then please tell me. I am having one example here which helps you to understand more clearly what …

Member Avatar for mungara
0
1K
Member Avatar for Ghost0s

how to be good or lets say what should i do to be able to edit programs from hexadecimal

Member Avatar for Ghost0s
0
122
Member Avatar for uws101

Why the following printf of the buffer in the readWav() causes segmentation fault just after printing the first row to the screen? Are there any issues with the use of pointer in printf("%d\t %f\n", i, *buffer[i]);? #include <stdio.h> #include "sndfile.h" int readWav(const char *const fname, long *numFrames, int *sRate, float …

Member Avatar for rubberman
0
141
Member Avatar for choconom

Hi, I need to use getopt for a program called like myprogram.c file1 file2 file3 -t. Now I've read some examples about how to use switch cases for options with hypens (-t). But I don't get how to write this for my file1, file2, and file3 (they are arguments that …

Member Avatar for rubberman
0
180
Member Avatar for TObannion

So here is another assignment I am working on. I can't get to my schools computer lab due to family, job, etc. Here is the assignment: Structs file name: lab2.cpp 1. (3 points) Define a struct, named FullName, that contains the following fields: lastname - a string firstname - a …

Member Avatar for rubberman
0
364
Member Avatar for andrew mendonca

I'm trying to write the function: int sum(int x, int y) For this function, I need to return sum of m and n using only increment, decrement and unary -. m and n can be any integers e.g. if m is 4 and n is -5, the return value would …

Member Avatar for rubberman
0
143
Member Avatar for hurry.barket
Member Avatar for Ashish_16

What is the output for the code - void main() [ int i=4,x; x=++i_+_++i_+_++i; printf("%d",x); ]

Member Avatar for rubberman
0
105
Member Avatar for matrixdevuk

Hey guys. I've been putting some really good thought into this and I can't seem to figure out a good solution. What would be a logical way or sorting the following by their "number" value. $someArray = [ [ "country" => "US", "number" => 552 ], [ "country" => "GB", …

Member Avatar for matrixdevuk
0
135
Member Avatar for Whilliam

Hi guys. I've stayed away from web development for 2 years so forgive me if I'm a bit outdated. I'm planning to make a website. One of features is anti-spam registration. So, as the title says, I want to capture the client's IP Address and store it in the database. …

Member Avatar for matrixdevuk
0
278
Member Avatar for bonzo2008

I will not that the code below shall count up or down '********************************* Sumtax For lngIndex2 = 1 To ListView1.ListItems.Count lngTot2 = lngTot2 + ListView1.ListItems(lngIndex2).SubItems(5) Next Text10.Text = Format(lngTot2, "###0.00") if I have say 83.67 in a listview then in the text10.text shall be the same amount no differens text10.text …

Member Avatar for bonzo2008
0
159
Member Avatar for cambalinho

i'm owner draw some controls. here what i use for a button: case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; HIMAGELIST imlIcon=ImageList_Create(inst->imgtest.width(),inst->imgtest.height(),ILC_COLOR,1,1); ImageList_Add(imlIcon,inst->imgtest,NULL); HTHEME hTheme = OpenThemeData(inst->hwnd, L"BUTTON"); //fill the background with button face color FillRect(test->hDC, &test->rcItem,(HBRUSH) GetSysColor(COLOR_BTNFACE)); if ( test->itemState & ODS_SELECTED) // If it is pressed { DrawEdge(test->hDC,&test->rcItem,EDGE_SUNKEN,BF_RECT); // Draw …

Member Avatar for cambalinho
0
1K
Member Avatar for nadiam

hello i have this code: $event_id = $_POST['event_id']; $euser_id = $_POST['euser_id']; $getpic = $dbh->prepare("SELECT chair_id,chair_image,ext,posx,posy FROM cinema WHERE cuser_id = ? AND event_id = ?"); $getpic->bindParam(1, $euser_id, PDO::PARAM_INT); $getpic->bindParam(2, $event_id, PDO::PARAM_INT); $getpic->exectue(); but im getting error: `Fatal error: Call to undefined method PDOStatement::exectue() in.... on line 10`; line 10 being …

Member Avatar for nadiam
0
739
Member Avatar for OsaMasw

I've noticed recently there is a javascript tag generated in html code only while viewing page <script type="text/javascript" src="6_S3_"></script> search for it in file but couldn't find it, and am worried about this.

Member Avatar for Zvz
0
219
Member Avatar for Rabia_3
Member Avatar for chrjs

I am doing this assignment for my computer science course, and I have to write a function that determines if 'x' can fit into an n-bit, two's complement integer. I am not allowed to use any control statements or operators other than the [ICODE]! ~ & ^ | + << …

Member Avatar for mbelenske
0
3K
Member Avatar for CJMW

So I'm making a map editor with C# and XNA. I have currently got it setup so there is a windows for with a picture box, which the game is being displayed through. The problem is this, I want (0,0) to be the upper left corner of the picture box, …

Member Avatar for sfuo
0
2K
Member Avatar for petercat

The reason the label "disappears" may be due to the use of an absolute label location X and Y values after the Picturebox is made the parent. Try this: PictureBox1.SendToBack() 'Make labels transparent and set locations With Label3 .Text = "A" '.Location = New Point(62, 39) .Location = New Point(.Location.X …

Member Avatar for Santanu.Das
0
484
Member Avatar for andrew mendonca

I am trying to create a recursive function: double fifthRoot(double x, double maxError) In this function, I have to return y such that y^5 will be within maxError of x. Assume x > 0. Also assume maxError is big enough to prevent problems due to rounding. In order to make …

Member Avatar for sfuo
0
408

The End.