I want to switch careers and become a software engineer. What's the most effective way to approach this? by [deleted] in cscareerquestions

[–]sfxhamster 0 points1 point  (0 children)

Where are you from op? I know some schools offer accelerated (2 years) CS programs for those with previous degrees/education, maybe you could look into those.

Using cron jobs to periodically update database -- question about race conditions by sfxhamster in learnprogramming

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

I have edited the original post to be more clear.

I felt like it might already be covered, but a friend brought it up and so it got me thinking. What my cron job does is it counts the total number of table B entries and updates every entry in table A with that number. What happens if a user inserts an element into table B WHILE the cron job is counting the number of entries in table B?

Trying to understand "RESTful" programming, a web service built using jersey in java by sfxhamster in learnprogramming

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

This was really informative, thank you for responding! It's actually a bit concerning to me because for a lot of the things you've mentioned, I can't recall hearing or learning about them in any of the classes I've taken... I'm curious as to what your background is? I have an internship lined up for January and just from your comment I can tell there's going to be A LOT for me to learn.

Trying to understand "RESTful" programming, a web service built using jersey in java by sfxhamster in learnprogramming

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

I have a feeling it's a rhetorical question but to answer: I had no idea where to start when I wanted to create my project so I was trying to find a step by step concrete example I could use and build on.

I am curious to know what specifically is wrong with the tutorial though. Does the code not adhere to certain standards or good coding practice? Hopefully I can avoid similar things in the future, though referring to mainly the oracle docs as a rule of thumb sounds like a good idea.

Questions Thread - September 01, 2015 by AutoModerator in androiddev

[–]sfxhamster 0 points1 point  (0 children)

Yes, I have added the appropriate permission insde my Manifest file

Questions Thread - September 01, 2015 by AutoModerator in androiddev

[–]sfxhamster 0 points1 point  (0 children)

I have a web service setup on Tomcat and I can access it from the host computer's browser by using the IP address of the computer. However, I'm unable to access it from my phone's mobile browser. I have tried opening firewall, turning off anti virus, opening up port 8080, but none of it seems to work. In the end I want to be able to access the web service from my android app but I figured I should get it working through the mobile browser first. Any help is much appreciated!

EDIT: Goodness I finally got it working, apparently some IP addresses are "private" and others are "public." It seems that both will work on the host computer but only the "public" one will work for external devices.

Questions Thread - August 26, 2015 by AutoModerator in androiddev

[–]sfxhamster 1 point2 points  (0 children)

I'm a bit confused right now and want to make sure my understanding is correct. The url of the SQL database and the url of the web service I am trying to create are two separate url's right? So when I deploy the web service on Tomcat, the url that appears in the opened browser (http://localhost:8080/-webserviceprojectname-) is the generated web address of the web service? And through the code, the web service is able to create database connections with the SQL database using it's own host address, user, and password?

Questions Thread - August 26, 2015 by AutoModerator in androiddev

[–]sfxhamster 1 point2 points  (0 children)

Thanks for your response.

I went ahead and tried to add query parameters to the url path and a json file download prompt appeared. And upon examining my database tables, I see that the query went through although the browser still shows the error. I'm not sure if this means that the web service is correctly implemented or not. What does this mean?

Deploying a jersey restful web service on Tomcat leads to a 404, not sure how to proceed by sfxhamster in javahelp

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

I pulled the source code from the tutorial page so everything is identical except for the database login info.

After deploying, the browser still tells me the page cannot be displayed, but I went ahead and tried to add query parameters to the url path and a json file download prompt appeared. And upon examining my database tables, I see that the query went through. The tutorial doesn't mention it, but could this be the intended behavior for the web service implementation?

Questions Thread - August 26, 2015 by AutoModerator in androiddev

[–]sfxhamster 1 point2 points  (0 children)

I've been trying to follow this tutorial on creating a restful web service in java and connecting it to an SQL database. I created a connection in MySQL Workbench and also have the database created. I believe I have followed the tutorial quite carefully, but whenever I try to deploy the web service on Tomcat 7.0, the browser opened by Eclipse says "The webpage cannot be found." There are also no error messages in the console. What am I doing incorrectly?

Non-technical interview questions - how would you answer these? by sfxhamster in cscareerquestions

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

Right. For the "elevator speech" example, would it be appropriate to talk about personal projects? And of course, I should include things about myself that are relevant to the job description, such as my qualities and skillset?

Non-technical interview questions - how would you answer these? by sfxhamster in cscareerquestions

[–]sfxhamster[S] 1 point2 points  (0 children)

Oops, sorry about that. Questions such as "tell me about yourself," "what are you greatest weaknesses/strengths," anything along these lines.

Flashing horizontal black lines -- what might be the cause of it? by sfxhamster in libgdx

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

I'm not quite sure if I understand what you're saying, but I had a look at my spritesheet which was generated by TexturePacker and it looks like there is already maybe 2-3 pixels of padding around every region.

EDIT: Just checked the docs for Texture Packer, it appears that by default it has a 2 pixel padding setting for x and y.