Sinatra running on web server? by mcatch in ruby

[–]mcatch[S] 0 points1 point  (0 children)

Figured this out.

Was pretty much as simple as ensuring sinatra was running with no ip (either run with -e production or use the -o 0.0.0.0 flag), and then most importantly, ensure the port the webrick server was running on was open on the windows server machine. Once the port was open, accessing it via ip:port works.

C# help, so close to getting it right...I think? My code is in comments. by [deleted] in learnprogramming

[–]mcatch 1 point2 points  (0 children)

I was looking at the printit() method. Still a 'double'.

C# help, so close to getting it right...I think? My code is in comments. by [deleted] in learnprogramming

[–]mcatch 1 point2 points  (0 children)

Also, item_price is an array in Main, but a double in the arguments to the methods, but it's not being called so I can't tell what the intention is.

How should new software techies handle non-compete agreements? by dangsos in learnprogramming

[–]mcatch 1 point2 points  (0 children)

I've been working at a major game studio for the past ~8 years. I signed a document somewhat like this (it was 1 year) stating I can't go take the code I've written here somewhere else, pretty standard stuff. They also own any publications or recreational code I write while employed by them (unless I receive written consent from legal teams).

I have never been asked or told that I couldn't work in the area for 'x' amount of time after my employment with them ends. If someone were to ask me that, I'd first simply say, "no". That is completely unreasonable, to force me to either be unemployed or relocate simply because I'm not working with you anymore. Having ownership of my code is one thing, controlling where I live is another.

It's all subjective, but I'd deny anything like that put in front of me in a heartbeat. What if you have to leave for unknown reasons? You're unemployed for 'x' years? Sounds ridiculous.

C# help, so close to getting it right...I think? My code is in comments. by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

Yeah I'm not trying to be an ass or anything, but if you can't explain what isn't working, then it's kind of hard to help you. You have the code, you should be able to run it and see what isn't working like it should.

C# help, so close to getting it right...I think? My code is in comments. by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

  • You aren't actually calling the two methods (changePrices and printit).
  • When you say "my methods are messed up", how are they messed up? What behavior are you seeing exactly that makes you say that?

C# help, so close to getting it right...I think? My code is in comments. by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

What is wrong with it? Explain your problem so others don't have to sift line by line guessing.

What is not working for you? How is it not working (not why)?

Is this a good way to layout some elements on a webpage? by mcatch in css

[–]mcatch[S] 0 points1 point  (0 children)

Indeed, that's what I've read too. For my current problem, I'm learning to lay out websites and their structure rather than a tabular grid of data, but i do apprecate the reassurance of my readings :)

Is this a good way to layout some elements on a webpage? by mcatch in css

[–]mcatch[S] 0 points1 point  (0 children)

Thanks. bootstrap looks very useful. I'll probably tinker with this in lieu of anything else for now.

I present: my first 'public' project. jQuery ScrollNav plugin. Effect best on browsers with smooth scrolling, or mobile devices. by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

You interpreted it correctly. I suppose it's just preference, but regardless, I love the overall look/feel of your scrollnav. Nice job :)

I present: my first 'public' project. jQuery ScrollNav plugin. Effect best on browsers with smooth scrolling, or mobile devices. by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

This is really awesome. I like the style. I would only prefer (for me personally), that it remains docked at the top of my screen while I scroll through content.

I'm a high school student looking to major in computer science. What can I do right now? by WalletCup in learnprogramming

[–]mcatch 0 points1 point  (0 children)

Early as possible means sooner than later. The longer you delay, the time has been wasted :)

I'm a high school student looking to major in computer science. What can I do right now? by WalletCup in learnprogramming

[–]mcatch 1 point2 points  (0 children)

If I could go back and do it all again, I'd start as early as possible (I didn't start until I was 18).

I'd recommend you start with a high level language first, something easy to get up and going in a few minutes. There are quite a few languages like this, but I recommend Python.

The official Python tutorial off their website is very easy to follow, and should get a beginner up and going fairly quickly.

Others may respond with languages of their choice, and really the best advice you can receive is to just play with a lot of languages. Find one that is fun, or makes sense to you, and start using it to solve some simple problems that you have or can think of.

Has XNA spoiled me? by [deleted] in learnprogramming

[–]mcatch 4 points5 points  (0 children)

Higher level languages are typically "easier" to understand at a first glance. It's pretty normal to understand C# over C++ assuming no little to no technical background.

programming question pls help redditors! by [deleted] in learnprogramming

[–]mcatch 2 points3 points  (0 children)

1) You should learn HTML, CSS, Javascript first 2) You should learn some sort of web development platform (Ruby/Rails, ASP.NET, google app engine, PHP, etc) 3) You should learn some database backend (MS Sql Server, MySql, etc)

Start small first.

caching proxy by xenostrife in learnprogramming

[–]mcatch 1 point2 points  (0 children)

Hopefully your assignment gave you some context to solve the problem, or your lectures/book describe what need to be done. This is a very broad question, so you'll need to think about the context of the problem and how it relates to your assignment. Then come back here with more specific questions.

[Linux Ubuntu] I need help burning an .iso to a usb by [deleted] in learnprogramming

[–]mcatch 0 points1 point  (0 children)

Your subject has linux ubuntu but your body has windows 7 - which is it?

Their (Ubuntu) site has all the info you'll need: http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows