« first day (3404 days earlier)      last day (1537 days later) » 

3:33 AM
Anyone notice that after all the training & expectation, the only data structures you ever have a reason to use in application code are List and Dictionary? Sure, maybe a ConcurrentDictionary slips in to your reentrant code now and then, but where are my Stacks and Queues?! I'll never see a splay tree writing software for an insurance company.
 
3:48 AM
Use List only when objects are going to modify later, otherwise array.
Use dictionary when multiple mapping is used, otherwise list or array.
When you are using List, you are highly using also Linq, when you use Linq, you have some Enumerable
If you having some good time with database, you might have to deal with some Enumerator
Also, .NET provides DataTable
And many many more, they are all in their purposes, used in different scenario and use case. In best practice.
 
mr5
4:20 AM
@user6481358 I used HashSet and Queue
 
4:39 AM
I have two projects in my solution. AppDomain.CurrentDomain.GetBaseDirectory(); gets the startup paroject's bin directory but not the project in which the code is being executed. how do i get the current project's directory ?
 
Solution\Project\bin\Configuration
VS's default location
 
mr5
Why would you want to know from the app the project directory?
 
I have a json file in a new project. I want to deserialize the file but I cant get the project directory where the file is present
@nyconing Solution\ProjectA\FolderA\FileToRead. but all directory functions i tried brings up Solution\ProjectB\Bin\debug since it is the start up project
 
4:56 AM
This make no sense, mean your compiled binaries cant live without its source?
 
That's what i believe
For now, i moved the file to the other project and serialize it from there but this is weird. never encountered this before
 
b a d p r a c t i c e
compiles your json file too, so your binaries can run without their source code
 
5:11 AM
@nyconing any link i can read more about this ?
 
mr5
The standard .exe file stores the embedded resource in the dll or in the executable still right?
 
6:00 AM
exe are basically dll with entry point
 
mr5
I mean, they haven't changed still right since the dawn of its format creation?
Of course it did to adapt with the system architecture. But in terms of the format structure?
 
PE file format?
 
mr5
6:25 AM
Is it the formal name of .exe?
 
!~wiki Portable Executable
 
The Portable Executable (PE) format is a file format for executables, object code, DLLs, FON Font files, and others used in 32-bit and 64-bit versions of Windows operating systems. The PE format is a data structure that encapsulates the information necessary for the Windows OS loader to manage the wrapped executable code. This includes dynamic library references for linking, API export and import tables, resource management data and thread-local storage (TLS) data. On NT operating systems, the PE format is used for EXE, DLL, SYS (device driver), and other file types. The Extensible Firmware Interface...
 
mr5
6:41 AM
Although executables in Windows are messy, they are, I think, much faster compared to "bundle" executable formats.
 
Any example for "bundle" executable formats?
 
mr5
Those in Android, iOS, MacOS
 
They are so much different, APK and JAR is basically a zip file
 
mr5
I have less knowledge in Linux executable format so I can't comment on that.
 
Linux uses ELF format
 
mr5
6:45 AM
Yeah that is why I called them "bundle"
 
yo yo yo
 
mr5
We know that executables in Windows are not really portable.
 
Let me tell you a secret, self-contained .NET Core executable is also a zip file :D
 
the age-old question php or Asp.net mmmmmmmmmm
I feel like Asp.net
 
mr5
Why remove NodeJS in the options?
 
6:48 AM
is that the server side of JS?
 
mr5
yes
 
I've never used it
 
Why no CGI scripto?
 
mr5
And Servlets
 
Blazor client side comes out in May from what I've read
is it just me or does Blazor UI not look that great
 
mr5
6:52 AM
Blazor is pretty new stack isn't it?
 
jQuery UI is da best!
 
yeah
I think it came with 3.0 of Core
 
mr5
All I can see from the internet is that UI kit from Telerik
ewww
 
Kendo UI
 
mr5
Telerik, Syncfusion, and Kendo smells like SPAGHETTI CODE
 
6:54 AM
They are so beeeeeeeeeeeeeeautifuuuuuuuuuuuuuuuuuuuuckyou
 
mr5
Their product is either slow, lots of bugs, has unintuitive SDKs/APIs, and just don't scale well.
 
Random question, do you listen to music when you code?
 
mr5
Me, no.
 
Listen to ambient fan noise
Stupid .NET Socket API :(
 
interesting
 
7:00 AM
.NET API produces fan noises?
 
lol
 
I produce fan noises sometimes too.
 
Yo.
Music, definitely music. Always music.
 
what type of music
 
@nyconing It does
 
7:03 AM
lol
please kill me
 
Music I like. I don't have specific music for work, I listen to same things I listen to elsewhere.
Right now listening to fun's We Are Young. open.spotify.com/track/…
 
oh that says press to kill me
lol my bad
 
Hmm. Is there a Spotify onebox in chat? Probably not.
 
lol
 
you listen to music with words?
 
mr5
7:05 AM
@DKDhilip what kind of number crunching are you running?
 
Stupid UDP socket can't even do 1M msg/s
 
Yes, but usually music I already know, so I don't have to focus on the words.
 
I couldn't do that
 
@mr5 Sending UDP packets
 
mr5
@AvnerShahar-Kashtan young at heart :D
@DKDhilip wut. shouldn't it be the network module is the one that's busy?
 
7:06 AM
@mr5 I'm trying to push the limit lol
So disappointed
It is just a simple UDP client
 
@DKDhilip congratulations you're a true programmer now
 
@CupOfJava lol
 
mr5
@DKDhilip Parallel.For(0, int.Max, (el, state) => { while (true); });
Have anyone tried MVVM in Android native?
 
I've thought about it but i'm not sure how it would be done
since layouts (eg views) are separate
 
mr5
7:18 AM
There's already an official binding support but haven't tried it myself.
I'm sure it lacks a lot of feature as compared to Xamarin's XAML
Roel and Neil just arrived at the same time 🤔
 
@DKDhilip One MILLION messages per second and you expect that to work?
@mr5 You got us. @Neil and me are two personalities inhibiting the same body.
 
mr5
Everyone here from Europe are the same people. I know it.
 
It's a hive mind.
 
really it's just me with two keyboards, sorry
 
@RoelvanUden Peak was around 800K msg/s
 
7:22 AM
Oh, hey, @RoelvanUden and @Neil.
 
roel + neil = anime cat girl
 
Buenos dias
Good to see you Avner, how was your holiday?
 
@Squirrelkiller Good, good. Longest vacation I've had since... 2006.
 
Guess it's usually not too easy to get a whole month off. What happened 2006? Don't tell me that was last time you switched employers :D
 
Nah, I just planned a long one - coast-to-coast in the USA - and simply notified my employer about 6 months in advance.
That was a 6-week trip.
 
7:29 AM
Woah, nice
Too long for a cannonball run though
 
I know of two other people who have done the whole coast-to-coast in the USA thing
 
mr5
TIL: coast == seashore
 
can you technically call it a coast-to-coast if you don't actually step into the ocean?
 
@mr5 Not ===, though. "the east coast" refers to the entire part of the US that lies along the Atlantic ocean, not necessarily just the bits on the shore itself.
 
Yup, but a coaster is something you put between your table and your hot pot. English is strange yo.
 
7:32 AM
And a potter is someone who makes ceramics
 
mr5
Coaster is a ride
 
Pretty sure that is because pots were made of ceramics
Ah right, coaster is a ride
totally forgot the obvious
 
A 'pot' in Dutch is slang for lesbian :-) /randomuselessfacts
 
@RoelvanUden Pretty sure that still counts as double accounting then. Gues it's enough to just flag Neil.
@RoelvanUden Lol what why is that?
 
@Squirrelkiller but my second account..
 
7:34 AM
As a german, I can absolutely not imagine what "pot" may have to do with lesbisnas.
 
@Squirrelkiller Don't know why. It just is. :-|
 
@Neil that's nothing, I do coast to coast in 3 hours.
I am in Florida so.....
 
what, on a daily basis?
 
Press any key to suicide...
104 messages/s
882904 messages/s
801476 messages/s
880406 messages/s
910968 messages/s
932004 messages/s
948898 messages/s
911650 messages/s
938833 messages/s
906114 messages/s
875063 messages/s
893459 messages/s
918359 messages/s
 
mr5
pot in US also have different meaning lol
@CupOfJava yay! A Florida man! :D
 
7:36 AM
Pretty sure a pot is also a pot in the USA. It's a word too easy for even the US to find a better one.
 
 
@mr5 Florida man watch, you'll see me on the news later
 
mr5
I think some refers pot to mean cocaine?
 
But yeah, I also know it as marihuana. Still can't pull a conection to lesbians.
 
mr5
@CupOfJava haha. How do you feel when the internet stereotype you of such? :D
 
7:37 AM
the stereotypes are true
 
EZ cannonball run in 3 hours, something only florida man can do lol
 
mr5
@Neil lol. I do this when I'm playing Diablo. I might find some rare items
 
Wait why are you even here, @CupOfJava? It's like the middle of the night in florida?
 
@Squirrelkiller Does Dutch have an idiom similar to "every pot has a lid"? It's an expression in Hebrew meaning "there's someone for everyone".
 
yeah, 2:40 am
 
mr5
7:39 AM
@CupOfJava Florida man uses Java in Visual Studio
 
German does have "Jeder Topf hat einen Deckel", exactly that. Gotta ask Roel or the big cat for dutch intricacies.
 
I sleep from 5-11ish
 
@mr5 I think one of the developers said that one of the legit ways of finding more magic items was to break pots, and I think from then onwards I always broke them if I found them :)
 
There, even some pans have lids
 
7:40 AM
@Squirrelkiller I figured there would be (I think the expression got to Hebrew from German or Russian), so maybe that's where it came from - a pot that doesn't have a matching lid, but another matching pot.
 
@AvnerShahar-Kashtan @Squirrelkiller In dutch "Op ieder potje past een dekseltje" which has the exact same meaning
 
@mr5 Also, pot refers to marijuana in the US
 
The Hyper Text Coffee Pot Control Protocol (HTCPCP) is a facetious communication protocol for controlling, monitoring, and diagnosing coffee pots. It is specified in RFC 2324, published on 1 April 1998 as an April Fools' Day RFC, as part of an April Fools prank. An extension, HTCPCP-TEA, was published as RFC 7168 on 1 April 2014 to support brewing teas, which is also an April Fools' Day RFC. == Protocol == RFC 2324 was written by Larry Masinter, who describes it as a satire, saying "This has a serious purpose – it identifies many of the ways in which HTTP has been extended inappropriately." The...
 
I don't think it could be interpreted as cocaine or stronger drugs
 
Lol "Auf jeden Topf passt ein Deckel" exactly the same yeah.
So..anyone from eastern europe here?
I wonder if far eastern languages have that too
Since they can be so extremely different
 
7:48 AM
I've been losing sleep this entire weekend because I was so sure I broke something in production, specifically a large table
 
Pf I wouldn't care about that as long as I can fix it
 
I was so worried I had unintentionally lost data, and my mind figured out several ways this could have been possible
@Squirrelkiller Well we're a bank, so it's kind of important :)
 
lol whoops
 
I think in extreme cases, we can restore entire days past, but that's like database-wide restoration
As it would seem, there are no problems
I lost a weekend of sleep for nothing
 
Never loose sleep over your job - they don't loose sleep over you either
8
 
7:51 AM
I can't help it
the potential for major fuckups (pardon the french) is there
and I don't really want to consider the possibility of a major fuckup honestly.. for a bank there may even be lawsuits involved
It has never come up of course, but I also don't think they need to wave that over our heads to make us complacent
 
SO you have access to the production database...are there no checks in place so you don't destroy anything important?
 
The more experience I have, the more I come to realize that errors are inevitable
 
exactly
 
No, I don't have direct production access
I don't need to to screw things up royally
there are so many pushes to production, I doubt if there are any sort of checks
 
Eep.
No staging?
 
7:54 AM
For code we have 1) review with developer 2) review with QM 3) merge request for different developer 4) QM-Test 5) Test by customer
 
Sure, there's preproduction. And technically I should have brought this particular sql script to be pushed as an sql script
but certain things like dropping tables isn't allowed (and rightfully so)
though there are ways around that, and I needed to do this for what I was supposed to do (basically recreate the table, add the data, and substitute it)
Honestly, they need to do it differently.. have a possibility to request that a particular sql script be allowed to drop tables or whatever, and then hire someone who verifies these scripts manually
 
Fucking around with the keys constraints are we?
 
Nah, for the most part, the indexes and constraints are left the same
 
mr5
Ugh, creating words is very difficult :(
 
The big thing was that it needed to be partitioned because it was too big to do queries on
 
7:58 AM
Why much word when few work?
 
 
Woah we actually have a similar problem - we have millions of records that technically should be doubled, but our database server just can't handle that.
So now we fuck around in the code
 
the right approach is to partition it. the database can effectively ignore partitions that it knows won't have certain values, generally dates
 
Big ass comment on that piece of code. Nobody liked that. But apperently the customer didn't throw enough cash at us to get new/better servers.
 
@Squirrelkiller classic
 
8:00 AM
How does this partitioning work? We have a column that has only 1/3/5 values, would that be something to partition?
 
Consistent hashing
 
@Squirrelkiller you can partition also by value
of course the benefit is only there if you specify that value in your query
Essentially it makes many smaller tables where, say, a date is less than 01-01-2018 or something
 
mr5
Is it okay to say "prompt" alone to refer to the popup dialog (yes, no)
 
and then if you have where some_date > 01-01-2018, it will ignore everything in the older partition
 
Yes, that value will always be in the query. Although it happens jsut as often that a query needs all the values.
 
8:07 AM
you can also partition automatically by range, so if new items are added, they're automatically added into their own partitition
 
@mr5 Yes, kinda. The popup dialog is jsut the way the prompt is delivered.
 
you can also drop partitions and it can do so very efficiently
 
A prompt is teh concptual thingy. A dialog the implementation of that.
 
^
 
"Confirmation dialog"
 
8:08 AM
prompt = something that asks for data. Dialog = physical window that asks for data
 
A prompt can be a dialog, an overlay, a snackbar in android, whatever works for that situation.
 
command prompt = something that asks for command input
etc.
 
mr5
Oh, I remember, in Browsers, they have windows.confirm and windows.prompt
confirm is used for yes,no, while prompt asks for string
wait. lemme check again
 
Prompt -> Dismiss
Confimation -> Yes, No
 
We didn't call for help, but Rohan answered anyway. Thanks I guess :D
 
mr5
8:11 AM
prompt, confirm, alert
 
Alert -> Dismiss
lol
 
mr5
@DKDhilip is there something like "Confirmation Monolog"?
Should be monologue right?
 
I guess I would call that a messagebox
Although that's just because I can't think of something better than the WinForms popup right now.
 
yeah just giving info would be a message box
though monolog sounds like a better name for it
 
They called it dialog
Some called it box
Some other called it frame
 
8:14 AM
dialog implies it's two-way, so they give you some information and then you provide some input
 
Well, your input is "OK"
 
that said, there's probably plenty a program where it is called a MessageDialog
 
Confirming you read it
 
Prompt -> Enter input
Confirm -> Yes, No
Alert -> Dismiss
 
that's not really input though
it can't be input unless there's also a "cancel" button
 
8:15 AM
Some implementation forces you to enter something
 
Of course it's input
if you have two buttons, it's a choice
This one isn't a choice, but it's still input
Without input the windows stays there until it gets input
 
JFrame
 
@Squirrelkiller I see what you mean, and it's more of a semantic point on my part
 
technically not clicking on a button is input..
but I wouldn't consider it as such
 
8:18 AM
Dafuq is that java doing in here
 
@Neil perhaps Dialog is not the best name they could come up with
 
mr5
ShowConfirm() {
    confirm('r u sure u want to dismiss this dialog?, yes, no,
        () => confirm('r u really sure you wanted to do it?', yes, no,
            () => confirm('r u really really sure?', yes, no, ShowConfirm)))
}
 
@HéctorÁlvarez like everything made by Microsoft, they tried to create analogies for everything new
 
mr5
ffff
 
analogies?
 
8:19 AM
nowadays we hardly even think of the original definition of file or folder, but it was very much a metaphor at the time
 
UUID/GUID
 
I still dont get the thing with Directory vs Folder
 
before MS-DOS there was no file or folder
 
i feel like in programming, it is always a directory, and in real life, it is always a folder
 
microsoft created the concept and ran with it
 
8:20 AM
Yea hthey call it directory i ntechnical terms, but for a windows user it will always be a folder
 
they could have created a new name for it, but instead they called them files and folders
 
Also they do call it UUID in the docs somewhere, and just the .NET class is GUID
 
and files and folders, like windows or dialogs or control panel, they all relate to real world concepts
 
mr5
Steve Balmer is to blame
 
we can now use the "Folder" name as "something that folds"
 
8:21 AM
OH shit...is that why it's called the Balmer Peak?
I never made the ocnnection
 
Developers, developers, developers
 
until I saw the name written out
 
interface IFolder<T> {
    T fold(T left, T right);
}
 
what t
 
Oh gawd, flashbacks to folding integrals
 
8:22 AM
@HéctorÁlvarez if I ever see this in code, you will wake up to me breathing over you with a butcher knife in hand
 
@nyconing I tried to make a joke... but it seems the joke cannot be undone for a month
 
@nyconing You are NOT having a stroke right now, sonmeone jsut took a joke too far and didn't think of hte consequences :D
 
lol
 
there's a Google plant among us
 
8:24 AM
iFolder
 
transcript will keep the name, but changed the avatar already
> Display name may only be changed once every 30 days; you may change again on Mar 8 at 12:47
 
I never understood why they called it folder. In german it's "Ordner", like orderer, because you can order your stuff by whatever.
 
so, until at least the 8th of march, I am Héctor Álvarez
 
Also it's buggin me that ordering (sorting) is the same word as ordering (buying).
 
you are welcome to join Javaland, where it is called sort (or... sorted... or sortedBy... or sortedWith... or any of the others)
 
8:28 AM
Nah thanks
 
that's why generally they call it sorting and not ordering
even if they technically refer to the same concept
though it hasn't really seemed to have bothered sql much
 
I guess "Sortierer" in german just doesn't have that ring to it. And is also longer.
 
nothing bothers sql
and sql doesnt bother me
 
FFS today my right hand is seriously faster than my left hand.
 
oh look! a bird!
 
mr5
8:30 AM
@Squirrelkiller lol. what is Ballmer Peak?
 
Jack, xkcd 323
 
@mr5 welcome to today's 10k!
 
ffs hjack
@CaptainSquirrel where our slave
 
mr5
@Squirrelkiller xkcd, 9999999
wrong command
Squirrelkiller, xkcd 9999999
@Neil what does that mean?
What's so special to Windows.ME?
 
now if you really wanted to be meta, you'd ask what diet coke and mentos do together
 
8:36 AM
@mr5 Remember 7 to Vista?
 
mr5
Nope. Never had Vista
 
Same like 98 to ME, but far worse than 7 to Vista
 
mr5
I jumped from XP to 7
 
Windows XP with Longhorn Transformation Pack
 
they initially wanted to call windows 7 windows longhorn
 
8:37 AM
ME = BSOD generator
 
I remember that
 
does it also work on windows 10?
 
> Bill Gates teaches us how to count to 10 - 1, 2, 3, 95, 98, NT, 2000, XP, Vista, 7, 8, 10
 
I don't think this is compatible with Windows 10
 
8:40 AM
Microsoft isn't good with planning names over several versions. Sony just counts. Nintendo has new names every time. Microsoft just can't decide.
 
I use Classic Shell, which works, but isnt the prettiest
 
And Apple does both at the same time.
 
Still better than Linux distros with freaking animal names
 
For some reason IT decided to put classic shell on all of our servers by default. I don't like it.
 
I just cant deal with win 8 or win 10 start menu stuff
or with the new settings thing
 
8:43 AM
Please give me that good old control panel back please
 
I have it
 
@DKDhilip just press the windows key and start typing "control panel", then press return after like 3-4 letters and voila - original control panel
 
plus this
 
8:45 AM
@HéctorÁlvarez Ouchy
 
it is really satisfying tho
 
"oh, I need to get my environment variables"
 
win key -> env -> return
 
windows -> control panel -> system -> ??? -> profit
 
8:46 AM
win10 index is awesome
 
mr5
when u configure env vars, do you do it system wide or per user even if you own that computer?
 
@Squirrelkiller Some items moved to UWP style app
 
I think only system wide
 
mr5
me too. the per user doesn't seem to work with me
 
@DKDhilip For example? No matter what I click in there, it all goes to the orignal settings.
 
8:48 AM
Wallpaper settings
Windows Update
 
Ah I see.
I can't evne get to those from the control panel, I forgot how to, lol
 
@DKDhilip This makes me feel not such a complete failure as a programmer
 

« first day (3404 days earlier)      last day (1537 days later) »