[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Subject
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]

[Catalog] [Archive]

File: 35476235.png (525 KB, 2076x1118)
525 KB
525 KB PNG
HOLY BEAUTIFUL
38 replies and 1 image omitted. Click here to view.
>>
>>107638208
Rust has really good type inference. Implicit casts are retarded and source of problems. You can use value.into() to cast from T to Some(T)
There is many cleaner ways you could write OP code.
>>
File: rz3o1yibnc511.png (52 KB, 639x724)
52 KB
52 KB PNG
>>107638321
Forgot pic
>>
>>107624959
> () {()){}}, }, }() }, (){}
>>
>>107638321
>>107638330
>Rust has really good type inference
>Proceeds to demonstrate Rust cannot figure out the most basic shit on its own.

There are literally no circumstances under which casting T to Some(T) would behave in an unexpected or problematic manner. The language is unergonomic garbage, and for some reason the creators refuse to fix it.

And no, the fact that JS has shitty implicit casts has more to do that it's an untyped language made in a week than implicit casts being shit in of themselves.
>>
>>107638704
Assign None to Option<Option<T>>. If we cast implicitly which None is it? Fucking retard

File: Firefox_logo,_2019.png (337 KB, 1200x1131)
337 KB
337 KB PNG
ITT we share helpful firefox user_prefs that make it better. I'll start.

user_pref("full-screen-api.transition-duration.enter", "0 0");
user_pref("full-screen-api.transition-duration.leave", "0 0");
user_pref("full-screen-api.warning.timeout", 0);

This removes the annoying banner saying press ESC to exit fullscreen every time you fullscreen a yt video.

user_pref("media.videocontrols.picture-in-picture.video-toggle.has-used", true);
user_pref("browser.engagement.downloads-button.has-used", true);

With this in your user.js before you open the browser it won't popup instructions on obvious features. I have a pretty big user.js based on betterfox that disables telemetry and toggles all the settings the way I like them so it's completely configured on install without doing anything, and then I've added a bunch of minor quality of life conveniences like these. Share yours anons.
25 replies and 4 images omitted. Click here to view.
>>
>>107637515
>browser.urlbar.trimURLs: false
I always have this one too. Same as file extensions being hidden in windows explorer. Heaven forbid a normie has to see what kind of file he's opening.
I didn't know about all the machine learning preferences. thanks, anon. Merry Christmas
>>
>>107634933
>with those prefs in your user.js before you open firefox
on fresh install, when you hover over the download button, picture in picture button, etc. it shows you a little blob of text and you have to dismiss them before they work normally. people probably don't notice but i've set up firefox dozens of times for people and the little annoyances add up
>>
show me how to make the vertical scroll larger in width
I tried a few things but couldn't do it
>>
>>107638797
>show me how to make the vertical scroll larger in width
like you want the scrollbar on the right of the screen to be fatter? definitely that would be css
>>
>>107638815
yes
I don't care much about the auto-hide thingy as well but I'd like it to be wider so I don't overuse the mouse scroll

File: incr.png (48 KB, 449x981)
48 KB
48 KB PNG
/dpt/ - Daily Programming Thread

Welcome to the Daily Programming Thread. What are you working on, /g/?
Previous thread: >>107575071
80 replies and 12 images omitted. Click here to view.
>>
>>107638446
following lifetime is what youre gonna need to ascertain what youre talking about
but instead of doing a autistic binary search you just go to the source of the problem bc thats what your tools give you
if you use them, that is
>>
>>107638446
you want something truly fucking autistic?
more fucking autistic than any autist could think of:
fukken normal distribution-based estimation of the errors that are gonna be found in a codebase

autists cant even approach applied sciences, stats in this case
thats where you see how they fall flat on their fucking faces
an autist CANNOT compete with a polymath
i can be much much more autistic than you
but without any of the limitations

youre just to used to talk with normgroid average retards
>>
>>107638306
Prefixes (a sort of Hungarian prefix notation, part of a coding standard)

kp = const pointer
c = char
>>
>>107638602
>kp
>(k)constant pointer
mathfags were a mistake
>>
>>107638340
Its crazy how helpful this post ended up being. Thanks anon, i found and eradicated the issue!

File: orb.jpg (138 KB, 800x600)
138 KB
138 KB JPG
>Read the sticky: >>105076684

>GNU/Linux questions >>>/g/fglt
>Windows questions >>>/g/fwt
>PC building? >>>/g/pcbg
>Programming questions >>>/g/dpt
>Obsolete laptops >>>/g/tpg
>Cheap electronics >>>/g/csg
>Server questions >>>/g/hsg
>Buying headphones >>>/g/hpg
>How to find/activate any version of Windows?
https://rentry.org/installwindows

Previous: >>107567084
250 replies and 32 images omitted. Click here to view.
>>
are there any soundbars under $80 worth picking up? or am I better off getting speakers for my tv? I only ask cause my tv is starting to make crackling noises and I dont even have the volume or any settings maxed out
>>
>>107638115
>>107638517
I see, thanks for your patience.
>>
File: 1400013784578.jpg (17 KB, 320x240)
17 KB
17 KB JPG
>drag a window around on 1600p/165hz laptop screen
>perfectly smooth
>do the same with laptop hooked up to a 1080p/120hz screen
>choppy and not smooth

Why would this be the case? I've tried this with my laptop screen turned off and over usb-c/hdmi. The screen works fine too.
>>
>>107635767
>is there X adblock that works
If it implements a user-customizable filter list then yes, although i'm out of the loop on the new manifest shit
>>
Any good manga reader programs for PC?

Previous Thread: >>107597441

>Links:
>DALL-E 3
https://www.bing.com/images/create
https://designer.microsoft.com/image-creator
>4o
https://chatgpt.com/
https://sora.chatgpt.com
https://copilot.microsoft.com/
>Imagen 4 and Nano Banana (Pro)
https://gemini.google.com/app
https://labs.google/fx/tools/image-fx
https://labs.google/fx/tools/whisk
https://aistudio.google.com/prompts/new_image

Comment too long. Click here to view the full text.
123 replies and 103 images omitted. Click here to view.
>>
>>107638370
No reference and the bizarre thing is that actually my initial prompt, generated by Gemini 3 Pro, was more "off" in terms of style, probably because it was too descriptive; it worked better after simplifying it a bit. That's certainly something to keep in mind, in general.
> Anime screenshot, art style of Kill La Kill, character design by Sushio, animation style of Studio Trigger, Hiroyuki Imaishi direction. Slight chromatic aberration, film grain, 4k resolution.
There's still quite a bit of randomness, I'd try running the prompt at least two, three times... In this context it loves to turn them into a MakoxRyuko duo.
>>107638414
On lmarena it was a generic error, not the usual TOS violation. But it happened even on flowith, which specifically said that I triggered the model's filter. I use actual ages and whereas usually they are 18 (wolfie) and 25 (blondie), I reduced and approximated that to 13 and 18 for the school thing, but the prompt was too romantic (14, 15, etc. didn't work either). In other contexts it works, I made and shared one inspired by a similar concept recently
>>
>>107638499
Guess it at least somewhat knows some studios styles, I remember trying a couple and it didn't do shit so I gave up.
>>
File: 1741541458752996.gif (3.36 MB, 400x400)
3.36 MB
3.36 MB GIF
Uhh grok is generating cunny content
>>
>>107638681
Is NSFW available only paid tier? Any trial scumming methods for it?
>>

Is it worth learning raylib and c++ if I want to make a voxel game like minecraft?
10 replies omitted. Click here to view.
>>
>>107634115
just learn assembly instead.
>>
>>107634988
https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors
>>
>>107638390
https://open.umn.edu/opentextbooks/textbooks/x86-64-assembly-language-programming-with-ubuntu
>>
>>107638162
Honestly, it wouldn't be terrible if they didn't shat the bed with minetest (the game).
Renaming the engine "Luanti" and making a (well deserved) cleanup of "Minetest" would have been the best.
But no, they want their engine to have glory.
They forgot that everything it was good at was minecraft clone and free mods.
You already have "mineclonia" and such, so naming the engine "freecraft" wouldn't have been a good idea and would have further maintained the confusion.
Droping minetest is what is bad imho.
>>
>>107634115
clueless tranimepost == instant hide
i wanted you to know this

