programming and technology thread (130)

1 Name: Anonymous : 2021-07-04 17:36 ID:Heaven

When /tech/ is too slow for you

2 Name: Anonymous : 2021-07-04 17:38 ID:Heaven

Do you backup your game saves on windows? I spent months on some of the games, losing this progress would be troublesome.

Do you backup anything at all?

3 Name: Anonymous : 2021-07-08 09:23 ID:qhru9pz3

What's up with catalogue in /general/ not showing post count? Everywhere else you see the number of posts, but not here for some reason? I wanted to make a client for 4-ch to check for updates.

4 Name: Anonymous : 2021-07-10 02:42 ID:Heaven

>>3
Looks like ssz saw your post. Nice catch.

5 Name: Anonymous : 2021-07-10 07:44 ID:Heaven

Or maybe I just didn't scroll all the way to the right or something.

6 Name: Anonymous : 2021-07-15 13:19 ID:eECg4vTd

I don't back up anything, I just trust in my computer.

7 Name: Anonymous : 2021-07-15 15:45 ID:jVsxmdSC

Thesis: all programmers are faggots.

8 Name: Anonymous : 2021-07-16 06:04 ID:Heaven

I'm not a faggot, just very very annoying.

9 Name: Anonymous : 2021-07-22 09:55 ID:dpUCJVoE

10 Name: Anonymous : 2021-08-04 08:55 ID:Pn5rzXZT

https://www.sljfaq.org/afaq/encodings.html
Encodings of Japanese

http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
Japanese-style punctuation ( 3000 - 303f)
Hiragana ( 3040 - 309f)
Katakana ( 30a0 - 30ff)
Full-width roman characters and half-width katakana ( ff00 - ffef)
CJK unifed ideographs - Common and uncommon kanji ( 4e00 - 9faf)
CJK unified ideographs Extension A - Rare kanji ( 3400 - 4dbf)

0x20000-0x2A6DF CJK unified ideographs Extension B - Very rare kanji

So, I guess, most kanji can fit in 2 bytes of UTF16 codepage. Except some very very rare ones.

The unused 11th bit (0x0400) is used to increase the robustness of UTF-16 text. In the first 16-bit code, the 11th bit is always 0, and in the second 16-bit code, it is always 1. That way, if a file is truncated in the middle of a higher-plane character, a program can tell that it is reading the second half, and not corrupt the character after it.

11 Name: Anonymous : 2021-08-04 09:27 ID:Heaven

shift-jis to utf16 C
https://gist.github.com/takamin/2752a45c5cb4d0f9d1ff

#include "stdafx.h"
#include <string>

//VC++ SJIS string を utf-8のstringに変換する
string sjis2utf8(const string& sjis) {

string utf8_string;
//一旦SJISからutf-16へ変換
LPCCH pSJIS = (LPCCH)sjis.c_str();
int utf16size = ::MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS, pSJIS, -1, 0, 0);
if (utf16size != 0) {
LPWSTR pUTF16 = new WCHAR[utf16size];
if (::MultiByteToWideChar(CP_ACP, 0, (LPCCH)pSJIS, -1, pUTF16, utf16size) != 0) {
//次にutf-16からutf-8へ変換
int utf8size = ::WideCharToMultiByte(CP_UTF8, 0, pUTF16, -1, 0, 0, 0, 0);
if (utf8size != 0) {
LPTSTR pUTF8 = new TCHAR[utf8size + 16];
ZeroMemory(pUTF8, utf8size + 16);
if (::WideCharToMultiByte(CP_UTF8, 0, pUTF16, -1, pUTF8, utf8size, 0, 0) != 0) {
utf8_string = string(pUTF8);
}
delete pUTF8;
}
}
delete pUTF16;
}
return utf8_string;

}

12 Name: Anonymous : 2021-10-05 10:58 ID:LJmj1GtX

I want to setup my own little text or imageboard, where can I get free hosting?

13 Name: Anonymous : 2021-10-06 02:00 ID:dnXMOnrx

at kuz.com

14 Name: Anonymous : 2021-10-06 05:40 ID:tXcTWGzM

>>13
All I see there is eyewear by David Beckham.

