« first day (2613 days earlier)      last day (1422 days later) » 
00:00 - 19:0019:00 - 00:00

7:04 PM
@pacmaninbw Nice answer. I agree with Zeta it's quite high level
Need to find out what top down and bottom up are now too ;)
Is [Stepwise Refinement] meant to be a link?
 
@pacmaninbw Please tell OP about clang-format!
if they're using VSC, it's effortless
 
@Peilonrayz Yes.
 
@ankii That would make a good answer. *wink wink, nudge nudge*
 
@ankii Visual Studio C?
 
hmm I have another point too. variables like a b etc ?!
but I understand, one's just lazy when starting programming :)
@pacmaninbw Code
 
7:11 PM
This question is more suitable for code review StackExchange, codereview.stackexchange.comjonathana 34 secs ago
 
-1
Q: 2 non-derived classes with a friend member function - instead of calling functons from main, want to call friend function from class implementation

nateI believe this question qualifies for this site - improve working code - but if not I will gladly take it to another SE site. I have two classes, BankAccount (BA) and BalanceRegistry (BR), and BR has a friend member function with BA (as seen in coliru link). This works fine but all the calls are...

0
Q: Looking for feedback on my solution to the Eight Queens puzzle in Ruby

johnobrien8642I started studying programming in January of this year and found a free online course that teaches Ruby. Below is my solution to the Eight Queens problem. I wanted my solution to be able to return any valid Eight Queens puzzle solution in a non-specific order. I'm looking for feedback such as: O...

 
@Peilonrayz I'm answering
 
@ankii I've only ever seen it shortened to "VS Code"
 
@Peilonrayz Same here.
@Peilonrayz Thanks for pointing out the broken links (there were 2).
 
VSC may refer to: == Organizations == Venezuela Solidarity Campaign, a British political group Vermont State Colleges, the U.S. state of Vermont's system of public colleges Vietnam Solidarity Campaign, a Vietnam War-era activist group Volunteer Special Constabulary, a component of the Singapore Police Force Video Standards Council, of the United Kingdom responsible for promoting standards in the video industry Volunteer Service Corp, at Wake Forest University == Places == Valley Stream Central High School, in Valley Stream, NY, US Vermont Studio Center, a fine arts and writing residency program...
It's okay.. you guys will catch up ;)
 
7:18 PM
Too many VSCs
 
@Mast I'm on 32 GB actually
 
@ankii I'm pretty sure that's just a Wikipedia thing. I can imagine MS would not want to sully their brand with confusion. I looked over their branding guide lines for their fonts and they were like you make us look bad you don't get the font.
 
@Peilonrayz it's not that I learnt the shortcut from there. I just searched for VSC and thought "hey this is where someone is using this term, let's throw this in"
 
@skiwi That is 16 or more.
Good for you.
I'm at 16, 15-15-15-36. Usually good enough, even when running 3D CAD.
 
I saw 32 GB and was like why not
 
7:25 PM
Was hoping for more, but ran out of money when building my new 3700X rig :-)
s/money/budget, you know
 
I bought this PC after (almost) working full-time a full year living at my parents.. money wasn't the issue :D
 
Yea, I bought a house a few months before buying this rig.
 
@Mast I've never come across 15-15-15-36 notation. What is it?
 
@Peilonrayz Timings.
After capacity and clock speed, it's timings that really matter.
After all, what's 3200MHz going to do for you if the latency is carp?
 
7:27 PM
I'm really confused why there are 4 but I'm sure I can clear my ignorance
 
@Peilonrayz Latencies for different things.
After all, writing and reading doesn't go at the same speed.
So there's the CAS latency (tAAmin), the RAS to CAS (tRCDmin), the minimum row precharge, minimum active to precharge, RAM is actually crazy complicated.
You know harddrives, right?
Writing bulk to a place is good, but how often do you write bulk to a place? Often, it's small things to a lot of places. Different statistics.
 
Ah that makes sense. Thanks Mast :)
 
