[ home ] [ jp ] [ snow / tan ]

/jp/ - Mysterious Thoughtography Collection

Name
Email
Subject
Comment
File
YouTube
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?

 No.6551

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

 No.6553

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.

 No.6554

Yes but I never do.

 No.6555

i wish i didnt

 No.6556

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

 No.6557

Yes I know how to program a little.

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

 No.6559

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

 No.6561

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!

 No.6564

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


 No.6571

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.

 No.6717

Can any of you tweak this script a little?

https://greasyfork.org/en/scripts/17879-pixivuserbatchdownload/code

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.

 No.6718

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

>>6717
Something like this?

http://pastebin.com/arTpUb7Z

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

 No.6719

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

 No.6720

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.

 No.6721

>>6718
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.

 No.6738

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

>>6719
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.

 No.6740

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

>>6738
theyre pretty cool

 No.6761

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

キタ━━━(゚∀゚)━━━!!

 No.6787

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

I should get back onto python.

 No.6792

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.

 No.6798

>>6792
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

 No.6801


 No.6822

>>6798
>>6801
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…

 No.6823

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

 No.6832

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

>>6822
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.

 No.6835

>>6832
>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…

 No.6837

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

 No.6887

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!

 No.6912

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

 No.6933

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

>>6912
>>6887
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
すごいーーーーー

 No.6936

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

 No.6947

>>6936
but then you'll be using windows 10
windows 10

 No.6961

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

 No.6963

>>6961
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.

 No.6966

>>6963
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

 No.7043

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

 No.7053

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

 No.7128

>>7043
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?

 No.7525

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.

 No.7526

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

 No.7527

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

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

 No.7529

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

>>7527
Very

 No.7530

>>7525
>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

 No.7531

Getting really frustrated with HTTP requests lately.

 No.7537

which should i learn first?
c or c++

 No.7539


 No.7543

>>7537
rust

 No.7544


 No.7548

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.

 No.7549

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

 No.7552

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

 No.7630

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.

 No.7631

>>7630
that it doesnt fix the bug in my use case*

 No.9614

i dont want to program…

 No.9621

>>9614
if you dont enjoy it dont bother!

 No.9624

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.

 No.11309

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

#!/bin/sh
for x in \[*\]* ; do
xx="$(echo "$x" | cut -d" " -f2-)"
mv -n "$x" "$xx"
done


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

Please give me feedback!

 No.11310

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

>>11309
good job

 No.11320

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


 No.11328

>>11320
wow lots of dumb nerds started flaming him i feel bad
https://twitter.com/malwrhunterteam/status/850239122950168576

 No.11334

>>11328
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.

 No.11341

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

 No.11344

>>11341
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.

 No.11350

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

 No.11351

>>11328
I don't see any flaming there.

 No.12310

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

 No.12324

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

 No.12330

>>12310
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!

 No.12749

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

 No.12752

>>12749
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

 No.12753

>>12749
There was a Star Wars thing too!

 No.12754

>>12752
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.

 No.12759

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

>>12754
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.

>>12753
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.

 No.12779

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

 No.13599

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


#!/bin/bash

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

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


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

[Coalgirls]_Nichijou_03_(1920x1080_Blu-ray_FLAC)_[81999264].mkv

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

 No.13602

>>13599
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

https://pastebin.com/CvXA6Mky

 No.13619

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" ];
then
sleep "$time"
shutdown
else
sleep "$time"
"$options"
shutdown
fi

 No.13660

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!!!!!

 No.13673

who wants to make nennenquest

 No.13675

What's nennenquest??

 No.13676

>>13675
Whatever we want it to be!

 No.13678

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


 No.13682

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

 No.13683

/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

>>13682
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!!!

 No.13684

>>13683
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.

 No.13686

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

 No.13687

>>13686
Wow rude!

 No.13688

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

 No.13691

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

www.englishpage.com

 No.13694

>>13688
what are the new features you like?

 No.13695

>>13691
STOP OR I NEVER BE FRENS WITH NEN AGAIN.

 No.13698

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

 No.13699

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

 No.13702

>>13683
Why is your teacher Japanese?

 No.13703

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.

 No.13705

>>13702
Because he's from Japan!

 No.13749

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


 No.13752

>>13749
i like you more!!

 No.13754

>>13752
I saw her first you c u t i e

 No.13757

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

 No.13758

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

 No.13759

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

 No.13760


 No.13772

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

 No.13777

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

 No.13779

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

 No.13780

>>13772
>>13779
ban this meanie nenmin!

 No.13781

>>13779
>>13777

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

 No.13783

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

>>13781
i can program

 No.13790

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

 No.13793

>>13790
i think it was the b word not the c word

 No.13796

>>13793
I wonder if the b-word gets filtered now!

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

 No.13797

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

 No.13798

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

