Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

05-03-2013 , 04:17 AM
Day 27: My love affair with angularjs remains strong.

I should stop getting up at 3 AM to work on my side project though, I'm going to be a zombie at work later.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 07:43 AM
Quote:
Originally Posted by Nchabazam
Day 27: My love affair with angularjs remains strong.

I should stop getting up at 3 AM to work on my side project though, I'm going to be a zombie at work later.
It really is nice
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 10:54 AM
css hint #1: IE8 support and up, start with

Code:
* {-webkit-box-sizing: border-box; box-sizing: border-box}
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 11:20 AM
Quote:
Originally Posted by splashpot
Is there a good resource for learning CSS at least to the level where I can work with bootstrap? I feel like reading the bootstrap docs isn't doing it for me.
Do you even hand-code css when working with bootstrap? I've looked at it and it seems like you could do just about everything just by knowing the tag to link the existing css document and how to add classes to html elements, neither of which is "really" css.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 11:22 AM
Quote:
Originally Posted by Nchabazam
I should stop getting up at 3 AM to work on my side project though, I'm going to be a zombie at work later.
I've been trying to get on these farmers hours, but so far no success... Seems ideal. Go to bed at 7, wake up at 3. Solid 4-5 hours of side project work b4 you have to start the day.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 11:41 AM
Quote:
Originally Posted by Xhad
Do you even hand-code css when working with bootstrap? I've looked at it and it seems like you could do just about everything just by knowing the tag to link the existing css document and how to add classes to html elements, neither of which is "really" css.
Yeah.. and you can modify it to your taste on their website. I don't really think you need to know css to make a very pretty website with Bootstrap.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 12:00 PM
Quote:
Originally Posted by Nchabazam
Day 27: My love affair with angularjs remains strong.

I should stop getting up at 3 AM to work on my side project though, I'm going to be a zombie at work later.
We may be switching from backbone to angular for our new responsive site.

Fwiw this guy seems to be a better resource on angular than actual documentation: http://www.egghead.io/

Also aren't you the one who's getting kind of burned out and has no stamina for programming at your job? I think I may have a clue as to what your problem is.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 01:06 PM
suzzer,

yeah egghead is good, although i find it's not complete if you really want to understand it all deeply. it's a pretty complex framework under the hood, but you can get started with it and do a ton of stuff without getting into that. agreed the official docs can be pretty arcane.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 02:06 PM
Quote:
Originally Posted by suzzer99
We may be switching from backbone to angular for our new responsive site.

Fwiw this guy seems to be a better resource on angular than actual documentation: http://www.egghead.io/

Also aren't you the one who's getting kind of burned out and has no stamina for programming at your job? I think I may have a clue as to what your problem is.
Those egghead videos are a decent start... better than angular's documentation for sure.

eh I have terrible ADD and am just bored with what I'm doing during the day. I actually have a ton of stamina in general, it just winds up being for stuff I'm interested in. If I got up and went to work all day I'd be exhausted halfway through, but reenergized to do my own stuff when I got home.

I guess that's the way it goes.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 02:47 PM
I guarantee if you get a good night's sleep you will have more stamina and better focus.

I'm 44 and was down to less than 6 hours a night just naturally (I read somewhere that a lot of people's sleep hormone levels go down as they get older). Also if I got a lot of exercise during the day I would usually wake up around 3am and not be able to get back to sleep for a couple hours.

Now I take trazadone and sleep 7-9 hours every night. I feel so much sharper at work. I can think clearer, I'm more focused, I'm less stressed and I'm much less likely to get snappy with my coworkers. It's really improved my productivity and overall sense of well being.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 04:54 PM
Quote:
Originally Posted by suzzer99
We may be switching from backbone to angular for our new responsive site.

Fwiw this guy seems to be a better resource on angular than actual documentation: http://www.egghead.io/
We've just about finished rewriting our main web application in AngularJS + ASP.NET MVC, (using iframes to backport some of the old functionality that's yet to be ported) and had great experience. The trickiest part was supporting IE8 with good performance, because it's so much slower than IE9+, Chrome and Firefox, which means a lot of components had to be rewritten when we realized our approach was too slow for IE8 and we had to write custom directives that remove functionality from built-in directives to run faster. And getting other developers to buy into the Angular way of things and imposing overall discipline have been tricky at times - some developers, especially those who are largely used to server-side apps with javascript/jQuery to glue together effects without having to deal with a large javascript code base, tend to write some cringeworthy, globally impactful hacks in Javascript/jQuery, which still somehow works with AngularJS, but are strongly against the spirit of how to do things in AngularJS and eat away at the benefits of AngularJS (code organization, separation of concerns, testability, etc).

I found it easy to embrace the AngularJS way of doing things, in part because I had no jQuery/javascript experience/baggage/preconception and being the person who introduced AngularJS to the team, got it accepted and led the project, I had a much stronger incentive to do it the right way. YMMV.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 05:04 PM
Quote:
Originally Posted by gaming_mouse
yeah egghead is good, although i find it's not complete if you really want to understand it all deeply. it's a pretty complex framework under the hood, but you can get started with it and do a ton of stuff without getting into that. agreed the official docs can be pretty arcane.
Ultimately, I find that you have to dive into the source code. Luckily, it's really well-written and the core is small. Much of the code base outside the core (directives, for instance) serves as examples for how to use AngularJS API.

Official docs are kind of sketchy at best at this point.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-03-2013 , 09:30 PM
so I just took a two week contract job where I told the guys I could do their site in jquery mobile thinking "well how hard could it be, I know jquery". Whoops. At least I have a week to learn it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 06:05 AM
Quote:
Originally Posted by Grue
so I just took a two week contract job where I told the guys I could do their site in jquery mobile thinking "well how hard could it be, I know jquery". Whoops. At least I have a week to learn it.
Not hard, but this is much better
http://app-framework-software.intel.com/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 02:45 PM
Interesting article about the dark art of 'estimation' (in Agile)

http://agile.dzone.com/articles/agil...ation-practice
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 04:56 PM
I'm trying to update a value in this db by matching 2 criteria.....for some reason I can't come up with how to do that and I keep getting an exception in program. I just need to use the WHERE to get studentID and assignID so I know which record to update the new numeric grade.

Code:
			String sql = "UPDATE grade " +
					"SET numericGrade = " + txtAssignGrade.getText() +
					"WHERE " +
					"stuID = " + listStudent.getSelectedIndex() +
					"assignID =" +listAssignment.getSelectedIndex();
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 05:01 PM
Quote:
Originally Posted by diarrhea
I'm trying to update a value in this db by matching 2 criteria.....for some reason I can't come up with how to do that and I keep getting an exception in program. I just need to use the WHERE to get studentID and assignID so I know which record to update the new numeric grade.

Code:
			String sql = "UPDATE grade " +
					"SET numericGrade = " + txtAssignGrade.getText() +
					"WHERE " +
					"stuID = " + listStudent.getSelectedIndex() +
					"assignID =" +listAssignment.getSelectedIndex();
Code:
			String sql = "UPDATE grade " +
					"SET numericGrade = " + txtAssignGrade.getText() +
					"WHERE " +
					"stuID = " + listStudent.getSelectedIndex() +
					"AND assignID =" +listAssignment.getSelectedIndex();
put the 'AND' in
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 11:09 PM
Still isn't working....not quite sure why. Not even sure what to post next haha.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-04-2013 , 11:55 PM
hopefully this works:
Code:
String sql = "UPDATE grade " +
"SET numericGrade = '" + txtAssignGrade.getText() + "'" +
" WHERE " +
"stuID = " + listStudent.getSelectedIndex() +
" AND assignID =" +listAssignment.getSelectedIndex() + ";";
Added a few spaces (it would have said "stuID = 6AND assignID..."), also added single quotes around numericGrade - but those are confusing with a name like numeric it should be a number but using getText() looks like a string, so you may need to remove those again. And added a terminating semicolon to the sql string.

It can help to echo the completed string (or examine logs somewhere) to see what it looks like after construction if things aren't executing as expected.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 12:34 AM
Yeah I can see where that's confusing. The project is a gradebook. Have a listbox to select the student. Another listbox to select name of assignment/quiz/test. It then shows the students current score/max points and overall %. getText is getting input for assignment and then updating the DB with new score. It was just making a whole new assignment instead of updating DB so overall % was getting above 100%.

It seems to be working perfect now. Just got to make sure it doesn't screw anything else up, but I don't think it will.

Thanks
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 07:03 AM
So I emailed this to my group who consists of 2 brothers that kind of took this thing over. They said they tried this and opted to go about it the other way since we have an add assignment function and they couldn't figure out how to do both.....the problem is if we just have this insertGrade() method as it is...the % can get over 100 as it continues to add assignments but not increase maxPoints.

Sorry been drinking.

Is there a way to combine what we have above.....in addition to inserting a new assignment/grade "row" if like there was an existing row already in the table, it would Update, if no row existed, then it would Insert?!?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 07:11 AM
It'd probably be a heck of a lot easier if you focus on getting the raw SQL correct before adding it to your code.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 11:52 AM
I've taught myself a reasonable amount of python with online resources, mostly starting out with the google classes and codeacademy, and that went pretty well so that I can do some simple scripting to make parts of my job easier.

However, now I'm going to have to get acquainted with R for my job as that's what a lot of bioinformatics uses, but I can't find any ready to go resources like codeacademy for it. Am I missing something, or does someone know of a good learning tool?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 02:50 PM
Quote:
Originally Posted by Slick Strawberry
I've taught myself a reasonable amount of python with online resources, mostly starting out with the google classes and codeacademy, and that went pretty well so that I can do some simple scripting to make parts of my job easier.

However, now I'm going to have to get acquainted with R for my job as that's what a lot of bioinformatics uses, but I can't find any ready to go resources like codeacademy for it. Am I missing something, or does someone know of a good learning tool?
What sort of scripting have you done to make your job easier? I'm interested in automating some repetitive desktop tasks, such as reading and typing into other programs, but am not sure how to go about doing it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-05-2013 , 11:05 PM
Quote:
Originally Posted by diarrhea
So I emailed this to my group who consists of 2 brothers that kind of took this thing over. They said they tried this and opted to go about it the other way since we have an add assignment function and they couldn't figure out how to do both.....the problem is if we just have this insertGrade() method as it is...the % can get over 100 as it continues to add assignments but not increase maxPoints.

Sorry been drinking.

Is there a way to combine what we have above.....in addition to inserting a new assignment/grade "row" if like there was an existing row already in the table, it would Update, if no row existed, then it would Insert?!?
I'm not entirely sure what it is you are attempting, but I would think that you could create a better schema:

Suppose you start with:

AssignmentGrades:

Student_ID; Assignement_ID; Grade

Then you have a table that totals up the grades:

ClassGrades

Student_ID; Grade

Now you can insert into AssignmentGrades, then after insertion, update the grades on the ClassGrades table. You would be able to update ClassGrades with an avg() function and you can place a foreign-key constraint on ClassGrades or whatever. I'm not entirely sure what your project entails, but it looks like you are trying to do way too much on way too few tables, thus you ought to reconsider your design.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m