199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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" … | |
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? | |
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. | |
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.'" … | |
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: … | |
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 … | |
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.. | |
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 | |
How to prevent my site from website copier softwares | |
In alert box i anto show two buttons, 1. OK and 2. Cancel. If cancel it should redirect to previous page. How? | |
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> | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
#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 … | |
Can any one tell me what are the library book categories available for school library management? | |
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 … | |
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; … | |
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, … | |
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 | |
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> … | |
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 … | |
<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" … | |
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 … | |
how to be good or lets say what should i do to be able to edit programs from hexadecimal | |
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 … | |
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 … | |
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 … | |
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 … | |
i need ideas for my mcs 1st semester project in c coding | |
What is the output for the code - void main() [ int i=4,x; x=++i_+_++i_+_++i; printf("%d",x); ] | |
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", … | |
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. … | |
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 … | |
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 … | |
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 … | |
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. | |
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]! ~ & ^ | + << … | |
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, … | |
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 … | |
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 … |
The End.