• Content count

  • Joined

  • Last visited


  • check
    Agree 9
  • info_outline
    Informative 2
  • tag_faces
    Funny 7
  • thumb_up
    Thumbs Up 7
  • thumb_up
    Likes (Old) 637


About prolemur

  • Title
  • Birthday 1997-02-02


  • CPU
  • Motherboard
    Asus Z87 Deluxe - I
  • RAM
    Crucial Ballistix Elite 16GB
  • GPU
  • Case
    Ncase M1 - Black
  • Storage
    Samsung 840 Evo + Mass External Storage
  • PSU
    Silverstone SFX 450W - Gold
  • Display(s)
    LG E2442 + HP W2207H
  • Cooling
  • Keyboard
    Ducky Year of the Dragon - MX Blue
  • Mouse
    Logitech G700
  • Sound
    CHC Silverado & Blue Yeti
  • Operating System
    Windows 8.1
  • PCPartPicker URL

Profile Information

  • Gender
  • Location
    Ottawa, Canada
  • Interests
    Technology, Programming, Networking, Gaming, Hockey, Soccer, LAX.
  • Occupation
    Student / Grass Cutting Extraordinaire

Contact Methods

  • Skype
  • Origin
  • Steam
  • Website URL
  1. Lol I did ask so nicely You must get into node, I've been using it for my webdev class and I think I'll continue to use it later I think the error is probably in the node function then since: $.post('/recipes/', recipeObj); $.post('recipes/', recipeObj); $.post('/recipes', recipeObj); $.post('recipes', recipeObj); this prints {} 4 times on the server side, meaning all the requests are reaching that statement. Node told me to use / in one of the express tutorials, so ya it's fucked. It's this damn body-parser module
  2. Hello friends, I'm trying to handle a post request to my nodejs express server. It will be sending a JSON object and it should write that to a file. Right now my jqXHR isn't being sent properly, i think... So here's my code idk where the problem is /* NODE JS SERVER: */ var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var jsonParser = bodyParser.json(); app.use(express.static('assets')); app.use('/recipes', express.static('recipes')); app.listen(PORT, () => { console.log('Express @ localhost:', PORT); });'/recipes/', jsonParser, (req, res) => { console.log(req.body); // this is just an empty object, not the recipe object :( }); /* JAVASCRIPT / JQUERY: */ $('#submit').click(() => { var recipeObj = { "name": $recipe.children('option').filter(':selected').text(), "duration": $duration.val(), "ingredients": $ingredients.val().split('\n'), "directions": $steps.val().split('\n'), "notes": $notes.val() }; console.log(recipeObj); // this console.log work in printing the object $.post('recipes/', recipeObj); }); THANKS PS: I used example code from: @Hazy125 heylo
  3. we miss you being active

  4. you could make a script to run this one multiple times. I was also thinking of making one because my bandwidth doesn't cound toward my cap from 2am - 8am, so (this script + a little cron job + list of youtube subscriptions + last time it was run) = awesome
  5. It is super easy in Java BufferedImage img = File("image-orginal")); // change pixels in here with img.setRGB(x, y, rgb) ImageIO.write(img, "png", new File("image-final.png"));
  6. Take a peek at a game I'm making, specifically the gfx package and sound class.
  7. I believe this runs the first command and then if it was successful the next command is run after, so not at the same time && would work well for apt-update && apt-upgrade though
  8. No clue, but i think you need at least php 5.4 to use short tags. which is the same version magic quotes got deprecated. coincidence? i think not!
  9. short tags <?=
  10. cool projector wonder if you'd be able to project onto like a translucent wall of glass or something and be able to see it on both sides. I want to share whatever I'm watching on the big screen with the neighbourhood
  11. You'll probably want to make a function that takes an argument, then hide all of the items except the one passed in by the argument.
  12. You could do SELECT * FROM `table` WHERE `pin` = $pin $pin being the number submit in the form, so probably $_POST['pin'] and if the number of rows returned is greater than 0, the pin was in the table at least once. ps: Make sure you used prepared statements and clean user input.
  13. You could edit your 'best answer' and share your solution for anyone else that has a similar problem
  14. i said single page, not simple