199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fahadkalis

Hello everyone, I am working on Linux PC and want to make a program to get data from RaspberryPi(another Linux machine). Both machines are connected together by CAT5 cable directly without any Switch or Hub. Linux PC hostname is mike and IP is 192.168.93.12 Raspberry hostname is pi and IP …

Member Avatar for fahadkalis
0
245
Member Avatar for Ramesh Konda

<?php header("Content-Type: image/jpeg"); $im = imagecreatefromjpeg('000.jpg'); // get the image size $w = imagesx($im); $h = imagesy($im); // place some text (top, left) imagettftext($im, 60, 0, 300, 100, 0xFFFFFF, 'vani.ttf', 'వాసి'); imageJpeg($im, "001.jpg", 85); imagepng($im, $save); imagedestroy($im); ?> Above i the code what i did? But its not giving proper …

Member Avatar for imti321
0
218
Member Avatar for hell hansen

Hi guys, I'm trying to connect my new project with PDO, and for simple reason witch i don't know and i've no idea i'm getting connection failedSQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: NO) I tried everything was in my mind, i tried log to mySql by terminal, …

Member Avatar for hell hansen
0
1K
Member Avatar for Nebil

Hi guys, I've got a little problem.A part of the project I'm working on reads data from an excel file and stores it in the database. It works fine for 15-20 records but fails after that. I have properly closed the connection and the reader I'm using. But ut doesn't …

Member Avatar for Nebil
0
122
Member Avatar for ali11

Can someobody tell me why i only see blank window. import java.awt.*; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.JTextField; public class dic extends JFrame{ public JLabel label1,label2,label3,label4,label5,titlel; public JTextField ew,fw; public JTextArea txar1,txar2; public JPanel …

Member Avatar for JamesCherrill
0
220
Member Avatar for Lacrecen

in trying to clear all the input boxes on my form.. i have a textbox and combobox.. and i have found the code for clearing all textboxes which is: For Each Control In Me.Controls If TypeName(Control) = "TextBox" Then Control.text = "" End If Next the only thing to do …

Member Avatar for Lacrecen
0
3K
Member Avatar for omnizw.ani
Member Avatar for rubberman
0
78
Member Avatar for bc230201818

brushing Up the practise of class and its implimentation #include<iostream> #include<stdlib.h> #include<conio.h> #include<string> #include<Windows.h> using namespace std; class Student{ private: int ID; string IDch; string name; public: Student(){ int ID = 0; string name; string IDch; } int getID(){ return ID; } void setID(int ID){ this->ID = ID; ID = …

Member Avatar for bc230201818
0
601
Member Avatar for bc230201818

A simple function #include<iostream> #include<string> #include<conio.h> #include<stdlib.h> using namespace std; class name{ //******************************* private: string fName; string mName; string lName; int ppl; //******************************* public: int getPpl(){return ppl;} void setPpl(int ppl){this->ppl=ppl;} name(){fName;mName;lName;ppl=0;} string getfName(){ return fName;} string getmName(){ return mName;} string getlName(){ return lName;} void setfName (string Aname){this->fName=Aname;cout<<" X. Please Enter …

Member Avatar for bc230201818
0
201
Member Avatar for <M/>

I created a form a long time ago (roughly 2 years ago) and I stumbled onto a problem. I know how to record a contact form input when it comes to them typing in whatever they have to say (such as their name) but how do I get it so …

Member Avatar for <M/>
0
600
Member Avatar for nuller

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Member Avatar for Duoas
0
497
Member Avatar for mohamed_44

am trying to implement the State Space of the game towers of hanoi the problem i cannot implement a deep copy to an object the results are very wrong :) and am in a hell miss , all am trying to do is to insert the potential changes between bigs …

Member Avatar for JamesCherrill
0
224
Member Avatar for CSharpUser

I have a Windows Forms application (not WPF) in which from the main form (UI thread) I am creating a separate thread to perform a long period of test execution. The idea is that the user starts the testing by clicking a button on the main form; when the user …

