64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BibhutiAlmighty

how can i stop looping sound in c# (visual studio) if (ConditionTrue) { SoundPlayer simpleSound = new SoundPlayer(@"C:\Users\BIB HUTI\Desktop\beep.wav"); simpleSound.Play(); } // it keeps playing and never stops.

Member Avatar for BibhutiAlmighty
0
195
Member Avatar for engrjd91

I have a simple class named as Invoice, in which I'm taking four instance variables to intialize PART NO, PART DESCRIPTION, QUANTITY PURCHASED & PRICE PER EACH ITEM. I have made getters and setters for each variable, also a method is created in the same class as InvoiceAmount which Calculates …

Member Avatar for engrjd91
0
223
Member Avatar for ankit1122

hello i have a php file named index.php. within that file two php scripts are there ... they have to share four $variables values with each other...how coud i do this?? global,superglobal or static??? `

Member Avatar for ankit1122
0
839
Member Avatar for RonKevinT.Manuela

Okay so Im gettin an error of Fatal error: Call to a member function fetch_array() on a non-object in C:\wamp\www\Usersearch\search.php on line 54...Im trying a tutorial on AJAX live search...http://ninetofive.me/blog/build-a-live-search-with-ajax-php-and-mysql...I only replaced the database connection to my own database... here's the Usersearch.php <?php /************************************************ The Search PHP File ************************************************/ /************************************************ …

Member Avatar for RonKevinT.Manuela
0
3K
Member Avatar for aluhnev

Hi all,have this code: Hi all,have this code: How do i implement binary search to display item.. found at index.. #include "stdafx.h" #include<fstream> #include<iostream> #include<string> #include<iomanip> using namespace std; struct sDetails{ int kNum; string Name; }; int _tmain(int argc, _TCHAR* argv[]) { sDetails students[5]; ifstream infile; infile.open("student.txt"); for (int i …

Member Avatar for tinstaafl
0
154
Member Avatar for nadiam

hello. I have a page with two tables, .contact-names and .guest-list, and a drop down list. by default the tables are empty but shows message "please select an event" from the drop down list. when an event is selected .contact-names is loaded with names from database and .guest-list remains empty. …

Member Avatar for mattster
0
245
Member Avatar for psichoman5

Hi!, i need to convert the string of a function in binary. In this case, i need to convert the return of the function swap() into binary to compare it in Mensaje_codificado() but it doesn't work. This is my script: - Thanks! Binary function: def numero_binario(x): i = 0 b …

Member Avatar for Gribouillis
0
2K
Member Avatar for PinoyDev

Good day! I have problems running my union all query..It only executes the first select statement but the 2nd and 3rd union was not executed. My backend DB is MSAccess 2003.. If rs_dailySales.State = adStateOpen Then rs_dailySales.Close SQL = "SELECT SUM(NetAmount) AS totalCashSales FROM InvoiceMain WHERE InvoiceType='Cash' AND DateOInvoice=DateValue('" & …

Member Avatar for pritaeas
0
221
Member Avatar for DragonMastur
Member Avatar for Santanu Das

I use SQL Server2008 R2. From yesterday, I get a problem to open it. When I try to open it by Microsoft SQL Server Management Studio an error is occurring. And I also get the same error when I call it from vb.Net2010. I am attaching here the error picture. …

Member Avatar for Santanu Das
0
172
Member Avatar for cannon_1

I have built Boost from the website using ./bootstrap.sh ./b2 install [IMG]http://i.stack.imgur.com/VDrHd.jpg[/IMG] [IMG]http://i.stack.imgur.com/ZaBfk.jpg[/IMG] I think all are installed properly. I am trying to use Xcode to include the library of boost:thread.My code links to the header file properly with " #include "boost/thread.hpp"" commented, as seen from the following: [IMG]http://i.stack.imgur.com/XW1qE.jpg[/IMG] However, …

Member Avatar for mike_2000_17
0
364
Member Avatar for suavedesign

Using jquey, I am making some elements on my site fade in and out. http://www.boneiolam.org/ns/ - The part I am referring to is on the grey background, under "services". How do I make the effect occur on only one instance of the element at a time? For example, when you …

Member Avatar for suavedesign
0
216
Member Avatar for Tycellent

So i've decided to use SFML and i'm just trying to figure out its advantages and disadvantages...I've looked around and this is what i've got so far. Advantages: * Cross Platform * OO Design * Simple and fast (subjective) Disadvantages: * Quite new Any additional thoughts will again appreciated

Member Avatar for Sarkurd
0
684
Member Avatar for Jinxx

I have written a code that asks the user a name (ex.candy) and a number then it stores it in a stuff.txt file like so: " candy 20 candy 40 decorations 70 costumes 40 candy 60 " When reading from that stuff.txt file, how can I add the running total …

Member Avatar for tinstaafl
0
810
Member Avatar for SimonIoa

I have developed a script so that users can upload audio files (mp3). The problem is that you can't tell when the uploading has finished and so the user may submit the form. The load status that i have developed keeps showing the loader image without stopping. I want help …

Member Avatar for SimonIoa
0
160
Member Avatar for SimonIoa

I am getting this on my error log Cannot serve directory /home/ro265852/public_html/uploads/photos/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive does anyone tell me what it means?

Member Avatar for SimonIoa
0
458
Member Avatar for moaz.amin.37

i write a code of multithreading in which arise an race condition code is below class Race1{ public void show(String s){ try{ System.out.print("["+s); Thread.sleep(1000); }catch(InterruptedException e){ e.printStackTrace(); } System.out.println("]"); } } class Checking implements Runnable{ Race1 ob=new Race1(); String s; public Checking(String s){ this.s=s; } public void run(){ synchronized(ob){ ob.show(s); …

Member Avatar for vantrendin
0
247
Member Avatar for shilu2

I am trying to show data on datagridview but error occurs Form1.vb code is as below Imports System.Data Imports System.Data.Sql Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlDataReader Imports System.String Imports System.Configuration Imports System.ComponentModel Public Class Form1 Dim con As SqlConnection Dim cmd As SqlCommand Dim dr As SqlDataReader Dim da As SqlDataAdapter Public …

Member Avatar for shilu2
0
503
Member Avatar for xuexue

Hi! I am doing the programming on my computer and it works fine-the program, the database itself, inserting to the database is also working fine. But when I publish it and install the program on another computer. It crashes and does not execute the `INSERT` command. Here is my code. …

Member Avatar for xuexue
0
311
Member Avatar for xuexue

So here's the error in the Event Viewer. Application crashes when inserting data to the database. DAtabase: AS/400 iSeries DB2 Faulting application name: 242-CEWE.exe, version: 1.0.0.0, time stamp: 0x542a2ac6 Faulting module name: MSVCR80.dll, version: 8.0.50727.6195, time stamp: 0x4dcddbf3 Exception code: 0xc000000d Fault offset: 0x00022b5c Faulting process id: 0x12ec Faulting application …

Member Avatar for xuexue
0
199
Member Avatar for joshl_1995

Hello Community, I was wondering what I would use, first off I'm running something by my self so do I use us or me? (Example contact us or contact me). Do I just use us to just pretend that there is more than one person running the service?

Member Avatar for joshl_1995
0
266
Member Avatar for aluhnev

Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row …

Member Avatar for Lerner
0
731
Member Avatar for Dudestreet

Hi Team, I understand that there are numerous number of Articles with the following Title and I should have gone through them before posting but believe me, I've done it all. Either way, I'm not getting to a solution. Hope I get some help here.. # So Here is the …

Member Avatar for oussama_1
0
299
Member Avatar for moaz.amin.37

when we create a thread like this class Run implements Runnable{ public void run(){ //You code } } class Helloworld{ public static void main(String args[]){ Thread t1=new Thread(new Run()); Thread t2=new Thread(new Run()); } } in above code thread t1 and thread t2 is creating in `main()` method its mean …

Member Avatar for JamesCherrill
0
274
Member Avatar for rose_2

well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ ..

Member Avatar for Schol-R-LEA
0
374
Member Avatar for kingk110

Hello I was asked to show relations between data in a graph. For example object0 is related to object1 and object2 object1 is related to object 2 object2 is related to object0 and object1 object3 is related to object 1 then the graph will be as shown here [Click Here](http://postimg.org/image/ewn4i6prh/) …

Member Avatar for kingk110
0
288
Member Avatar for Nabeel_2

view: <?phpforeach($row as $b):?> <?php echo $b->Product_Name ?></h3> <?php echo $b->Price ?></p> </div> <?php if ($b->Option_name):?> <?php echo form_label($b->Option_name, 'option_'.$b->Product_ID ); ?> <?php echo form_dropdown( $b->Option_name, $b->Option_value, NULL, 'Product_ID= " option_' .$b->Product_ID. ' " ' );?> <?php endif; ?> controller: public function product_detail($Product_ID){ $this->load->model('model_products'); $data['row']= $this->model_products->get_detail($Product_ID); $this->load->view('product_detail',$data); } model: function …

Member Avatar for pzuurveen
0
6K
Member Avatar for Priti_P

Hello, In my database schema, for one fiels "exp" i have made it as float(3,2) it stores value properly up to 9.99 but for then it goes out of range and stores 9.99 how?? whats wrong in this? i expect it store values up to 999.99 but it stores uo …

Member Avatar for Priti_P
1
165
Member Avatar for koneill

In PHP - I'm trying to pass a second item &show_sill via the URL string and keep getting this error: - Parse error: syntax error, unexpected '&' what is the correct syntax when trying to utilize mutliple items via the querystring: header("Location: submit.php?upload_message=image uploaded&upload_message_type=success&show_image=".$_FILES["image_upload_box"]["name"]&show_sill=".$_FILES["imgOrgSrc"]["name"]); exit;

Member Avatar for koneill
0
176
Member Avatar for Asif_6
Member Avatar for munchlaxxx

How can you view the values of the registers in Visual Studio? I think they should appear in the Output section at the bottom of the screen. I'm using Visual Studio 2013 for Desktop.

0
112
Member Avatar for davy_yg

Hello, I would like to create a confirmation box for delete. Do you want to delete this row? [Yes] [No] How? How to create a colorful confirmation box? ok, I find the demo link [demo link](http://myclabs.github.io/jquery.confirm/) NOw, I wonder how to merge php with jquery ? So if someone click …

Member Avatar for mattster
0
2K
Member Avatar for Evil_genius82

Hi all, I plan on deleting records which are older than one week from my MySQL database.I do not have access to cron on my current server so I plan on using cronless.com to schedule a request on the following php script. <?php $cron_id = $_GET['comm']; if($cron_id == 20){ require_once …

Member Avatar for Evil_genius82
0
250
Member Avatar for funnym3

I have a problem with my vb payroll project. When I click the Edit Button a msg pop-up saying that "Input string was not in a correct format." and when click the Delete button, msg is "Fatal error encountered during command execution." I tried to change the values of @g …

Member Avatar for funnym3
0
569
Member Avatar for HuePig

Hi, say I have `<input type="checkbox" id="box1" />` and `<div id="createhere"></div>` and in a javascript file I have: function(){ var box=document.getElementById("box").checked; var s = ""; if(box){ s = "<input type="text" name="text" id="text" />" document.getElementById("createhere").innerHTML = s; }else{ s = ""; document.getElementById("createhere").innerHTML = s; } } Now this works BUT it …

Member Avatar for HuePig
0
150
Member Avatar for Deep Modi

Hello guys, I want to know how to convert the JPG file into the WAD file ? the thing is not common as all. its not about to change extension, I need it to convert it as like "HI tag Converter" or "Decal Converter" or "wally" tec... I just google …

Member Avatar for Deep Modi
0
3K
Member Avatar for koneill

I have some code that allows one to move an image by clicking links (move left, move right etc) - the code works in IE but not in Google Chrome - therefore I have added to the JavaScript a check for this via g = (document.getElementById) ? 1 : 0; …

Member Avatar for koneill
0
374
Member Avatar for Fo.katia

Hello guys, I really need help with this one. Can you please help me create a program in Python that displays information about a rectangle of any size. Input: two mouse clicks for the opposite corners of a rectangle Output: Draw the rectangle. Print the perimeter and area of the …

Member Avatar for vegaseat
0
3K
Member Avatar for OnEaglesWingsjf

What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4)

Member Avatar for vegaseat
0
340
Member Avatar for shammi.khan.73

Right now I'm trying to create an oppish translator. That is, after a consonant or several consonants in a row, you add 'op' to those letters. As an example, cow would become copowop or street which would become stropeetop. This is what I have so far: def oppish(phrase): #with this …

Member Avatar for Gribouillis
0
379
Member Avatar for RonKevinT.Manuela

So, my groupmate designed the look of our website...I was trying to integrate it with the other code....I decided to first do the login form....i dont know but I cant get it to work...-_- 1. lets start from the config.php: <?php ob_start(); session_start(); include('functions.php'); //database credentials define('DBHOST','localhost'); define('DBUSER','root'); define('DBPASS',''); define('DBNAME','sics'); …

0
120
Member Avatar for shahera.arafat

**this is the code and it keeps giving me a red line under (z=v2*v1),,please help me finding the mistake :( :( thanks ^_^ #pragma once using std::cout; using std::cin; using std::ostream; using std::istream; class vector{ public: friend ostream& operator<< (ostream&,vector&); friend istream& operator>> (istream&,vector&); friend vector operator*(vector &,vector &); vector(void); …

Member Avatar for shahera.arafat
0
206
Member Avatar for ndowens

I am trying to learn C++. I wrote a little calculator using class to see if I can do it and give some practice. The following is the code: [CODE]#include <iostream> using namespace std; class Calculator { float a, b; public: float add(float, float); float subtract(float, float); float multiply(float, float); …

Member Avatar for egidijus.aranauskas
0
4K
Member Avatar for shammi.khan.73

I want to calculate EXACT past 30 days time period in php from now (for example 30 aug 14 23:06) to 30 days back (for example 1 aug 14 23:06). I wrote this where current datetime goes in $d1 and past 30 days datetime goes in $d2 but somehow i …

Member Avatar for kaleemullah360
1
4K
Member Avatar for lewashby

I'm trying to add /home/garrett/bin/libpy/ to my python path so I can import my own libraries, I would also prefer not to overwrite the default python path but rather append my own path to the default. When I try to `echo $PYTHONPATH` or `$PYTHONHOME` I get nothing and even if …

Member Avatar for Gribouillis
0
705
Member Avatar for JOSheaIV

Alright, so the following has stumpted me and a few others in the office, and we just can't figure it out. I have develope a program that allows us to go out to a specific database and search one of the fields based on specified values. Now that seems all …

Member Avatar for diafol
0
5K
Member Avatar for aluhnev

Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row …

Member Avatar for aluhnev
0
380
Member Avatar for Jeroen Mathon

I can't see to wrap my head arround the meaning of this error. Its becouse im converting integer functions to character functions. src/dataio.cpp: In function ‘char* getName(char)’: src/dataio.cpp:118:17: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] readUser(uid); ^ src/dataio.cpp:60:6: note: initializing argument 1 of ‘void readUser(char*)’ void readUser(char* uid) ///Reads …

Member Avatar for Jeroen Mathon
0
181
Member Avatar for Ghost0s

Hi everybody im a little bit confused about how routers (ethernet and wireless) and data cables such as RJ45 could handle and manage the huge data and requests at same time thank u for answering ^^ !

Member Avatar for L7Sqr
0
187
Member Avatar for Jonathan_7

Hello I am an absolute begginer and am working on a paint calulator program. I am trying to return the price from the paintformula ex: price = paintFormula(wallArea,price,height,length,width); or paintFormula(wallArea,price,height,length,width);. When I call the method I keep getting errors like: PaintCalculator2.java:33: error: variable price might not have been initialized. import …

Member Avatar for JamesCherrill
0
166

The End.