/qa/ - Questions and Answers

Keeping the community together by giving you a voice


If you want to see the latest posts from all boards in a convenient way please check out /overboard/

Name
Email
Subject
By clicking New Reply, I acknowledge the existence of the Israeli nuclear arsenal.
Comment
6000
Select File / Oekaki
File(s)
No files selected
Password (For file and/or post deletion.)

I mek code.jpg
The rewrite of the code
Pupper
Admin
No.4560
4571 4928 4930
            [Read more]            
33 replies and 11 files omitted.
Anonymous
No.4561
4562 4564
            [Read more]            
Ebin
!ShitmapVSg
No.4562
5037
0f7c84bd83a04eeff8d87e61487dda14.gif
>>4561
Well, I don't have anything that he missed.
Pupper
Admin
No.4564
4565 4585
fluttershy_likes_to_use_the_computer_by_oemilythepenguino-d4peohn.png
            [Read more]            
Anonymous
No.4565
4566
7f5.gif
            [Read more]            
Pupper
Admin
No.4566
            [Read more]            
Anonymous
No.4571
4572
>>4560
Well, I've found the new position of the Quick Reply box to be a little inconvenient, as it now covers a portion of the thread's posts while it's up. I've also had an issue where every time I hit a post number to reply to it, I have to click back inside the Quick Reply box to begin typing again. I'm afraid I don't have anything more constructive than that.
Pupper
Admin
No.4572
my_computer_pony_icon_by_nerve_gas-d595yl3.png
>>4571
Any and all pointers are welcome. It is good to know what problems you encounter so I can make sure it don't carry over to the new code.
Anonymous
No.4577
4578
spoiler bug.png
spoiler bug 2.png
spoiler bug 3.png
            [Read more]            
Pupper
!!cuKCTOUMqQ
No.4578
4579
>>4577
I'll look into it, and also make sure this don't happen in new code.

Pupper
Admin
No.4579
4580
eqg_mirror_magic_special___computer_troubles_by_epiccartoonsfan-db9b5db.jpg
>>4578
The tripcode always brings a little smile to my face and makes up for fucking up the login.
Anonymous
!FAGGOTdank
No.4580
1522004173107.jpg
>>4579
Eh, it's not bad.
Anonymous
No.4585
4586
>>4564
>So to avoid any possibility for collisions I will use 128bit hash and add filesize to the end of the filename (probably overkill).
Hashes is something I have wished for too, but my vote would be for something that is a) compatible with other things that use hashes - like for reverse image search, if that is relevant, or other board software, etc; and b) has JS support for handling hashes in the browser.
Deduplication or bulletproof cryptographic verification of images isn't the goal here in my opinion, exposing something that users can work with is.

I just tried finding a post in the archive and agree that it is something that needs work, other than that the board code seems to be overall good enough. Don't break yourself trying to get everything perfect.
Pupper
Admin
No.4586
>>4585
The hashing method I intend to use is SpookyHash 2. This is an hash that is designed to be be used on files, as it isn't cryptographic safe, but it is really fast on large files and don't use much CPU.
Thought of Murmurhash 3 too, but there is a known hash flood DoS attack for it. But I am still just playing around with this and nothing is set in stone.
https://research.neustar.biz/2012/02/02/choosing-a-good-hash-function-part-3/

>Don't break yourself trying to get everything perfect.
I will try to pace myself, but it is also fun rewriting the whole code. Hopefully the result will be as good as I hope. Also having written the whole code from scratch makes it easier to find and fix eventual problems, or add features, that might arise.
Anonymous
No.4589
4590 4666
            [Read more]            
Pupper
Admin
No.4590
>>4589
I can please you and say I have implemented almost all your wishes in the new JS already.
I will look into the Thumbnail of embedded videos, and the option to select alternative site for embedding.
Anonymous
No.4666
4667
>>4589
>Pastebin embeds
would definitely like to have this, one of the only advantages 4chan has with 4cX
Pupper
Admin
No.4667
4670
>>4666
Checking, and I will make sure to include that in the code.
Anonymous
No.4670
4673 4676
>>4667
Some type of timeline to give ppl a general idea when a new version may be completed? Also it should work on the very latest version of php or it's not worth it. Even the support life of php 7.3 is only a couple years, as php 8 will come out. Did you ever think of getting modern...like lynxchan? Not being a dick, I love how the php boards look, but php is for old ppl who are stuck in the past.
Anonymous
No.4671
4673 4674
Any chance you can post the full config.php (or the part that makes the board options link) ? Im just fucking around and i can't get the options tab to look right. I think the order of my js is fucked up
Anonymous
No.4672
4673 4676
aus.png
not to sound like a robot but make it look like 4chan does on mobile. 4chan is the only board that looks decent on mobile, just little shit like buttons for links and the drop down menus to select boards makes it easy and nice to navigate the board from a mobile phone browser. I wouldn't get too crazy with a ton of options, as most of the new options will probably break with php 8.0 - so just make a board that is reliable, works ? looks well on mobile. Never mind the 50000000 stupid fucking options that no one uses anyway. ALSO i find it hilarious that ppl on this board like HITLER, you are just like him, in denial and out of touch- php is dead- code a fucking modern board.
Pupper
Admin
No.4673
4674 4675
            [Read more]            
Pupper
Admin
No.4674
js-files-includes.txt
>>4673 >>4671
>forgot file
Anonymous
No.4675
4689
>>4673
Thanks!!! Take your time, you have the best php imageboard out there by far, the best looking, best crypto and stuff. When you have the best code, you shouldnt be rushed.
Yeah its so fucked up, sometimes i wonder if i should just switch entirely to lynxchan. Your php looks WAY better on mobile than any node.js board out there tho.
Anonymous
No.4676
4689
            [Read more]            
Pupper
Admin
No.4689
fcd35d14ffef75a4eee75def973f0f07.jpg
            [Read more]            
Anonymous
No.4703
4704
IMG_3307.JPG
I think it would be nice to be able to choose spoiler individual file attachments, maybe just me but if it were an easy thing to implement I'd appreciate it
Pupper
Admin
No.4704
>>4703
I will look into it, should not be a problem I think.
Anonymous
No.4710
4711
            [Read more]            
Pupper
Admin
No.4711
4722 4726
>>4710
I'll look into making a header type markup, and nested spoilers.
Anonymous
No.4722
4723
>>4711
Oh yeah, could you also have spoilered images default to having the 'save as original filename' image name be something like "Spoilered.png"? I know it's a small thing, but sometimes it can ruin the surprise and I know I've had to change filenames to generic things before just to avoid spoiling things inadvertently.
Pupper
Admin
No.4723
>>4722
That is a good idea. I'll look into how to best implement it. There is two ways to accommodate for this as I see it. Best method as I see it is to only change the visual name to "spoilered.png" or just "[save as original]" and still keep the function that when saving you will save it as the original filename.
On another note the new form I've made makes it easy to rename file in the form before uploading, and I've also added option to automatically randomize filename before uploading.
Anonymous
No.4726
4727
>>4711
Thanks man. Sounds like you're making some steady progress on the whole thing. I'm guessing it's also partly a learning experience on ASP.NET, eh?

I'll also add in one feature request that so far, every vichan descendent seems to have left out.
Is it possible to have the favicon light up with a red (!) upon receiving a reply to (You), just as it is with 4chan? And would it be possible to make that a user configurable option, for those who want to rein in their narcissistic tendencies? ^:)
I suppose while we're on the subject of favicons, is it also possible to have the favicon change on different events, such as threads locking, threads being removed, possibly mod/admin capcode posts in a thread, basically whatever you'd feel would warrant a favicon change?
Per-board favicon sets optional, and definitely a stretch goal, since we don't really use or need different sets for the different boards right now. But then again, I know how you love your feature creep. ^:)
Pupper
Admin
No.4727
4728
>>4726
It is a bit of a learning progress that is true. Hopefully I won't paint my self into corners too many times on the way to completion.

