-  [WT]  [PS]  [Home] [Manage]

  1.   (new thread)
  2. [ No File]
  3. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: C, CSS, DOC, DOCX, GIF, H, JAVA, JPG, PDF, PNG, SVG, SWF, TXT, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 391 unique user posts. View catalog

  • Blotter updated: 2018-08-24 Show/Hide Show All

There's a new /777/ up, it's /Moldy Memes/ Check it out. Suggest new /777/s here.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM is now available sitewide! Please check this thread for more info.

i need tips Neckbearded Basement Dweller 16/10/30(Sun)04:53 No. 4948 [Reply]

File 147779958931.png - (50.05KB , 1116x1086 , Irish boy.png )

Hi /pr/ i need some advice for creating my own chan board

Neckbearded Basement Dweller 16/10/30(Sun)06:14 No. 4949

Well I would start with getting what they are called correct.

Pick up, uh, php, python, perhaps some java script.

Neckbearded Basement Dweller 17/02/19(Sun)13:13 No. 4991

So what makes your chan different to other chans? Are you bringing anything new to the table?

Neckbearded Basement Dweller 17/03/17(Fri)15:42 No. 5003

Sperg out and try to make solar powered weatherproof server repeater boxes, like the guy who wanted to start spacechan.

Learning Ruby Neckbearded Basement Dweller 15/12/17(Thu)00:12 No. 4835 [Reply]

File 145030753443.png - (88.79KB , 959x833 , ruby.png )

so, I am going to start learning ruby because I am a basement dwelling neck beard and I have no life.

So, I figure I might as well learn how to program and thought ruby would be a good place to start.

What are some staples I should know about ruby and programming in general, really?

7 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 16/11/07(Mon)00:13 No. 4958


also, Django rules

Neckbearded Basement Dweller 17/03/11(Sat)08:09 No. 4994

python is better than ruby

Neckbearded Basement Dweller 17/03/17(Fri)15:27 No. 5000

AFAIK "Learn Ruby The Hard Way" is still free, and not only is it the one good thing that joker wrote, it's also the best thing he did. Which is why he wrote it first, and then moved on to things he didn't understand as well... which is almost poetic, if you like bad poetry.

LRTHW works, though, and I'd suggest starting there, if you're dead-set on ruby. It's ~slightly~ easier than Python, but I'd really recommend py at this point. It's more applicable; frameworks built around Ruby are worth learning if you know jack shit about MVE or whatever, Python will inevitably lead to you checking out the differenced between 3 and 2.7 and goes right into pentesting. So idk man, it's blub, but it's a good blub to help you get into learning how languages work.

Neckbearded Basement Dweller 17/03/11(Sat)08:48 No. 4996 [Reply]

File background.css - (402B )

when paired with a html file this css file will make a background

Neckbearded Basement Dweller 17/03/11(Sat)08:51 No. 4997

correction it will make a purple background

Neckbearded Basement Dweller 17/03/11(Sat)08:47 No. 4995 [Reply]

This css file will make a purple background when paired with a html.

Linux redhat unleashed 7.2 Neckbearded Basement Dweller 17/02/23(Thu)02:34 No. 4992 [Reply]

File 148781367067.png - (9.40KB , 590x292 , Yuppie Flag.png )

Hey I want to rtfm and I don't have the manual can someone upload it?

How to effectively emulate consoles on PC? FOR EXTREME NOOBS! TheMasterOfAllNoobs 16/11/26(Sat)19:59 No. 4967 [Reply]

File 14801867636.png - (63.17KB , 696x204 , mednafen logo.png )

I am trying to use Mednafen, but it says "generic error" every time I try to run a ROM.

P.S. I will explain better the situation when I get replyed.

Neckbearded Basement Dweller 16/12/03(Sat)05:23 No. 4973

Peaked my interest

Neckbearded Basement Dweller 17/02/12(Sun)19:40 No. 4988

File 148692482240.png - (256.41KB , 576x576 , 76889856744.png )

I haven't encountered this error so I will just outline what I know since I don't have problems. Mednafen has no GUI, meaning you cannot just run the binary. If you are on Windows, you need to drag and drop the ROM(can be archived aka in a .zip file) on top of the Mednafen.exe and it will open up. Linux users can use the terminal, mednafen romname, ez. You can also use an unofficial GUI like https://sourceforge.net/projects/medguireborn/ which even comes with a Windows compiled server executable for hosting online servers. Most settings are controlled in the mednafen-09x.cfg file found in the emulator folder or ~/.mednafen for Linux, this is where you would for example turn off filters or turn off aspect correction making everything stretched if you want that. To bind controls you would use the hotkey, ingame, alt+shift+1, and press each button twice in succession. 1 can be replaced with 2 or 3 or whatever for whichever controller you want. That said I don't know what the fuck this has to do with programming

Neckbearded Basement Dweller 17/02/12(Sun)19:43 No. 4989

Also if it wasn't obvious, Mednafen is more advanced or as I like to call it pointlessly obtuse. I recommend newer users learn to use something like Retroarch unless you specifically want to use the very good online functionality of Mednafen or the primitive but fantastic new support of Sega Saturn (which doesn't have netplay support yet). Oh yeah, RTFM https://mednafen.github.io/documentation/

Someone ever programmed on FORTH? Neckbearded Basement Dweller 17/01/25(Wed)16:40 No. 4983 [Reply]

File 148535884532.jpg - (16.52KB , 480x163 , IMG_20170111_063642.jpg )

I love FORTH, every aspect of it and can't find a modern alternative. What do you think about it?

Neckbearded Basement Dweller 17/01/30(Mon)17:09 No. 4985

