Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
90% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
9
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
~42.5K People Reached
Interests
Programming, photoshopping, Movies, books, etc.
PC Specs
PC: Win 7 64bit on i7 @ 2.66Ghz with 6 Gigs Ram MacBook Pro 2,1.
Favorite Tags
php x 16
c x 7
c# x 6
xml x 3

63 Posted Topics

Member Avatar for charlybones

I've looked around this forum, and the rest of the internet, but my code is not working. Here is the problem: I read XML files that are in en-US culture. The decimal separator is a dot ".". Given the string "123.45", I want to convert the separator from a dot, …

Member Avatar for DOUGLAS_9
0
19K
Member Avatar for taekgo

Have you tried coding this at all? The algorithm is pretty straight forward if you know a bit of math. I think you should try doing it yourself first and post any problems you might have with the code, not expect someone from here to do your job for you …

Member Avatar for v.r.t
-4
2K
Member Avatar for pardeep3dec

How are you connecting to the database? Can you post the Connection String? What objects are you using to connect? Odbc? ODP.NET? We need more information in order to help you.

Member Avatar for charlybones
0
116
Member Avatar for charlybones

Ok so I'm a total noob with VB.NET and I so far I've read about a thousand forums and I've yet to get a straight answer. I've read that VB treats anonymous types differently than C# (the why, beats me). I have a DataTable, and I want to return a …

Member Avatar for Begginnerdev
0
3K
Member Avatar for raju_boini525

I've used this in the past: [url]http://www.webweaver.nu/html-tips/web-redirection.shtml[/url]

Member Avatar for logu2win
0
801
Member Avatar for cool_zephyr

Here is a basic explanation of a setup project. http://support.microsoft.com/kb/307353 And here: http://www.codeproject.com/Articles/12548/Visual-Studio-Windows-Application-Setup-Project

Member Avatar for charlybones
0
136
Member Avatar for bastiaanvos

Info here: http://msdn.microsoft.com/en-us/library/2yd9wwz4(v=vs.71).aspx You define it "square" by giving it the same size on both sides when you declare your array. I whipped this up real quick. There are probably better ways to do it. int N = 3; Random rnd = new Random(); double min = -100.0; double max …

Member Avatar for Momerath
0
219
Member Avatar for kothaisaravan

More info is needed I think. Be careful with the DateTime format of the queries that you use. If the Regional settings in those servers is different to the one from your Windows XP machine, your queries will most likely use a wrong date/time and fail. I hope this helps.

Member Avatar for charlybones
0
105
Member Avatar for kamilacbe

If you're on windows (I assume you are since you said c# and asp) I recommend you use Aptana Studio 3.0. It is a great tool for Web development and not as bloated as Dreamweaver. Also, for PHP your first source of information is [url]http://php.net[/url]. If you've developed in C#, …

Member Avatar for kamilacbe
0
115
Member Avatar for sidra 100

You have a syntax error in your code. First you declare this: [CODE]$_SESSION['SESS__dept']=$employee['department_name'];//error here, remove one underscore from the SESS__dept[/CODE] But then you use this: [CODE]elseif ($_SESSION['SESS_dept']=="molding")[/CODE] Your SESS_dept has two underscores ('_ _') when you initialize it. Just remove one underscore from the first one.

Member Avatar for charlybones
0
171
Member Avatar for charlybones

Greetings. In my Console Application, I have a process that connects to a Access Database File. After closing the connection I copy the file to another folder, and delete the original. Lately this is failing a lot. For some reason the File is still being used, even if the connection …

Member Avatar for charlybones
0
248
Member Avatar for Momerath
Member Avatar for u.j.chandler

This is indeed one of the best explanations about Delegates that I have seen on-line. Thanks to everyone who's contributed. It has been a subject that I've had difficulty understanding since I first read about them, that is, until now. The way I see it (and I could be wrong) …

Member Avatar for skatamatic
0
183
Member Avatar for opticaltim

In the PlayerData.cs you are returning a new instance of Player with the username and password even if the Rows.Count is not 1... This is wrong, you could try to just return null... And then check if the result of VerifyUserInput is null before starting a player session... [CODE] if …

Member Avatar for opticaltim
0
222
Member Avatar for //Gonz

I use the following code to connect to an Access 2.0 mdb file and store values in a DataAdapter. It works fine. [CODE] connection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path_to_MDB_file";OLE DB Services=-4;"); connection.Open(); String query = "select * from Blah where Blaaah1 = blah2"; OleDbCommand cmdLines = new OleDbCommand(query, connection); …

Member Avatar for //Gonz
0
754
Member Avatar for Tortura

I believe you can use this: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx[/url] To help you. Basically you run the desired code in the background, using the method [CODE]Application.DoEvents(); [/CODE] Hope it's what you're looking for.

Member Avatar for Tortura
0
223
Member Avatar for visored23

I'm guessing you have to update it, I don't have much experience with DataGrid views, but have you tried the doing: [CODE]GridView1.Show();[/CODE] Or maybe: [CODE]GridView1.Update();[/CODE] I might be wrong, maybe someone with more experience can suggest something else.

Member Avatar for visored23
0
192
Member Avatar for ram619

[CODE]printf("%u \n",&argv[i]);[/CODE] This line, you are printing the "Unsigned decimal integer" (%u) for the memory address (&) of all the arguments given ("argv[i]"). This --> &argv[i] is the memory location of the argument 'i' I am unsure if that is the answer you were looking for?

Member Avatar for ram619
-1
158
Member Avatar for Vaspar

[QUOTE=Vaspar;1678625]Hello I am trying to make a bot which will download files and upload on server. I have no idea how to do that (yet) can someone guide me which methods will be used in downloading file and uploading (ftp server) and one more thing is there any size limitation …

Member Avatar for vijayvishwanath
0
153
Member Avatar for alex-i

You have to add a Setup project in your current solution. In there you can specify the files needed to run your application. More on that here: [url]http://csharpdotnetfreak.blogspot.com/2011/08/create-setup-project-visual-studio.html[/url]

Member Avatar for charlybones
0
85
Member Avatar for Mafia_ir

Read here: [url]http://stackoverflow.com/questions/68283/view-edit-id3-data-for-mp3-files[/url] It's easier if you use a class library for editing ID3 tags of media files. The link above has a few examples.

Member Avatar for charlybones
0
215
Member Avatar for ramy84

