« first day (1167 days earlier)      last day (4007 days later) » 
00:00 - 16:0016:00 - 00:00

16:00
I started it as basically Java just with "string" instead of "String", and tried to fix it over a few edits with rapid googling on how to use the "DateTime" class :-/
@Boann I dont think he's provided enough details in his question anyway, he didn't show the C# where he's creating the json
Yeah. It was just a vague shot in the dark. Maybe he can get something out of it though.
C# has operator overloads, and properties. Like, blimey.
okay, i'm taking off, later
@Boann Yeah, ditch that Java
16:31
Howdy peoples.
Howdy person
 
1 hour later…
17:58
im back
:D
well, i got a steam gift card for my friend
i suppose I'm not your friend
also got a flat
@KendallFrey NO U THINK IM TRYING TO SEND YOU VIRUSES
Yeah, but when did I tell you?
18:08
tell me what
i never said you did, i said you think
I know
But how do you know what I think?
how do you know whats somebodys thinking?
nonverbal communication
Have we communicated other than chat?
18:11
yada yada yada, long train of logic that goes no where, im going to get lunch brb
I still wonder how you know I think you want to send me a virus.
do you deny it?
deny what?
thinking you're sending me viruses?
no, I confirmed it
But how did you know?
because i'm smart
HAHAHAHAHAHAHA
18:20
?
that was funny
tell me another one
i can picture you being picked on a lot as a child
lol
ditto you
nah, i was actually pretty bullyish, and i feel pretty damned terrible about it now if you want to know the truth
I'm actually the kind of person that ignores everyone and everyone ignores.
18:22
that sucks
I should take up people watching as a hobby.
Works good if people ignore you, right?
why do people ignore you?
Because I don't talk much
i can understand that -- i'm like that now-a-days, well i was, i'm working on it
And when I do, no one cares about how the current situation reminds me of programming.
18:26
lmfao
i was like that when i played wow because thats all that was on my mind, if it didn't have to do with wow don't talk to me
Hey everyone. @Steve and @KendallFrey you both got stuck working today to?
@Greg i'm unemployed
Hell, I worked Christmas Eve
@Steve Oh.
18:28
I was the second last person to leave
@KendallFrey So did I.
Anyone into text based games?
Lol, I was thinking about making one last night
nope
I never really liked ADVENT
That is a fun strategy game.
18:29
i really want a first person strategy game, like age of empires, but w/the graphics of Skyrim
@Steve Yeah, I agree. They seem to not be popular for some odd reason; mostly because people prefer shooters.
i am SO tired of shooters
@Steve Eh, depends on the shooter.
i still play them, but man do i crave something different
@Steve like rockets? lol
18:33
@Steve Yeah, not going to lie. I've been enjoying Assassins Creed IV: Black Flag and Killer Instinct. I haven't been playing anything else, though I have Call Of Duty Ghost, Battlefield 4, Forza Motorsport 5, and Ryse.
@Greg damn you have some nice games
kendall has rockets
You say that like it's a bad thing
@Steve I got a bundle deal with my Xbox One and I won a bunch of games at their launch.
Why won't SQL Server Express 2008 R2 not restore into a SQL Server Express 2012 instance?
@Steve If you want to try some new games, pop a few bucks on a Humble Bundle. If you want, you can get a few games for cents.
hey people
18:41
hey person
Shouldn't an older version of SQL transfer to a newer version without a problem? Or do I have to migrate the database before the backup can restore?
event viewer or log files?
is there a way to see what System.Diagnostics.Process object sent to command-line?
pretty sure there is a way that I have forgotten about
@Annie Yes, there is. The methodology escapes me though.
18:47
@Annie read the process stdout stream?
@JohanLarsson, I am struggling with getting the error message from node compiler, when I run a particular module.. other modules are sending stdoutput and stderror
@zneak school or work?
school, until next summer
then work for the summer, then school again until 2015
this one specific module when sent to node on CLI by me, it displays the error.. but capturing StandardOutput and StandardError always give me \r\n\r\n
that's it?
what about redirecting to a file, and seeing what happens?
18:49
yess
@zneak Pretty cool.
I first did the catharsis of doubts by trying these options technet.microsoft.com/en-us/library/bb490982.aspx
that was probably my funniest read in a while
Yeah, I'm pretty sure I'm going to minor in Electrical Engineering. Something about it fascinates me.
Hi everybody! I'm trying to conect my app to a data base but i can't! I', trying it since 2 days ago! 2 days! could somebody help me! I am a novice!!
18:52
@Jean Can you a tad bit more clear?
@Jean Please stop asking like a noob
Being a novice doesn't make you entitled to help.
I appended " 2<&9 2<&8 2<&7 2<&6 2<&5 2<&4 2<&3 2<&1" with the Arguments, but its still the same.
Trying for a month doesn't entitle you to help.
@Annie wth is that?
@KendallFrey, all kinds of redirections to standerr
and the read standardError asynchronously
You can't redirect streams with the arguments of a process
18:54
@Jean What @KendallFrey is attempting to convey in his socially hostile manner, is without sufficient effort or detail it is difficult to diagnose or assist. We don't work for you, but do generally offer assistance for the sake of help and progression. We need to see that effort though.
It's parsed before that, by the command prompt
didn't worked either.. only with that particular module is not
its sent to command prompt. I tried running the command manually and it worked :)
what worked?
the redirection? the module?
18:56
@JohanLarsson What?
the redirection of all output handles to stderr
I told you, you can't via arguments
@Greg @KendallFrey I'm so sorry guys! This is what i have:
I'm trying to connect with this code line:
Data Source=192.xxx.xxx.xxx,1433; Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
@Jean 1. That's not code, that's a connection string. 2. What seems to be the problem?
how do you know that it doesn't work, any exception/error message?
18:58
I'm using Sql Server Compact Edition (SDF file)
@Jean So your attempting to connect to a database on a remote machine?
can we write to file via Arguments?
@Annie No
4 mins ago, by Kendall Frey
It's parsed before that, by the command prompt
@Jean In that case I think you need to connect with the file name
@KendallFrey, i can right to file via cmd.
by appending this-> " > server.log 2>&1" to the command
protip, it's not a good idea to use SQL CE for network access
@Annie Right, now what was written to the file?
19:02
@Greg I used it first:
conn = new SqlCeConnection("Data Source=" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\ACTIVEAFMOB.sdf; Password ='activeaf'");
the error (that i want to read from StandardError stream)
@Greg It wordked!
but now i'm trying to do it via IP
which otherwise prints to the console (without > server.log 2>&1)
@Jean You'll need a Windows network path, I think.
e.g. \\server\path\file.sdf
not even sure that's supported with CE
perf with shared files over network shares is horrible - at one point, CE disabled it because it was problematic - not sure if it works again now or not
19:03
Could be
@Jean You'll need to put \\192.xxx.xxx.xxx
@Jean if you can, upgrade to SQL Server proper
@Greg Don't believe that works for CE
Or, if you want an xcopy deployable single file DB, consider switching to SQLite or something else that works well for that ;)
@ReedCopsey Is that what she is uding?
@Annie If you read it in code, what do you get?
19:05
YES! I HAVE THIS:
SqlCeConnection conn = null;
//code line
conn = new SqlCeConnection("Data Source =" + textBox1.Text + "," + textBox2.Text + "\\" + textBox3.Text + ";User ID=" + textBox4.Text.Trim() + ";Password=" + textBox5.Text + ";Trusted_Connection=False;");

