• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:04
CEST 15:04
KST 22:04
  • 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
TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou5Weekly Cups (Oct 13-19): Clem Goes for Four0BSL Team A vs Koreans - Sat-Sun 16:00 CET6Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou The New Patch Killed Mech! Team Liquid Map Contest #21 - Presented by Monster Energy herO joins T1 Weekly Cups (Oct 13-19): Clem Goes for Four
Tourneys
SC2's Safe House 2 - October 18 & 19 INu's Battles #13 - ByuN vs Zoun Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $1,200 WardiTV October (Oct 21st-31st)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
BW General Discussion Is there anyway to get a private coach? BSL Season 21 OGN to release AI-upscaled StarLeague from Feb 24 BW caster Sayle
Tourneys
[Megathread] Daily Proleagues [ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN Azhi's Colosseum - Anonymous Tournament
Strategy
[I] TvZ Strategies and Builds [I] TvP Strategies and Build Roaring Currents ASL final Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Chess Thread Things Aren’t Peaceful in Palestine Men's Fashion Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
Series you have seen recently... Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Certified Crazy
Hildegard
The Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1217 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 States17256 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
Wardi Open
11:00
October Qualifier #1
WardiTV811
IndyStarCraft 143
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko346
IndyStarCraft 143
LamboSC2 79
Codebar 19
StarCraft: Brood War
Britney 42304
Calm 8281
Rain 3938
Horang2 1739
Hyuk 1273
Bisu 1107
Jaedong 1085
Flash 797
firebathero 565
Soma 508
[ Show more ]
Light 421
Larva 343
Mini 329
Stork 309
actioN 283
ZerO 250
EffOrt 232
Snow 179
Pusan 174
BeSt 165
Soulkey 138
Shuttle 136
Hyun 123
PianO 109
sSak 108
Killer 80
scan(afreeca) 70
Rush 66
ggaemo 60
JYJ58
Sharp 35
Shinee 30
Movie 29
sorry 27
TY 26
soO 24
Free 19
Shine 16
Bale 16
Sacsri 14
Noble 11
HiyA 10
Yoon 10
Terrorterran 8
Icarus 6
Hm[arnc] 5
Mong 1
Dota 2
Gorgc2135
qojqva1359
Dendi460
XaKoH 394
XcaliburYe163
BananaSlamJamma118
syndereN60
Counter-Strike
oskar90
markeloff66
edward22
Other Games
summit1g8174
singsing2348
olofmeister1322
B2W.Neo779
hiko543
Sick169
Fuzer 131
Happy100
Liquid`LucifroN99
Mew2King58
QueenE38
Trikslyr29
ArmadaUGS14
ZerO(Twitch)9
Organizations
Counter-Strike
PGL417
StarCraft 2
IntoTheiNu 27
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV419
• Noizen53
League of Legends
• Jankos3774
• TFBlade315
Upcoming Events
Wardi Open
1h 26m
PiGosaur Monday
10h 56m
Replay Cast
20h 56m
Tenacious Turtle Tussle
1d 9h
The PondCast
1d 20h
OSC
1d 22h
WardiTV Invitational
2 days
Online Event
3 days
RSL Revival
3 days
RSL Revival
3 days
[ Show More ]
WardiTV Invitational
3 days
Afreeca Starleague
4 days
Snow vs Soma
Sparkling Tuna Cup
4 days
WardiTV Invitational
4 days
CrankTV Team League
4 days
RSL Revival
5 days
Wardi Open
5 days
CrankTV Team League
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
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.