15 Name: Anonymous : 2021-10-06 05:40 ID:Heaven

        ∧_∧
      (`・ω・´)
   γ⌒" ̄ `Y" ̄`⌒ヽ
  /´  、   ¥   ノ  ヽ.
 / ,-ュ人` -‐´;`ー イ` ェ-、 ヽ
 l 「  } i 彡 i ミ/ {  `ノ
 ` `ー' .}    {  `ー'´/ ̄ ̄\
     /      \||  |  >>13  |
    /   /`ヽ、 i |i  \  _/
   /  ノ    l| | i|   //
   \  `ヽ    |    ||  /
     \ \  l|| l|i | ,,
      ノ  _>‘、|l  |・i/
     <.,,_/~,-・i |゚;・li。i,・'

16 Name: Anonymous : 2021-10-06 13:24 ID:Heaven

>>12
Heliohost seems to be the standard choice, but if you're a little more serious about it you should really get a $5 vps, or just use an old computer for self-hosting.

17 Name: Anonymous : 2021-10-09 15:42 ID:eGj7ke6C

>>12
fka.cx

18 Name: Anonymous : 2021-10-09 16:31 ID:aBODQchZ

>>17
cy.krypka.veggiepierrogi.blyatt

19 Name: Anonymous : 2021-10-15 08:10 ID:GfGjCEK3

I'm learning to use the Godot development platform. I do this by working through the 'Nature of Code' book.

20 Name: Anonymous : 2021-10-16 14:36 ID:Heaven

Cool. I have no opinion on Godot, I know nothing about it. I'm learning winapi and gdi right now.

21 Name: Anonymous : 2021-10-19 02:39 ID:Heaven

>>16
$5? But I'm a NEET.

22 Name: Anonymous : 2021-10-19 05:42 ID:Heaven

neets worldwide, unite!

23 Name: Anonymous : 2021-10-19 16:13 ID:Heaven

My hdd seems to have died, any way I can fix it? Should've made at least the list of all files on it.

24 Name: Anonymous : 2021-10-19 17:09 ID:LJmj1GtX

25 Name: Anonymous : 2021-10-19 21:47 ID:j4f+nYp1

Planes are tech too especially drones
https://www.youtube.com/watch?v=E_A_rEZoXSg

26 Name: Anonymous : 2021-10-21 16:43 ID:myW7qTo/

Do you know why windows that run with administrator privileges show up on top of other windows? This is annoying as hell, I can't alt-tab out of them anymore, I have to minimize them instead. This happens with cheat engine for example, or with vmware. This is probably a windows 10 thing, after some update.

27 Name: Anonymous : 2021-10-21 19:35 ID:Heaven

This guy has the same problem, but damn it's hard to google something even remotely related. Of course no replies.

https://superuser.com/questions/1414298/switching-focus-away-from-windows-with-admin-rights

28 Name: Anonymous : 2021-10-22 15:05 ID:Heaven

The other most annoying part of C, besides; semicolons; everywhere;, is not being able to goto over variable declarations.

29 Name: Anonymous : 2021-10-23 06:23 ID:Heaven

>>25
Well, world war 2 is hopefully the last war to be fought with humans. Downside is that rich now have even less motivation to give a fuck about what people think.

30 Name: Anonymous : 2021-10-25 05:21 ID:myW7qTo/

char* from = (char*)from;
wow, compiler actually let me compile this.

31 Name: Anonymous : 2021-10-27 09:20 ID:Heaven

Pseud0ch and Boon themes are so similar. Red nicknames with Boon sure look threatening.

32 Name: Anonymous : 2021-11-12 08:38 ID:09RCGnjR

Thinking of writing a greasemonkey/violentmonkey script for this site. Here is the hello world for it, hides the "Board look" selection.

===========================start===========================
// ==UserScript==
// @name New script - 4-ch.net
// @namespace Violentmonkey Scripts
// @match https://4-ch.net/*
// @grant none
// @version 1.0
// @author -
// @description Add description here
// ==/UserScript==

var k = document.getElementById("stylebox")
if (k) k.style.display="none"
============================end============================

I'm thinking about adding a board switcher under the header instead of using this sidebar, and some kind of notification mechanism when new posts show up. https://www.4chan-x.net could be a good reference.

33 Name: Anonymous : 2021-11-12 08:55 ID:Heaven

I don't like how it flickers on loading now. But maybe once I'll add another line in its place it will be less of an issue.

34 Name: Anonymous : 2021-11-13 06:01 ID:Heaven

In some styles catalogue looks horrible, in some it looks somewhat bearable. It feels like some styles were written for the older version of this site and just weren't ever updated.

35 Name: Anonymous : 2021-11-13 06:33 ID:Heaven

Wasn't sure what would make a good separator for thread titles, but \n is perfect for it. There will never be newlines in thread titles.

Greasemonkey doesn't seem to be smart enough to let me store just any objects in it, only strings. So, I need to parse catalogue and store it as a string using https://wiki.greasespot.net/GM.setValue . I need that to be able to get notifications on which threads were updated.

36 Name: Anonymous : 2021-11-13 07:46 ID:Heaven

Man, I'd really love a way of returning more than one value out of a function, there is no technical reason for them to not being able to. Math fucked with people's brains, because mathematical functions indeed result in one value, but real world not always works like math models, and "functions" are more like procedures anyway.

Golang actually allowed that, bless it, but it added garbage collection in its language too.

I know the standard workaround for it is either passing a pointer to a function, or just using global variables, but that's not quite the same.

37 Name: Anonymous : 2021-11-13 09:03 ID:Heaven

I wrote this

for (var j = ii; j>0; j--) {
//something
}

But then rewrote it into this

{
var j = ii;
if (j > 0) do {
//something
} while (--j > 0)
}

I imagine "for" has one conditional jump at the start and one unconditional jump at the end, and "if do while" has two conditional jumps. I like the latter more, especially in cases where the first "if" isn't needed.

38 Name: Anonymous : 2021-11-14 04:44 ID:kZkkg+mu

CSS question, how can I stop links from being wordwrapped? I have this thing:

/general//hobby//personal//req//tv//japan//games//music//literature//ascii//dqn//tech//iaa//language//nihongo//current/

And each is a link. They wrap like this:

/general//hobby//personal//req//tv//japan
//games//music//literature//ascii//dqn
//tech//iaa//language//nihongo//current/

But I want them to wrap like this:

/general//hobby//personal//req//tv//japan/
/games//music//literature//ascii//dqn/
/tech//iaa//language//nihongo//current/

If I'll do white-space:nowrap for each link, this entire thing stops wrapping.

39 Name: Anonymous : 2021-11-14 17:16 ID:Heaven

Eh, fuck it, I'll just drop those // altogether.

40 Name: Anonymous : 2021-11-14 18:14 ID:Heaven

There was a site, it worked just fine. But they just had to update it, now it takes about 2 minutes to load, shits ads everywhere, and has an audacity to say "Your browser is too old! Please update your browser so that it will (((work faster)))!". No update ever made things faster, it's always the opposite.

41 Name: Anonymous : 2021-11-14 18:39 ID:Heaven

Interesting, so, to remove an element from a webpage in javascript you can either use element.remove(), which works since firefox 23, or element.parentNode.removeChild(element), which works since firefox 1. I guess I'll use the latter.
https://developer.mozilla.org/en-US/docs/Web/API/Element/remove
https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild
https://www.geeksforgeeks.org/how-to-remove-an-html-element-using-javascript/

42 Name: Anonymous : 2021-11-16 18:45 ID:kZkkg+mu

In C/C++/C#, conditional breakpoints are very slow, I like to do this instead
if (something) {
do {} while(false); //set breakpoint here
}

It is only noticeable in loops that iterate a whole lot, like 100000 iterations.

43 Name: Anonymous : 2021-11-17 03:45 ID:aI47xbKr

>>40
Vote with your feet.
Use politics to encourage others to vote with you.

44 Name: Anonymous : 2021-11-19 00:13 ID:Heaven

Almost done the "check which boards have new posts" greasemonkey script. 400 lines of code.

45 Name: Anonymous : 2021-11-19 06:24 ID:Heaven

Damn, /nihongo/ threads like
(;;・m・) わたしわにほんごがわかりません。
save for me like
(;;�Em�E) �킽����ɂق񂲂��킩��܂���B

/nihongo/ board has Content-Type: text/html;charset=shift_jis , while almost every other board has it as text/html;charset=utf-8. And things break when I do AJAX like things from one board to another

xmlhttp.onreadystatechange = function() {

if (this.readyState == 4 && this.status == 200) {
var page = document.createElement('div')
page.innerHTML = xmlhttp.responseText.split(/<body[^>]*>((?:.|\n|\r)*)<\/body>/i)[1]
//alert(page.innerHTML)
page = document.evaluate('//*[@id="oldthreadlist"]', page, null, 9, null).singleNodeValue
katalog_parse(board, page)
}

}

46 Name: Anonymous : 2021-11-19 07:32 ID:Heaven

Tried doing
var shift_jis = new TextDecoder("shift_jis")
var utf8 = new TextEncoder("utf-8")
response = shift_jis.decode(utf8.encode(response))
...didn't work.

I need a way to get binary data instead of string out of XMLHttpRequest

47 Name: Anonymous : 2021-11-19 14:42 ID:R8yG0VCf

>>38
Try putting a <wbr> or zero-width space (u+200b) between each link.

48 Name: Anonymous : 2021-11-19 16:36 ID:Heaven

>>47
Both worked, pretty cool.
var space = document.createTextNode("\u200B")
or
var space = document.createElement("wbr")
refreshbox.appendChild(space)

I decided to drop "/" and added spaces though, I think it looks cleaner. It takes less horizontal space too.

[st-][refresh][rf2][peek][merge] general hobby personal req tv japan games music book ascii dqn tech iaa language nihongo current

49 Name: Anonymous : 2021-11-19 18:14 ID:Heaven

>>45>>46
Solved. I can force XMLHttpRequest to give me binary data by using responseType = 'arraybuffer', which I then decode manually with TextDecoder
https://www.html5rocks.com/en/tutorials/file/xhr2/
Phew, was worried for a second. For a day.

50 Name: Anonymous : 2021-11-19 18:36 ID:Heaven

Actually, still have some problems here. Most likely because of this thread
💘peri💘
probably emoji got TextDecoder confused
I'll just disable exception on failure.

51 Name: Anonymous : 2021-11-20 19:43 ID:Heaven

In /dqn/ "all threads" page,
💘peri💘
is actually stored as
💘peri💘
in the html file. So, still not sure why TextDecoder fails there. It is in shift-jis, notepad++ confirms so.

52 Name: Anonymous : 2021-11-20 19:44 ID:Heaven

stored as
& # 1 2 8 1 5 2 ;

53 Name: Anonymous : 2021-11-21 07:20 ID:Heaven

Okay, this thingy works. It looks like this right now:

[st-][refresh][rf2][peek][merge] general(1) hobby personal req tv japan games music book ascii dqn(6) tech(1) iaa language nihongo current
/general/I miss the mid 00s
/dqn/[Inevitable] What will YOU do when the oil runs out? [Future Plans] (permasaged)
/dqn/DQN LINK SHARING FROM AROUND THE WORLD
/dqn/�y���{�̃L�`�K�C�p���z�G���r�X�򒹁y�����F�v�S�P�΁z
/dqn/CTRL+V THREAD! [part XVI]
/dqn/[Wikipedia] ITT DQN QUALITY Wikipedia Links [Part IV]
/dqn/ [Contentless] ITT you post right now [ASAP] your current thought [Brains][Thinking][Personal][#43]
/tech/is it possible to have fun programming

/dqn/ threads with unicode characters will look like this until I figure out how to unsuck TextDecoder. It is geniunly a shit api, the winapi MultiByteToWideChar had an option to ignore corrupted characters or to replace them with a character of your choice, but not TextDecoder, the only thing it knows how to do is to fall and throw an exception. To be fair it is marked as an experimental feature.

54 Name: Anonymous : 2021-11-21 07:42 ID:Heaven

Next thing I need to do is youtube embedding, or rather youtube thumbnail and title grabbing and injecting it into the page. You know, you could've copypasted the video title if you weren't lazy.

55 Name: Anonymous : 2021-11-22 11:54 ID:Heaven

>>54
words cannot express how disgusted i am with you

56 Name: Anonymous : 2021-11-22 12:24 ID:Heaven

Can they express why you are disgusted at least? I don't want to actually embed, but showing thumbnail and title is pretty important. Rickrolling no more.

57 Name: Anonymous : 2021-11-22 12:55 ID:Heaven

Nothing wrong with embedding titles and such 4chanX-style, it's more about the last sentence in your post. For lack of a better word, it seems grossly unbecoming of the place to pad out posts with metadata for links -- if the wording of the post doesn't already give an indication of what lies beyond on its own, it's probably better off without it. Part of the fun of the youtube thread (in particular) is not knowing what fellow DQNs have shared with you without first clicking on the link.

Ding!

58 Name: Anonymous : 2021-11-22 13:02 ID:Heaven

(Actually, here's a better expression: "It looks gross." YMMV, others might don't mind as much as I do.)

59 Name: Anonymous : 2021-11-22 13:22 ID:Heaven

I... can see the appeal of this randomness roulette. Sounds like a great way to waste your time though.

60 Name: Anonymous : 2021-11-24 20:12 ID:Heaven

Interesting how notepad++ slightly changes the background color of the line you are on, while sakura editor (japanese text editor) and a few others instead add an underline. My guess is that winapi precashes every character you use, and same character but with different background/foreground colors are still independent characters from its perspective, so by changing background you will double the memory requirements.

I know that nothing stops you from using 3d hardware acceleration in your text editor, you will get free background transparency in that case. 3d accelerated text editor, this sounds so stupid.

61 Post deleted.

62 Name: Anonymous : 2021-11-26 11:52 ID:Heaven

oh, a 2ch browser, cool. I'm not going to use it because I can't read anything without rikaichan and such.
ttp://www8.plala.or.jp/uro/live2ch/

63 Name: Anonymous : 2021-11-30 08:30 ID:Heaven

Uploading 4-ch.net Refresher.
https://files.catbox.moe/a1p3w9.txt
It parses katalog of every board on this site, and shows what threads were updated. Yes, even saged ones.
To use, install https://violentmonkey.github.io or greasemonkey or whatever people use nowadays, create new script, and copypaste it here

64 Name: Anonymous : 2021-12-07 07:29 ID:Heaven

shift-〄

65 Name: Anonymous : 2021-12-07 07:58 ID:Heaven

I'm bored. Hey, tell me about raspberry pi, the hell is it? Can you surf web/play videos with it? How expensive it is? What are some good alternatives? I see it as just a toy right now.

I want to learn how to play ogg files using directsound and howwasthatlibrarycalled.

66 Name: Anonymous : 2021-12-17 06:42 ID:/w3Z39pV

api is good if you can remember how to use it without opening docs.

67 Name: Anonymous : 2021-12-17 06:55 ID:Heaven

>>63
Is this a good idea?

68 Name: Anonymous : 2021-12-17 07:24 ID:/w3Z39pV

This board is unusable without something like that. Having a sidepanel for the list of boards that can fit on one line was annoying. Notifications is the basis of communication.

It would be better if it could hide threads too, or showed interesting threads above trashy ones. But this board is so dead I don't care, people barely bother to troll a board this slow.

Strange, I thought I bumped this thread, why it still shows up as thread #19.

69 Name: Anonymous : 2021-12-17 07:35 ID:Heaven

Also I checked, and catalog is even a bit lighter than the main page of every board, so by refreshing the catalog you actually save traffic. The exception is the /dqn/ board, it has too many threads. Real japanese textboards store active threads and closed threads separately, this board is just a weeabooish copy. I wonder what software japanese textboards use.

I planned to have two buttons for different set of boards to refresh, but it was too annoying.

70 Name: ssz!8KKxaxpAFg (Admin) : 2021-12-17 07:55 ID:Heaven

(comment to follow, please wait warmly etc)

71 Name: Anonymous : 2021-12-17 09:05 ID:Heaven

...h-hi officer, good day isn't it?

72 Name: Anonymous : 2021-12-17 09:07 ID:/w3Z39pV

Wait, permasaged? What? What?

73 Name: Anonymous : 2021-12-18 06:11 ID:/w3Z39pV

Where is your fucking comment, faggot?

74 Name: ssz!8KKxaxpAFg (Admin) : 2021-12-18 12:37 ID:Heaven

It's a neat tool and could definitely help revitalize the site; and not to rain on your parade or anything, but: Manually checking the boards for updates has been the stardard for almost two decades now, and I'm still deliberating whether or not to officially endorse it (and which form that would take)... Until then, I don't mind people stumbling across it on their own, but please use a little discretion! (read: I'll unpermasage the thread once these posts are out of the 10 most recent ones)

Also,

>[c/k]atalog

Thread list!! Or "subback.html" if you wish. ;)

75 Name: Anonymous : 2021-12-18 16:09 ID:Heaven

Live2ch was the actual standard for the last 2 decades, if "Copyright (c) 2002-2020" is to be believed. Everywhere except for this shallow copy.

So, you're telling me to go ahead and schizopost in my solitude for another 10 posts. How nice. Sadly that's something I am too used to.

>Thread list!!

スレッド全一覧, could be both.

76 Name: 1/9 : 2021-12-18 23:11 ID:/w3Z39pV

                ∧∧     カタカタ
                (*゚∀゚)
               ヽ/  つ_/
                (__)ТТ

77 Name: 2/9 : 2021-12-18 23:13 ID:/w3Z39pV


                       ┌─────────────┐
                       │ つーちゃん 何やってるのー? │
                       └──────‐v──────┘

                                  ∧∧
                    ∧∧"              (゚ー゚*)
                     (,*゚∀)              |  U
               ヽ/  つ_/            |  |~
                (__)ТТ          U ヽ) ))

           ┌───‐^──┐
           │ . おう、 しぃ。 │
           └──────┘

78 Name: 3/9 : 2021-12-18 23:14 ID:/w3Z39pV

           ┌─────┐  ┌────┐
           │ perl だよ。 │  │.ぱーる?│
           └───‐v─┘  └─‐v──┘

                              ∧∧
                ∧∧      (ー゚* )
                (*゚∀゚)       |  U
               ヽ/   つ_/    |  |~
                (__)ТТ   U U

79 Name: 4/9 : 2021-12-18 23:17 ID:/w3Z39pV


############
while(条件){
  動作
}
############
┌────────────────────┐
│ これはwhile文って言って、               │
| 条件が満たされる限り動作を繰り返すんだ。 .|
└──────────‐v─────────┘

                   ∧∧         ∧∧
                    (,*゚∀)       (ー゚* )
               ヽ/  つ_/   |  ヽノ
                (__)ТТ  (___)

                        ┌─‐^──┐
                        │ へー。 │
                        └────┘

80 Name: 5/9 : 2021-12-18 23:20 ID:/w3Z39pV


     ┌───────────────┐
     │例えばこうしたりして実行すればー、│
     └───────‐v───────┘

                ∧∧       ∧∧
                (*゚∀゚)      (ー゚* )
               ヽ/  つ_/   |  ヽノ
                (__)ТТ  (___)

####################
$num = 0;
while($num < 3){
  sendToHeaven(C);
  $num++;
}
####################
                カタッ

81 Name: 6/9 : 2021-12-18 23:21 ID:/w3Z39pV


   ┌─────────────┐
   │ しぃが3連で イっちゃったりしt ┌────┐
   └────────‐v────│. ふ ぁ っ │
                         └─‐v──┘
                从                ビクッ
                    ∧∧         ∧∧ ヾ ビクッ
                     (,;゚∀)     {{ (゙っ゙*)   ビクッ
               ヽ/  つ_/   |  ヽ/ }}
                (__)ТТ  (_し__)

              ┌─‐^┐
              │!?│
              └──┘

82 Name: 7/9 : 2021-12-18 23:25 ID:/w3Z39pV


     ┌─────────────┐
     │. え、何で現実で起き… えっ? │
     └───────‐v─────┘
                           ∬
                ∧∧        ∧∧
                (;゚∀゚)     (゙o ゙*)
               ヽ/  つ_/   |  ヽへ
                (__)ТТ  (_し__)

                         ┌‐^┐
                         │…│
                         └─┘

83 Name: 8/9 : 2021-12-18 23:27 ID:/w3Z39pV


                ┌──────────┐
                │. … じゃあこうしたら … │
                └────‐v─────┘
             ン?
                ∧∧     ∧∧
                (,;゚∀)   (ー゙* )   ))
               ヽ/  つ_/と   ヽノ
                (__)ТТ (_つつ

84 Name: 9/9 : 2021-12-18 23:32 ID:/w3Z39pV


###################
while(true){
  &sendToHeaven(2);
}
###################


              カタッ
               ┌──────────────────┐
               │. ずっとイきっぱなしになっちゃったりして? │
               └──────────────────┘

  ∧∧∧∧∧  ビクン
<  ひぁっ!? >─────────┐  ビクッ
  ∨∨∨∨ バカ、しぃ、止め… んぅッ..│ビクッ
       └───────────┘ ビクッ  ビクッ

85 Name: Anonymous : 2021-12-22 23:20 ID:Heaven

That fucking AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH thread ruins the /general/thread catalogue for me, I can't see the right side of the table because of it. The date is pretty useless anyway, it's not even a creation date, but a last post date.

86 Name: Anonymous : 2021-12-23 01:28 ID:Heaven

Fixed the katalog look, for Pseud0ch style. Install one of those.
https://github.com/openstyles/stylus
https://addons.mozilla.org/en-US/firefox/addon/styl-us/

/* ==UserStyle==
@name 4-ch.net better katalog
@description eh
@author eh
==/UserStyle== */

body.backlogpage {

background: #EFEFEF;

}

body.backlogpage #oldthreadlist {

background: #EFEFEF;

}

body.backlogpage #oldthreadlist tbody tr > td:nth-child(2) {

max-width: 512px;
word-wrap: break-word;

}

body.backlogpage #threads {

background: inherit;

}

87 Name: Anonymous : 2022-01-01 06:02 ID:Heaven

So, is anyone here? Can we open a sekrit klub now, or this is merely an online notepad?

I really like the ability to only load a range of posts. This site doesn't really needs an api, it is simplistic enough by design, parsing html isn't that much harder than parsing json or whatever.

88 Name: Anonymous : 2022-01-06 09:02 ID:kW6xXe4s

I need a livecd, what I should use? I'm thinking of downloading ubuntu livecd and put it on a usb stick, but I'm not sure if ubuntu can read windows hard drives well.

89 Name: Anonymous : 2022-01-14 15:06 ID:gSMqUszJ

>>87

we get like 5 posts per day lol but it is still usable and i come here daily/bi-daily

90 Name: Anonymous : 2022-01-14 15:06 ID:gSMqUszJ

>>88
linux mint. you can then personalise it later, but it is a good starting point

91 Name: Anonymous : 2022-01-25 09:45 ID:Heaven

Megamari Replay Viewer
I'm talking about it here because it's rare for me to see an assembly program in the wild.
Guy who made it had to read Megamari assembly code, so he made replay viewer in assembly too just by inertia.

https://en.touhouwiki.net/wiki/MegaMari
https://www.mediafire.com/file/aqd6v8797vga8o6/Megamari_Replay_Viewer.zip/file
https://en.touhouwiki.net/wiki/Category:MegaMari_Replays

Code looks something like this:

ReplayFileProc:
	mov	ecx,iMegamariReplayCounter
cmp bRecordMode,TRUE
je WriteFileProc
add iMegamariReplayOffset,ecx
mov eax,iMegamariReplaySize
sub eax,iMegamariReplayOffset
cmp eax,REPLAY_FILE_BUFFER_SIZE
jbe @f
mov eax,REPLAY_FILE_BUFFER_SIZE
@@:
	push	eax
invoke SetFilePointer,hMegamariReplayFile,iMegamariReplayOffset,NULL,FILE_BEGIN
pop eax
invoke ReadFile,hMegamariReplayFile,lpMegamariReplayBuffer,eax,ADDR dwNumberOfBytesRead,NULL
test eax,eax
jz AccessDenied
retn
WriteFileProc:
	push	ecx
invoke SetFilePointer,hMegamariReplayFile,iMegamariReplayOffset,NULL,FILE_BEGIN
invoke WriteFile,hMegamariReplayFile,lpMegamariReplayBuffer,iMegamariReplayCounter,ADDR dwNumberOfBytesRead,NULL
pop ecx
add iMegamariReplayOffset,ecx
test eax,eax
jz AccessDenied
retn

92 Name: Anonymous : 2022-01-25 09:53 ID:Heaven

>>62
This drops it's dlls into C:/Windows/System32, if we never meet again this is why

93 Name: Anonymous : 2022-02-07 21:21 ID:Heaven

>>62
Tried this, it actually displays ads. How very japanese. Well, guess what I'm not going to use.

94 Name: Anonymous : 2022-02-23 07:54 ID:Heaven

95 Name: Anonymous : 2022-02-24 18:57 ID:Heaven

96 Name: Anonymous : 2022-02-24 19:06 ID:Heaven

97 Name: Anonymous : 2022-02-24 19:40 ID:1qbFI4cK

Made violentmonkey script that adds previews for /img/ links right into the page. Turning textboard into imageboard. I need to figure out how to turn imageboards into textboards next, I know that I can just disable images completely, but that also disables captcha.

// ==UserScript==
// @name 4-ch.net image previews
// @namespace Violentmonkey Scripts
// @match https://4-ch.net/*
// @grant none
// @version 1.0
// @author -
// @description Adds image previews for /img/ links.
// ==/UserScript==
function load_html(evt) {
var iterthis = document.getElementsByTagName("a")
if (!iterthis) return

for (var i = 0; i < iterthis.length; i++) {
var a = iterthis[i]
if (a.href.startsWith("https://4-ch.net/img/src/")) {
var filename = a.href.substring("https://4-ch.net/img/src/".length)
var index = filename.lastIndexOf(".")
filename = filename.substring(0, index)
//alert(filename)
var img = document.createElement("img")
img.src = "https://4-ch.net/img/thumb/" + filename + "s.jpg"
var br = document.createElement("br")
var nexta = document.createElement("a")
nexta.href = a.href
nexta.rel = "noreferrer noopener nofollow"
nexta.target = "_blank"
add_after(a, br)
add_after(a, nexta)
nexta.appendChild(img)
add_after(a, br)

i+=1 //skipping over "a" we just created
}
}
}
function add_after(referenceNode, newNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling)
}
window.addEventListener('DOMContentLoaded', load_html, false)

98 Name: Anonymous : 2022-02-24 19:43 ID:Heaven

Made greasemonkey script to make browsing 5ch slightly less annoying. I suspect that the old style redirect exists mostly to show ads.

// ==UserScript==
// @name 5ch.net less annoying links
// @namespace Violentmonkey Scripts
// @match https://*.5ch.net/*
// @grant none
// @version 1.0
// @author -
// @description Make links slightly less annoying to open
// @run-at document-start
// ==/UserScript==
//https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noreferrer
//https://www.reliablesoft.net/noreferrer-noopener/
//<a href="somelink" rel="noreferrer noopener" target="_blank">
function load_html(evt) {
var iterthis = document.getElementsByTagName("a")
if (!iterthis) return

for (var i = 0; i < iterthis.length; i++) {
var a = iterthis[i]
//alert(a.href)
if (a.href.startsWith("http://jump.5ch.net/?")) {
a.href = a.href.substring("http://jump.5ch.net/?".length)
} else if (a.href.startsWith("https://jump.5ch.net/?")) {
a.href = "http://" + a.href.substring("https://jump.5ch.net/?".length)
}
}
}
window.addEventListener('DOMContentLoaded', load_html, false)

100 Name: Anonymous : 2022-02-25 07:52 ID:Heaven

Guys, http or https? Imgur supports both. Https is encrypted, so it's harder for middleman to read what you are reading. But because it is encrypted, online caching doesn't work anymore. For mails and other such matters encryption is a must, but for funny images it probably isn't that necessary?

101 Name: Anonymous : 2022-02-25 08:05 ID:Heaven

updated qbittorrent, now it lags horribly. Especially when you download around 200 files at once, I have to keep downloads to about 10 files at the time for it to be tolerable. The UI itself lags. Fuck I hate Qt.

102 Name: Anonymous : 2022-02-25 09:02 ID:Heaven

Next I need a way to hide threads, and to give threads you like priority over others.

103 Name: Anonymous : 2022-02-25 10:37 ID:Heaven

nice blog dude

104 Name: Anonymous : 2022-02-26 12:50 ID:Heaven

I know, right? Doesn't require an email, loads very fast, somebody actually reads it. The downside is that anyone can shit it up if he really wants to.

Blogging is the only thing dead boards are good for. And even that barely.

105 Name: Anonymous : 2022-03-01 17:56 ID:Heaven

How do I link posts 97-100 without adding op? Something like >>n97-100?

106 Name: Anonymous : 2022-03-01 17:57 ID:Heaven

Yep.

107 Name: Anonymous : 2022-03-01 20:30 ID:Heaven

Added ajax like [peak-] button. Now I don't have to open each thread individually.

https://4-ch.net/img/src/1646166409855.jpg

Will maybe upload it after I test it for a bit.

108 Name: Anonymous : 2022-03-02 18:28 ID:FHWlMpSm

>>107
Are you browsing with fucking IE 5?

109 Name: Anonymous : 2022-03-02 18:32 ID:Heaven

no, firefox. Why?

110 Name: Anonymous : 2022-03-02 19:08 ID:Heaven

>>107
I like it! It's cool!

111 Name: Anonymous : 2022-03-03 05:50 ID:Heaven

ufufufu <3

112 Name: Anonymous : 2022-03-04 07:34 ID:Heaven

http://rufus.ie/en/
tool for creating bootable usb, both windows and linux

113 Name: Anonymous : 2022-03-12 17:51 ID:Heaven

Thinking of making a way to hide threads. I just did a lazy thing and set height:3em and overflow:hidden.

height 3em https://4-ch.net/img/src/1647106923434.jpg
height 1.25em https://4-ch.net/img/src/1647107204253.jpg

114 Name: Anonymous : 2022-03-13 18:03 ID:Heaven

Nobody reads threads that aren't on first page, pitiful.

115 Name: Anonymous : 2022-03-16 07:50 ID:o9LvUcE3

Is kareha unable to close a thread rather than permasaging or deleting it?

116 Name: Anonymous : 2022-03-16 08:08 ID:Heaven

it's possible, but not used very often on here

117 Name: Anonymous : 2022-03-16 12:15 ID:Heaven

okay, good

118 Name: guess you are just trampling on, cockroache babies : 2022-03-17 04:58 ID:qZQWqTGC

really?

119 Name: goddoesntknowunlessyouhave1Mfollower : 2022-03-17 04:59 ID:qZQWqTGC

cuz ieed to ask about voxel modelling

120 Name: Anonymous : 2022-05-18 18:26 ID:Heaven

I think I will move to /tech/ after all. Maybe I'll still use this thread occasionally.

I'll post everything javascript and violentmonkey script related into https://4-ch.net/tech/kareha.pl/1637254723/l50 Javascript and webdev thread, and general questions into https://4-ch.net/tech/kareha.pl/1125953617/l50 [HELP] Single questions & Help Thread [n00b].

121 Name: Anonymous : 2022-05-18 18:33 ID:Heaven

https://www.youtube.com/watch?v=5n90WohCSIg
Ross's Game Dungeon: Follow-up Episode #3
11:35 has an interesting explanation of how Microsoft was intentionally killing PC gaming for 15 years in hopes that xbox will catch on.

122 Name: Anonymous : 2022-05-18 18:42 ID:Heaven

I've looked a bit into godot, and it is an interesting game engine that seems at its best when making mobile 2d games with advanced 2d animation, and also allowing to play such mobile games natively. Of course making separate native application for every platform will produce a more high quality software, but I doubt your players even notice the difference.

123 Name: Anonymous : 2022-05-18 18:56 ID:Heaven

I wonder how perl is compared to python. Python looks more comfortable to use, but maybe perl itself is less complicated than python under the hood? I haven't seen source code of either.

124 Name: Anonymous : 2022-05-29 18:40 ID:guDweoX5

>>123
Both Perl and Python have a lot of modules and good docs. They have probably similar performance as well since they both use interpreter instead of a bytecode VM.

125 Name: Anonymous : 2022-05-29 19:00 ID:Heaven

>>124
They both also have a half-baked OOP support (unlike Ruby!) Perl also has great regex support and the PerlMonks community. However, Python community is larger overall. All Python, Ruby and Perl are pretty easy to learn.

126 Name: Anonymous : 2022-06-18 19:15 ID:Heaven

Does this place support noko or sagenoko?

127 Name: Anonymous : 2022-06-18 19:16 ID:Heaven

test2

128 Name: Anonymous : 2022-06-18 19:18 ID:Heaven

sagenoko works like sage, but still throws me at the board page.
How about nokosage?

129 Name: Anonymous : 2022-06-18 19:19 ID:Heaven

nokosage still works like sage, but still throws me on main page.

130 Name: Anonymous : 2022-07-02 13:50 ID:Heaven

>test
>test
>test
Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: