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.

lemmy.world

entropicshart , to selfhosted in Recent upgrade to my PLEX home server
@entropicshart@lemmy.world avatar

What kind of patch cables are you using here?

doctorspike OP ,

They are “thin” monoprice patch cables. Corey at mactelecom uses them all over the place so I gave them a shot. They dont hold up to a “true” cat 6 spec but as long as they are short (like this, 6") they don’t attenuate the signal enough to be noticed.

Casmael , to memes in Dammit
Sebito , to programmerhumor in pointers are very eleganto
@Sebito@lemmy.ml avatar

int** int* interesting

skillissuer , to mildlyinfuriating in This news site is 60% Amazon ads.
lohrun ,
@lohrun@fediverse.boo avatar

Low key infuriating how accurate this experience is

gonzo0815 ,

The sides are missing ads and also the text needs to be interrupted with ads after every paragraph.

Also the ad that is blocking the text but has a tiny close button that is difficult to hit on mobile is missing.

At the end there should be previews of further articles which are, you guessed it, ads.

skillissuer , to mildlyinfuriating in This news site is 60% Amazon ads.

and then some sites have audacity to ask for turning off adblocker

MavTheHack , to programmerhumor in pointers are very eleganto
@MavTheHack@lemmy.fmhy.ml avatar

Wait we can have pointers to other pointers? Wouldn’t that be redundant?

h3ndrik ,

Not at all. In the picture above, the girl would be saying: “She knows where it is.” This concept is used often in real life and in programming.

AlmightySnoo OP ,
@AlmightySnoo@lemmy.world avatar

In CUDA, the corresponding malloc cannot return the pointer to the allocated memory as runtime CUDA functions all return error codes instead. So the only way to “return” the pointer then without a return statement is to have a pointer given to that function by address, which means that you’ll have a pointer-to-pointer among its arguments.

abraham_linksys ,

So it’s sort of like “proxying” through pointers to enforce memory isolation?

AlmightySnoo OP ,
@AlmightySnoo@lemmy.world avatar

I’m not entirely sure what you mean by memory isolation here, but the basic idea is that if you have a pointer to something then you know where it is located in memory and you can write in it, that’s the whole idea of passing by address in C.

Now pointers themselves are merely variables. Yes they have a special meaning, they “point” to something and you can dereference them with the * operator, but at the end of the day they’re still variables. They have a physical existence in memory or CPU registers, and their content is simply the address to which you want to point. Once you accept this, then the idea of the address of a pointer (ie the location of the variable you’re calling “pointer”, and not the address it contains) is not strange anymore and you can perfectly have a pointer-to-pointer in order to, among other things, pass pointers by address.

Iridium ,

that’s the whole idea of passing by address in C

Wait stop, so in other languages like C#, when you pass a variable into a function “by reference” is that just passing the pointer to the variable?

Have I been baited into using pointers my whole life?

pazukaza , (edited )

In C# it is different.

In C if I give you a pointer to a memory address, you can totally overwrite what is in that memory address, even write a new struct in there. So you’re getting a “real” writable memory address. You could even write a different type of structs and break the program. You could tweak specific bytes.

In languages like Java or C# you aren’t given a reference to the memory address but a reference to the object. You can only write to the object using it’s own interface (methods) but you can’t say “I’m going to totally overwrite this memory address with a new object”.

If you receive an object in a parameter, let’s say a “Person person” object and you do something like “person = new Person();” you didn’t really overwrite the memory address. The original person reference that was passed in the parameter is still intact. You can only modify it with something like “person.setName(…)”.

So, with real pointers you can do more stuff, but higher level languages don’t want you to do that because it breaks some of their principles for what “good programming” is. In this case they are protecting encapsulation. You shouldn’t be able to mess around with the memory contents of objects directly, only through their interfaces. Encapsulation is safer because objects should expose how to operate them safely via their interfaces.

olorin99 ,
@olorin99@kbin.social avatar

Yes passing "by reference" is essentially the same as "by pointer" but with some syntactical sugar to make it easier to work with.

gravitas_deficiency ,

Man, this is the type of interaction I used to love on Reddit, but haven’t seen in ages.

curioushom ,

Quick example in straight C would be a cell in a matrix. The first pointer points to the row and the second pointer points to the cell in that row. This is am over simplification.

MiddleKnight ,

Why would it be redundant? You can’t even get past the main function before dealing with a char**

IHeartBadCode ,
@IHeartBadCode@kbin.social avatar

char**

So that you can have an array of strings. It's useful to remember that in C arrays and pointers are exactly the same thing, just syntax sugar for however you want to look at it. There are a few exceptions where this isn't true however:

  1. Argument of the & operator
  2. Argument of sizeof
  3. C11 has alignof which decay is a no-no
  4. When it's a string literal of char[] or wide literal of wchar_t[], so like char str[] = "yo mama";

But int** is just an array of int*, which likewise int* can just be an array of int. In the picture here, we have int** anya that is an array of int* with a size of 1, int* anya that is an array of int with a size of 1, and then of course our int there being pointed to by int* anya.

ZILtoid1991 ,
@ZILtoid1991@kbin.social avatar
pazukaza ,

I guess this is beating a dead horse but you can have pointers to pointers for 2D arrays.

The first pointer tells you which coulm you’re on. The second pointer tells you which is the first object of each column. That way you can iterate the columns without loosing a reference to the current column you’re standing on.

agressivelyPassive , to programmerhumor in pointers are very eleganto

That’s actually a pretty good representation.

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

I think this graphic should be used on all CS courses from now on

Double_A , to fediverse in Search "Lemmy" on the play store and the official Reddit app shows up 6th lol
@Double_A@discuss.tchncs.de avatar

What’s Fedilab?

StarLuigi ,
@StarLuigi@lemmy.blahaj.zone avatar

Pretty sure it’s a universal app to access all kinds of fediverse apps, like mastodon, calckey, etc.

amiuhle ,

So it’s a browser?

Kushi ,

It’s a generic ActivityPub client.

wander1236 ,
@wander1236@sh.itjust.works avatar

It’s a proper app that can parse and follow fedi links internally, and has the native feel you can’t really get with a web app.

eco ,

The latest release added Lemmy support but it’s pretty basic. It just let’s you browse a specific instance as a timeline.

reddig33 , to selfhosted in Recent upgrade to my PLEX home server

Thinking about the heat that must put off.

doctorspike OP ,

Its about 200W. So about as much as a mid-range gaming PC while playing a 3D game. And that’s including all the networking devices and PoE delivery.

abbadon420 , to selfhosted in Recent upgrade to my PLEX home server
HiddenLayer5 , (edited ) to youshouldknow in YSK: Cats don't like their whiskers touching their food bowl. This is why they beg even if food is still left at the bottom.

A vet weighs in on this whole thing and goes over a study that was done on it: www.youtube.com/watch?v=pLrI0eprVr8

TL;DW it’s mostly marketing and fear mongering. Your cat doesn’t care and even with completely natural behaviors (like oh I don’t know, squeezing into prey burrows and clamping their muzzle around mice) they get their whiskers compressed all the time. Whiskers are touch receptors so the idea that they can’t be touched is kind of silly.

PipedLinkBot ,

Here is an alternative Piped link(s): piped.video/watch?v=pLrI0eprVr8

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

JesusTheCarpenter ,

I really like this bot.

Odo ,

It’s funny: The linked article up top briefly brings up that some vets question it, but then immediately turns around and acts like it’s a foregone conclusion.

Shialac ,

Yeah, cats are just assholes

Makussu , to selfhosted in Recent upgrade to my PLEX home server

Another question: do you know what you UPS is pulling? Recently had a really good offer on one, but denied because power here is really stable and i thought i can safe the watts.

doctorspike OP ,

to my knowledge the UPS draws less than 5W… (maybe just phantom power for the LCD and small onboard controller) although I haven’t measured it in isolation.

MaggiWuerze , to selfhosted in Recent upgrade to my PLEX home server

Why did you go for a Quadro instead of intel quicksync?

noja ,

He’s running an AMD cpu. No QuickSync.

doctorspike OP ,

yep, thats exactly right:) (and the Quadro was a work hand-me-down so the price of $0 was unbeatable)

