• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:48
CEST 23:48
KST 06:48
  • 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
Team Liquid Map Contest #22 - The Finalists12[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced10Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid20
StarCraft 2
General
Weekly Cups (April 6-12): herO doubles, "Villains" prevail MaNa leaves Team Liquid Oliveira Would Have Returned If EWC Continued Team Liquid Map Contest #22 - The Finalists 2026 GSL Tour plans announced
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly) $5,000 WardiTV TLMC tournament - Presented by Monster Energy
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
BW General Discussion Pros React To: Tulbo in Ro.16 Group A ASL21 General Discussion [BSL22] RO32 Group Stage mca64Launcher - New Version with StarCraft: Remast
Tourneys
[BSL22] RO32 Group D - Sunday 21:00 CEST [BSL22] RO32 Group C - Saturday 21:00 CEST Korean KCM Race Survival 2026 Season 2 [ASL21] Ro16 Group B
Strategy
What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates Muta micro map competition
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2224 users

The Big Programming Thread - Page 309

Forum Index > General Forum
Post a Reply
Prev 1 307 308 309 310 311 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.
Toboe
Profile Blog Joined February 2010
United States276 Posts
May 31 2013 22:36 GMT
#6161
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.
Immortals are your friend, you can tell by the way they waddle at you
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
May 31 2013 22:43 GMT
#6162
On June 01 2013 05:39 misirlou wrote:I can't see the drawback on 1. Since you don't use foreign keys there are no constraints when altering/deleting a table. Just alter table -> drop column or add column + insert default value.
I think the second approach complicates things.
The only other con was the fact that the relationship between the tables and the business tier would be more abstract. Rather than tying analytics straight to the rows in one table by means of keys, I have to build a separate tier that would translate what the business tier is asking for from the data tier. In other words, I can hold IDs to keys, but you can't really hold IDs to tables (unless you store a reference to the table's system ids, but either way you'd still need that translation tier).

But otherwise, I guess you're right; simple alters and renames wouldn't be that hard to manage.

On June 01 2013 05:43 supereddie wrote:
Uuhmm... look up datawarehouse (on wikipedia for example) and see why what you want to do should not be done.
Aren't there currently software solutions that already to this though? Off the top of my head, JDE OneWorld does it. Of course, I'm just looking for a small time solution.

On June 01 2013 07:10 Craton wrote:
I'm not really seeing why you need to physically separate the data just because it's autonomous.
You mean store all the data in one table? Only problem is different sets of data have different numbers of columns. I could create generic columns, but that's a lot of wasted disk space, and ultimately I'd still need keys to reference the fields.
JeanLuc
Profile Joined September 2010
Canada377 Posts
May 31 2013 22:45 GMT
#6163
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.


Don't mean to be paranoid-- but it sounds like they want you to train cheap labour that will eventually replace you. Try to get the PM fired imo.
If you can't find it within yourself to stand up and tell the truth-- you don't deserve to wear that uniform
Craton
Profile Blog Joined December 2009
United States17281 Posts
Last Edited: 2013-05-31 23:52:14
May 31 2013 23:41 GMT
#6164
On June 01 2013 07:43 enigmaticcam wrote:
Show nested quote +
On June 01 2013 07:10 Craton wrote:
I'm not really seeing why you need to physically separate the data just because it's autonomous.
You mean store all the data in one table? Only problem is different sets of data have different numbers of columns. I could create generic columns, but that's a lot of wasted disk space, and ultimately I'd still need keys to reference the fields.

No, that's fine then. It sounded like it was the same type of data just disparate and not inter-related.

When I think of data warehousing I think of very large volumes (billions / hundreds of millions) of structurally similar data, even if not necessarily related.

I deal more with the processing side of things than the warehousing side. Our biggest systems only have like 300 million records (although frankly the one I've been developing could end up handling billions of records if the contract gets extended). But I digress. I can't really help too much in the area of warehousing.


On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.

That sounds more like an issue of implementation than anything. We've had it done a little, but I haven't directly done it.

It's not supposed to be the case where the "better" programmer is at the helm; rather, you want to swap back and forth. Part of the idea is that the weaker programmer can learn from both watching the better one's techniques, but also getting immediate feedback as they do things. You're supposed to discuss what you're doing before/as you do it so that you can bounce ideas off each other. A "lesser" programmer can still provide valuable feedback to the process.

However, you can have two evenly skilled programmers paired up. The thought is that if you have to explain yourself as you go, you are less likely to end up going down the wrong path. Also, you will (in theory) be blocked less frequently and for less time. The primary goal here is to end up with really solid code that needs little to no retouching (you're spending 2x the manpower up front so that you need less down the road).

I don't think it makes sense at all to do it with third-party personnel.


On June 01 2013 07:45 JeanLuc wrote:
Don't mean to be paranoid-- but it sounds like they want you to train cheap labour that will eventually replace you. Try to get the PM fired imo.

Don't be absurd. The last thing you want in a PM is for them to be stubborn and unwilling to try new things. It may be a bad idea and bad result, but you want to document the process and get as much feedback in as you can to get some value out of it.

You trying to get the PM fired over something that is in no way shape or form ever worthy of a firing is just going to hurt you.
twitch.tv/cratonz
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-06-01 00:45:29
June 01 2013 00:42 GMT
#6165
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.

I feel like a lot of people don't like working with others offshore. It's probably cheaper overall but the communication issue is a problem.

  • Because you are not in the office at the same time you don't know how much they work.
  • You aren't as sympathetic to them as with onsite coworkers because you don't see them as much.
    • You don't go out and drink or do anything together. It's easy to blame them.
    • It's widely held that Indian higher education is poorer than the education here. This leads to feelings of superiority.
    • They're not as familiar with the on site architecture but they have to adopt the architecture you use.

  • Fears of being replaced by someone cheaper lead to distrust.
  • Differences in work culture mean that you think they're just being paid to get as many tickets done as possible while you have to go back and set up all the architecture and do code reviews and reformat code to be reuseable, useful, and readable. Make things generally up to standard. But then your work seems less productive because you got less numbers done.


I generally try to deal with it by reminding myself that there are people offshore who work way harder than I do.
It's hard to say. I have to say that having some offshore coworkers come over and me seeing them in person really built up my trust for them. Even if it's only for a few weeks and it's not that productive otherwise, I think all companies should try to bring a team together physically and have them work together.

I don't have much experience with paired programming and only just heard the term but it seems to be a widespread concern that I don't think older programmers have gotten past either.
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.
e-Goh
Profile Joined January 2012
New Zealand18 Posts
June 01 2013 01:23 GMT
#6166
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.



It seems to me that you are dividing up the work into blocks A, B, C, etc.. each working on your own, and then reviewing each others' work for sanity. That's not really paired programming, and I agree that it sacrifices productivity in favor of slightly more safety, oversight and programmer frustration.

Assuming you are both reasonably skilled, the chief advantage you have as the in-house guy, is that you are closer to ground, thus more in tune with the project requirements, architecture and overall philosphy. The advantage he has as the remote guy is that he can work unharassed by the manager occassionally dropping by asking him to put new cover sheets on his TPS reports.

One way to exploit your advantages is the following workflow:
- You gauge the requirements, do the high-level architecture, and write all the interfaces.
- Both go through it for obvious oversights and stupidity (it happens to the best of us), and impart understanding of the requirements and structure to him.
- He executes the implementation, adhering to your interfaces, and does his unit tests.
- Both quickly run through that, impart understanding to you of the implementation, assumptions and possible flaws. Verify that it works reasonably.
- You integrate, test and bugfix any integration issues.

Pass all your chunks of work through that pipeline, and you'll see better, possibly even faster work. If you manage to stick to the same guy, your speed will increase as you get to understand each others style and mindset better. Of course, that's only an example, and I am sure you can come up with one better suited to your current work environment and indiividual quirks.

Remember that once you are paired, efficiency is gauged on both of you as a unit. Think of him as an extension to you... another core in in your processor. Use him as much as possible instead of fighting against other.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
June 01 2013 07:17 GMT
#6167
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.


Is your company trying to use Extreme Programming methodology? Pair Programming is one of the principles. I'm just curious.
supereddie
Profile Joined March 2011
Netherlands151 Posts
June 01 2013 09:03 GMT
#6168
On June 01 2013 07:43 enigmaticcam wrote:
[
Show nested quote +
On June 01 2013 05:43 supereddie wrote:
Uuhmm... look up datawarehouse (on wikipedia for example) and see why what you want to do should not be done.
Aren't there currently software solutions that already to this though? Off the top of my head, JDE OneWorld does it. Of course, I'm just looking for a small time solution.

Just because someone else has done it, doesn't mean it is a good idea. You should look up the definition of a DWH, it's intended uses and the process of creating one. A bunch of random, unrelated data stored in one database is not a DWH. Also, look up datamart.
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
Toboe
Profile Blog Joined February 2010
United States276 Posts
June 01 2013 17:22 GMT
#6169
Thanks to everyone who responded about my paired programming question. To clarify I am not concerned about losing my job for training cheap labor. This is a PM who (apparently) has over a decade of experience but is brand new to this company and is trying to implement a more formal version of agile programming than what we were doing before from the start of taking over this project.

On June 01 2013 10:23 e-Goh wrote:
Show nested quote +
On June 01 2013 07:36 Toboe wrote:
[spoiler]Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.[spoiler]



It seems to me that you are dividing up the work into blocks A, B, C, etc.. each working on your own, and then reviewing each others' work for sanity. That's not really paired programming, and I agree that it sacrifices productivity in favor of slightly more safety, oversight and programmer frustration.

Assuming you are both reasonably skilled, the chief advantage you have as the in-house guy, is that you are closer to ground, thus more in tune with the project requirements, architecture and overall philosphy. The advantage he has as the remote guy is that he can work unharassed by the manager occassionally dropping by asking him to put new cover sheets on his TPS reports.

One way to exploit your advantages is the following workflow:
- You gauge the requirements, do the high-level architecture, and write all the interfaces.
- Both go through it for obvious oversights and stupidity (it happens to the best of us), and impart understanding of the requirements and structure to him.
- He executes the implementation, adhering to your interfaces, and does his unit tests.
- Both quickly run through that, impart understanding to you of the implementation, assumptions and possible flaws. Verify that it works reasonably.
- You integrate, test and bugfix any integration issues.

Pass all your chunks of work through that pipeline, and you'll see better, possibly even faster work. If you manage to stick to the same guy, your speed will increase as you get to understand each others style and mindset better. Of course, that's only an example, and I am sure you can come up with one better suited to your current work environment and indiividual quirks.

Remember that once you are paired, efficiency is gauged on both of you as a unit. Think of him as an extension to you... another core in in your processor. Use him as much as possible instead of fighting against other.


You're quite right that this isn't really paired programming, though the PM is calling it that. Thanks for the ideas. We're not really being given any guidance on how to execute this so I was looking for a mindset like this. I especially like the idea of setting up the interfaces and letting the partner fill in the details. I think that will be very doable in this situation and allow me to cast to those interfaces in my work so that I'm not waiting on anything and probably would be faster than working on my own.
Immortals are your friend, you can tell by the way they waddle at you
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
June 04 2013 15:49 GMT
#6170
Guys I just wrote a script to parse xml, and had a test case that I was using to check that everything was being done right. Then I load up the entire file and boom out of memory. My sin? Using a DOM parser for something in the hundreds of megabytes, somehow that didn't strike me as being bad until the error occurred. Lesson - stream it or gg it D:
nepeta
Profile Blog Joined May 2008
1872 Posts
June 04 2013 22:52 GMT
#6171
Pardon me for giving up, but I've been at this for two hours and my brain is shutting down. Won't go to bed before I've found out what's wrong so please help me get to work tomorrow :p

I'm trying to get the height of the menu and content divs to be minimally 100%, so that even if there is no content to fill the page to the bottom, the border will continue neatly until the footer.

The design is heavily TL influenced, but any comments on the design are welcome as well

I've hosted it here: http://nepeta.host56.com/temp/index2.html

code of html and css:

+ Show Spoiler [html] +

<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="author" content="http://mystrd.at">
<meta name="robots" content="noindex, nofollow">
<title>pro</title>
<link rel="stylesheet" type="text/css" href="styles.css" />


</head>

<body>


<div id="container1">
<div id="logo">logo</div><!-- logo -->
<div id="topmenuwrap"><div id="topmenu">topmenu</div></div><!-- topmenuwrap -->

</div>
<div id="container">
<div id="main">
<div id="leftmenu">
<div id="lmt">menu</div>
<div id="lmc">item</div>
</div><!-- leftmenu -->
<div id="content">
<div id="ctitle">ctitle</div><!-- ctitle -->
<div id="contentct">content




</div>
</div><!-- content -->
</div><!-- main -->
</div><!-- container -->



<footer>
<div id="fc">footer</div>
</footer>

</body>
</html>


+ Show Spoiler [css] +

html {
position: relative;
min-height: 100%;
height: 90%;
}

body {
margin: 0 0 20px;
font-family: times new roman;
color: #0B0B3B;
background-color: white;
}

#container{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
overflow: hidden;
}

#container1{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
overflow: hidden;
}

#logo{
height: 120px;
text-align: center;
color: white;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
}

#topmenuwrap {
padding: 0px 0px 0px 0px;
background: #0B0B3B;
background: linear-gradient(top, #2B60DE 0%, white 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, white 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, white 75%);
}

#topmenu{
height: 40px;
margin: 0px 0px 0px 147px;
}

#main{
background: grey;
position: relative;
margin: 0px 0px 0px 0px;
}

#leftmenu{
width: 134px;
background: #E0E6F8;
position: relative;
float: left;
padding: 0px 0px 0px 0px;
border-top: 1px solid;
border-right: 1px solid;
border-color: #0B0B3B;
}

#lmt {
padding: 5px 0px 0px 5px;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
height: 30px;
}

#lmc {
background: #E0E6F8;
padding: 0px 0px 0px 5px;
}

#content{
width: 995px;
padding: 0px 0px 0px 5px;
background: white;
position: relative;
float: right;
}

#ctitle {
height: 30px;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
border-left: 1px solid;
padding: 5px 0px 0px 5px;
border-color: #0B0B3B;
}

#contentct {
background: #E0E6F8;
border-left: 1px solid;
padding: 0px 0px 0px 5px;
}

footer {
position: absolute;
left: 0;
bottom: 0;
height: 20px;
width: 100%;
}

#fc {
text-align: center;
background-color:#0B0B3B;
background: linear-gradient(top, #2B60DE 0%, black 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, black 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, black 75%);
color:white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
}
Broodwar AI :) http://sscaitournament.com http://www.starcraftai.com/wiki/Main_Page
Yoshi-
Profile Joined October 2008
Germany10227 Posts
Last Edited: 2013-06-04 23:02:01
June 04 2013 22:57 GMT
#6172
e: that was unrelated to your issue
Rotodyne
Profile Blog Joined July 2005
United States2263 Posts
Last Edited: 2013-06-04 23:47:01
June 04 2013 23:31 GMT
#6173
Hey nepeta paste this in and see what happens:

CSS:
+ Show Spoiler +

html {
position: relative;
min-height: 100%;
height: 90%;
}

body {
margin: 0 0 20px;
font-family: times new roman;
color: #0B0B3B;
background-color: white;
}

#container{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
overflow: hidden;
}

#container1{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
overflow: hidden;
}

#logo{
height: 120px;
text-align: center;
color: white;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
}

#topmenuwrap {
padding: 0px 0px 0px 0px;
background: #0B0B3B;
background: linear-gradient(top, #2B60DE 0%, white 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, white 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, white 75%);
}

#topmenu{
height: 40px;
margin: 0px 0px 0px 147px;
}

#main{
position: relative;
margin: 0px 0px 0px 0px;
height: 500px;

}

#leftmenu{
width: 134px;
background: #E0E6F8;
position: relative;
height: 100%;
padding: 0px 0px 0px 0px;
border-top: 1px solid;
border-right: 1px solid;
border-color: #0B0B3B;
display: inline-block;
}

#lmt {
padding: 5px 0px 0px 5px;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
height: 30px;
}

#lmc {
background: #E0E6F8;
padding: 0px 0px 0px 5px;
}

#content{
width: 995px;
height: 100%;
background: white;
position: relative;
display: inline-block;
vertical-align: top;
}

#ctitle {
height: 30px;
width: 100%;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
border-left: 1px solid;
padding: 5px 0px 0px 5px;
border-color: #0B0B3B;
}

