Details
-
SkillsPython, Java, Dart, C++
-
Github
Joined devRant on 6/17/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I had the funniest thing today... So our company has some servers off somewhere in a VPN, as well as one server in our own office.
So, for simplicity, S1 is my own laptop, S2 is our office server, S3 is one VPN server, and S4 another.
I want to get a file from S2 to S4. S1 can SSH into S2 and S3, S2 can't ssh into any server, S3 can ssh into S2 and S3, and S4 can't ssh into any server.
So to get a file from S2 to S4, I took the path
S1 pull from S2 -> S1 push to S3 -> S3 push to S4
Part of it was preexisting keys meaning it was easier to send S1 to S4 via S3 than get my pubkey from S1 onto S4, but also S2 not being on the VPN meant I couldn't go straight from S2 to S3 or S4, so I had to route through S1, which I could add to the VPN (I'd sshed into S2 from home and thus couldn't put it on the VPN not to mention permissions, whereas I could put S1 easily onto it)
Twas certainly a fun time :P
Plus, port forwarding from a Docker container on S2 to S2's port to S1's port via ssh was fun to get set up.
Time to document this process :)2 -
You know what, fuck this. I want a functionality that is supported on browser versions back to 2016 of the major browsers... Besides IE, where it isn't supported.
But honestly fuck IE users, they can have invisible characters. Certainly no other people above me in the management structure will be using old computers enough to lose it, or at least the head honcho should be able to overrule, as from past experience if it works on my machine and my boss' boss' machine, my boss' machine doesn't matter.1 -
Not fun, exactly, but trying to convert a Wordpress site into GatsbyJS to speed up the godawful site of an organization I just joined.2
-
Telegram or Signal? Got essentially blocked from Messenger because I was stupid enough to fold to peer pressure to get it for robotics and since I enabled it with a GV number they stopped allowing its use for specifically security checks while allowing it even to reset a password, and I somehow got a security check triggered, with no customer support and no ability to call with code, so I'm looking to switch. Even if I get Facebook back, I want to move to something at least that doesn't randomly trigger security checks and then has no customer support.rant messaging apps messenger fuck telegram mistake signal facebook no customer support why did i move all my chats there peer pressure i'm stupid12
-
My Precalculus teacher has such overstrict rules on showing work.
1. On tests, degree signs must be shown in all work. This wouldn't be outrageous except that if the answer is right but a single degree sign is missing in the mandated shown work, the entire question is wrong even with a correct final answer because the "answer doesn't match up with the work".
2. We must show work in the exact form mandated from on class. If even a single step of work is missing or wrong on even one say homework problem, no credit even if the entire rest of the sheet is correct and complete.
3. Never applied to me, but if a homework problem cannot be solved by a student, they must write a sentence describing how far they got and what wasn't doable, or no credit on the entire homework. Did I mention it is checked daily and is 2 unweighted points with 50-100 point tests?
4. On graphing calculator problems, one had to draw a rectangle representing the calculator screen, even for solving systems of equations without explicit drawing graphs as part of the problem, because otherwise, she had "no proof that a calculator was used". It isn't that hard to fake, and it was quite stupid.
5. Reference triangles were required even when completely unnecessary or the answers were assumed copied, even if a better method was shown in work.
And much, much more!4 -
-Publish a paper
-Get into one or more of the many camps I applied to
-Get a social life
-Start in open source
-Get to at least USACO Gold
-Improve my bots for various social media
-Stop using non-open source services as much as possible
-Contribute to devRant
-Do more exercise
-Get a hobby
-Start and actually finish a side project
-Get a job
-Start at least 2 more research projects and hopefully get quite a bit towards publishing a paper in each.16 -
I just experienced something on MacOS that I thought was a Windows/Chrome type thing. Brave Browser, a huge RAM-suck bigger than Chrome, didn't make my computer slow. However, my Mac automatically opened both iTunes and Safari, the equivalent of a forced update, and suddenly my computer gets the spinning wheel of death, the equivalent of a BSOD. I'm now wondering what is wrong with those programs that they use so much RAM to get the spinning wheel.
And before anyone does the obligatory "Use Linux" comment, I've been meaning to switch for awhile already and just haven't gotten around to it.3 -
Part 4 of Mathematica fails that I've been saving for awhile.
Very consistently, the first time I try to save a graphic, it works fine. The second time, it changes the focus to a different tab, but works. The third time, it quits, but does save the graphic.
When I have >=10 graphics to save, this is pretty annoying, especially as if something was saved normally and not via the prompt when quitting Mathematica normally, after crashing it is no longer saved. -
Part I think 3 of Mathematica fails.
So, I'm doing a plot. Initially, I hit the following error: "Value of option PlotRange -> {{3,19},{0,1.1}} is not All, Full, Automatic, a positive machine number, or an appropriate list of range specifications."
Me:Okay, let's change it to PlotRange -> Automatic, maybe I don't know what I'm doing.
Mathematica:"Value of option PlotRange -> Automatic is not All, Full, Automatic, a positive machine number, or an appropriate list of range specifications."
Me:Uh, what? Well then... Oh, please don't tell me it's because of a space in between.
Mathematica:"Value of option PlotRange -> Automatic is not All, Full, Automatic, a positive machine number, or an appropriate list of range specifications."
Me:Oooookay then, what's the problem?... oh wait, there's another space. Why is it that sensitive to whitespace though?
--------------------------------------------------------------------------
That fixed it. Then, when I tried to reproduce it, suddenly adding a space and reevaluating did not raise the error.6 -
Since when has Brave based on the Chromium base been the main download?
Today my legacy Brave based on their own base crashed and as it seemed unrecoverable, I tried reinstalling. But now I'm stuck with this crappy Chromium based browser... I hate the non tab-pages and lack of tab peeking.
I initially had the Dev channel version but only as a backup for my main Brave because I realized how crappy it was, safe in knowing that at the time the main download was the old Brave Core. Now I'm really annoyed.2 -
Kind of !dev (Because my research uses code for computational power)
Ah, research.
The worst part of doing mathematical research as a high schooler is that there are no real hard-and-fast deadlines because school is constantly getting in the way, so any such deadlines would be quickly overrun, but that means that it is playing second fiddle to absolutely everything else with a deadline (aka everything), including my heaps of other mathematical work that is due once a week that I cannot possibly bash through fast enough to have time to do research. -
So a follow up to my last Mathematica rant:
I have a JSON file made up of arrays of arrays of arrays with the outermost layer containing ~10,000 arrays.
So, my graphing works perfectly the first time for one of my graphs. I fix another unrelated graph, graph the whole file, and suddenly the first one stops working. The file read-in only reads in the array {2,13}. I double checked the contents of the file, they were as large as always.
Then, I proceed to look for bugs, find none, and decide to restart Mathematica. This doesn't help.
So I go back, find no bugs, and eventually am so fed up that I just restart Mathematica again, no changes.
Suddenly, the array reads in fine. Waiting for the graphs to come out but I think they'll be fine.
WTF Mathematica? Why must I restart TWICE to make bugs caused by your application go away?7 -
This error, which took me a long time to find, demonstrates the importance of useful variable names.
Using the Wolfram Language:
pp = {};
For[i = 0, i <= Max[p], i++, If[Count[p, i] != 0, pp = Join[pp, {{i, Count[pp, i]}}], -1]];
pp
Outputs:
{{1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}, {10, 0}, {11, 0}, {12, 0}, {13, 0}, {14, 0}, {15, 0}, {16, 0}, {17, 0}, {18, 0}, {19, 0}, {20, 0}, {21, 0}, {22, 0}, {23, 0}, {24, 0}, {25, 0}, {26, 0}, {27, 0}, {28, 0}, {29, 0}, {30, 0}, {31, 0}, {32, 0}, {33, 0}, {34, 0}, {35, 0}, {36, 0}, {37, 0}, {38, 0}, {39, 0}, {40, 0}, {41, 0}, {42, 0}, {43, 0}, {44, 0}, {45, 0}, {46, 0}, {47, 0}, {48, 0}, {49, 0}, {50, 0}, {51, 0}, {52, 0}, {53, 0}, {54, 0}, {55, 0}, {56, 0}, {57, 0}, {58, 0}, {59, 0}, {60, 0}, {61, 0}, {62, 0}, {63, 0}, {64, 0}, {65, 0}, {66, 0}, {67, 0}, {68, 0}, {69, 0}, {70, 0}, {71, 0}, {72, 0}, {73, 0}, {74, 0}, {75, 0}, {76, 0}, {77, 0}, {78, 0}, {79, 0}, {80, 0}, {81, 0}, {82, 0}, {83, 0}, {84, 0}, {85, 0}, {86, 0}, {87, 0}, {88, 0}, {89, 0}, {90, 0}, {91, 0}, {92, 0}, {93, 0}, {94, 0}, {95, 0}, {96, 0}, {97, 0}, {98, 0}, {99, 0}, {100, 0}, {101, 0}, {103, 0}, {104, 0}, {105, 0}, {106, 0}, {107, 0}, {108, 0}, {111, 0}, {112, 0}, {116, 0}, {118, 0}, {122, 0}, {125, 0}, {136, 0}, {137, 0}}
As opposed to the expected output, which should have no 0s as the second values in any of the tuples.
I spent a large amount of time examining the code to generate p before realizing that the bug was in this line.3 -
I hate myself so much right now. I just spent an hour finding the bug in the following:
var counter=0
while(1){
if(counter%2==0){
doStuff()
counter++
}
}
Because I thought it was a bug in doStuff().8 -
The best feeling ever is when a super long line of code is written that definitely should not be on one line, that one does not check over the logic for after writing, entered without pressing the backspace key, and it works first try.
-
Is anyone still playing Screeps? Only got it recently, and it seems it isn't dead yet, but the last posts about it on devRant were more than a year ago.
-
Fuck the long process to make a new Microsoft Azure account. It needs both a verified email and a verified phone number, and (especially) doesn't accept a Google Voice number, which is the main number I actually use for everything. And of course, this is after doing the exact same process to make a new Microsoft account.1
-
I just started helping a friend write their Java exercises that they have to do over the summer for AP Computer Science. The following code is what I inherited from them, which is a person who just finished learning Java for a year in another class. I am without words.
http://collabedit.com/gxd4t2 -
I learned how to use the MacOS and Linux command lines first, so it's been a constant pet peeve of mine that I had to use dir for the purpose of ls on Windows. Today I tried to make ls an alias for dir, but noooooo... Windows uses the doskey command instead. I can't even make alias a macro for doskey either so I'm stuck at least with that shortcut that only Windows uses. #FuckWindows5
-
TFW you open a StackOverflow question only to find the answer you need in the question itself and not even in a comment or answer.
-
My Windows laptop randomly shut down 3 times tonight. I then had to completely reboot, but it looked as if the computer just went to sleep. Always at the worst times too just as I went to do something. Seriously, Microsoft?3