« first day (1440 days earlier)      last day (3517 days later) » 

5:00 PM
I stand corrected, Aspnet_regiis.exe shouldn't be required.
 
@user1112560 ?
 
Aspnet_regiis.exe will go to machine.config to determine the provider to use. If you're using the System.Configuration DLL (as the sample code you posted is doing), it will use a different method to determine the provider to use for encryption. I'm a little concerned that there's not much documentation on the class your code uses: "DataProtectionConfigurationProvider".
 
@drch That example uses reflection, yuck.
@user1112560 The less documentation the harder to hack, cause nobody knows wtf is going on.
 
Security through obscurity should be designed for attackers. The system shouldn't be obscure to the developer.
Reflection's not evil, most config files will use reflection.
 
@user1112560 I should have used the sarcasm font, sigh- Oh well.
 
5:11 PM
@ton.yeung - Where is that?
 
@user1112560 My remark about reflection still holds true.
@user1112560 I'll find a cleaner approach, rather then:
  System.Reflection.Module[] modules = System.Reflection.Assembly.GetExecutingAssembly().GetModules();
  string location = System.IO.Path.GetDirectoryName(modules[0].FullyQualifiedName);
  if ((location != "") && (location[location.Length - 1] != '\\'))
      location += '\\';
      return location;
That seems dirty.
 
Eugh, yes, definitely
 
@ton.yeung - Sounds awfully expensive. What could they possibly do in a week that would warrant $5k?
@ton.yeung - I have a friend with a garaged race car in la that he lets us take out
 
be back later.
 
mm, car
 
5:15 PM
meh, seems overpriced. for $300 per day you can rent a 700hp car at most tracks
 
my brother can drive one of these
 
@user1112560 Any thoughts to clean that?
 
he did a track day thing and they went up through I think Cayman, Murcielago and Renault
 
@TravisJ Why in that code above does he have an Event += then the weird trippy string manipulation?
 
oh yeah, where I used to work had a test track. They hired it out to a number of different people including racing teams and this company that was basically paid by football clubs to teach their new signings how to drive the fast cars they'd inevitably buy
had a fleet of Jag XKs
fast enough to practice in, I guess
 
5:20 PM
@Greg - I don't see an event. location is a string.
 
@TravisJ   Event handler, isn't that the +=

if ((location != "") && (location[location.Length - 1] != '\\'))
      location += '\\';
 
concat
 
@ton.yeung I think that was the idea
 
@Greg Think of it is an overloaded operator. += works on events, integers, floats, strings etc..
 
there's a ~200m circular skid pan in the middle that they basically throw them onto flat out and intentionally lose control
 
5:23 PM
@LewsTherin Makes sense, I usually associate it to a subscription of an Event Handler.
 
Just one of its many uses :)
 
@ton.yeung well a jag isn't exactly a super car but yeah, the point is for someone who has no idea how to control a performance car to update their skills
 
user1881400
Can anybody identify what's wrong with this? I'm passing in values as high and low as int.MaxValue and int.MinValue, could that mess it up?

//t is a decimal from 0 to 1.
public static int Lerp(long value1, long value2, float t)
{
return (int)((1 - t) * value1 + (t * value2));
}
 
@ton.yeung yeah the boss is a former racing driver
he has an epic mullet but we won't hold that against him
 
@LewsTherin Any thought on how to clean the bizarre code.
 
user1881400
5:27 PM
What? Somebody else read the Wheel of Time series? lol
 
@Greg Which?
 
 System.Reflection.Module[] modules = System.Reflection.Assembly.GetExecutingAssembly().GetModules();
  string location = System.IO.Path.GetDirectoryName(modules[0].FullyQualifiedName);
  if ((location != "") && (location[location.Length - 1] != '\\'))
      location += '\\';
      return location;
I feel like there has to be a better way, it came from an example for ProtectedConfig.
 
@FizzledOut I'm in a book? Whoa, I'm awesome.
@Greg Looks good to me. Added braces and indentation and it should be nice
 
@LewsTherin But for the sake of understanding for junior developers, they'll look at it and go wtf?
 
Interesting. You should fire them then :D
 
5:31 PM
@LewsTherin Sigh, not helpful.
 
Got interrupted
 
But tbh I'm not sure how you could dumb it down.
 
Lews was right, that was string concatenation not event delegation
@ton.yeung - They don't teach you how to not kill yourself. Sometimes there is a driver with you in the passenger seat. That is pretty standard.
 
user1881400
@Greg just add comments if you think it's confusing. If the comments don't help junior developers understand it, then they need more training.
 
5:33 PM
@ton.yeung - If you look on groupon you can usually find one for sub $100
 
5:45 PM
We are going to create an app that consumes an API from a vendor of ours that gives us tracking data on shipments. They have a key in the call like vendor.com/api/KEY-KEY-KEY/… how do I call from AJAX so people cant see my key?
Or do I need to use HttpClient from codebehind, and pass results to the page?
 
Mmn won't you have to use post request? I prefer code behind though. Hide it behind a web service.
 
Hnngh. No booze since saturday
to be fair, there was quite a lot on saturday
I think the strength of the craving demonstrates why I should keep the abstinence going
 
@TomW
oops, I was just gonna say I agree
 
There is an annoying oktoberfest party going on around the corner.
 
why is oktoberfest in september?
 
5:55 PM
From Sept 18th to Oct 5th
And beats me
 
ty ty :)
how is F# going?
 
Messing with it here and there. Did a little bit of it at work today.
C#, F#, C++ I'm surprised my mind hasn't exploded yet
 
I'm not sure I will ever learn F#, not cos it looks hard just that writing code without all the help VS and R# gives is so painful.
 
Lol I know what you mean. It looks disgusting when you try to use F# code in VS. I'm not sure whether it is VS or R# complaining but the code is always red
But it builds fine :P
 
user1881400
6:11 PM
I can't figure out why this doesn't work. The variable i is a simple for-loop that has results from 0 to 143, calling Lerp() that number of times. `number` ends up being very close to the max negative, then vaulting to 0 and hits the max negative again for the final value, which should be max positive anyway.

int number = Lerp(int.MinValue, int.MaxValue, 144, i);

public static int Lerp(long value1, long value2, int steps, int step)
{
float value3 = 1f / (steps - step);
return (int)((1f - value3) * value1 + (value3 * value2));
 
6:38 PM
@Greg Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
Admittedly still using System.Reflection, but much cleaner IMO.
 
@user1112560 Yeah, that is what I went with.
@user1112560 I already finished coding it and put into production. At one today I'll see how it does, fail or success.
 
Hopefully at least somewhat tested, best of luck :)
 
Yeah, haha
Anyone know what this guy is doing?
-3
Q: C# data from database to label

KafusEDIT: I decided to write this post again. I have problem with autocreate labels from database. This is what i wrote [NEW CODE] : public partial class Form1 : Form { int i = 0; int r = 0; int c = 0; int x = 22; Label[] lbl1 = new Label[25]; public Form1() ...

@user1112560 I did manage to convince my boss though I wrote encryption to put it on a locked down server with nobody but domain admins.
 
@Greg he is trying to open a connection get a value from the DB and put it to a label
should be using a reader to make the labels at run time?
 
@Greg No QA?
 
6:52 PM
Don
don't suppose anyone knows of a keyboard layout with the # at the top left of the keyboard?
Just got a new one which is nice, but I don't recognise the layout.
# is just under the escape key, left of 1
 
where's the `?
 
Left of enter, most UK keyboards have it there (expect Macs)
 
Where's the '?
 
Oh, got them mixed up
' is what I mean when saying
55 secs ago, by OMGtechy
Left of enter, most UK keyboards have it there (expect Macs)
` is next to right shift
 
6:56 PM
where's /?
 
Wow, we have very different layouts.
 
this is gonna turn into a fun game
 
left of the `, right of the >
Indeed haha, I've never seen this one before
 
It's not AZERTY is it?
 
QWERTY
Just the symbols are strange
 
6:57 PM
any monty python fans here?
 
@Skullomania Ni!
 
haha
 
this makes my sides hurt!
 
Have you seen the Spanish Inquisition?
 
6:59 PM
yes...hahaha
 
Argument clinic?
 
i like life of brian the best!
 
@OMGtechy Oh, so then what's Shift+3?
 
£
 
6:59 PM
There's actually two £'s xD
 
wot
Is there a $
 
Which is also something I've never seen
Shift + 4 is $
 
Where's the other pound
 
Under R for some reason
 
Under?
 
7:01 PM
Yeah
Like, on that key
 
My page never loads, this code works great in LinqPad and returns data from the server no problem pastie.org/private/ee43qrwoellhzlk714yba
 
wat
 
under as in Ctrl+R?
 
Am I doing something wrong?
 
Yeah, something like that (although I can't be sure as the keyboard layout isn't correct yet)
I'll see if I can find a picture
 
7:02 PM
what is the process called when stackoverflow and facebook alike allows you to post a youtube url and the actual video shows up
how is this done?
 
"oneboxing"
magic
 
This is part of it
Looks like the exact same keyboard model actually
 
yeah, probably an Alt code
or Fn or something
Do you have a two row Enter key?
 
Two row and bottom in 1
 
@TravisJ is this javascript?
 
7:04 PM
@juanvan @LewsTherin That is kind of what I thought. Turns out, he wants to build a tree view in a Grid View.
 
will continue to search for a better picture
 
@Skullomania - Any time you see a page change without the entire page reloading, javascript happened
 
I wouldn't like that tiny shift key
@TravisJ doesn't mean the oneboxing is done via js
 
Anyone know what datatype in SQL Server maps to byte (NOT byte[]!)? I am using EntityFramework and have tried different combinations of binary().
 
This looks like the same one
 
morning guys
 
The process is. Images are shown in image tags. Videos are shown in embedded tags using embed, object, or video.
 
!!youtube morning angle
 
@user1112560 Interesting.. I will try that out
 
Aw, chat bot has failed me.
 
7:08 PM
it is offline for maintenance
 
god dammit
 
in JavaScript <3ro, 3 hours ago, by rlemon
Bots down until the users bug is fixed. FYI (and stop asking / bitching about it).
 
@OMGtechy oh lawd, "/@
 
@OMGtechy Kill it with fire.
 
Hahaha
 
7:10 PM
@CodeWarrior tinyint or something like that
 
I'm trying to find a big list of qwerty layouts
if I was on ubuntu, it'd just tell me
god dammit
 
Do you have to escape spaces in a config for a value to be read correctly?
 
:)
 
@Greg ?
 
@OMGtechy Hold on.
 
7:24 PM
Y.O.L.O.S. You Only Live One Season - Ned Stark
 
Hello, I have a quick question
it's conceptual, didn't know which room to ask it in
what kind of data structure is JSON?
i just found out one of the blogs defining it as an array and i'm sure it is not an array
 
@JoeSaad I guess its arrays.
 
ahaha
 
arrays are: index (which is always a number starting from zero) and value
json is a key(property) and value
what do you think?
 
@JoeSaad Keyed collection/array/value
 
7:28 PM
@JoeSaad - json.org
 
I'm pretty sure [0], 0 and {value:0} are all valid JSON responses according to the spec.
 
there, that is the right one
 
ok
so it is a collection
 
array of objects as we may say
 
7:30 PM
It's a text format that represents an object that may or may not be a collection.
 
hmmm
 
call it whatever you want, its used to hold data, usually to send it somewhere useful
 
Starting my first MVC project, soo excited after all the learning.
 
@Marek Enjoy :D
 
if you try to conceptually think about it as holding data as structure x, ... well it doesn't matter what structure you visualize it as
 
7:32 PM
lol the ecma doc is verbatim from json.org (probably because both were authored by Crockford)
 
