-  [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
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 326 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

Reminder: IPv6 enabled users have exclusive access to the /vip6/ board. You don't need access to /VIP/ to access /vip6/.

Channel7 is streaming Movies and TV daily, click here for the web player, or here for the .m3u.


Nattajerk 11/09/07(Wed)10:31 No. 6 [Reply] [Last 50 posts] Stickied
6

File Structure_and_Interpretation_of_Computer_Programs.pdf - (2.21MB , Structure and Interpretation of Computer Programs.pdf )

I heart /pr/

lets start with a book thread. I have some cached learning.


94 posts and 80 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/22(Wed)22:23 No. 3785
3785

File Foundations_of_Agile_Python_Development_(2008).pdf - (6.90MB , Foundations of Agile Python Development (2008).pdf )

Upped: Foundations of Agile Python Development (2008)

Request: Data Structures and Algorithms in Python

(http://eu.wiley.com/WileyCDA/WileyTitle/productCd-EHEP002510,descCd-OVERVIEW.html)




Neckbearded Basement Dweller 13/05/22(Wed)14:40 No. 3782 [Reply]
3782

File 136922643248.gif - (824.95KB , 300x169 , 1339587336544.gif )

Hey guys,

I'm pretty new to website development, and I'm stuck on one thing.

I'm trying to get a countdown timer (which is universal, meaning anyone visitng my website will see the exact same time), which counts down every 3 days. Once the countdown timer ends, I want it to display a value from my mysql database table at random. So for example, I would have 10 values recorded on my mysql database:

1. person 1
2. person 2
3. person 3 etc

and at the end of the countdown timer it would pick one of those values at random, and display it for 5 minutes. Then I would like it to start the cycle over again.

How can I achieve this?


2 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/22(Wed)23:21 No. 3789

>>3786
> use php
That thing's not dead yet? ZOMG.


>>
Neckbearded Basement Dweller 13/05/23(Thu)01:19 No. 3790

>>3789
Hey, n00bs have to learn somewhere. Php is easy to install, easy to learn, and does wonders with Javascript, if you name it as AJAX.


>>
Neckbearded Basement Dweller 13/05/23(Thu)07:01 No. 3793

>>3786

Thanks




newbie question Neckbearded Basement Dweller 13/05/12(Sun)06:24 No. 3739 [Reply]
3739

File 136833267041.jpg - (133.28KB , 1024x682 , 1360637291905.jpg )

im trying to assign a variable in perl based on two scenarios, one, either the program hasnt been passed any arguments and thus a default value is set, two, it is assigned the value of the argument passed to it.

the best thing i could come up with was to assign the variable the result of an eval block containing the if statement to try and avoid scope issues, but obviously there remains the issue of giving the eval block the arguments.

any ideas on how to go about doing this?


3 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/13(Mon)23:37 No. 3757

>>3756
ah, i guess for this thing to work id need to stop using strict, right?


>>
Nattajerk 13/05/14(Tue)00:38 No. 3758

http://pastebin.com/sbrNNHMc

this should show a little bit about scopes. I whipped it up in a few minutes

you can still use strict, in fact as a rule of thumb any perl program that exceeds a page in length should use strict to prevent the program from becoming unmanagable.

higher level variables are always passed on to a scope (or a block, rather, the correct term is a block in this case) however you can mask variables within a block by redeclaring them.

so,

my $integer = 1; { my $integer = 2; } print $integer;

would still show 1, however, if you did this:
my $integer = 1; { $integer++; } print $integer;


$integer would still exist as the main level (or whatever level scope you are deep)

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


>>
Neckbearded Basement Dweller 13/05/23(Thu)04:03 No. 3792

>>3758
thank you knd anon, i feel like a massive cock for not thinking of that




Noob Decision Neckbearded Basement Dweller 13/05/08(Wed)16:35 No. 3689 [Reply]
3689

File 136802375678.jpg - (27.85KB , 800x600 , Blue hills.jpg )

Hello /pr/.
I am trying to learn a programming language but I can't seem to decide which I should go with. I want to learn one that is the most "adaptable" I guess. I plan on learning more later but I want the first one to be basically like a swiss army knife, in that I want to be able to use it for anything I want to do. One that i can go... "Oh I want to write my own OS? ok I can do that." "I wander if my gf is cheating on me... well I guess ill just write a keylogger and slip it through her computer's defenses to plant it and see if she is messaging anyone." "Make my own game? No problem..." "Want to try and see if I can break into a site just to see if I can? I can write a program for that.."


7 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/14(Tue)05:00 No. 3761

>>3760
From my limited understanding of py2exe, it does not compiles Python code to x86 but embeds it in a .exe file.


>>
Neckbearded Basement Dweller 13/05/14(Tue)05:24 No. 3762

>>3760

It compiles it to bytecode i.e. *.pyc.


>>
Neckbearded Basement Dweller 13/05/23(Thu)01:26 No. 3791

C++.
Writing OSs? Check. It's basically C with some bells and whistles, and mostly every piece of metal can accept C.
Writing games? Check. C++ is the language of choice for game engine development.
Writing keyloggers/malware? Check. C++ is tiny when compiled, and efficient to run, thus hard to detect. Also can be easily obfuscated, thus hard for AVs to detect.
Hacking? Check. Any language which you can use to network you can use to hack. However, script languages might be more useful for that...

And from C++ it's easier to move on to other languages. Because with C you learn the basics of programming. That's why it's taught at universities as the language of choice at any CS course.




how2getintocareers/jobs Neckbearded Basement Dweller 13/04/24(Wed)06:17 No. 3617 [Reply]
3617

File 136677706662.jpg - (66.72KB , 520x853 , RESPONSIBLERESPONSE.jpg )

I made an hello world, and age/name questioner with multiple of 7 converter (age to dog years) in C++

I've also got a tool to do stuff with C# and access to beginning tutorials

the picture is basically MFW code for the most part

obviously my experience is very minor, and shallow in nature

I am totally completely desperate to start making money by doing programming stuff, and will go insane if I cannot

I will go insane if I ram my head against the desk trying to understand coding too, but at least I will have a chance at making money this way, I also have no immediate access to post-secondary education regarding this as I am currently upgrading secondary school education grades to be eligible

what kinds of prospects are there for people that know C++, C#, is a portfolio/profile method of getting jobs useful, if so, what can you do

is a formal education useful, if so, what benefits does that give
Message too long. Click here to view the full text.


6 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/04/26(Fri)07:55 No. 3637

>>3630
I do talk to the recruiters. I agree with you.

I'm not a front-end developer, though. I know nothing of the front-end technology, besides a little javascript.

They always want SQL or php, and though I don't know those things, it shouldn't be hard to pick up. I don't know where to start on practicing that stuff, because, as far as I know, it needs a server, or a database on a server?


>>
Neckbearded Basement Dweller 13/05/20(Mon)20:41 No. 3778

>>3637
if you run with linux, what is your problem?


>>
Neckbearded Basement Dweller 13/05/22(Wed)22:49 No. 3788

>>3637
Google wamp. When I have to develop php & sql under m$, I use IIS (Win7 part), php manager and a 64 bit sql server. Make sure to free localhost:80 and localhost:3306, though.




Neckbearded Basement Dweller 13/04/22(Mon)00:51 No. 3608 [Reply]
3608

File 136658466543.gif - (37.65KB , 350x300 , 1306215250932.gif )

Hey /pr/ I need some help fleshing out an idea for a senior project as my current proposal was described as "too light" by my professor.

Here's my proposal:
For my senior project I am proposing a plugin for the popular open-source chat client Pidgin. This plugin will interface with an Android device that is connected to the user's computer via Bluetooth. Within the Pidgin client, the user will be able to view their Android device’s contacts and send and receive SMS messages to and from them using the Pidgin instant messenger interface. A Windows application may be required to act as a mediator between the plugin and the Android device. Pidgin already supports a wide variety of relevant features like logging and away messages.

Any ideas as to what features I can add? I have a feeling that just a couple would be enough.


>>
Neckbearded Basement Dweller 13/05/22(Wed)22:47 No. 3787

Hmmm... Make it so that the mediator application is either non-existent (hard mode) or platform-independent, as your entire system. And as SMS costs money, do a two-way synchronization between the PC host and the android client, cross-adding relevant contact information. If available, then pidgin will use instant messaging through skype, if not, pidgin will automatically send sms or mms from the droid. All while staying platform-independent on the pc side.




Neckbearded Basement Dweller 13/05/13(Mon)20:02 No. 3749 [Reply]
3749

File 136846814053.png - (376.65KB , 794x697 , c++[1].png )

Hey, noob here.

Started programming ~5 years ago, with basic shit "languages" like DarkBASIC and stuff. I started learning C++ ~2 years ago, but this year I've moved onto Java because I needed it for a class. Now I've fallen into a habit of making all of my little scripts I need for everyday stuff in Java, when before it was in C++. Now that I'm getting back into big projects, I'm finding I've forgotten a lot of my C++, and am way to used to Java, which is wayyyy too high level for my needs. For example, I need to do some low-level kernel API stuff, but Java is way too high level for that shit. Can anyone recommend good books to get back into C++? Not beginner books, but books outlining more advanced techniques that you would find with a few years of use of the language.

Thanks!


5 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/17(Fri)21:32 No. 3771
3771

File 136881913045.jpg - (3.20MB , 4000x3994 , 1367696149832.jpg )

Listen here, noob.


>>
Neckbearded Basement Dweller 13/05/17(Fri)22:03 No. 3772

>>3771
>H++
what the fuck am i reading?


>>
Neckbearded Basement Dweller 13/05/22(Wed)19:02 No. 3784

>>3772
It's urine.hk/pr




Looking for fellow noobs Neckbearded Basement Dweller 13/05/08(Wed)22:12 No. 3696 [Reply]
3696

File 136804395429.png - (427.33KB , 499x344 , 0332123.png )

SHalom fellow basement dwelling neckbeards!!! I have recently been looking to learn programming and a mwondering if there is anyone out there that would be seriously interested in starting a programming/hacking group for begginers, we could potentialy use somthing like FB and fake accounts to communicate (inb4 cancer) and share any knowlage we gained. i would like to know if anybody still on /pr/ or just passing by would like to join me, if so just drop a reply and we can figure out the details


15 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/20(Mon)09:00 No. 3777

>>3776

Well, it strikes me that using something like Mumble would be a good idea. I am not really looking to pick up a language, but I am a solid social engineer and I have plenty of other abilities. Is freedomhost still working on TOR?


>>
Neckbearded Basement Dweller 13/05/20(Mon)23:41 No. 3779

>>3777
freedom hosting is a piece of shit ever since onionforum closed and the owner fucked off.


>>
bobabc 13/05/22(Wed)13:51 No. 3781

im keen for this. im an entry level programmer, i know only very basic java, html and c++ and i would like to get more knowledge




patchouli!!SyAQpmZGyw 13/05/13(Mon)01:57 No. 3744 [Reply]
3744

File 13684030594.png - (589B , 350x240 , Balrog!.png )

May I make a suggestion?

I think it would be useful for us to have a sticky for newbie programmers, or people who are willing to learn. Not trying to be mean, but there are way too many of these threads popping up, and they always end up similarly.


4 posts omitted. Click Reply to view.
>>
Nattajerk 13/05/15(Wed)01:16 No. 3765

>>3752
the book thread has some beginners books in there, although we're not removing it simply because some newbies would be frightened - its an imageboard, its a bit disorganized, until we make an imageboard that better suits pdfs anyway.

we could start a beginners thread, we had one in the old /pr/ for game design, but it requires people to manage it and more importantly, respond to a beginners questions.

If anything, we could sticky some links to some beginners resources, which could include websites or books that everyone should read.


>>
patchouli!!SyAQpmZGyw 13/05/15(Wed)02:01 No. 3766

>>3765
Yeah, thats what I was thinking about. I can compile some links if you want.


>>
Nattajerk 13/05/21(Tue)03:57 No. 3780

>>3766
if you're willing to go that far, then perhaps we can support it and sticky it. something elegant though, easy to read and accessible for someone new.




Neckbearded Basement Dweller 13/05/08(Wed)10:38 No. 3684 [Reply]
3684

File 136800231726.jpg - (37.34KB , 425x319 , 13659897385.jpg )

Do I really need linux to program?

Or is it just for convenience?


13 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/05/17(Fri)22:30 No. 3773

>>3684
As the other posters already pointed out, it's a convenient thing. And programming under linux is pretty damn convenient. That's because of a few things:
1. Package managers, they handle installing and maintaining of the libs you need. This is a huge pain in the butt under Windows. This also makes it easy to test/try out new stuff and removing it again without headaches.
2. It is ridiculously configurable/programmable/scriptable. You can control every little detail of the system as you see it fit. This takes some time and effort, but i think it's really worth it.
3. The whole OS is your IDE. As you can customize it however you like, you could beef up your terminal emulator, and map it to some Keybinding. Now your terminal, and thus git and friends, is just one key away. If you happen to use an extensible editor like vim or emacs, you could hook your browser up to display documentation. And you could coordinate all those windows in a tiling window manager with many virtual desktops, making it easy to jump around between IRC, different files, the documentation and your porn.
4. The community. There are a lot (most?) of linux users using linux for coding one way or the other, so it's possible to get help, suggestions and inspirations from people on how to make the system behave the way you want.

However at work i (have to) use a windows box.
It's not that bad. It's quite nice working with VS and .Net, because everything is integrated tightly works rather well. However it forces it's way of doing things on you.
Another thing is that i can not imagine to Program something more exotic than .Net stuff, like Haskell or Idris, effectively under Windows. Without an already pre-made full-blown one-size-fits-all IDE you are pretty much screwed there.


>>
Neckbearded Basement Dweller 13/05/19(Sun)05:41 No. 3774

>>3755
I laughed a lot more then I should have.


>>
Neckbearded Basement Dweller 13/05/19(Sun)12:34 No. 3775

>>3773
>Another thing is that i can not imagine to Program something more exotic than .Net stuff, like Haskell or Idris, effectively under Windows. Without an already pre-made full-blown one-size-fits-all IDE you are pretty much screwed there.

That is how I felt when had to do some school stuff in Delphi. That said, it would have been entirely possible to hook the compiler part of the thing into say Notepad++ and have it mostly in my way, but I ditched Delphi immediately after the introductory course.




Delete post []
Password  
Report post
Reason