• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:55
CEST 01:55
KST 08:55
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy1GSL CK: More events planned pending crowdfunding0Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy
Tourneys
RSL Season 4 announced for March-April $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sea Duckling Open (Global, Bronze-Diamond) GSL CK: More events planned pending crowdfunding Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
so ive been playing broodwar for a week straight. Gypsy to Korea ASL21 General Discussion Pros React To: JaeDong vs Queen [BSL22] RO32 Group Stage
Tourneys
[BSL22] RO32 Group B - Sunday 21:00 CEST [BSL22] RO32 Group A - Saturday 21:00 CEST 🌍 Weekly Foreign Showmatches [Megathread] Daily Proleagues
Strategy
Muta micro map competition Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Nintendo Switch Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2777 users

The Big Programming Thread - Page 343

Forum Index > General Forum
Post a Reply
Prev 1 341 342 343 344 345 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
August 14 2013 09:20 GMT
#6841
On August 14 2013 18:01 adwodon wrote:
Show nested quote +
On August 14 2013 17:43 spinesheath wrote:
That kind of depends on the technology (for example WPF, MFC, Win32 or whatever that ancient stuff is called) you are using for your user interface, but generally I'd assume you can change styles for individual controls, yes.


Yea its all Win32, I've not dared touch anything else, MFC looks a bit horrible. WPF looks mental but I hear if you can do it you can get some pretty swanky jobs, looks like a bitch to debug though and in my current job I've got very little excuse to learn .NET outside of writing some sample apps for our SDK.

Figured it out in the end though

WPF is nice, I like it a lot. It's pretty hard to get your head wrapped around bindings at first (and all the explanations I could find are quite bad), but once you got that figured out it is relatively simple.

I think I used some Win32 years ago when I was a horrible programmer still. What little I can remember of it is pretty damn ugly...
If you have a good reason to disagree with the above, please tell me. Thank you.
Saumure
Profile Joined February 2012
France404 Posts
August 14 2013 16:26 GMT
#6842
Hi guys, I have a question about MatLab.
I need to get a variable from a .m file so that I can use it in another file (the variable is changing over time). Can someone help me? I tried out a lot of stuff and used google ofc but nothing worked really...
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2013-08-14 17:18:17
August 14 2013 17:14 GMT
#6843
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-08-14 17:24:08
August 14 2013 17:18 GMT
#6844
Question: I'm using Maven and java to write some tests.

I have a class in src/test/java and src/main/java
The one in src/test/java imports from src/main/java
Then I tried to have the class in src/main/java also use the one in src/test/java


When I tried to run this in eclipse just using testng, it worked.
But then I tried to run in maven and it kept saying that my class in src/test/java did not exist.

Are you supposed to have tests depend on resources and never the other way around?

On August 15 2013 01:26 Saumure wrote:
Hi guys, I have a question about MatLab.
I need to get a variable from a .m file so that I can use it in another file (the variable is changing over time). Can someone help me? I tried out a lot of stuff and used google ofc but nothing worked really...

Check out matlab's import function. http://www.mathworks.com/help/matlab/ref/import.html

Then tell me whether you need more help. Do you need to access the variable directly or can you create an object of a class? Can you pass the variable with a method?

If you already know how to import then I'm guessing you want to make the variable global so changes can be used instantly.

On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

You have to learn some server side language to complement it if you want to build a site yourself.

I have no idea what good resources are.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
HardlyNever
Profile Blog Joined July 2011
United States1258 Posts
August 14 2013 20:26 GMT
#6845
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.


I'm a front end web developer and I use html basically every day at work. If you are interested in the front end of web design, I don't see how you could get around not knowing html. It isn't that hard to learn, at least in the basic sense (you don't have to memorize what all the elements do). It is an xml language, if that means anything. You can get a CMS that spits out html and css for you, without having much knowledge of either, but you'll be pretty limited in your customization options without knowing it.

Not 100% sure what you mean by a data driven website. If you mean one that interfaces with a database, there are lots of variations for that. Knowing PHP that can translate things into SQL is a pretty common thing (to interface with SQL databases), but there are other variations.
Out there, the Kid learned to fend for himself. Learned to build. Learned to break.
one-one-one
Profile Joined November 2011
Sweden551 Posts
August 14 2013 21:35 GMT
#6846
On August 15 2013 02:18 obesechicken13 wrote:
Question: I'm using Maven and java to write some tests.

