Open Side Menu Go to the Top

05-17-2014 , 11:39 AM
We spent a few hours beating our heads against the wall over this issue yesterday: http://code.google.com/p/chromium/is...tail?id=359627

Basically in chrome if you open a print dialog, and the user closes it by clicking the X on the window, the whole page freezes up and can't even be reloaded. Not something you want to happen in the middle of a sales process. The only thing the user can do is close the tab and start over.

I'm surprised that the chrome guys seem to think this is a relatively minor bug.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
05-17-2014 , 01:50 PM
Heh, that's happened to me a few times.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-17-2014 , 02:46 PM
Got my final monday on java servlets, java beans, JSP, XML, and web apps. I think it's gonna be our easiest one. (crosses fingers)

I have a 98 in the class so not too stressed. overall really disappointed in the course as a whole, although I do feel I have a much broader understanding of java applications than before I started the class. The web server stuff was by far my favorite portion of the class.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-17-2014 , 06:49 PM
Quote:
Originally Posted by jmakinmecrzy
Got my final monday on java servlets, java beans, JSP, XML, and web apps. I think it's gonna be our easiest one. (crosses fingers)

I have a 98 in the class so not too stressed. overall really disappointed in the course as a whole, although I do feel I have a much broader understanding of java applications than before I started the class. The web server stuff was by far my favorite portion of the class.
So do you guys learn how to do actual things in your courses?

All my courses are almost entirely theory and it infuriates me.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-17-2014 , 06:56 PM
Yes, 90% of the class has been practical application of "real world" java. The disappointing thing is he tried to cover too many subjects too broadly so we barely touched on each subject.

I really liked the last section of the class when we started doing backend web stuff. It's interesting to me and may be something I pursue further.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-17-2014 , 11:31 PM
Wait'll you do web back ends in non-java. You'll love that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 12:20 AM
I thought java was pretty good at that stuff?

The most lol-worthy thing i've done in java is try to create an XML doc with it. Absolutely ludicrous.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 01:02 AM
Quote:
Originally Posted by KatoKrazy
So do you guys learn how to do actual things in your courses?

All my courses are almost entirely theory and it infuriates me.
Quote:
Originally Posted by jmakinmecrzy
Yes, 90% of the class has been practical application of "real world" java. The disappointing thing is he tried to cover too many subjects too broadly so we barely touched on each subject.

I really liked the last section of the class when we started doing backend web stuff. It's interesting to me and may be something I pursue further.
Is there any course work in covering refactoring these days? Just curious.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 08:33 AM
prolog. give all the values generated by p(X) from backtracking.

p(X) :- q(X,Y), Z is X + Y, r(Z).
p(X) :- r(X), X > 3.
q(X,X):- r(X).
q(1,2).
r(2).
r(3).
r(4).

apparently gives

x=2
x=1
x=4
false;

really confused by this...how isnt the first value 1?
p(X) creates subgoals Q(X,Y), z is x + y, r(z)

subgoal Q(X,Y) unifies with Q(1 ,2) and is true.
z(3) is 1 + 2
r(3) unifies with r(3) so X = 1.


i dont know why it chooses to unify with Q(X, X) with X = 2 before Q(1, 2)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 12:11 PM
We don't do any refactoring but my first java teacher was real big on readability because she was lazy and a horrible programmer and would easily get confused reading something real basic. I don't think she knew java like at all.

My current teacher doesn't give a **** how you write or structure your code. Most of the time we're given projects that are 90% written and have to be changed to improve functionality or fix a bug. Or we're given a skeleton and have to add features on to it, which is sort of how I view coding as being done in the real world (i have no idea) so I like that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 01:37 PM
Quote:
Originally Posted by jmakinmecrzy
I thought java was pretty good at that stuff?

The most lol-worthy thing i've done in java is try to create an XML doc with it. Absolutely ludicrous.
You can write the backend stuff in almost any language. Scripting languages like Python, Ruby, PHP are popular because they are easy to use and have great library support. Web apps are usually not CPU bound (pretty much always network or IO bound) so it's rare you need to performance of Java or C++. However Java has an awesome ecosystem of tools and libraries and the JVM is an amazing application platform.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 05:23 PM
Quote:
Originally Posted by jmakinmecrzy
Or we're given a skeleton and have to add features on to it, which is sort of how I view coding as being done in the real world (i have no idea) so I like that.
I don't know how programming is done in the "real world" either, but using skeleton code irritates the daylights out of me. Seems like too much hand-holding that does little more than lull you into non-thinking and obscuring the lesson.

I've never worked with anything that gives skeleton code. Abstractions and libs? Yes, but what's the point of having one programmer writing a class with expected functions and return None statements and having you fill in a few for loops?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 09:18 PM
Everything doesn't happen at once. With services talking to each other it's possible to need services to return mock data until the service is complete enough to return actual data.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 11:41 PM
Quote:
Originally Posted by daveT
I don't know how programming is done in the "real world" either, but using skeleton code irritates the daylights out of me. Seems like too much hand-holding that does little more than lull you into non-thinking and obscuring the lesson.