#contentct {
background: #E0E6F8;
border-left: 1px solid;
padding: 0px 0px 0px 5px;
width: 100%;
height: 100%;
vertical-align: top;
}

footer {
height: 20px;
width: 100%;
}

#fc {
text-align: center;
background-color:#0B0B3B;
background: linear-gradient(top, #2B60DE 0%, black 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, black 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, black 75%);
color:white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
}


eh, doesn't work when I put content in -_- I'm noob

edit: had forgotten vertical-align, I think it works now
I can only play starcraft when I am shit canned. IPXZERG is a god.
nepeta
Profile Blog Joined May 2008
1872 Posts
June 04 2013 23:43 GMT
#6174
The lines around the content and menu are good, only the entire thing seems to have shrunk to 70% of it's original size and been centered ^^ Figuring out what you did so I can put it in without (hopefully) shrinking the whole website :p
Broodwar AI :) http://sscaitournament.com http://www.starcraftai.com/wiki/Main_Page
Rotodyne
Profile Blog Joined July 2005
United States2263 Posts
June 04 2013 23:54 GMT
#6175
On June 05 2013 08:43 nepeta wrote:
The lines around the content and menu are good, only the entire thing seems to have shrunk to 70% of it's original size and been centered ^^ Figuring out what you did so I can put it in without (hopefully) shrinking the whole website :p


Hmm, check if you have the latest one that I put up there, I got rid of the floats and used display: inline-block. At least this latest one shouldn't change the size. And wasn't it always centered?
I can only play starcraft when I am shit canned. IPXZERG is a god.
nepeta
Profile Blog Joined May 2008
1872 Posts
June 05 2013 00:10 GMT
#6176
Centering was ok, but you snuck in a height:500px; as soon as I set that to 100%, it borked out (returned to the results of my original coding). Thanks for the help btw! ^^
Broodwar AI :) http://sscaitournament.com http://www.starcraftai.com/wiki/Main_Page
JeanLuc
Profile Joined September 2010
Canada377 Posts
June 05 2013 01:43 GMT
#6177
On June 05 2013 07:52 nepeta wrote:
Pardon me for giving up, but I've been at this for two hours and my brain is shutting down. Won't go to bed before I've found out what's wrong so please help me get to work tomorrow :p

I'm trying to get the height of the menu and content divs to be minimally 100%, so that even if there is no content to fill the page to the bottom, the border will continue neatly until the footer.

The design is heavily TL influenced, but any comments on the design are welcome as well

I've hosted it here: http://nepeta.host56.com/temp/index2.html

code of html and css:

+ Show Spoiler [html] +

<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="author" content="http://mystrd.at">
<meta name="robots" content="noindex, nofollow">
<title>pro</title>
<link rel="stylesheet" type="text/css" href="styles.css" />


</head>

<body>


<div id="container1">
<div id="logo">logo</div><!-- logo -->
<div id="topmenuwrap"><div id="topmenu">topmenu</div></div><!-- topmenuwrap -->

</div>
<div id="container">
<div id="main">
<div id="leftmenu">
<div id="lmt">menu</div>
<div id="lmc">item</div>
</div><!-- leftmenu -->
<div id="content">
<div id="ctitle">ctitle</div><!-- ctitle -->
<div id="contentct">content




</div>
</div><!-- content -->
</div><!-- main -->
</div><!-- container -->



<footer>
<div id="fc">footer</div>
</footer>

</body>
</html>


