There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

apprehentice , in Surely "1337" is the same as 1337, right?

“1” + “1”

kionite231 ,

“11”

wesker ,
@wesker@lemmy.sdf.org avatar

int(“11”)

Skua ,

strings are in base two, got it

Rez ,
@Rez@sh.itjust.works avatar

Wouldn’t the answer be “10” in that case?

joyjoy ,

1+1=11 means base 1

Eheran ,

How so?

CanadaPlus ,

1 11 111 1111 11111 111111

That’s base 1. By convention, because it doesn’t really fit the pattern of positional number systems as far as I can tell, but it gets called that.

Eheran ,

Oh, I get it, was reading as base 2 and confused by that. Essentially Roman numerals without all the fancy shortcuts.

docAvid ,

Closer to tally marks without clustering

Klear ,

Based

docAvid ,

Who calls it that? Who even uses that enough to have given it a name? Seems completely pointless…

CanadaPlus , (edited )

Theoretical computer scientists, historians of mathematics.

I’m not sure where I heard the term exactly, but I know I have multiple times.

docAvid ,

Thanks for sharing this, it’s quite interesting. I found a Wikipedia article on it: en.m.wikipedia.org/wiki/Unary_numeral_system

Apparently, as you did suggest, “base 1” is a name that is used, but is somewhat a misnomer.

The article mentions that Church encoding is a kind of unary notation, which I would not have thought of, but I guess it is.

Enjoyable little rabbit-hole to zap my productivity for the day.

CanadaPlus ,

No problem!

Skua ,

yes, if I could do maths

SpaceNoodle ,

That’s unary.

Agent641 ,

Strings are in base whatever roman numerals are.

bleistift2 , in Junior dev VS FAANMG dev

In my experience it’s the other way around.

Potatos_are_not_friends ,

Both sides.

I constantly call out juniors who do things like ignore warnings, completely unaware that the warning is going to cause serious tech debt in a few months.

But Ive also unfortunately shrugged after seeing hundreds of warnings because to update this requires me to go through 3 layers of departments and we’re still waiting on these six other blockers.

Pick and choose I guess.

bitchkat ,

Then things will have to wait until the code is of sufficient quality to be accepted.

gravitas_deficiency , (edited )

Yeah I’m one of the “I only want to write this fucker once so I will make it as solid as I can” types… and my manager/team-lead/principal dev (all the same person - that’s a whole other story) is the “yolo send it” type.

We do not get on well. I’m probably going to switch teams or jobs soon.

MostlyBlindGamer , in Trying to understand JSON…
@MostlyBlindGamer@rblind.com avatar

Thanks for the transcription!

Surely Java can tell the difference between a key with a null value and the absence of that key, no?

I mean, you can set up your deserialization to handle nulls in different ways, but a string to object dictionary would capture this, right?

bleistift2 OP ,

Sure, Java can tell the difference. But that doesn’t mean that the guy writing the API cares whether or not he adds a key to the dictionary before yeeting it to the client.

agressivelyPassive ,

It can, but especially during serialization Java sometimes adds null references to null values.

That’s usually a mistake by the API designer and/or Java dev, but happens pretty often.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

That’s the thing though, isn’t it? The devs on either side are entering into a contract (the API) that addresses this issue, even if by omission. Whoever breaks the contract must rightfully be ejected into the stratosphere.

agressivelyPassive ,

That’s exactly not the thing, because nobody broke the contract, they simply interpret it differently in details.

Having a null reference is perfectly valid json, as long as it’s not explicitly prohibited. Null just says “nothing in here” and that’s exactly what an omission also communicates.

The difference is just whether you treat implicit and explicit non-existence differently. And neither interpretation is wrong per contract.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

I think we’re fully in agreement here: if the API doesn’t specify how to handle null values, that omission means they’re perfectly valid and expected.

Imagine a delivery company’s van exploding if somebody attempts to ship an empty box. That would be a very poorly built van.

masterspace ,

Null means I’m telling you it’s null.

Omission means it’s not there and I’m not telling you anything about it.

There is a world of difference between those two statements. It’s the difference between telling someone you’re single or just sitting there and saying nothing.

