programming and technology thread (130)

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

When /tech/ is too slow for you

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: