OH! I knew/noticed something changed about it yesterday, but I wasn't able to put my finger on what was it specifically. All I could say is that it looked ...longer.
Best posts made by sh_code
-
RE: YouTube's new logo
-
RE: Caching is hard: docker edition
@Kamil-Podlesak what utterly fascinates me is that i don't have even the slightest most surface-level idea how docker actually does its magic, but even i am aware that a better identifiers, such as checksums, or even filenames, exist.
-
RE: Do you send thank-you notes after being interviewed?
sometimes i'm tempted to send a "thank you for wasting my time to justify your fake job" to the personalists who force me into a preliminary face-to-face meeting with someone who has no idea what the position is about, doesn't work for the company, nor has any technical knowledge, because "we prefer to meet candidates in person before we let them meet the client"
on a slightly (un)related note, i was once on an "interview" by a headhunter agency that was hired by an IT company that didn't have enough in-house devs for a project it was contracted by another IT company that didn't have enough in-house devs for their project so it decided to outsource it because they already had good experience with working with that second IT company devs.
-
RE: Feeling depressed? Have a boner.
@El_Heffe in my experience, a good wank can improve mood at least for a while.
-
RE: Firefox Developers Hate You
@topspin said in Firefox Developers Hate You:
And anybody who thinks minor UI changes are the reason everybody switched to Chrome
i switched to Opera GX. Purely because it has CPU and RAM usage limiter settings which sadly turn out to be the most important web browser innovation in the past 10 years
-
RE: WTF (What-the-Fun) Project: Dust Sucker
@Luhmann said in WTF (What-the-Fun) Project: Dust Sucker:
@sh_code said in WTF (What-the-Fun) Project: Dust Sucker:
to recieve the data used to generate the active noise cancelling wave
you mean we play our commercial messages (and those of our 'selected' partners) to drown out the sucker's noise?
no, that's not what i meant. thanks for correcting my oversight and improving the product!
-
RE: [Hoax] Dude ruins company who had never heard of proper backups
"Mr Masarla runs a web hosting company, which looks after the servers and internet connections on which the files for websites are stored."
nope, he doesn't. not anymore. :-D
-
RE: Power user
@polygeekery said in Power user:
@cartman82 said in Power user:
God save me from power users.
I will drink to that.
Aye, God save us from us, I will drink to that too. :-D
-
RE: WTF (What-the-Fun) Project: Dust Sucker
@BernieTheBernie said in WTF (What-the-Fun) Project: Dust Sucker:
On its large rounded display, some icons are shown with the basic message: “Dust Sucker is preparing for your sucking experience. Please be patient.”
i propose the message to be more along the lines of: Your/this sucker is preparing to suck.
-
Thank you for letting me back in, Discourse!
So... long time lurker, then long time poster, then... long time... expelled?
Basically, as the discourse forums came, i tried to re-register. It said i'll get an activation mail.
Which i got about 5 days later and noticed another 5 days later, so the activation link wasn't valid anymore.
So I had it re-sent.
Which I'm not sure if it ever came.So I thought "fuck you, it's not as my comments had any value anyway", and went on unregistered and unposting for about half a year or something.
And now I really felt the urge to vote in the numpad usage poll, so I clicked it, and... YAY, I can login with facebook! KTHXHI.
Round of applause for discourse for finally letting me in, please!
(But I do really like the realtime preview. Except afaik, star text star should be bold, and underscore text underscore should be italics.)
-
RE: Confuse your colleagues
@hungrier said in Confuse your colleagues:
Does he have a background in Java using Swing UI?
i think he has no experience with programming anything visual-related, and that all his experience is pure backend stuff, databases and related server-side code.
-
RE: Stanford dumps Java as introductory class
@adynathos said in Stanford dumps Java as introductory class:
The way to do it is try some basic singing / programming and see if you like it, whether you are making progress.
yes. and basic programming starts in your mind, by working with the basic concepts, understanding them and why are they important, and what their use is. language and syntax are second.
it won't help you with learning the basic concepts and their significance when the first thing you ever encounter is a language which has style conventions instead of actual proper syntax and structure, and where variable is a number is a string is an object is a function is a class is all the same because let's not bother people with needless syntax clutter.
101 entry programming would then be better served even with no actual code, just talking and drawing boxes and working with concepts and algorithms using natural language. then those people who find they' re interested and actually have the ability to THINK programmerly, would move on to "learning the clutter", in other words actual programming language.
-
RE: Windows Update WTFs
@Captain point is that it should be a cascade
- non-reboot
- non-security
- critical.
for each a dropdown with
dl&install automatically
only dl, ask to install
ask to dl&installand for the last one only "restart automatically" or "disconnect and prompt to install & restart".
± the current soft & hard time limits for those options, +the active hours scheduler -
RE: I'm sure the Gamergaters will turn this thread into garbage, but until then I have to post this
@blakeyrat ...i don't understand why would people advocating for ethical journalism in gaming want to "ruin" this thread which has nothing to do with ethics in gaming journalism?
i mean... rational people (some call them anti-SJW), maybe, by laughing at the utter stupidity and gynocentrism of the whole thing, but... gamergaters? why would they?
yes, there's some overlap in the two groups but you need to discern which group affiliation creates the motivation, no?
i mean, if you're a member of NRA, and a psychopath at the same time, and decide to shoot up a school, it would be incorrect to claim that "NRA member commits mass murder", because that's (most likely) not where your motivation to do that comes from. i would even call such a claim to be an outright lie. your motivation to do the shooting would most likely come from your "membership" in the "group" of psychopaths.
same principle here.
-
RE: Project Sunroof, another high-quality bug-free product from Google!
@raceprouk said in Project Sunroof, another high-quality bug-free product from Google!:
Guess us Brits will have to wait to see just how buggy this is.
shouldn't it be "Aw snap! It looks like the sun hasn't reached your country yet! But it's working on it!" ?
-
RE: Re: WTF Bites (My longest running banking :wtf: to date)
@Polygeekery set some script that will grab that mail every morning, quote it, add an "this is still happening on an already closed account. please fix" and will forward it to support email of the bank.
i'll bet it's gonna be resolved within 2 weeks. -
RE: Trigger question (PHP warning)
-
"param pam pam, param pam pam" (not sure if it makes sense in english, but in my language it's basically how you'd write a person rytmically humming to themselves in a way)
I keep doing mistakes like this one, getting weird results:
php -r '
yeah, that's a pretty big and silly mistake
-
-
RE: No matter how inept you think MySpace is, they are worse.
@El_Heffe said in No matter how inept you think MySpace is, they are worse.:
Myspace apparently lost 12 years’ worth of music, and almost no one noticed
MySpace is apparently still alive and almost no one noticed.
FTFY
-
RE: I've played video games before and I know what I'm doing a little bit
trwtf is the video in the article.
i don't need you to overlay the actual thing with the text copypasted from the article right below, I played the video expecting to actually see those maneuvers, you know?
-
RE: The iPhone XS (will) Max (out your credit card)
@Atazhaia said in The iPhone XS (will) Max (out your credit card):
I see absolutely fuck all to motivate the iPhone Xs costing more than the iPhone X did at release
it's newer and it has a picture of a bitten-off apple on the back. if you don't think that's a reason enough, then you're probably just one of them haters.
-
RE: c# - Any clean way for generic parent to get type of child?
I suppose something like this doesn't count, even though it technically satisfies your requirement of only writing the class name once in its definition.
...except you then pay for it each time when you invoke it XD
...but then again you could name the function "_" instead of Instance, which would again almost equalize the typing length, and since the manager is named Singleton, it would still be pretty clear.oh, and also it fails the basic requirement of private constructor, which...
public class SingTest2 : ISingleton { private DateTime n; public SingTest2() { n = DateTime.Now - TimeSpan.FromDays(365); } public string DoStuff() { return "This is weird: " + n.ToString(); } } //yes, this is only a tag to notify you there's something different about the class, technically this thing can singletonize anything public interface ISingleton { }; public static class Singleton { private static Dictionary<Type, Object> _instances = new Dictionary<Type, object>(); public static T Instance<T>() where T : ISingleton, new() { if (!_instances.ContainsKey(typeof(T))) _instances.Add(typeof(T), new T()); return (T)_instances[typeof(T)]; } }
yeah, i know, completely stupid, but i just spent two hours trying everything i could think of including things which halfway towards the solution contained something I thought "this won't work the way I assume", but they did, and... failed a bit later. anyway, so I'll be dambed if I don't post my useless stupid bit into these useless stupid musings!
(wouldn't it be amazing if there could be at least static class indexers? and on that note, "self" in general?)
or at least static extension methods?
or... whatever... actually, it's probably best that a language doesn't have features which you start wishing for when you're trying to do something utterly useless and stupid out of sheer laziness XD -
RE: :wtf: is GTA V doing in the pause menu?
@neighborhoodbutcher said in is GTA V doing in the pause menu?:
actually UI is one of the easiest things to batch. QML does it extremely well
how many times do I need to say that what I wrote are WTFs collected across several engines, as an example list, and not an end-all be-all list of "this is what ALL the engines to wrong"?
EX-AM-PLES. where each specific implemenntation solves some of the WTFs while creating its own.
congratulations in pointing out one of the issues and pointing out ONE or TWO of the (dozens) UI libs that solves the issue. u so smert. u invalidated my whole comment in one example. congrats.
</sarcasm> -
RE: 4D toys
@pjh oh, the miegakure guy.
love him, adore him, respect him.
except the moment when he (guy making 4D stuff) said that there probably won't be Android version of his iOS app because it looks too complicated.
SERIOUSLY, GUY??? YOU ARE MAKING 4D GAME! YOU MANAGED TO MAKE A VERSION FOR THE ABHORRENT SHITTY iOS!
And pre-school Android seems too complicated?!?
Seriously? -
RE: Future Front Page Perpetrator?
@HardwareGeek ... reminds me of when I learned basics of Java in a week by being paid by a university student to program his end-year school assignment =D
-
RE: Linux user-facing software usability
@masonwheeler said in Linux user-facing software usability:
Problem is, he's not in a sane world; he's in Linux-land.
i love you instantly for this one
@masonwheeler said in Linux user-facing software usability:
You know who does understand that? The Google people.
yeah, but they're starting to forget it as well. why else would google give me "hilary clinton" as main search result when I was explicitly searching for "COSMID hilary"?
-
RE: My application is Windows!
Riddle me this, why should they care?
no, seriously.
why should an entry level end user care about the difference?
why should I, as an entry level shopper, care about the difference between storing the groceries I bought in my fridge, vs "storing" it in the middle of the most frequented supermarket floor?
-
RE: DevOps doesn't want me to take the survey that much, I guess
...also, guys, there's such a thing as "Central europe"! It exists right in the middle, which makes it kind of hard to classify into either "western" or "eastern" europe, which is kind of why it has its own cathegory, usually. Except here, apparently. First time I ever saw it missing, and now I'm reeeally stuck. Selecting "western" seems giving us too much credit in claiming we're part of the modern world, but we've got asphalt roads already, so "eastern" is not fair either...
-
Android SDK install path cannot contain spaces...
...nuff said. Yay for basically being forced to pollute root of my hard drive.
-
RE: Bad naming
@TimeBandit said in Bad naming:
Bullshit.
YOU MAKE THEM FIX THEIR CODEexcept you can't, really.
and when it breaks, every moron and their grandma (including many of the programmers themselves) blames the OS, because "it worked until i installed this shitty new version that broke everything". -
RE: Stanford dumps Java as introductory class
@accalia said in Stanford dumps Java as introductory class:
lowers the barrier to entry
i don't understand why people consider this to be universally good. if you can't get past the barrier of entry consisting of the basics, how well do you think you will cope with anything and everything beyond it?
in other words, imagine someone in a wheelchair being admitted to army as an infantryman. imagine them in the basic training. and then on the battlefield. because let's not be elitist, lowering barrier of entry is a universally good thing, right?
-
RE: Adobe vs Dolby and older CC versions
@swayde said in Adobe vs Dolby and older CC versions:
Oh, I presumed it was linked to the cloud because " Creative Cloud"
... and because you're naiive enough to think that companies are privacy-minded enough so that they DON'T stuff their software chock-full of tracking as soon as it's in any way and for any reason regularly communicating with any of their servers?
-
RE: The bad jokes topic 🐴🍹👨
Not sure if anyone will get it because... well, whatever, joke my father came up with, he's got english as second language and is very bad at it...
A dog and a cat meet. Dog says "How are you", the cat replies "Meow are you"
-
RE: :wtf: is GTA V doing in the pause menu?
@neighborhoodbutcher there's not much batching you can do. maybe put icons on a texture atlas.
okay. might still not work if the quads showing the icons are different sizes, which in some engines, breaks the batching.you've still got hundreds of characters of text, each one being a polygon with possibly 50 to 200 vertices (again, I'm talking in general, some engines handle text like this, some do it differently), all of that mesh being generated on the fly when you assign or change the text, or even when the text moves (scrolls), if you did it stupidly.
again, these are just collected examples of what i've come across in various engines. don't take it as a "complete list of what all the engines do", just examples supposed to hint at the fact that "UI rendering is surprisingly different from the normal 3d world rendering which graphics cards are optimized for".
If i wanted to write comprehensive and detailed explanations of how and why, it would be like 3 pages at least, and I'd have to go and re-study some of the engine manuals to check/remind myself of the specific quirks, which ones have which, etc...
also, there's always many techniques to "do things right", but many of them contain nuances which are counter-intuitive compared to how one would think about structuring and handling it in the "naiive" way.
(and then there's things like scaleform, which I have no idea how it handles stuff, except that it basically creates an overlay/draw surface on which it runs (almost?) complete Flash runtime, I think. which... usually works surprigingly well, even though it sounds like a wtf (and it might be).)
-
RE: Warning: Contains nuts*
@FrostCat said in Warning: Contains nuts*:
@flabdablet Man, everyone should just put "warning: may contain allergens. Read the ingredient list" on everything.
there's some restaurants here in my country that did something similar, they had a text on their menu stating:
"Warning! All our foods contain all the alergens.
(This is obviously not true, but idiotic EU laws require us to warn about allergens which our chef doesn't like because he believes our customers are smart enough to figure out what is safe for them and what is not. If you're not sure, ask the waiter for specifics.)" -
RE: Because RSS and Atom weren't enough...
@PJH
Jeah, SON, more useless and needless APIs! -
Windows update successfully unsuccessful (or unsuccessfully successful?)
- the list is 3 screens like this high
- EACH of the entries in it means in practice:
- my GPU drivers get kicked out even while running fullscreen 3d app (meaning from second to second, it goes from fluent 60 and more FPS to about 0.5 - 5 FPS.
- i have to "restart and finish installing updates", which goes to 100%, restarts, then says "finishing updates", then goes "updates failed, rolling back", then restarts again.
- I log in, and I need to check if the option still says "Update and restart", or it says just "Restart". I have to repeat restarting until it's only "Restart", which takes 1 to 3 times.
- Finally, I can run the idiotic "GeForce Experience" thing and tell it to reinstall drivers (which in and of itself takes retardedly long even if it works)
- Driver reinstall gets stuck on a very specific point, which forces me to close GeForce ShitSperience, and restart the whole comp (can't re-run driver reinstall because GF Shit shouts there's installations in progress).
- restart gets stuck on the "Restarting" blue screen, I have to do hardware turn off and on.
- login, run driver reinstall, pray that it doesn't get stuck. if it gets stuck, goto 5. This can repeat 0 to about 8 times and can take anywhere from 20 minutes to 2 hours.
- installation successfully finished? GREAT. Now don't restart or turn off the computer (and forbid the driver reinstall from restarting even though it claims it has to), lest you want your finally again working drivers to get kicked out again.
- sometimes windows (naturally) decides to WAKE UP FROM BEING ASLEEP AND RESTART overnight, while i sleep, at which point it's a lottery whether the drivers are still there or not. if yes, do a nation-wide celebration. if not, goto 2
P.S. why does ShiteBB error out when i try to insert image while the thread cathegory is not selected yet?
-
RE: PSA: JavaScript is retarded
@bulb said in PSA: JavaScript is retarded:
@sh_code said in PSA: JavaScript is retarded:
show me JS' date.format function.
Date.prototype.toLocaleString
,Date.prototype.toLocaleDateString
andDate.prototype.toLocaleTimeString
. The arguments are, unfortunately, retarded though. If you want to pass options—you do want to pass options—you also have to pass the locale—for which you almost certainly want to use the default.But at least, it actually knows the localized timezone name:
$ node > new Date().toLocaleString('cs-CZ', {'timeZoneName': 'short'}) '6. 10. 2017 23:37:01 SELČ'
(same result in Chrome) which is better than GNU LibC.
huh.
at first I was trying to come up with some snide remark, but actually you kinda caught me having a stupid moment (in not having discovered those functions/not having realized they might be useful. I was thinking in line of ".format(param, 'dd.mm.yyyy hh:ii:ss')", didn't realize going for our official locale format (or, in the worse but still functional case, some other locale with the format I'm looking for) can work too.i admit that makes me feel a bit of a fool and makes the OP a bit of a less of WTF.
-
RE: PSA: JavaScript is retarded
@dreikin said in PSA: JavaScript is retarded:
@sh_code said in PSA: JavaScript is retarded:
and JS is shit but people are too dumb to make some actually sane replacement for it
WebAssembly is a thing.
finally! i've been saying we need this for the past 7 years!
@dreikin said in PSA: JavaScript is retarded:
@sh_code said in PSA: JavaScript is retarded:
also processors are dificult, yet i don't see DYI wooden addons which would be basically required for them to work in at least remotely sane way.
Uh, what?
metaphor meant to express what that sentence about moment.js sounds like. "my processor can't do basic stuff it should be able to do! “ - “that's normal because processors are hard, glue this hobbyist-made addon to it which will make it work fine, or, rather, which will hide and circumvent all its original by-design shittery"
-
RE: My Pet Peeve: Maximum Length Passwords
@Shoreline said in My Pet Peeve: Maximum Length Passwords:
I only know the basics of password/session security, but as I understand it, passwords are hashed into a 32-character string. Why then, can I not get an extra 12 characters in my password?
-
ALL hashes, made from ANY length string or file result in fixed-length string.
-
If the fixed-length string is only 32 chars, you're doing it wrong because that's too short (using too weak hashing algo, stronger ones have longer outputs, powers of 2, u know) and too quickly crackable since about 2005.
-
As was already mentioned, you assume they're hashing the password, while the complete opposite is more likely. The only reason to impose maxlength limit to password (disregarding "i've seen many other sites so it") is precisely NOT HASHING passwords, which means their length is capped on column length in db. Which is utterly stupid, yes.
-
-
DevOps doesn't want me to take the survey that much, I guess
The survey looks like this on my phone (every page of it)
Clicking the forward/back arrows "works" (i.e. changes the progressbar by 1%), which kinda seems like a missing/broken (/ pure client-side JS) form validation. Checked it on my PC now, and yes, seems I'm right.
-
RE: Coding confession/brag/rfc on something i just wrote
@cvi said in Coding confession/brag/rfc on something i just wrote:
Without knowing more about the code and just a quick glance, I'd be wondering about why you use the y-component for the Z value, and why you add .5 to it.
that would be a good question. the answer is "it was late at night, this snippet went through some corrections after posting (but stayed in principle the same), I'm not entirely sure anymore". i think it was supposed to be correction for y coord to account for character's height (therefore camera is higher than his 0,0 coord), because the viewportToWorld seemed to... not correctly account for local coords, but... the more i think about it now the less sure I am if it was actually the case.
@cvi said in Coding confession/brag/rfc on something i just wrote:
And both times there's the offset by a half-unity vector. Though that's hard to determine without knowing more about what a Collider is and how ClosestPoint() works.
unity's screen space (on some places at least, not sure if all, yes, a bit of framework ) is 0,0 from bottom left, the only check i need to do on it is "distance from screen center", so i do distance from 0.5, 0.5 (screen center) to the closest point on the collider...
...oh wow. it was really late at night. to be honest, i'm not entirely sure why and how I arrived at this exact form...therefore conclusion: this is a confession and that is a horrible piece of code regardless of how cool it looks :-D
thanks for helping me realize that by forcing me to look at it again when I'm sober -
RE: Feeling depressed? Have a boner.
@Zerosquare said in Feeling depressed? Have a boner.:
...this topic is sadder than I expected from the title.
you don't have dark enough sense of humor then. keep reading tdwtf daily and you'll get there ;)
-
RE: Slack to replace IRC...
While I'm sitting here, still not having a single bit of idea how Slack is able to be in any way relevant, in a world where Discord exists, which is basically "Slack, but actually good and useful".
EDIT: ...probably except because of some ToS crap that I just learned about few comments above.
-
RE: Arbitrage. With Pizzas!
@Gąska more like "the real California's idea of making money",everything being based on "valuation", and thus trading the idea of (future) profit, instead of actual profit.
we in europe still mostly try to make actual money.
(edit: i never understood how californians do it, until i watched Silicon Valley, and then it started to make perfect sense.)
-
RE: XML file confusion (wooden table, advanced edition)
@tsaukpaetra said in XML file confusion (wooden table, advanced edition):
Kudos for her being an AI deciphering XML, I bet it wasn't even pretty-printed!
yeah, that's the actually funny part, imo. she's got enough capacity to decipher totally alien "text" format and correctly infer/parse out the right information from it, while at the same time not enough capacity to realize "wait, when i click export in my software, it creates a file with the same extension automatically, with the data from the software, i wonder if there is a button in here somewhere that works in the reverse direction, eating this kind of files and making them into data in the software"
utterly fascinating paradox.
-
RE: Windows' Task Manager is Pure Magic
@topspin well.. yes, i know it's not actively, intentionally fixing it, but it's just a side-effect.
doesn't detract in any way from my being thankful to it, and being fascinated by it.
-
RE: Opera makes a gaming browser
@Parody said in Opera makes a gaming browser:
The current Opera comes fresh from China. Yay?
...ah dammit, i should have known it's too good to just be good...
-
RE: FUCKING HELL WHY DOES IT REBOOT ZERO TIMES WHEN I CLICK REBOOT ONCE
I was just thinking how funny it is how everyone everywhere does jokes and memes about windows updates and reboots and such, while I'm just sitting here, happily having no issues for the past at least 4 months, being surprised this morning when I turned my computer on and got my first "please wait, updates installing" in those 4 months, which took about 2 minutes and happened flawlessly.
...kicking out the reboot shortcut which windows update uses does wonders =D
also, you know there's a "restart"/"update and restart" option in the menu under your shutdown button, do you?
that one always works. who cares about some fancypants UWP button? =D -
RE: Do you program in HTML?
@raceprouk said in Do you program in HTML?:
From http://www.techrepublic.com/article/the-10-easiest-programming-languages-to-learn/ :
let's play around with some philosophy:
HTML being the easiest programming language kinda makes sense... in a similar way as null being the smallest number.agree? disagree? Awaken your inner Nietzche and let him on a rampage!
-
RE: WTF (What-the-Fun) Project: Dust Sucker
@Luhmann said in WTF (What-the-Fun) Project: Dust Sucker:
@dkf
Only if we make long term graphs and comparison charts a premium package ... I mean we can include them the first year or so but then yank them behind a paywall later on ...of course we always collect the data, from everyone, but we only display them to the user if they have the premium package.
oh, and the stats are never stored locally, they are always streamed in real time to our servers, and when premium customers want to view them, we stream the data from our servers back to the ram of the sucker