textbox1= IP
2=port
3= myfile.sdf
4=my user
5= my pass
@ReedCopsey You have good holidays.
@Greg Right now, it's SQL Server CE - which is MS's (crappy) version of an xcopy deployable DB
@Greg Yeah - I had a good Christmas - how was yours?
@ReedCopsey Ew. Better off with SqlExpress.
StandardOutput: "\r\n", StandardError: "\r\n"
@Jean Why so many text boxes?
19:06
@Greg Not xcopy though - I'm a big fan of SQLite for most of those types of scenarios
@Annie odd. are you sure the process has completed when you read it?
@Greg because users will have the chance to change it all times he needs
@ReedCopsey I've never used it, I either use Server 2012 or Express 2012.
@Jean To change the database name?
i have 2 node modules and same method for executing command. one node modules i get output but not with the other
@Greg Not only the database, the user can connect to other pc's to manipulate information for their own bd's. so They'll change the IP, port, user name, password...
too
19:10
I'm tasked with converting a console app to WPF. Anyone know offhand what references I need to add?
@Jean With windows file shares, you don't use ports
@Kendall Frey At first i don't used ports, as far as i know the default port it's 1433
I mean: I didn't use ports sorry
@KendallFrey WindowsBase, PresentationFramework, and PresentationCore are the three required ones
though you typically also want to add System.Xaml, System.Xml, and others as needed
(Sorry guys my english is not so good)
I just noticed that someone put the references in already...
The error Message it shows is: "err.Message = "Opción de conexión desconocida en la cadena de conexión: user id.""
19:14
Are you supplying the right user id?
@Greg follow the arrow
@Kendall Frey YES! its sa
ok, ok, no need to shout
@ReedCopsey I have a thing that I think is a nice fit for F#, created an F# project and F# test project. After that I have only written C# :)
@Kendall Frey Sorry!
It's my code:
SqlCeConnection conn = null;
try
{
conn = new SqlCeConnection("Data Source =" + textBox1.Text + "," + textBox2.Text + "\\" + textBox3.Text + ";User ID=" + textBox4.Text.Trim() + ";Password=" + textBox5.Text + ";Trusted_Connection=False;");
conn.Open();
SqlCeCommand cmd = new SqlCeCommand();

cmd.Connection = conn;
cmd.CommandText = "SELECT * FROM TAATBS";
cmd.ExecuteNonQuery();
SqlCeDataReader dr = cmd.ExecuteReader();
}
@Kendall Frey, @Greg, @Everybody... Any idea? any comments are very welcome
19:21
I think you should be using a windows network path
It doesn't look like one to me
@JohanLarsson lol
what are you trying to work on?
wait, does CE even support users?
@KendallFrey I think it only supports local accounts.
@Jean according to google translate, it looks like you need to remove the user id from the string
@ReedCopsey Starting over with a project that scans a COM api and generates code for wrappers and interfaces, will put it on Github if it survives and becomes a thing. It will involve tree structures and that is why I think it would be a fit for F#.
19:27
@JohanLarsson Yeah, and in F#, you could make it a type provider ;)
would be a nice TP, frankly
no need to generate code - you can build the types directly in F#
Sounds interesting but you probably don't want to be online if I ever start with it :)
When I open the Swedish firehose of dumbs.
@KendallFrey I did, still not working :/
It shoulda be Pasword = '"+Mypass+"'?
I forgot how much I loath older versions of SQL.
@zneak yep funny
@JohanLarsson hehehe - I'd start with a toy project, first - would be far simpler to follow
but what's your project going to do that normal RCW won't?
19:44
For better or worse I took today off too
@ReedCopsey I'm writing much code vs Autodesk Inventor's API, code gets so ugly with switch on type etc and out and ref parameters, gonna try to hide all that.
Wrote some stuff for it a long time ago but did not finish it. Starting fresh now.
you think it's something that could be automated?
@Johan - Type action dictionary? :)
Weird, I thought that . is the equivalent to .\SQLExpress. Stupid SQL.
though, once you start using F# for it, the out params won't bug you anymore (F# automatically turns them into tuple returns, which is far easier)
19:47
oh, nice nice
@TravisJ unsure :)
@ReedCopsey don't understand what you mean here.
@Johan - One thing that I like about type action dictionary is that all of the "switching" doesn't have to be defined in one place, so you can separate out the construction of the dictionary into multiple classes that in a way inject into the dictionary.
@JohanLarsson The wrapper generation?
@Greg Relax! Don't worry!
Yes, generating the code will work, already did it. Handling updates of the api couldbe tricky but git could help with that.
@Reed - Is that where every line rhymes with the previous one and is about swallowing exceptions and brute forcing everything?
19:50
lol
@TravisJ true
@JohanLarsson That's what I meant - I wasn't sure if you're hand-writing the wrappers, or they're auto-generated based off the existing API and reflection
in which case, API updates should just mean re-running your generator
reflection + autogeneration
@ReedCopsey unless I have added things to the wrappers
yeah - a Type provider would probably work, then - and be a lot nicer
19:53
@Jean What am I worrying about.
Can I use a type provider from C#?
@Greg, @KendallFrey
Guys thanks for your help, I'll keep trying.!!
I have to go!
Thank you so much! see you soon
**Happy holidays**
@JohanLarsson If you make a generative type provider, the resulting types can be used from C# (or any .NET project)
though, by the time you figure out how to do it, you probably won't care whether you can use it from C# anymore, if it's for your own projects ;)
I have the luxury that I can pretty much chose language even for work stuff. Can't chose when I should write code all the time though, have to draw CAD and even do managerish bs :(
20:09
What do you do?
We build NC-machines, not allowed to tell more.
http://jameskovacs.com/2007/09/07/cnet-history-lesson/