Member Avatar for lolafuertes
0
288
Member Avatar for mark2326l

I'm trying to calculate the number of days a particular property is vacant. From this query... SELECT Properties.PropId, Tenants.TenantId, Tenants.PropertyID, Tenants.TenantAdress, Tenants.MoveIn, Tenants.MoveOut, Properties.P_GpNo FROM Properties, Tenants WHERE Tenants.PropertyID=Properties.PropId AND Properties.P_GpNo ="3" AND TenantAdress = "5" ORDER BY Tenants.TenantId It returns.. MoveIn MoveOut 5 4 005 5 2012-12-28 2013-04-13 3 …

Member Avatar for mark2326l
0
290
Member Avatar for PinoyDev

I have a datagrid on the form bind with recordsets. I need to know if is it possible to assign that datagrid object into a variable? I have created a preliminary code but its not working dim dbgridvar as DataGrid Private Sub Assign_Click() set dbgridvar=Form1.Datagrid1 End Sub Thank you for …

Member Avatar for PinoyDev
0
175
Member Avatar for Duoas

Hey all. I'm always frustrated that I cannot seem to find a reference that shows when a feature was *introduced* in Delphi. For example, to use ErrOutput, I have to manually create that value in D5. But what about D6? or D7? Does such a reference exist?

0
113
Member Avatar for AndresOend

Hi, I want to use Lazarus on my mac, and I went through the steps, installed the three packages at http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus%201.2.6/ . I also typed xcode-select --install into my terminal, which installed some necessary command line tools. The 'Configure Lazarus IDE' has recognised the compiler, FPC sources, and 'make', but …

Member Avatar for Duoas
0
925
Member Avatar for vizz

WebSocket is working well for **ws://echo.websocket.org/** but not working on **localhost** I have working example, where WebSocket works for **ws://echo.websocket.org/** As follows, <!DOCTYPE HTML> <html lang = "en"> <head> <title>WebSocket Test</title> <meta charset = "UTF-8" /> <style type = "text/css"> h1 { text-align: center; } .error { color: red; } …

Member Avatar for imti321
0
2K
Member Avatar for vizz

I want to stop direct access for dynamic url. If someone tries to access next link **http://abc.com/gallery.php?id=1** then redirect to **error404** page Value of **id=1** is dynamic and changes frequently. How to redirect if **id=2** or any other value (0 to **∞**)? **php redirect code** $curPageURL="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $url="http://abc.com/gallery.php?id=1"; if($curPageURL == $url) …

Member Avatar for almostbob
0
456
Member Avatar for LocoBird

:eek: Hi this is a simple game i made. its a 2D mario style game project file is Dev C++. I'm new to posting so i hope i did this right and i hope you like it. Any question e-mail me at <<email snipped (read the rules)>> or contact me …

Member Avatar for Tihami12
0
1K
Member Avatar for Blueie

Hello I am aiming to have an aspx file with a TextBox for the user to type in his email. When I leave the field blank, and press 'Submit', I get: "A password reset link has been sent to your email address" Why don't I get the error message: If …

Member Avatar for Blueie
0
226
Member Avatar for lizard4

For a project, i have to create an address book and I am trying to get it to store the person data into an array list and read from a file text but have not been able to figure out how to do it. Here's the instructions: 1) Add a …

Member Avatar for mikias.kidane.9
0
346
Member Avatar for WarrenG.27

Hello, Im having a spot of bother with the below function.Its been a year or two since I looked at any php so I thought I would try and make a noughts and crosses game to refreash my memory while I was off over Christmas "just for fun" and Ive …

Member Avatar for diafol
0
118
Member Avatar for cafegeo

Hello everyone, I have a page written in HTML5 which atuomatically resizes the page when used on different devices. I also have a menu which goes from a drop down menu in desktop mode to a sort of pull down menu in mobile mode. This video pop-up works in desktop …

Member Avatar for Traevel
0
277
Member Avatar for zolymo

