• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:44
CEST 14:44
KST 21:44
  • 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
Serral wins Maestros of the Game 236ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7
Community News
BSL Season 22 Full Overview & Conclusion5BSL Season 22 Full Overview & Conclusion5Weekly Cups (June 29-July 5): Solar Doubles0MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon445.0.16 Hotfix (June 30) - Balance + Bug Fixes40
StarCraft 2
General
Most successful SC2 players of Q2 2026 AquaTrail-(I've Tested) My 90 Day Honest Experienc https://www.facebook.com/Power.Pro.Genius.USD/ Serral wins Maestros of the Game 2 MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event GSL CK #5 Race War HomeStory Cup 29 Vespene Cup #1 — $300+ USD, July 10 Sea Duckling Open (Global, Bronze-Diamond)
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
Mutation # 533 Die Together The PondCast: SC2 News & Results Mutation # 532 Nuclear Family Mutation # 531 Experimental Artillery
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion BSL Season 22 Full Overview & Conclusion ASL 22 Proposed Map Pool Starcraft vs Retro Category on Twitch
Tourneys
[ASL22] Wildcard Qualifier [Megathread] Daily Proleagues IPSL Spring 2026 Top 4! Escore Tournament StarCraft Season 2
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies
Other Games
General Games
General RTS Discussion Thread Summer Games Done Quick 2026! Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread TL Mafia Power Rank Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Tennis[sport] Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
FPS when play League Of Legend on laptop How to clean a TTe Thermaltake keyboard? Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Major Shifts in the Gaming I…
TrAiDoS
An Exploration of th…
waywardstrategy
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6570 users

The Big Programming Thread - Page 348

Forum Index > General Forum
Post a Reply
Prev 1 346 347 348 349 350 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 26 2013 19:08 GMT
#6941
It's the same thing really. Both let you put the name of the setting and the value in the same line, and if you write your set accessors manually you can do the same stuff you can do with a method. Weird that this never occured to me so far though; I've been using both.

Initialization lists seem a little more awkward with the mentioned closely related values though. Turns out I intuitively used .Setting() only in situations where I had that kind of values.
If you have a good reason to disagree with the above, please tell me. Thank you.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
August 26 2013 20:33 GMT
#6942
On August 27 2013 02:28 tapuchi wrote:
Hello , i'm currently re-writing an image processing program i created using vc++ and matlab in c# and trying to implement the object-oriented paradigms correctly . My previous implementation was my first real and big programming experience and after spending the summer reading Design Patterns , Code Complete and Object Roles and Responsibilites i realized how bad my code structure/design/implementation was and decided to go at it again whilst using what i hopefully learnt.

The thing is i just cant decide how to do things properly even after spending alot of time at stack overflow or just googling stuff.
For example , i got some algorithms doing the same work on the images and thought of implementing the strategy pattern but then again i figured why complicate it and not just make a static class with each algorithm as a different method ( System.Math style ) .

Another problem is how to pass each algorithms settings to it while at the same time avoiding a huge parameter list . A Parameter Object just moves the parameter list from the algorithm to the structure constructor , a builder pattern seems abit too much for it because the object needs to be bound to a control that changes the settings values .

How does a novice actually make these decisions ? Even the simple creation of the settings control is driving me mad , do i give the settings object a .ToControl() method ( is it its Responsibility to make a view of itself or not? ) or do i pass the object
as an argument to the SettingsControl constructor ( does the control need to know about the settings object implementation ? ).All in all i think i just mashed up all that knowledge without really understanding it im afraid . Thanks for any help/opinion/advice beforehand .


I have written an example for a structure that i would consider decent.
There are ways to optimize it with reflection, automatically generated settings dialogs and all that stuff but i kept it simple and maintainable.

Basically it consists of the filters, the settings dialogs that create the filters and the main form that uses the settings dialogs.

BlurFilter and ResizeFilter are two examples for filters that basically just do something to the image. They could as well be "ComplexImageFilterThatDoesADozenThings" classes but i kept it simple for the example. The ApplyTo method defined in the IFilter interface that each filter implements is where the image processing magic happens. The filters don't know about the settings controls and are completely independent of the rest of the program (apart from the IFilter interface).

BlurFilterSettingsControl and ResizeFilterSettingsControl both define how the settings dialogs look. Simply going through all properties and generating a control just creates a messy UI, so defining custom UserControls allows you to make it pretty. Both controls inherit ISettingsControl which defines an event each SettingsControl raises when the "apply filter" button is clicked and that returns an IFilter. Each SettingsControl is basically a factory for an IFilter.

The MainForm is simply a drop down of all the SettingsControls and selecting one puts it into a container where you can then modify the settings and click the "Apply filter" button. MainForm also connects to the "ApplyFilterClicked" event and simply calls IFilter.ApplyTo() on whatever that event passes to it and doesn't care what the filter exactly does.

It's a very simplified example but it should give you a good base on how to proceed.
tapuchi
Profile Joined November 2010
Greece7 Posts
August 27 2013 10:10 GMT
#6943
Thank you both for your answers , you gave me alot to think about.The strategy pattern for the algorithm and the builder for creating the settings seemed like a good fit from the start although i couldnt think of a satisfactory design for the settings control but Morfildur's example was perfect ^^ , thanks alot.
taguchi?
Rollin
Profile Joined March 2011
Australia1552 Posts
August 27 2013 14:07 GMT
#6944
On August 27 2013 05:33 Morfildur wrote:
Show nested quote +
On August 27 2013 02:28 tapuchi wrote:
Hello , i'm currently re-writing an image processing program i created using vc++ and matlab in c# and trying to implement the object-oriented paradigms correctly . My previous implementation was my first real and big programming experience and after spending the summer reading Design Patterns , Code Complete and Object Roles and Responsibilites i realized how bad my code structure/design/implementation was and decided to go at it again whilst using what i hopefully learnt.

The thing is i just cant decide how to do things properly even after spending alot of time at stack overflow or just googling stuff.
For example , i got some algorithms doing the same work on the images and thought of implementing the strategy pattern but then again i figured why complicate it and not just make a static class with each algorithm as a different method ( System.Math style ) .

Another problem is how to pass each algorithms settings to it while at the same time avoiding a huge parameter list . A Parameter Object just moves the parameter list from the algorithm to the structure constructor , a builder pattern seems abit too much for it because the object needs to be bound to a control that changes the settings values .

How does a novice actually make these decisions ? Even the simple creation of the settings control is driving me mad , do i give the settings object a .ToControl() method ( is it its Responsibility to make a view of itself or not? ) or do i pass the object
as an argument to the SettingsControl constructor ( does the control need to know about the settings object implementation ? ).All in all i think i just mashed up all that knowledge without really understanding it im afraid . Thanks for any help/opinion/advice beforehand .


I have written an example for a structure that i would consider decent.
There are ways to optimize it with reflection, automatically generated settings dialogs and all that stuff but i kept it simple and maintainable.

Basically it consists of the filters, the settings dialogs that create the filters and the main form that uses the settings dialogs.

BlurFilter and ResizeFilter are two examples for filters that basically just do something to the image. They could as well be "ComplexImageFilterThatDoesADozenThings" classes but i kept it simple for the example. The ApplyTo method defined in the IFilter interface that each filter implements is where the image processing magic happens. The filters don't know about the settings controls and are completely independent of the rest of the program (apart from the IFilter interface).

BlurFilterSettingsControl and ResizeFilterSettingsControl both define how the settings dialogs look. Simply going through all properties and generating a control just creates a messy UI, so defining custom UserControls allows you to make it pretty. Both controls inherit ISettingsControl which defines an event each SettingsControl raises when the "apply filter" button is clicked and that returns an IFilter. Each SettingsControl is basically a factory for an IFilter.

The MainForm is simply a drop down of all the SettingsControls and selecting one puts it into a container where you can then modify the settings and click the "Apply filter" button. MainForm also connects to the "ApplyFilterClicked" event and simply calls IFilter.ApplyTo() on whatever that event passes to it and doesn't care what the filter exactly does.

It's a very simplified example but it should give you a good base on how to proceed.

I'm curious, how long did that take you to make?
Throw off those chains of reason, and your prison disappears. | Check your posting frequency timeline: http://www.teamliquid.net/mytlnet/post_activity_img.php
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2013-08-27 14:18:06
August 27 2013 14:17 GMT
#6945
On August 27 2013 23:07 Rollin wrote:
Show nested quote +
On August 27 2013 05:33 Morfildur wrote:
On August 27 2013 02:28 tapuchi wrote:
Hello , i'm currently re-writing an image processing program i created using vc++ and matlab in c# and trying to implement the object-oriented paradigms correctly . My previous implementation was my first real and big programming experience and after spending the summer reading Design Patterns , Code Complete and Object Roles and Responsibilites i realized how bad my code structure/design/implementation was and decided to go at it again whilst using what i hopefully learnt.

The thing is i just cant decide how to do things properly even after spending alot of time at stack overflow or just googling stuff.
For example , i got some algorithms doing the same work on the images and thought of implementing the strategy pattern but then again i figured why complicate it and not just make a static class with each algorithm as a different method ( System.Math style ) .

Another problem is how to pass each algorithms settings to it while at the same time avoiding a huge parameter list . A Parameter Object just moves the parameter list from the algorithm to the structure constructor , a builder pattern seems abit too much for it because the object needs to be bound to a control that changes the settings values .

How does a novice actually make these decisions ? Even the simple creation of the settings control is driving me mad , do i give the settings object a .ToControl() method ( is it its Responsibility to make a view of itself or not? ) or do i pass the object
as an argument to the SettingsControl constructor ( does the control need to know about the settings object implementation ? ).All in all i think i just mashed up all that knowledge without really understanding it im afraid . Thanks for any help/opinion/advice beforehand .


I have written an example for a structure that i would consider decent.
There are ways to optimize it with reflection, automatically generated settings dialogs and all that stuff but i kept it simple and maintainable.

Basically it consists of the filters, the settings dialogs that create the filters and the main form that uses the settings dialogs.

BlurFilter and ResizeFilter are two examples for filters that basically just do something to the image. They could as well be "ComplexImageFilterThatDoesADozenThings" classes but i kept it simple for the example. The ApplyTo method defined in the IFilter interface that each filter implements is where the image processing magic happens. The filters don't know about the settings controls and are completely independent of the rest of the program (apart from the IFilter interface).

BlurFilterSettingsControl and ResizeFilterSettingsControl both define how the settings dialogs look. Simply going through all properties and generating a control just creates a messy UI, so defining custom UserControls allows you to make it pretty. Both controls inherit ISettingsControl which defines an event each SettingsControl raises when the "apply filter" button is clicked and that returns an IFilter. Each SettingsControl is basically a factory for an IFilter.

The MainForm is simply a drop down of all the SettingsControls and selecting one puts it into a container where you can then modify the settings and click the "Apply filter" button. MainForm also connects to the "ApplyFilterClicked" event and simply calls IFilter.ApplyTo() on whatever that event passes to it and doesn't care what the filter exactly does.

It's a very simplified example but it should give you a good base on how to proceed.

I'm curious, how long did that take you to make?


About 15 minutes pure programming time, mostly because i followed a different, more complex approach first but then decided to scrap it and go a simple route. The total time was maybe 30 minutes because i was watching some youtube videos on the second screen and was eating dinner while writing it.

C#, .NET and Visual Studio really make development fast.
sob3k
Profile Blog Joined August 2009
United States7572 Posts
August 27 2013 23:07 GMT
#6946
CSS/HTML Problem

Making very basic Div site frame. All it is is two centered containers, then a heading, a left navbar, and now a black box. I'd like the black box to go in the blue heading.

HTML:

+ Show Spoiler +
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Site Name</title>
<link type="text/css" rel="stylesheet" href="css/reset.css"/>
<link type="text/css" rel="stylesheet" href="css/mainstylesheet.css"/>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
</head>

<body>
<div id= "redcontainer">
<div id= "pinkinnercontainer">

<div id= "blueheader"></div>
<div id= "greenmenu"></div>
<div id= "blacksquare"><div>


</div>
</div>
</body>

</html>


CSS:
+ Show Spoiler +

#redcontainer {
background-color: red;
width: 1100px;
min-height: 800px;
margin:auto;
}

