« first day (1080 days earlier)      last day (3883 days later) » 

12:08 AM
Where do I get it wrong ????

I have this formater

Dim format As String = "{0, -10} {0, -10} {0, -10}"

_sItem = String.Format(format, "Mokmeuh", "89,98 $", "4")

Console.WriteLine(_sItem)

result is : `mokmeuh mokmeuh mokmeuh`
 
12:26 AM
string format = "{0, -10} {1, -10} {2, -10}";
Console.WriteLine(String.Format(format, "Mokmeuh", "89,98 $", "4"));
@Mokmeuh try that^, not really sure what you want though
 
12:44 AM
Dim format As String is that C#?
VB most likely
 
 
3 hours later…
3:18 AM
goodday all
anyone can help me?
0
Q: Entering DataString from Form into table rows

ElegiacI'm using SQL Server Compact Edition 4 and I have this set of tables and columns in my db: javascript_db.sdf (name of my database) Variables (name of my table inside javascript_db.sdf) ID, Name (columns in Variables table) and I want to add all my strings in my MainForm to the Name column, fi...

 
 
2 hours later…
5:11 AM
0
Q: Add, Update, Delete datas on Table in DataGrid

Elegiaci already add my datas on Table (using SqlCE on DataGrid) using this code: private void btn_functions_Click(object sender, EventArgs e) { string conSTR = @"Data Source=C:\Users\Zet\DB\javascript_db.sdf"; SqlCeConnection connection = new SqlCeConnection(conSTR); ...

 
hi
@Elegiac What are you talking about?
 
@EnglishMaster i want to add/edit/delete my datas on table using datagrid
 
5:35 AM
hello
 
anyone can help pls?
 
my questionabove @EnglishMaster
 
5:52 AM
I wonder why some languages won't let you access private variables from static function because it won't be accessible publicly anyways.
 
@EnglishMaster you know some in sqlce?
 
Don't know but I'm super good in SQL
 
i think i did the wrong path in my string connection
string conSTR = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)) +  @"Data Source=C:\Users\Prot\DB\javascript_db.sdf";
lol
im trying to make it something like this:
string conSTR = "Data Source=" + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)) + "\\pruebaDB.sdf;Persist Security Info=False";
 
Oh wait
I realised why they are not accessible
sorry
 
6:07 AM
okie
ican view buti cant edit delete or add indatagrid
how can i dosome queryinform
@EnglishMaster
 
6:40 AM
@RoelvanUden Can PropertyA use _FieldB internally?
 
I got project, named Perfect.
I got a window with xmlns:Properties="clr-namespace:Perfect.Properties" in the header
I keep getting error:
`The name "Settings" does not exist in the namespace "clr-namespace:Perfect.Properties".`

App builds and runs fine though. What the hell is with my visual studio?
I got another solution, from which I simply copied the code, there is no such error there.
 
hi ,can anyone please help me with this question stackoverflow.com/questions/19087818/…
 
7:28 AM
can someone pls try help me with networking (simple chat app). I've written it myself but have also used many many sample programs in c# from the web. they call (inclusing my own) work great locally but there is always messages like "remote server rejected the connection" type errors when trying to connect to another computer running the server or client. so it makes ;me think maybe they/I'm behind a nat or firewall. (ive checked my own firewall and its not the issue)
I think the issue is my isp but I don't know and I don't know how to check should I call them to get info? what should I ask them? can they do a nything? like unblocking certain things?
how can I get around this problem?
 
@Giovani There's Windows Firewall by default, and your router.
You probably just need to set up port forwarding.
@hellboy Sure why not :3
 
Yep. I checked Windows Firewall. I unblocked my apps and made sure it wasn't rejecting any connections. So then maybe it's the router?
@RoelvanUden thank you! I am gonna go read up on port forwarding
 
7:45 AM
can someone help me to work on this but in sqlce?
www.mindstick.com/Articles/9422cfc8-c2ed-4ec1-9fab-589eb850a863/?Insert%20Delete%20Update%20in%20Da
 
8:00 AM
Anyone knows name of the game in Nintendo DS that let you build simple games and publish it online?
I forgot
 
8:41 AM
anyone knows how i can just edit/delete in datagrid itself but connected to db?
 
9:02 AM
@Elegiac Bind DataTable TwoWay
Datatable shoud be in a dataset, then call DataSet.ApplyChanges() to write changes to database
Don't know btw how does the Access dbs sync, I use PostgreSQL
 
i use sqlce @Nanako
www.mindstick.com/Articles/9422cfc8-c2ed-4ec1-9fab-589eb850a863/default.aspx?Insert+Delete+Update+in+Da
im trying this method here:
hope it works with datagrid
 
@Elegiac link is broken
 
Wow, that much code
 
hope that works in sqlce
 
9:13 AM
NpgsqlConnection conn = new NpgsqlConnection("Server=127.0.0.1;Port=5432;User Id=joe;Password=secret;Database=joedata;");
conn.Open();
NpgsqlDataAdapter da = new NpgsqlDataAdapter("Select * from tablea", conn);
TypedDataSet ds = new TypedDataSet();
da.Fill(ds);
... do whatever you want with data ...
ds.AcceptChanges();
conn.Close();
That works for me
 
for update, edit delete @Nanako
is there a way i can do?
easiest way to achieve my goal?
 
sure, I update about 26000 rows a day using that routines
1. Create a database in SQL CE
 
great then ;)
 
2. Load it into C#, get the XML schema, save it to disk
3. Generate XSD from XML
4. Use XSD to create strongly typed DataSet
5. Use SQL CE data adapter to fill your new dataset, not just table
6. Get a table, bind it to DataGrid TwoWay
7. Call AcceptChanges whenever you need to sync DataSet with actual database
@Elegiac That's a foolproof way actually
 
so i need to convert ce to xml?
 
9:20 AM
No, you need a Dataset schema
XSD holds only schema
 
that way i can edit direct from datagridview into compact?
 
That's the way you can sync tables to the actual database
without using a strongly typed DataSet it is impossible AFAIK
Or you have to write a lot of code to write changes manually
I guess using connection adapter to fill the typed DataSet and then accepting changes is the easiest way
 
@Nanako ill give a try 1st to this what i started before then when it fails ill try to do all what youve said ... thanks mate
 
1
Q: How to register new item in the "Add -> New Item.." solution explorer dialog

sgnsajgonI have created Visual Studio 2012 Package Project (from VS2012 SDK) with my own Custom Editor. It works fine. Editor is associated with solution files with *.myext extensions. Now, I would like to be able to create such a *.myext files with taking advantage of Add -> New Item.. option from contex...

 
@Elegiac np
 
9:32 AM
How to get the columns values from dataset
Dim ObjPatientEChartController As New PatientEChartController
Dim ObjPatientEChartInfo As New PatientEChartInfo
Dim DsProcedureList As DataSet
If PId > 0 Then
ObjPatientEChartInfo.PatientID = PId
ObjPatientEChartInfo.ProcedureGroupId = CType(btnExplodedGroupCode.CommandArgument.ToString(), Integer)

If Not ObjPatientEChartInfo Is Nothing Then
DsProcedureList = ObjPatientEChartController.GetProcedure_ListByCat_ByGrpCode(ObjPatientEChartInfo)
Dim colProcedureCode As DataColumn = DsProcedureList.Tables(1).Columns("ProcedureCode")
 
@Somnath That's a C# not VB chat actually
 
there is know one in vb.net room
 
@Somnath you need columns or rows? Columns store no data
 
i want the data of column
column name is ProcedureCode
@Nanako
 
Rows hold data
If you need a table with one column use DataView
 
9:36 AM
i have a table and i want to iterate the data of column
@Nanako
 
Iterate through rows, that's basic consept of databases btw
Columns are data type definition for rows, nothing more
 
then how can i do this
@Nanako
 
Like that
foreach(DataRow row in dataTable.Rows)
{
    Console.WriteLine(row["ColumnName"].ToString());
}
 
i have dataset
 
Try to read manuals
Really MSDN have examples for any kind of stuff
DataSet.Tables["TableName"] is a DataTable
 
9:43 AM
ok thank u @Nanako
lets do then
 
10:16 AM
@Nanako
thanks for u guideline ..i did it
 
For Windows Phone 8 (or 7) apps, does anyone know how much you get paid when u put ads in ur app using Microsoft advertising sdk for wp8?
I don't want people to pay for my apps, but I still need to make a living (I have built many apps) so I am wondering if I should go with (free with ads + option to buy add-free) or just make them buy it.
 
@Somnath gratz
 
10:33 AM
@TomW They gotta be kidding, OMFG
 
they are closely related
but still, it looks like a hoax
 
I know, but that idea was around from about previous century
 
@TomW checkmate, athiests
 
...what?
 
the tomtato plant
 
10:38 AM
what about it?
 
man if they can grow bacon and eggs on that too
 
I've seen the genetically modified grapefruit with beef inside
 
with beef ? :0
 
which is now IMPOSSIBLE to find on google because beef AND grapefruit is apparently a tasty combination
all results are about that
someone genetically modified a grapefruit to grow very mammal-like proteins in its fruit, I swear the picture actually looked like steak. Although that may have been a joke.
The fruit actually existed though
d'oh! Hoax!
I got punk'd
'no shit'', you might say.
 
yeah. Botanist and backyard breeders.
Interesting is beef inside. lol
 
10:52 AM
Tobacco + pepper + tomatoes + potatoes, EPIC BREED!!!
And we need a pig, that will eat that breed's leaves and will lay eggs
 
eggs with bacon inside?
 
Sounds like a jackpot )
 
11:09 AM
@JohanLarsson Thank you I didn't understood the MSDN that the ifrst number was the index x)
 
@Nanako did you mean tobacco or tobasco
 
Tobacco, It is the same Solanaceae family as potatoes
 
12:11 PM
hey guys
need a help
 
@ShrimantBajiraoPeshawe-I an integration tool
are u familier
 
1 message moved to recycle bin
Pinging people who were not talking to you is considered rude.
13
 
Never heard of it, but it sounds like it's Not BizTalk, which intrigues me.
 
@KendallFrey ehh I know, its just to notify
sorry though
@TomW ok
@TomW it's actually an integration service tool
 
12:16 PM
I can see workflows and maps
looks like integration to me
 
yes it is
 
 
1 hour later…
1:25 PM
Where... is.... everyone...
 
At work, hiding, due to it being monday.
 
Haha. I just got back from a long weekend so I am doing ok.
 
edc
hello
 
1:55 PM
shiiit
i have to have more on-task tabs open when people come around
well.. fewer off-task ones i should say
and specifically not job site search results
 
@drch Wow lol. The last one is probably the worst.
 
Yeah we used to run network monitoring software with triggers to red flag any job site surfing.... its amazing how many people do that at their current job
 
yeah i had 2 job search and a flat search tab up :S
build was broken so i had to kill the time somehow
what are they?
 
well, let me clarify, when we flat out tell everyone we monitor network activity and they go ahead and do that crap anyways and then wonder why we fire them... it amazes me
 
2:10 PM
2 is kinda all of the above
then again i guess you can love your job and hate your boss
for me its just whether or not my job is annoying
and do they block sites on the internet
 
edc
if you want to further reduce the list, it's really two reasons: 1) the manager sucks; and 2) they think you don't pay them well enough
 
I look at job sites because I find it interesting lol.
Yeah I don't do it because I plan on leaving lol
 
edc
there's also one rare occasion where I checked out a job site: to figure out if the client is planning to hire a guy to maintain the project I am building.
 
tbh, the only reason i was on the job site was to set up an email alert so i wouldn't have to check it every day
 
edc
it might affect how I build the project, or how I upsell it
 
2:14 PM
therefore, increasing my productivity
 
I also search job sites for my BF while I am at work sometimes.
 
I've made sure I'm seen looking at job sites from the day I arrived
so that it's seen as ordinary for me
bout 9 months
 
@ton.yeung Some type of chemistry job
He isn't going to be picky at first lol
 
Hi all
 
cough meth lab cough
 
2:16 PM
guys
 
edc
maybe because I haven't been a manager before, but I feel that if I have delivered my work, I should have a bit of personal time doing my own stuff; of course not visiting a porn site, but maybe check my personal email for a few minutes or something.
 
i am facing a problem writing a linq query
please help
 
edc
And also, in this day and age, there is no restricting someone from doing something online anymore. I mean, if someone is very eager to look for a job, he can do it on his phone too. If he's determined to leave, he will do it.
 
@drch THE SERIES FINALE WAS SO GOOD!
And yeah, if things don't work out, it is always a plan.
 
no spoiler plx
ive only seen season 1
 
2:19 PM
No worries :)
 
It was all a dream
 
@drch It will be hard for it to not be spoiled for you though lol
 
hmmmmmmm
 
@ton.yeung That will help, but stay off of Reddit!
 
stackoverflow is going down
you ask a simple question and everyone jumps to answer it
 
2:20 PM
Why?
 
you ask a bit difficult
no one asnwers
 
edc
@ton.yeung I don't disagree, but at the same time, a person is motivated to do only so so much in one day, and then his productivity will slow down.
 
I have noticed a significant decline in the quality of SO lately
 
true
 
quite a lot of spamming dumb questions that have been asked before, or very poor questions with no effort put in
 
2:21 PM
such a crappy site lol
 
@TomW - Geopolitical.
 
It still helps me some.... The GIS help though is usually useless.
 
so anybody here knows linq
 
I always get "Have you looked at the documentation?" -_- Yes...
 
@TomW - University and college classes are almost all in session now. You are seeing a lot of students posting content. This is actually a strong driver for the site's traffic. It is a good opportunity to answer some easy questions too :)
 
2:23 PM
@JLott the obvious reply is "Have you? If you had, you'd know it doesn't say"
 
@TomW I usually don't like to anger people lol
 
@ton - Avoid answering those ones. Just flag them for closure and move on.
 
edc
@Hmmmmmmmmmm you can try just asking your question about linq, I am sure one of us can at least pitch in some ideas.
 
The only way your content is virtually unrecoverable is if you answer a question and the question is deleted. You would have to have the url saved somewhere to view the deleted post, and there is no way to query it anywhere. All in all, that is the only way that your content is removed from SO without you being able to find it.
 
Just got the popular question badge. Woo!
 
2:26 PM
@KendallFrey almost sticky star on that one imo.
 
@Hmmmmmmmmmm - Have you considered reading? :) I know, it is an old mantra. edulinq.googlecode.com/hg/posts/index.html
@ton - Lol yes they do
 
Asking a question that turns out to expose a framework bug that nobody knew about is the holy grail IMHO
 
@Hmmmmmmmmmm your question is 16 mins old
 
@ton.yeung I don't answer questions either. I don't have much time to go through them.
 
kids these days
 
2:27 PM
@TomW - I exposed a bug in the .net connector from oracle like that.
 
As I said to a colleague: If something seems not to make sense on this project, that's probably because it doesn't
that's a lot less common in the wider world of public-facing products
free or otherwise
 
also i dont think you can use firstordefault
also the mysql provider can be the suck at times
 
Ironically, the bug was about using nested projections (joins) in the mysql connector.
 
@ton.yeung I also tutor.... a lot... I answer enough questions :P
Students can be dang rude sometimes too...
 
I almost stopped ~answering~ after getting a lot of upvotes on a crappy link answer. Now I only do it if bored or researching something on my own.
 
2:33 PM
I answer if it wont take me longer than 10 minutes to write it or if I encounter a situation where no one else had a solution.
 
@JohanLarsson If that was me, I'd answer everything.
 
@KendallFrey cos bored?
 
cos rep
 
Yep, I always get gazumped if I try to write a non-trivial answer
 
@KendallFrey it killed the value of rep for me.
 
2:34 PM
@Johan is the only SO user who doesn't answer for fear of too many upvotes.
 
@Johan - why?! If you get 100,000 then SO sends you a unicorn painting. wtf else do you want out of life
 
@TravisJ srsly?
 
@ton.yeung the difficulty for TAs is that when students ask lazy/dumb questions it's often because the class has lost their respect and their motivation is now to just complete it and get out
 
@TravisJ it is not like that either, just that it got so many upvotes because it was fast, not a good answer.
 
2:35 PM
A unicorn painting?! I must start getting rep now..
 
ouch, ninjad
 
They blogged about it on the SE site.
 
I'd rather have a t-shirt
 
@TravisJ that is pretty tangible!
 
twss
 
2:36 PM
what is the story with the unicorns btw?
 
There is even a picture of the painting. Jon Skeet was the first to get it. I think there have been a few more? I wonder if Reed has one!
 
@ton.yeung Yeah.... I don't get paid to tutor...
 
@ReedCopsey show us your unicorn painting!
 
I rarely asked questions and when I did, it was because I was so contemptuous of the course materials I felt like the teaching staff deserved to suffer the same inanity as I was
 
Ah, 200k. Reed still applies :D
 