CAS is Column Access Strobe, the delay between the read command is given and the moment the data is actually available.
Usually goes in cycles.
So if your RAM is running at 3200 MHz and at 32 cycles or 1600 MHz and 16 cycles, it's basically the same.
But everyone is looking at that clock speed like it's everything.
It isn't.
Somewhat standard RAM nowadays runs at DDR4-3200 (that's 1600 MHz on both flanks), also known as PC4-25600.
I've worked with DDR RAM controllers in FPGAs, really puts your nose in it.
We bulked data over an ethernet controller to a DDR over NIOS II, but the bloody softcore was slowing us down. So I made a direct path.
DMA, as it were.
 
Holy moley. I can't just see my ignorance in this subject I can feel it. I thought I'd started learning some stuff, since I've been watching a little bit of LTT for fun, but I feel like the iceberg meme. XD
 
Start with reading up on CAS latencies. If you have a whiteboard, try drawing a couple commands out.
Go down the rabbit hole from there.
That gig was actually where I learned Python. We send data to FPGA clusters using Python.
d/t
 
7:39 PM
Ah thanks, I'll have a look into that. I should probably do a deep dive in what a computer even is at some point.
 
Remember, bits are only voltage levels. With speeds that high, digital comes almost back into the analog domain.
 
@Mast Oh wow, you've done some cool s**t
 
@Peilonrayz A small stint into academia. They had some cool toys to play with.
Petabytes per second from thousands and thousands of antennae.
Beamforming, that's where FGPA shine.
@Peilonrayz I once saw someone study computers by playing minecraft, 10 years ago or so, by building a 16-bit ALU in it. He aced his exam.
 
I'll probably have to come and harass you a little bit once I've gone through this.
 
Game was still in bloody alpha, before pistons. Good times.
@Peilonrayz Sure. I'm no CS major, but I have some EE experience ;-)
 
7:45 PM
@Mast I had a friend that built one, (post beta) but making it more than 2 bits was long. They decided to note it on paper. Last I saw they're doing something similar on GitHub at uni
 
@Peilonrayz Oh yea, the thing was massive. Almost crashed his system.
 
I don't think I've heard that flex before. "Can you run a 16 bit ALU on Minecraft?" Now it's all about the rays
 
These days 16-bit ALUs are the bare minimum you build...
 
@Peilonrayz Nah, it's "how many UPS do you have in your XY RPM factory"?
 
what with people abusing chunk loading mechanisms to force stuff to stay loaded even if there's no players in the vicinity
 
7:48 PM
@Zeta uninterruptible power supply?
 
@Zeta What does that even mean D:
 
The f are those doing in minecraft?
 
@Mast "Updates per second" (aka how fast does the game logic run) in Factorio. RPM = Rockets per Minute
 
basically: How much crap can you throw at your computer so the actual tick duration of the game starts to dilate
 
@Zeta So, FPS if it would put a frame up every update?
 
7:50 PM
@Vogel612 I usually used ChickenChunks. How do you do that legit?
 
A while ago I read a very interesting blog post by the factorio devs on the pathing optimizations they built
 
@Mast Yeah, but Factorio splits FPS and UPS, if I'm not mistaken.
 
@Peilonrayz don't ask me, it's just a good friend of mine that had a period of hyperfocus on stuff like that
 
@Zeta That something modern?
 
@Zeta basically all modern games split rendering loop and game-logic loop
Since years, in fact
 
7:52 PM
I'm a dinosaur, indulge me.
 
because otherwise you're opening yourself up to framedrops and hangups when complex logic runs
 
@Vogel612 Ah, last we played, we played modded with EE. So obviously I made some OP energy farm out of bonsai trees.
We don't play it any more, I can't imagine why...
 
basically games these days have three loops: input loop, render loop and state loop
 
@Vogel612 Depends on the definition of "modern". There are still several games that have bad stuttering when a logic tick takes more than a frame.
Not noticeable on recent hardware, but definitely on older one.
 
@Vogel612 Heh, in electronics, the input and render are real-time. Only the logic loops :-)
We have 1/3rd your problems.
 
