« first day (1782 days earlier)      last day (3173 days later) » 

11:00 PM
@ton.yeung Ya that is time to upgrade today
@KalaJ yes please find where they changed or updated that part
ya if one day you are not online we will know
lol never be with out SO
 
Yep it does now
 
What tier are you in Azure?
 
had a MDSN account with it
 
ah ok
 
11:08 PM
never used it bc they would not let me add my DNS was like 50$ a month in credit
 
weird, really?
 
ya they wanted xxxx.someazuredns.com that sub expired in April. I did not renew it at the new job
 
hm ok
 
the GE62 and GE72 will have the Skylake chips?
@KalaJ are you looking for personal hosting or enterprise hosting?
 
personal hosting
I want to host a few websites and a blog
 
11:15 PM
don't use azure, look at maybe home hosting, or cheaper
site5.com if you want to do unix, or gator
some places will be 20$ a month, azure is $$ by the cycle or storage or data movement
 
ohh?
 
I do home hosting, have a server box in the basement, and a nsa firewall
 
I want to be able to host ASP.NET MVC apps
 
have no sites, but my test one
just set it up
 
I got a question
 
11:18 PM
sure man - just ask
 
How fast does someone need to write code and make it work for them to be called a good programmer lol
 
@KalaJ discountasp.net is 90$ for a yr of hosting
@june1992 that is a loaded question
its not how Fast someone can make a meal but how good it tastes
if you can make it Fast and Good then you are at the top of your game
if you can make it fast and it works, but it takes 30 mins to run, might not be Good
could do what you think it wants, and then never do what it was meant to do
see sony and randomKey always equals 4
the key was not really random, so was that a Good Coder??
@june1992 here is a blog
 
I got a question here... I got a access file that needs to be converted into mysql. The access file is an old access db (2000 I think), I cannot get PHP on the linux server to read it (MDtools fails). I want to write c# code that will do the convert for me
What is the best way to send the data to the server?
mysql can only be connected using SSH connection, and id rather ignore that option
 
does MYSQL already have the Database made in it
 
yea
this is a tool that the user will run many times to create new databases
 
11:25 PM
ehh see there is that question
Is the Database already made
no does it have tables
 
@juanvan, if i buy a custom domain name under Azure, can I still use it with another hosting provider?
 
the tool creates a nerw database for each new upload
 
you own the DNS name? you can update the DNS pointers
 
so the database currently does 'not exist' per say
 
Ok so you want to create the DB in Mysql, give it permissions to the user that will be using it and then fill it with the tables from the old access fille
that sound like what you need?
 
11:26 PM
I was thinking of having c# create a sqlite database, then uplaod that to the server, and have my current code (PDO) convert that sqllite
eh no, permissions are irrelevant , I just need the data uploaded
there is only going to be one user doing these uploads, then users access the data using a browser
the access to SQLlite to server to mysql seems to be easier way right now
 
using Navicat can import access db all day to mysql easy
 
I already wrote code in PHP that converts the access 2000 db to mysql, it works 100%
the only problem is, it only works on windows with the correct API, but on linux it fails
and the server is on linux :P
 
there no access drivers for linux?
 
not for this old version of access
 
.mdb?
 
11:30 PM
the only ones out there aqre third party (MBTools) but it was not reliable, and failed
mdb and mdw
 
mdw gezz
 
I know
Basically I took an old database and created a cloud version of it
mdw is so bad that the password to access it is in plain text when you decompile the file ;P
btw the tool I was talking about earlier is mdbtools: mdbtools.sourceforge.net
 
eh that is all m$ passwords
even if you write this program, how will the c# run on the unix box with out the access dll loaded?
 
it wont, I will give this code to my client, and my client will then take databases received from her clients and do the conversion from her win7 machine
 
ok it will export that sqlLite back to the server to process
 
11:33 PM
So I guess it all depends on one your self
 
yeah, that right now seems like my only option
 
@june1992 Yes! believe in your self
 
other then getting the c# to connect over SSH so it has direct access to mysql, but I do not want to do that for a few reasons
 
Would be easier for the client to upload it in the web browser
 
would be 100% easier, but I can't get that to work... that was plan A
 
11:35 PM
so now the goal is convert the access db to sqllite version for them to send off
 
well ill have my c+ program auto upload it
c#
 
ok
 
Hello everyone. I seem to be having a logical error in my code. It should be a basic error that someone here might fix. I've tried debugging, and I think I know where roughly the error is, but I'm not sure how to fix it.
 
what else can I do? Keep bashing my head trying to get the MDB Tools to work..... this.... SSH....
seems my only 3 options, and the c# option seems like I can see the light at the end of the tunel
 
seems like the c# is the easier
So what is the next step?
 
11:37 PM
in theory, but I am really bad at c#
I took the first step in creating code that connects to the database
so I guess now ill start seeing if I can create the code that creates the sqllite
 
@daOnlyBG want to show some code? or make an example of the problem?
 
sure. here it is:
err... hold on..
 
So, background: I'm trying to make a simple CSV reader, for the sake of learning OOP more
 
this command line will work - you can use that, launch a process with it and the arguments and then use the resulting output
 
11:39 PM
anyway, I'm trying to loop a reader that goes from one row to the other, storing each column value into a two dimensional array
I've been able to successfully get the column and row count
when I go to store the values, I get an interesting result
I get every value except the first row
string [,] file_data = new string[row_count, column_count];

for(int row_index = 0; !reader.EndOfStream; row_index++){

var line = reader.ReadLine();
var values = line.Split(',');
Console.WriteLine(values);

for(int column_index = 0; column_index < column_count; column_index++){
file_data[row_index, column_index] = values[column_index];
}

}
so my output is essentially 9 array cells
despite my CSV having 10 rows, and 2 columns
***My output is a 9 by 2 array
the second row in the CSV file someone becomes the "0'th" row
completely bypassing the first one
I suspect the problem has to do with the reader
or, rather, the "var values = line.Split(',');" line
perhaps it's only reading the values after the commas?
I'm not sure
(the "Console.WriteLine(values);" line was placed to debug; it's not really intended for the final code)
 
!reader.EndOfStream;
that works?
I guess its bool
 
yeah
it works
(I'm open to better suggestions)
 
should be row_index < row_count
(int row_index = 0; !reader.EndOfStream; row_index++)
(int row_index = 0; row_index < row_count; row_index++)
 
if I use that, I get an "unhandled exception"
 
what exception is that?
 
11:50 PM
"Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at ReadCSV.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at ReadCSV.Main (System.String[] args) [0x00000] in <filename unknown>:0"
 
Where is that occurring?
 
When I run the file
 
Where in the code?
 
see above...
 
what line tosses that exception
 
11:51 PM
ah
 
You never said where the error occurs
 
Pardon me. It actually doesn't say.
(I'm using the Mac Terminal)
 
It would say if you debugged your app
slightly related: where are you getting row_count from?
 
you're skipping ahead in the boook
 
here- I'll share the entire code with you
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;

class ReadCSV{
static void Main(string[] args){

Console.WriteLine("Enter the name of the CSV file.");
string user_input_file = Console.ReadLine();

var reader = new StreamReader(File.OpenRead(user_input_file));
string[] variable_descriptions = (reader.ReadLine()).Split(',');

int row_count = File.ReadLines(user_input_file).Count(); // number of rows
int column_count = variable_descriptions.Length; // number of columns
 
11:55 PM
You're reading the first line of the file before the loop
that's why it's skipping it later
btw...
 
ohhhh
 
!!tell daOnlyBG format
 
@daOnlyBG Format your code - hit Ctrl+K before sending and see the faq
 
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;

class ReadCSV{
	static void Main(string[] args){

		Console.WriteLine("Enter the name of the CSV file.");
		string user_input_file = Console.ReadLine();

		var reader = new StreamReader(File.OpenRead(user_input_file));
		string[] variable_descriptions = (reader.ReadLine()).Split(',');

		int row_count = File.ReadLines(user_input_file).Count(); // number of rows
		int column_count = variable_descriptions.Length; // number of columns
Sorry about that. Thanks.
 
Protip: Learn to debug your code
 
11:56 PM
I'm trying. Really, I am. I'm so new to all of this, tbqh lol
I'm using Visual Studio Code
I'll have to see how I can setup the debugger
 
You don't need to set it up
just run your project by pressing F5
 
Ah ok
 
have to set the breakpoint still
 
not if you don't want a breakpoint
like catching an error
 
My battery's about to die. I really, really appreciate your help. I now know what I missed. Thanks again guys
 
11:58 PM
err running the program local with out debugger attached, sounds wrong
 
yeah
 

« first day (1782 days earlier)      last day (3173 days later) »