Interesting read :-)
An old big project woke up this year and it turned out I'm the only ~senior~ left.
@KendallFrey, my problem is almost like this guy who never get the working solution stackoverflow.com/questions/18956675/… .. some kind of race condition issue imo
20:37
@JohanLarsson Does that mean that you were one of the original team members that worked on the code and now it's being revived with people(yourself being the only person that understands the original code-base) that have never worked on it before :o
That sounds painful, if I understand the scenario correctly. Everyone will be coming to you with questions :>
yes except that it is hardware, 60 cm of binders with drawings.
Oh god.
:v Scary stuff.
Question :o
It's about TryParse. Is there any reason why they chose out instead of ref?

public static bool TryParse(
	string s,
	out int result
)
Why did they use out instead of ref?
My guess is that its an implementation specification so I shouldn't really concern myself with it but I'm still curious.
Do you have values in the "num" column of the pharm_meds table that are not in the "num" column of the pharm_meds_Type table? It seems to me like that would cause this error to crop up for you. — jadarnel27 44 mins ago
2
Q: Droplist has a SelectedValue which is invalid because it does not exist in the list of items

SkullomaniaFirst I would like to state that I am using a Datatable to fill my gridview and the select that I am using is a left join. here is a my select SELECT PM.num [num], PMT.MedType [MedType], ...Some other columns... FROM [pharm_meds] PM LEFT JOIN [pharm_meds_Type] PMT ON PM.[MedType_ID] = PMT.[nu...

20:54
@CodeAssasssin no idea, why is it important?
how can i set up iis express to serve intranet pages? gah
i've tried most of these answers: stackoverflow.com/questions/3313616/…
never used iis
user1804599
21:19
nginx ftw.
21:31
@CodeAssasssin Because it makes more sense to be out - It's always going to set the value, and not use the value passed in
so using "out" is effectively self-documenting
(from the CLR standpoint, out and ref are identical)
i think I would have preferred nullablebut it is older than that
though null is nasty
I like how it works in F#:
let success, value = Int32.TryParse "42" ;)
let's you write the using cleanly, ie:
match System.Int32.TryParse "42" with
| true, value ->
    // Use value