7:55 PM
the input loop just deals with user input as it comes in and pushes it into a queue (possibly with some logic to handle input queueing limits)
 
PLCs sometimes have an input loop though.
Keeps it clean.
 
the render loop is just rendering, if you cap the framerate it's not permanently running, some games don't cap the rate and get to uselessly stupid framerates like 600fps
and the logic loop basically updates the state of the game, each iteration is often referred to as a "tick"
 
Right, frame-rate capping.
 
What frame rate can the human eye/mind handle, I thought it was under 40?
 
And while ticks and frames might be non-synchronized (e.g. you can have several dozen update calls within a single frame if your frame rate is limited by vsync/FreeSync/GSync or just manually), console games often still are synchronized in a 1:1 tick/frame ratio.
 
7:58 PM
@pacmaninbw 24 until it's "continuous" and ~60 to avoid "brain aliasing issues"
 
Delta time usually manages to at least keep the game in flow, but even recent titles such as Breath of the Wild clearly suffer from that.
 
0
Q: Rock Paper Scissors Lizard Spock in C#

Ekrem GulcanA few days ago I made a "Rock Paper Scissors" game in C# and got my code reviewed on this site. Someone suggested writing a "Rock Paper Scissors Lizard Spock" game and I did. I tried to follow the given advices but I'm not sure if this code is better or way worse than the other. I am not satisfie...

0
Q: C# Convert BLOB to jpg, resize, then back to BLOB

JamieI am trying to convert a BLOB that is stored in a database to a JPG and then I need to display it on an html form in a C# application. A little backstory first - this is an older web app that was designed to take a JPG (photo) that was stored as a path in the database, resize it, then show as a B...

 
@pacmaninbw Yes, but it's more complicated than that.
In information theory, the noisy-channel coding theorem (sometimes Shannon's theorem or Shannon's limit), establishes that for any given degree of noise contamination of a communication channel, it is possible to communicate discrete data (digital information) nearly error-free up to a computable maximum rate through the channel. This result was presented by Claude Shannon in 1948 and was based in part on earlier work and ideas of Harry Nyquist and Ralph Hartley. The Shannon limit or Shannon capacity of a communication channel refers to the maximum rate of error-free data that can theoretically...
People, may I introduce you to Shannon.
Shannon and Nyquist, they've set some remarkable ideas.
 
yeap. Lots of foundations for signal processing
 
@pacmaninbw I watched a LTT and more FPS was normally better. (ms response times) The noobs capped at like 144, where the pros were better at 200 than 144
 
8:03 PM
@pacmaninbw You can handle arbitrary many, however, depending on the frequency you might experience it as slideshow, OK flow, continuous flow, really continuous flow, absolutely smooth and depending on the content maybe as annoying flicker or seizure inducing.
 
What is LTT?
 
@pacmaninbw Linus Tech Tips.
 
Oh, I was thinking Live T? Tournament
 
@pacmaninbw Here's the video in case I'm misremembering
 
Peilonrayz probably means this video.
 
8:04 PM
Since for normal people everything over 60 doesn't matter. Only for games better is indeed better.
 
Yeah 60hz is fine. I was running 200hz but I stopped playing CSGO so there's no point
 
Code Review is a better place to ask questions about coding style. But see codereview.meta.stackexchange.com/questions/5777/… before reposting there. — Barmar 40 secs ago
 
Test automation is bloody impossible if you have 25 sets of data that don't want to follow a standard relative to each other...
Oh, 25x2, because exceptions.
 
Ouch, testing is fun
 
Not if the tests are the goal of the program.
Testing data and files, not code.
Entries.
You compare 4 sets of data. Try to set up a standard. Now the 5th comes along.
You compare 8 sets of data. Finally got some consistency. Now all the cables of everyone are just a little off.
Now you need to compare 25 sets of data and turn them into something decent regardless of the crappy situation they're into. However, whoever provided the sets doesn't want to help and provide the missing information. Now what...
You want a complete set, but you're not gonna get one.
I swear, sometimes my job looks like a D&D game gone bad.
2
 
