64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tgr0ss83

Not the prettiest edits, but does the job, and it's fast :) Sorry Cereal, i know it's like taking crayon to a Picasso :) [CODE]<?php $file = "http://mis.nyiso.com/public/realtime/realtime_gen_lbmp.csv"; $f = fopen($file, "r"); $ln= 0; $theData=array(); $nyc = array(); $millwood = array(); $hudvl = array(); $dunwood = array(); $nycLmp = array(); …

0
78
Member Avatar for Hiiero

The program below makes two classes that when calling their generate functions in a .cpp file generates a list of soldiers and then a separate list of skills, I want to combine these 2 lists,that way you can say Soldier 1 has skill 1,4,7 while Soldier 2 has 3,4,5,6,7,8. How …

Member Avatar for thines01
0
157
Member Avatar for pythonstudent11

What I'm trying to do is read a line from a file containing some data that includes a person's first and last name, their hourly wage and the number of hours they worked, and then writing to a seperate file their last name, first name: wage. The input file looks …

Member Avatar for pythonstudent11
0
334
Member Avatar for geaclaesson

Hi guys, Used this forum a bit today to find answers for a bit of scripting that I'm attempting. It's been 5-6 years since I last did anything like this, so bear with me. My question is; why does this generate results from Dec 12 2011 and not from Dec …

Member Avatar for geaclaesson
0
576
Member Avatar for sofia85

Hi, I need to extract some info from a file. This is two rows from what the file looks like: prob=0.0093;ID=RGT430;BQRS=491;BRZ=-4.263;ID2=RT914;DRT=0.00;HRun=0;HaplotypeScore=0.2794; prob=0.003;ID=RGR301;BQRS=4;BRZ=-3.261;ID2=EV913;DRT=0.00;HRun=0;HaplotypeScore=0.2654; ....etcetc until last row: prob=0.345. I want to extract prob from each row in the file and put it in a new file, but I don't know how …

Member Avatar for sofia85
0
136
Member Avatar for psandip

Hello everybody, While reading C++, I have been looking into iostream header file to understand a bit more about header file organization. I am not able to understand much of the code in there. For example the header starts with #ifndef _GLIBCXX_IOSTREAM. Does this check whether _GLIBCXX_IOSTREAM has been defined …

Member Avatar for Fbody
0
407
Member Avatar for challanger

Hi I am having trouble trying to connect to a local MySql db using the MySQL Connector/C++. I was able to successfully compile the bellow code but when I run it results in a Segmentation fault. I am trying to run this on a Windows XP machine using the g++ …

Member Avatar for challanger
0
1K
Member Avatar for tgr0ss83

I have a CSV that i can parse no problem at 10am.. But by 5pm it does grow to over 100,000 lines that cuases the script to hang. I have to parse the CSV into an array that i can then shape. If anyone has any idea how i can …

Member Avatar for cereal
0
4K
Member Avatar for maxxxx

I have this function that seems not to be working. If I click on the send order button and the first name field is not filled, it should say first name not entered. But it's not. I put comment in the javascript where I'm tring to fix. Thanks in advance. …

0
73
Member Avatar for Chuckleluck

Hello, I'm wanting to have multiple .cpp files in one project. I have three files: "Main.cpp" "Secondary.cpp" "Main.h" This is the content of Main.cpp: [CODE]#include "Main.h" #include <iostream> void Engine(); int main() { b = 10; a = 5; std::cout << a << b; Engine(); } [/CODE] This is the …

Member Avatar for Chuckleluck
0
434
Member Avatar for AndresOend

Have you ever cited the Python documentation? How did you do it? I can't seem to find author names and such information. I've only ever cited books as well. I'm trying to find out who authored the 2.7.2 docs, and how to cite them properly, since I used it to …

Member Avatar for TrustyTony
0
262
Member Avatar for Firzin

I'm getting an undeclared error in my main program at line 45. Can anyone find out what is causing it? Main [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <vector> #include "playlist.h" using namespace std; int main (int argc, char*argv[]) { ifstream fin; int lineCounter = 1; string parsedLine[NUM_OF_FIELDS]; …