I will definitely add the function to stroke your inner childish joy when you get a (You). And I will look into making other custom favicons for other events. Having one for locked and reached bumplimit and others might be useful. I'll do some testing and experimentation to see what looks good and works.
Anonymous
No.4728
4746
            [Read more]            
Pupper
Admin
No.4746
4750
            [Read more]            
Anonymous
No.4750
Screenshot from 2019-05-22 22-17-27.png
Screenshot from 2019-05-22 22-22-14.png
1533321033107.png
File (hide): 3F4626EB51222D37A75E8ECE6FE63CCE-361728.zip (353.3 KB, Listing of : C:\____\mlpolbackup_backups\backup\qa\src\1558576336618-3.zip Size Date Time Name -------- -------- ------ --------- 1469 23-05-19 03:41 favicon-16x16.png 440 23-05-19 03:41 html_code.html 27320 23-05-19 03:41 mstile-150x150.png 49994 23-05-19 03:41 android-chrome-192x192.png 426 23-05-19 03:41 site.webmanifest 214501 23-05-19 03:41 android-chrome-512x512.png 1063 23-05-19 03:41 README.md 21424 23-05-19 03:41 safari-pinned-tab.svg 15086 23-05-19 03:41 favicon.ico 3026 23-05-19 03:41 favicon-32x32.png ......... (only showing the 10 first files) ......... , favicon_package_v0.16 (1).zip)
favicon_package_v0.16 (1).zip
            [Read more]            
Anonymous
No.4881
4882
10898__safe_artist-colon-conicer_derpy hooves_derpibooru_503_aaaaaaaaaa_animated_bipedal_computer_derpy hooves tech support_dialogue_female_frown_hoof .gif
Rewrite the imageboard backend in C++
No balls
Pupper
Admin
No.4882
4883 4887
>>4881
I did consider (not too seriously) writing it all as an standalone OS, but it would be way too much work. Perhaps after I am done with the Asp Net Core C# version I will find myself in a position where trying to writing it in C++ allures me into its embrace. Playing with a low level language again does sound like fun.
>I do like having full control
Anonymous
No.4883
4884
>>4882
It's fun, and it helps you get a better grasp of the language. But yeah, I understand. I spent a year writing an imageboard in C++, but kind of lost my focus on it about 90% of the way through.

It is pretty fast, though, with post times of about 150ms at 1.8 million posts site wide
Pupper
Admin
No.4884
4885
>>4883
I have to admit I do like the idea of once more be able to fully control threading, locks, pointers and all the good stuff you can do with full low level control. And tweaking it into running lighting fast is one of the fun parts. But I imagine one of the main bottlenecks will be the DB and optimizing queries. I don't think I will be able to write an DB equivalent that is anywhere near what current iterations is capable of.
>Plain Ansi C have, and will always have, a big place in my heart
Anonymous
No.4885
4886
>>4884
I've just been using the MySQL connector library. It allows you to make prepared statements and queries natively. And yeah, DB optimization is the main bottleneck. The right DB index in the right place can turn a 10 second query into 100 milliseconds
Pupper
Admin
No.4886
>>4885
It is truly amazing what the right indexing will do.
Anonymous
No.4887
4888
>>4882
>Playing with a low level language again does sound like fun.
I heard is like God mode, while the code runs lighting fast because less CPU cycles needed.
Anonymous
No.4888
>>4887
Yes, low level languages are extremely fast compared to languages like PHP, Java, or Ruby
It also has the added fun of running your software on really old or esoteric systems, like a Pentium II, for shits and giggles
Anonymous
No.4905
4906 4907
It would appear that reporting is based in some way off of IDs, as when I tried to report https://mlpol.net/sp/res/4143.html#q13337 I kept repeatedly getting "Undefined index: id" errors.
Also, take a look at that post if you would and give it a hit.
Anonymous
No.4906
4907
>>4905
Oh, might not be an issue. I think I just had the thread open for fucking ages. Sorry.
Anonymous
No.4907
>>4905
Thats correct. All reports are linked to the UID that submitted them
>>4906
No worries
Anonymous
No.4922
4923
Hey Pupper, do you have an ETA on the completion of the new code now that you're about nine months into working on it?
Pupper
Admin
No.4923
4924
Internet Pony.png
>>4922
Hi I don't have an fixed ETA as I have been working a bit on again/off again on the code.
I have most of the user side of the code completed, and I'm working on getting the Moderator side of things complete. After I have the basic of Moderator functions in place I will open it up for testing and feedback.
So hopefully in not too long I will have something up for testing. But I am a bit unsure on timeline as the upcoming festivities and family unions, but hopefully before Christmas or New Year I will have something up. Moderator side don't have to be as pretty and user friendly as user side to begin with.
I hope once you get to play with new code you will be pleased, and that it runs smoothly.
Anonymous
No.4924
2353125131.png
>>4923
Glad to hear it frend, thank you for all of your hard work. I'm looking forward to it, been excited for a lot of the features proposed here to be implemented.
Anonymous
No.4928
4931
>>4560
>I am doing a complete rewrite of the code
Does this mean NPFChan current version is going to be unmaintained and deprecated soon?
t. anon who is thinking about adding custom features to a imageboard and hosting one
Anonymous
No.4930
4931
>>4560
Oh yeah, when you expand a quick reply window you can shrink it vertically, but not horizontally. I know it's a bit 11th hour, but that's always bugged me a bit and if you could patch it that would be much appreciated.
Pupper
Admin
No.4931
068.png
>>4928
Sorry for late reply. Sadly I have to say NPFChan is currently not being further developed upon by me. Much of the expansions I made to the code I would not say were optimally included as I had to conform to what the code already did and squeeze my patches in there. So starting from a clean slate was a much better prospect for me going forward.

>>4930
>Oh yeah, when you expand a quick reply window you can shrink it vertically, but not horizontally.
This is an error I am aware of and share your feelings about it, and I have fixed in new version. All the JavaScript is created from scratch for the new codebase and hopefully fixes all problems/shortcomings (and don't introduce new ones).
Anonymous
No.4947
4948
Is the code done and in the process of integration, or what?
Pupper
Admin
No.4948
4949
oiqhQZ.jpg
>>4947
Doing the finishing touches and getting all the functions working. Then I will get people on staff do some testing and give feedback. When all this is done (or while this is being done) I have to write some code to get all the data into the new database structure. I have chosen to wait with creating the Archive as it isn't an priority at the moment.
But long story short, we're closing in on the end.
Anonymous
No.4949
4950
>>4948
Okay. I recently noticed an issue where when you link to another thread and you're using the last 50 posts button, clicking on the link to the other thread will result in a 404. Not sure if that's been fixed in the new version, but thank you for all of your hard work friend.
Pupper
!!cuKCTOUMqQ
No.4950
>>4949
I know about the problem, and it is fixed in the new code. The reason this happens is that the "Last 50 post" page isn't generated unless there is 50 replies, and when you are on a "Last 50 posts" page it only links to other "Last 50 posts" pages, or assumes all pages have a "Last 50 post" kind of page, so links to new Thread will result in an 404. (To use a long way, and some bad sentence building, to explain it)
Anonymous
No.4951
4952 4953
Writing a Simple Operating System from Scratch.pdf
vdvd
Anonymous
No.4952
>>4951
You can post pdf files even if they are disabled in the config files. Any fix for this?
Anonymous
No.4953
1346284971.kitsunequeen_goldenglow.png.jpeg
>>4951
It's gold. Thanks.
Anonymous
No.4960
4961
hi, how do you make a youtube appear with the [embed] link after it like lynxchan? Is it css or Java? Thanks
Anonymous
No.4961
>>4960
https://www.youtube.com/watch?v=dEnrjImJeBs [Embed]
Anonymous
No.4976
4977
...
Soon™?
Pupper
Admin
No.4977
4978
>>4976
I have beta of code running on a test server so ironing out kinks and adding functionality needed. And I still have to work out moving all the current data to new database too so hopefully that won't take too long. Motivation unfortunately also plays in on when it will be completed, not every day I am motivated to mess around with the code.
Anonymous
No.4978
>>4977
>not every day I am motivated to mess around with the code.
Checked.
Better to wait, to fix bugs is a downer.
Anonymous
No.4979
4984
Are you going to fix the bug where people can make Empty Posts?
Anonymous
No.4980

Anonymous
No.4981
4982
See?
Just like that, by clicking New Reply with an empty text box, it's possible to create an Empty Post.
Some asshole could probably fill a thread with shittons of empty posts to make it hit post limit, permanently locking it.
You could fix this by making all posts require a minimum of 1 letter before they can be posted.
That way someone could still do the whole "One letter per post" thing so people can still press F to pay respects while saying nothing else.
Anonymous
No.4982
4983 4984
>>4981
I don't think it should be removed. It can be funny in moderation, and we already have a report feature for if people are spamming it.
Anonymous
No.4983
4984
>>4982
You're right.
Can mods unlock threads that have reached the post limit?
Pupper
!!cuKCTOUMqQ
No.4984
4985
>>4983
>Can mods unlock threads that have reached the post limit?
There is a bug in the current code that results in threads that reach 1000 replies starts bumping again. I am not sure I will add this bug to new code or add functionality to keep certain (un-pinned) threads be without bumplimit as it is an edge case.

>>4979
>>4982
As of now the new code don't allow blankposting, but if it is a desire for it and after talking to staff they want it too it can easily be changed.
Anonymous
No.4985
4986
>>4984
Will the current archived threads remain intact in the new code, or is it time to panic and begin manually archiving all of the threads I want to revisit?
Pupper
Admin
No.4986
>>4985
I will not move to new code until all threads (current and archived) are moved to it and functioning. So no need to worry. I just hope that this won't be a big task and delay moving to new code too long. I have to admit I haven't started looking into the movement yet. Thought it was best to wait until I had the entire new database structure hammered out and set in stone.
Anonymous
No.5018
5019
Could a built-in "Post polls with designated time limits attached to posts" system be added to the site?
Also
The bottom of every thread has a clickable "Auto-Refresh" thing you can click to turn auto-refreshing off. Could one of those be added to the top of threads, too?
It would make viewing the site in mobile mode more convenient since you wouldn't need to scroll to the bottom before you can turn off auto-refreshing.
A Mobile Mode that hides all images by default to increase load times would also be great, but then again I could see shill bastards turning that on so they don't have to look at horse pussy. Maybe add the ability to flag your images as "Load no matter what, even in mobile mode".
Pupper
Admin
No.5019
            [Read more]            
Anonymous
No.5025
5026
[Go to bottom] on mobile doesn’t work.
t. iShit.
But mobile has quick reply box so that’s a bonus.
Pupper
## Admin
No.5026
5028
>>5025
>[Go to bottom] on mobile doesn’t work.
Looks like Apple chose to do their own thing, since iOS 8, and break RFC 1738. And because they are as big as Microsoft was during the IE era (especially on mobile) they get away with it with good help from kool-aid and fanboys. I'll do some testing and try to implement the workaround to force Apple to acknowledge there is an Anchor link in the URL.
( https://stackoverflow.com/questions/22643032/anchor-tag-doesnt-work-in-iphone-safari )
Anonymous
No.5028
>>5026
Thank you for answering, and good luck on the workaround.
Also, fuck apple.
Anonymous
No.5029
5030 5038
Hey Pupper, i've noticed a Bug. the "Go to top" Button at the bottom of the page does nothing,at least it doesn't for me.
Anonymous
No.5030
5031
>>5029
>It works fine in Firefox.
Anonymous
No.5031
>>5030
Im Using Chromium based browser.
Anonymous
No.5032
5033 5038
I don't like that files have a random hash as it's default file name, rather than chronologically increasing numbers. it makes downloading something and leaving it in a file easy because chronologically increasing numbers means files will be chronologically ordered automatically. as of right now, there is no chronological file name if a file has a user-given name making file organization even harder. I don't like it, and want it reversed.
Anonymous
No.5033
5034
>>5032
>there is no chronological file name if a file has a user-given name making file organization even harder
I prefer the random name, it makes it harder to our adversaries to keep track of the posts. Also it has the advantage to avoid to rename every file before to post it.
Anonymous
No.5034
5035 5038
>>5033
>post tracking
for all practical proposes a unique hash is hardly different from a unique number. searching either will yield the same results, in finding a specific post. If the date of a post is already listed, a chronological name is worthless. and I genuinely don't understand the second part of your post. I understand the preference. But the minimum I would want is an alternative download method like what 8kun has. But of course, I prefer how /mlpol/ did it like a week ago.
Anonymous
No.5035
5036 5037
>>5034
This reminds me of faggots wanting to dig archived threads. Why would you need to do that?
Anonymous
No.5036
>>5035
never said anything about archives, but as I said. I like how because the files are named sequentially, it makes downloaded files sort chronologically automatically, making file sorting very very easy.
Anonymous
No.5037
>>4562
It is absolutely trippy seeing my post from over a year ago in an active thread.
>>5035
Sometimes files get lost and we know we can find them in an archive due to unique filename or unique keywords in certain posts. Like map files, for example. Or a prediction that came true. Or an info dump. Or just lulzy conversations.
Pupper
## Admin
No.5038
5043 5057
>>5029
I'll check it, I know some browsers for some reason don't support Anchor links (RFC 1738). Or it could be that they don't like the "Last 50 posts" link format. Does this happen on "View all posts" pages or only "Last N posts" pages?

>>5032
>random hash as it's default file name
The Hash is an hash of the content of the fille so not a random hash. The reason this is done is so we don't have to save multiples of the same file.

>>5034
> But the minimum I would want is an alternative download method like what 8kun has. But of course, I prefer how /mlpol/ did it like a week ago.
So an link similar to "save as original filename" that downloads and saves files as the timestamp of when the post was made?
Anonymous
No.5043
5044
>>5038
Is it possible to align text to the right? I think I remember seeing it done before but I might also just be mistaken.
Pupper
## Admin
No.5044
>>5043
>Is it possible to align text to the right?
If you mean like a markup code for right alignment (similar to bold) not at the moment, but I will look into adding it (without breaking too much with css.
Anonymous
No.5045
5047
1587690380.png
Lmao, this is what happens when I click [Embed], then shrink it back down.
Pupper
## Admin
No.5047
5048
>>5045
I'll have a look at the javascript to see what might have happened.
Does this happen each time on your browser, or was this a one off? If happens each time what browser do you use?
Anonymous
No.5048
5049
>>5047
Each time. Safari browser.
Pupper
## Admin
No.5049
>>5048
I assume it is only on Twitter embeds this happens.
Anonymous
No.5057
5058
>>5038
No The "View all" and "Last n Post" Works fine. its the "Go to top" As well as the "Go to bottom" Buttons.
Pupper
## Admin
No.5058
5063 5067 5068
>>5057
I'll do some investigation to see if there is a workaround (I haven't gotten to it yet). Worst case I'll add some javascript that does the scrolling. I assume it is Safari browser (only one I can remember that don't work as of now with the "Go to top/bottom" links).
Anonymous
No.5060
5061
Just a question, but can I get an ETA for getting the archive back up? Thanks for doing the update btw, it all looks nice
Pupper
## Admin
No.5061
5062
>>5060
The old threads can be loaded now, only thing that is missing is a way to browse through them.
Aiming for better than what was, but as an quick fix I can create a list similar to how it was in old code while I work on a better system. So by tomorrow I should be able to have a simple list up and running.
Anonymous
No.5062
1588153794.png
>>5061
Thanks m8, I look forward to seeing it! Take a picture, friendo
Anonymous
No.5063
>>5058
Im Using a chromium based browser. Iridium