i also want you to know that youre better off going either lower level than fucking raylib, as in: opengl/vulkan directly
or just give up and try with younity
youre still gonna try raylib bc youre autistic though

File: Touch starved.jpg (171 KB, 1246x1129)
171 KB
171 KB JPG
Touch starved edition

previous: >>107600533

READ THE (temp)WIKI! & help by contributing:
https://igwiki.lyci.de/wiki/Home_server

/hsg/ is about learning and expanding your horizons. Know all about NAS? Learn virtualization. Spun up some VMs? Learn about networking by standing up a OPNsense/PFsense box and configuring some VLANs. There's always more to learn and chances to grow. Think you’re god-tier already? Setup OpenStack and report back.

>What software should I run?
Install Gentoo. Or whatever flavor of *nix is best for the job or most comfy for you. Jellyfin/Emby/Plex to replace Netflix, Nextcloud to replace Googlel, Ampache/Navidrome to replace Spotify, the list goes on. Look at the awesome self-hosted list and ask.

>Why should I have a home server?
De-botnet your life. Learn something new. Serving applications to yourself, your family, and your frens feels good. Put your tech skills to good use for yourself and those close to you. Store their data with proper availability redundancy and backups and serve it back to them with a /comfy/ easy to use interface.


Comment too long. Click here to view the full text.
264 replies and 58 images omitted. Click here to view.
>>
>>107637162
Looking at 22TB drives, they've got a 3 year warranty and cost £130 less than a WD my book on amazon (although I haven't factored in shipping yet). Shucked drives also won't have any warranty, new or not.
>>
>>107637298
>mix of slight sour stale sweat, house dust and bottom shelf convenience store alcohol
Just throw her in a bath.
>>
>>107637298
>uses server chassis
>doesnt use a server rack
I don't know why but I like this a lot. It's looks more "home" lab than a homelab with a server rack. It's really cool to see people build a custom rack with wood or whatever they have available. I don't have space for a server rack in my room plus I think they're ugly. I settled with tower cases instead but at one point I was contemplating building a wooden shelf if I get server cases.
>>
>>107638375
Noo why'd you ruin it
>>107638555
Ikea storage shelf is pretty good for this and in case I want to rack mount them at some point I'll have cases ready too
>>
>>107637298
does house dust smell ...?
i have a lot of dust in my 1900's farm house. it doesn't go away.

File: maxresdefault.jpg (76 KB, 1280x720)
76 KB
76 KB JPG
React Compiler edition.

>Free beginner resources to get started with HTML, CSS and JS
https://developer.mozilla.org/en-US/docs/Learn - MDN is your best friend for fundamentals
https://web.dev/learn/ - Guides by Google, you can also learn concepts like Accessibility, Responsive Design etc
https://eloquentjavascript.net/Eloquent_JavaScript.pdf - A modern introduction to JavaScript
https://javascript.info/ - Quite a good JS tutorial
https://flukeout.github.io/ - Learn CSS selectors in no time
https://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex and grid in CSS

>Resources for backend languages
https://nodejs.org/en/learn/getting-started/introduction-to-nodejs - An intro to Node.js
https://www.phptutorial.net - A PHP tutorial
https://dev.java/learn/ - A Java tutorial
https://rentry.org/htbby - Links for Python and Go

Comment too long. Click here to view the full text.
32 replies and 2 images omitted. Click here to view.
>>
File: .png (162 KB, 1103x1110)
162 KB
162 KB PNG
made my job much more comfy :^)
>>
File: 1762538471694644.jpg (18 KB, 250x250)
18 KB
18 KB JPG
>>107638359
>PHP
>in current year
>not a meme language
>>
Is it over for me if I want to finally learn to properly code and become a junior webdev?

I've procrastinated on properly learning Javascript for a few years now and I've finally sat down and been making projects in Javascript and feel pretty confident that I am on the right level to start learning React. The programmer guys I know are saying webdev is dead and that I should've done it way earlier. Is it really that bad?
>>
>>107638664
PHP is extremely most well optimized and battle-tested for the past 30 years, and modern PHP is a joy to code in too, have fun paying 10x for your hosting fees because you want to use a FOTM meme-language as your backend to host static html files.
>>
>>107638683
>I've procrastinated on properly learning Javascript for a few years now and I've finally sat down and been making projects in Javascript and feel pretty confident that I am on the right level to start learning React. The programmer guys I know are saying webdev is dead and that I should've done it way earlier. Is it really that bad?
If you know Javascript, just learn Node.js and make a ChatGPT-API wrapper and tell boomers you're experienced with AI and LLMs and they'll get you to work on their shitty website's AI chatbox

Embarrassing
76 replies and 14 images omitted. Click here to view.
>>
>>107635876
the most hysterical thing about micro(penis)soft turning windows into a react native app is that they dont even have their own webbrowser
>>
>>107633860
That literally doesn't make sense. What the fuck is he talking about? If you only know Java you wouldn't write an OS in it unless it was for theoretical purposes.
>>
>>107638146
He would
100% would
>>
>>107637277
The modern internet rewards attention and a lot of people are just trolls and rage baiters saying whatever they can to piss you off. On platforms like X you literally get paid to rage bait people. The rest are just actual shills and bots being deployed to create a pro-AI narrative because these companies are trillions of dollars in the hole and they need you to love AI so they can one day charge you $50/month to generate ghibli memes and make a return on their investment.
>>
File: 1765831049666311.jpg (463 KB, 1920x1080)
463 KB
463 KB JPG
>>107634366
Come home.

File: 1746060522845791.png (594 KB, 714x456)
594 KB
594 KB PNG
Is it worth getting into 3d printing?
it looks like a cool hobby but I don't know if people just forget about it after playing around for a month
36 replies and 7 images omitted. Click here to view.
>>
>>107633798
lmaoing
>>
>>107634152
>syntax error question
Am i supposed to understand the full extent of your request?
>>
File: 1735184355330449.png (607 KB, 1580x790)
607 KB
607 KB PNG
Anyone got a list of useful beginner friendly stuff to print?
>>
>>107638262
in the old days and with cheap printers it was necessary to do a lot of calibration prints and also tools, parts, and accessories for the printer, but modern printers don't need that shit. Print whatever you want.

>>107635635
>>107635279
Finer nozzle, slower print speed, better temperature control, and laying out the parts better, making sure the drive belts aren't slipping. Being aware of the layer direction is really important in general. I think really high end printers might also have some kind of heat polishing capabilities. Sanding works too. Heat polishing should, but I've never been able to do it manually without causing damage to parts.

>>107633633
The panic over 3d printed firearms doesn't make any sense to anyone who has ever 3d printed anything. People think it's
>push button
>get fully finished and assembled item in seconds
but it isn't and can never be that. Someone with a lathe and a drill press could also make firearms, but there is no moral panic or calls for regulation over those kinds of machines.
>>
>>107638587
>The panic over 3d printed firearms doesn't make any sense to anyone who has ever 3d printed anything. People think it's
Totally agree. I mean as i wrote, these FGC-9 and others are pretty good these days, but you need a lot of other stuff to be done to make it work. High pressure barrels are needed and you have to do the rifling via electro erosion and many other things.

A lathe, a manual milling machine and some tools are way better to produce a working gun and as you said, no one cares about limiting or censoring lathes and milling machines.

If people absolutely want to build firearms, they will do it. No matter what. It's like with alcohol. We all know how the prohibition worked in the US. lol

126 replies and 33 images omitted. Click here to view.
>>
File: 1759663936047.png (730 KB, 1898x2048)
730 KB
730 KB PNG
Any day now.
>>
>>107632796
Ask it to generate a dinosaur with 500 teeth.
>>
>>107635312
>when AI has now irreversibly changed engineering pipelines at EVERY major company
I work in a fortune 500 company (chemical engineering) and AI has done nothing for us but waste money.
>>
Friendly reminder that you either start consooming ai services right now or you'll end up paying much more when shit collapses and your tax money has to bail them out.
>>
File: screenshot.jpg (253 KB, 925x1503)
253 KB
253 KB JPG

File: deb.jpg (17 KB, 700x438)
17 KB
17 KB JPG
is debian beginner friendly?
3 replies omitted. Click here to view.
>>
>>107638177
it doesn't hold your hand like ubuntu or mint simply because its more minimal.
I've just setup Debian KDE on my HTPC. I think simpler tasks like this or running headless as a server are mainly where it shines.
I run Fedora on my gaming laptop for better package support.
>>
>>107638177
It's probably one of the best options if you are running something not cutting edge new and just want everything to just work and stay stable. Not 100% beginner friendly but I also wouldn't have any problem suggesting it to a beginner.
>>
File: 1737625263951848.png (518 KB, 1920x1080)
518 KB
518 KB PNG
>>107638177
Just install LMDE 7 gigi. Its the latest debian but even more noobfriendly.
>>
>>107638177
And even if not, beginners could just use LMDE instead, which is easy mode Debian
>>
>>107638245
wtf i didn't know debian was this based i love debian now

A complete piece of shit
125 replies and 19 images omitted. Click here to view.
>>
>>107627721
>decent
Let's not go overboard now.
>>
File: giphy.gif (352 KB, 480x288)
352 KB
352 KB GIF
Chance dev says that he will post an update to support the new empty square captcha later today.

We keep winning, Chancechads!
>>
>>107635059
Buy an Ad.
>>
Test
>>
>>107604558
thanks for showing me a superior viewer. topkek. just switched to chance. holy fuck is it good

File: FL Studio GOD.jpg (61 KB, 650x488)
61 KB
61 KB JPG
>/g/ makes an 18th album
Theme: Outer Space Music
Title: [Accepting suggestions]
Deadline: 7th of January [revised from late December]

>/g/ makes a 19th album
Theme: [Accepting suggestions]

>Song submission rules/guidelines
Upload the file somewhere, preferably in a lossless format, and post the link here. If you want to update your track, make a new post.
Include the song title in the post, and make it clear that your song is a submission for the album.
Optionally you may include cover art for your track, but please confirm that the image in your post is the cover art or it won't be included. You may not use your real artist name.
Songs that contain anything against YouTube's policies won't be uploaded on YT, but will still be added to the album.
By default, tracks will be normalised to -14 LUFS (integrated loudness) in the release. You may specify a lower loudness for your track.
Use of AI is banned. This includes AI generated stems, samples, and effects. "AI" includes all neural network-based models and not hard-coded automation/procedural generation. You are allowed to ask an LLM about music-related questions, but asking it to give you musical ideas (eg. generating a chord progression) is already a no-no.

Comment too long. Click here to view the full text.
4 replies omitted. Click here to view.
>>
>>107634541
Is that a yes?
>>
File: remina.jpg (350 KB, 994x783)
350 KB
350 KB JPG
second wip
prepare to get licked
https://voca.ro/1lZkiqirV1tK
>>
>>107631681
why would you get a compiter with no active cooling
>>
>>107636141
Because they have no active cooling.
>>

I keep telling myself faggot you are a grown man, earning big salary, be a man and not a kid anymore and buy a good respectable automatic watch
but this thing that looks like a kids toy I have on my wrist is pure perfection of engineering and utility and usability
109 replies and 29 images omitted. Click here to view.
>>
File: IMG_20251117_164437.jpg (3.95 MB, 2257x2897)
3.95 MB
3.95 MB JPG
>>107627777
God I love this watch
>>
>>107638369
Sick apple watch screensaver bro
>>
File: 20250724_170008(1).jpg (1.13 MB, 2400x2866)
1.13 MB
1.13 MB JPG
>>
still using my 13-ish year old automatic CJIABA. the crown is a bit temperamental but it still works fine. probably just needs to be oiled or something.
>>
I want a solar (or even nuclear) smartwatch with infinite battery, but we're not there yet. No, I'm not going to charge my smartwatch every night.


[Advertise on 4chan]

Delete Post: [File Only] Style:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.