MaggiWuerze ,

Yes, but he made that choice and I wondered why. As he now explained, he got the Quadro for free.

gmtom , to youshouldknow in YSK: Cats don't like their whiskers touching their food bowl. This is why they beg even if food is still left at the bottom.

No, whisker fatigue is mostly a myth. Like just put some thought into it for a moment, do cats care when their whisters touch stuff when they are lying down or sleeping? Do they care when they squeeze into a tight space or lay in a tiny box? Does your cat rub its face on anythingnand everything it gets the chance to? Then why would only thr bowl cause whisker fatigue?

Hazdaz , to mildlyinfuriating in This news site is 60% Amazon ads.

I bet on mobile it is even worse!

Using a web browser on your phone is almost completely useless these days what with how messed up the formatting is and how many endless ads there are. The most irritating thing is how a lot of news sites don’t even both including images of their news stories. Probably to save the bandwidth. I’ve noticed stories which referred to photos or drawings and none were visible on mobile. Of all media formats, one would think a web browser on a high resolution screen would be a great one to depict images. Nope. At least not on a lot of sites. They probably prefer to use that space for more ads, I think.

Cerothen ,

I actually just stayed using kiwi browser since it’s a chromium fork that supports plugins on Android. Ublock and some other choice extensions are going pretty well for me so far

entropicdrift ,
@entropicdrift@lemmy.sdf.org avatar

I use Firefox for Android with uBlock Origin and the ads don’t even download. Saves on bandwidth and makes the web usable.

Hazdaz ,

I might have to look into that, but even if the ads all went away, the formating for mobile sites is atrocious.

entropicdrift ,
@entropicdrift@lemmy.sdf.org avatar

No doubt. For a huge proportion of sites I just use the desktop version plus pinch to zoom

railsdev ,

Blocking ads at the DNS level works perfectly for me on iOS. I use a .mobileconfig to set up TLS DNS to my DNS server hosted on Fly.

Hazdaz ,

Some of those words mean something to me.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines