Better HN
topnewbestaskshowjobs
Log inSign up

primaryobjects

298 karma · joined May 18, 2011 (15y ago) · 178 submissions

web http://www.primaryobjects.com/kory-becker

bsky https://bsky.app/profile/primaryobjects.bsky.social

twitter http://twitter.com/primaryobjects

blog http://www.primaryobjects.com/articles

linkedin http://www.linkedin.com/in/korybecker

medium https://medium.com/@KoryBecker

meet.hn/city/us-Philadelphia

Submissions

91.

Token-Based Authentication for Web Service APIs(primaryobjects.com ↗)

1 points · by primaryobjects · 11y ago · discuss

comment 11y ago · link · parent

Only because you asked, this has been my pet project :)

Using Artificial Intelligence to Write Self-Modifying/Improving Programs

http://www.primaryobjects.com/CMS/Article149

comment 11y ago · link · parent

Just curious, why did you decide to use a supervised learning approach for this? You're hard-coding the categories in this manner.

You could try using clustering instead (K-means) to group the posts together into their own categories. This is similar to a "trending topics" approach, where the categories could change each day.

comment 11y ago · link · parent

Here's a program that solves this type of logic problem. It works on both "Cheryl's Birthday" and "Teacher's Birthday".

Just replace the initialization dates with the ones from the problem.

Cheryl's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=4

Teacher's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5

comment 11y ago · link · parent

The Associated Press http://www.ap.org - Cranbury, NJ - Web Developer, Full Stack

The Associated Press has a short-term contract role open for a software developer with strong experience in C# ASP .NET MVC 5, AngularJs, jQuery, Javascript, CSS, MongoDb, and REST web services. Experience with Visual Studio 2013, TFS, AWS, and Github is a plus! Must be corp to corp.

The AP is one of the largest and most trusted sources of independent newsgathering, supplying a steady stream of news to its members, international subscribers and commercial customers. Founded in 1846, AP has covered all the major news events of the past 165 years, providing high-quality, informed reporting of everything from wars and elections to championship games and royal weddings.

96.

A Template Architecture for AngularJs and MongoDb in ASP .NET MVC 5(primaryobjects.com ↗)

1 points · by primaryobjects · 11y ago · discuss

comment 11y ago · link · parent

For those interested, I created a node.js LDA library that's pretty easy to use.

https://github.com/primaryobjects/lda

98.

Show HN: AI Planning for Starcraft(github.com ↗)

78 points · by primaryobjects · 11y ago · 23 comments

99.

Eight Puzzle Solver in Node.js Using A*(github.com ↗)

1 points · by primaryobjects · 11y ago · discuss

comment 11y ago · link · parent

Update: I was able to train the network to sort sets of two 3-digit numbers. I used a neural network with 2 hidden layers of 25 nodes. The training/test accuracy after 10 minutes is 78%/74%. Not bad. https://github.com/primaryobjects/nnsorting

comment 11y ago · link · parent

I started playing with this. I take each digit and normalize it by dividing by 9. Then use each normalized digit as an input:

Example sorting 987654 and 123456

  Input: 1, .9, .8, .7, .6, .5, .2, .3, .4, .5, .6, .7
  Expected output: .2, .3, .4, .5, .6, .7, 1, .9, .8, .7, .6, .5
You can then encode/decode the inputs and outputs accordingly. if (value <= 1) digit = 9; if (value <= 0.9) digit = 8; ... if (value <= 0.2) digit = 1; if (value <= 0.1) digit = 0; etc.

I'm able to get 100% accuracy on a limited training set with 2 hidden layers of 10 nodes. 33% accuracy on the test set (but likely need a lot more data to train with).

102.

Missionaries and Cannibals AI problem in R(github.com ↗)

3 points · by primaryobjects · 11y ago · discuss

comment 11y ago · link · parent

I installed via the Linux Mint package manager and found no issues of malware.

comment 11y ago · link · parent

Thanks, I see it. The translation code is inside ir.py. So you can call ir_to_c(bf_to_ir("+++.")) to do the conversion.

Here is the code to convert BF to C, in case anyone else is interested https://gist.github.com/primaryobjects/0ba06f1f6f0d3e984d89

Here it is running the converted C code https://ideone.com/z16KPJ

Very cool.

comment 11y ago · link · parent

Is there an implementation of this that converts any BF code into C/C# code? Might make a handy web-based tool.

It would be interesting to apply this to AI generated programs (http://www.primaryobjects.com/CMS/Article163)

106.

Genetic Algorithm Programmer Gets Functions(hackaday.com ↗)

2 points · by primaryobjects · 11y ago · discuss

107.

Self-Programming Artificial Intelligence Learns to Use Functions(primaryobjects.com ↗)

4 points · by primaryobjects · 11y ago · discuss

108.

Discovering Trending Topics in News with Machine Learning and R(primaryobjects.com ↗)

1 points · by primaryobjects · 12y ago · discuss

109.

Show HN: VPNDemon – Monitor a VPN connection and kill a process upon disconnect(github.com ↗)

2 points · by primaryobjects · 12y ago · discuss

110.

Show HN: Login Image Changer for Linux Mint(github.com ↗)

4 points · by primaryobjects · 12y ago · 1 comment

comment 12y ago · link · parent

Great work. I also really like the json files that it produces https://github.com/gaganpreet/hn-hiring-mapped/blob/gh-pages...

Makes it easier to play with data analysis on the hiring threads in R. http://pastebin.com/TpLfSKjP

112.

Mirroring Your Twitter Persona with Intelligence(primaryobjects.com ↗)

1 points · by primaryobjects · 12y ago · discuss

comment 12y ago · link · parent

Mazes are certainly fun. Here's a javascript maze solver I wrote a while back, including a REST url for building your own maze. http://www.primaryobjects.com/maze

114.

Show HN: Associated Press Content API in Node.js(apcontentapi.herokuapp.com ↗)

1 points · by primaryobjects · 12y ago · discuss

comment 12y ago · link · parent

Artificial intelligence, currently popular by machine learning. Lots of potential and undiscovered applications. Everyone will have their own opinion on this, however.

comment 12y ago · link · parent

Some people frown upon training neural networks with genetic algorithms, just because gen algs are so random and hard to dissect. I think it's silly to discard anything that is a potential solution to a problem.

I go by a rule of thumb like this:

- If you are able to collect lots of training data (inputs and valid outputs) then use back-propagation. It's faster and you might get better results.

- If you don't know the outputs for inputs or if there are simply too many possible combinations (such as in the case of a game), then use a genetic algorithm. It's effectively a search engine that finds the best solution within the problem space (the solution being the optimal weights for the neural network).

Using Neural Networks and Genetic Algorithms http://primaryobjects.com/CMS/Article105.aspx

comment 12y ago · link · parent

Neat. You could also probably do this with a genetic algorithm. Thinking out loud here:

- Have a neural network with 6 inputs for:

   - player x
   - player y
   - acceleration speed
   - acceleration direction
   - next pipe mid-point x
   - next pipe mid-point y
- Two outputs of 0 or 1 for click or no-click

The fitness score would be how close the player is to the pipe mid-point. Hopefully, this would cause the bird to stay as close as possible to fly between the pipes. The genetic algorithm would select the best neural network that knows when to flap based on the current input state.

comment 12y ago · link · parent

Just today, I finished a deep-learning example in C# with Accord .NET. It solves a simple XOR function, as well as classifying ascii digits.

If you're looking for a basic example in .NET, I think the XOR one is as simple as it gets.

Deep-Learning XOR: https://github.com/primaryobjects/deep-learning/blob/XOR/Dee...

Deep-Learning Digits: https://github.com/primaryobjects/deep-learning/blob/master/...

119.

Classifying Handwritten Digits with Machine Learning(primaryobjects.com ↗)

2 points · by primaryobjects · 12y ago · discuss

123456