Hello i have an problem with an inheritance query using JPA (There is my Class Hierarchy) +UsuarioGenerico (MappedSuperclass or Entity - but is Abstract) -+Usuario (Entity) -+UsuarioPorEmpresa (Entity) Then, when i try make an select for Usuario, i not obtain results i try with an NamedQuery: `@NamedQuery(name="Usuario.findAll", query="SELECT u FROM …

Member Avatar for zolymo
0
194
Member Avatar for Programmer592

Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item. ![2014-12-25_15_49_20-DLAUBEFN_(Running)_-_Microsoft_Visual_Studio.png](/attachments/large/4/8dcefef15b7155ed7cc20f56c743d34f.png "align-center") What I want it to do is if a certain folder is closed, I want it to start a batch file and close itself. I know how …

Member Avatar for Programmer592
0
327
Member Avatar for man.chester.581

i need code shows how can i send information from html page to an email on submit directly with out opening the email broweser or any external url

Member Avatar for JorgeM
0
208
Member Avatar for Chris920

Hey everyone. I am looking to be pointed in the right direction here, tutorial, wordpress plugin..etc Im working on a site for my friend and he wants a "matching" system. Think tinder dating app almost. Two people "like" eachother based on their picture and they match. Hes looking more for …

Member Avatar for Chris920
0
333
Member Avatar for yaya1234

Hey, I used getline to read from file. When i have the char '#' I should ignore that line.. I want to put in the privat values of the class what I got from the file.. Here is what I did.. it works only for one line and then when …

Member Avatar for Suzie999
0
164
Member Avatar for newbie14

I have a very simple php curl application where below is my codes I used to send header and body to server. <?php $xml_data = "<Request><NewOrder>"; $URL = "http://localhost/rece1.php"; $header =""; // Build header as array for cURL option $header = "HTTP/1.0\r\n"; $header.= "MIME-Version: 1.0\r\n"; //$header.= "Content-type: application/PTI46\r\n"; $header.= "Content-length: …

0
219
Member Avatar for redtribal23

Why this doesn't work? class Faculty extends Employee { private long[] officeHours; private String rank; public Faculty(long[] hours, String rank) { this.officeHours = hours; this.rank = rank; } public static void main(String[] args){ //some code here Faculty f = new Faculty(newToken[], tokens[tokens.length-1]);

Member Avatar for vivekH
0
256
Member Avatar for lewashby

In the following program it says that there is a conflict between my getline and the getline in stdio.h. I understand what it's saying because stdio.h has it's own getline function. What's confusing me is that this is the program that my programming book (The C Programming Language) is giving …

Member Avatar for deceptikon
0
180
Member Avatar for balu_veer

Hello, I am new to php and here i have index.php with two portions. 1.portion: with two textbox with search button 2.portion: with three textbox with search buttons again. when i click one search button it's filling the data. but when i click the second button,1.portion textbox's values are not …

Member Avatar for James singizi
0
170
Member Avatar for PinoyDev

I have the following query that list all chemicals(chemical tbl) and its consumption(receipt tbl). However if the chemical codes are not in receipt tbl, it does not show the chemical name. It should display the name and put the consumption as zero. My codes below: SELECT Chemical.ChemicalCode, Chemical.ChemicalName, GroupDetails.GroupName, Chemical.LastRate, …

Member Avatar for PinoyDev
0
202
Member Avatar for waqasmrd
Member Avatar for Maryam_6
Member Avatar for SoftP

Hello Developers, How to Delete And Update particular row of CSV file in php. <a href="http://screenshot.ru/upload/images/2014/12/26/update625ff.png"></a> Thanks & Regards, Dinesh Thakur

Member Avatar for Traevel
0
2K
Member Avatar for JOLO14

Hi, i want to ask u something guys. i have one textbox. While writing in, after pressing Space, i want to intstead of white space, write this "|" . This is my code void TextBox1KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Space) { textBox1.AppendText("|"); } } Problem is it …

Member Avatar for deceptikon
0
103
Member Avatar for abrar7866

int firstarray[12][7] = { }; double firstClass(int airplane, int seats, double price) {cout<<setw(60)<<"---------------------... cout<<setw(60)<<"You are in **first class** booking screen\n"; cout<<setw(60)<<"----------------------... cout<<"\n"; cout<<"How many seats would you like to book for first class?"<<" ";cin>>seats; for(int row=0; row<2; row++) { for(int column=0;column<7;column++) { } } } The thing is, The first …

Member Avatar for Maritimo
0
335
Member Avatar for bc230201818

The set of codes have been taken from Paul programming Tutorials of Bianary search tree while listening to the tutorial and is not my effort . neither I have written this program. How ever converting the set of codes into animation has been done by me Enjoy watching and it …

0
104
Member Avatar for pryidevsblog

I am creating the pdf report and when I am running the script than I am facing the below error. I search about same error over here and I find one thread too but with the help of it I get in more trouble. So any body here can help …

Member Avatar for broj1
0
920
Member Avatar for shafakhat91

Here is the Table i Created in database... CREATE TABLE `a1878876_uonrm`.`saveproposal` ( `ID` INT( 20 ) NOT NULL AUTO_INCREMENT , `PI` VARCHAR( 500 ) NOT NULL , `Email` VARCHAR( 200 ) NOT NULL , `RTitle` VARCHAR( 500 ) NOT NULL , `Coauthors` VARCHAR( 500 ) NOT NULL , `ExSummary` VARCHAR( …

Member Avatar for broj1
0
412
Member Avatar for Violet_82

hi guys, in one of my .NET applications I need to connect to localDB but the code I wrote originally was for sql express and now it's returning an error understandly. Does anybody know what's the equivalent of this for localDB please? protected void submitData(object sender, EventArgs e) { hookUp …

Member Avatar for Violet_82
0
130
Member Avatar for Maryam_6
Member Avatar for Anati

how to admin and user to login in the same interface but after login admin will go to page register staff. while the user will go to search page staff who have been on the list by admin. what are the steps that need to be placed and coding for …

Member Avatar for hiren2927
0
119
Member Avatar for dayanadolce

hello there. i want to send email but i use localhost. the mail() function does't seems working as it says something is wrong with the port etc. <?php $sendmail = (mail('sample@yahoo.com','sample email','sample content','From: from@gmail.com')); if($sendmail) {echo "success"; } else {echo "unsuccess";} ?> even the simple email as above cannot be …

Member Avatar for dayanadolce
0
378
Member Avatar for Priyanka_9

Hi, can anyone please help me to find out a solution for the below mentioned problem?? While installing oracle 11g in linux on a remote desktop, failed dependencies occured when installing rpm packages [i want a soluion withou using yum software] [root@TomcatServer Server]# rpm -Uvh gcc-4.* warning: gcc-4.1.2-44.el5.x86_64.rpm: Header V3 …

Member Avatar for hiren2927
0
399
Member Avatar for Maideen

Hi I have an issue in store procedure. Error is Msg 4104, Level 16, State 1, Procedure W_usp_SO_Table, Line 38 The multi-part identifier "dbo.SVendorMaster.SVCode" could not be bound. Insert table is working fine. But update command is prompt the error Pls advice me Maideen Here is SP SET ANSI_NULLS ON …

Member Avatar for hiren2927
0
700
Member Avatar for Priti_P

Hello, Suppose I have resume. On upload of resume, I want my form fields get filled with values like (atleast) mobile number,email id,address (etc) Is there any avilable script which can fetch details like this?

Member Avatar for pritaeas
0
256
Member Avatar for JOLO528

Hi,Am creating program to translate morse code to text and text to morse code. First it worked fine with basic characeters in dictionary: abcdefghijklmnoprstuvzy0123456789 .Than i want to upgrade it to translate special characters in my language like áéäňöü .Problem is when i write it to my dictionary and give …

Member Avatar for cgeier
0
232

The End.