199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coiseng

Hi, I'm newbie with C++ and I found an example which I need http://ideone.com/Eikbr4 But I've a question, how do I seperate this piece of code into .h and .cpp.. I tried to do something similar on my own but I'm having struggling with it after multiple try.. I've read …

Member Avatar for tinstaafl
0
319
Member Avatar for techyworld

Hi i need some help. I am developing a java web application using jsf (front-end) and primefaces. I have a drop down list in my .xhtml page containing Car,Bus,Other. On clicking 'Other', i want a text box to appear.Can you advice me how to do it? i have a java …

Member Avatar for LastMitch
0
198
Member Avatar for robert_anderson

I would like to connect Softphones with each other. I would like to check <B>what phone calls are being in progress</B> in the system, more precisely, between the actual phones. If it is possible, I would like a solution for the case when any of the participants calls the other, …

Member Avatar for LastMitch
0
424
Member Avatar for rhodoscoder

I'm trying to create a simple blog and for some reason , it doesnt retrieve the dummy content from the mysql database. here is my entire code <?php $db_host = "host"; // Place the username for the MySQL database here $db_username = "root"; // Place the password for the MySQL …

Member Avatar for tpunt
0
162
Member Avatar for josephwakiro

STAR WAYS BUSES is a new bus that wants to launch services in city A but to ease its work it needspre-paid tickets.it plans to use zonal pricingsystems as follows; i).ticket price per day between zone 2 and 1 is $2000 ii).ticket price per day betweenzone 3 and 1 is …

Member Avatar for morad jbilo
0
167
Member Avatar for cppgangster

Hi there, I have a problem in finding where is the mistake in my code.The problem is that I am not getting correct output of printf. As you can see I am derefferencing the pointers pd_f and pd_C in the brackets just before they are multiplied. The problem is removed …

Member Avatar for mike_2000_17
0
132
Member Avatar for cambalinho

if C++ isn't a real OOPL, what left? with another words i want study(theory\concepts) the real OOPL. can you give me a link with these information?

Member Avatar for cambalinho
0
390
Member Avatar for skyyadav

How to sort vector<int> v{3,2,7,6,5,8,1,2,3,4,5}; in decreasing order using function object. I did using lambda expression sort(v.begin(),v.end(),[](int a , int b){return a > b;}); But How we do using fn object

Member Avatar for mike_2000_17
0
276
Member Avatar for kay19

Hello. Just learned about hashmap a week ago. My code can add an Employee's name/id/performance scale based on user input. I allow the user to also remove an employee by allowing user to input name/id to remove. However, when the user prints out sorted last name, the name the user …

Member Avatar for kay19
0
151
Member Avatar for can-mohan

Hi , I am just curious to know that , why i am not able to compile below code if i define access function inside the class. i am able to execute another friend function inside the class. Does it mean class scope is responsible for the execution of other …

Member Avatar for can-mohan
0
245
Member Avatar for vyalineconstantino

Uhm, so hello! We have this project in our CS course that states that we have to generate our own Bingo Game program, we can use help or we can let a person/people work on it as long as we can understand it. But I chose the latter part of …

Member Avatar for Moschops
0
2K
Member Avatar for krystosan

if i try to dump from shell like this `python -c 'help("modules")' > ~/Desktop/modules.txt` but if I try to execute from within the python like this `>>os.system("python -c 'help("modules")' > ~/Desktop/modules.txt")` i get error File "<stdin>", line 1 os.system("python -c 'help("modules")' > ~/Desktop/modules.txt") ^ SyntaxError: invalid syntax once i get …

Member Avatar for krystosan
0
204
Member Avatar for accra

Hi all, I have this ajax script that accepts only one value at a time. I want to send more than one value to mysql for processing... but am not so good with javascript, pls point me in the right way....thanks // auto select vehicle # and fleet # <script> …

Member Avatar for accra
0
410
Member Avatar for TIM_M_91

Ok so I've created a random captcha that uses integer numbers however I wish to only used char's. Therefore what must I do to this code: <?php session_start(); $code=rand(1000,9999); $_SESSION["code"]=$code; $im = imagecreatetruecolor(50, 24); $bg = imagecolorallocate($im, 22, 86, 165); $fg = imagecolorallocate($im, 255, 255, 255); imagefill($im, 0, 0, $bg); …

