>disabling JavaScript




Mon  drink & fap  all day
Tue  tea & keiki  all day
Wed  fap & drink  all day
Thu  fap & drink  all day
Fri  Frid/a/y Night Faggotry  8 PM EST
Sat  LoGH ep41  20:00
Sun  drink & fap  all day
--/cr/ Schedules--  ---Topics---  -EST-
Every Day  30s poses  TBA
Mo/Thr/Sa  Environment Design  18:00
Tu/Fr/Su  Life Drawing  18:00

/g/ - Technology & Programming


GIqSnDsEx(1.5 MB, 1600x900)discovery3.jpg
AnonymousExpand] [Last 100
Hows V2 coming? beta release in december right?
>>1311955
Anonymous
sometimes it says 2/3 users are on when its just 1
>>1621998
Anonymous
what permissions should the meguca user have? all 777?
>>1621996
Anonymous
>>1621368
New IPs take a few minutes to timeout and reflect in the counter.

GIqSnDsEx(181 KB, 764x1080)As109【1226647】 - 私を殺しなさい (11805900) .jpg

「Breaking Things General /btg/」

AnonymousExpand] [Last 100
>>1219728 >>1505050 >>1615413
Anonymous
And it does not work. Looks like the paths are botched.
Anonymous
Hold, you mean the C dependencies are not statically linked into the binary?
>>1618241
Anonymous
>>1618241
And more error with that. Yeah, not for today.

GIqSnDsEx(15 KB, 540x420)DW.gif
AnonymousExpand] [Last 100
so i have meguca running on a server and have a homepage i made, is it possible to add more pages of html/css so the homepage leads to website.com/about with html/css i make?
Anonymous
Yes, but that requires programming.
Anonymous
Hmm, or if you are using a reverse proxy like Apache or Nginx, could just add the static page routes there. Yeah, that would be easier to do.

GIqSnDsEx(417 KB, 760x920)アシュ - 仲良しこよし (52778733).jpg

「Koi Pixiv Extension」

AnonymousExpand] [Last 100
Thread for the future updating of the Koi Pixiv Extension.
I now have ~70 weekly users on it so I feel I should start nailing out the bugs (the file extension bug in particular)
As well as hopefully, maybe, adding a "manga viewer" that will allow for viewing the many pages of a multi image submission and being able to choose which of those images to download.
Life and love is a work in progress.
>>1360951
Anonymous
>>1616778
>idiot bubbles
Can you make one of those for meguca, if you have the time?
Anonymous
GIqSnDsEx(570 KB, 1000x1000)斗伝 - 古明地中心まとめ(53186881) pg16.png
The best way to manage that is to make everything you want people to use turned on by default.
And then hover an idiot bubble pointing to it.
>Point to the wrench in the corner
>Point to Sn and Iq and Ex above images
>point to the X in the tab to tell people to gtfo
Anonymous
GIqSnDsEx(782 KB, 1500x971)はすの - 誰も愛せないなら(50393895).jpg
That said, I don't actually know how to make those things and I think it'll be vastly easier to just HIJACK the current UI as I've been doing and edit the text to explain how to use it.
I also need to make an update that tells people what submissions are multi-image before they click to download.

GIqSnDsEx(85 KB, 863x485)smallwall.jpg

「sdasdas」

AnonymousExpand] [Last 100
Anonymous
asdasdeasdsadasd


GIqSnDsEx(119 KB, 797x1125)しゃも煮 - 最近の3 (26703593) 4ページ.jpg

「Binary network protocol」

AnonymousExpand] [Last 100
First the basics ow websockets. Once everything is established, websockets come and go both ways in frames. I am thinking of having all our frames be binary. Ideas so far.
>first byte determines message type (uint8)
>parsing can be done by itteraring a switch statement over an array (for complex structs with optional fields)
>fixed format messages can just be passed to a function

More on parsing structs with optional fields:
>in optional field structs, each field starts with a type byte, similar to messages
>if a field is constant length, it can be followed by another field just like that
>if a field is dynamic length (strings, slices) it ends with a null byte (this is probably problematic and needs more thought; maybe defined field order something)

That is all I have for now. Implementation on the JS side can parse the ArrayBuffer directly returned by the websocket into a DataView or typed array. I have not looked into the two API yet. Any thoughts?
Anonymous
I have an idea, instead of all these optional fields, why not have a post message type and post with image message type. And a separate image type. In each of those, a certain field would have a certain position in the array. If a field is empty, it's length uint16 will be zero. I think this will save us space and complexity. Or better yet, we can have a defined order of fields. At the start of the message there will be a byte or so that specifies which fields are present in the message. So much optimisation could be done.
>>1582949
Anonymous
Some optimisations to the Image struct can also be done. We can have one image field, that stores the extension // name of the image resource and make mid thumbnails mandatory for all images. Src, Mid and Thumb can all be derived from Image and Ext, Ext can be a uint8, instead of a string.
I don't this will be easily migratable from the current meguca, but oh well. Or the migration script would have to be pretty complex.

Now the optional fields on Post are Name, Trip, Email, Auth, Backlinks and Links. That's 6 and can fit nicely in a byte.
Image has only the Length field optional after refactoring, so that's not much of a concern. In fact the seventh byte inside the optional // the 7th bit inside the optional field byte can be Image presence. So an Image will be tacked on to the back of message and have no optional fields of itself. An empty length can just be null. at the end of the struct.

This is so much fun figuring out.
Anonymous
Right, JS now has binary literals. Forgot about those.
>>1582949
Anonymous
I have decided to stick to JSON strings for now, until protobuf gets an official JS implementation (currently in alpha). When it does, I can switch both the Websocket and JSON APIs to protobuf.

GIqSnDsEx(105 KB, 1080x1350)NotGhoulTears.jpg
AnonymousExpand] [Last 100
how can i have a banner only appear on one board? I know its going to be fixed in Meguca V2 but i really want to hack something together to make it work now. different boards on my instance are accessed through different domains i was thinking i could use that to make the banners know which one to load?
>>1490235 >>1502421
Anonymous
>>1490194
Can you show me your idea in mockup?
I'm author of CatChan(>>1355772) and I'll add "a board select function from banner" 2-3 months later. If your demand is similar to mine, I'll add it with priority.

GIqSnDsEx(127 KB, 887x1122)687474703a2f2f74616c6b732e676f(…).jpg

「Go thread」

AnonymousExpand] [Last 100
Learning, transitioning from Node, etc.
>>1351098
Anonymous
First thing that entered mind was unsafe but i have testing laptop in room so i'll try then
Anonymous
Ah, I see. So when encoding a struct to JSON explicitly nilled values are treated as empty, with the "omitempty" tag. https://play.golang.org/p/En2HJZCy6o
Anonymous
https://twitter.com/brianhatfield/status/692778741567721473
This is looking really good

GIqSnDsEx(70 KB, 1280x720)cc839d9c.jpg

「CatChan」

AnonymousExpand] [Last 100
Hello, I'm author of CatChan, which is a script which can generate cross board/domain catalog with tag filter. Do you admin want meguca to be supported by this script?
>>1502421
Anonymous
I'll try the last part of my sentences

About 3: Use boards group.
3-1. CC -> settings -> Board Group
3-2. Write in it, for example,
meguca_all,meguca/a/,meguca/an/,meguca/cr/,meguca/g/
mecuga_4chan_a,meguca/a/,4chan/a/
3-3. Select them, for example, meguca_all (Pic.7)
Anonymous
I'm going to make a bug report to chromium projects about memory leak, and its reproduce code contains url of meguca. If you have any inconvenience with this, let me know in 2 days. It's easy to replace it, but then I must re-check reproducibility.
>>1431227
Anonymous
>>1431227
I reported the bug. You can see it in following url if you want. Anyway, thanks.
https://code.google.com/p/chromium/issues/detail?id=581335

GIqSnDsEx(66 KB, 640x1024)CWgnpNtVAAA5zyr.jpg

「ExLinks」

AnonymousExpand] [Last 100
Because you know I only code when it helps me fap.
I got the majority of it working for meguca already.
All I need now is to make it work whenever a post closes rather than just on page load.
I should test to see if it works that way on 4chan already now that I think about it.
Maybe the functionality I need is already in here.
>>1402412
Anonymous
>>1403415
Download Tampermonkey/Greasemonkey
Then Download ExLinks for it (google it. you'll find it)
Then replace the whole thing with>>1403094
Anonymous
And now I'm actually noticing a bug with it.
Probably due to more ReadingSteiner shenanigans.
Anonymous
>>1404386
It's there, so you don't have to reload the page on every clicked link.