Member Avatar for Schol-R-LEA
0
161
Member Avatar for aaloo

this is my code in which i am getting $_POST['name'] from a html form.i am using mysql_real_escape_string function that should escape characters like these [ICODE]\x00 \n \r \ ' " \x1a[/ICODE] but when i enter these special characters in the form .it is going in the database. it should be …

Member Avatar for pritaeas
0
193
Member Avatar for falconsorceror

Hi, I cannot seem to figure out how to search through a created/filled dataset for a certain value which exists in column(1), returning Column(0)'s value into a textbox. My code looks like this: Dim connStringdg44 As String = "server=(local);database=Cricket;trusted_connection=yes" Dim conndg44 As New SqlConnection(connStringdg44) Dim strSQLdg44 As String = "select …

Member Avatar for falconsorceror
0
117
Member Avatar for aaloo

this is a part of my code and i m getting this error somewhere in this part[ICODE] Parse error: syntax error, unexpected T_ECHO[/ICODE] [CODE] $data = mysql_query("SELECT * FROM $title") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { ?> <div id="username"><? php echo $info['name'] ?></div> <div id="statement"> <? php echo …

Member Avatar for aaloo
0
3K
Member Avatar for dark_sider_1

Hi there, It's been a long time since I've used delimiters in the Scanner class in Java. If I wanted to have any numbers between an expression, such as xx/xx/xxxx or an infinite amount of numbers between them with just the forward slashes as delimiters, what would the syntax be? …

Member Avatar for JamesCherrill
0
216
Member Avatar for towerrounder

Hi all. Im new to JS and would like to note the following case: Ive run the following test numerous times ie: [CODE]<html> <body> <script type="text/javascript"> var s = 0, o = 0; for (a=0;a<=10;a++) { var start = new Date().getTime(); var res = 0; for (b=0;b<=100000000;b++) { res = …

Member Avatar for towerrounder
0
160
Member Avatar for Assassin7893

Guys, I'm actually almost done. Basically what I have to do is to read from file with a list of words, sort them alphabetically and write them into another file. I am almost done, but the only thing is, the assignment says that we shouldn't change the case of words, …

Member Avatar for v3ga
0
2K
Member Avatar for epicrevolt

So I am at the fork in the road. Do I use a ready made script like Drupal or WordPress, or build my own system. I have a client in need of a website to store object information (we will call it an object). All the conceivable specifications and then …

0
101
Member Avatar for nore

Iam using data set and create table adapter then create select some data to be used in my aplication. In my app, i create data table to gain data from table adapter, but i don't know how to get some specific data, ex : item in column "a". Could you …

Member Avatar for nore
0
404
Member Avatar for tashee2007

Hi All, I have one vb form with two textbox,one checkbox, and two buttons. I am using SQL Database as back end for this form. Controls of my form goes like that: 1. txtGenderID 2. txtGenderName 3. chkIsDefault 4. btnSave 5. btnCancel SQL Table as follows: Table Name: tblGender GsGenderCode …

Member Avatar for tashee2007
0
403
Member Avatar for Daigan

So I'm having trouble parsing a double... Here's my code: [CODE]public class DoubleArray { static Console c; // The output console static final int total = 20; String[] numStr = new String [total]; Double numDouble; public void getAndStoreInput () { int count = 0; do { c.print ("Enter Double" + …

Member Avatar for Daigan
0
136
Member Avatar for Daigan

Hi, so my problem is I don't know how to read more than one line from a text file. say I have string.txt and it contains: Hello Java Hello World Welcome how am I going to read every line of the string.txt? I tried using FileReader and BufferedReader but it …

Member Avatar for Daigan
0
197
Member Avatar for joban.ali

Hi I am creating an basic online menu ordering system, what i want to do is display the typical chilli level, vegetarian and nut icons/symbols along side a dish name. I have a product table which has all the required field which will be called out. spice level, veg and …

Member Avatar for joban.ali
0
86
Member Avatar for Nevicar

Hi everyone! I joined these forums about a week ago so I could try and learn more about Python, and thankfully I can say that I have learned a bit. Enough to try and create a Mastermind game, although I'm having trouble with converting the code into Pygame and give …

Member Avatar for TrustyTony
0
287
Member Avatar for MitchellJ

Hi Everyone- We are building a database that needs table(purchaser) to check table(paypal) for a matching telephone number. Table(paypal) has 'purchaser telephone' as PK and table(purchaser) has 'purchaser telephone' as FK. I can insert and see the data in both tables, but running a select query returns an empty result. …

Member Avatar for MitchellJ
0
3K
Member Avatar for surakesh

[CODE]using Excel = Microsoft.Office.Interop.Excel; namespace program { private void cmdOpen_Click(object sender, System.EventArgs e) { FileSystem.FileOpen(1, inputfile, OpenMode.Input, (OpenAccess)(-1), (OpenShare)(-1), -1); // 1 : excel file Excel.Application MyXl; MyXl = new Excel.ApplicationClass(); MyXl.Visible = true; Excel.Workbook xlWorkbook = MyXl.Workbooks.Open(inputfile, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, …

Member Avatar for thines01
0
282
Member Avatar for Begginnerdev

I am having a problem with a datareader. [CODE] Do While myData.Read itmListItem = New ListViewItem() strValue = IIf(myData.IsDBNull(0), "", myData.GetValue(0)) itmListItem.Text = strValue For shtCntr = 1 To myData.FieldCount() - 1 If myData.IsDBNull(shtCntr) Then itmListItem.SubItems.Add(" ") Else itmListItem.SubItems.Add(myData.GetString(shtCntr)) End If Next shtCntr view_data.DatabaseListView.Items.Add(itmListItem) Loop [/CODE] I have used message …

Member Avatar for lolafuertes
0
287
Member Avatar for Tobyjug2222

Hello, I'm currently making a program in Visual Basic 2010 for my Course work, and I'm struggling a little as it involves a "log-in system." The system will save the Users Information in a folder (Called UserInfo.txt) (Address, Password, Email etc..), and the folder name being the username of the …

Member Avatar for berniefitz
0
1K
Member Avatar for Begginnerdev

Hello, I have one more question. I am connectinag to SQL Server 2008, not express, and I keep getting the "login failed for user "..."" The connection string I am using is: [CODE] Dim connStrg As String = "Data Source=" _ & ServerAdressTextBox.Text & _ ";Initial Catalog=" & _ DatabaseNameTextBox.Text …

Member Avatar for Begginnerdev
0
2K
Member Avatar for daniel36

can anybody give me query of current version of my sql of [CODE]$sql = "SELECT entries.*, catagories.cat FROM entries, catagories WHERE entries.cat_id = catagories.id ORDER BY dateposted DESC LIMIT 1;";[/CODE] i will be thankful.

Member Avatar for joban.ali
0
94
Member Avatar for AdampskiB

In my code they're instructed to enter a width and height. However obviously these will be intergers, but I need to perform checks that they are intergers before they're used. Atm I've got this: [CODE] while True: if width.isdigit() == True and height.isdigit() == True: if width >= 2 and …

Member Avatar for TrustyTony
0
199
Member Avatar for razree

Hi all I run into a problem and I'm asking for you help again. I have a IF statement which is checking each row in the data table (for a match) and ELSE statement with commands which are executed if the If statement is not satisfied. Now I would like …

Member Avatar for Begginnerdev
0
194
Member Avatar for Nandomo

I am making an ATM machine and trying to get my accounts from a .csv file to an ArrayList and am having all sorts of issues. Can I get help? It is giving me problems on line 52 of the class where I read and put the items into Arraylist. …

Member Avatar for JamesCherrill
0
144
Member Avatar for elbeato

I'm having trouble making the following code work. I'm trying to change text in "columnleft" with the showMess function, when I hover on the paragraph with the class "title." The really frustrating part is that this code has worked elsewhere for me. What am I missing? [code] <!DOCTYPE html PUBLIC …

Member Avatar for elbeato
0
286
Member Avatar for daniel36
Member Avatar for Ezzaral
0
90
Member Avatar for riahc3

Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you

Member Avatar for riahc3
0
747
Member Avatar for Ntropy

Basically, i'm doing an exercise that requires me to decrypt some numbers in an array, which will then read out something about "THEO", i've written my code out in this way, and it compiles fine, but it's having a problem when i run it, i'm getting a problem with my …

Member Avatar for Ntropy
0
216
Member Avatar for ssdeep

i have a file of the form [CODE](9430, 3656) (9147, 14355) (133, 14393) (7917, 9513) (3719, 12775)[/CODE] lets say i need to store it as a hash.such that 9430=>3656 and so on.I tried using split but it takes whitespaces for right hand values.How can i do it the better way?

Member Avatar for d5e5
0
229
Member Avatar for klemme

Hey, I know this is a stupid way of doing it, hence the question..: How can i do this smarter: [CODE] if (($url == 'billeder') or ($url == 'billeder=1' or $url == 'billeder=2' or $url == 'billeder=3' or $url == 'billeder=4')) { include("includes/billeder.php"); } [/CODE] I just want to see …

Member Avatar for HITMANOF44th
0
118
Member Avatar for ssdeep

I have a hash %d,i want the top five valued keys.I did the following wich worked but is there anything more effecient? [ICODE]@p=(reverse sort{$d{$a}<=>$d{$b}} keys%d)[0..4];[/ICODE]

Member Avatar for ssdeep
1
212
Member Avatar for aishapot

I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this: Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click With dialogpic 'Open File Dialog sa toolbox .InitialDirectory = "C:\Users\CAMILLE\Pictures" .Filter = "JPG Files|*.jpg|PNG Files|*.png|GIF …

Member Avatar for aishapot
0
255
Member Avatar for Bheeman89

Hello people. Im having a problem in my coding. I am doing a username and password application (sumtthing like a password keeper). So I have created the interface and i integrated vb 2008 with sql server 2008. So the adding of account and password all went fine. I have applied …

Member Avatar for lolafuertes
0
433
Member Avatar for subhra1234

hi everyone,i am just a beginner in python,i am going through "head first programming" and saw about the [B][COLOR="red"]pygem[/COLOR] [/B],but iam unable to install pygem....i already downloaded [B][COLOR="red"]pygame-1.9.1release.win32-py2.5[/COLOR][/B] from pygem site,but at the time of running the set up i am getting a error that it is not compatible with …

Member Avatar for subhra1234
0
293
Member Avatar for j23

hi, does anyone know how it would be possible to change my code so that the circles drawn by the applet are resized as the applet screen size is changed? [CODE] import java.awt.Graphics; import javax.swing.JApplet; import java.awt.Color; @SuppressWarnings("serial") public class OvalApp extends JApplet { private int width, height, x=10, y=10; …

Member Avatar for j23
0
1K
Member Avatar for galhajaj

Hello :) i intend to make a game in c# that will contain information of 10,000 people i dont familiar with db yet but i guess from a little reading that the best way is to use ADO.NET sql library... the game is not on the internet, it will be …

Member Avatar for rotten69
0
299
Member Avatar for klemme

Hi all, I have a site, where everything is on the index.php page - and then I include files when needed. Im not sure if this matters, but now you know..the page I am trying to create pagination on, is in an included file. So the page/url i am working …

Member Avatar for rotten69
0
167
Member Avatar for surakesh

// ws is an object variable of worksheet // systype is a string variable Range r = (Range)ws.Cells[2, 2]; systype = r.Value2.ToString(); how can I combine these two lines into one single line ? Please help ....

Member Avatar for surakesh
0
93
Member Avatar for Morney

Hello, So I have started to learn java from scratch, and I love it, any time spare I try to create programs (nothing complex yet) The last one I have done is the game Pontoon, blackjack or 21, many names. It works to how I would like it to, but …

Member Avatar for Morney
0
749
Member Avatar for stanley87

Hi,guys!May i know how to i seperate -keyword and +keyword from an array? eg, i have $arrayList = array(+book,+school,-play,-study); How to i seperate those +keyword into 1 array and -keyword into another array? You help will be kindly appreciate. Best Regards, Stanley

Member Avatar for stanley87
0
131

The End.