Beep Boop Bip
[Return] [Entire Thread] [Last 50 posts] [First 100 posts]
Posting mode: Reply
Subject   (reply to 165)
BB Code
File URL
Embed   Help
Password  (for post and file deletion)
  • Supported file types are: BMP, C, CPP, CSS, EPUB, FLAC, FLV, GIF, JPG, OGG, PDF, PNG, PSD, RAR, TORRENT, TXT, WEBM, ZIP
  • Maximum file size allowed is 10000 KB.
  • Images greater than 260x260 pixels will be thumbnailed.
  • Currently 904 unique user posts.
  • board catalog

File 129592276815.jpg - (141.99KB , 716x742 , millenium_tan.jpg )
165 No. 165 [Edit]
Need help with computers? Post your questions here.

ME-tan will do her best to help (with the help of other users, ofc).
354 posts omitted. Last 50 shown. Expand all images
>> No. 2489 [Edit]
I run a local instance myself, and yeah, it's pretty easy to set up and get going.
>> No. 2490 [Edit]
I think there's the inbuilt "git-http-backend" which you can use in combination with Apache or basically anything that supports CGI scripts in order to just serve a git repo.

If you want to go even more basic, theoretically all you need is just to make the .git folder readable. But I don't know if git clients just support that off the bat or if they need something else. I found which is probably the most lightweight example of how to do this, since it relies only on Apache serving. If you only need to make the git repo read-only instead of allowing writes, then you can probably skip the webdav part but I haven't seen any examples of whether this works.
>> No. 2491 [Edit]
Don't really know what that is or how to use it.

I'm using nginx. On top of that I'm hosting with a window's laptop. So every tutorial is a bit complicated because of that.
>> No. 2492 [Edit]
It should in principle work with nginx as well since this is table-stakes functionality for webservers, but I guess you'd have to figure out the exact config yourself. But yeah since you already got gitea working that's probably a more "production quality" way, my comment was just to show that there are technically (poorly documented) ways to do it with zero dependencies besides the webserver itself.

Post edited on 13th Nov 2021, 9:52pm
>> No. 2505 [Edit]
File 16380327954.png - (375.34KB , 455x599 , guess who hard.png )
So, one of these days I kinda had a rage fit and hammer punched my notebook. Immediately after, the sound became very sloppy. I don't know the exact word, but it's bad, the sound comes out but with some noise together. If I buy speakers and attach them to the notebook will the sound be fixed?
>> No. 2506 [Edit]
Use earbuds.
>> No. 2507 [Edit]
Will speakers not work? I don't like earbuds because they give me tinnitus.
>> No. 2508 [Edit]
Yeah most likely? Unless you damaged the DAC itself (unlikely though) in which case you'd have to use a USB or bluetooth speaker (or hdmi).
>> No. 2510 [Edit]
You should consider yourself lucky that's all that went bad. Sounds like you might have ruptured the speaker cones. Replacing the speakers "should" work, assuming you mean ordering a part, opening the laptop, and replacing the old ones.
Like the other anon mentioned, an alternative could be external speakers. I used to use a USB sound bar that would clip onto the top of my laptop. The audio quality was much better than the laptop speakers.
>> No. 2521 [Edit]
I think I'm going to buy some external speakers soon. Is there anything special I should look out for when buying them? A cursory research showed me the design of speakers has changed, it seems most speakers now are small squares with a circle in the middle. Is this more efficient or something? Because I like the old designs better.
Today I was watching a video on Youtube and the audio suddenly vanished, no sound whatsoever. It's weird because I have not had any rage fits since the aforementioned post, having refrained from such violence thus far.
>> No. 2522 [Edit]
Sounds like that's just an purely visual difference.
>> No. 2530 [Edit]
>Is this more efficient or something
Better aerodynamics compared to the older, more boxy designs.
>> No. 2562 [Edit]
File 164112232965.jpg - (124.13KB , 1200x775 , 662a96a8575cfb4bb4d0f5ced4c1bb9e.jpg )
I'm been messing around in openbox and void linux on a vm. I want to use this theme