Moon c u t i e s.

 No.13801

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

 No.13802

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

 No.13804

>>13802
you shouldnt it no matter the circumstances

 No.13811

The new filter is c u t i ein'!

 No.15853

im going to learn c like nene and asagohan did!

 No.15854

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

 No.15855

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

>>13811
Whoa what's the word?? It's a P word?
Post
Programmer
pencil
polistes
probably

 No.15857

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

 No.15858

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

 No.15862

>>15858
hehehe just try and stop me

 No.17569

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

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

 No.17573

>>17569
all languages suck

 No.17574

>>17569
Do you need help with something?

 No.18897

should i use JSON or XML?

what does kakashi-nen/prog/ say?

 No.18898

>>18897
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

 No.18899

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

 No.18903

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

 No.18906

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

what is /nen/'s take on chromebooks

 No.19096

>>18906
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.

 No.19098

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

 No.19104

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

 No.21159

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??

 No.21160

>>21159
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.

 No.21343

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

 No.21344

>>21343
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!

 No.21377

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

 No.21389

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

 No.21572

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

 No.21575

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

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

 No.21576

>>21575
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

 No.21577

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

 No.21578

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

 No.21579

>>21577
i'll post a guide please wait warmly.

 No.21583

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.

Steps:
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!:
https://a.pomf.space/qpfuembnbuwr.webm

 No.21584

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

 No.21585

>>21584
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.

 No.21586

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)

 No.21587

>>21583
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.

 No.21588

>>21583
This is why you use cygwin.

 No.21589

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

>>21583
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

 No.21590

>>21589
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

 No.21591

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

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

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

 No.21592

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

 No.21593

>>21583
>>21587
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

 No.21596

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.

 No.21597

>>21596
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

 No.21598

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

>>21596
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.

 No.21600

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

 No.21618

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.

 No.21620

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

 No.21722

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

 No.21725

>>21722
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.

 No.21726

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.

 No.21727

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

>>21726
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.

 No.21729

>>21726
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.

 No.21732

>>21726
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.

 No.21733

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

 No.21737

>>21726
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.

>>21732
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)".

 No.21794

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.

 No.21836

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

Plan /nen/

 No.21837

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

>>21836
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.

 No.21838

>>21837
Indeed!
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.

 No.21839

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

>>21836
>>21837
>>21838
I donut understand

 No.21842

>>21839
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.

 No.21844

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

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

 No.21845

>>21844
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.

 No.21848

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

 No.21850

>>21844
>Reimu
>Reimu.jpg

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?????

 No.21854

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

>>21850
Nenman knows to only use pngcute.

 No.21855


 No.21858

>>21794
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.

 No.21859

>>21858
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

 No.22886

https://news.ycombinator.com/item?id=16535886

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

 No.22887

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

 No.22890

>>22887
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.

 No.22908

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

I want to write a compiler!

 No.22912

>>22908
You should start with something easier first

 No.22925

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

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

 No.22932

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

>>22912
I'm not a beginner anymore!

 No.22946

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.

 No.22947

>>22946
I use tags to get around this

 No.22956

>>22947
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.

 No.22959

>>22946
>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.

 No.22960

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

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

 No.22961

>>22959
Remember to relicense your fork as GPL too!

 No.23212

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

 No.23214

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…

 No.23245

how do i learn how to use git

 No.23247


 No.23257

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

 No.23262

>>23257
fetch, pull, and rebase too!

 No.23272

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

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

 No.23292

>>23272
Very cute post!

 No.25756

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!!

 No.25757

No.

 No.25945


 No.25950

>>25945
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?

 No.25960

>>25950
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

 No.26273

>>21572
>>21583
>>21589
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

 No.26336

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

 No.26343

>>26336
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;
}
}

@Override
public String toString() {
StringBuilder out = new StringBuilder();
out.append("[");
Node curr = head;
while (curr != null) {
out.append(curr.data);
curr =curr.next;
}
out.append("]");
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;
}
}
}


@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
MyLinkedList list = new MyLinkedList();
list.add(3);
list.add(4);
list.add(5);
list.add(2);
list.add(1);

System.out.println(list.toString());
list.sort();
System.out.println(list.toString());
}
}

 No.26345

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!

 No.26346

>>26343
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.

Sorry.

 No.26390

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

 No.26391

>>26390
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
<name>
<?php
$japOrderCookie && $NAMES->get(post->name) ? echo $JAPORDER_NAMES->get(post->name) : echo $WESTORDER_NAMES->get(post->name) ?>
</name>

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

 No.26392

>>26391
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.

 No.26393

>>26392
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.

 No.27758

I'm making HUEG spaghetti android app with java!

Wish me luck!!

 No.27759

>>27758
dont forget the pesto!

 No.27935

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 ]