finally, someone else who knows about FORTH.

Neckbearded Basement Dweller 17/03/12(Sun)22:50 No. 4998

I think it has a lot of potential. Still learning, want to implement a microkernel of sorts on it.
Does it work well with embedded systems?

Neckbearded Basement Dweller 17/01/10(Tue)06:44 No. 4982 [Reply]

File 148402707222.png - (4.07KB , 200x75 , Musl_libc.png )

Hello great Wizards!

Can we have a musl-libc thread?
Static everything is good, example: sta-li linux (http://sta.li/)
( Small & stable & efficient ) code.

needs advices Neckbearded Basement Dweller 16/11/26(Sat)01:12 No. 4963 [Reply]

File 148011913833.jpg - (350.02KB , 576x720 , 125687572736.jpg )

Okay, I recently switched to Linux... and I'm looking at Qt as an IDE, but I have a bunch of questions:

1) Does anyone have a better suggestion than Qt? I'm not a professional in any sense, I just do this for fun and occasionally for a practical need that I may occasionally have for building my own progs. I've mostly used Basic (several kinds) but I am willing to give other languages a shot from time to time... looking at Python as an alternate lately.

2) What all bits and pieces do I need to make it work? I'm constantly getting surprises when it comes to plugins and other stuff, so I need to have some idea what's involved in simply writing out some code, building a few forms, and the simple task of compiling the damn thing!

3) Can it be used for making games? Frequently, I find it necessary to use a "gaming" language because of the ability to do 3D world rendering, but the only out-of-box lang I've found so far is Blitz3D, which is pretty cool but horribly limited in several other areas. I can add modules, but this seems to be easier in some than others... Irrlicht is my current fave, but if you know of another one that does the same for no cost then I'd love to hear it.

4) Can I compile into Windows-ready *.exe/*.dll files? Linux is great, but Windows is still a thing (sadly), Mac is entirely optional to me as I don't use it.

Also, EVERYTHING must be FREE because I AM BROKE.

1 post omitted. Click Reply to view.
Neckbearded Basement Dweller 16/12/01(Thu)21:53 No. 4971

Op here... I'm realizing as I look back at my original post that I probably wasn't very clear about a few things, although you did answer most of my questions pretty well. :)

For that the last question (#4), I should've mentioned that most of my progs are simple items that don't tend to use much outside stuff as a general rule, and therefore shouldn't require any retooling if recompiled for a different OS.

#3 is the sticky point though... I simply use a game engine to do live 3D rendering because it's easier than trying to create bullshit charts or anything else. I can just make some code, crunch some data, render it in a 3D world and mess with it that way. (yeah, im weird) I have experimented with game programming before, and I may give that another whirl soon. But what exactly does Qt have built in it for doing 3D world rendering? Irrlicht is optional to me.

Neckbearded Basement Dweller 16/12/02(Fri)22:39 No. 4972

>what exactly does Qt have built in it for doing 3D world rendering?

This looks like a promising place to start: http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html

Neckbearded Basement Dweller 16/12/05(Mon)00:05 No. 4975

Pretty basic stuff... looks like something I can use too! Thanks!

Assembly Neckbearded Basement Dweller 16/11/24(Thu)11:31 No. 4962 [Reply]

File 147998349749.png - (41.56KB , 604x394 , screenshot-3[1].png )

hey /pr/

I've been learning Unity/C# for a while,
and I want to learn a little assembly, mostly since I like to learn how the computer works and feel I could understand other languages better if I got a look under the hood.
I looked up some stuff online, but I have a few questions:

1. I noticed there are different assembly languages for each CPU architecture, with x64 being able to run x86 code in 32bit mode.
however, I found a code sample that had this at the top:
".586 ;Target processor. Use instructions for Pentium class machines"

does this mean that each processor/processor generation has a different assembly language, or is it just an optimization thing?

2. are there GPU specific assembly languages as well?

Message too long. Click here to view the full text.

Neckbearded Basement Dweller 16/11/26(Sat)03:28 No. 4964

1. While each x86 processor is backwards compatible with previous processors, they do have instructions that take advantage of new features. For example, before math co-processors were standard on Pentium era CPUs programmers had to manually detect the presence of a math processor and programs had two code paths, one that took advantage of FPU instructions and one that didnt.
2. No. On modern kernel architectures you do not program the GPU directly. The closest you'll get is NVIDIA's CUDA and similar.
3. Not at all. Unless you are engineering Hard Real Time stuff and some forms of embedded, or you are trying to break systems (i.e. creating NOP sleds etc), a modern programmer will never need asm. Thank allah. Additionally, these days it is really unlikely the average programmer can hand craft asm that is faster then what a compiler can do.

Neckbearded Basement Dweller 16/11/26(Sat)12:10 No. 4965

Thanks, great info.
So if I understand correctly x86/x64 asm is mainly useful as a learning tool and for hacking.

How about ARM assembly? would learning it be beneficial for optimizing apps, or hacking together something that couldn't be done otherwise?

Neckbearded Basement Dweller 16/11/28(Mon)08:32 No. 4968

Knowing the Assembly for your target architecture can be useful not so much to write code but to debug it. Sometimes you may find that a crash is only triggered when the application it built with optimizations, and when you look at the debugger, it may only show you the disassembly at the point where the program crashed. Knowing Assembly can help you figure out what's causing the crash.

Knowing Assembly also opens up other possibilities, such as studying executables to figure out how they do what they do (i.e. reverse engineering)

ARM Assembly is exactly as useful as other other Assemblies, for any given application domain.
Personally, being used to x86 and some of its predecessors, I find it rather annoying to use.

Delete post []
Report post