I got obconf to work with it, but for the life of me can't figure out how to get lxappearance to. It doesn't recognize the icons and I just don't know what the fuck do and there's no clear information anywhere and I want to rip eye balls out.

It's such an annoying clusterfucker. Gtk is an annoying clusterfuck. ~/.themes? go fuck yourself. There should be a gtk folder where all the god damn themes go, not some miscellaneous shit you have to make yourself in your home directory. Config files and folders all over the place with no standardization is an annoying clusterfuck. Wouldn't be such a problem if the defaults weren't so fucking ugly.
>> No. 2563 [Edit]
okay, there are no icons. my mistake. I'd have to find a universal theme that has stuff for everything. will probably switch to lxqt.
>> No. 2599 [Edit]
File 164538575361.jpg - (663.07KB , 1125x1610 , e2da379f7a07589053555db38597f564.jpg )
What do I need to learn to make a raster image editor?

All of the popular ones seem to be written in C++ of C. Is that necessary? Is a gui framework like qt necessary? Where do I even start? Should I try reverse engineering gimp?
>> No. 2600 [Edit]
You can look at the source for JsPaint, or any of the paint clones. What platform do you want to run it on? You'll probably need some gui framework but you don't need much, you can use something like ImGui which is very lightweight and simple. I'm not too sure if there are any fancy tricks needed to represent the pixel buffer (e.g. doing a text editor actually turns out to be non-trivial since using text arrays quickly runs into issues when you need to make non-linear edits as the cursor jumps around), but my first guess would be to just do a 2D array of pixels which you render on each frame. Pencil tool would be easy to implement here. Implementing line tool properly is actually non-trivial because you have to effectively implement error propagation like dithering. Look at Bresenham's Algorithm for this. Bucket tool is just flood fill.

More challenging is to implement antialiasing and dithering for images.
>> No. 2601 [Edit]
Thanks for the advice.

>What platform do you want to run it on?
>> No. 2602 [Edit]
I think you can still use imgui since it just needs an opengl backend and it provides all the widgets. Won't look very native though, but it's good enough. Otherwise your options are either web-based, or you use something like Qt.
>> No. 2606 [Edit]
File 164581179480.gif - (54.90KB , 640x800 , 7a324f638b62cb88d5458327cdafa9ff.gif )
2606 (a textboard) describes how it stores messages in its technical stack like this
>There's no database, messages are stored as Scheme objects in plain files

Could this be done in any language using JSON, or something like that, instead of "Scheme objects"? Would there be any benefit to this over using a database?
>> No. 2608 [Edit]
Tohno-chan WAF is blocking my post again for unknown reason (maybe the sql keyword?), so I had to rot13 the post to get it to go through. Sorry for the inconvenience:

Rot13'd text below:

Terng dhrfgvba. Lrf gurer'f abguvat gbb fcrpvny nobhg fpurzr urer, rkprcg cbffvoyl gur snpg gung frevnyvmvat n fpurzr bowrpg vagb n svyr vf rnfvre guna fnl frevnyvmvat n Wnin bowrpg. Ohg shaqnzragnyyl gung'f abg n ovt uheqyr fvapr lbh pna nyjnlf qrsvar lbhe bja frevnyvmngvba fpurzn (r.t. hfr n cebgbohs be fbzrguvat).

Zber traenyyl gurer ner 2 glcrf bs jnlf lbh pna unir "cynva-grkg" "qngnonfrf" (qo va dhbgrf fvapr vg'f abg npghnyyl n qo). Gur svefg vf jung'f xabja nf n syng-svyr nccebnpu jurer lbh onfvpnyyl whfg unir n fvatyr svyr jvgu nyy lbhe erpbeqf va vg (guvax bs n pfi svyr, sbe vafgnapr, be zber traenyyl n erpbeqvb-glcr guvat). Guvf jbexf jryy sbe ongpu-ernqf naq ongpu-jevgrf ohg gur qbjafvqr vf gurer'f ab vaqrk fb lbh pna'g ybbxhc neovgenel qngn. Vs nyy lbhe erpbeqf ner gur fnzr fvmr gura V fhccbfr lbh pna sfrrx gb n tvira ebj ahzore, ohg gung'f nobhg vg.

Gur frpbaq nccebnpu vf gb vzcyrzrag n xrl-inyhr fgber jurer lbhe xrl vf n svyr cngu. Guvf vf xvaq bs yvxr na bowrpg fgber, naq vf n cerggl hfrshy cnggrea ba vgf bja jura fpnyrq hc gb qvfgevohgrq flfgrzf (r.t. Nznmba F3), ohg sbe n fvzcyr ybpny hfrpnfr lbh pna whfg hfr gur svyrflfgrz nf gur onpxvat zrqvhz.

Ubjrire ubarfgyl V jbhyq abg obgure jvgu rvgure bs gurfr rira sbe fvzcyr cebgblcrf. Fdyvgr vf n fvatyr svyr vapyhqr, naq tvirf lbh ebohfg cresbeznapr, vaqrkvat, naq vf onfvpnyyl n zvenpyr va n fvatyr vapyhqr. Rira vs lbh qba'g jnag na ragver fdy fpurzn, whfg hfr fdyvgr nf n xrl-inyhr fgber jurer lbhe inyhr vf na neovgenel olgr oybo. Gur ernbfa V fnl guvf vf gung fdyvgr qrif unir gnxra pner bs rafhevat gurl hfr gur cebcre ybj-yriry svyr ncvf pbeerpgyl. R.t. vs lbh ebyy lbhe bja qo hfvat syng-svyrf, jvyy lbh or noyr gb vzcyrzrag ngbzvp genafnpgvbaf? Ner lbhe jevgrf wbheanyyrq gb cerirag ntnvafg pbeehcgvba? (Lbh zvtug guvax gung gur svyrflfgrz "gnxrf pner" bs guvf sbe lbh, ohg gung'f bayl vs lbh erzrzore gb hfr gur cebcre ncvf sbe sflap rgp.) Pna lbhe ubzr-tebja QO unaqyr zhygvcyr ernqref/zhygvcyr jevgrf (irel vzcbegnag sbe n jrofvgr hfvat gur genqvgvbany "fcnja n cebprff cre erdhrfg" cnenqvtz)? Naq vs V erpnyy hfvat fdyvgr jvyy tvir lbh orggre fcnpr-rssvpvrapl ba qvfx nf jryy nf orggre yngrapl naq guebhtuchg guna hfvat gur svyrflfgrz qverpgyl [1]

[1] uggcf://
>> No. 2609 [Edit]
Thanks. For others' convenience
>> No. 2610 [Edit]
>Can your home-grown DB handle multiple readers/multiple writes
Not sure, but I think sqlite handles this by only allowing one write operation to happen at any given time.
>> No. 2611 [Edit]
>Not sure, but I think sqlite handles this by only allowing one write operation to happen at any given time.
Correct, I meant more of the fact that you'd have to implement the locking and synchronization mechanisms yourself.
>> No. 2629 [Edit]
File 164677868257.png - (1.24MB , 868x1228 , blue sky and a glass of.png )
I bought the speakers but they sucked. I tested them and another model at the store. The first pair of speakers was so bad I can't even imagine someone would pay for that shit. The other model being sold sounded better, but the store was very noisy so I couldn't hear as clearly as I wanted. When I got home and plugged them, they worked, but the sound was bad and unsatisfactory. It sounded flat and soulless. I used them for a few minutes, but I disliked them and won't use them again. Could you tell me what is your USB sound bar model? I'm not even an audiophile or anything, it just sounded very flat. The audio I got from the internal speakers before the malfunctions was miles better. I'm using a k45a and the only problem I have ever had with it is this audio thing. I don't have the money or the desire to replace it with a newer model.
>> No. 2648 [Edit]
File 164773723033.jpg - (127.17KB , 480x640 , 13e60461a4e97641ab0dd7c7801d7ea4.jpg )
Bit of an update to this. I'm now trying to get into gui programming, in a general sense. I would like to use golang. On somebody's suggestion, I'm looking into nuklear, a small c library which has go bindings. I've heard this is a "better" approach than qt, cause it's smaller, and qt projects have to mostly revolve around qt itself, which is kind of what happens with large frameworks.

Problem is, the documentation makes no sense to me. This is the first time I'm doing any sort of gui programming, and it's like an alien language. It's totally unapproachable.
>Initializes a nk_context struct with a default standard library allocator.
I don't know what a "standard library allocator" is. I don't even know what an allocator is.
>Heading enumeration from nk/nuklear.h:469
What the hell is "heading enumeration" and why should I care about it? How does anybody get into this? Is it supposed to be mind numbingly difficult?
>> No. 2649 [Edit]
>I don't know what a "standard library allocator" is. I don't even know what an allocator is.
I think standard library allocator refers to whatever malloc you're using. In 99% of cases it's whatever your libc provides but in some special cases it might be jemalloc or tcmalloc. So I think basically all it says is that it does the equivalent of `nk_context * ptr = new nk_context{};`

>"heading enumeration"
I think that that code snippet shows the definition of the "heading" enum?

Blame the go documentation in this case. And using a library via "bindings" always presents an impedance mismatch since in this case it's trying to shoehorn C-isms in a non-C language. You'd be better off just doing it in c++ directly and avoiding the extra layer.
>> No. 2650 [Edit]
I think I need to learn C. So many things are either written in C or depend on things written in C. It appears to be the gateway into "real stuff".

Post edited on 19th Mar 2022, 6:58pm
>> No. 2651 [Edit]
File Effective_C_-_An_introduction_to_professional_C_pr.pdf - (5.89MB , Effective C - An introduction to professional C pr.pdf )

Have at it, tiger.
>> No. 2652 [Edit]
>> No. 2653 [Edit]
You can also try this for simple GUIs:
>> No. 2654 [Edit]
That's a language port of something written in c++(which I also don't know), c and python, and it doesn't have its own documentation. I don't care how simple it may be, I don't want to reverse engineer it.

>> No. 2655 [Edit]
Somebody sent these requests to my server. What do they mean? Have I been compromised?
>> No. 2656 [Edit]
It's just skids probing the whole internet with their pentesting tools. Happens to everyone.
>> No. 2657 [Edit]
Someone ran an automated web scanner on your site that makes use of nmap. Don't see anything concerning there.
>> No. 2658 [Edit]
I don't now shit about cyber security, so for all I know there is some vulnerability. The server runs on WSL, and nginx. There's one POST form on the site.
>> No. 2700 [Edit]
File 165238223523.jpg - (95.11KB , 836x1024 , ancient.jpg )
Anybody knows a software that's like excel but great? Especially one where I can remove any extra non used columns and lines, and use colours.
>> No. 2701 [Edit]
Maybe I don't understand exactly what you want to do but you can hide or remove columns and lines and have different colors for both and text on Excel. Anyway I use OpenOffice, it does those things too.
>> No. 2702 [Edit]
>but you can hide or remove columns and lines and have different colors for both and text
>> No. 2724 [Edit]
I want to use the sheets to record words with meanings and sources for new languages.
>> No. 2725 [Edit]
I think both Excel and Libre Office can do that. It has been a long time since I used either, but I think you can change the amount colums/rows by right clicking on the margin. To change the colors, you need to select the whole colum/row and just change the color.
>> No. 2767 [Edit]
File 165436265666.jpg - (283.16KB , 1692x2048 , __original_drawn_by_1ssakawaguchi__9deec5ecbfd58a5.jpg )
I want to know how exactly a site can get banned from being accessed inside an institution. If it's a university do they implement some kind of pre-set database of "indecent" websites? As if from a compiled database they just copy pasted. Or do they have to add every site manually when they want to ban? I'm asking this because I loved browsing TC during university, with the endless lectures and all that. Now yesterday I tried accessing the website and got a 403 error, this site cannot be accessed "reason pornography". I know I can the onion network to get away with this i guess, but do you think someone noticed traffic from tohno-chan, decided to check it out and thought it was a porn site? Or just some automatic update on the databases they have.
>> No. 2768 [Edit]
There are companies which sell pre-maintained filter sets. But institutions can also try building them themselves. When on an untrusted network, always use a VPN - unless you're not afraid of being tracked. Remember - tohno-chan does not use HTTPS, so anything you upload and download can be seen by the network's administrators.
>> No. 2769 [Edit]
I see. I only download or upload files in my home. In this case you think they noticed "abnormal" traffic and tagged it as porn? I think TC is too unknown to get included in some set like that.
>> No. 2770 [Edit]
Any unencrypted connection can be scanned automatically. I remember school filters in the mid-00s looking for words like "sex" and "porn" in the HTML cleartext.
I've also seen people's personal websites get included in such sets, and TC is certainly bigger than those.
>> No. 2771 [Edit]
>I want to know how exactly a site can get banned from being accessed inside an institution
If you mean how it's technically possible, then it ranges from very easy (e.g. site connecting over plain HTTP whose packets are trivially inspectable) all the way to nation-state level cutting-edge techniques (basically whatever the great firewall does). Do note that since encryption isn't itself unbreakable (well not yet, hopefully) if done right, the latter usually trades off specificity for false-positives. E.g. they don't care that they're going to block innocent traffic, they just block anything that they can't inspect (e.g. ESNI connections) and scrutinize anything going to external ASs heavily.
>> No. 2801 [Edit]
This might be a stupid question, but how exactly do websites work? Are pages just files being shared, be it a static .html file or generated with software for something like an imageboard? Are urls just the file you request, for example this thread is "165.html" in the folder res, which is in the folder navi, hosted on the tohno-chan server? How does the domain name connect to the server's ip to request the file?
>> No. 2802 [Edit]
You might be interested in reading through

At a high level, yes basically you make an HTTP GET request to TC's server, server responds back with html (which can either be fetched from a static file, or dynamically generated on the server. The client really doesn't care which, as far as it's concerned, it's just html being sent on the wire. The URL path itself can really be anything, that's up to the server to interpret. The fact that there's a "165.html" in the URL is only relevant to the server, and it doesn't necessarily have to serve a static file at that path, it can do whatever it wants. There are some established conventions, however, such as passing query parameters via urlencoded "?", and mapping paths inthe URL onto some logical notion of "path". But this is all convention, you can break it if you want.

Domain name is translated to server IP via a DNS lookup.
>> No. 2803 [Edit]
>Are pages just files being shared
Yes, all resources including the pages themselves are sent to you as files. Pages are of the type text/html.
>generated with software
That can differ. Most static websites just have html files sitting on the server, while others generate pages based on user requests. Pages can be constructed and sent, without being saved on the host server. You get a file though.
>Are urls just the file you request
Not necessarily. The server can interpret urls in a number of different ways. With static files though, like images, generally yes.
>How does the domain name connect to the server's ip
Your computer is connected to a centralized DNS service, which is connected to domain registrars. It's based on these groups sharing information with each other and then sharing it with you.

Post edited on 14th Jun 2022, 11:55am
>> No. 2804 [Edit]
This seems pretty interesting. I don't understand a good portion of the language however. I'll take my time to read through it and look up the terms I don't understand later.
I don't have an aptitude with computers, but it feels like it's pretty important to learn. Right now I have to rely on others, but I'd like to become capable of doing things myself and having an understanding of what it is that I am doing.
>> No. 2805 [Edit]
> I don't understand a good portion of the language however.
That's ok, the content in there covers a really broad range of topics across various layers. I doubt for instance that even most people who do programming (unless they're into mechanical keyboards) know the details of your keyboard diode matrix works, how it debounces keys, how it sends an HID report, etc. The rest of the topics there span the range from thnigs you might see in a networking course, to OS internals, to parsers, and so on. And there's still a lot of things they don't even cover in there, such as how the packet send from your computer gets routed to its destination, what happens at the interface between the network card and your userspace program, etc.

It would be surprising if even someone who worked with software all their life knew about all the topics there. As you beign exploring things, you'll eventually be able to understand more and more.
[Return] [Entire Thread] [Last 50 posts] [First 100 posts]

View catalog

Delete post []
Report post

[Home] [Manage]

[ Rules ] [ an / foe / ma / mp3 / vg / vn ] [ cr / fig / navi ] [ mai / ot / so / tat ] [ arc / ddl / irc / lol / ns / pic ] [ home ]