Started my first MVVMC a while back, it's fun.
 
json is used as data transport. it is essentially a dictionary of <object,object>
 
Anyone have a thought of why the following happens, Access Denied to a path but I can navigate to the directory no problem, create folder, and etc.
 
@Greg you're running under a different user than asp.net or iis,
 
Is the app running as you?
 
7:33 PM
represented by {"name":"value"} or {"name": [ "1","2" ] } or { "name" : { "child" : "value" } }
 
just because you can get to it, doesn't mean the app can
 
What is the difference between 4.5 and 4.5.1 .NET FW? For MVC project.
 
When you navigate there, you are admin. When your application tries to access, it is not.
 
@Steve No, I'm not it is a console application.
@user1112560 Yes, I tested with my username and the designated one.
 
@Greg then the console app is running under a different user.... are you running it through vs debug?
or you aren't giving it admin rights when you run it i suppose
 
7:36 PM
@Steve Both. I've tried both, every which way
I get this:
The process cannot access the file '\\filesrv1\WebDev\Upload\Cybersource Transaction Detail' because it is being used by another process.
 
that doesn't say access denied
 
I think I fixed the other issue with the access denied, the config file didn't appear to like: Detail Here
 
The file's locked, most likely not a permissions error.
 
When I hard coded I get a different error, but not access denied.
@user1112560 File doesn't exist.
 
did you forget to close the file?
 
7:37 PM
It is supposed to create the file.
 
Interesting
Any sample code?
 
Thanks guys!
 
            using (var stream = request.GetResponse().GetResponseStream())
            using (var writer = File.Create(path))
            {
                stream.CopyTo(writer);
                return true;
            }
@user1112560 I can't post the actual request code because it contains confidential information.
 
@Greg I see what Travis meant about severing the link between past Avatars. It leaves a sour taste in my mouth.
 
7:39 PM
'course
 
@user1112560 @KendallFrey Tinyint worked! Thanks!
 
@LewsTherin I'll talk to you about that later.
 
Sure
 
@Greg Looks fine to me, don't have anything to add. Best of luck.
 
@user1112560 I figured it out. Thanks though,.
 
7:44 PM
what was it?
 
Anything you can disclose? I'm interested
 
Lets just say it was careless.
 
lol
thats what i tell people when i did something stupid too :p
 
@Steve got the hunter at 499GS
and working on the legendary back
 
nice
i just play in low lvl bg's now and destroy non-twinks :p
cuz i'm a dick
 
7:51 PM
hahaha
i thought they disabled the ability to twink
did they bring that back?
 
its not like twinking in the old days
its just getting mining up for [toughness], and stacking stam
with all boas
 
aaah
 
and chants
 
my huntard is a skinner
so hes got that anatomy buff
 
what does that provide? agility right
anatomy gets you?
crit?
 
7:53 PM
critical strike increase
 
sounds like crit
yeah
 
i wish they didnt remove the heal from the alchemy buff for mages
my mage would really be OP then
 
i wish they didn't remove shadow step from rogues at low levels
 
yea...that sucks
i miss mana for my hunter....I really just miss the old talent trees
 
@Skullomania they're different now?
 
8:00 PM
@KendallFrey in the end, I just used Microsoft Keyboard Layout Creator
 
@Pheonixblade9 way different now
they dummed it down
 
oh yeah...
 
waaaaaay down
 
haha I had the most badass marksmanship hunter
just stand outside of a scrum in EotS or something and charge up aimed shot, crit for 5k, make people sad
the most fun though was playing as my priest in EotS and MCing people, then jumping off the planet
that was fun
 
@Pheonixblade9 there in lied the problem...people started complaining about how bad they sucked because they didnt know how to spec their toon properly
 
8:02 PM
shrug
I got MoP and played it for like 2 hours... it was just really boring
 
i have a love hate relationship with WoW...i get bored of it..then a year later ill play for a month and get bored of it again
 
i just hated leveling
 
haha
well quests got better... then they got worse
WotLK had the best quests
 
My co-worker made the best WowBot out there. Used C#. Injected his own instructions into the CPU memory so the Warden system wouldn't catch him
 
8:04 PM
lol...the garbashi arena....got some badass memories there
 
He'd have 5 level 60 characters being powered by this at one time. THey'd all move as "one" thing on the screen, all on the same X,Y,Z location
in PVP it's be like a 1 hit kill because all of them would attack at the same time when other players thought it was 1 person
 
@RyanTernier lots of people do that in WoW with shamans
 
@Pheonixblade9 He used 5 dwarf clerics. They always ran around saying "hi, HI, HI. WHY ARE YOU NOT TALING TO ME" hi
 
lol
or should I say... kek
 
shamans and pallys were gods in vanilla
 
8:06 PM
yeah, no kidding
 
warlocks still are...lol
 
oh, warlocks.
destro locks in BC were literally just "succubus sac and spam shadow bolt"
sounded kinda boring
 
no kidding...but an affliction lock's dots
deadly
 
oh, this is kinda crazy btw
I do apologize but it looks like the company you work for is one of the companies that I’m not supposed to reach out to.

My apologizes and I do encourage you to apply online to Amazon.com
a recruiter just sent that to me after asking me to come to an event, lulz
 
my company?
 
8:09 PM
@PB you been following the whole Bash bug thing?
 
So... arr you going to go to the event?
 
@RyanTernier no, what up?
haha, no, not going to the event
not really that interested in working for AZ
 
It's bigger than heartbleed
you can inject Bash commands to a Unix only box through HTTP/other means
 
really only wanted to go so I had some leverage for salary negotiations
 
and take control of a system
 
8:11 PM
@RyanTernier that's scary
 
been there for 20 years
they just released it now
 
@Pheonixblade9 kickass video...like the background music
 
Too bad there aren't any viruses for Linux.
 
you don't need a virus if you have root...
 
8:11 PM
Didn't think I'd need a \s for that one :P
 
@RyanTernier so are they fixing it?
 
there's a pattch that might or might not work
 
Who here likes MVC?
 
but this exploit opened up a lot of issues with the DHCP, Bash shell, and unix systenm
 
I like mvc
 
8:16 PM
I love lamp
 
MVC is the nuclear option, it's useful, but it's overused as a design pattern.
I like it.
 
how is it the nuclear option?
it's pretty good for most projects large and small
 
@Pheonixblade9 - Are you just saying you love lamp, or do you actually love lamp?
SE runs on the MVC platform.
 
8:32 PM
@Pheonixblade9 not to backtrack but the genre of music on that wow video is it called dubstep?
 
This is so cool Data?name=Scott&numtimes=100000
 
blank face
What is "dubs tep"?
 
im not sure...im trying to find the genre of music in this video
sounds like good programming music
 
sounds like the same genre i guess
 
8:39 PM
@Skullomania - Some is, some isn't. There are many variations of dubstep
 
a bit cooler than Ellie Goulding
 
there's wub, double wub, chill wub, wub wub
 
The song from your video is liquidstep
@Skullomania - The youtube link was to a collection of videos from calvin harris. he is the premiere dubstep dj in the world at the moment
 
spotify fails trying to find this
 
@Skullomania - youtube.com/watch?v=A3VtEIBowDk is the video from your link
 
8:43 PM
@TravisJ thanks man
 
Here is some other stuff if you are interested
http://www.youtube.com/watch?v=jGow4nmYkkA
http://www.youtube.com/watch?v=6THS-VHC8sA
http://www.youtube.com/watch?v=JB9lI5hS9a4
http://www.youtube.com/watch?v=fOf7303SPmM
http://www.youtube.com/watch?v=kl3prOiIYLg
 
this is some good shit here, too:
 
BTW. Anyone got experience with retrieve previous browsed product in NopCommerce?
 

« first day (1440 days earlier)      last day (3517 days later) »