8:32 PM
Interesting video
I'm way over the hill, if 30 is over the hill
 
@pacmaninbw This seems doubly appropriate, since it's over 30 and over the hills.
Don't mind the hill, you ain't 50 yet.
Man's greatest survival skill is flexibility, and you got plenty of that left mid thirties.
And remember, herd mentality won't get you any further than the rest of the herd.
Monknight all
 
Mast I'm going to be 64 next week
@Mast ^^
 
Sounds more like you just crossed a mountain range.
What are you talking about hills for man?
 
LOL
2
 
0
Q: TypeScript fetch wrapper class with localStorage cache

MauricioRobayoI'm learning TypeScript while doing my portfolio, and I wrote a class to make a fetch request to the API that holds my data. It is working fine. I use localStorage to set a cache to avoid calling the API often as the data won't change. I know I could improve this a lot, and haven't used many Type...

 
8:56 PM
@Mast roll me an insight with a bonus of 5
 
I'm voting to close this question as off-topic because it's asking for a code review rather than about a specific problem. As others have noted, this question may be on-topic at codereview.stackexchange.com, but please review what types of questions are on-topic in that community and what types of questions to avoid asking before posting there to ensure that your question is on-topic. — Ryan M 37 secs ago
 
9:34 PM
-1
Q: Which way of creating object is preferred?

NepNepI have some classes and a condition class Base: pass class One(Base): pass class Two(Base): pass class Three(Base): pass # etc... condition = 'two' I have 2 ways of creating an object var as followed Method 1 if condition == 'one': var = One() elif condition == 'two': va...

 
@CaptainObvious Wow, that went from 1-4 CVs very fast
 
9:58 PM
0
Q: TypeError operand when looping through list of lists and t-testing

user226948I have a list of lists, 24 with indexes 0-23 representing hours of the day. There are some that are empty but I have even tried filling them with 0s. I am trying to t test starting at the first list vs the next one, and if p>.05 then append the lists together, then test the combined list vs the n...

1
Q: NMRSTAR and,SPARTA file converter for Data RMSD calculations

sammanA protein is composed of amino acids (also called residues). The amide nitrogen and hydrogens (N and H in the script), carbonyl carbon (C), alpha carbon (Ca), beta carbon (Cb), and alpha hydrogen (HA) form the backbone. Each amino acid has the N,H,C,CA,HA atoms, with most amino acids containing t...

 
10:12 PM
Use competition sites for fun. Don't use them as an example of good code. The first two lines would fail code review at many companies, and things don't get much better after that. — user4581301 57 secs ago
 
possible answer invalidation by Reinderien on question by samman: codereview.stackexchange.com/posts/244753/revisions
 
@Duga ``` bug
 
possible answer invalidation by user3789184 on question by user3789184: codereview.stackexchange.com/posts/244548/revisions
 
@Duga False positive
@Duga Not mentioned.
 
11:17 PM
The reason I mention variable names like that is it frustrates code review, and also bucks the convention of variables starting out lower-case. R is presumed to be a #define macro based on its name alone. — tadman 29 secs ago
 
@Duga False positive. Seems like Duga should be renamed "Falsy" or something
 
11:57 PM
1
Q: mini guessing game

bliboyi am a beginner programmer and i would like to improve in coding and develop my skills . That is why i am asking this question , what should i focus on improving in this code ? import random import re # this is the file that contains all the words from words import words # the word that the use...

1
Q: a beginner's approach & confusion bash script

mister nobodyI've started learning bash today, but I knew basics of javascript. It would be very nice if anyone can point me at least a few advices on the code. Because there are so many details in bash, I hope you won't be too harsh. The code is supposed: to set the value of a variable named 'charge' from t...

 
00:00 - 19:0019:00 - 00:00

« first day (2613 days earlier)      last day (1422 days later) »