I have a class in src/test/java and src/main/java
The one in src/test/java imports from src/main/java
Then I tried to have the class in src/main/java also use the one in src/test/java


When I tried to run this in eclipse just using testng, it worked.
But then I tried to run in maven and it kept saying that my class in src/test/java did not exist.

Are you supposed to have tests depend on resources and never the other way around?


As for tests it is my opinion that the only design choice that makes sense is to design your unit test classes to be optional.
You should have build targets that don't build or run any tests. This makes for leaner and faster production releases.
This way, your resources must not depend on any test classes.

Next thing:
Eclipse and Maven integration is a funny story.
I would recommend that you first set up your project to be Maven only, then use Eclipse's method to import existing Maven projects. In a perfect world, or if your project is small, it can work well.
You'll have to post your pom.xml file so we can have a look at how you configured your Maven project.

I must warn you. If you want this to work well you might need a lot of patience before you get things to work the right way.
My recommendation is to do away with Eclipse and forget about full IDE integration. In my experience it works better if
you just let Maven work on its own. You'll have to spend a little more energy on setting up a comfortable programming environment and learning another IDE than Eclipse.

Eclipse is slow, buggy and never holds up to what it promises to do. It represents everything that is bad with JAVA.

http://www.youtube.com/watch?feature=player_embedded&v=1BFY4R7IIP4#t=1710s
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
August 14 2013 21:44 GMT
#6847
On August 15 2013 06:35 one-one-one wrote:
Eclipse is slow, buggy and never holds up to what it promises to do.

My thoughts exactly.

Also agree on the test part, nothing should ever depend on tests. It's both conceptually and practically bad.
If you have a good reason to disagree with the above, please tell me. Thank you.
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2013-08-15 00:25:08
August 15 2013 00:15 GMT
#6848
On August 15 2013 06:35 one-one-one wrote:
Show nested quote +
On August 15 2013 02:18 obesechicken13 wrote:
Question: I'm using Maven and java to write some tests.

I have a class in src/test/java and src/main/java
The one in src/test/java imports from src/main/java
Then I tried to have the class in src/main/java also use the one in src/test/java


When I tried to run this in eclipse just using testng, it worked.
But then I tried to run in maven and it kept saying that my class in src/test/java did not exist.

Are you supposed to have tests depend on resources and never the other way around?


As for tests it is my opinion that the only design choice that makes sense is to design your unit test classes to be optional.
You should have build targets that don't build or run any tests. This makes for leaner and faster production releases.
This way, your resources must not depend on any test classes.

Next thing:
Eclipse and Maven integration is a funny story.
I would recommend tha you first set up your project to be Maven only, then use Eclipse's method to import existing Maven projects. In a perfect world, or if your project is small, it can work well.
You'll have to post your pom.xml file so we can have a look at how you configured your Maven project.

I must warn you. If you want this to work well you might need a lot of patience before you get things to work the right way.
My recommendation is to do away with Eclipse and forget about full IDE integration. In my experience it works better if
you just let Maven work on its own. You'll have to spend a little more energy on setting up a comfortable programming environment and learning another IDE than Eclipse.

Eclipse is slow, buggy and never holds up to what it promises to do. It represents everything that is bad with JAVA.



What? ... the java hate is just so overdone.

I don't think that you necessarily need to setup your project to be maven only, sure it would eliminate the issue because well... you wouldn't even be running the tests with the testng plugin. But regardless of what people try to say, eclipse is a great ide and works well when you understand what its trying to do.

The reason that you are experiencing the issues is because of the differences of maven and eclipse. Maven is a full build tool, but eclipse tries to circumvent some of the lifecycles and use their own compilation methods. m2e has come along way but its still not perfect. When setting up the classpath for eclipse it includes all of your dependencies which gives you a false sense of working.

If you think about the maven lifecycle, I don't think what you are talking about makes a lot of sense. Sure it makes sense for your test resources to be able to access your source resources, that's the whole point of testing. When you are compiling your code thought in the compile phase it hasn't even tried to process the test files yet.

After the tests are run, that's about the extent that those classes get to exist. When you are packaging your project (jar or war), the test sources won't even be included in the package. They are even compiled to separate places (target/classes vs target/test-clasess)
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
August 15 2013 01:38 GMT
#6849
Thanks guys
On August 15 2013 02:18 obesechicken13 wrote:
Question: I'm using Maven and java to write some tests.

I have a class in src/test/java and src/main/java
The one in src/test/java imports from src/main/java
Then I tried to have the class in src/main/java also use the one in src/test/java


When I tried to run this in eclipse just using testng, it worked.
But then I tried to run in maven and it kept saying that my class in src/test/java did not exist.

Are you supposed to have tests depend on resources and never the other way around?

Show nested quote +
On August 15 2013 01:26 Saumure wrote:
Hi guys, I have a question about MatLab.
I need to get a variable from a .m file so that I can use it in another file (the variable is changing over time). Can someone help me? I tried out a lot of stuff and used google ofc but nothing worked really...

Check out matlab's import function. http://www.mathworks.com/help/matlab/ref/import.html

Then tell me whether you need more help. Do you need to access the variable directly or can you create an object of a class? Can you pass the variable with a method?

If you already know how to import then I'm guessing you want to make the variable global so changes can be used instantly.

Show nested quote +
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

You have to learn some server side language to complement it if you want to build a site yourself.

I have no idea what good resources are.


Code academy and coursers have html5 courses.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
KurtistheTurtle
Profile Blog Joined December 2008
United States1966 Posts
August 15 2013 05:38 GMT
#6850
Hey! So I just passed the OCJAP7 exam (java associate) today. Coming from little to no cs knowledge 6 months ago, I'm feeling good

However, I know that I'm still missing out on a lot of java stuff. There are still some areas I want to look into to kind of round out my knowledge of the language:

- Networking
- Serialization
- Annotation
- (Not entirely java-centric) Database relations...SQL, nosql, relational algebra and all that etc
- And of course...lambdas. those look cool

Any other things you guys recommend?

Also, I want to drill TDD into myself from the start. Any recommendations on books or other resources?
“Reject your sense of injury and the injury itself disappears."
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
August 15 2013 06:44 GMT
#6851
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

HTML takes no time to learn, it's dead simple. Just search on google, find some decent tutorials and you're green.

If you want to make a modern web site, especially if it's data driven, you definitely need to know a server-side language as well. Which one you go for is up to you, here's some options: PHP, ASP.NET, Ruby on rails, Django. node.js.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
August 15 2013 06:53 GMT
#6852
On August 15 2013 15:44 Tobberoth wrote:
Show nested quote +
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

HTML takes no time to learn, it's dead simple. Just search on google, find some decent tutorials and you're green.

If you want to make a modern web site, especially if it's data driven, you definitely need to know a server-side language as well. Which one you go for is up to you, here's some options: PHP, ASP.NET, Ruby on rails, Django. node.js.

Is he asking about HTML5 or just HTML?
Average means I'm better than half of you.
Shikada
Profile Joined May 2012
Serbia976 Posts
August 15 2013 06:55 GMT
#6853
On August 15 2013 14:38 KurtistheTurtle wrote:
Hey! So I just passed the OCJAP7 exam (java associate) today. Coming from little to no cs knowledge 6 months ago, I'm feeling good

However, I know that I'm still missing out on a lot of java stuff. There are still some areas I want to look into to kind of round out my knowledge of the language:

- Networking
- Serialization
- Annotation
- (Not entirely java-centric) Database relations...SQL, nosql, relational algebra and all that etc
- And of course...lambdas. those look cool

Any other things you guys recommend?

Also, I want to drill TDD into myself from the start. Any recommendations on books or other resources?


You definitively need to learn all of that, though java might not be the best language to learn lambdas in. Scheme is by far the best for that, but since you're new to programming, I guess you probably want to stick to java for now (lambdas are coming soon in version 8).

A must read for any serous java dev:
http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683

Seriously, learn this book by heart, your future collages will thank you for it.

The best book to learn TDD that I know of is:
http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627

