[ 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[View All]

Does /nen/ know how to program?
174 posts and 38 image replies omitted. Click reply to view.


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 ]