#blueheader {
background-color: blue;
width: 900px;
height: 120px;

}

#pinkinnercontainer {
background-color: pink;
width: 900px;
height: 780px;
margin:auto;
}

#greenmenu {
background-color: green;
width: 160px;
height: 600px;
}

#blacksquare {
background-color: black;
height: 100px;
width:100px;
}

h1 {
font-family: 'Lobster', Helvetica, sans-serif;
font-size: 50px;
padding-top: 50px;
padding-left: 17px;
}



Super simple. When I display it it look just like I would expect:

[image loading]

However, If I try to move the black div inside the blue div, this happens.

[image loading]

Why is the green moving like that?

even if I just move the black div in between the blue and the green:
[image loading]
The result is this:
[image loading]
Why isn't it appearing between them? Whats going on here?
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.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
August 27 2013 23:13 GMT
#6947
that's one badass website.
conspired against by a confederacy of dunces.
Yoshi-
Profile Joined October 2008
Germany10227 Posts
August 27 2013 23:15 GMT
#6948
<div id= "blacksquare"><div>

You don't close the <div> Tag, but open another one
sob3k
Profile Blog Joined August 2009
United States7572 Posts
August 28 2013 01:15 GMT
#6949
On August 28 2013 08:15 Yoshi- wrote:
<div id= "blacksquare"><div>

You don't close the <div> Tag, but open another one


rofllol, whoops

haha I patched over the whole issue with relative positioning, now it implodes when I close that div. Guess i'll just start over :D
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.
3FFA
Profile Blog Joined February 2010
United States3931 Posts
August 28 2013 01:20 GMT
#6950
On August 28 2013 10:15 sob3k wrote:
Show nested quote +
On August 28 2013 08:15 Yoshi- wrote:
<div id= "blacksquare"><div>

You don't close the <div> Tag, but open another one


rofllol, whoops

haha I patched over the whole issue with relative positioning, now it implodes when I close that div. Guess i'll just start over :D

Hehe. It comes with the learning and experimenting part of any language.

Thanks for the laugh though.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
August 28 2013 06:23 GMT
#6951
Can't you check syntactical correctness of html on W3C? Or where was it?
If you have a good reason to disagree with the above, please tell me. Thank you.
Samsa
Profile Joined April 2009
Germany72 Posts
August 28 2013 06:53 GMT
#6952
On August 28 2013 15:23 spinesheath wrote:
Can't you check syntactical correctness of html on W3C? Or where was it?


You can, with the W3C Validator: http://validator.w3.org/
Always check your site after you are finished, non clean code is a sin (Also, search engines like google downrate non validated pages in their ranking!)
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-08-28 20:26:54
August 28 2013 20:19 GMT
#6953
Question: When you guys make a personal website, do you include demos of all the things you've learned in the past?

Eg. This guy made one:
http://www.mattdempsey.com/
There are a few more links on this site:http://www.lessannoyingsoftware.com/resources/Programmer_Portfolio

Considering making one, but it'd take like 2 hours+ to make an ugly one.
That's like 2 LoL games. On the other hand, I think when an interviewer looks at a resume they just think that they can't trust a resume unless they can see the work.
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.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
August 28 2013 20:51 GMT
#6954
On August 29 2013 05:19 obesechicken13 wrote:
Question: When you guys make a personal website, do you include demos of all the things you've learned in the past?

Eg. This guy made one:
http://www.mattdempsey.com/
There are a few more links on this site:http://www.lessannoyingsoftware.com/resources/Programmer_Portfolio

Considering making one, but it'd take like 2 hours+ to make an ugly one.
That's like 2 LoL games. On the other hand, I think when an interviewer looks at a resume they just think that they can't trust a resume unless they can see the work.


If you want to get employed, the more you can show, the better, and if it even looks pretty, even better. It just depends on what you want to do with your personal website.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2013-08-28 23:13:59
August 28 2013 23:12 GMT
#6955
If it's a personal website you intend to show your employers when you're applying for a position relevant to having a portfolio, it definitely is a huge plus if you can actually SHOW your employer that you have something concrete, because they can actually trust your words somewhat, and judge you a lot more accurately.

But your personal website can be absolutely whatever you want. You can just have a section off to the side saying, "Previous Projects" with a page that lists them, or with pictures, or an interactive portion.

But it's not a deal breaker if you can't show your work online. It's just a matter of, if a person with the exact same credentials as you applies and it's down between you two and the other guy shows his/her work, then he'll probably have an edge. But this never happens so don't fret about it. I would show my work for the fun of showing my work.



on a side note, i hate learning android development so much. why is it so complicated. ugh. having power sucks. :3
There is no one like you in the universe.
Manit0u
Profile Blog Joined August 2004
Poland17786 Posts
Last Edited: 2013-08-28 23:35:33
August 28 2013 23:15 GMT
#6956
On August 28 2013 08:07 sob3k wrote:
CSS/HTML Problem

Making very basic Div site frame. All it is is two centered containers, then a heading, a left navbar, and now a black box. I'd like the black box to go in the blue heading.

HTML:

+ Show Spoiler +
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Site Name</title>
<link type="text/css" rel="stylesheet" href="css/reset.css"/>
<link type="text/css" rel="stylesheet" href="css/mainstylesheet.css"/>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
</head>