agressivelyPassive ,

Nope.

If there’s a clear definition that there can be something, implicit and explicit omission are equivalent. And that’s exactly the case we’re talking about here.

masterspace , (edited )

Sure, in a specific scenario where you decide they’re equivalent they are, congratulations. They’re not generally.

agressivelyPassive ,

Did you read the comments above?

You can’t just ignore context and proclaim some universal truth, which just happens to be your opinion.

docAvid ,

At the (SQL) database level, if you are using null in any sane way, it means “this value exists but is unknown”. Conflating that with “this value does not exist” is very dangerous. JavaScript, the closest thing there is to a reference implementation for json serialization, drops attributes set to undefined, but preserves null. You seem to be insisting that null only means “explicit omission”, but that isn’t the case. Null means a variety of subtly different things in different contexts. It’s perfectly fine to explicitly define null and missing as equivalent in any given protocol, but assuming it is not.

agressivelyPassive ,

Again, did you actually read the comments?

Is SQL an API contract using JSON? I hardly think so.

Java does not distinguish between null and non-existence within an API contract. Neither does Python. JS is the weird one here for having two different identifiers.

Why are you so hellbent on proving something universal that doesn’t apply for the case specified above? Seriously, you’re the “well, ackshually” meme in person. You are unable or unwilling to distinguish between abstract and concrete. And that makes you pretty bad engineers.

docAvid ,

If your SQL model has nulls, and you don’t have some clear way to conserve them throughout the data chain, including to the json schema in your API contract, you have a bug. That way to preserve them doesn’t have to be keeping nulls distinct from missing values in the json schema, but it’s certainly the most straightforward way.

The world has more than three languages, and the way Java and Python do things is not universally correct. I’m not up to date on either of them, but I’m also guessing that they both have multiple libraries for (de) serialization and for API contract validation, so I am not really convinced your claims are universal even within those languages.

I am not the other person you were talking to, I’ve only made one comment on this, so not really “hellbent”, friend.

Yes, I am pretty sure I read the comments, although you’re making me wonder if I’m missing one. What specific comment, what “case specified above” are you referring to? As far as I can see, you are the one trying to say that if a distinction between null and a non-existent attribute is not specified, it should universally be assumed to be meaningless and fine to drop null values. I don’t see any context that changes that. If you can point it out, specifically, I’ll be glad to reassess.

Saizaku ,

At the (SQL) database level, if you are using null in any sane way, it means “this value exists but is unknown”.

Null at the SQL means that the value isn’t there, idk where you’re getting that from. SQL doesn’t have anything like JS’s undefined, there’s no other way to represent a missing value in sql other than null (you could technically decide on certain values for certain types, like an empty string, but that’s not something SQL defines).

JackbyDev ,

I (think, at least) the point they’re making is that unless the API contract specifically differentiates between “present and null” and “absent” then there is no difference. (Specifically for field values.)

masterspace ,

The point I’m making is kind of the opposite, unless the contract explicitly states that they’re the same they should not be treated as the same, because at a fundamental level they are not the same thing even if Java wants to treat them as such.

Lysergid ,

Kinda, I guess we all can agree it’s more typical to deserialize into POJO where theres is no such thing as missing field. Otherwise why would you choose Java if you don’t use types. This great precondition for various stupid hacks to achieve „patching” resources, like blank strings or negative numbers for positive-only fields or even Optional as a field.

NigelFrobisher ,

You can always bind the JSON to a hashmap implementation, as that’s all JSON is anyway. It’s not pretty but it works.

bleistift2 , in Going over the rate limit

Speaking of rate limits: Github recently blocked me because I went over a ‘secondary rate limit’ by visiting the site for the first time in a month. Has anybody experienced this?

JoMiran , in Please stop
@JoMiran@lemmy.ml avatar

LMDE (Linux Mint Debian Edition) is a wonderful self-hosting platform.

AtariDump ,

Today I learned there’s a Debian edition of mint.

linuxmint.com/download_lmde.php

mox , (edited ) in Please stop

Tell me you’re an opinionated novice without telling me you’re an opinionated novice.

(edit:specificity)

deegeese , in Play stupid games, win stupid prize

Blocking someone from a hacking game because they tried to hack it is basically admitting defeat.

zalgotext ,

Nah, hackthebox and many other red team simulation type sites have strict rules of engagement. You’re there to solve a puzzle as defined by hackthebox, not get around the puzzle by hacking hackthebox.

deegeese ,

That’s not very “Kobayashi Maru” of them.

CookieOfFortune ,

I mean that just means you didn’t hack them well enough.

SnotFlickerman ,
@SnotFlickerman@lemmy.blahaj.zone avatar

Oh no, just like if you were actually hired to do a red team simulation for a business! They would have strict rules of engagement and certain systems would potentially be defined as off-limits.

How terrible of Hackthebox to *checks notes… promote industry standard Red Team practices.

Cornelius_Wangenheim ,

If a real world pentester tries to hack something out of scope, they also get banned. From society. To a prison cell.

BluesF ,

It’s called hackthebox not hackoutofthebox

tourist ,
@tourist@lemmy.world avatar

Is this like getting banned from an escape room because you brought (and used) a live grenade to solve the puzzle

(I think they have a strict no-grenades-from-home policy, usually)

suction ,

Getting caught means the hacker won? Are you a r?

BlastboomStrice , in Please stop
@BlastboomStrice@mander.xyz avatar

It is possible though to get newer versions using flathub or somethibg, right? (I know very little about linux, but I’m thinking of switching from win10 to debian next year.)

TechnicallyColors ,

For normal desktop users, yeah Debian Stable + Flatpaks is a winning combo for picking the software that you want to be cutting-edge and leaving the rest to rock-solid stability. Normally Linux distros keep a full ecosystem of packages that interop and depend on each other, but solutions like Flatpak have their own little microcosm of dependencies that can be used independently of the host distro. There are also Debian Backports for when you want native Debian packages that are more cutting-edge but still compiled to work with your older base system. Backports are not available for most packages but sometimes the important ones are available, like the Linux kernel itself. You can also try to compile your own backports, but you’ll be responsible for updating it.

Cube6392 ,
  1. No better time than the present
  2. Yes there are ways of acquiring the latest packages even on Debian stable. Usually I end up compiling that stuff myself
  3. If you’re at all unsure if you want to deal with Debian not pushing the latest and greatest updates you do have options such as running Debian Testing or MX Linux (which itself is based on Debian Testing)
BlastboomStrice ,
@BlastboomStrice@mander.xyz avatar
  1. No better time than the present

Look, I’m already trying (and kinda succedding) to avoid doing some hard tasks I have to do, don’t push me further into the rabbit hole.😆

Ugh, now I’m considering doing it in 2 weeks, what have you donee

MajorHavoc ,

Sweet. Welcome to the cult of Debian.

We (Debian users and contributors) are inevitable. Our quiet satisfied computing cannot be stopped, only delayed.

We should consider getting some fancy robes and a few club houses, though. The only thing that can make Debian better is cookies and tea.

Cube6392 ,

Sure thing. Just remember its better to do things you want to do rather than waiting for things to be perfect. Lord knows its something I need reminded of sometimes

bruhduh , in Please stop
@bruhduh@lemmy.world avatar
Land_Strider ,

Busta!

barkingspiders , in Please stop

I am a little biased because I’ve been using Debian professionally for many years now but we don’t deserve Debian. It is fantastically stable and reliable and makes an excellent platform for running your services off of. If you are at all interested in offering some time and energy to the open source community, consider adopting a Debian package!

A_Union_of_Kobolds ,

I’m thinking about a Linux laptop with FOSS software for my business actually, Lemmy’s relentless horde of pro-Linux propaganda has won me over

(OK I’ve always liked FOSS I’ve just never taken the jump)

qprimed ,

ONE OF US! ONE OF US!

but seriously, modern FOSS distros (yes, debian is modern, damnit!) are amazingly good. you have an exceptionally high probablility of switching and staying switched.

A_Union_of_Kobolds ,

I’m looking forward to it!

Side note: anyone got recommendations for business software? I’ve started browsing the FOSS community here for ideas but I’m not sure what QuickBooks alternatives exist

F04118F ,

A quick Google shows Quickbooks to be cloud-based accounting software. For FOSS accounting, GnuCash exists so you could try that (it can also run on Windows and macOS). However, it’s unlikely to have feature parity so if you like the added convenience that Quickbooks offers, see if you can use Quickbooks in a browser. Being cloud-based, they would probably build a browser version before building a Linux desktop app. If they don’t and you need to run a Windows desktop app on Linux, you can probably do this using Bottles (which uses Wine and Proton under the hood, the tech that enables the Steam Deck).

A_Union_of_Kobolds ,

I mean yeah, but specifically I’d like something built for Linux that’s good for just basic spreadsheet stuff. I’m an electrician so I mostly just need to track jobs and accounts.

F04118F ,

Most of (what we call) Linux OSes are formally GNU/Linux. GnuCash is as close as it gets to “made for Linux”. If you don’t want an accounting-specific application, but just generic spreadsheets, check out LibreOffice.

I highly recommend GnuCash for accounting though: a fellow board member cleaned up an org’s accounting by putting it all in GnuCash, where it was a bunch of error-prone Excel sheets before. That really made it easier to keep track and to do it right.

roguetrick ,

GnuCash

Huh, they’ve even got active development on an Android app. github.com/GnuCash-Pocket/gnucash-android?tab=rea…

mexicancartel ,

Yeah I installed the android app just for fun.(I don’t do accounting lol)

realbadat ,

Take a look at Apache OFBiz, Akounting, Frappe Books, and LedgerSMB.

fine_sandy_bottom ,

I’m an accountant.

The best accounting software will be the one your accountant uses.

When clients are on the same platform that I use internally everything just matches up and it’s beautiful and elegant and amazing.

When clients are using something else it just doesn’t fit our workflows and it’s just more of a fuck around, which of course the client gets charged for.

JoMiran ,
@JoMiran@lemmy.ml avatar
nexussapphire ,

That’s how I feel about arch, it’s not “stable” but the few issues I’ve had they typically have it fixed with an update within hours.

I do have to clarify when I switched to arch from windows my entire computer was brand new and practically no other distro booted or if it installed it dumped me to a black screen.

After running my server on archlinux with the stable kernel for 7 years I did install Debian on my new server. Zfs just required an older lts kernel than I could get on arch without a ton of hassle. I didn’t need it on my Mac mini with an external hard drive plugged in. From my experience it’s not very different to maintain compared to arch but it’s nice having built in automation instead of writing my own.

Man it’s weird using a system of what I can guess is a bunch of bash scripts on Debian to set things up compared to just using the tools built into and written for systemd.

dan , (edited )
@dan@upvote.au avatar

it’s not “stable”

“stable” in this case means that it doesn’t change often. Debian stable is called that because no major version changes are performed during the entire cycle of a release.

It doesn’t mean “stable” as in “never crashes”, although Debian is good at that too.

Arch is definitely not “stable” using that definition!

nexussapphire ,

Yeah, I know the definition. I knew someone would quote it verbatim, someone always does. I quoted it because it’s not the word I would use. I like scheduled or versioned releases better but someone always disagrees with me. As far as I’ve seen it’s a major/minor version release cycle anyway.

Bytemeister , in Yup that's how I got depressed

Stop, you’re scaring me.

Successful_Try543 , (edited ) in Please stop

I still remember this nice ‘feature’ of XScreenSaver.

However, as of 2016 Iceweasel is Firefox ESR again.

joshix , in Please stop
@joshix@fosspri.de avatar
Kolanaki , in Play stupid games, win stupid prize
@Kolanaki@yiffit.net avatar

you’re banned for doing something funny

As a funny person, this makes me sad. They should get a sense of humor.

ggppjj ,

As my father always said: you may be a funny person, but looks don’t count for everything.

CanadaPlus ,

I like that! I’m going to steal it.

ggppjj ,

He would’ve liked that. He was a real nice guy, always said I had a face for radio.

Zachariah , in Play stupid games, win stupid prize
@Zachariah@lemmy.world avatar

I hope it leads you on a bit before this reveal.

abbadon420 ,

That’s the honeypot

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines