[ home ] [ jp ] [ snow / tan ]

/jp/ - Mysterious Thoughtography Collection

Password (For file deletion.)
- Please read the Rules and the FAQ.
- Supported file types: JPG, PNG, GIF, SVG, WebM, MP3, OGG, MID/MIDI
- Maximum file size: 20MB

[Return][Go to bottom]

File: 1468382079908.png (834.34 KB, 1200x1080, boys who program.png) [ IQDB | SauceNAO ]

 No.6550[Last 50 Posts]

Does /nen/ know how to program?


Yeah, the how was the simple part. It's the what that continues to elude me.


File: 1468384851145.png (158.73 KB, 400x400, computer.png) [ IQDB | SauceNAO ]

Only a little bit of self-teaching.

Never bothered making a real program or anything. Just simple scripts and games.


Yes but I never do.


i wish i didnt


are you me? I'm so burnt out on the idea of programming I wish I never got into this field


Yes I know how to program a little.

Currently reading automate the boring stuff with python so I can automate a couple of tasks.


Why don't you just program an AI to program cute anime games for you?


We had programming classes during one year in high school but I was really bad at it. We had to write a bunch of different scripts and hand them in at the end of the year but I just asked one of my friends for his and just changed the author to my name in all of them. Another friend of mine did the same but forgot to change that line in the scripts but our teacher didn't even notice. Fun times!


File: 1468427333951.jpg (131.34 KB, 1280x720, 135545057430.jpg) [ IQDB | SauceNAO ]


File: 1468460108843.png (464.09 KB, 1188x897, 1468068315383.png) [ IQDB | SauceNAO ]

I took various classes that covered everything from C to java to matlab, but I would not be able to assemble any useful program without referencing google or a textbook for every line I typed. Programming is one of those things where I think that pretty much everything I could do has already been a hundred different ways, most of which are better than what I've come up with. The only programs I can think of that haven't been implemented some way or another are far too complex for me to write myself.


Can any of you tweak this script a little?


All of the comments and UI are in Chinese, but that's okay. The script gives the user 4 menu options on a pixiv artist's page. One of these options dumps a list of direct links to each image so that you can use another program to download all of them at once. However, instead of just a list of addresses in plain text, it displays them as clickable hyperlinks like this:

<a title="a_useless_title" href="http://kakashi-nenpo.com/the_actual_useful_link.jpg">a_useless_title</a>

This means I can't kopipe them into jdownloader without lots of messing around. I'm hoping one of you could tweak the script so it just outputs a list of each address as text instead of a hyperlink.

Line 1248 is what prints the variable, "PUBD_dLink"
Lines 1390 to 1430 are what define PUBD_dLink

… i think.

It's okay if no one is interested. I'm sorry I'm so useless. Please have a nice day.


File: 1469214190976.jpg (48.42 KB, 369x418, d.jpg) [ IQDB | SauceNAO ]

Something like this?


I don't really know javascript so there's almost certainly a better way to do it, but I think that solves your problem.


you could do it really easy with a regex i dont know any javascript though, or if it even supports regexs


File: 1469221026724.jpg (127.92 KB, 1280x720, 1378541603278.jpg) [ IQDB | SauceNAO ]

Yes, I study computer science at university. I used to consider myself a competent programmer but these days I only program what I must and don't enjoy it as I used to.


It works! Thank you so much, I really appreciate it. I'm so sorry for wasting your time on something so silly. Thanks and sorry.


File: 1469371041940.jpg (79.51 KB, 673x326, exclamation point.jpg) [ IQDB | SauceNAO ]

I learned about regexs the other day, I know what regexs are when I didn't just a week ago and I always rondered what they meant when I got an error involving it, but now I know.


File: 1469381891529.jpeg (335.83 KB, 1280x720, 1443193570316.jpeg) [ IQDB | SauceNAO ]

theyre pretty cool


File: 1469494917045.png (319.13 KB, 682x399, qXx5o94.png) [ IQDB | SauceNAO ]



File: 1469593794741.jpg (129.44 KB, 698x899, 1337991943438.jpg) [ IQDB | SauceNAO ]

I should get back onto python.


File: 1469618028209.jpg (116.21 KB, 1280x720, [HorribleSubs] Love Live! ….jpg) [ IQDB | SauceNAO ]

I'm working on a small program that is supposed to take the html source of a page that you can only access after a login then look for a regex within it then copy and paste that regex to a notepad file but it was total hell to code because the requests module doesn't detect I'm logged in and the new firefox doesn't work with selenium so I had to download chrome and then download some drivers and then when I finally did it the script takes a couple of seconds to load which is virtually the same time it would take for me to copy-paste the regex by hand into a notepad.


you cant parse all html with a regex, you should try to use an html parser next time instead, thats what theyre made for. https://docs.python.org/2/library/htmlparser.html
or whatever your language of choice has available



I figured there was probably a faster way to achieve my goals so I went on a fool's errand to understand all of this for two whole days only to come up with nothing. All the examples I find for html parsers involve getting a tag or some other piece of html code or just stuff that extracts whole text instead of something specific. What I want is very specific and changes according to some input at the start of the program. And what I currently have works. The only way this could probably become any faster is if I learned how to use requests and urllib to insert and send the login information and deal with everything in plain text in the console instead of using selenium but I'm too dumb for that yet.

So yeah, I'm going to continue to use regex for this specific program to the despair of every programmer worth his salt.

Don't bother wasting time trying to help me, I'm just blogging…


Oh yeah and I at least got it to work using firefox rather than chrome.


File: 1469728105212.png (497.99 KB, 600x780, 1464851875630.png) [ IQDB | SauceNAO ]

Don't feel bad, you probably don't need to parse anything. You are just looking for a string that matches a pattern in a longer text, right? That's what regexes are for!

You only need to parse if you want to work with the structure of the HTML instead of just looking for a textual pattern. Like you want to extract the value of the "href" attribute of every "a" tag that is the third child of a "div" with the "class" of "button" and similar hard tasks.


>You are just looking for a string that matches a pattern in a longer text, right? That's what regexes are for!

Only if the pattern is regular…


i just mentioned it since lots of browsers accept html that will choke a regex parser, i usually use regexs too since theyre faster


File: 1470008799033.jpg (583.19 KB, 1280x1418, 1462411880511.jpg) [ IQDB | SauceNAO ]

Yosh, now that I've got Linux installed (in a VM) I'll surely be able to stop holding off learning to program!


あらあら it's "yoshi" よしよし


File: 1470269803805.jpg (321.57 KB, 900x1095, cbf3016fcb10b9614e64e2d0ac….jpg) [ IQDB | SauceNAO ]

yeah, but the 'i' is kinda clipped alot.
Im trying linux stuff too, I actually installed it for real, though im not trying to learn programming more because of it.
God though the fish shell is SUPER cool


New windows 10 includes the option to run integrated Linux stuff now so no need for a VM anymore!


but then you'll be using windows 10
windows 10


Linux can communicate directly with hardware and can be installed directly onto the disk so there never was a need for a VM!


Is it easy to write programs that can control or read data from parallel or serial ports on old computers that still have them? I remember trying to figure out how to control a parallel port on windows and you needed some kind of bullshit to get around the nanny features, so I never really got very far on the project.


I've never done that but Unix was basically designed for writing and running C programs, and that sounds like something you'd do in C.

I googled and found this. http://tldp.org/HOWTO/IO-Port-Programming.html


anyone wanna be my programmer friend and talk about programmer things?


I'd be your programmer friend but I know nothing about programming!


I can be your networking friend, but I'm not very good at networking yet. Sometimes I also write scripts to do stuff though.

Do u wnt 2 b fren?


File: 1473035935457.jpg (134.04 KB, 850x850, sample_90169a1eb9231f45e1f….jpg) [ IQDB | SauceNAO ]

Can this thread be for other computer stuff too? ω`)
I got a netbook that a relative found on the side of the road, having fell off a truck with debian on it
I name all my computers after 2hus- what touhou should this little thing be, /nen/?
My desktop is Yuuka already, and my laptop nitori, and it can't be yukari unless I Install void on it because I want to call something with void Yukari for some reason.
I think I'll use it to play with IPFS or something.


Name it Kogasa! It seems fitting for how you got it.


File: 1473038216422.png (110.02 KB, 350x499, Kogasa.png) [ IQDB | SauceNAO ]

Ah! Thats a good idea.
And kogasa is very, very cute, isn't she?


File: 1473040675190.png (778.17 KB, 699x1035, 1472367771276.png) [ IQDB | SauceNAO ]



>netbook that a relative found on the side of the road, having fell off a truck

Whoa that's super cool dude, I've always been a fan of "dumpster tech", especially cheap and junky netbooks and making them work like they're new again

you could try making it into a small and cheap server


Getting really frustrated with HTTP requests lately.


which should i learn first?
c or c++






Is python worth learning? Is it very limited compared to more "professional" languages? I've been itching to putz around with ren'py ever since I rediscovered that I downloaded it a year ago and wrote a couple lines of text before forgetting about it.


It's pretty good if you want to write up a quick script to automate something.


Its good for small projects which is most of one you'll do on individual projects. It has really good library support too


File: 1473574903868.jpeg (152.09 KB, 1280x720, image.jpeg) [ IQDB | SauceNAO ]

ive wasted about 10 hours the last two weeks trying to figure out why the thing im making wouldnt work and it turns out its a 3 year old bug in the library im using. somebody submitted a pull request a few months ago, but they even admitted that their fix the bug in my use case. ugh.


that it doesnt fix the bug in my use case*


i dont want to program…


if you dont enjoy it dont bother!


File: 1482178904442.png (467.8 KB, 728x518, 1316750030328.png) [ IQDB | SauceNAO ]

I'm going to do a refresher on Assembly and HTML5.

I tend to forget things if I don't practice it often.


I made a shell script that makes anime screenshot filenames a little prettier… h-here I go

for x in \[*\]* ; do
xx="$(echo "$x" | cut -d" " -f2-)"
mv -n "$x" "$xx"

It checks for filenames starting with sub group brackets and then removes them

Please give me feedback!


File: 1491445607696.png (1.51 MB, 1280x720, 1411157498083.png) [ IQDB | SauceNAO ]

good job


File: 1491524807584.jpg (74.83 KB, 553x689, resenware.jpg) [ IQDB | SauceNAO ]


wow lots of dumb nerds started flaming him i feel bad


I'm confused. It doesn't seem like he ever actually distributed it maliciously. Is he really getting blamed just for developing something that could be misused and not pointlessly obfuscating the source? That is pretty dumb.


That Twitter didn't even develop it, just posted about it.


I know. I was talking about the guy that did write it. People were acting like he actually did something malicious when all I can find is that he posted some silly malware he made on github and it may have actually been used maliciously.


well those people are 馬鹿s. He even posted a program to disable it.


I don't see any flaming there.


What type of mouse should I get nenpo? Thinking of a bluetooth one to save USB ports. The Logitech MX Master looks good.


I use a wired mouse because I never move my computer so the cord never gets in the way.


The Logitech M500 is nice if you don't mind having a cord and don't need a ton of extra buttons for gaming. I'm able to copy/paste and move forward/back with the mouse, so it's very convenient for web browsing!


WWDC was good, lots of cool stuff. Apple's new filesystem is interesting, and iOS 11 improves a lot on the iPad


they have some really cool stuff but also a lot of silly ideas. i guess thats what it takes to always be cutting edge though


There was a Star Wars thing too!


Interested to see how the iMac Pro is going to fare, everybody is saying it's going to be an overheating mess because of the insane specs and thin design.


File: 1496751991950.png (1.04 MB, 702x1248, ios_11_homescreen.png) [ IQDB | SauceNAO ]

Yes, they also boasted about 2013 Mac Pro's cooling and that didn't turn out well at all. I hope the iMac Pro doesn't have the same problem.

I thought it was really awkward…

Nothing really exciting about macOS High Sierra other than APFS so I'm not going to install the public beta when it gets released.

iOS 11 has some cool changes. Files app seems great. I like how the dock doesn't have app names anymore, and how some of the redesigned icons look like. Interested to see how the new notifications/lock screen feels like but again I'm waiting for the stable release instead of trying out the beta.


That's okay if its awkward, I just like Star Wars.


Very ugly and un-graceful script to sort anime screencaps:


for i in *.jpg;
ii=$(echo "$i" | tr "_" " " | cut -d"]" -f 2-);
mv "$i" "$ii"

for u in *.jpg;
uu=$(echo $u | tr "-" " " | sed -n "s/\([0-9]\).*$//p");
mkdir "$uu";
mv "$u" "$uu";

This script is meant to work across different types of anime filenaming schemes, for example HorribleSubs are usually

[HorribleSubs] Aho Girl - 02 [1080p].mkv

But Coalgirls releases are usually like


So I made this script to give the same results either way.

Obvious issues at first glance:

* The sed but cuts off filenames where a number begins, so it will cause problems with anime with a number in the title, such as "S2". I can't think of another way to produce the same results with a coalgirls filename as a HorribleSubs filename though so I'll have to mull it over for a while to come up with a better solution

* Doki tags their filenames with parenthesis instead of the regular square brackets so this won't work with them

* I don't know regex and the part with sed was basically produced through trial and error, so the scripts regex is probably a complete disaster to anybody who knows it


Was going to post my screenshot script, but it seems it's too long. so here's a pastbin link

So basically It's written in Bash. Therefore Windows, zsh, and dash users beware. Works on any video file type. It can do Screenshots. It's an option though. It has a lot of option really



Here's my lazy Shutdownn script. I added an if else argument to it in case I want to execute a program prior to shutdown. 15 lines.

#!/usr/bin/env bash

declare -r time="$1"
declare -r options="$2"

if [ -z "$options" ];
sleep "$time"
sleep "$time"


I started college (again) today!!

I am learning C# and Java, /nen/min is gonna teach me all about them so I ace all of my classes!!!!!


who wants to make nennenquest


What's nennenquest??


Whatever we want it to be!


File: 1500343098873.jpg (97.05 KB, 1280x720, mpv-shot1318.jpg) [ IQDB | SauceNAO ]


Isn't it a bit weird to start college in july?


/nen/min i try to learn java and c# but they are not frenly i just wanna go back to bash and my java teacher is japanese and he not very nice he want curly bracket start on same line, why not new line?? it look dumb on same line i hate it, why they do this to me???

/nen/min pls responsse

is not weird many people start is up to college to decide when start and is probably different around whole world, why you so quick to tell me i am weird? is rude!!!


I don't like Java, it's really restrictive and the purists are really violent people.

I've never heard of a good CS teacher before anyway.


alright don't reply to me again if you write like this intentionally


Wow rude!


i like java. java 8 gave it lots of the stuff it was missing to be enjoyable to write in


If english is your second language you should take extra lessons here



what are the new features you like?




The only big changes in it?
* lambdas, and alongside it functional interfaces
* Streams


I don't like programming, I get really focused then I can't sleep the whole night.


Why is your teacher Japanese?


I'm trying to teach myself python. It seem similar to bash in terms of syntax. ATM it's only a lake of motivation stopping me.


Because he's from Japan!


File: 1500655215290.png (1.06 MB, 1280x720, [HorribleSubs] New Game!! ….png) [ IQDB | SauceNAO ]


i like you more!!


I saw her first you c u t i e


umm, you shouldn't say those sorts of mean things to your /nen/frens…


I don't if that will be enough to make Shizuku and Nene get along.


too late shes mine and asagohan would never cheat with a meany



You will never be able to satisfy her with sex like I do you c u t i e


I give her love, compassion, and empathy like you never could irregardlessly of that


That's why she's in my bed right now you c u t i e


ban this meanie nenmin!



But can either of you program? If not she may not want you.


File: 1500752479758.png (61.3 KB, 270x354, jyavasucuriputo.png) [ IQDB | SauceNAO ]

i can program


nenmin dont filter the c-word just make it an auto ban


i think it was the b word not the c word


I wonder if the b-word gets filtered now!

c u t i e
she's a real c u t i e
you're all c u t i e s


hmm, the b-word plural goes a bit weird, but it's still okay!


File: 1500781347724.png (1.03 MB, 752x1053, 5a55f24798a122a08b5735582c….png) [ IQDB | SauceNAO ]

Moon c u t i e s.


Now every time someone calls me a cutie I will be afraid that they are secretly insulting me…


Please no. I used the c-word a couple a days ago while drunk. Think of your drunk friends.


you shouldnt it no matter the circumstances


The new filter is c u t i ein'!


im going to learn c like nene and asagohan did!


I thought Nene learned C++. Well if you learn C++ you've already learned C so I guess it's okay.


File: 1505433367126.png (499.02 KB, 1280x720, [HorribleSubs] Saekano S2 ….png) [ IQDB | SauceNAO ]

Whoa what's the word?? It's a P word?


im going to learn c++ like nene and asagohan did!


>if you learn C++ you've already learned C
misinfo misinfo do not spread!!


hehehe just try and stop me


File: 1508696902032.gif (2.93 MB, 540x304, lewdfit.gif) [ IQDB | SauceNAO ]

Frick OOP i can't understand it! Java sucks, C is awesome!!!!


all languages suck


Do you need help with something?


should i use JSON or XML?

what does kakashi-nen/prog/ say?


xml should be left to die. yaml json or protobuf is good.
protobuf is faster than json but loses some readability.
yaml is less annoying to hand-edit if its for like a config file.
json is an in between I guess with better support than yaml.

realistically you're going to use a library to parse it into a data object anyways so it doesn't really matter, but I personally dislike xml


JSON, but if it's simple enough, CSV.


but i am from old times, all my favorite geemus just used CSV or XML files…


File: 1511659681607.jpg (169.41 KB, 1920x1072, [HorribleSubs] Himouto! Um….jpg) [ IQDB | SauceNAO ]

what is /nen/'s take on chromebooks


You won't be able to run anything very intensive on it, it's fine if you need something small to browse the web but not to program, you'll also need to change the OS.


it also cant probably stream hd. its really only good for typing emails and documents


You can also post cute things on /nen/ with it!


File: 1516329702248.jpg (163.17 KB, 453x500, question mark youmu.jpg) [ IQDB | SauceNAO ]

What's the point of websites cataloguing certain information if you can't query it in their database?

For example, MAL catalogues the source of what each anime series is based on (e.g. light novel, manga, original) but you can't run a query searching or filtering this information.

Do web developers just get lazy with their php database integration or are there sometimes technical considerations that they make??


they were probably too lazy to write a prepared statement and a rest endpoint for it. if you bug them they might add it but it probably didn't cross their mind.


File: 1516672555030.jpg (116.24 KB, 1067x551, tumblr_oo56vv8dnH1qdvrdyo2….jpg) [ IQDB | SauceNAO ]

I lost my BIOS password and there doesnt seem to be any way to recover it. Thankfully the recovery OS provides a kind of easy way to automate brute forcing it, very slowly, but it's kind of old and it's not clear if its even working. Manually entering the possible passwords would take weeks or months so I'm very nervous. Blogging about this on nen because its too embarassing to talk about in public


I've always been scared of doing those NSA proof security things in case I forgot the password… I hope you can break the password!


Can't you just take the CMOS battery out and wait until it resets?


No, it's stored in the motherboard and I can't open it anyways, it's a Macbook Air.


File: 1517079263259.png (291.99 KB, 741x567, __daidouji_tomoyo_kinomoto….png) [ IQDB | SauceNAO ]

I always forget how to do this so I'll put it here

Make webm start + time:
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 1M -ss 00:01:50.0 -t 100 out.webm

Make webm start to end:
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 1M -ss 00:01:50.0 -to 00:01:55.0 out.webm

Make webm small:
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 320K -ss 00:01:50.0 -t 100 out.webm


File: 1517081150807.jpg (499.77 KB, 966x1137, __kaguya_luna_kaguya_luna_….jpg) [ IQDB | SauceNAO ]

What is this gibberish
How do you make a webm (in terms Kaguya Runa people would understand)


ffmpeg is a program for doing video encodingy stuff you run from the command line.

if you dont want to figure out the command line just download one of those GUI wrapper + ffmpeg webm converter programs


Is command line command prompt? I just download ffmpeg and put that stuff into cmd?


First you install Gentoo. Then install ffmpeg and copy paste that stuff.


i'll post a guide please wait warmly.


File: 1517089729339.webm (10.35 MB, 1280x1024, webm-guide.webm) [ IQDB | SauceNAO ]

You can add ffmpeg to your path, but thats a little complicated for someone new to the command line so I'll skip that.

(Sorry my cmd is broken and uses yen symbols instead of backslashes, I don't know why, wherever you see me type a yen symbol, use a backslash)
Everything after 1:24 is me just waiting for it to finish processing, so you don't really have to watch after that.

1. Copy ffmpeg.exe to folder with video
2. Open cmd (Search for cmd in the start menu)
3. Change directory to folder with the file(use "chdir")
4. Run ffmpeg with the right start and end times for your webm
"-ss START" is the start time in the format "HOURS:MINUTES:SECONDS", so if you want it to start the webm at 20 minutes and 2 seconds into the video you would use "-ss 00:20:02".
"-t DURATION" is the duration after the start you want it to go for. Start with small numbers at first to make sure you have your start time right, since even a 17 second webm can take a while to make as you see.
"-t 10" tells ffmpeg you want it to create a 10 second webm starting at your "-ss START" start time.
"-b:v 1M" tells ffmpeg the bitrate you want to use for the webm. Smaller numbers makes it process faster, with a smaller file size but the quality ends up worse. The default looks pretty terrible(if you leave this part out of the command ffmpeg chooses the default which is really low)

Once you know "START" and "DURATION" you should use:
ffmpeg.exe -ss START -i filename.mkv -c:v libvpx-vp9 -b:v 1M -t DURATION out.webm
(Make sure to replace START and DURATION with the right numbers)

If any of this is confusing feel free to ask any questions!

Final product!:


>You can add ffmpeg to your path, but thats a little complicated
Is Windows really that dumb because it's one command in unix.


It's just
"set PATH=%PATH%;C:\ffmpegdir\bin"
but if you add an extra space, or forget a semicolon or something you can mess things up and its difficult to fix, which I assume is the same problem on linix.


also for someone new to CLI I think its best to keep to as few commands as necessary (I hope henri can figure out what I meant to do with chdir because thats probably pretty confusing to someone new)


Your cmd isn't broken. The '¥' is just there because you're on Japanese locale, or otherwise somehow changed your code page to 932. For whatever reason the identifier for '\' was considered the best place to put '¥' in the Japanese code page.


This is why you use cygwin.


File: 1517094332467.png (948.19 KB, 1186x1292, ffmpeg.png) [ IQDB | SauceNAO ]

a couple of notes!

- if you don't want to put ffmpeg into your PATH you can cd (change dir) where your ffmpeg.exe is, write ffmpeg.exe, and just drag and drop the input file into the cmd prompt (technically i guess you could also drag and drop ffmpeg.exe into cmd)
- you don't have to calculate the duration yourself if you use -ss and -to
- you can use milliseconds in HH:MM:SS.xxx format, e.g. -ss 00:01:03.450 -to 00:01:15.250. you can see milliseconds in mpv if you click the time elapsed text

pic has my personal ffmpeg notes but they might need some updating because i haven't looked at them in a while


I do it that way because for big mkvs
ffmpeg -ss 00:20:00 -i … -t 15
seems much much faster than
ffmpeg -i … -ss 00:20:00 -to 00:20:15


File: 1517095885804.png (713.16 KB, 970x1551, fb303fca51490b49a470b04e93….png) [ IQDB | SauceNAO ]

No need for Cygwin now that we have Windows Subsystem for Linux[1]

[1] https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux


i put off the free windows 10 update for too long now im abandoned on windows 7…


Oh mine does that as well, I never realised that was because of my locale. I thought it was just some weird thing and that it did that for everyone


Does the yen thing make a difference? \\\\
(these are currently visible as yen)
Sometimes it shows as the yen symbol but is still a back slash.


What do you mean those are currently visible as yen? I thought the locale thing was just for things that aren't unicode. There's no reason why a backslash should look like a yen when viewing this site as far as I know.

But if a backslash does show as a yen it shouldn't make a difference, the computer still thinks it's a backslash, it's just displaying it to you as a yen.

At least I think this is how it works, I might be 100% wrong, so hopefully if I am someone will correct me


File: 1517097882690.png (120.63 KB, 888x1236, shift-rightclick.png) [ IQDB | SauceNAO ]

I also found an easier way. If you hold SHIFT and right click in the windows explorer it lets you open a command window right there.

Then you can just type:
ffmpeg.exe -ss START -i "filename.mkv" -c:v libvpx-vp9 -b:v 1M -t DURATION output.webm

inside the new command window, replacing START, filename, and DURATION with whatever numbers fit.


Woah I didn't know you could do that! How cool and useful!


Remember to tell ZUN and eroge developers to use industry stansard UTF-8 so pirates in the west don't have to go through this locale switching mess.


¥nen¥frens can't change directory。。。


i thought i'd try writing a quick demonstration of the monty hall problem all by myself in java and it took me a little moment and my program works fine but then i looked up an example on rosettacode and I feel really pathetic that mine isn't as elegant and simple as their example and I relied too heavily on cheap hacks to make it easier(harder) for myself.

i'll never be expert programmer like this. how will i make cute little anime games for my frens if i'm this bad? sighh


You don't have to worry about being efficient if you're not very experienced. Just make stuff and over time you'll get better at doing it more efficiently. As long as what you make actually works it doesn't really matter.
Nobody will see the ugly spaghetti code in your cute anime game anyway.


Are there any fun and easy to understand guide to start learning programming? The books I've tried so far has me losing interest quickly.


File: 1517340127129.png (1.5 MB, 2263x3606, 36f862fb0364277ca99bbec48e….png) [ IQDB | SauceNAO ]

Give Realm of Racket or Land of Lisp a try, but it depends on what you find fun. The most fun I had reading a programming book was with The Little Schemer and its sequel, but it's quite abstract and throws you into the middle things, so it might not be the best to start with.


I don't remember starting with any specific guide, but I do remember using Judo when I was around 10 years old, which is like Java for kids. I used it just for fun to make calculators (for circles and cylinders and stuff) and also little CYOA stories. I had a lot of fun with it but maybe that sort of thing would be too easy and simplistic for you and it didn't really teach me anything about OOP.

Perhaps fun is more dependent on what you want to get out of learning it. I think I learn best when I'm trying to do something specific - How do I do x? - because whatever goal I'm aiming for is the fun and rewarding bit, so finding out how to do it is really exciting and tanoshimi.


I had the same problem. It's hard to stick with it unless you have some kind of real goal to work toward. I guess this is where school helps, since you're forced to do assignments or else you fail.


I found beej's guide to C programming fun and easy to follow.


I don't even remember how I learned. There isnt that much to programming, once you understand branching, loops and variables. Then once you understand the basics of functional and object oriented its mostly just practice, and stumbling along until you figure out better/cleaner ways to make things. I will say that reading partway through an introductory book is important though, so you learn some jargon you can use to look up questions you have when writing programs.

Yeah, doing any of those daily programming websites is a good idea when you're starting out, since a lot of the problems I had were based on "you don't know what you don't know(and so you don't know how to look it up)".


Wow minasan thank you for all the ii responses. I will look into the recommended resources and the other advices are all very helpful as well. I suppose I have been jumping into the whole subject without much thought or purpose, I will carefully reflect on it. And certainly, being clueless of where to start is a huge problem.


File: 1517609240857.png (1.06 MB, 1376x768, nenfront.png) [ IQDB | SauceNAO ]

Plan /nen/


File: 1517612609881.png (42.67 KB, 300x450, 8035098df35037c4af8b972c85….png) [ IQDB | SauceNAO ]

Neat, a lot of the design concepts in Plan 9 are brilliant especially 9P. Apparently, even the CPU is a special device file that you can share on the network and other machines can connect to and use as if their own.


You forgot one of the most important parts, namespaces!
In plan9, the way a process sees the file tree can be modified on the fly, you can make files from one place appear somewhere else. And you can do this transparantly on remote files, it works the same even if they're far away.
That '9GRID' thing is a subrio(you can start the window manager again in a window, so you do that instead of 'workspaces') with some remote resources mounted in its namespace, so people using them can chat by writing to a file they can all see and write, for example. Or, you can create a specialized workspace for yourself, then start a subrio to work in, for it. I did that fiddling with fonts a bit.
You can do the same kinds of things big heavy messes like docker provide people, special environments that only see what they need to and dont conflict with each other, just from one of the basic principles the system was built out of.


File: 1517621996356.jpg (399.76 KB, 2000x2000, __miyamori_aoi_shirobako_d….jpg) [ IQDB | SauceNAO ]

I donut understand


Plan 9 is an operating system, like Windows 10, macOS or Android. Plan 9 has lots of unique features to connect your computer to other computers on the Network, including being able to 'share' your CPU (like your computers' brain, almost all processing goes through it). Then another computer can load it and use it like their own. A practical example of this would be loading a server's CPU onto your small netbook and then rendering a large movie on it, borrowing the processing power of the server while still rendering it locally on your own machine.


File: 1517624150241.png (946.48 KB, 908x908, 8uasjnwnpfax.png) [ IQDB | SauceNAO ]

wouldnt it be really slow to send the movie uploaded to the server then have it process and download it back?


No because the only thing that's being shared is the CPU; no data is actually saved onto the server to download back. Hosting and being connected to a CPU would use a lot of bandwidth though that's true, so its not really feasable to do that over the internet. Local networks (connecting to another computer on the same router) are plenty fast though with 10 gigabit becoming the standard on consumer hardware.


And the fact that you can share your cpu like that is just a natural extension of the fact that you can share anything on your system like that! And other systems can use what you share from yours as though it was on theirs to begin with. They just see files, it doesnt matter if they happen to be located somewhere else in the world.
This pairs with the fact that everything is a file. Your audio is a file. You could have internet radio by using someone elses /dev/audio



what if /nen/min had a table of checksums of his personal touhou image collection and /nen/ dynamically allocated a name based on the image checksum and only if it didn't match anything, then you'd get a random name?????


File: 1517630069735.png (866.78 KB, 857x1200, 1420524371758.png) [ IQDB | SauceNAO ]

Nenman knows to only use pngcute.



I think the most important is to just pick a book that seems cool and stick with it until you finish it. Many people seem to give up at the first difficulties or spend all time time trying to find the perfect book.


i dont think its important to finish a whole book. usually they have chapters that teachers will skip anyways, like dynamic programming, or using that languages database API



saving this link here in case anyone wants to learn a cute cake language


Why would you want to skip dynamic programming? (inb4 idk because I skipped it)


It belongs in a book on algorithms, not a book about learning a language. Its more useful and easier to learn it in the context of pseudocode than an actual implementation in a language textbook. You also will probably almost never see a problem that has optimal substructure(and isn't premature optimization, AND isn't handled by your library) outside of "coding problem of the day" type questions.


File: 1520545361499.png (342.58 KB, 754x1297, katyusha.png) [ IQDB | SauceNAO ]

I want to write a compiler!


You should start with something easier first


File: 1520585678672.jpg (148.28 KB, 1920x1080, [HorribleSubs] Slow Start ….jpg) [ IQDB | SauceNAO ]

I'm actually liking Unity why is Canonical killing it?????


File: 1520621725878.gif (985.99 KB, 400x225, c2e8197ddb3cb6ba7e76bf4018….gif) [ IQDB | SauceNAO ]

I'm not a beginner anymore!


Okay, so I've been using qbittorrent for a couple weeks now and I've found it to be awful for archiving.

If you have mixed paused and active torrents and then click "pause all" everything is paused, but when you click "resume all" it resumes even the stuff you originally had paused.

Really wish qbittorrent had a separate stop status/stop button like utorrent. I saw it was requested multiple times on github and the dev just shrugs that he doesn't understando the desire for it, sigh.

I've seen this sort of deadlock before with open source projects, where the devs don't personally see any need for something but there's obviously some set of the userbase that wants it. Even if the feature is something that would be entirely optional (as in, it wouldn't affect anyone that wouldn't use it), it ends up on an ultra-low-priority feature request black hole… at best.


I use tags to get around this


Would be much better if it allowed boolean searches on tags though. There's no way to select everything without the archive tag except by creating a tag or category that has all that stuff in it.


>I've seen this sort of deadlock before with open source projects, where the devs don't personally see any need for something but there's obviously some set of the userbase that wants it.
Well you can make your own fork! Just be sure to never fork GNU software, because it is harmful to the free software community by drawing attention and effort away from the GNU project.


File: 1520721184914.png (142.85 KB, 913x321, rms.png) [ IQDB | SauceNAO ]

Woah, Stallman-sama posts on /nen/?!


Remember to relicense your fork as GPL too!


I updated my greasemonkey and now i can't find my scripts where they go?!!!?????? AAAHH


Oh god it was terrifying, I roll back to older version and turn off automatic updates.

Why they always gotta break things? It make me sad…


how do i learn how to use git



you really only need to learn "branch", "add", "commit", and "push" and what they do


fetch, pull, and rebase too!


File: 1521712329066.png (775.54 KB, 1280x720, [HorribleSubs] ReLIFE - 15….png) [ IQDB | SauceNAO ]

You only ever have to do that if you're coding with frens…


Very cute post!


gonna uninstall that dumb android studio and install eclipse.

also gonna install vs2017 but is so big grr, the packages i selected make like 30 jiggas!!





The only thing that annoys me about this is that he acknowledges that it's shit, yet he'll still proudly charge 5 bux for it on steam. Does he have no shame?


The art is pretty, but yeah I agree that it looks like a flash game quality so I'm surprised people would pay 5$ for it


Because I've been having trouble with this the past few days:
Remember to use "-vf format=yuv420p" or "-pix_fmt yuv420p" because some media players(firefox and apple grr!!) are silly and can't do yuv444p yet(or maybe they can I'm not too sure but 420p works so I'm sticking with it from now on https://trac.ffmpeg.org/ticket/5276?cversion=0&cnum_hist=5)

yuv apple ffmpeg firefox corrupt file


how i write a sort method for a linked list?
can /nen/yone (sounds like anyone) help??


Phew lets see its been a while since algorithms class but this seems to mostly work:
public class MyLinkedList {
Node head;
int length;

public MyLinkedList() { }

public void add(int data) {
if (head == null) {
head = new Node(data);
length = 1;
} else {
Node temp = head;
while (temp.next != null) {
temp = temp.next;

temp.next = new Node(data);
length += 1;

// Sort ascending
public void sort() {
Node last = null;
Node curr = head;
boolean performedSwap = true;
while (performedSwap) {
performedSwap = false;
curr = head;
while (curr.next != last) {
if (curr.data > curr.next.data) {
// Swithc curr and next positions
swap(curr, curr.next);
performedSwap = true;

curr = curr.next;
last = curr;

public String toString() {
StringBuilder out = new StringBuilder();
Node curr = head;
while (curr != null) {
curr =curr.next;
return out.toString();

private void swap(Node first, Node second) {
int tempData = first.data;
first.data = second.data;
second.data = tempData;

public class Node {
int data;
Node next;

public Node(int data) {
this.data = data;

public class DemoApplication {
public static void main(String[] args) {
MyLinkedList list = new MyLinkedList();



If you need to do quicksort, mergesort or anything else nlgn then hopefully you have the CLRS algorithm book which has a nice chapter on sorting if I remember right

Also holy heck thank goodness for the Stream API and comparators and every other nice thing you get to use in real programming!


Thank you so much nenfren I really appreciate it, I'm cry now, this is so nice. I adapted it to my programmio and the language i'm using and it works really perfectly for my purposes. Thank you so much, I'm just too retarded at this. I'm sorry, thanks.



Let's brainstorm some ways in which nenmin can implement an option for japanese/western post name ordering!


A checkbox in the options menu, stored in a cookie. Wherever its generating the thread or whatever check for the flag and either use western or japanese order for the name.

Actually maybe not, because it probably picks the name whenever you insert a new row into whatever Post or Thread database table it uses.

I guess it could still work but you might accidentally swap the name order of someone who manually uses a characters name in Western order, but that's probably not too big of a deal.

Something like
$japOrderCookie && $NAMES->get(post->name) ? echo $JAPORDER_NAMES->get(post->name) : echo $WESTORDER_NAMES->get(post->name) ?>

I'm not actually sure if thats valid php but something like that could work.


How about each post has an ID that queries the SQL teeburu and prints givenName and familyName in order according to client preferences?
Cons include a lot of queries per page load and it might be very intensive for nenmin's server-chan.

Perhaps you could have an implementation with php $_GET but it would have to be updated everytime someone posts and isn't much better.

Perhaps the best solution would be if the server had a default naming order and then the swap was processed client-side through JS or something!

I'm sorry, I'm still learning so I don't really know much about it. Sorry for my bad ideas.


One thing to keep in mind is how vichan is already built, and trying to make your version not too forked so you can still update to new versions without having to deal with merge conflict.

Thats why I think the cookie approach is probably fine. You don't end up change too much of the php code thats creating post/thread html, and you don't mess with the database by adding new tables or changing columns around.

While it would be ideal to do it in javascript(so you wouldn't have to refresh after updating the cookie), keeping logic centralized in the php that builds the html is nice.


I'm making HUEG spaghetti android app with java!

Wish me luck!!


dont forget the pesto!


Does anyone know a library or other way to get groovy and java compiler output in a machine readable form?

Right now I'm just dumping the Stream into a temp file and running javac/groovyc and reading exit codes and redirecting stderr.

Delete Post [ ]
[Return] [Go to top]
[ home ] [ jp ] [ snow / tan ]