Member Avatar for techofunda
0
136
Member Avatar for skyyadav

int main() { map<string,size_t> count; string word; while(cin >> word) count[word]++; --------(1) for(auto it=count.begin();it!=count.end();++it) cout << it->first << ": "<< it ->second <<endl; I donot understand the code particularly the line (1) Could anyone can explainÉ

Member Avatar for techofunda
0
214
Member Avatar for PriteshP23

Hello, I have one tar.Z file. I have to run shell script **daily** as it is required to update the database. customer_yyyymmdd_hhmi.tar.Z sales_ yyyymmdd_hhmi.csv (5 MB - 20 MB) purchase_ yyyymmdd_hhmi.xml (650 MB - 950 MB) I have made small part of XML file. There are 4 parts. There is …

Member Avatar for PriteshP23
0
372
Member Avatar for chdboy

I have this code which saves the value into database from JSpinner SpinnerListModel monthModel = new SpinnerListModel(); String[] monthStrings = {"1Month","3Month","6Month","1Year"}; //get month names monthModel = new SpinnerListModel(monthStrings); JSpinner spinner = new JSpinner(monthModel); statement.setString(28,(String)monthModel.getValue().toString().toUpperCase()); But how to get that value back for Editing? I tried spinner.setText((String)monthModel.getValue(),29); But it says The …

Member Avatar for Seldar
0
519
Member Avatar for dreking6

i recently took up a project on openvpn when i got the source code of an openvpn application written in python by ivanzoid http://code.google.com/p/pyopenvpnman/ but after laying my hands on many things and reshaping the application i couldnt go any further because of some errors detected 1.writing to a config …

0
151
Member Avatar for dreking6

i am working on a project but this parts seems to stall me i want to be able to write to a text file to change just two lines of d file say line 1 and 3 using wxwidgets i will appreciate helps nd suggestions thanks

Member Avatar for dreking6
0
621
Member Avatar for gahhon

protected string getEmailAddr() { SqlConnection conGet = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdGet = new SqlCommand("SELECT Email FROM Member WHERE Username=@username", conGet); cmdGet.Parameters.AddWithValue("@username", strUsername); conGet.Open(); SqlDataReader dtrGet = cmdGet.ExecuteReader(); if (dtrGet.Read()) return dtrGet[0].ToString(); else return null; dtrGet.Close(); conGet.Close(); } `dtrGet.Close();` Occured the Unreachable Code Detected with Green Colour Underline. How can i …

Member Avatar for pritaeas
0
202
Member Avatar for divva

i have to develop a code for coversion of video files from raw format to mp4 in linux os using cpp.... i also have to save the resulting mp4 format... friends can anyone plz help me do this i ll be very thankful to you

Member Avatar for divva
0
220
Member Avatar for ovefpi

Hi HOw r u? i want to know the download website for Nokia Windows Phone. NOkia windows mobiles software needed. where can i get it?

Member Avatar for rubberman
0
90
Member Avatar for AODfan

Hi all, I am having an issue with getting my Jbuttons and JComboBox alignment properly in the JPanel. I have tried changing the coordinates of the GridLayout around to try to satisfy, but they are working properly. I am trying to get my radio buttons to the far right and …

Member Avatar for chdboy
0
631
Member Avatar for andrewriebel

Hello, all. The following is a problem I'm currently working on. I can't get it to run like the problem asks. Any help would be greatly appreciated.

Member Avatar for JamesCherrill
0
158
Member Avatar for adrive

hi again, i'm wondering if it's possible to return an array from my php generated content to ajax's responseText. I tried echoing back the whole array variable but can't seem to fully receive it in javascript. somewhere in file1.php <?php $myArray = array(); $myArray['name'] = "ajax tech"; $myArray['age'] = 20; …

Member Avatar for ivan.danshin.9
0
5K
Member Avatar for chdboy

When I click on Button which fetch records from the database it works fine public void fetchrecords() throws SQLException { Statement stmt = null; String query = "select * from Employer where Fileno=1"; try { stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); rs = stmt.executeQuery(query); while (rs.next()) { firstNameTextField.setText(rs.getString(2)); lastNameTextField.setText(rs.getString(3)); addressTextField.setText(rs.getString(4)); //and more records. …

Member Avatar for chdboy
0
202
Member Avatar for gahhon

I have a page which allow user to login. Once they are login, a cookie will create with a value and redirect the user to specify pages.. And a master page will be load. Inside the master page will retrieve the cookie value and display if the cookie value not …

Member Avatar for gahhon
0
1K
Member Avatar for littledevils326

I have an HTML table which displays records from a database. The data are stored in sql database and the records are retrieved as a JSON object and then appended to the table. Rather than loading all the data in the table, I have a button which allows the user …

Member Avatar for LastMitch
0
912
Member Avatar for while(!success)

Hi guys, I've been trying to implement autocomplete on a form I'm creating and was successful with using a global variable as the source. Now i'm trying to use a hiddenfield as the source, but it does not seem to work. Firebug shows the error "414 Request-URI Too Long." Is …

Member Avatar for LastMitch
0
509
Member Avatar for NoUserNameHere

I was trying to get the basics of angular.js down by following this video: http://www.youtube.com/watch?v=i9MHigUZKEM#t=44m52s The routing in the video is outdated so I tried to fix it with by including the new required arguments like ['ngRoute']. I can't figure out why it isn't working. Am I missing addtional things …

Member Avatar for LastMitch
0
209
Member Avatar for bharathidass

how to create the dynamic page in online shop(eg:if i add the product detail and image then press sumit mean how to create the next page with image )

Member Avatar for LastMitch
0
110
Member Avatar for Rizi004

Hi there! I have a PHP code that post on timeline everthing is working perfectly fine only it show text two times i have attached the code and the image please tell me where is the issue. <?php $re4=mysql_query(" SELECT FBID FROM users WHERE U_ID='$U_ID' "); while ($ro4=mysql_fetch_assoc($re4)){ extract($ro4); } …

Member Avatar for LastMitch
0
730
Member Avatar for Cristian_1

Running Windows 8.1 Pro Preview (pb part of the problem) and trying to set up Mercury mail server. No matter how I start the config (via XAMP, directly from mercury.exe, as user or as Administrator) the settings are not saved. I exit it using the File\Exit Menu items. I edited …

Member Avatar for LastMitch
0
272
Member Avatar for annyangel

** # plz help me to implement this code in php class # ** index.php <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("crud",$connect); $username; $password; if(isset($_POST["insert"])){ if($_POST["insert"]=="yes"){ $username=$_POST["username"]; $password=$_POST["password"]; $query="insert into user(username, password) values('$username', '$password')"; if(mysql_query($query)) echo "<center>Record Inserted!</center><br>"; } } if(isset($_POST["update"])){ if($_POST["update"]=="yes"){ $username=$_POST["username"]; $password=$_POST["password"]; $query="update user set username='$username' , password='$password' where id=".$_POST['id']; if(mysql_query($query)) echo …

Member Avatar for LastMitch
0
137
Member Avatar for fx.eko

When I try to migrate from SQL Server 2000 to SQL Server 2008 R2 Express, when I run the application program there is an error message transaction aborted by the trigger, whereas before when I was using SQL Server 2000 does not exist error. after there was a note on …

Member Avatar for LastMitch
0
294
Member Avatar for bumbumpaw

Create Procedure `SelectProduct` (IN prod VARCHAR(70)) BEGIN SET @sql = null; SELECT GROUP_CONCAT(DISTINCT CONCAT( 'max(case when Attribute = ''',Attribute,'" Then p.Attributevalue end) as `',Attribute,'`' ) INTO @sql FROM tblAttribute; SET @sql = CONCAT('Select pr.product, ',@sql,' from tblproduct tblproduct pr LEFT JOIN tblproductattribute p using(productid) left join tblattribute a using (attributeid) …

Member Avatar for LastMitch
0
298
Member Avatar for rahul.pragma

The problem is that, Server doesn't not able to open this url: https://gw1.cardsaveonlinepayments.com:4430/ OR https://gw3.cardsaveonlinepayments.com:4430/?WSDL When you run this url from your browser then it would work and show you some kind of data like: "GetCardType CardDetailsTransaction CrossReferenceTransaction ThreeDSecureAuthentication" But when we try open the url using script then server …

Member Avatar for hag++
0
798
Member Avatar for shavezphp
Member Avatar for gayzlein

hi all i want a program that allow me to import excel data into access database using vb.net knowing that the excel data contains duplicates and blanks.my table looks like this: Reference quantity unit_cost turnover once the data is imported, I want to perform calculations to calculate the cumulated turnover …

Member Avatar for gayzlein
0
2K
Member Avatar for Jamblaster

I am having a problem getting this code to work in deleting records from a database. The path to the database is correct and I have another couple of event handlers that work fine using this same datbase so I know that the path to the Db is good. Any …

Member Avatar for Jamblaster
0
179
Member Avatar for Phenol

I am a Python (2.75) neophyte and need to reformat a large data file. A sample is below: P1 01 01 1991 100.00 P1 01 01 1992 111.30 P1 01 01 1993 97.58 I1 01 01 1991 0.0 I1 01 01 1992 20.0 I1 01 01 1993 32.4 I need …

Member Avatar for rlvaugh
0
159
Member Avatar for YumnaZia

I dont understand why the image isnt appearing! please help.. import javax.swing.*; import java.awt.*; //import java.awt.event.*; public class level2 extends JFrame{ Container con= getContentPane(); ImageIcon bg= new ImageIcon("D:\\Raptor\\background3.jpg"); JLabel back= new JLabel(bg); level2(){ setDefaultCloseOperation(EXIT_ON_CLOSE); setLayout(null); setSize(1300,700); back.setBounds(0,0,500,500); con.add(back); setVisible(true); } public static void main(String[] args) { new level2(); } }

Member Avatar for Seldar
0
102
Member Avatar for can-mohan

Guys, I need to write thread safe singleton class for my assignment. below is the code snippet for factory method in singleton class, I will appreciate if anyone is having suggestion for the same. *MySingleton * MySingleton::GetInstance() { if (m_pOnlyOneInstance == NULL) { pthread_mutex_lock(&mutex); m_pOnlyOneInstance = new MySingleton(); pthread_mutex_unlock(&mutex); } …

Member Avatar for mike_2000_17
0
4K
Member Avatar for suresh.govindula
Member Avatar for wakz_1

I have created a linked list and I wish for the user to enter a Station and then the output is the number stored for that station. LinkedList myList = new LinkedList(); myList.addFirst("London", 5); myList.addNode("Manchester ", 10); myList.addNode("Liverpool", 20); myList .addNode("Birmingham", 50); This is the input for the user to …

Member Avatar for rubberman
0
1K
Member Avatar for krystosan

why this works `> varhelp = __import__("sys")` and this doesn't`> varhelp = __import__("sys.path")` the second one throws: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named path then how to achieve the second one?

Member Avatar for woooee
0
188
Member Avatar for Sanjay_6

My site is http://career.guru99.com/ I am using Wordpress 3.6 some content like bullets in document is hide because of advertise in Wordpress. You can check here what i am talking about - http://screencast.com/t/W9Px6SUqpT so how can i overcome this issue. i am facing this problem from 4 months but still …

Member Avatar for IIM
0
148
Member Avatar for rowly

Hi, I am having a problem with multiple series chart where the 0 value will be displayed on the graph as a straight line. i want display only data that doesn't have a 0 value. i have also check those two links wher they said this is a bug in …

Member Avatar for hellooo12
0
798
Member Avatar for gahhon

Is that any way/tricks that able to validate the end-users choosen date is not greater than today?

Member Avatar for gahhon
0
68
Member Avatar for rv1990

This is the code I made for my facebook application but it is not giving the result. This code generate friends name, id and gender and I simply want to display in my apps. Please help me in solving the problem? <section> <?php $friends = idx($facebook->api('/me?fields=friends.limit(10).fields(gender,name)'),'data', array('access token' =>$accessToken)); ?> …

Member Avatar for talibhassan3211
0
567

The End.