-  [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 327 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.


Another (unique snowflake) *chan is coming tee 13/03/26(Tue)03:31 No. 3532 [Reply]
3532

File 13642650634.gif - (270.91KB , 500x468 , 1337364857026.gif )

Out of everything the world needs, nothing is more urgent than the need for a new *chan. I'm going to take image boards in a new direction using a site (1channel USA.) I've spoke a little about this in #7chan. Right now I need beta testers. New accounts are going to cost $5 in the future, but in exchange for helping me start the site I'll give you a lifetime account for free. Just email me (team@1chan.us) feedback as you use the site to help the process of making improvements.

Main site: http://1chan.us
Beta registration: http://1chan.us/1chan.html


>>
Neckbearded Basement Dweller 13/03/26(Tue)23:57 No. 3535

>imageboard
>New accounts are going to cost
You've already failed.


>>
Neckbearded Basement Dweller 13/03/29(Fri)20:55 No. 3551

>>3535
This. Fuck off with your shitty pay site nigger


>>
Nattajerk 13/04/03(Wed)00:29 No. 3562

everyone hates tee's idea!




patchouli!!SyAQpmZGyw 13/03/31(Sun)04:43 No. 3556 [Reply]
3556

File 136469781045.jpg - (35.75KB , 600x450 , arabian-camel_223_600x450.jpg )

Perl script thread? Personally have nothing to contribute, but would love to seem fellow /pr/ friends bask in the Glory of Larry Wall.


>>
Nattajerk 13/04/02(Tue)05:12 No. 3559

I havent written Perl in about a year, but I do love the language myself, perhaps later i'll dig up some old tools i built.


>>
patchouli!!SyAQpmZGyw 13/04/07(Sun)05:38 No. 3574

No perl love on this board? Ah, maybe some other day.




Neckbearded Basement Dweller 13/01/31(Thu)20:18 No. 3387 [Reply]
3387

File 135965991476.png - (4.10KB , 640x320 , Girls-Who-Code.png )

What do you anons think about those people who are trying to increase the number female programmers in the world?


30 posts and 3 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/03/29(Fri)03:56 No. 3548
3548

File 136452577171.jpg - (46.65KB , 508x382 , brain.jpg )

>>3544
>gender has nothing to do with your skills, intellect or personality
I don't doubt you believe that, but you're probably wrong. It's somewhat agreed that both nature and nurture affect how we turn out. It's highly unlikely that all the differences (e.g. hormones) we have amount to nothing in the end.
Before attacking me: I'm not saying one is better than the other (I have neither the data nor the will to engage in that stressing, useless, debate), but that there are differences (some, like girls maturing before boys, are damn well documented).


>>
shtentsel 13/03/29(Fri)18:48 No. 3549

girls who code?
I heard about one woman programmer - Augusta Ada King, Countess of Lovelace
Other womans( or girls, it doesn't matter) is a pathetic attempt to grow between your legs is what should not be, by imitation.
What can I say about people who are trying to increase "this fenomen"? - DO IT F*GG*TS && kill the programming in the world
sorry for my LOL_english ^_^
>>3387


>>
Neckbearded Basement Dweller 13/03/30(Sat)12:24 No. 3555

>>3544

Your naivety is delicious, but your blindness makes me rage. There are a million of studies, that behavior is cause by a mix of nature and nurture.

You are basicly saying white people and black people are the same, but if you give the latter milk powder to eat, many will die in an unfortunate way. I doubt that is learned behavior.

Anyway if you treat boys and girls the same, one of them will start under performing, because they are wired differently. This has a direct effect on behavior.

Have a review: http://www.benthamscience.com/open/toanatj/articles/V002/37TOANATJ.pdf

It is a good starting point in these matters.
>>3387
>>3387




Header Problem Neckbearded Basement Dweller 13/03/29(Fri)21:05 No. 3552 [Reply]
3552

File 136458752183.jpg - (22.39KB , 600x327 , 632784687236.jpg )

I wonder if anyone could shed some light on this (Picture Unrelated).
I'm new to this "split the class into a hpp and a cpp file" thing and still finding my feet with C++. Anyway, I'm not too sure why but the examples online all have something like this:

// myclass.hpp (pretend there are define guards)
class MyClass {
private:
int anInt;
public:
MyClass();
~MyClass();
void DoSomething(void);
}

//myclass.cpp
#include "myclass.hpp"
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 13/03/30(Sat)00:10 No. 3553

If what posted was a direct copy and paste, then it won't compile due to a few typos.

MyClass~MyClass() {}

should be

MyClass::~MyClass() {}

and you need a semicolon after the last bracket in the class declaration

class MyClass { private: int anInt; public: MyClass(); ~MyClass(); void DoSomething(void); }; ^ right here


I just tried it after making the changes and it works fine.

As far as WHY it works, I'm not really sure, it just does. I think the linker or compiler just takes care of that or something.
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 13/03/30(Sat)11:51 No. 3554

Wasn't a direct copy-paste, I just re-typed something made-up (with plenty typos it seems, lol). Anyway if it works for you, I'm guess maybe I have a linker error. At least I know where to start now with this problem, thanks. I'll install Dev-C++ and see what happens.




Neckbearded Basement Dweller 13/03/28(Thu)12:48 No. 3543 [Reply]
3543

File 136447130445.jpg - (17.58KB , 609x480 , 31874849-malaysian-prince.jpg )

Why can computers be programmed but telecommunications networks cannot be?


>>
Dalek!FM5d0TWZsM 13/03/28(Thu)23:49 No. 3545

What do you mean by programmed? And what do you mean by telecommunications network?


>>
Neckbearded Basement Dweller 13/03/29(Fri)03:47 No. 3547

Before specialized hardware (like a switch) is produced its requirements (fast, reliable) are already known and unlikely to change during it's life. Personal computers are expected to do everything - they must be programmable. Building specialized hardware for everything would be cost-prohibitive.

In other words: hardware is fast but can't adapt, software is adaptable but slow. You can't have your cake and eat it too.


>>
Neckbearded Basement Dweller 13/03/29(Fri)19:29 No. 3550

I assume that by "programmable network" you mean a network whose topology can be changed without actual rewiring of the nodes. For such a thing you would first need to have all nodes physically connected to all other nodes, that way a virtual network of arbitrary topology could be placed on top.

Connecting all components of a processor (the adder, the multiplier, the control unit, etc.) is feasible because the computer is in a single location, not randomly distributed over the entire world.




What is the required knowledge? Neckbearded Basement Dweller 13/03/27(Wed)14:48 No. 3540 [Reply]

Hi,
What is the required knowledge for someone to gain in order to contribute to the "Tor" Project?


>>
Dalek!FM5d0TWZsM 13/03/28(Thu)23:52 No. 3546

C / C++ (K&R / Bjarne Stroustrup)

Socket Library Programming (Beej's guide to network programing)

Concurrent programming using POSIX threads (google pthread library)

Cryptography (Discrete Mathematics, number theory)

A formal treatment of algorithms




Neckbearded Basement Dweller 13/03/28(Thu)11:25 No. 3542 [Reply]
3542

File 136446632556.png - (551.50KB , 437x589 , 2aa.png )

least intuitive sub and micro-fields of mathematics




Neckbearded Basement Dweller 13/03/25(Mon)02:05 No. 3520 [Reply]
3520

File 136417354415.jpg - (239.24KB , 692x704 , 090817.jpg )

Hello. I created this script for my database 4 months ago and now I need to make it look better. Basically I want to make the same thing but without so many case statements anyone know how this can be done?



SELECT *
FROM (SELECT A.TYPE,
CATEGORY = CASE WHEN TYPE = 'PCPA-NAL' AND LEVEL = 4 THEN '01-DOR LEVEL 4 EDITS'
WHEN TYPE = 'PCPA-NAL' AND LEVEL = 3 THEN '02-DOR LEVEL 3 EDITS'
WHEN TYPE = 'PCPA-NAL' AND LEVEL = 2 THEN '03-DOR LEVEL 2 EDITS'
WHEN TYPE = 'PCPA-NAL' AND LEVEL = 1 THEN '04-DOR LEVEL 1 EDITS'
WHEN TYPE = 'PCPA-HX' THEN '05-DOR CAPPING (HX)'
WHEN TYPE = 'PCPA-NHX' THEN '06-DOR CAPPING (NHX)'
WHEN TYPE = 'PCPA-SDF' THEN '07-DOR SALES EDITS'
WHEN TYPE = 'PCPA-NAP' THEN '08-DOR TPP EDITS'
WHEN TYPE = 'PCPA-RE-EDIT' THEN '09-PCPA RE EDITS'
Message too long. Click here to view the full text.


6 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/03/26(Tue)23:09 No. 3534

>>3533
That would be awesome. I am trying to do two things with this query, 1 make the code easier to read by either creating a lookup table for the many case statements and 2 on each department I want to exclude a specific code such as 90.


>>
Oracle+specialist. 13/03/27(Wed)00:09 No. 3536

CASE WHEN TYPE = 'PCPA-NAL' AND LEVEL = 4 THEN '01-DOR LEVEL 4 EDITS' WHEN TYPE = 'PCPA-NAL' AND LEVEL = 3 THEN '02-DOR LEVEL 3 EDITS' WHEN TYPE = 'PCPA-NAL' AND LEVEL = 2 THEN '03-DOR LEVEL 2 EDITS' WHEN TYPE = 'PCPA-NAL' AND LEVEL = 1 THEN '04-DOR LEVEL 1 EDITS' WHEN TYPE = 'PCPA-HX' THEN '05-DOR CAPPING (HX)' WHEN TYPE = 'PCPA-NHX' THEN '06-DOR CAPPING (NHX)' WHEN TYPE = 'PCPA-SDF' THEN '07-DOR SALES EDITS' WHEN TYPE = 'PCPA-NAP' THEN '08-DOR TPP EDITS' WHEN TYPE = 'PCPA-RE-EDIT' THEN '09-PCPA RE EDITS' WHEN TYPE = 'PCPA-TPP-EDIT' THEN '10-PCPA TPP EDITS' ELSE 'XXXX' END,


Why not change this shit in a subselect:

(select entry from capacities_table where level = o.level and type = o.type)

And then create this table:

| entry | type | level |
| 02-DOR LEVEL 1 EDITS | PCPA-NAL | 1 | 05-DOR CAPPING (HX) | PCPA-HX | 1
| 05-DOR CAPPING (HX) | PCPA-HX | 2
| 05-DOR CAPPING (HX) | PCPA-HX | 3
....
| 05-DOR CAPPING (HX) | PCPA-HX | 20

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


>>
Neckbearded Basement Dweller 13/03/27(Wed)03:33 No. 3538

>>3536
How can I exclude things per department such as if dept is data entry the exclude code 90?




Biotechnolojester 13/03/15(Fri)21:17 No. 3500 [Reply]
3500

File 136337866325.jpg - (84.48KB , 500x317 , SystemsEngineering.jpg )

How can we do so much with software that we can't do with hardware, and, in the future, will the real hardcore amazing stuff be done with software people or hardware people?

Will software people still exist to work on a purely 'imaginative' landscape and be free to paint using an interface provided by hardware people?


3 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/03/22(Fri)02:00 No. 3513

When we get into quantum computing and use of qubits hardware will see another large leap forwards.


>>
Neckbearded Basement Dweller 13/03/25(Mon)02:47 No. 3527

>>3512
>machines cant do themselves
Just wait until 3D printers can start printing new 3D printers. Add a bit of AI to that and shit can start to get interesting. Or apocalyptic...


>>
Nattajerk 13/03/26(Tue)02:39 No. 3529

>>3527
there will be a time in the future where "AI" will simply be Sentient computers, and 3D printers are like having robo-babies.




Atz 13/03/23(Sat)06:08 No. 3515 [Reply]
3515

File 136401530084.jpg - (7.18KB , 215x234 , c.jpg )

Hey /pr/
I took a little course in java,really enjoyed it and decided to try and learn C++,any tips?


>>
Neckbearded Basement Dweller 13/03/23(Sat)19:11 No. 3517

When you're thinking about C++, pretend you don't know Java. At its core Java was designed to appeal to C++ programmers tired of buffer overflows and invalid dereferences. If you try to apply what you about Java to C++ you'll only confuse yourself, since there are subtle but important differences, especially with regards to the semantics of object assignment and copy, and parameter passing.


>>
Neckbearded Basement Dweller 13/03/25(Mon)02:17 No. 3522

Stick with Java OP. You will have more fun programming and be happier.




Delete post []
Password  
Report post
Reason