+ Show Spoiler [css] +

html {
position: relative;
min-height: 100%;
height: 90%;
}

body {
margin: 0 0 20px;
font-family: times new roman;
color: #0B0B3B;
background-color: white;
}

#container{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
overflow: hidden;
}

#container1{
position: relative;
background: white;
margin: 0px auto;
width: 1140px;
overflow: hidden;
}

#logo{
height: 120px;
text-align: center;
color: white;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
}

#topmenuwrap {
padding: 0px 0px 0px 0px;
background: #0B0B3B;
background: linear-gradient(top, #2B60DE 0%, white 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, white 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, white 75%);
}

#topmenu{
height: 40px;
margin: 0px 0px 0px 147px;
}

#main{
background: grey;
position: relative;
margin: 0px 0px 0px 0px;
}

#leftmenu{
width: 134px;
background: #E0E6F8;
position: relative;
float: left;
padding: 0px 0px 0px 0px;
border-top: 1px solid;
border-right: 1px solid;
border-color: #0B0B3B;
}

#lmt {
padding: 5px 0px 0px 5px;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
height: 30px;
}

#lmc {
background: #E0E6F8;
padding: 0px 0px 0px 5px;
}

#content{
width: 995px;
padding: 0px 0px 0px 5px;
background: white;
position: relative;
float: right;
}

