|
Member
(05-16-2013, 11:09 AM)
|
#4551
So any GAF-Progammer is willing to modify a chrome extension?
The extension: https://chrome.google.com/webstore/d...flmjajfphcnakg What I would like: To have the value on the first box divided by 12 and this value shown in a new box. So it would be something like [converted value][converted value divided by 12][Currency name] I can't believe this is hard. I just NEVER worked with java. Thanks to anyone that would take the time! |
|
|
|
Member
(05-16-2013, 04:21 PM)
|
#4552
OK I am a little in over my head here trying to assist this guy as an intern. I am not even being paid for this right now, but it ended up being my only option as far as continuing my career goals this summer.
I was told I only needed knowledge of Javascript for this and I thought I knew enough. Hahaha in actuality I know nothing. ![]() This is what I currently need to do. I have Node, Express, Coffeescript all set up and have been following these guides. http://expressjs.com/guide.html#routing http://coenraets.org/blog/2012/10/cr...s-and-mongodb/ Any ideas/tips/suggestions? I have no idea if I am on the right track though. I'm in over my head, but I still believe I can do this. |
|
Member
(05-16-2013, 05:34 PM)
|
#4553
|
|
Member
(05-16-2013, 06:24 PM)
|
#4554
Everything :'(
but really I know absolutely no backend stuff and thus know nothing about the stuff I am required to do. He understands that and knows that it will take me some time to get up to speed, but I just don't know where to begin with all this. All I know is OO programming and some javascript basically :/ |
|
Member
(05-16-2013, 06:32 PM)
|
#4555
Last edited by BomberMouse; 05-16-2013 at 06:53 PM.
|
|
Member
(05-16-2013, 07:08 PM)
|
#4556
Do you know hat JSON is? Does {response: "hello world"} make sense to you? Do you know what a GET request is? |
|
Member
(05-16-2013, 07:49 PM)
|
#4557
I created a server on localhost 3000 that gets Hello World in the browser. I'm believe that takes care of the first part, but I am not sure. Here is what I have. server.js Code:
var express = require('express');
var app = express();
app.get('/hello.txt', function(req, res){
var body = 'Hello World';
res.setHeader('Content-Type', 'text/plain');
res.setHeader('Content-Length', body.length);
res.end(body);
});
app.get('/hello.txt', function(req, res){
res.send('Hello World');
});
Code:
{
"name": "hello-world",
"description": "internship practice app",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.2.4"
}
}
Last edited by hawkshockey11; 05-16-2013 at 07:53 PM.
|
|
Member
(05-16-2013, 09:54 PM)
|
#4561
I don't really follow any blogs. I subscribe to a few specific programming sub-reddits on reddit, and that's where I get all my news. The comments also always provide better insight than the posts themselves.
|
|
Member
(05-16-2013, 10:35 PM)
|
#4564
Yep. /r/Programming is still a pretty decent "large" subreddit + some of the more language specific ones.
|
|
Black Canada Mafia
(05-16-2013, 11:16 PM)
|
#4567
Bout to make my first real web-app. And I'm going to try and use the Google Drive API.
This is going to be a roller coaster, filled with tears and anguish. What I want to do PROBABLY won't work, and I'll have to use a proper DB, but I wanna give it a shot - it'll be a learning experience. Right? Right???? |
|
Member
(05-16-2013, 11:19 PM)
|
#4568
JSON is a standard for representing data as text. It looks basically just like javascript objects. Here's an example: Code:
{
"name": "Ralph",
"age": 31,
"children": [
{
"name": "Judy",
"age": 9
},
{
"name": "Ethan",
"age": 5
}
],
"sex": "Male"
}
The stuff inside curly braces {} is an object. The stuff inside square brackets [] is an array. White space doesn't matter at all (new lines and spaces). They're just to make it easier to read. Objects have key-value pairs in the form of key: value Strings are enclosed in double quotes, numbers aren't. Things in objects are separated by commas. Your assignment says that your server code should return some json on a GET request. This is different from returning a text document, or from returning a web page.
Last edited by usea; 05-16-2013 at 11:23 PM.
|
|
Member
(05-17-2013, 12:10 AM)
|
#4569
Hi everyone,
I've been doing the Python course through Codeacademy, but I'm finding that I'm not really getting what I hoped out of it. I think I'm going to dive into 'Learn Python the Hard Way' which seems like a popular suggestion, but I was wondering if anyone has had any experience with the video course he offers? I'd definitely prefer accompanying video tutorials and have no problem buying them if they're good. Thanks! |
|
Member
(05-17-2013, 12:47 AM)
|
#4570
Ok so I have the Hello World GET request. How would I edit my json file and then return it? |
|
Member
(05-17-2013, 01:00 AM)
|
#4571
Your questions really seem like the type you are supposed to learn to answer yourself with this assignment.
Last edited by nekura; 05-17-2013 at 01:07 AM.
|
|
Member
(05-17-2013, 01:14 AM)
|
#4572
In cases like this I learn best when the "answers" are available. I build off of them and can then make connections. I am reading this currently and it helps. http://www.nodebeginner.org/ |
|
Member
(05-17-2013, 01:39 AM)
|
#4575
Aside from those you said, I also read The Old New Thing, I listen to Hanselminutes, follow Hacker News, look through GitHub every now and then, and sometimes look through programming threads on /g/, along with other places. Used to follow Ars Technica, Engadget, and Gizmodo heavily, but have lessened recently. I do still listen to The Verge podcast, though, but that's veering towards general tech news, really. |
|
Member
(05-17-2013, 04:29 AM)
|
#4578
|
|
Member
(05-17-2013, 04:52 AM)
|
#4580
Usually you make an object and return it, not a file. Like, you could literally just return {response: "Hello World"}, from the code. I've never used express or even node, but given that it's javascript it'll be natural to do.
|
|
Member
(05-17-2013, 11:42 AM)
|
#4581
Please appreciate that the JSON format represents objects. In production scenarios, you should really not do the abstraction yourself because it's related to a standard you don't want to implement on your own.
Meaning that in the context of uni assignments and the like, you should be okay with treating JSON responses as dictionaries, basically (which is what usea is suggesting). But as soon as you communicate with an endpoint that returns JSON, or deliver JSON upon arbitrary requests, you should seriously consider using a library that does the abstraction for you. Such a library has a facility that takes an object and returns the JSON representation and vice versa. It's easy to find and use these libraries. {response: "Hello World"} is not valid JSON. JSON always has key-value pairs. response is not guaranteed to be a key, but "response" is. Just in case that trips you up :)
Last edited by wolfmat; 05-17-2013 at 11:46 AM.
|
|
Member
(05-17-2013, 11:50 AM)
|
#4582
Thanks for the corrections. |
|
Member
(05-17-2013, 11:54 AM)
|
#4583
I was really only pointing that out because I myself made the mistake of not adhering to the JSON standard once when eating responses, which broke things in production. That's why Murphy's Law exists, right? :P |
|
Member
(05-17-2013, 05:39 PM)
|
#4584
|
|
Member
(Yesterday, 12:35 AM)
|
#4586
is there a "last in, first out" copy paste program?
edit: never mind. i just had to search for stack. i found one at: http://bluemars.org/clipx/
Last edited by that1dude24; Yesterday at 12:46 AM.
|
|
Member
(Yesterday, 02:56 AM)
|
#4588
1) What is in demand in your preferred job, market, etc? All things held equal, be solid in those languages and tools. (Java is fairly popular almost everywhere you look, so it's not a bad option, but peek down to point 2.) 2) Expose yourself to a wide variety of languages and paradigms. You have your entire career to find yourself boxed in. Don't do it now. Now is the time for you to explore. Particularly since you are CIS (I know what that's like), if programming is something you want to do rather than reports and management and things, then certainly branch out and figure out what the CS guys are doing, what they know that you don't. And then try to bridge some of those gaps.
Last edited by Randolph Freelander; Yesterday at 02:59 AM.
|
|
Member
(Yesterday, 02:34 PM)
|
#4589
|
|
Member
(Yesterday, 03:53 PM)
|
#4590
I just finished the Coursera Scala/Functional Programming course. I can recommend it. The assignments were more of the "fill in the blanks" sort than actually designing programs from a high level, so I didn't find them too challenging. The most difficult part is to stop thinking in imperative ways.
|
|
Member
(Yesterday, 07:44 PM)
|
#4592
I've started dropping some off the list just because I really have no desire to work jobs that make use of them anymore (eg. Java and Perl). |
|
Member
(Yesterday, 07:45 PM)
|
#4593
From an actual interviewer standpoint, if you list it, you better actually know it. If it's something you've had "exposure to" (you're familiar but not well versed), then make that obvious. If I see something on your resume, I might ask you about it. If you can't answer, your stock has just dropped. Maybe you can recover, maybe you can't, but don't invite me to ask questions you can't answer. |
|
Member
(Yesterday, 07:47 PM)
|
#4594
Proficient: C++, C Prior Experience: Java, Python However, I would recommend only listing languages where you have implemented at least several medium-sized programs. If all you know about Python is that it doesn't have curly braces and semicolons, then I wouldn't list it. |
|
Member
(Yesterday, 07:52 PM)
|
#4595
|
|
Member
(Yesterday, 10:56 PM)
|
#4597
http://programmingpraxis.com/ A blog that posts programming exercises, most of them algorithmic or math-y. Still pretty nice, the author always provides a sample solution as well. http://lambda-the-ultimate.org/ If you're interested in programming language theory and new languages, this one is good. http://thedailywtf.com/ This one is pretty famous I think, basically failblog for programming. Some pretty entertaining stuff on here. http://www.realtimerendering.com/blog/ Blog from the auther of the excellent book "Real Time Rendering". The site also has an excellent section on computer graphics books, a lot of them are available for free. |
|
Member
(Yesterday, 10:58 PM)
|
#4598
Mine is super sparse. But it says I've 'contributed' to some popular repositories simply because I opened issues heh
|
|
It's Just the
Sweet Scent of Butane (Yesterday, 11:44 PM)
|
#4599
|
|
Member
(Today, 06:51 AM)
|
#4600
Mine once took like two months to actually show anything. It wasn't reading my activity for some reason.
|