I've never worked with anything that gives skeleton code. Abstractions and libs? Yes, but what's the point of having one programmer writing a class with expected functions and return None statements and having you fill in a few for loops?
For learning, yea it's terrible, I agree. Some of our latest assignments are exploratory and have us build more stuff from scratch (lots of web page stuff).

My experience so far has been: get an assignment that says "make x do _____", go "oh crap, I don't really know how to do that", look up/troubleshoot a solution, test it, hastily throw it together before a deadline. That's kind of how the real world is, right? lol.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 11:51 PM
Quote:
Originally Posted by jmakinmecrzy
We don't do any refactoring but my first java teacher was real big on readability because she was lazy and a horrible programmer and would easily get confused reading something real basic. I don't think she knew java like at all.

My current teacher doesn't give a **** how you write or structure your code. Most of the time we're given projects that are 90% written and have to be changed to improve functionality or fix a bug. Or we're given a skeleton and have to add features on to it, which is sort of how I view coding as being done in the real world (i have no idea) so I like that.
A lot of times that is pretty accurate for "real world" development.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2014 , 11:54 PM
Quote:
Originally Posted by jmakinmecrzy
For learning, yea it's terrible, I agree. Some of our latest assignments are exploratory and have us build more stuff from scratch (lots of web page stuff).

My experience so far has been: get an assignment that says "make x do _____", go "oh crap, I don't really know how to do that", look up/troubleshoot a solution, test it, hastily throw it together before a deadline. That's kind of how the real world is, right? lol.
Your solutions will get scrutinized more thoroughly. Hopefully coming out of school you'll actually get to write a lot of code from "scratch."
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 11:02 AM
I was asked to perform a simple fix and I did but I was wondering which solution is better (I put both in the file but commented out the one I thought was worse).

Pretty convoluted website and it took me some time to figure out what was going on but there's a vertical side navigation and they wanted squares in front of the items on the lowest level because it washard to tell apart that level and the one above...I was thinking...not hard, someone just set list-style-type: none and I'll set it to square (once I found out where...yay FF web dev tools) and be on my way.
Turns out the entire navigation was inlined and that voids the idea...so here's the two fixes I came up with (haven't checked for browser compatibility and the like and quite frankly don't want to lol)

Version 1
Code:
.vlist li ul li span:before {content:'\ffed'; margin-right: 0.5em;}
Version 2
Code:
.vlist li ul li span {display: list-item; list-style-type: square; margin-left: 1em;}
I prefer version 2 because version 1 feels like a hack. Can't see any downsides to changing the display back right now so I'll keep it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 01:09 PM
Like most css minutiae I had a similar problem a few months ago and there's a much more elegant solution but it's out of memory now =/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 05:03 PM
another c# question:

I add a shape to my spreadsheet this way:
MOC.MsoAutoShapeType DefaultShape = MOC.MsoAutoShapeType.msoShapeRectangle;

Microsoft.Office.Interop.Excel.Shape CurBlock = Activesheet.Shapes.AddShape(DefaultShape, Left, Top, Width, Height);

However I can't figure out how to access any of the shape's events.

Anyone know how to do this?

Last edited by noname6520; 05-19-2014 at 05:12 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 05:51 PM
Man I am really hating this Computer Architecture course. If I wanted to be an Electrical Engineer I would have majored in Electrical Engineering...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 06:57 PM
Quote:
Originally Posted by KatoKrazy
Man I am really hating this Computer Architecture course. If I wanted to be an Electrical Engineer I would have majored in Electrical Engineering...
Processor architecture and related topics I assume and not software system architecture. Your coursework does seem like it covers a fair amount of low level software issues.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 07:26 PM
Quote:
Originally Posted by adios
Processor architecture and related topics I assume and not software system architecture. Your coursework does seem like it covers a fair amount of low level software issues.
Right. We are doing a little bit of MIPS assembly stuff, but mostly learning how IC work.

It is actually sort of interesting, but it is hard to pay attention to for 5 hours at a time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2014 , 07:37 PM
Quote:
Originally Posted by KatoKrazy
Right. We are doing a little bit of MIPS assembly stuff, but mostly learning how IC work.
ARM architecture(s) and assembly language would be better to learn than MIPS just because it is more widely used especially in embedded type systems.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-20-2014 , 12:46 AM
jmakinmecrzy, i've read some of your posts on your java classes and was wondering if you go to what they call a univeristy or community college?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-20-2014 , 01:16 AM
It's a CC and the classes are a joke, I just got my final grade in advanced java and I got a 98. I have a transfer agreement with one of the top CS schools in the nation, I should be able to transfer there in 1-2 years, depending on how long it takes me to learn ****ing french, which I haven't taken in ten years.

Also, who the **** are you? You are the first person who has ever spelled my username correctly.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m