#ctitle {
height: 30px;
background-color:#0B0B3B;
background: linear-gradient(top, black 0%, #2B60DE 75%);
background: -moz-linear-gradient(top, black 0%, #2B60DE 75%);
background: -webkit-linear-gradient(top, black 0%, #2B60DE 75%);
color: white;
font-size: 18px;
border-left: 1px solid;
padding: 5px 0px 0px 5px;
border-color: #0B0B3B;
}

#contentct {
background: #E0E6F8;
border-left: 1px solid;
padding: 0px 0px 0px 5px;
}

footer {
position: absolute;
left: 0;
bottom: 0;
height: 20px;
width: 100%;
}

#fc {
text-align: center;
background-color:#0B0B3B;
background: linear-gradient(top, #2B60DE 0%, black 75%);
background: -moz-linear-gradient(top, #2B60DE 0%, black 75%);
background: -webkit-linear-gradient(top, #2B60DE 0%, black 75%);
color:white;
margin: 0px auto;
width: 1140px;
border-left: 1px solid; border-right: 1px solid; border-color: #0B0B3B;
}


Use position:absolute and inline-block on your divs imo. Well, that's what I ordinarily do when I want to determine the height of div. Either that or try using Firebug on TL to see how they achieve that effect :p
If you can't find it within yourself to stand up and tell the truth-- you don't deserve to wear that uniform
Fran_
Profile Joined June 2010
United States1024 Posts
June 05 2013 02:03 GMT
#6178
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.


I have quite a bit of experience in Pair Programming during the time when I was Technical Director of Crysis 2. I can summarize the experience by saying that PP is not for every task, mundane and easy tasks are more productive if executed alone, but for moderate to complex tasks, PP will save you time and money and produce less costly code. But Pair Programming alone will not succeed if it's not accompanied by a comprehensive set of practices that include, but are not limited to, Continuous Integration and Automated Testing.

If you are interested in the topic, here's my GDC presentation on the subject:
http://yetanothergameprogrammingblog.blogspot.com/2010/06/aaa-automated-testing.html
Mandini
Profile Joined April 2011
United States1717 Posts
June 05 2013 02:17 GMT
#6179
I made a tech support thread and was told to ask in here, I'll just paste in my old post + clarifications.

I am working in an NRE lab at the moment and my current project is to get a spectrometer-photomultiplier tube system up and running again. The goal is to fire a laser at a zinc oxide crystal and see what comes off. The spectrometer works fine, the PMT itself works fine, the issue is on the board where the voltage from the PMT is sent through an ADC, datasheet here, and then through a chip through a USB cable to the computer where it is then read. I am pretty sure I have narrowed the problem down to either the ADC itself or the code on the microcontroller. It is hard to test the ADC because the conversion is done very quickly and all I've got is a multimeter to see if a bit flips to make sure its working. I've seen bits flip though so I think it is indeed working.

The microcontroller (here), and this is the board it is on, apparently worked before, but right now when the command that is supposed to tell the ADC to do a conversion and return the 8 bit value to the computer it just returns 726, regardless of the voltage applied to the input of the ADC. I think it is probably a code issue in the chip, but I don't know how to debug it or even just write new code for it. The python code that deals with the PMT and conversion is at the bottom of the post.

I guess what I need is assistance writing code to put on the chip as well as actually putting it on the chip.

+ Show Spoiler +
from visa import *

import time

from array import array
import struct


class PMT(object):

'''

classdocs

'''



magv=0

instrument_id=None



def clear(self):
time.sleep(0.5)

self.instrument_id.write("*POLL 0002000")
#self.instrument_id.clear()

self.magv = 0

return None

def focus_prep(self):
self.instrument_id.write("*FOCUS_PREP")
time.sleep(0.05)

def focus(self):
time.sleep(0.05)
self.instrument_id.write("*FOCUS?")
time.sleep(0.05)
resp = self.instrument_id.read()
self.magv = int(resp) #struct.unpack("<h",struct.pack("<H",int(resp)))[0]
return None



def poll(self):

self.instrument_id.write("*POLL 0000001")



def zero(self):

self.instrument_id.write("*POLL 0000001")

time.sleep(0.5)

self.instrument_id.write("*ZERO")

time.sleep(0.5)



def go(self):

self.instrument_id.write("*GETCONV?")
time.sleep(0.2)

resp = self.instrument_id.read()

self.magv = int(resp)#struct.unpack("<h",struct.pack("<H",int(resp)))[0]
print self.magv
return None



def ready(self):

return True



def mag(self):

return self.magv



def __init__(self,pmtid):

'''

Constructor

'''

self.instrument_id = instrument(pmtid)
self.instrument_id.write('*IDN?\n')
print self.instrument_id.read()




On June 05 2013 10:11 phar wrote:
Yea definitely post this in big programming thread. But there's not many there who know mcu type programming.

Are you sure you have your usb code set up properly? As in, can you write some random code in your mcu and have it sent over usb to the computer, ignoring the adc input? When you say you don't know how to write new code for the chip, what does that mean? Do you have no way of flashing new code onto the mcu?


Are you trying to just read a single value, or are you trying to read a bunch of values in quick succession? It looks like you can only get 100k reads per second from that adc.

How familiar are you with reading timing diagrams? If you're trying to read values during incorrect times (with this adc it looks like "incorrect time" is on the order of 10ns-7us, so pretty fast), then you won't get any real data.

Mind you, I'm not terribly good at this stuff, but I have spent hours (and hours and hours and hours) banging my head against a variety of mcu usb/spi/uart/etc bullshit. But I've never done this in python, only in assembly and "C" (for some definitions of the language C).

I can poll the board for its ID and it comes back correct, but thats the only command that I know works. I dont know how to properly write the C code that the chip would use, and I cant pull the old code off the chip to look at it either. I can flash code onto the mcu, I just have to convert it to hex code first and put it in the right memory address, but I don't know what that memory address is.

A single value every second, it takes time for the PMT to reach a stable voltage when the wavelength of the spectrometer is changed.

I have never dealt with this sort of CS before, my experience is much farther from the hardware than this.
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2013-06-05 02:31:05
June 05 2013 02:26 GMT
#6180
On June 05 2013 11:03 Fran_ wrote:
Show nested quote +
On June 01 2013 07:36 Toboe wrote:
Does anyone have experience in pair programming? Especially the scenario where you are the more competent one of the pair? I could use any survival tips or lessons learned. I'm being dragged into a project that is going to "try this out" where each on-site developer is being paired with one of our contracted, 3rd party, off-shore developers. I've gotten chances to work with every one of the off-shore developers (all of which have been with this company several years more than I have), and have consistently had to help them with very basic environment setup issues, basic understanding of requirements, and often had to rewrite their code for them to be logical/functional. Since they are off-shore, our work schedules only overlap by 3 hours, so we'll be doing most of our work alone, and then wasting spending time code-reviewing the other's work. To top it off this project is already behind schedule.

I am worried that this whole process will actually be less productive than if it was only the on-site developers, that I'll end up looking less productive, and, due to the time issue, that I will have to put my approval on code that would normally be unacceptable. The PM is hellbent on doing this idea for at least 3 months to see how it goes, though.


I have quite a bit of experience in Pair Programming during the time when I was Technical Director of Crysis 2. I can summarize the experience by saying that PP is not for every task, mundane and easy tasks are more productive if executed alone, but for moderate to complex tasks, PP will save you time and money and produce less costly code. But Pair Programming alone will not succeed if it's not accompanied by a comprehensive set of practices that include, but are not limited to, Continuous Integration and Automated Testing.

If you are interested in the topic, here's my GDC presentation on the subject:
http://yetanothergameprogrammingblog.blogspot.com/2010/06/aaa-automated-testing.html


While this all falls under the same tree of Extreme Programming, paired programming does not need CI or testing to succeed.

The biggest problem you will have when you begin is that the Navigator will often neglect his duties, due to the Driver being able to work on his own, or the Driver even forcing the Navigator to take the back seat because that is what he is used to.

The Navigator should be the one doing the "coding", just that the Driver is the one with the hands on the keyboard. The Navigator should never grab the keyboard either, that's really annoying.

The rule of thumb I found is to have the person that knows the section of code the best to be the Navigator. The Driver then learns the code as he is coding so when he swaps pairs, he can then be the Navigator and someone else who doesn't understand the code becomes the Driver. Rinse and repeat.

The whole point of pair programming is knowledge sharing, so you don't get single points of failure where only one person understands how a section works.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
Prev 1 307 308 309 310 311 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 12m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech137
CosmosSc2 36
StarCraft: Brood War
Britney 15551
Calm 2626
ggaemo 224
firebathero 126
Dewaltoss 118
SilentControl 11
Dota 2
ODPixel157
capcasts93
League of Legends
Reynor108
Counter-Strike
byalli380
Super Smash Bros
PPMD61
Heroes of the Storm
Liquid`Hasu373
Other Games
summit1g11671
tarik_tv4661
FrodaN715
shahzam403
C9.Mang0222
ArmadaUGS119
ZombieGrub57
QueenE43
Trikslyr37
ViBE4
Organizations
Other Games
BasetradeTV570
Counter-Strike
PGL97
StarCraft 2
angryscii 85
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• davetesta40
• musti20045 29
• RyuSc2 13
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• HerbMon 31
• Azhi_Dahaki25
• RayReign 16
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21224
• WagamamaTV503
League of Legends
• Doublelift3427
Other Games
• imaqtpie1458
• Scarra782
• Shiphtur150
Upcoming Events
Replay Cast
2h 12m
Escore
12h 12m
WardiTV Map Contest Tou…
13h 12m
OSC
17h 12m
Big Brain Bouts
18h 12m
MaNa vs goblin
Scarlett vs Spirit
Serral vs herO
Korean StarCraft League
1d 5h
CranKy Ducklings
1d 12h
WardiTV Map Contest Tou…
1d 13h
IPSL
1d 18h
WolFix vs nOmaD
dxtr13 vs Razz
BSL
1d 21h
UltrA vs KwarK
Gosudark vs cavapoo
dxtr13 vs HBO
Doodle vs Razz
[ Show More ]
CranKy Ducklings
2 days
Sparkling Tuna Cup
2 days
WardiTV Map Contest Tou…
2 days
Ladder Legends
2 days
BSL
2 days
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
IPSL
2 days
JDConan vs TBD
Aegong vs rasowy
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
3 days
RSL Revival
4 days
Afreeca Starleague
4 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
4 days
RSL Revival
5 days
Replay Cast
6 days
The PondCast
6 days
WardiTV Map Contest Tou…
6 days
Liquipedia Results

Completed

Proleague 2026-04-15
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W3
Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
TLPD

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

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.