[ / / / / / / / / ] [ b / n / boards ] [ operate / meta ] [ ]

/gentoo/ - Technology

Install gentoo.

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 2 per post.


File: 1411122799487.png (388.7 KB, 934x1000, 467:500, 1411105799123.png)

 No.61

Can we get a DPT going on?

 No.62

OP here…working on a quick R script to parse/modify some csv files into spreadsheets. Nothing special, but it's a useful thing to learn.

 No.64

Why not create a /dpt/ ?

 No.65

Given the small amount of users, I'm not sure if we need a new board for every possible topic. To me, it's just easier this way.

 No.69

Doing the Miller-Rabin test exercise in SICP (ex no. 1.28).

 No.71

>>61
Almost done with my bulk renaming Python script that looks very similar to the one in Thunar.

You can create additional scripts to customize how it renames files.
Thinking of adding a donate buten

 No.83

>>61
Learning Go. Anybody know of a good IDE for Windows and Ubuntu?

 No.93

Writting a morse code translator in C

 No.95

File: 1411161569845.gif (695.12 KB, 420x236, 105:59, 1375537997208.gif)

Writing a program to extract files from a proprietary encrypted game archive format.

 No.96

OP here again. There is a duplicate thread over on >>>/tech/102 in case anyone is unaware.

 No.123

I wrote a bourne-shell/cmd polyglot (the output is not the same but you could easily modify it to do just that):

:;rem(){ :;}
: \
@echo off
rem; echo Nice to meet you
rem; exit 0
echo Here's a nickel, kid. Get yourself a real OS
goto:eof


It takes advantage of the fact that ":" is a built-in alias for `true` and doesn't care about any passed-in arguments, but creates a goto label in cmd which does not echo regardless of the echo on/off state. Rem is short for remline which means "remark (line)", iow comment. Cmd is rediculous for not simply using #, but it tries to be compatible with command.com (dating back to the 80s). PowerShell does have # comments afaik.

But it's fucking useless without the #! line on top. In an ideal world we could do something like:
#!/bin/sh – 2>nul
and "2>nul" would just be a useless arg for the sh script, but cancel the error output on cmd. If it's acceptable to manually run it through sh, it's a valid solution.

*fingers crossed* everything survives the plain text->post data->whatever the server uses internally->HTML->plain text round trip

 No.124

>>123
The snippet
#!/bin/sh – 2>nul
above is supposed to have 2 adjacent dashes, not an endash

 No.151

I'm working on learning.
I've been an hobbyist all life.
next year I'm starting uni.
I have a feeling that I should learn about web development and related stuff.
So i'm wondering does anyone knows good book or video or simply which language should I learn? I kinda am lost in this field.

 No.157

>>95
I got a similar problem some time ago. My Terraria character looked too orange-ish and I had to change her skin tone.

There was one FOSS save editor program, but it was terribly outdated and it didn't work at all. Long story short, took the encryption key and used a hex editor to see what each byte did by trial and error.

A painful yet interesting and fun experience. My character now looks much better.

 No.159

I posted a thread somewhere else, so I'm sorry if I'm spamming, but I'm working on this and am stuck.

I'm using visual studio to make a media player, and I'm stuck because I can't seem to make a restart button. I have the others I need (media.Start, media.Stop, etc.) but I can't figure out how to get one to start at the beginning without stopping the media in question.

Sorry if this is simple, I am a simpleton and my instructor seriously didn't go over this in class.

 No.167

>>93

Oh a Morse translator… I wrote one of those very recently.

 No.227

What's the best book on android programming?

 No.228

>>227

It would depend of which language you want to use. You should check here : http://books.gentoomen.org/listing.html

 No.246

Is anyone else doing Project Euler?

 No.315

>>246
>monday

This board is ded

 No.319

>>315
for real

 No.367

Doing a program in C that simulates a client/server connection following UDP and TCP protocols for my Computer Networks class. This project is way too big for a 3 week deadline, it's sucking the life out of me.

 No.382

>>61
>not this retarded and demented pic again.

Why carry that shit from halfchan? This fucking board should have its own culture, not just a fucking simulacra of the progenitor. Even the sticky reeks of /g/ autism. Well shit it's still neckbeards I know but fuck if you don't get rid of that consumer /g/arbage aesthetics and essence.

 No.457

Puzzle game framework

 No.459

>>315
We need to keep this board alive to ensure maximum preedom. Is mod still around?

 No.465

>>459
idk, post cheese pizza

 No.556

I am working on yet another text editor.

Planned features include:
>saving and loading text files
>editing text


emacs and vim better watch out.

 No.572

>>556
Is it graphical or console based? If it graphical shame on you.

 No.573

>>572
>Is it graphical or console based? If it graphical shame on you.

What I'm going to do is throw together some ultra-minimal (think ed) interface for development purposes, then do the rendering system later, probably a separate program altogether.

Ideally, the core editor won't have any dependencies outside of the C standard libraries and POSIX.

 No.732

File: 1431093855156.png (23.5 KB, 884x484, 221:121, 2015-05-08-100234_884x484_….png)

>>556

>>573

>dead board is dead

So after plenty of procrastination (and starting over about three times),

I've (mostly) finished the lexical analyser for my macro language (pic related).

Now to actually parse it... See you all in another three months.


 No.734

not the kind of thing i work on other days, but today i wrote a script that helped me recompile packages with a broken toolchain after fucking up while switching to gentoo hardened:

file=$1
ebuild $file compile
while [[ $? -ne 0 ]]; do
ebuild $file compile
done
ebuild $file merge

everything worked out of the box and was so easy a monkey could do it but i missed the part where it said you must not use -fstack-protector in CFLAGS.

is anyone else using the hardened kernel and PaX? migrate-pax -m doesn't do anything for me but setting xattr flags by hand works fine on ext4 and tempfs.

anyway, back to actual work.


 No.748

>>157

>My Terraria character looked too orange-ish and I had to change her skin tone.

Shitlord.


 No.749

>>382

>misusing greentext


 No.755

>>556

What's wrong with the editors we have? Like, our current like-up of ed, vi, mg, ee, nano, Emacs, and sam?


 No.761

>>755

>What's wrong with the editors we have?

I just wanted to try writing an editor. I thought it might be interesting.

Also, this way I can try out stuff without having to worry about getting some maintainer's approval (i.e. if I were to try and improve some existing open-source editor).

Over 1500 SLOC and it still doesn't do anything. Fuck yeah.


 No.763

>>761

>Over 1500 SLOC and it still doesn't do anything. Fuck yeah.

The suckless fag inside me wants to spill your guts out.


 No.764

>>761

What features are you planning in it that justifies all of it?


 No.765

>>763

>The suckless fag inside me wants to spill your guts out.

S-s-sorry, Anon-kun ;_;

>>764

>What features are you planning in it that justifies all of it?

I'm not sure if this is a justification, but I'm going for flexibility, which means a hell of a lot of boilerplate.

For example, I didn't want to put a hard limit on how long a string literal could be,

but of course, C doesn't exactly lend itself well to dynamic allocation, and there's no way in

hell I'm copy-pasting realloc() code all over the place.

So now, when the parser encounters a string literal, it just takes small chunks of it and "writes" them to a stream, like this:


writestream(output_stream, chunk_start, chunk_size);

The output stream buffers it using the magic and wonders of malloc() and logarithms,

then once it has the whole literal, it just reads it back out like this:


char *string_literal;
size_t new_size;

getstreamdata(&string_literal, &new_size, output_stream);




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / ] [ b / n / boards ] [ operate / meta ] [ ]