• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:26
CEST 15:26
KST 22:26
  • 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
[ASL20] Ro24 Preview Pt1: Runway112v2 & SC: Evo Complete: Weekend Double Feature3Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Weekly Cups (Aug 11-17): MaxPax triples again!10Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6LiuLi Cup - August 2025 Tournaments7
StarCraft 2
General
RSL Revival patreon money discussion thread Is it ok to advertise SC EVO Mod streaming here? Maestros of the Game 2v2 & SC: Evo Complete: Weekend Double Feature Playing 1v1 for Cash? (Read before comment)
Tourneys
Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo) Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series LiuLi Cup - August 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
BW General Discussion Flash Announces (and Retracts) Hiatus From ASL ASL 20 HYPE VIDEO! New season has just come in ladder [ASL20] Ro24 Preview Pt1: Runway
Tourneys
[ASL20] Ro24 Group C [ASL20] Ro24 Group B [Megathread] Daily Proleagues [ASL20] Ro24 Group A
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Beyond All Reason Stormgate/Frost Giant Megathread Nintendo Switch Thread Total Annihilation Server - TAForever [MMORPG] Tree of Savior (Successor of Ragnarok)
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread The Games Industry And ATVI
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
The Biochemical Cost of Gami…
TrAiDoS
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1739 users

The Big Programming Thread - Page 348

Forum Index > General Forum
Post a Reply
Prev 1 346 347 348 349 350 1031 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
Poland17277 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 1031 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Summer Champion…
11:00
Group Stage 2 - Group B
Clem vs goblin
ByuN vs SHIN
WardiTV910
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 336
Rex 148
ProTech34
trigger 12
EnDerr 9
StarCraft: Brood War
Britney 49518
Calm 11658
Bisu 3280
Jaedong 1103
firebathero 772
EffOrt 755
BeSt 475
ggaemo 335
Stork 311
ZerO 243
[ Show more ]
Light 207
Last 203
Soulkey 178
Hyun 123
Snow 114
Barracks 113
Mind 98
hero 92
Rush 70
Nal_rA 67
TY 57
Movie 43
Backho 26
Icarus 25
Sharp 25
Yoon 21
sorry 20
Sacsri 16
JYJ15
JulyZerg 14
scan(afreeca) 13
IntoTheRainbow 7
Terrorterran 6
ivOry 3
actioN 0
Dota 2
Gorgc7464
qojqva2096
XcaliburYe264
Fuzer 210
League of Legends
Dendi975
Counter-Strike
hiko590
edward57
Super Smash Bros
Mew2King79
Other Games
singsing2022
B2W.Neo1889
DeMusliM482
crisheroes463
XaKoH 155
ToD86
ArmadaUGS67
QueenE37
Trikslyr30
ZerO(Twitch)2
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• davetesta14
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 35
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV526
League of Legends
• Nemesis3419
• Jankos1086
Upcoming Events
Online Event
10h 34m
The PondCast
20h 34m
WardiTV Summer Champion…
21h 34m
Zoun vs Bunny
herO vs Solar
Replay Cast
1d 10h
LiuLi Cup
1d 21h
BSL Team Wars
2 days
Team Hawk vs Team Dewalt
Korean StarCraft League
2 days
CranKy Ducklings
2 days
SC Evo League
2 days
WardiTV Summer Champion…
2 days
Classic vs Percival
Spirit vs NightMare
[ Show More ]
CSO Cup
3 days
[BSL 2025] Weekly
3 days
Sparkling Tuna Cup
3 days
SC Evo League
3 days
BSL Team Wars
4 days
Team Bonyth vs Team Sziky
Afreeca Starleague
4 days
Queen vs HyuN
EffOrt vs Calm
Wardi Open
4 days
Replay Cast
5 days
Afreeca Starleague
5 days
Rush vs TBD
Jaedong vs Mong
Afreeca Starleague
6 days
herO vs TBD
Royal vs Barracks
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSLAN 3
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
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 © 2025 TLnet. All Rights Reserved.