| false, _ ->
    // handle bad input
@ReedCopsey out is not very nice and failed parse makes some sense as null imo
I don't like null in general
I second that
21:40
but that's the FP influence going on - I've bought into null as the billion dollar mistake :)
rightfold have a nice idea to make reference types not null by default like value types and Nullable<> like value types
prolly a pretty expensive fix now
@JohanLarsson That was actually Eric Lippert's idea.
well, that's basically like the option type in most functional languages
@ReedCopsey ah. Makes sense.
21:52
Is precalculating the hashcode in the ctor a good idea?
Immutable object and for performance
I've got a question on practice.
I've got a table that resides in our Content Management System, which is based off DotNetNuke. The table appears to have a SettingName and a SettingValue. There are about fifteen values that need to be modified.
Is it worth simply writing a local query and where clause rather than a giant stored procedure?
With the local query through the application, I would simply use parameters to the local query.
@JohanLarsson I say compute it on demand and cache it
Oh hai
ok, gonna use int? just cos I said I don't like null then
Why?
use an int and a bool
or Lazy<>
22:04
oh, never tried Lazy<>, will try that ty
I can't believe this post I had while reviewing, all it said was penis about a thousand times. Sigh... Some people.
@JohanLarsson Depends on how often it'll be used as a hash, and how expensive the calc is
Anyone have thoughts for that query?
@JohanLarsson Just realize that Lazy<int> for a hash is going to be adding a ref type larger than the hash code itself on x64 ;)
22:09
ty ty
Anyone know how I can compare a string (GUID-parsable) and a GUID in a L2E 'Where' statement?
To see if they are equal
can't you parse the GUID before the l2e statement?
i mean what if its not parse-able, you should Guid.TryParse
L2E Doesn't like that, nor ToString
It's in a where clause against a big dataset, and I'd rather not iterate through it twice to parse everything
@ReedCopsey Which form of encryption is ideal for creating a hash, and encrypting an object for the life of it?
Guid parsedGuid;
if (Guid.TryParse(stringGuid, out parsedGuid))
{
// do your L2E query, with parsedGuid
}
22:16
@Greg hash generation and encryption are really two separate concerns - what are you trying to do?
@Steve, it's dynamic
It changes at each iteration
ah
Well, I'm trying to create the hash for it to be inserted to the database; but then through the use of that value through the program I was trying to encrypt the hash so it isn't directly exposed for decryption.
@WasabiFan can you show me your query? I'm just curious -- probably won't be able to help
db.Users.Where(x => Guid.Parse(x.Id) == Model.Value).Select(x => x.Id));
It finds all the users with a specified ID and then project their ID
22:21
this is what I came up with the other day and it works
i'm not sure whats different
Thanks; If your method doesn't work, I'll have to revert to plain loops... :(
my method is specific to my project, its just an example, I was wondering how yours differed, so I could learn from it
The difference is that you can parse the Guid ahead of time; I can't
can you show me more?
thats what I was asking for, sorry if I was unclear
1 message moved to Trash can
I don't really have more to show; the 'model.value' is a bit simplified in my example, it actually iterates, but that's about it
22:29
@WasabiFan perhaps you could convert the guid to a varchar and compare it against a string, there are a lot of sql functions available in the SqlFunctions library
that L2E likes
kbye
22:40
I've never used Database tech before :o
I hadn't really either until a few months ago ;)
@ReedCopsey Is my goal not a concern I should be worried about?
@Greg What's your goal?
Total world domination right?
2
To secure the hash and object through it's life, to ensure that data isn't exposed. It remains secured.
22:45
Wait... you mean in memory?
Or when you save it?
Both.
why not just make the object immutable then?
What about when it is inserted into the database and I salt it?
23:16
guys, can we run a system command via System.Automation.PowerShell, the way we run with System.Diagnostics.Process ?
What do you mean by 'system command'?
node node_modules\my_module\bin\my_module "myfile.ext" --some-param
something like this^
Why would you want to use PowerShell to run a node command? Just use Process.Start
long story short.. one of node modules is not redirecting StandardError
I see... Yes, that should work
23:23
I tried to write it to file, but it creates an empty file
PowerShell shouldn't make a difference for that, though
Write what to a file? Just start the proc and redirect the stream...
@ReedCopsey, at the minimum, we can get rid of the “Input line is too long” error
Arguments= argumentString + " > server.log 2>&1", RedirectStandardOutput=true, RedirectStandardError = true...
i have two node modules.. one is showing errors and stdout.. other is not showing them
same function same setup ... just change of modulename and parameters
tested manually on cmd shell..it throw errors
again, worked on shell manually, but Process just creates an empty output file
tried to output into the file by appending " > server.log 2>&1" to the argument
i guess some synchronization issue cause by one of the actor.. C# process, nodejs or module..
it just give me "\r\n" for that second module.. while display full error (stderr) on command prompt when i run it manually
when i tried to prepend "cmd /c" with command, it gave me "Input line is too long". however, using "powershel" instead doesn't complain, but the result.Trim() is still empty..
almost this situation -> stackoverflow.com/questions/18956675/….. seems like for some reason, Process doesn't doesn't redirects stdout, stderr in some cases.. either its delay in output (or perhaps some semaphore outputted by the underlying process...).. today, i have experimented with it a lot, which led me to these assumptions.. :)
00:00 - 16:0016:00 - 00:00

« first day (1167 days earlier)      last day (4007 days later) »