It's about TDD practice in general, but I'm sure that you'll appreciate that all the examples are in java. If this is too involved for you there are other books about TDD in java, even from this year. An quick amazon search will net you good results
]343[
Profile Blog Joined May 2008
United States10328 Posts
August 15 2013 06:58 GMT
#6854
I have a pretty general question about OOP (but more specifically Java, since maybe strong typing and single-inheritance make a difference here?)

Say I have class A containing something of class X, and a subclass A1 of A which must contain a subclass X1 of X. What's a good way of structuring this?

I ran into this in two separate occasions: once, I wanted to use the Builder pattern in both class A and its subclass A1. Naively, you could have A1Builder extend ABuilder, but then to actually build an object of type A1, you have to do something like
( (A1Builder) new A(ABuilder(z1).withZ2(z2).withZ3(z3)) ).withZ4(z4).build()
which is pretty ugly.

There are some solutions suggested here which seem ok, but sort of messy.

On the second occasion, I had some classes (A superclass A1, A2, ...) which contain both backend model stuff and frontend Swing stuff (don't ask, I didn't write it ) and wanted to separate these out so that A contains a "data wrapper"/"transport object" of type X, A1 contains a transport object of type X1, etc. But then if I give A an instance of X as an instance variable, the only way it seems that I could extract an X1 out of A1 is to do an unchecked cast somewhere inside A1 from the X into the X1; that leaves a bad taste in my mouth, but it seems like Java just isn't equipped to do that kind of thing? Or am I missing something?
Writer
KurtistheTurtle
Profile Blog Joined December 2008
United States1966 Posts
August 15 2013 07:20 GMT
#6855
On August 15 2013 15:55 Shikada wrote:
http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683

Seriously, learn this book by heart, your future collages will thank you for it.

It's sitting on my desk right now! First I want to get through the rest of one of my intro to java books so I get some guided gui and networking practice in, then I'm gonna hop around in Code Complete. Maybe by then I'll be able to understand what effective java is actually saying :p

The best book to learn TDD that I know of is:
http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627

It's about TDD practice in general, but I'm sure that you'll appreciate that all the examples are in java. If this is too involved for you there are other books about TDD in java, even from this year. An quick amazon search will net you good results

Since you recommended effective java, I'll definitely go with your recommendation on this one too. Thanks!
“Reject your sense of injury and the injury itself disappears."
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
Last Edited: 2013-08-15 07:24:09
August 15 2013 07:22 GMT
#6856
On August 15 2013 15:53 WolfintheSheep wrote:
Show nested quote +
On August 15 2013 15:44 Tobberoth wrote:
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

HTML takes no time to learn, it's dead simple. Just search on google, find some decent tutorials and you're green.

If you want to make a modern web site, especially if it's data driven, you definitely need to know a server-side language as well. Which one you go for is up to you, here's some options: PHP, ASP.NET, Ruby on rails, Django. node.js.

Is he asking about HTML5 or just HTML?

HTML5 is HTML. Why would he learn HTML4 when HTML5 is an official standard? I mean, it's not like people ask "Is it worth learning .NET 2.0?". If you learn .NET, you learn .NET, and you obviously learn the latest version.
tec27
Profile Blog Joined June 2004
United States3702 Posts
Last Edited: 2013-08-15 07:24:16
August 15 2013 07:23 GMT
#6857
On August 15 2013 15:58 ]343[ wrote:
I have a pretty general question about OOP (but more specifically Java, since maybe strong typing and single-inheritance make a difference here?)

Say I have class A containing something of class X, and a subclass A1 of A which must contain a subclass X1 of X. What's a good way of structuring this?

I ran into this in two separate occasions: once, I wanted to use the Builder pattern in both class A and its subclass A1. Naively, you could have A1Builder extend ABuilder, but then to actually build an object of type A1, you have to do something like
( (A1Builder) new A(ABuilder(z1).withZ2(z2).withZ3(z3)) ).withZ4(z4).build()
which is pretty ugly.

There are some solutions suggested here which seem ok, but sort of messy.

On the second occasion, I had some classes (A superclass A1, A2, ...) which contain both backend model stuff and frontend Swing stuff (don't ask, I didn't write it ) and wanted to separate these out so that A contains a "data wrapper"/"transport object" of type X, A1 contains a transport object of type X1, etc. But then if I give A an instance of X as an instance variable, the only way it seems that I could extract an X1 out of A1 is to do an unchecked cast somewhere inside A1 from the X into the X1; that leaves a bad taste in my mouth, but it seems like Java just isn't equipped to do that kind of thing? Or am I missing something?

You could probably accomplish what you want using some combination of generic parameters, but it sounds like a rather complex inheritance situation that should generally be avoided. If A1 can be used *only* with X's of type X1, are they really a separate entity? If they are, perhaps A should be defined as
class A<T extends X>
and A1 as
class A1 extends A<X1>

But yeah, it seems very strange to me to want such a more specific type like that in the subclass, although it could just be the very generic description preventing me from seeing what's actually happening
Can you jam with the console cowboys in cyberspace?
KurtistheTurtle
Profile Blog Joined December 2008
United States1966 Posts
August 15 2013 07:26 GMT
#6858
Actually, I'm gonna go give Effective Java another shot right now before bed. Might actively read it tomorrow if I grasp more this time
“Reject your sense of injury and the injury itself disappears."
sob3k
Profile Blog Joined August 2009
United States7572 Posts
August 15 2013 07:28 GMT
#6859
OK calling CSS men!

I'm working on a drop down type menu. Its basically some stacked Divs that then drop down and unstack when you hover over the top one with transitions.

I got it to work but then when you slide your mouse down the menu they wont stay out. I made this all from scratch so its a bit wierd.

Here is the html:
+ Show Spoiler +
[image loading]


And here is the CSS:
+ Show Spoiler +
[image loading]
^This is just my divs
[image loading]
^These are to try to keep the menu open when you mouse down it. I can get it to stay open when you mouse over the first div, and the second div, but when you go over the third one the 2nd one hides.


Anyone help me out or suggest a much better way to do this?

HERE is the little project if you wanna help me and see my cool menu.
In Hungry Hungry Hippos there are no such constraints—one can constantly attempt to collect marbles with one’s hippo, limited only by one’s hippo-levering capabilities.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
August 15 2013 07:37 GMT
#6860
On August 15 2013 16:22 Tobberoth wrote:
Show nested quote +
On August 15 2013 15:53 WolfintheSheep wrote:
On August 15 2013 15:44 Tobberoth wrote:
On August 15 2013 02:14 enigmaticcam wrote:
What's the consensus for HTML5? Is it worth learning? How does it work when the website is data driven? Do you have to learn some other server side language to support server operations? Are there are good resources out there (books, online tutorials, etc) for learning HTML5? I know I can google that last part, which I have and am learning what I can, but I'd like to know what others' personal experiences are with learning or having learned it.

HTML takes no time to learn, it's dead simple. Just search on google, find some decent tutorials and you're green.

If you want to make a modern web site, especially if it's data driven, you definitely need to know a server-side language as well. Which one you go for is up to you, here's some options: PHP, ASP.NET, Ruby on rails, Django. node.js.

Is he asking about HTML5 or just HTML?

HTML5 is HTML. Why would he learn HTML4 when HTML5 is an official standard? I mean, it's not like people ask "Is it worth learning .NET 2.0?". If you learn .NET, you learn .NET, and you obviously learn the latest version.

Because quite a few people learned HTML before HTML5 was even on the drawing boards...
Average means I'm better than half of you.
Prev 1 341 342 343 344 345 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 189
ViBE76
StarCraft: Brood War
GuemChi 3904
Artosis 563
Noble 13
Dota 2
monkeys_forever451
capcasts156
League of Legends
JimRising 441
Counter-Strike
Coldzera 1797
Super Smash Bros
C9.Mang0309
hungrybox302
Mew2King83
AZ_Axe78
Other Games
summit1g19005
Day[9].tv521
ROOTCatZ72
Organizations
Other Games
gamesdonequick756
BasetradeTV161
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• RyuSc2 50
• mYiSmile110
• davetesta10
• CranKy Ducklings SOOP6
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• blackmanpl 29
• HerbMon 10
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21507
League of Legends
• Doublelift4186
Other Games
• imaqtpie1217
• Scarra697
• Day9tv521
Upcoming Events
Replay Cast
5m
CranKy Ducklings11
The PondCast
10h 5m
CranKy Ducklings
1d
WardiTV Team League
1d 11h
Replay Cast
2 days
CranKy Ducklings
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
n0maD vs perroflaco
TerrOr vs ZZZero
MadiNho vs WolFix
DragOn vs LancerX
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV Team League
3 days
OSC
3 days
BSL
3 days
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
GSL
5 days
Replay Cast
6 days
Kung Fu Cup
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.