2:38 PM
We got to ask Reed about that
 
@ton.yeung I am also their TA...
@ton.yeung Not mine. I set up tutoring for all CSC classes from 6-9 every Monday
 
this kid in my school who tutored the newest students was the worst programmer in the entire program
 
I mainly get students from the classes I TA, but mainly my TA duties only cover in class and grading
 
think it really helped our job prospects for a couple years
 
@drch Really? Wow. How did he get the job?
 
dunno. maybe he has more experience at the courses having had to take them more than once ;)
 
@drch - Having 3 days off was pretty epic.
 
HA. You have to get an A in the courses you TA in our department.
 
@travis yeah dude. Worth it?
 
> Preprocessor directives must appear as the first non-whitespace character on a line
 
2:43 PM
I actually like helping students, but I hate the ones who act like I owe them something...
 
I got to go to Malibu, hike, swim in the ocean, go to a few parties, sleep in until noon, do nothing, and watch a ton of football :D
 
Or they just want me to answer it... I got an email last night.. I should have not even replied.
 
it worked out great for me at the time cause I had a 2h30 total daily commute
 
That is one hell of a commute.
 
1h in 1h30 out
 
2:44 PM
This was the entire email: "i want 5 fields for customer table and can you identify the fields that create the relationship(link) btween customer ,orders and products"
 
so staying late made the home commute 45 mins
 
I did a 56 mile one way commute for a few years.
 
I am not in his class.. nor do I know the assignment...
 
The amount of gas I had to use actually affected my rate of pay substantially. I think it was like -35%.
 
You all should move closer to where you work...
 
2:45 PM
this was only like 35 km but the bridge traffic in Vancouver sucks
 
Ahh
 
@TravisJ Football is played with feet and ball right? I always check this
 
0
Q: How to organize an async operations of loading data (jQuery AJAX + .NET web service)

Gelo VolroI have a large XML file with geodata, which is about 100 Mb and have a huge number of data. The data is the information of the real buildings (coordinates, vertices, height etc). I'm working on WebGL 3D cities visualisation client and one of the tasks is: to render real buldings. The data is av...

 
@JohanLarsson Feet to run, ball to throw
 
@Johan - Depending on the language. It is a horrible misnomer really. I was referring to "American Football", you are thinking of what we call soccer. Although I assume you probably knew this and were just being facetious :P
 
2:46 PM
Speaking of football, I heard about the Broncos-Eagles game. lol
 
football vs handegg
 
@KendallFrey Yeah that makes sense, like fighting communism in the name of democracy :D
 
@Kendall - Nice. That was a serious ass kicking.
 
@JohanLarsson 'murkans and britishers disagree on what the term means
 
@TravisJ yep i was being diq
 
2:46 PM
obviously, we're right
 
@Johan - I love soccer though. I played in college. I can kick a soccer ball through a football upright from the 50 yard line.
 
Hi
 
@TravisJ Not only kicking, but pounding and wiping.
 
I watched the vikings-steelers game last night, it was in london so also on at a convenient time
 
@NinjaEcho find merkin
 
2:47 PM
@Kendall - Lol! I have never heard that before.
omfg
 
I hope that isn't a dude.
 
now you know
 
@TomW - Nice :) I picked the Steelers to win that =/
(they lost)
@Hmmmmmmmmmm - Your question is fairly complex. It will take time to get an expert to answer it. That hasn't changed over the past few years here. Hopefully someone like Servey or Ladislav will see it.
@Hmmmmmmmmmm - Are you using entity framework?
I guess he left the room. Oh well.
Asking a question which requires a lot of setup has that downside.
 
> The last message was posted 1 day ago.
What the fuck?
 
2:55 PM
> Did you do that just to fuck with us?
:P
 
Did you see it too?
 
No, did you actually see that message?
 
Yes, I actually saw that.
I know what it was now.
 
That's weird.
 
I heard a voice
 
2:56 PM
I was playing with my computer's date for reproducing a bug.
 
@Kendall - I once set my computer a year ahead. It pretty much broke teh internets
@Kendall - The internet responded: Don't change the date on your computer.
What is really interesting is that cookies won't lose their lease if you place your computer on sleep.
That really surprised me.
@Johan - What did it say?
 
I see chat messages, they dont know they are set to the wrong time
 

« first day (1080 days earlier)      last day (3883 days later) »