Do you want to write it after the loop has finished? If so, you could do this: 1) Add [CODE]using System.IO;[/CODE] to your Program.cs file 2) Change the code after the loop like this: [CODE]FileStream fs = new FileStream(@"C:\Users\ram\desktop\groceries.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine("The total …

Member Avatar for ramy84
0
866
Member Avatar for novie1

First, you declared a function called CelsiusTillFarenheit that takes 3 arguments. And in the Main function you call that function with only 1 argument. Then the calculations are wrong. This is the correct way: [CODE]static int CelsiusTillFarenheit(string Text) { double Celsius, Farenheit; Celsius = double.Parse(Text); Farenheit =Math.Round(Celsius / 5.0 * …

Member Avatar for ddanbe
0
147
Member Avatar for teenshee_rosean

Try changing this: [CODE]SqlConnection con = new SqlConnection("Data Source=(localhost);Initial Catalog=chenezboutique;Integrated Security=true;");[/CODE] to this: [CODE]SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=chenezboutique;Integrated Security=true;");[/CODE]

Member Avatar for teenshee_rosean
0
558
Member Avatar for lxXTaCoXxl

There is no ONE absolute way to identify a computer using the hardware, as far as I know, it could change if the user decides to upgrade or whatever. I would try to find a registry value, maybe the windows installation ID? Alternatively, you can try using more than one …

Member Avatar for skatamatic
0
117
Member Avatar for james6754

Will this server be in the same local area network as the client computer? Like, the LAN on a company or at home? If so, [B]one way[/B] to do this is to write a windows service on the server to "watch" a shared folder. That way you don't have to …

Member Avatar for Ketsuekiame
0
115
Member Avatar for ChaseRLewis
Member Avatar for charlybones
0
267
Member Avatar for asfakhusainm
Member Avatar for Mitja Bonca
-1
61
Member Avatar for pepyrs

Hi, I was browsing around and found this: [url]http://www.codeguru.com/csharp/.net/net_data/datagrid/article.php/c13041/Add-Edit-and-Delete-in-DataGridView.htm[/url] Maybe it can help you?

Member Avatar for pepyrs
0
167
Member Avatar for charlybones

Greetings. Ok so my problem is that I get a "Currency" formatted value from the database and this value sometimes comes as a whole number (without decimals) and sometimes it doesn't. But, when I output the information as "string" into an XML File, I [B][I]always need to show the 2 …

Member Avatar for charlybones
0
215
Member Avatar for pseudorandom21

I'm not sure this is the correct board to ask this question. But regardless, you have to know the risks. What I would do is: Setup a new e-mail account. Probably using Google Mail, and set that account up just for your application related questions. That way if it ever …

Member Avatar for charlybones
0
99
Member Avatar for Lost in Code...

Also, you *might* want to do [CODE]fflush(stdin);[/CODE] right before every single "scanf" that you have. Regards.

Member Avatar for bajishareef
0
6K
Member Avatar for sharathg.satya

My guess is you need a loop somewhere... When you say print from 1 to n it either has to be a fixed N or until forever? One way to do this ([B][U]and I may be completely off here[/U][/B]) is to print n+=1 from now until infinity using the computer's …

Member Avatar for bajishareef
0
273
Member Avatar for gunnerone

Maybe something like this? Correct me if there are any mistakes ;) [CODE] for (indexOfCurrentCoinToCheck = 0; indexOfCurrentCoinToCheck < 7; indexOfCurrentCoinToCheck++) { if (resultNumbersOfEachCoin[indexOfCurrentCoinToCheck] != 0) Console.WriteLine("You Will need {0} coins of ammount {1}", resultNumbersOfEachCoin[indexOfCurrentCoinToCheck], britishCoinValues[indexOfCurrentCoinToCheck]); }[/CODE]

Member Avatar for psychomiko
0
165
Member Avatar for pebesoft

also remember the single inverted commas for the variables in the query: [CODE] $query="update ir312 SET R3_21 = '$tot' WHERE irdnumber='$irdnumber'"; echo $query; mysql_query($query)[/CODE]

Member Avatar for pebesoft
0
123
Member Avatar for jacob21
Member Avatar for rminator

This will get you started: [url]http://msdn.microsoft.com/en-us/library/system.io.aspx[/url] You can use the BinaryReader class to read chunks of binary data. More info here: [url]http://msdn.microsoft.com/en-us/library/system.io.binaryreader.aspx[/url] @ddanbe you posted while i was responding ;)

Member Avatar for rminator
0
141
Member Avatar for localp

I have never used Process.Start inside any of my applications before. But this is an interesting read, maybe it can be of use. [url]http://www.dotnetperls.com/process-start[/url]

Member Avatar for sandeepparekh9
0
95
Member Avatar for bangla

[CODE] mysql_connect('host', $username, $password); @mysql_select_db($database) or die('Unable to select database'); $query = "INSERT INTO new VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web')"; mysql_query($query); if(1 === mysql_affected_rows()){ echo 'insert passed'; $to = "recipient@example.com"; $subject = "Hi!"; $body = "Your data was inserted into the DB correctly!"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else …

Member Avatar for charlybones
0
91
Member Avatar for Arjun_Sarankulu

you are setting the split symbol as ','. since you have no commas in your string, that's why it's not splitting anything. you have to set the split symbol as a ' ', (space)

Member Avatar for Arjun_Sarankulu
0
106
Member Avatar for charlybones

Ok, so after hours and hours of testing and searching online I'm almost convinced that this can't be done, but I'm asking here for help maybe someone can give me any idea as to why this isn't working. I'm doing this query: [CODE]SELECT * FROM( (SELECT t1.PAG5 from table1 t1 …

Member Avatar for boblarson
0
135
Member Avatar for spowel4

I've tried your code on my office network and it works fine. Are you sure you are entering the correct information? [CODE] SmtpClient smtpClient = new SmtpClient("CLIENTIPADDRESSHERE", 25); NetworkCredential basicCredential = new NetworkCredential("SENDERUSERNAME", "SENDERPASSWORD", "TOUSNET"); MailMessage message = new MailMessage(); MailAddress fromAddress = new MailAddress("FROMEMAILADDRESS"); smtpClient.Host = "MAIL.YOURDOMAIN.COM"; smtpClient.UseDefaultCredentials = …

Member Avatar for charlybones
0
309
Member Avatar for Xeno86

Maybe do [CODE]fflush(stdin);[/CODE] before your scanf function for the "again" char.

Member Avatar for Xeno86
0
174
Member Avatar for Silent-Regret

Post some of the code you've tried. If what you want to accomplish is load only part of the page after it has been loaded already by the browser, this can only be done with AJAX as far as I am aware.

Member Avatar for Silent-Regret
0
155
Member Avatar for dreamsky999

You opened an extra key '{' in the if statementat the bottom, see the comment i added in the bottom part of the code. [CODE]void calc_rate(int hourvhcen,int minutevhcen,int hourvhcle,int minutevhcle,int park_timehr,int park_timemin,int park_time_min_round) { // Statements if (minutevhcle < minutevhcen) // calculations to round off the minute portion of the …

Member Avatar for charlybones
0
116
Member Avatar for sha11e

When you did [CODE]session_start(); /*did you set the variables " $_SESSION['username'], $_SESSION['password'] and $_SESSION['account_level']*/[/CODE]??? That's the error you're getting. those variables inside the $_SESSION array haven't been initialized. Regards. edit: I'm not sure but, shouldn't it be: $_SESSION['username'] = $xusername; $_SESSION['password'] = $xpassword; $_SESSION['account_level'] = $xaccount_level; ?

Member Avatar for diafol
0
130
Member Avatar for MrCapuchino

For the icon of the application, all you need is an ".ico" file. Right click on your project, select "properties" and in the "Application" tab you can set an Icon file. Then, before using your application in any other computer, you have to run a "RELEASE" not a "DEBUG". It …

Member Avatar for Momerath
0
125
Member Avatar for ctpsolo

You didnt close the first query [CODE]$query = "SELECT * FROM players WHERE UID='$uid'";//<<<<----- here[/CODE]

Member Avatar for ctpsolo
0
451
Member Avatar for AngelicOne

You could store them in an array, and use the "distinct()" method. I'm not sure if there's a more direct way to do it. Perhaps someone else here might know.

Member Avatar for Mitja Bonca
0
101
Member Avatar for Arjun_Sarankulu

use the AddRange method like this: [CODE]namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { string[] name = { "tarun", "varun", "john", "rohan", "rahul" }; comboBox1.Items.AddRange(name); } } }[/CODE]

Member Avatar for charlybones
0
82

The End.