« first day (2447 days earlier)      last day (2508 days later) » 

12:57 AM
bloop
 
1:14 AM
bloop
 
1:32 AM
Bloop was an ultra-low-frequency and extremely powerful underwater sound detected by the U.S. National Oceanic and Atmospheric Administration (NOAA) in 1997. The sound was consistent with the noises generated by icequakes in large icebergs, or large icebergs scraping the ocean floor, but in 2002 was said to also be consistent with large marine animals. NOAA believes it has now analyzed it conclusively and the noise was ice-related. == Analysis == The sound's source was roughly triangulated to 50°S 100°W (a remote point in the south Pacific Ocean west of the southern tip of South America), and the...
 
 
2 hours later…
3:53 AM
@KendallFrey I expect his next video will be about 'Nazi people' and how they aren't bad just because they wear sunglasses :p
 
well nazi people arent bad just because they wear sunglasses
its the nazism
 
"Not-see" - Kendall knows.
 
4:15 AM
lol
is that indian dude on youtube?
 
Yeah.
 
lol
 
4:59 AM
How long until Google can generate videos like that? I think speech would be the hardest part..but clearly not for videos like his :p
Scripted of course..I know (think) AI is pretty far off. *
 
6:00 AM
hello
everyone
php is best
 
6:19 AM
Ooh, lots of kicking tonight.
 
Mornin'
 
@RishuSingh what make you to think like that ?
 
So we've become a room for really, really lazy trolling?
 
6:35 AM
@User125 I use php to build front - end.
@AvnerShahar-Kashtan gotta go with the morning flow :)
 
good morning everyone :D
 
@mr5 That's logarithmic scales for you.
 
3
Q: Contradiction: Prove 2+2 = 5

JaguarWhile browsing I came across a weird proof which says 2 + 2 = 5. The proof is like this: After going through this for almost 30 minutes, I was not able to figure out the mistake in this. What is wrong in this?

 
mr5
I don't even know why I ended up in that site
I was searching for a text validation and somehow...
nah. this one's better
670
A: Write a program that makes 2 + 2 = 5

user12166Java Reflection is indeed the right way to go with abusing Java... but you need to go deeper than just tweaking some values. import java.lang.reflect.Field; public class Main { public static void main(String[] args) throws Exception { Class cache = Integer.class.getDeclaredClasses...

 
6:45 AM
@mr5 that's genius :'D
 
Am I the only one who thinks python is for "security experts" who won't actually learn to program?
 
I wonder if you can mess with .NET's string intern cache like that.
@ABuckau Yes, yes you are.
 
Who else learns it? ...lately I've noticed a big push for it.
 
@ABuckau I ultra disagree.
 
6:47 AM
Hardware ppl who don't want to learn to code?
 
Python is amazing for quickly developing scripts
 
@ABuckau and for math students
also scripting some tweaks in python is nice
 
Its not a random language that is a step-through while learning others, absolutely not
 
Will everyone please stop trolling for pointless discussions on "good" or "bad" programming languages?
 
It wasn't a troll...I genuinely want to know why its being pushed so hard lately
Afk.
 
6:48 AM
@AvnerShahar-Kashtan I agree. Unless it's Java. Java is evil.
 
@ABuckau Asking "Why is python pushed so hard" is asking. Saying "people who use python aren't real programmers" is trolling. Very simple.
I'll happily take swipes at java, and javascript, and whatever. Not at people.
 
What the Frig is Madara doing here so erly in the morning?
Aswell
 
typescript ♥
 
GoOoOoOoOoOoOoOoOoOoOoOd Morning neglecterinos!
 
ohayou
 
6:58 AM
@AvnerShahar-Kashtan tbh, I just feel that he is totally off here and pulled out some personal (wrong) assumptions based on lack of knowledge
Which is never a good thing.
 
@KamilSolecki I don't like Python. Even more chaos then Powershell and that already confused me :§
 
@Nerdintraining The thing I dislike about python is that code blocks are decided by indentation
 
@KendallFrey What the frig kendall?^^
@KamilSolecki +1 on that, confuses me allot!
 
@KamilSolecki It bugged me too. Then I started using it and forgot it bugged me. Just a matter of being used to one thing over another.
 
mr5
Ηue Ηue Ηue
 
7:05 AM
@CapricaSix Really?
 
mr5
MΗllica
I Ηack JS =P
 
@mr5 can you explain? or are those different 'H''s?
 
hello
 
7:08 AM
bonjour @satibel
 
@CapricaSix It does.
 
mr5
@KamilSolecki they are different :D
Η != H
 
mr5
Η is in greek I think
 
7:11 AM
Ha I knew it.
 
@mr5 lol but with localeCompare it works ^^
 
In every method in my API controllers, I do:

var user = context.Users.SingleOrDefault(u => u.Id.Equals(RequestContext.Principal.Identity.GetUserId()));

Can I automate this in some way? Where should I do that?
 
Have you heard about puny urls @mr5
 
mr5
Eta (uppercase Η, lowercase η; Ancient Greek: ἦτα Greek pronunciation: [êːtaː] or Modern Greek: ήτα Greek pronunciation: [ˈita]) is the seventh letter of the Greek alphabet. Originally denoting a consonant /h/, its sound value in the classical Attic dialect of Ancient Greek was a long vowel [ɛː], raised to [i] in hellenistic Greek, a process known as iotacism. In the system of Greek numerals it has a value of 8. It was derived from the Phoenician letter heth . Letters that arose from eta include the Latin H and the Cyrillic letter И. == History == === Consonant h === The letter shape '...
 
if i am not mistaken they are called puny url
 
7:12 AM
@ErwinOkken Is Id the table's key?
 
mr5
6 mins ago, by mr5
MΗllica
 
@AvnerShahar-Kashtan Yes.
@AvnerShahar-Kashtan The "default" string Id from Identity
 
mr5
@Nerdintraining what's that?
 
@ErwinOkken Then you can call DbSet's Find method. context.Users.Find(RequesxtContext.Principal.Identity.GetUserId());
That saves us a bit of code.
 
@AvnerShahar-Kashtan Ye but where can I do that, to automate it? I've got like 40 calls now in a few different controllers.
 
7:17 AM
Now, wrap this call in a property called CurrentUser and put it in your controller's base class.
If you don't have one, create one - create a MyControllerBase that inherits ApiController and have your own controllers inherit it.
 
Ohye, djeez I'm not awake yet -.-
:D
Are you sure there isn't a built-in option?
 
To do what? WebAPI/MVC doesn't know or care where you're storing your users. EF doesn't know or care that your requesting user ID is coming in over a RequestContext.
This is literally 3 lines of code.
 
It's a phishing method that imitates a websites name.
E.g. It changes the H in the url to the greek H baisically.
Punycode is a way to represent Unicode within the limited character subset of ASCII used for Internet host names. For example, "München" (German name for the city of Munich) would be encoded as "Mnchen-3ya". Using Punycode, host names containing Unicode characters are transcoded to a subset of ASCII consisting of letters, digits, and hyphen (the Letter-Digit-Hyphen (LDH) subset, as it is called). While in theory the Domain Name System (DNS) supports arbitrary sequences of octets in domain name labels, the DNS standards strongly recommend the use of the LDH subset of ASCII conventionally used for...
A german video showing how it might work:
 
My Controller base class has this RequestingUser property, a LogControllerException method that does standard handling of exceptions that weren't handled anywhere more specific, and a couple of shared services.
 
@AvnerShahar-Kashtan Most of the code was already built-in from the template. Identity stuff like a controller and ApplicationOAuthProvider and such. I'm not saying it actually is there or should be in there. But IF it is there, I don't wanna do it myself =)
But I'm gonna create a property in the base class. Thanks for waking me up :p
 
7:23 AM
\o
 
Heyho Sensai
Why the frig is "Anal bleeching" starred?! And it's ripped out of context >,<
 
@Nerdintraining Your question contains the answer.
It's starred to take it out of context.
 
@Roel I saw ts 2.4 had string enums
pretty coolio
 
@AvnerShahar-Kashtan that doesn't explain the 2nd start
 
7:28 AM
it's tightened up on type inference, too.
 
or the third^^
 
TypeScript <3
 
the generics?
 
@Nerdintraining Once it's out of context, it's funny.
 
@Nerdintraining enjoy your future timeout for inappropriate content.
 
7:28 AM
I didnt quite understand that to be honest :(
I was like "oh ill just skip this"
 
xD
I was concidirng flagging it myself :P
Just to remove it
 
You can delete your own message, I think. Even old ones, no?
 
nope
 
Also. in unrelated news, anyone worked with WMI queries? Do you know of a good library that's a bit easier to work with than System.Management.ManagementObject?
 
7:30 AM
nope
 
I've worked with ManagementObject, but I'd love a cleaner API.
 
@misha130 generics?
 
?
what art thou question?
 
WmiLight seems nice.
 
is there any weird database i definitely need to try for my next project except csv?
 
7:36 AM
wat
 
@Squiggle One of (in my eyes) the few good things that came out of Microsoft in the last few years.
 
tsv (tab seperated values :P - if that exists)
 
@misha130 Nice.
Does it have nameof now?
 
@Nerdintraining it does and its horrible
 
keyof?
 
7:37 AM
like brainfuck for accountants
 
@Nerdintraining Ironically, it's still called CSV, even though the separator is not determined in advance.
 
@SebastianL it's beautiful!
 
@RoelvanUden What would nameof do?
Get you the enum key from the value?
 
@MadaraUchiha ^^ but the first lina gotta be sth. like sep=tab doesn't it?
 
@Nerdintraining only if you want to open it in excel
 
7:37 AM
@Nerdintraining No, it's not specified in the file. It's expected of the parser to know.
(Usually)
 
kek
My father had an issue with his bankstatements once.
They were semicolon seperated and a excel couldn't handel it.
 
@Madara wont keyof work?
 
@misha130 For an enum? Probably Nope
 
It mashed them all up in one line so he always needs to add the sep=; ad the beginning
 
like keyof SomeEnum.Something as I understand returns "Something"
yea
 
7:39 AM
@MadaraUchiha IMO & IME, Microsoft have created a whole slew of great things recently. Visual Studio Code, Azure, TypeScript, UI Fabric, plus their investment in Xamarin - I use these daily, and really enjoy it.
 
@Nerdintraining commas are bad for seperating numerical values, ever tried to import comma seperated values in different cultures? no? i hope you'll never need to do that ^^
 
@SebastianL we germans use , instead of . ^^
 
@misha130 No, to get the key you feed the value back to the enum
Foo[Foo.Bar] === 'Bar'
 
that playground doesn't support typescript 2.4 for some reason
 
@misha130 It came out just today, give it a few more hours
 
7:41 AM
:^)
@Squiggle what is UI Fabric? never heard of it
 
Hi guys
 
@misha130 it's a web UI toolkit. A suite of components and styles, primarily for React.
 
Is it possible??
 
ah
 
@SebastianL although generally CSV is a strict standard with rules, so it should not be a problem. In practice though, I've seen some horrendous things.
 
7:42 AM
@misha130 dev.office.com/fabric#/components used extensively for the Office365 suite, made available for general use.
 
@MadaraUchiha nameof(SomeInterface.SomeProperty) would yield `"SomeProperty"
Thus solve the magic strings problems, and allow easy refactoring
 
Sorry i mean i have a web api controller which will accept json but structure is always different so i cant create pre define class to accept the json
 
@RoelvanUden SomeInterface[SomeInterface.SomeProperty]
 
@KamilSolecki i implemented a "universal" csv importer.... i get a random csv and then need to make sense of it... if thats possible
 
@MadaraUchiha That's for enums, not interfaces/classes/etc.
 
7:43 AM
@RoelvanUden Ah
 
Yeah, the runtime doesn't support something like that
You can probably get around to it with reflection, but it's not something that TypeScript as a primarily compiled language with no runtime can do.
 
One of my favorites is one from a producer I work with. They have a CSV file on a server, which name consists of : 'stocks' + some ~10 numbers. At first, I thought that the numbers mean something and allow for downloading the exact one you want. How wrong was I. The numbers were obviously random, so that there is a low chance of those files overlapping names....
 
The keyof parameter for example. only works on the type layer
 
Indeed. I currently use a nameof expression parser.
 
7:45 AM
@RoelvanUden What's your usecase?
 
nameof(() => something.myProperty)but it's nicer to have it in the language
@MadaraUchiha Simple: Allow refactoring without having to remember magic strings
 
@RoelvanUden Example?
@KamilSolecki Sounds reasonable
Although I'd use a hash of the contents instead
 
@MadaraUchiha A reasonable thing would be to make the numbers a DateTime
 
@KamilSolecki You need a conceptual primary key
 
const cloneObject (obj: any, includeProps: ...string[]) = {...}
const a = new MyClass();
cloneObject(a, "x", "y", "z")
Now when I rename z, I must remember to fix the call to cloneObject.
keyof can work in this particular case, but it's still not automatic.
 
7:48 AM
Whether it's a random number, a hash, an incrementing number, or a date depends on what the concept of the key is.
@RoelvanUden Well, to make it easier, you can do something like
const cloneObject = <T, K extends keyof T>(obj: T, ...includeProps: K[]): Pick<T, K> = { ... }
That would trigger a compilation error if you rename z and neglect the string.
 
Sure, but not what I'm after.
Imagine I just want the class name :P
const funkyFactory = (className: string) => {...}
funkyFactory("MyClass") is just terrible
 
@RoelvanUden Right, because you don't do that in JS
You just pass a reference to the class...
 
funkyFactory(nameof(MyClass)) is okay.
 
Why not funkyFactory(MyClass)?
 
Perhaps I've got some configuration living somewhere with data to attach to the new object?
 
7:51 AM
oh, I should have mentioned there is two CSV's on the FTP at a time. They differ by date of release (one from the morning, one from the evening).

The date is inside the file.

I basically have to get them both and THEN see which one I actually want, which should not be the case.
 
I don't understand why you're trying to hard to deny the usefulness of nameof
 
@KamilSolecki Right, so in your case, using the date as the key makes sense
@RoelvanUden Because it's not very idiomatic in JS
 
It's TS, not JS.
 
@RoelvanUden Hello, my name is nameof(me)
 
@RoelvanUden It doesn't matter, one of the major principles of TS is that the idioms and patterns of JS are preserved and supported.
 
7:54 AM
It never said "Look, we aren't going to add anything that isn't a pure JS idiom"
 
@RoelvanUden Right, but JS has alternative idioms to accomplish 90% of the cases that nameof covers
So the usefulness is somewhat dampened
I can see a clear case for debugging
But with refactoring you almost always pass a reference to the function/class/whatever that you want to pass anyway
And not a string representation of it.
There's no const clz: string = "Foo"; new clz() in JS
So nameof() is not helpful in this case
The runtime itself doesn't support string-based identifier outside of object properties
 
@KamilSolecki get the first one, check, if it's not, get the other one.
 
@satibel well obviously thats what I'm doing. I'm just pointing out this shouldn't happen
 
don't you have an incremented serial?
 
@satibel It's not my ftp & not my db, but one of the producers I work with.
 
8:11 AM
Good day
 
@KamilSolecki I mean aren't the filenames random numbers?
 
@satibel The filenames are random numbers, and he says that they should be dates.
 
woho
 
@satibel they are.
 
i got a like for a video i posted in team slack
 
8:15 AM
Likes make the world go round.
 
around around
 
@Proxy right round, like a record
 
i expect at least two stars here
 
For chaging the Projection area dynamically Proxy?
 
8:28 AM
Ahoy o/
 
ohay /o
 
I see what you did there @satibel
 
yay /o\
 
@satibel a single balled person?
 
@Nerdintraining Shot in the nuts
 
8:43 AM
@RoelvanUden Just like good old 'dolf!
Properly the reason why he was so mad...
 
@Nerdintraining dafuq?
 
@satibel It's what that represents!
 
i just discovered that noir means black in french
 
uh, yeah
i think blanc is white
french is strange
 
couleur me surprised
 
8:56 AM
!!giphy clever
 
UWOT
 
@Nerdintraining or just someone upside down.
 
... i still don't see any proxy stars on the starboard
 
@Proxy you just need to say that
Anal bleeching
is bad for your health.
 
9:01 AM
@satibel seeems less likely
 
@Proxy just throw some inappropriate swear words into the chat when nobody expects it
 
nah that is way to easy, i need to find another way to famous
 
@AvnerShahar-Kashtan You just helped me with my CurrentUser property in asp.net. When I get the User, I create a DatabaseContext. But when I want to change it, it seems impossible, probably because it's a different DatabaseContext. How can I handle that? Make it a method that accepts a DatabaseContext? Because keeping the Databasecontext open for long isn't a good idea.
 
Change what?
 
A user's name, for example.
The entity isn't being tracked by that context I guess. And setting it to Modified or attaching it doesn't work. No exceptions though
using (var context = ApplicationDbContext.Create())
            {
                try
                {
                    CurrentUser.Name = userModel.Name;
                    context.Entry(CurrentUser).State = EntityState.Modified;
                    context.SaveChanges();
                    return Ok("");
                }
                catch(Exception e)
                {
                    return BadRequest(e.Message);
                }
            }
So that code isn't working because CurrentUser is from a different DatabaseContext.
 
9:07 AM
what is the class of CurrentUser?
ApplicationUser/IdentityUser?
 
Attach it.
context.Attach(CurrentUser)
 
@misha130 Yes
@misha130 A subclass of ApplicationUser
 
dont you need to use the usermanager to update this entity?
57
Q: Updating user data - ASP.NET Identity

gldraphaelI've added custom fields to the ApplicationUser class I've also created a form through which the user can enter/edit the fields. However for some reason I'm not able to update the fields in the database. [HttpPost] [ActionName("Edit")] [ValidateAntiForgeryToken] public async Task<ActionResult> M...

 
You know guys what never occured to me
When u lock your screen (windows+L)
 
@Proxy buy 10kg of guacamole, mix it all, drink it and record it all
 
9:18 AM
That lockscreen
it's just a programm.
logonui.exe
 
ur computar is a progrm
#truth#eyeswidthopen
 
#illuminaticonfirmed
 
@Nerdintraining There's a whole set of vulnerabilities around replacing Windows system files.
That's why SFC exists.
 
@Nerdintraining make a batch and run it without console showing, closing all instances of explorer.exe and dwm.exe every second. Try to recover
 
@AvnerShahar-Kashtan i knew that, at our shool we exchangethe "bildschirmlupe" (the lense for the screen) with a admin version of the command tools. We baisically had admin rights on that computer since then
 
9:20 AM
@AvnerShahar-Kashtan in win7 for example, on lockscreen there is a little icon in bottom left. It links to an exe. replace that exe with admin rights cmd, and you have a fun little backdoor
 
@KamilSolecki called it already^^
Works under Win10 aswell
 
@KamilSolecki you mean the magnifying thingy? :D
 
@SebastianL wait lemme lock my pc
 
ARGH I HATE IT WHEN PEOPLE IGNORE WHAT I ALREADY SAID
wsdaf
 
@SebastianL Yeah. Replace the EXE that it calls and you're in, running as SYSTEM.
 
9:23 AM
@SebastianL the little symbol that is supposed to represent a dude on a wheelchair
It opens a prompt called: accessibility options
 
@AvnerShahar-Kashtan don't you need admin rights to replace it?
 
you do
thats usually how all backdoors work, you first need to gain admin rights to set them up OR get an admin to execute a script
 
All you need is a screwdriver and a cable to connect the hard drive as an "external harddrive"
Works like a charm
#sysadminhacks
 
@Nerdintraining Physical access tends to be a bit more difficult than admin access. Or, at least, a different sort of difficult.
 
9:27 AM
>Be surgeon and an IT fanatic
>open up your own stomach
>put an LCD inside your belly
>you know have an internal life monitor
>Or, you are a teletubbie.
 
@KamilSolecki there's a guy who implanted some vibrating motors in his arm, so he can interface with some electronics.
 
Step 7: Profit!
 
fixed, dammit, why is enter so close to '?
 
@satibel 'electronics'
 
@misha130 @AvnerShahar-Kashtan Thanks. Had to use that UserManager indeed. Gave some problems but I fixed it. Thanks for helping me :-)
 
9:36 AM
@KamilSolecki ultrasonic sensor for the demo.
so he can sense how far an object is.
 
 
1 hour later…
10:50 AM
Have any of you run into a datetime format like this?
20170628000001.000000+***
It's similar to ISO-8601, but without the T separator, and with a strange timezone.
 
nop. Sorry
 
I've run into a lot of weird formats, but not that one.
 
hi
This may sound weird: but is there a way to search the nunit 3 wiki?
Google keeps giving links to nunit2.5, refusing to index nunit 3's wiki which is hosted at github. - and on github itself there doesn't seem to be a search the wiki button?
 
11:09 AM
5th result.
oh, nvm , I misunderstood the question.
though
@paul23
 
doesn't seem to find things which I can find "manually" :(
IE I wish to find this "page" (or any page explaining ValueSource) - github.com/nunit/docs/wiki/ValueSource-Attribute
Searching finds: github.com/nunit/docs/…
 
click wikis.
tbf, github is not that intuitive.
 
Ah, after searching the "tabs" are actually parts of the latest search operation
Thought they were just static and would ignore that I've searched
 
11:27 AM
github is a bad example in UI/UX, Buttons should look like buttons
 
user7442629
What would be more performant?
private bool GetExistsCheckedIsFavourite()
{
//this
return Array.IndexOf(Playlist.Select(song => song.IsFavourite).ToArray(), true) != -1;

//or this
return Playlist.FirstOrDefault(song => song.IsFavourite) != null;
}
 
user7442629
I think the second?
 
I'm also a bit sad that google hasn't indexed the wikis on github - actually I hardly ever see any wiki on github as suggestion in google
I'm too inexperienced to know if FirstOrDefault will make a new array, but that one sounds faster. -- But GetExistsCheckedIsFavourite this name...
 
@Aleksbgbg profiling is your friend, though, I think second is the fastest.
 
user7442629
I don't know what that is
 
11:31 AM
"run it a million times and see which is faster"
 
that ^
 
Typically using fancy tools
 
user7442629
Oh one of those timy things
 
user7442629
I don't really care that much but I will use the latter
 
@paul23 robots.txt, maybe.
 
11:35 AM
Robots.txt allows for fine granularity right? It's a bit silly that it stops crawling the wikis (code I can understand to reduce bandwidth).
 
@paul23 it's also silly to not make Buttons look like buttons.
 
Someone isn't too favorable about github ;P
 
user7442629
GitHub has buttons that don't look like buttons?
 
19 mins ago, by satibel
user image
code, commits and issues are buttons.
 
Hi guys
 
user7442629
11:40 AM
I saw the picture but didn't realise those were buttons lol
 
@paul23 I like github, i dislike part of their UI
 
user7442629
They look like tabs
 
@Aleksbgbg well, tabs are buttons.
@Learning Hi
 
11:56 AM
GitHub has buttons that don't look like buttons, some people have a face that doesn't look like a face. Nothing is perfect.
 
searching for face gives beauty face expander
thanks, japan.
 

« first day (2447 days earlier)      last day (2508 days later) »