<body>
<div id= "redcontainer">
<div id= "pinkinnercontainer">

<div id= "blueheader"></div>
<div id= "greenmenu"></div>
<div id= "blacksquare"><div>


</div>
</div>
</body>

</html>


CSS:
+ Show Spoiler +

#redcontainer {
background-color: red;
width: 1100px;
min-height: 800px;
margin:auto;
}

#blueheader {
background-color: blue;
width: 900px;
height: 120px;

}

#pinkinnercontainer {
background-color: pink;
width: 900px;
height: 780px;
margin:auto;
}

#greenmenu {
background-color: green;
width: 160px;
height: 600px;
}

#blacksquare {
background-color: black;
height: 100px;
width:100px;
}

h1 {
font-family: 'Lobster', Helvetica, sans-serif;
font-size: 50px;
padding-top: 50px;
padding-left: 17px;
}



+ Show Spoiler +

Super simple. When I display it it look just like I would expect:

[image loading]

However, If I try to move the black div inside the blue div, this happens.

[image loading]

Why is the green moving like that?

even if I just move the black div in between the blue and the green:
[image loading]
The result is this:
[image loading]

Why isn't it appearing between them? Whats going on here?


Dude...

+ Show Spoiler [HTML] +


<!DOCTYPE html>
<html>
<head>
<title>The colourful boxes</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="site.css"/>
</head>
<body>
<div id="redcontainer">

<div class="blueheader">
<div class="blacksquare"></div>
</div><!-- .blueheader -->

<div class="pinkinnercontainer">
<div class="greenmenu"></div>
</div><!-- .pinkinnercontainer -->

</div><!-- #redcontainer -->
</body>
</html>



+ Show Spoiler [CSS] +


html, body {
width: 100%;
height: auto;
margin: 0;
padding: 0;
}

#redcontainer {
background-color: red;
width: 1100px;
min-height: 800px;
margin: 0 auto;
}

#redcontainer .blueheader {
background-color: blue;
width: 900px;
height: 120px;
margin: 0 auto;
display: block;
float: top;
position: relative;
}

#redcontainer .pinkinnercontainer {
background-color: pink;
width: 900px;
height: 780px;
margin: 0 auto;
display: block;
float: top;
position: relative;
}

#redcontainer .pinkinnercontainer .greenmenu {
background-color: green;
width: 160px;
height: 600px;
display: inline-block;
float: left;
position: relative;
}

#redcontainer .blueheader .blacksquare {
background-color: black;
height: 100px;
width: 100px;
display: inline-block;
float: left;
position: relative;
}



Result:
[image loading]

Is this what you wanted? It would appear so from your post.

It could probably be made a lot cleaner but I did it the dirty way that took just a couple of minutes of my precious time...

Edit: Just noticed you wanted blue header in the pink container. Here's a version doing just that:

+ Show Spoiler [HTML] +


<!DOCTYPE html>
<html>
<head>
<title>The colourful boxes</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="site.css"/>
</head>
<body>
<div id="redcontainer">

<div class="pinkinnercontainer">

<div class="blueheader">

<div class="blacksquare"></div>

</div><!-- .blueheader -->

<div class="greenmenu"></div>

</div><!-- .pinkinnercontainer -->

</div><!-- #redcontainer -->
</body>
</html>




+ Show Spoiler [CSS] +


html, body {
width: 100%;
height: auto;
margin: 0;
padding: 0;
}

#redcontainer {
background-color: red;
width: 1100px;
min-height: 800px;
margin: 0 auto;
}

#redcontainer .pinkinnercontainer {
background-color: pink;
width: 900px;
height: 780px;
margin: 0 auto;
display: block;
position: relative;
}

#redcontainer .pinkinnercontainer .blueheader {
background-color: blue;
width: 900px;
height: 120px;
margin: 0 auto;
display: block;
float: top;
position: relative;
}

#redcontainer .pinkinnercontainer .greenmenu {
background-color: green;
width: 160px;
height: 600px;
display: inline-block;
float: left;
position: relative;
}

#redcontainer .pinkinnercontainer .blueheader .blacksquare {
background-color: black;
height: 100px;
width: 100px;
display: inline-block;
position: relative;
}

