199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jevgeny.abramov

Sorry for my bad english, i have translated this task for fast, but i really neeed help. > Your task - to make automatic sfetofora (3d model). > > Traffic light works in three directions: to the two directions of movement of vehicles (in the center and from the center) …

Member Avatar for vegaseat
0
387
Member Avatar for Galbatorix

hi, I am using an access database and i have a form with a text box for entering the email address. I keep on getting errors each time i save to the database, below is the code i use Try sql = "INSERT INTO customers (fname,lname,mobileNo,email,countryID,IDTypeID,identification,roomNo,dateIn,daysIn,dateOut,noOfAdults,noOfChildren,adultTotal,childrenTotal,Total)" & _ "VALUES(" & …

Member Avatar for Galbatorix
0
155
Member Avatar for eltonpiko

hi ive got a script that need to upload a photo for an item and display it.but the photo does not show up i get corrupted file instead here is the scrip for the upload part can someone tell me what is going wrong. the photo needs to be save …

Member Avatar for eltonpiko
0
178
Member Avatar for f_atencia

I need a function that allows a string to be passed in that strips out everything before a decimal place. For example, 40.00% should be 40. However, it needs to be flexible enough to check if there are no decimals and still maintain the same result. For example, 70% becomes …

Member Avatar for IIM
0
198
Member Avatar for CreatorZeus

My while keeps looping and i dont know why: code <?php $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); while($row = mysql_fetch_array($result)) { $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); //username echo $row["user"] . " ||"; //alias check $result = mysql_query("SELECT * FROM tag WHERE (user='$my_name' && point='$pagename')"); if …

Member Avatar for IIM
0
191
Member Avatar for fyra

Hi. The function msgget from sys/msg.h is not being recognized by Netbeans 7.2.1. Have I missed anything? OS: OpenSUSE 12.2 "Mantis" #include <stdio.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> extern void exit(); extern void perror(); int main(void) { key_t key; int msgflg, msqid; fprintf(stdout, "All numeric input is expected to …

Member Avatar for Moschops
0
255
Member Avatar for sundog1

Hi guys, I'm hoping you can help here with a problem I am having with regards to filling a Dataset. It was working fine but have had to amend the code to read a different data set and structure. Basics are 2 tables.. one customers, 1 orders. Joined on there …

Member Avatar for sundog1
0
339
Member Avatar for can-mohan

Hi, As per below code snippet it is clear that in below class a if we don't introduce assignment operator despite of having pointer values it works fine as memory allocation is done explicitly by declaring s2 object on heap . can anybody suggest, if same canbe achieved without declaring …

Member Avatar for Lucaci Andrew
0
269
Member Avatar for biswa2ray

I have created email account in my website(ex: info@mywebsite.com) to use it for sending clients feedback.please guide me in jsp code to solve problem..

Member Avatar for biswa2ray
0
189
Member Avatar for godzab

