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


Neckbearded Basement Dweller 13/04/20(Sat)04:55 No. 3606 [Reply]
3606

File 136642655829.jpg - (37.09KB , 500x352 , imagefromurl.jpg )

How do you program in goal revision in AI. I have programmed some model revision but I am not sure about goals.


>>
Neckbearded Basement Dweller 13/04/24(Wed)06:23 No. 3618

having no programming experience at all I'm going to throw this out there, if a goal counts as something that is a process that continues until a certain value or point is reached, then stops unless things have changed, then you merely add conditions

if, then, else

if I have pizza I will eat, else I will attempt to gain money for hamburgers

might have to translate into programmese




Still NEET Neckbearded Basement Dweller 13/04/09(Tue)01:08 No. 3579 [Reply]
3579

File 136546248169.jpg - (47.25KB , 726x500 , communism80.jpg )

I'm still in search of employment. If you are Russian or Ukrainian Anon, please message me through http://vk.com/antisemitic or skype=zaryanius I'm interested only in programming jobs, no PHP or tech-support. Freelance isn't a real job either.

I additionally dislike PHP, because PHP was made by Jews (Israelites). Hate this Bible/Torah/Koran crap


5 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/04/16(Tue)15:00 No. 3594
3594

File 136611721493.jpg - (31.69KB , 600x491 , communism05.jpg )

>>3590
Lurk Zend Technologies history. And the fact, that PHP by design indulges code with a lot of security flaws, leads to conjecture that PHP designers included a few Mossad advisers, interested in having a free supply of exploits. I.e. the purely Jewish ingenuity: providing a language that generates backdoors itself.


>>
Neckbearded Basement Dweller 13/04/22(Mon)16:42 No. 3612

>>3579
Wait wait. Jews made PHP? Is that why it's so hated?


>>
Neckbearded Basement Dweller 13/04/22(Mon)16:57 No. 3613
3613

File 136664265633.jpg - (468.41KB , 2162x1200 , communism178.jpg )

>>3612
No. PHP is hated for being "a fractal of bad design", overshadowing even Perl. There are other languages, Jews made, like Algol and Eiffel, which ain't hated. Still some of Algol features, like call-by-name are inefficient and confusing, but nothing compared to PHP.




how2getjob Neckbearded Basement Dweller 13/04/15(Mon)01:50 No. 3593 [Reply]

I've been programming for years using PHP mainly, but I also have experience with Python and have written a Java Android app that is gaining popularity. I want to turn these skills into a career but I'm failing to find where to jump in. I've tried searching on careerbuilder and posting my resume on Craigslist, all I receive is spam and lottery winnings. What do?


2 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 13/04/20(Sat)03:03 No. 3605
3605

File 136641980018.jpg - (281.36KB , 780x1040 , what_the_fuck_am_i_reading.jpg )

>>3601

> Python, like many other scripting languages, does not require variables to be declared
> Python, like many other scripting languages
> Python, like many other

Well. Maybe that isn't sign of bad language, but just different approach to programming ... ?

> Editing Python code requires special editors (forget about Word/Notepad)
> forget about Word/Notepad

What?

You can. I did it few times.

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


>>
Neckbearded Basement Dweller 13/04/22(Mon)03:19 No. 3609
3609

File 136659355422.jpg - (30.69KB , 300x492 , communism49.jpg )

>>3605
>Well. Maybe that isn't sign of bad language, but just different approach to programming ... ?
Yes. And mental retardation is just a "genetic diversity"

Broken scope design arises, when some crook, say Ierusalimsky, does his calculator.cpp undergrad assignment: at some point Ierusalimsky thinks it is a neat idea to have variables, so he implements them using naive hash-table approach, where "x = y" acts as a simple Hash<string,float>.set("x", y); everything works well, while there are just a few vars and a single calculator context, so Ierusalimsky gets high grades from his comp-sci teacher.

Alas Ierusalimsky decides to go big and sell his defective calculator.cpp "language", so he hastily ductapes together for-loops and conditionals, then even gluing subroutines on top and packaging final abomination under a neat title like "Hyper-Text Preprocessor: Enterprise Edition". But suddenly scoping cracks began to show and all the filth leaked out of his neat package! Because you know what? In practice a single calculator context with a few one-letter variables isn't enough, and to describe a general system we need millions of independent calculators, each with its own isolated set of variables, so that an assignment Alice does on her calculator won't affect Bob's calculator, behind his back. And what our "Ierusalimsky" did is called leaky abstraction, because assigning variable on one calculator breaks completely unrelated calculator. Psychiatrist's call it http://en.wikipedia.org/wiki/Schizophasia when different parts of brain clutter each other.


>>
Neckbearded Basement Dweller 13/04/22(Mon)16:24 No. 3610

>programming
>PHP
lol
keep trying hard and looking though.




Neckbearded Basement Dweller 13/04/20(Sat)00:20 No. 3603 [Reply]
3603

File 136640999897.gif - (608.55KB , 350x198 , 7d9.gif )

Why is the theory of computation important or even relevant to singularity entities or artificial intelligence?

I contribute to research in cognitive science professionally but I don't know much about the other side of AI research.


>>
Neckbearded Basement Dweller 13/04/20(Sat)00:46 No. 3604

It allows you to know what is and is not computable, and if a problem is not computable it can't be solved computationally no matter how hard you try.




Collision.class - JAVA Neckbearded Basement Dweller 13/04/10(Wed)21:56 No. 3585 [Reply]
3585

File 136562380025.jpg - (100.07KB , 587x392 , 146140896985.jpg )

Hello /pr/

I'm doing a little shoot'em up and the main problem is the Collision.class, when I search with my friend Google, all code that I found doesn't work.

Anyone know how can I do an Collision.class for the hitbox of my player's character and enemies's bullet ?

Thanks in advanced.


>>
Try This Neckbearded Basement Dweller 13/04/18(Thu)21:03 No. 3599

In a collision.class have a function that sees if the bullet falls into the square where the character's sprite falls on the map. Also instead of using a separate class this method could be added to the Players class or its parent




FRP with Yampa? Neckbearded Basement Dweller 13/04/17(Wed)16:11 No. 3595 [Reply]
3595

File 136620789594.png - (9.54KB , 255x100 , Haskell_times.png )

Where should I start if I wanna learn FRP using the Haskell DSL Yampa?




Looking for an experienced Excel/VBA Financial Modeler Neckbearded Basement Dweller 13/04/13(Sat)20:25 No. 3591 [Reply]
3591

File 136587753347.png - (151.03KB , 1335x621 , Screen shot 2013-04-13 at 1_26_13 PM.png )

Hello all. I'm looking for an excel expert with working knowledge on financial structures. If you know what you're doing, this should be quick and easy. I will email you the excel file you can work with. Pay will be $20 over paypal.

[Problem]
Analyze a structure recently issued by RBC. This product, called "RBC LiONS S&P/TSE 60 Buffered Accelerator Securities, Series 2", is a 3.5 years note, where the entire payoff occurs at the maturity date of the note. The Short Form Base Shelf Prospectus describes the payoff on this note as follows:

150% participation in the S&P/TSE 60 index to a maximum return of 30.375% at maturity. If the index return is negative, declining by 20% or less (“the Buffer”), the principle amount is returned. If the index return is negative, declining by more than 20%, the redemption amount is equal to the percentage change plus the Buffer (i.e. 20%).

Note that the 150% participation means that you will receive 1.5 times the principle invested, but limited to a 30.375% return. This return is the total return over the 3.5 year life of the note.

Prepare:
- A chart of the final payoff as function of the index level. If you used say a 100 step binomial tree you could simple chart the payoff on the note at the terminal nodes vs. the index level again at the terminal nodes.
- A chart of the expected payoff of this note at the terminal nodes, where you form the expectation using the real world probabilities. To do this: multiply the probability of reaching a particular terminal node by the payoff on the note at that same node. Then chart the result as a function of the index level at the terminal nodes.
- Using any reasonable set of input parameters, analyze if the product is over-valued or under-valued.


>>
Neckbearded Basement Dweller 13/04/13(Sat)22:09 No. 3592

Sounds like homework to me.




Bobby 13/04/12(Fri)17:30 No. 3588 [Reply]
3588

File NiceChan_1_0.txt - (8.26KB )

NiceChan is a script I wrote for Tampermonkey. It helps me keep an eye on what boards on what chans have new posts.
Basically it is a window sitting in the bottom right corner of the screen that lists all the boards/threads I have added to it and highlights the ones that have received new content. It updates the list every 4 seconds so there is no need to reload the page ever.
I hope this will give people a faster and more efficient chan-experience.

The listviewer-thing is kind of hacked and cryptic, but I assume you guys are smart enough to either get the hang of it or make modifications yourself.


>>
Neckbearded Basement Dweller 13/04/12(Fri)17:51 No. 3589

By the way I am aware of the flawed programming. But since I am likely to let this sit around for the next few days/weeks, I have posted this anyways. :-)




src/ !n8.ggFRHJ6 13/04/10(Wed)05:18 No. 3584 [Reply]
3584

File shell.h - (882B )

Source thread.
Post any source code you care to share.




Numpy/Matplotlib Neckbearded Basement Dweller 13/04/06(Sat)08:16 No. 3569 [Reply]
3569

File 136522896446.png - (18.55KB , 200x187 , scipyshiny_small.png )

I have a basic knowledge of Python, and I'm looking to create some graphs using numpy/matplotlib. How do I go about plotting a function, rather than a set of data? Thanks in advance.


>>
Neckbearded Basement Dweller 13/04/07(Sun)12:04 No. 3576

>How do I go about plotting a function, rather than a set of data?
Take the function and calculate a set of data with it?


>>
Dalek!FM5d0TWZsM 13/04/08(Mon)21:30 No. 3577

>>3576

Bingo.

To make this more general, define a subroutine in python that accepts a lambda expression as an argument, a list of independent variables and their upper and lower ranges.

Your subroutine will then calculate the n-tuples by evaluating the lambda expression on the variables for each point in their range with some chosen step value. Once you have those points, you are free to plot your curve, manifold, range, whathaveyou. That way you'll have a single function that you can pass in an expression and some ranges and it'll spit back a plot.

My guess is there is already a package that will do this for you--which I would use unless you have a burning curiosity about how graphics packages work, and trust me, thats an entire branch of computer science that can literally take up your life--teh google is your friend.


>>
Neckbearded Basement Dweller 13/04/08(Mon)23:28 No. 3578

>>3577
>a subroutine in python that accepts a lambda expression as an argument
I think scipy has a function for that.




Delete post []
Password  
Report post
Reason