Time is precious. Waste it wisely.
KurtistheTurtle
Profile Blog Joined December 2008
United States1966 Posts
Last Edited: 2013-08-29 01:17:32
August 29 2013 01:07 GMT
#6957
Any recommendations on a good coding laptop? Windows or Mac or what have you. I find the main prevention of me writing code is keeping my head stimulated, so being able to move to a variety of locations/code while standing/etc. I've got a big ol' desktop that can do the job after I lose the ability to have this laptop, but beforehand I'd physically fall asleep in my chair due to the crappy physical environment I have to code in when I use it

I'll be pursuing a job, would an employer be likely to provide me with a laptop?

edit: fleshed out my question

- 13'' screen preferred
- matte + 1920 x 1080 screen if possible
- high powered dream machine

OR

-refurbished upgradable older macbook pro or something with a lot of punch would do
- cheaper "used civic" kind of laptop

main uses would be intelliJ idea for sure

possibly all the .net development stuff from dreamspark (if I look into it)

“Reject your sense of injury and the injury itself disappears."
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2013-08-29 01:53:27
August 29 2013 01:52 GMT
#6958
local dev on this laptop, or just dumb remote connection to your desktop?

a lot of employers will provide you with laptops, but it does depend on the employer
Who after all is today speaking about the destruction of the Armenians?
Teim
Profile Joined October 2010
Australia373 Posts
August 29 2013 16:38 GMT
#6959
Does anyone know if OpenCL has some kind of frame limiter? I've run the same application on a few different graphic cards of varying quality (both AMD and NIVIDA) and they all max out at the same 10 milliseconds per update (100 frames per second) barrier. It's important for me to be able to measure differences in performance and when they all appear to be performing the same...

Anyway, thanks for your time.
A duck is a duck!
sob3k
Profile Blog Joined August 2009
United States7572 Posts
Last Edited: 2013-08-30 02:07:18
August 30 2013 02:06 GMT
#6960
CSS/HTML

I want a div to start somewhere midpage and go all the way to the edge of the page in one direction. Like the blue box in pic below:

[image loading]

How do I do this?
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.
Prev 1 346 347 348 349 350 1032 Next
Please log in or register to reply.
Live Events Refresh
SC Evo League
12:00
SEL S3 Ladder Invitational
ByuN vs Classic
Cure vs Solar
IntoTheiNu 872
LiquipediaDiscussion
CranKy Ducklings
10:00
Sea Duckling Open #147
CranKy Ducklings71
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 1111
Ryung 891
Rex 139
MindelVK 38
StarCraft: Brood War
Britney 27455
Calm 7877
Bisu 3270
Hyuk 878
firebathero 844
Shuttle 745
BeSt 674
Mini 605
Horang2 426
Jaedong 250
[ Show more ]
ZerO 231
Stork 204
Dewaltoss 185
ggaemo 148
Last 147
Soma 81
soO 43
Larva 27
sorry 20
ToSsGirL 17
IntoTheRainbow 15
sSak 15
Sexy 14
GoRush 10
ajuk12(nOOB) 9
Dota 2
Gorgc7411
Dendi793
XaKoH 457
XcaliburYe155
League of Legends
JimRising 408
Counter-Strike
zeus434
Other Games
gofns14599
FrodaN2861
singsing1835
DeMusliM434
Lowko368
Pyrionflax279
ToD238
KnowMe98
Organizations
Other Games
gamesdonequick26866
StarCraft: Brood War
Afreeca ASL 4825
UltimateBattle 166
lovetv 12
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 11 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP14
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
IPSL
3h 16m
Dragon vs Ret
Patches Events
3h 16m
RSL Revival
20h 16m
Solar vs Rogue
Maru vs NightMare
Sparkling Tuna Cup
21h 16m
IPSL
1d 3h
Bonyth vs Hawk
GSL
1d 22h
Replay Cast
2 days
WardiTV Weekly
2 days
The PondCast
3 days
Replay Cast
4 days
[ Show More ]
CrankTV Team League
4 days
Replay Cast
5 days
CrankTV Team League
5 days
Replay Cast
6 days
RSL Revival
6 days
Clem vs Lambo
Scarlett vs Cure
CranKy Ducklings
6 days
Liquipedia Results

Completed

Escore Tournament S3: W2
HSC XXIX
Eternal Conflict S2 E1

Ongoing

IPSL Spring 2026
Acropolis #4
YSL S3
CSL 2026 Summer (S21)
ASL Season 22: Wild Card Qualifier
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
XSE Pro League 2026
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

Upcoming

CSLAN 4
Blizzard Classic Cup 2026
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E3
Eternal Conflict S2 E2
Logitech G Connect 2026
StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
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...

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.