• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:18
CEST 21:18
KST 04:18
  • 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
[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3
Community News
Stellar Fest TWO the Moon (Dec 16-20)8Weekly Cups (August 24-30): Patches' balance mod takes over2New 3v3 BGH Ladder (and more) on ShieldBattery!40Weekly Cups (August 17-23): Zerg dominate the week6Weekly Cups (August 10-16): SHIN doubles3
StarCraft 2
General
Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game SC4ALL II: SC2 Player Announcement 6/8 - Maru Weekly Cups (August 10-16): SHIN doubles Weekly Cups (August 24-30): Patches' balance mod takes over How would you feel about frequent/monthly balance patches for SC2?
Tourneys
2026 GSTL Announcement Stellar Fest TWO the Moon (Dec 16-20) PIG STY FESTIVAL 8.0! (13 - 23 August) Sparkling Tuna Cup - Weekly Open Tournament IntoTheTV X SOOP SC2 League : Weekly & Monthly
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This Mutation # 539 Thunder Dome
Brood War
General
ASL22 General Discussion [Personal Project Share] Terran Defense v0.60 XUN appreciation thread Which box art did your first copy of StarCraft 1 have? BW General Discussion
Tourneys
[Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS [ASL22] Ro24 Group F Small VOD Thread 2.0
Strategy
Replay Review Process - What do you do? Game Theory for Starcraft Odyssey Mineral Stack Saturation Fighting Spirit mining rates
Other Games
General Games
General RTS Discussion Thread Stratus: Battle for the sky now on steam Early acc Nintendo Switch Thread Stormgate/Frost Giant Megathread Anyone here play Quakeworld back in the day?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Regacy Esports: The Bh…
regacyesports
Violent Games and Crime Rate…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3557 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
Poland17837 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
RotterdaM Event
16:15
Rotti's PatchesSC Open #2
RotterdaM850
TKL 277
IndyStarCraft 237
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 850
mouzHeroMarine 362
TKL 277
IndyStarCraft 237
BRAT_OK 53
Trap 48
JuggernautJason42
MindelVK 10
StarCraft: Brood War
Shuttle 1106
Horang2 230
Dewaltoss 135
Bonyth 97
Pusan 40
Rock 24
Terrorterran 13
firebathero 0
Dota 2
Gorgc6374
BananaSlamJamma210
LuMiX1
Counter-Strike
shoxiejesuss1014
edward55
Heroes of the Storm
Liquid`Hasu321
Other Games
Grubby2448
singsing1402
fl0m1206
Beastyqt729
C9.Mang0214
ArmadaUGS148
Hui .146
QueenE51
Trikslyr44
Chillindude8
Organizations
StarCraft 2
WardiTV686
[ Show 15 non-featured ]
StarCraft 2
• Reevou 3
• Adnapsc2 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV761
League of Legends
• Nemesis1826
• TFBlade693
Other Games
• imaqtpie1078
• Shiphtur287
Upcoming Events
Replay Cast
4h 43m
The PondCast
14h 43m
OSC
1d 3h
IntoTheTV X SOOP
1d 15h
CranKy Ducklings
2 days
Sparkling Tuna Cup
3 days
OSC
3 days
Shopify Rebellion Sundays
3 days
Mixu vs TBD
Spirit vs TBD
Clem vs TBD
Afreeca Starleague
4 days
Soma vs Shuttle
BeSt vs Rush
WardiTV Weekly
4 days
[ Show More ]
Afreeca Starleague
5 days
Leta vs ggaemo
Jaedong vs Queen
GSL
5 days
PiGosaur Cup
6 days
Kung Fu Cup
6 days
Liquipedia Results

Completed

KCM Special KOR vs CHN
PiG Sty Festival 8.0
Light Tournament 2026

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Proleague 2026-09-02
RSL Revival: Season 6
Calamity Invitational
Big Dog Cup 2026 Div 1
BLAST Open Fall 2026
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

Acropolis #5
Acropolis #5 - TRS
Escore Tournament S3: King of Kings
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #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.