Hello, I have tried making a merge sort method, but I am getting an `Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 .` How do I fix this error, I have tried but I can not find the error: public class MergeSort{ public static int[] merge_sort(int[] b){ if(b.length <= 1){ return b; …

Member Avatar for JamesCherrill
0
214
Member Avatar for sofien.fkih

I am using GUI in netbeans to create a combo box. I want to import all data of a column from database dynamically not manually to a combo box.

Member Avatar for softswing
0
104
Member Avatar for wondering_ed

Good day to everyone. I am new to Visual basic and I am having a hard time at school because they dont teach all the codes in visual basic 6.0 and they want us to have self study and all. What a bummer. For our midterm exams, our professor wanted …

Member Avatar for Reverend Jim
0
498
Member Avatar for zpxix

Hello All, I am very new to C programming but i was working on cryptography for ipsec and am trying to write a code for implementing a simple code for a stream cipher which will take a 20 charecter long string and a 8 bit seed file and encrypt the …

Member Avatar for Banfa
0
214
Member Avatar for IT_Techno

hi i have create database with tables using sql server 2008, having table named 'Users' i have create this stored procedure : USE [Licenses_DB] GO /****** Object: StoredProcedure [dbo].[InsertUser] Script Date: 02/17/2013 23:25:06 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[InsertUser] @ID int , @userName NVARCHAR(50), …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for bangor_boy

I'm making a paddle and ball game, a bit like pong but instead of another paddle im using the top of the frame, plan to make it into a football sort of game eventually with a bit of work, I have been able to add the ball to the frame …

Member Avatar for JamesCherrill
0
282
Member Avatar for ryan311

Can anyone help me please i get this error on this code dateEdit1.DateTime == frmMaterialPricing.supplydate frmmaterialpricing.supplydate this is the declaration on supplydate = (DateTime)txtSupply.text; When i try to check if datedit1.datetime is equals to supplydate i'm getting error.

Member Avatar for pitic
0
154
Member Avatar for kimangel

Hi Experts, good day! I have hard time coding the click event when I click cmdTime on the second time a message box will say, "Your first time in for 2/16/13 at 9:00:33 am, Are you sure you want to record this time in, Yes Cancel?" The time 1:22:33 is …

Member Avatar for kimangel
0
183
Member Avatar for cyberdaemon

Good day, I am stuck at his moment figuring how could i solve this porblem.. I created a method that will retreive a value from the dbase and place it in the dropdownlist.. so here is my code protected void ddlSalesOrg_SelectedIndexChanged(object sender, EventArgs e) { _lkpPlantEntities.plant = ddlPlant.SelectedValue; _lkpCustomerEntities.txtSalesOrg = …

Member Avatar for cyberdaemon
0
162
Member Avatar for ayyazm64

Hi, I have a problem that in a database (named DDS) i can change or delete records in all tables but there is one which i can't. There isn't any primary or foreigh keys(There is one dependency, a view). So could you please tell me that is there any way …

Member Avatar for ChrisHunter
0
222
Member Avatar for pearl.kumar1

HI TO ALL, I get this error:[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.When Running my vb6 module on Another server SQL Server is installed on Windows Server 2003,and i am testing the application from WinXP and Win7 on my server it will work. Testing from other machines(Server) with …

Member Avatar for pearl.kumar1
0
195
Member Avatar for sharmilli

function compile() { $a=shell_exec('gcc -o Compile Compile.c'); echo $a; $b=shell_exec('./Compile'); echo $b; } I tried to call the above compile function from the directory /var/www/. I could get the result by manual execution of gcc command but i could not create an executable file by running the same command from …

Member Avatar for vars
0
934
Member Avatar for sudipta.mml

How to save two images into two separate files using same python script. The two output images are correlation matrix and a graph. I was using matplotlib imshow(matrix, interpolation='bilinear') colorbar() savefig('/home/sudipta/Downloads/phppython/'+ filename +'.png') x = range(-width, width) plt.plot(x, avg_vec) plt.savefig('/home/sudipta/'+ filename +'plot' +'.png') The figures overlap each other when I …

Member Avatar for TrustyTony
0
406
Member Avatar for gangster88

how could i make the function to do the colours red, yellow and green for 5 sec delays and make the loop keep on going? [code] def trafficLights(): win = GraphWin() red = Circle(Point(100, 50), 20) red.setFill("black") red.draw(win) amber = Circle(Point(100, 100), 20) amber.setFill("black") amber.draw(win) green = Circle(Point(100, 150), 20) …

Member Avatar for TrustyTony
0
2K
Member Avatar for on93

Problem of sorting the ID in int main. anyone know how to fix the code ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include<iostream> #include<string> #define MAX 6 #define size 10 using namespace std; struct student { string name; int id; string prog; double cgpa; }; class stinfo { private: student data[size]; int last; public: stinfo(); …

Member Avatar for on93
0
158
Member Avatar for M4trixSh4d0w

I made a mini compiler to help compile C code easier on linux machines with bash #!/bin/bash function project_menu { header echo "Edit project: $1" dir echo "1) New file" echo "2) Edit file" echo "3) Compile file" echo "4) Run Project" echo "5) Compile & Run Project" echo "6) …

Member Avatar for DoRight
0
247
Member Avatar for lexaeterna

i am making an inquiry kiosk for a certain company and it required to be on a network, with sql server as backend database. is there any way that i can connect to the database which is on the server and fetch data?

Member Avatar for Lethugs
0
666
Member Avatar for Djmann1013

This is confusing. I made input boxes in HTML, and included the HTML in a PHP page. I am not able to click on them to get them focused, but pressing the "tab-key" will get it working. Here is my code: (HTML) <div class="widget"> <h2>Login/Register</h2> <div class="inner"> <form action="login/login.php" method="post"> …

Member Avatar for Djmann1013
0
133
Member Avatar for Limiter

Hi guys, I am a little new to this stuff but have done a few research regarding PHP. Currently, I am trying to learn PHP to allow a web portal to interact with data stored on MySQL database. In other words, lets say I have a website that displays information …

Member Avatar for davy_yg
0
245
Member Avatar for izabella.pearson

Okay so I have all of the coding and logic down except for ONE little part. I can not figure out how to actually implement my functions into the main because I keep getting errors that have to do with pointers. Please help! The point of the program is to …

0
98
Member Avatar for Lethugs

Hi, Im trying to get the depreciation value of an equipment every month. My system gets the number of months from date of purchased up to current date for the computation of depreciation. I can run the report anytime but the computation must be like this: Sample: Date purchased January …

Member Avatar for Lethugs
0
397
Member Avatar for jeremywduncan

def is_sorted(t): if t == sorted(t): return True else: return False print is_sorted([1,2,2]) # True print is_sorted(['b','a']) # False print is_sorted([3, 1, 5, 2, 4]) # False print is_sorted(['d', 'a', 'c', 'b']) # False print is_sorted(['a', 'b', 'b', 'd', 'e', 'e', 'f', 'g']) # True

Member Avatar for jeremywduncan
0
831
Member Avatar for malluce

I know the way to read line by line: FILENAME=$1 cat $1 | while read LINE do echo "$LINE" done but what if I have something like "Type \t Value" in each line that I need to separate them in LINE. An example will be something like Integer 2 String …

Member Avatar for malluce
0
161
Member Avatar for GraficRegret

I need to convert the `UNIX_TIMESTAMP()` output into a readable date and time for output in a table. Anyone know how to do this? or am I in the wrong area again?

Member Avatar for GraficRegret
0
222
Member Avatar for tricket_7

Going back to the grocery line queue. At the end of the program, it will output how many total customers I serviced, and it is supposed to output my maximum line length during the simulation. I think its obvious that I will use an "if" statement, but how do you …

Member Avatar for tricket_7
0
910
Member Avatar for nova4005

Hello everyone, I am working on a program that takes an input from a user and then tests whether it is a binary number or not. If it does not contain only 0's and 1's it prints out not a valid binary number. The part I am confused about is …

Member Avatar for bguild
0
549
Member Avatar for Stuugie

Hi All, I am wanting to round up my values at query time to 0 decimal places from 2 decimal places. I have SELECT DISTINCT b.vSeries_Table_Number, b.vSeries_Number, b.vSeries_Geography, b.vSeries_Type, b.vSeries_Unit_Type, a.Variable_Date, ROUND(a.Variable_Value, 0) AS 'Value' but the output still has the 2 decimal places which are 0s and pointless in …

Member Avatar for JorgeM
0
232
Member Avatar for MasterHacker110

What are advantieges of Ruby over Python and vise versa? Then in your opinion wich one is better for all around programming on linux and windows?

Member Avatar for Ene Uran
0
194
Member Avatar for McGreedy

Hi guys, Could you teach me how to read CSV in listview using OpenFileDialog? I'm using VB 2010 Thank's a lot

Member Avatar for tinstaafl
0
3K
Member Avatar for thilini_l
Member Avatar for diafol
0
327
Member Avatar for jaimin4829

Hi i am developing a web site to download softwares.I want to get total no of downloads of softwares.hOw can i get actual values of downlod?? Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click Response.Redirect("../Mysoftwares/" & dset.Tables(0).Rows(0).Item(1).ToString() & ".exe") End Sub 'code to redirect at softwares …

Member Avatar for hometownnerd
0
165
Member Avatar for teppuus

Hello, I am trying to write a program that reads in a string of numbers. I am only allowed to use ReadChar (not ReadString, ReadInt, ReadBin, etc). The program reads in this string of numbers (2-16) which is a base number. Then the user enters another string of numbers. I …

Member Avatar for DarkLightning7
0
189
Member Avatar for Bile

-->>Hope all is well,I've Managed to write code to Open Folders/Browse Folders using Common Dialog... -->>The name of Common Dialog is Folder... -->>But now as I've the Open Button when the Browse Windows Show up,I was wondering how can I... -->>Open the Selected File when User Click the Open Button …

Member Avatar for AndreRet
0
3K
Member Avatar for Ayesha.Shahnawaz

So I've FINALLY gotten my code to work but unfortunately my code's sooo messed up that its displaying something else! As you can see in the picture below, the Flex Grid is displaying the data of "Service" http://i213.photobucket.com/albums/cc228/rose_408/receiptform_zps1a66f838.png http://i213.photobucket.com/albums/cc228/rose_408/service_zps5e886a12.png When its actually supposed to show the data of "Receipt Service"! …

Member Avatar for AndreRet
0
175
Member Avatar for NidhiSree

Hi, I have a custom combobox (say ComboExt). I need to host this control in datagridview. In MSDN (http://msdn.microsoft.com/en-us/library/7tas5c80.aspx), they are saying, to host custom controls, my own column types with cells should be created. That is, I need to create a custom ComboExtColumn derived from DataGridViewColumn and all properties …

Member Avatar for NidhiSree
0
382
Member Avatar for vegaseat

Let's imagine you are taking a lot of pictures and modify them with one of those fancy image editors. You burned the image files to a CD, and decided to purge some of the outdated files because your hard drive is getting full. This Python code allows you to set …

Member Avatar for Ene Uran
0
540
Member Avatar for riahc3

Has anyone worked with C# and OAuth 2.0? Documentation/examples is VERY poor on how to do a simply login. Thank you

Member Avatar for riahc3
0
212
Member Avatar for SteveA

I am trying to work out how to remove files from a directory the files will always have a given extention e.g .txt I want to remove the filesfrom a specific directory that are older than say 14 days. Noob to Python sorry if this has been answered elsewhere, all …

Member Avatar for Ene Uran
0
309
Member Avatar for Trle94

Hello everyone, i need small help since im stuck, and im not that good with php and vB.net connections... So here is the problem, i manage to get connected to db and php script shows me if im connected or not, grab if user/pw is correct everything works fine, but …

Member Avatar for Trle94
0
2K
Member Avatar for asaidi

Hi i have a query that i want to display the pulser1 pulser2 pulser3 pulser4 from table but only when the input type for each pulser=2 when i run the query not working as i want it please check my query $netw is a variable it can be any value …

Member Avatar for asaidi
0
159
Member Avatar for kimangel

Hi Expert, my Option1.value is not save to databse while Option2.value is saving. Pls help me check my code. Thanks Private Sub cmdSave_Click() Set rs = New ADODB.Recordset rs.Open "select*from Employees", cn, adOpenKeyset, adLockOptimistic On Error GoTo err rs.AddNew rs!Employees_IdNo = txtSearch1.Text rs!Lastname = txtLastname1.Text rs!Firstname = txtFirstname1.Text rs!Middle_Initial = …

Member Avatar for kimangel
0
282

The End.