« first day (2624 days earlier)      last day (1401 days later) » 

12:00 AM
RELOAD! There are 6817 unanswered questions (89.8593% answered)
I'm voting to close this question as off-topic because it's asking for a code review rather than about a specific problem. This question may be on-topic at codereview.stackexchange.com, but please review the requirements for questions in that community before posting there to ensure that your question is on-topic. — Ryan M 32 secs ago
 
 
1 hour later…
1:12 AM
0
Q: I am learning how to properly use Java parameters and arguments

fosionefI am learning to use parameters and arguments in Java to make my coding efficient. I am open to suggestion if I've done something wrong with this code of mine. import java.util.Scanner; public class paramsAndArgs { static String name, feeling; public static void main(String[] args) { ...

 
 
2 hours later…
2:49 AM
0
Q: My implementation of a memmem() like function

user227432Since memmem() isn't cross-platform, I'm trying to rewrite it from scratch. How does this look? #define MemContainsStr(Str, StrLen, Substr) MemContainsMem(Str, StrLen, SubStr, sizeof(SubStr)) void *MemContainsMem(const void *StrStart, register unsigned long StrLen, const char *Substr, register co...

 
 
1 hour later…
4:11 AM
stackoverflow.com/help/on-topic If you want some advice on your working code, please check codereview.stackexchange.com but read their tour first to be sure your question would be accepted here. — Kaiido 1 min ago
 
4:56 AM
Ben Popper on July 10, 2020
To think like a machine, you have to speak its language.
 
@PeterCordes nvm, I figured out how to compile without -no-pie using rip-relative addressing for the format string for printf (although there may be a better way, but that's more of a Code Review question than a SO one.) Thanks for your advice and links! — Alex F 53 secs ago
 
5:16 AM
0
Q: Is it perfect way to write code using BEM structure?

jaiminGuy, This is my code structure using BEM Structure. I need your help to improve my code structure please review this template and let me know if anything is incorrect. <!-- header --> <header class="header"> <!-- header top --> <div class="header__top pt-15 pb-15"> <div class="con...

 
6:05 AM
0
Q: Cleaning sensitive information returned from a REST API

Bar AkivaI am working with an API of coupons from sites like Groupon. There are 2 fields in the JSON response (url and imgUrl) that return a url which directs them to the actual coupon and a picture of the business, respectively. Problem is that they contain sensitive information (my API KEY). Below is my...

 
6:29 AM
0
Q: Factor code into a single method

gandalf2100I'm fairly new to java and I'd like to know how to factor the following repetitive code on asking input to return integer values. import java.util.Scanner; public class Triangle { public static void main(String[] args) { int a, b, c; Scanner in = new Scanner(System.in); // Prompt for a...

 
Monking
@Feeds No, not anymore.
You just need to understand why it does things different than you'd expect, but speaking its language is a whole other level.
 
you should probably ask this in codereview.stackexchange.comtanmay 30 secs ago
 
 
1 hour later…
7:56 AM
For code-review, put your code here: codereview.stackexchange.comshmsr 31 secs ago
@shmsr I may be wrong, but code review is to improve your codebase, but here I'm having an issue with the memory, I wan to figure out why and how this is happening — Albi 23 secs ago
 
0
Q: Simple Console Chat in Java

Dexter ThornI have rewritten my little chat application and tried to pay attention to former hints and tips. The viewer and the writer have to run as seperate applications. the Writer.class basically stores messages as property files. The directory, where the files get stored, is watched by the Viewer.class ...

 
8:31 AM
0
Q: VBA Excel loop with offset for extended range

MKRGood morning, I've made the loop for the range, which is copied from one sheet to another. However I have no solution for trimming my code down, which looks like this: Sub sunrise() Dim i As Single With Worksheets("7") .UsedRange.Clear .Range("a1").Value = "Latitude" .Range("b1").Value = "...

 
 
1 hour later…
9:31 AM
Monking
 
10:10 AM
possible answer invalidation by Nathan Cooper on question by Nathan Cooper: codereview.stackexchange.com/posts/245120/revisions
 
10:57 AM
-1
Q: How can i write the following code/function better?

cva6How can I improve the following code/function for a better coding practice? Here are the few functions I wanted to know if it is good code practice. class SettingsPage extends Page { changeEnvironment(appName) { if (appName.$(PreferenceScreen.environmentProduction).isDisplayed()) { ...

-1
Q: T-SQL: Only get one type of value (specified in other column) if other is not present

Mikebeginner to intermediate SQL coder here! What I got: I am visualizing data from a very large azure t-sql database containing timestamped measurements of electricity, eg. watt, ampere, and power. I Import the data into a Power BI report with a SQL query. In the below image you can see data with di...

 
11:21 AM
0
Q: My first program

fluffyHello I've started learning javascript and today made my first calculator I would like to hear any suggestions how could I did it better and good coding practices. // Inputs fields used in program let elements = document.getElementsByClassName("buttons"); let screen = document.getElementById('o...

 
Good work. Perhaps codereview.stackexchange.com would be a better site for this sample, as the question does not specifically point out any problem. — Henk Langeveld 35 secs ago
 
11:45 AM
0
Q: Find a positive number within range without using modulo

SetsuGiven a function F that indicates whether your input number matches the relationship you defined to the magic number, find the magic number within some range 1 to M (can assume M is even). Can only use goto; no other jump instructions are available; if statements on the other hand are available. ...

 
@Feeds 200_success is not around anymore
@Feeds I don't hang out here that much, don't see a reason to be a room owner
@Feeds Phrancis passed away one and a half month ago :'(
Damn it, I should have added @Duga as a room owner. She's always around.
 
12:19 PM
welp. I just looked at the "frequently in room" tab and now I'm sad.
 
@SimonForsberg I think @Mast can fix that?
Looks at ROs and sees Vogel too
 
@Peilonrayz @Vogel612 is also a mod, he can fix anything.
 
for certain values of anything ;)
3
 
@Vogel612 Because of how much you are here or because of how little I am here?
 
because how few people are on that list
 
12:30 PM
@SimonForsberg Just as I posted the message I saw he was around :)
@Vogel612 It pretty hard to get on the list you need to have posted ~40k messages over your lifetime in the room. So Sam, pcmaninbw and I can't get on it for a long time yet.
 
0
Q: Swift tree traversal breadth-first vs. depth-first performance

marcpruxSay we have a bottomless tree: struct NeverEndingTree { var level: Int = 1 var children: Repeated<NeverEndingTree> { repeatElement(NeverEndingTree(level: level + 1), count: level + 1) } } Such a tree might be traversed breadth-first (whereby all the elements of a level are vi...

 
@Peilonrayz huh? where'd you get that from?
totally unrelatedly: my advisor wants me to add another 50% of "content" to my thesis
until sunday
 
Apparently I'm not frequently in the room, but I've only posted 6k messages, likewise Heshlacher has 6.6k messages and is always in the room but they're not in that tab either.
 
The "frequently in this room" is mostly "frequently speak in this room"
 
So it comes down to message count, and the person with the lowest amount of them has 40.5k
 
12:38 PM
There's some algorithm that averages it over some time period, it's not all-time
I think
 
Seems like the limit is 10k, as 1% of 1043495 messages is ~10k.
 
yea... the second point there is where things go wrong
No benefit whatsoever in writing a comment on that answer though, since balpha is no longer at SO
 
If they limited the second point to just a year then it'd actually make sense. You'd get some nonsense around new years but meh.
 
yea that'd make more sense
you can make "the last year" rolling
 
You could, IDK which would be more expensive calculating that each time someone goes on the page or increment a counter that resets each year
 
12:45 PM
that page is probably cached to hell and back
 
Yeah SE likes to keep inaccurate cached counters so I'd assume that's how they'd do it
 
even a daily recalc would probably be ... ambitious, IMO
@DerKommissar apparently they recently removed some caching, though
 
Yeah, that could make sense
 
at least that's what Nick suggested on twitter
 
Daily recalc shouldn't be terrible TBH
 
12:46 PM
@DerKommissar Like how I have 10k less rep on the Meta dropdown ;)
 
My message was 54 million something, so even assuming it's 55 million that's....not a lot of data to churn.
 
@DerKommissar yea, it's just not likely to be very useful for the rooms where the data is interesting in the first place
@DerKommissar oh I'm not talking about feasibility, it's more about what value you get from the calculation
 
If you did a recalc over the last N months to change the list you'd probably get fairly decent daily churn
Especially for small N.
I.e. 3 months or 6 months, a lot happens in that time.
Dunno, my chat platform does it nightly.
Speaking of, I think I'm throwing a whole portion of that project away.
 
1:02 PM
@Peilonrayz Sure.
What would be the benefit of that?
 
What do you mean by "that"? Making Duga a RO?
 
Aye
 
IDK
 
@Peilonrayz I'd expect a lot more people to be listed then.
That's it. 6.
Lowest amount at 40.5k
 
@Mast Point 1 says that they've posted a message in the last 2 weeks
I was ignoring time, because I normally post something daily/weekly
 
1:07 PM
I think the 1% is the bottleneck with Duga being here a lot.
Huh, I'm surprised you're not over 10k messages yet. Perhaps my expectations are off by a lot.
 
@Mast Says the person with more messages than Duga ;)
 
Welp
 
@Mast I'm not very good with text messages. A conversation with me stops around 3 messages... :/
 
@Peilonrayz You're at 200 a week, I'm at 226 a week. So there's not that much of a difference in frequency.
By the way, has anyone seen Malachi lately? Is he on holiday perhaps?
 
How'd you find those stats?!
 
1:12 PM
@Peilonrayz Click your avatar.
User profile.
 
... I was legit just on that page
Wow I'm blind
 
Last seen June 25
Maybe @Vogel612 knows ?
 
1:39 PM
I ... didn't hear anything...
 
@SimonForsberg That's only 2 weeks, could be vacation, could be anything really.
 
0
Q: Merge multiple pandas dataframe along with np.where to process values

AnkI have a pandas dataframe, df1: id level val 1 l1 0.2 1 l2 0.1 and another dataframe which contains type for l1 level, df2: id type 1 A Similarly, df3 which contains type for l2 level as well as new ids: id new_id type 1 19 A 1 19 B 1 20 A 1 20 B ...

 
He was on Twitter July 3.
 
Maybe he just forgot about us :(
 
@DerKommissar Last on meta since June 8.
Not the first time this happens.
 
1:56 PM
Meh, I go months between Meta visits sometimes.
If I weren't actively looking for a new job my SO last visit would be Feb or something lol
 
@DerKommissar You're not a moderator. Different expectations.
 
This means a developer can add a conftest.py file to the test root and influence all tests. Isn't this true with any source code file? A developer can even add a keylogger or crypto miner to the code. That's where code review from project maintainers steps in. — hoefling 40 secs ago
 
Fun fact: Today I am 12345 days old!
6
 
2:15 PM
@Mast Not really. Unless there's activity on Meta that requires resolution there's really no need to visit, even as a mod.
@SimonForsberg Congrats
 
Ryan Donovan on July 10, 2020
July 2020 Welcome to ISSUE #29 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. On this week’s episode, we peek behind the curtain at our engineering hiring process, wonder why bitcoin miners shut down their rigs, and look at what’s…
 
I don't believe that mods should be always-active all the time, they have lives. If a mod doesn't visit Meta for a few weeks, that's how it goes sometimes.
 
2:29 PM
@DerKommissar So it's fair Vogel is doing way more than his fair share of the work for the past months?
 
@Mast Moderating is never fair. Doesn't always have to be either.
The fact that @Vogel612 hasn't heard anything about Malachi being away is a bad sign though.
I hope that The 1st Monitor isn't going frozen again.
 
@SimonForsberg ~whistles
 
When I was a mod together with janos, Mat's Mug, 200 and Jamal, we were five mods doing often very different things.
 
it's not like we notice when it is, soo ...
I apparently ended up in the buzzword hell of enterprise software design
 
2:44 PM
janos mentioned a bit about the different mods did here:
25
Q: Passing on the mod hat

janosIt's that time of the year again!... Elections! Wait, what? It's not a regular thing around here? Maybe it should be! With Mat and 200_success stepping down, elections should be coming soon (in 6-8 weeks?). It seems the perfect time(*) to offer my diamond up for grabs now, to give you, dear comm...

Although I believe I was doing a bit more than keeping a sub-community alive :)
 
@Mast 1. Life isn't fair; 2. I would imagine if the mods had issues with other mods not doing their job that they would involve SE and do something, be it a new election, temp mod, whatever.
It's not our job to police what mods do what: they are a team, they should work as a team, we are not their boss.
And honestly, the mods shouldn't need to do much, the community can mostly self-moderate.
 
@DerKommissar It's entirely plausible that the mods have noticed one or more mods doing less work, but not doing anything about it because they haven't felt that it's needed.
Even Jamal hasn't been seen for a week apparently
At least Mat is around.
 
@SimonForsberg That's kinda my point...if Vogel (et. al) have a problem with it, they would handle it via other channels I assume exist.
 
@DerKommissar Yup. There exists. Only question is how fast they are :)
 
I assume that after the mod convicted of CP / SP that SE has put better channels for that in place.
 
2:54 PM
I'm not too sure about that
 
@DerKommissar CP / SP?
 
Child porn / sexual predation.
 
Grim
 
Yes it was.
I only knew because he lived not far from me...
 
It's been some years by now and it's really not comparable to something like "some mods are inactive-ish"
 
2:57 PM
^^ Agreed
 
I'm not saying it's "directly" comparable, but I assume SE would have put better tools in place to keep (light) tabs on mods, and if issues were arisen have better techniques to resolve them.
 
SE in fact does have some channels to law-enforcement and some policies around that, if only because of Sumer Kolcak
There also has been a case of a disgruntled user threatening, stalking and harrassing a CM
but overall SE doesn't particularly keep tabs on mods (and really can't)
We're not required to give SE any more information than normal users
 
Well then there's my answer (not that I was looking for one or even cared).
 
usernames are meaningless, email addresses just the same, IPs can be hidden behind a proxy, ...
 
That is not what I was saying at all
SE can see mod activity
If a mod goes dark-dark, I would assume they have automations to flag that
If not, I don't honestly care
(Actually, either way I don't.)
 
3:03 PM
:)
 
Otherwise, I would assume there's a mechanism for other mods to say "I'm concerned about <x>" to SE (i.e. emailing the "contact" link, for example).
I can text Malachi if you'd like, I have his cell number.
 
Hey there
 
3:25 PM
0
Q: Quicksort implementation in JavaScript

Steven AguilarI implemented Quicksort in JavaScript. I'm trying to follow the best principles in JavaScript. In Ruby when you declare classes your able to use private for the methods that are private. I don't think there is anything like that in JavaScript. class QuickSort { sort(a) { a = this.shuffle(a...

 
Monking
 
3:49 PM
0
Q: How can I parse this json string better?

Colorful CodesI have this json code that I got from a get request with Azure API. Everything works how I want it but it doesn't look good. There must be an easier way to parse the data. import json #GET REQUEST code here, it works now the code below is grabbing the result and loading it. formatted_response = j...

 
This would be better asked on Code Review since you're asking for help improving working code. — devlin carnate 25 secs ago
 
4:13 PM
0
Q: Implement below rules: If the payment is for physical product , generate packing slip.If payment is for book, generate duplicate packing slip etc

user3678961My abstract class. Product will have multiple child classes those will be different types of Product public abstract class Product { private int productId; public int ProductId { get { ...

 
4:38 PM
1
Q: User Friendly Comment and Answer System for SharePoint Site

TonyTI am seeking help in improving my question and answer system I developed for my office SharePoint site. The question and answer system features two-columns and in the each columns is a table. I have a question table in one column and a reply table in the other column. The table is created with th...

 
5:02 PM
0
Q: Procedural Dungeon generating Java

NoobGuy2222I've started working on a text-based adventure game that has procedurally generated levels. I am unfamiliar with the more popular methods, so I just decided to generate the dungeon using a recursive method. However, my code looks quite amateurish with all the if statements, and I am unsure of whe...

-2
Q: How do I disable two buttons and highlight the selected after it is clicked

umzI needed some help with a project I am working on. I am creating an onboarding form for clients and created a sort of "quiz" section for the client to be able to tell what product/procedure best fits them. The page starts off with a question and a yes or no button, each button gives a different o...

 
5:51 PM
0
Q: Read and process two files in chunks in C till both EOF

JavierGI'd like to process corresponding chunks of two files - chunk 1 from file1 to chunk 1 from file2, chunk 2 from file1 to chunk 2 of from file2 etc... The files may not have the same length. The chunks need to be passed to a function that expects the buffers read to be null-terminated (aka strings)...

 
6:10 PM
Ugh, when I just want to get a sites favicons and they disable non-browsers from getting them :/
It makes sense cause they're streaming sites, but makes my projects less fun
 
0
Q: How can I implement Role-based User-authentication using Passport.js in Express.JS

TemyI am building a project using Express.js, and authentication with Passport.JS. I am able to do my user authentication for a single type of user in Passport.JS. However, I'm unable to effect this authentication for two types of users (normal users and admin). I tried using a roles object to be map...

 
Don't write code that has side-effects. A good code reviewer would reject anything that does what you're attempting to do. — PaulMcKenzie 59 secs ago
 
6:46 PM
@Cireo when suggesting users post on CR it would be great if there was also a suggestion like "Please read the relevant help center pages like 'What topics can I ask about here?' and 'How do I ask a good question?". The OP asked a question there but it was off-topic, likely because of unfamiliarity with the site. — Sᴀᴍ Onᴇᴌᴀ 17 secs ago
You may get better answers using something like Code Review vs SO codereview.stackexchange.comNathan Champion 24 secs ago
 
Could more people go to the review queue please?
2
 
@Mast I presume you mean the close votes queues primarily, right?
 
7:08 PM
@Mast Gah, I got side tracked with my project yesterday :(
 
@Mast I've been through the queues at least twice today. Nothing showing for me right now, but I just added one to the close queue.
@CaptainObvious Off topic for 2 reasons.
 
@Peilonrayz disable how ? they won't let you wget a png file ?
 
@ankii First you need to discover where the ico/png file is, and I'm not allowed to get the homepage. Getting 403 and 503 errors
 
@Peilonrayz oh .. never happened to me on the little sample of sites which I download pages of
wget has an option to simulate a browser connection iirc
 
@ankii Hmm, I may have to look into this
Back in the good old days just changing the user agent was enough to fool most sites, but alas that doesn't work here :(
 
7:19 PM
Which browser do you do that in ? I do in safari and would like to use it on FF too
Edit: ah it's in the config
simulating iOS Safari is the easiest there
 
I'm using something similar to wget :) my solution will be to use Selenium which just uses a browser
 
yeah selenium has a better support base.. people use it for web dev testing I guess
or web scraping.. at least that's what I attempted once
 
Yeah they seem to use it for those. I see a lot of novices use it for scraping
 
8:17 PM
0
Q: Custom Enum with condition check

user3789184I am validating the condition match by use of Enum class. Is there any way I can improve my validation for the isConditionMatch method for more code readability? String firstCondition = "SomeString"; String secondCondition = "SomeAnotherString"; String thirdCondition = "Test"; System.out.println...

 
@Mast @SᴀᴍOnᴇᴌᴀ @pacmaninbw I made my own "new tab" site (to skiwi my tabs) and I'm adding some common/useful urls. I've got links to: main, meta, review queues, profile and the 2nd. Do you all have any useful bookmarks or pages that I've failed to add?
 
Mast sent me links to the legal stuff (licenses) last week that might be helpful.
 
would the 10k+ tools be useful? I got there occasionally but don't know if it warrants a tab.... though if you've got as many as skiwi then maybe... one could also click the link from the review dashboard
2
 
@pacmaninbw Hmm, I can't imagine that being too helpful, I've not had to link to them for quite a while
@SᴀᴍOnᴇᴌᴀ Hmm, that's a good shout. They're just fancy links on a page, but I also have hundreds of tabs :)
 
9:17 PM
@Peilonrayz You're skiwi'ing your tabs?
@SᴀᴍOnᴇᴌᴀ That being the biggest one, yes.
@Peilonrayz Heh, yes, the trick nowadays is spawning a dedicated browser in which you do the automation I think.
Things got complicated.
In the past, crawling over multiple sites to get product documentation was fairly straight-forward.
Now? With dynamic pages and half the crap being behind JS? Ugh.
@Peilonrayz I do most of my comments from memory, but I'll think about it.
 
@Mast Well technically I'm unskiwi'ing my tabs, because I'm moving them into 'folder tabs'
 
@CaptainObvious Riddled with foobars.
@Peilonrayz Ooooooooh
Pretty
 
@Mast Yeah it increases the bar, but from the little I played with it it was ok. But I did already know about about DOM, CSS and XML lookups. It's just a more heavy requests + BS4 solution :/
@Mast I may have taken inspiration from Firefox's new tab page. But changed it to actually useful links
 
@Peilonrayz Semi-random real example: I need to pull PDFs in 3 languages for components. Say, the 1607062 from Phoenix Contact. Dutch site of that component is here, which has a button "Pdf aanmaken" (create PDF).
click it and you get a lot of options. I only want the top 2 of 'Artikeldetails', but for each first part every so many minutes I need to accept the general terms too.
Need to select a language. Dutch and English I can pull from this site, but German I'll have to get from the German site.
400-ish parts.
Preferably within 1--2 years the whole shebang again, for 25 suppliers who all do it completely different.
Oh, and only when we don't have anything more urgent going on, because it's important but not a priority.
So it can happen there's 3-4 months between that I see my code again.
 
0
Q: An identity_cast function

einpoklumI want to use a function in lieu of a static_cast<T>(), which is intended for cases when I expect/know the type I'm casting from and to to be the same. The replacement is to make it obvious to the reader that this is a "do-nothing" cast. And - might as well add a sanity check to that effect while...

0
Q: riff chunk - utility class for working with RIFF chunks

utnapistimFor a personal project (reading media file metadata) I created a small/fast utility class for working with RIFF chunks. Support: defining chunks by 32 bit integral value defining chunks using 4 ASCII characters splitting chunks into 2 16 bit integral values (useful for parsing RIFF headers) comp...

 
9:30 PM
@Mast I swear like I've heard you talking about (a different part of) this project a year or so ago... 🤔
 
@Peilonrayz Yes, I wrote a validator for the existing PDFs a while back.
You reviewed that.
 
@Mast ughh, why o why 🤦
 
Other suppliers, say, Siemens, have a sensible approach where you can target the PDF generator straight from a URL.
PartID, language, everything.
Just put the whole thing in a template, shoot some arguments at it and it bloody works.
But noooo, every time you think you've standardized against n suppliers, the n+1th screws you over.
 
@Mast Sounds like an anti merry go round. How haven't you descended into madness?
 
@Peilonrayz I vent my frustration at the traffic on the way home.
3
And I'm too stubborn to give up.
I will tackle this. Eventually.
 
9:35 PM
Stuff like this annoys me. If only there were some standard to list products... A global database of products. I don't even think it'd matter if the global database was crappy if it just contained some primary keys to get the links you want...
 
Ever heard about EAN numbers? Older parts don't have one.
They've tried standardizing how product data is shown at least, with eCl@ss.
It's not particularly useful, but it's a great start.
 
Normally whenever someone asks me have you heard of X it's always a no. I really can't tell if I just lack any common knowledge...
 
There's just too many versions of eCl@ss.....
 
NGL they look like barcodes, and remind me of ones in libraries
 
That's for a single bloody part. Now what...
 
9:39 PM
Wat, why does the number change so much
 
@Peilonrayz Supposedly you give every part its own number, globally unique. It's like a GUID for things you can sell.
@Peilonrayz Exactly.
 
Ah, I'm thinking of ISBN. Which seem far taller than the EAN that I saw (height probably doesn't make a difference)
 
EAN was supposed to be a standard. Of-course, since EAN was originally a European thing, there's an even more globally version called GTIN. EAN numbers are, as far as I know, always the same as GTIN numbers.
And of-course some parties require an EAN even when there is none, so they make up a false one based on the manufactuerer's number.
Usually that number padded with zeroes to a length of 13.
And of-course there are databases that magically work for looking-up EAN numbers, but they don't work the other way around and brute-downloading the entire thing is usually not a good idea.
So much for standardization.
And then there are the open fields in our database that are filled in by me, my colleague and have been filled in by 15 years of colleagues I've never known.
It's a bloody mess.
 
@Mast I thought converting the numbers to binary could give me some insight, but there's like no pattern. I can't even see easily if there some validation checking bits that can be ignored but Wikipedia and the website are no help
 
@Peilonrayz I honestly don't have a clue.
I don't think there is a pattern.
 
9:57 PM
I thought barcodes had validators, like ISBN, because barcode scanners can easily mess up the reading. I recall packets using it too, so EAN not using them is like wat
 
@Peilonrayz Barcodes do have stackoverflow.com/a/1136665
 
I should really scroll down on Wikipedia pages more...
I feel like this isn't the first time I've done this today
 
@RMunroe That reminds me.
Remember how everyone is always joking about how servers run on hamsters?
Well, the correct unit of a unit of (apparent) power is VA. Volt-Ampere.
Those usually go per thousand, so per kVA.
It's like a Watt, but without the power factor. as compensation because you often need to know it without compensation.
Anyway, in Dutch, a kVA is pronounced as a 'kaa vaa ah'
Which sounds a lot like kaa vee ah, cavia.
And a cavia looks like a big hamster.
So next time someone jokes the server runs on hamsters, tell them it's cavias instead.
Because that's actually true.
If you pronounce it just right, that is.
This story works a lot better in the pub.
 
10:16 PM
@Mast I learned in December, while spending the night in a train hotel, that the word caboose is derived from the Dutch word kabuis
 
0
Q: Internally Safe Filesystem

super developerwin_xept.hpp - a basic windows api exception #include "../utl_macro.hpp" namespace xept { using win_t = struct utl_exception // utl_exception randomly generates a name // this hides exception names from rtti { DWORD e = GetLastError( ); ...

0
Q: Optimize Memory Java String Array

LearnerI was trying to solve one programming challenge : First input is a list of connections which is made of pair of IPv4 address. Each IP has its own state which starts with false, each connection also has state which is made up by logical AND of state of its IPs Second input is a toggle IPs list ,...

 
@Mast Huh, "Cavia ... commonly known as guinea pigs". TIL that guinea pigs aren't their 'real' name
 
Did you know that pigs don't actually sweat? so if you hear somebody say "Ted was sweating like a pig" that technically means not really sweating...
 
10:32 PM
@SᴀᴍOnᴇᴌᴀ Kabuis is ancient Dutch. I think kombuis comes closest to it, which is archaic itself.
Basically a kitchen.
 
Though I think a caboose can be a railroad car, so...
 
I've been reading more Thomas the Tank Engine stories in the past couple years and learned the phrase brake van is a synonym for a caboose
 
Kajuit
 
0
Q: Securing React SPA with Azure AD B2C Tenant using MSAL

sfanjoyI am securing my React Apps and I want to use the wrapper function below to insure that the app only gets rendered when there is a successful login. I am separating the Login from future MSAL token requests because I perceive Login to be a boolean in that you are logged in or you are not logged i...

 
10:59 PM
"I am not sure if this question belongs here"—it does not. Please read about what's on-topic in the help center. You might want to check out our sister site Code Review. Make sure to take their tour, read about what's on-topic in their help center, and read their "how to ask" page if you want your question to be well-received. — Chris 59 secs ago
"I work at a startup and am looking for tips"—are there senior developers at this startup? Does code review happen there? It's common for companies like this to have mentoring programs, be they formal or informal. — Chris 14 secs ago
I posted code I plan to use on Code Review: codereview.stackexchange.com/questions/245300/…sfanjoy 5 secs ago
 
11:17 PM
You could maybe checkout code reviewJacques just now
 

« first day (2624 days earlier)      last day (1401 days later) »