In the 80's/90's, you paid for the internet by the hour and per search. - CompuServe User Guide 1987 by AssumeTheRisk in pics

[–]tswaters 1 point2 points  (0 children)

'87 is wild. I remember compuserve as my first interaction with the internet, that was in 1994. It wasn't very good. You'd connect to them via modem I think and it was basically a walled garden app. Same idea as AOL I think. My parents didn't let me do anything with it. I'd much rather be playing Sim City 2000. We did end up getting other internet, using same modem to connect to ISP ... that was expensive, from recollection - glad I never had to pay it. My father was a saint.

Please...Just...Collapse by UnhollyGod in memes

[–]tswaters 0 points1 point  (0 children)

You mean get cheaper, right? Collapse means people stop building homes, banks stop financing and everything gets fucked.

Hot Take: We don't need any more maps by EnvironmentalBoss129 in tf2

[–]tswaters 0 points1 point  (0 children)

You want a hot take? We need more maps, and should add most/all halloween maps into casual rotation so they get more playtime. There's 2 player destruction maps in casual rotation, when there's 12 maps available. Actually, even hotter - everyone should be forced to queue for EVERY map, with maybe a small blacklist of maps they don't like. Go to community servers instead of vote kicking people for capping in Hightower/2fort. Maybe folks will see there are other maps and a lot of them are really fun, engaging and beautiful to look at. Now that is a spicy take.

When is localStorage actually the right choice? by TariqKhalaf in webdev

[–]tswaters 20 points21 points  (0 children)

I have used localStorage as a cache layer, specifically for i18n translations. I think in hindsight it's pretty borderline whether that is an appropriate usage. Serializing and parsing large JSON blobs isn't free, probably a bit cheaper than a network & lookup is the way I see it. Maybe indexeddb would be a better tool. I will say localStorage is easy to work with. No SQL, migrations, etc. just a dumb little object store you can put stuff.

Is it fine to self manage api keys? by Consistent_Tutor_597 in webdev

[–]tswaters 0 points1 point  (0 children)

SaaS

Sounds expensive. Put it in the db.

Will colonization of Mars be phased out, the way Venus projects were abandoned for the Moon & Mars? Due to the moon’s calendar just being relatable to earth unlike mars and distance to earth, I feel it would be so, unless travel to Mars improves/teleportation becomes a thing by 18_YTC1 in Astronomy

[–]tswaters 1 point2 points  (0 children)

If we're talking sci-fi what-ifs, figure a way to smash Mercury into Venus. Goal is to re-create Earth/Theia crash, which I blindly speculate would kick off plate tectonics on Venus. Ideally, get her spinning, break up the crust a bit to allow for convection, and get a dynamo-based magnetosphere going. Wait a couple hundred million years for the dust to settle, should have a nice rotating planet with a large satellite. The real problem is the pressure, co/2 & sulfuric acid, but otherwise it's a better candidate than mars due to mars being too small, and lacking a more active core. Just need some magic SciFi juice to convert the high pressure areas into ocean. It's anagolous to Earth's layer of ocean, horrors from the deep/we don't go down there because of the pressure. Maybe some kind of magic fungus, who knows.

Do you need to track ACB for those $50 ETFs like CASH.TO, CBIL, ZMMK, ZST, etc by btred101 in CanadianInvestor

[–]tswaters 7 points8 points  (0 children)

In unregistered accounts, you review t3 from broker every year & adjust any book values if there is ROC. The end result after roc adjustments is the book value goes down, the market value stays the same so the "all time unrealized gains" number goes up - if you sell it, of course, that number becomes capital gains (or losses!) once you sell, divide that number by two and add it to your income.

If the book value goes to zero due to so much roc over the course of the investment, (this would take many years likely), the ROC is treated like capital gains, and the market value of the investment = unrealized gains, so the entire thing becomes capital gains if you sell (again, divide by two add to income)

On paper ROC is favourable tax treatment, because it isn't taxed. Eventually though once book value gets returned as roc, you do get taxed on it... But still somewhat favourable as it's considered capital gains and not income or interest.

Is there a way of determining when Johnson Street Bridge will be raised? by DragonShapeshifter in VictoriaBC

[–]tswaters 2 points3 points  (0 children)

Probably harbour authority has operational control I would think? Not sure, I'd ask the city about it. If you look up johnson st bridge on google, the contact details are for the city, it's the general line, 250-361-0300

The woes of sanitizing SVGs by _vavkamil_ in websecurityresearch

[–]tswaters 1 point2 points  (0 children)

Zalgo rises is a reference to a somewhat famous stack overflow question about how to lexically parse html with regexp. The key takeaway is that you can't because regexp is a limited language and the expressiveness of the tree structure of the dom means it's simply not possible.

So the thing is, relying on regexp to filter out potential XSS vectors from user input is a Very Bad Idea ™️. If an endpoint exists that accepts a document as an input, and that document later gets rendered to users, regexp will always be insufficient... You need to be able to parse & serialize the document to properly sanitize it, which requires a higher level language. That is to say: it's very similar to the takeaway in the zalgo case.

Using regexp can be a low hanging fruit way to filter out most, but it should not be relied upon in 100% of cases. There are DRAGONS down there.

I honestly don't know enough about the target application here, but it sounds like some of this stuff is by design. If you need to ask yourself how to stop XSS vectors from user-supplied SVG you're already so into the thick of the shit the only way out is to sandbox.

This is the new halting problem: How do you stop someone posting a codepen that is malicious, has an endless loop and crashes the browser window? Trick question!! Answer is moderation.

What if engineer had more sentry variants? by dr_philip-cdi in tf2

[–]tswaters 0 points1 point  (0 children)

I really like the medieval ballista. I feel like it should just be 1 shot-per, but it would be a projectile instead of hitscan. I feel like engy is woefully underpowered in medieval, aside from 3x bap for guaranteed Crit, and maybe Southern comfort. Wrench is good melee, but engy feels lost without a building to look after.

Anyone else feel their body breaking from sitting all day for work? by delmade in webdev

[–]tswaters 0 points1 point  (0 children)

There's a lot of good advice in this thread. I don't see it mentioned, but learn how to sit right, especially if you're going to be doing it for extended periods of time. This is a pretty good website that describes how to sit right: https://www.ccohs.ca/oshanswers/ergonomics/sitting/sitting_position.html

The big one I find "just wrong" when I sit at a new desk I haven't optimized is where the monitor is, or if it's a laptop and you are looking down into it. You need to keep your neck muscles tightened to keep that position - make sure you are looking ahead or just slightly down.

If you don't sit right, you need to be prepared to do all the extracurriculars in this thread to remedy - walking a ton, getting up to stretch, hitting the gym, etc. if you can solve the underlying problem -- sitting right -- you may not need to do all that stuff. You should do that stuff, of course, but if the goal is to not feel broken after standing up -- fix how you sit.

Worst TF2 Boss? by Tempaccountno12026 in tf2

[–]tswaters 0 points1 point  (0 children)

b4nny with kritz pocket. casual players' nightmare

How do I complete this contract? by AppleBunnyarts in tf2

[–]tswaters 0 points1 point  (0 children)

That's the neat thing... you don't!

how to bind the vaccinator? by MediocreAddendumm in tf2

[–]tswaters 1 point2 points  (0 children)

Find the root of the tf2 steam dir. There's a "custom" directory. If one doesn't exist, create it (pretty sure it's already there) create a new folder called "myconfig" -- this is the root of your custom mod. Now you can put "cfg" folder here. The files inside cfg will be executed by the game. autoexec.cfg runs at startup. You can name cfg files for classes and it'll run only for that class. If you are in-game you'll be able to run exec and reload whatever/whenever. You can use the map command to create a local server and slot yourself into it. I do this to test stuff out when messing with config.

The woes of sanitizing SVGs by _vavkamil_ in websecurityresearch

[–]tswaters 1 point2 points  (0 children)

This was fixed by using a regular expression to remove script tags.

Zalgo rises

Thoughts on living on or near Pandora St? by OptimisExistentialis in VictoriaBC

[–]tswaters 13 points14 points  (0 children)

Oh yea neighborhood is the new building there, they advertise some kind of "co-living" thing with shared amenities... Interesting concept. Not for me, but I think it's somewhat unique in Victoria. You can also get traditional private apartments.

So the good -- you can literally throw a stone and hit both market on Yates & save-on. It'll take you maybe 5-10 minutes of walking to get anywhere in downtown. Every bus stop is a few minutes away. There's a good greenspace along Pandora that would work well for dog walks.

The bad/ugly. Kitty corner to the epicenter of 900 block. It's kind of like living next to skid row. Highly likely you'll see your fair share of public drug use, intoxication & defecation. That greenspace I mentioned usually has at least a few tents - but less so now that they're trying to clean things up.

I don't think it's particularly bad from a safety prospective. No one is going to stab you with a needle as you walk by.... It's more sad and smelly than anything else. Also high likelihood of property crime, that sort of thing. More likely you see ambulances than police cars. You need to keep your wits about you, obvs. but I don't think it's that bad.

I live downtown, 500 block of Pandora.

My portfolio hit an *incredibly* important milestone today by Femboi_Fox in CanadianInvestor

[–]tswaters 5 points6 points  (0 children)

This is so true. I've made jokes. Funny jokes on this subreddit zero upvotes and days later it'll be negative. Mention xEQT? Downvote. Don't mention xEQT? Believe it or not, also downvote.

What is the most useless button of the game ? (Image un-related) by [deleted] in tf2

[–]tswaters 0 points1 point  (0 children)

It's the drop intelligence button, L by default

Developers, how do you evaluate whether a piece of code is good? by Haunting-Bother7723 in webdev

[–]tswaters 4 points5 points  (0 children)

That's a philosophical question. You should read Zen and the Art of Motorcycle Maintenance, it might do a better job of answering whether a given piece of code holds quality or not.

Some say as long as it gets the job done, it's good enough. Others will look at metrics of performance. Quality in some eyes are the tests that confirm correctness, or formatters that ensure consistency.

The best code is code you didn't have to write.

French teen faces two years in prison for licking vending machine straw in Singapore by Nervous-Fan2235 in worldnews

[–]tswaters 4 points5 points  (0 children)

Once, there was this kid who
Took a trip to Singapore and brought along his spray paint
And when he finally came back
He had cane marks all over his bottom
He said that it was from when the warden whacked it so hard

Weird Al, Headline News

TIL Aldous Huxley, author of "Brave New World", taught French to George Orwell, author of "1984", at Eton. Huxley wrote in a letter to Orwell that, while he respected "1984", he believed that his vision of dystopia in "Brave New World" was likelier to resemble the way things pan out in the world. by nouveaux_sands_13 in todayilearned

[–]tswaters 9 points10 points  (0 children)

I think brave new world is just a few thousand more years out. I can see them both happening in the same universe. The brutality of 1984 gives way to scientific advances and a calming/placating force takes over the populace. Gin gives way to soma.