|
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. |
Following up from other thread:
On June 05 2013 11:14 Mandini wrote: 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. I don't really know what to say if you don't know the code on the mcu. The only experience I have when dealing with mcus & random peripherals (like an adc or other external chip) are when I had complete control over the code on the mcu. If the mcu & adc came bundled together there's an off chance that the software already "works". No idea though 
Roughly it looks like you need periodically (you say every second, so do it every 100ms or so) pull up CS and C (C 10ns before CS), wait no longer than 7us, and then pull up CS again, and read data (didn't read carefully, may have to do something with C again).
If you're messing up the timings on C & CS, the spec sheet on your ADC explicitly states that all your data pins (parallel output) will go tri-state (read: bullshit high resistance that you can't do anything useful with in this context). That would be my first guess as to what's happening.
|
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
I've solved this problem on my own blog. There's a couple of varyingly horrible ways, this was the one I hated the least and worked for my stuff.
You need to wrap the header and body into a seperate div, "whole-page" in this instance".
.whole-page { height: auto; min-height: 100%; padding-bottom: 200px; }
Apply these to the html and body tags.
html, body { height: 100%; margin: 0; padding: 0; }
And if I'm not mistaken apply this to the footer
footer { position: relative; height: 200px; clear: both; margin-top: -200px;
bottom:0; width:100%;
}
I'm not 100% sure if removing the width: 100% and clear:both affects it, but that should be enough to have a "sticky footer", which is what I think you want done?
Looks like you got it working though, so good job! ^^
|
Thanks for the help, but I already had a sticky footer :p I wanted for the border effects of the content or main div to reach from the top of the main div to the footer, even if that main/content div doesn't have enough text to fill it.
|
On June 05 2013 15:29 nepeta wrote: Thanks for the help, but I already had a sticky footer :p I wanted for the border effects of the content or main div to reach from the top of the main div to the footer, even if that main/content div doesn't have enough text to fill it. Doesn't really help you in this case, but man, these kinds of layouts will be so much simpler when CSS Grid layout becomes standard. ATM it's only supported in IE10 and some nightly builds of firefox and chrome, but it makes the whole "how do I made a decent layout" trivial.
|
On June 05 2013 15:29 nepeta wrote: Thanks for the help, but I already had a sticky footer :p I wanted for the border effects of the content or main div to reach from the top of the main div to the footer, even if that main/content div doesn't have enough text to fill it.
whoops, guess I misread that.
I took a stab at it here.
http://jsfiddle.net/vcQt9/
It seems to be working but you should check if my changes work on your own stuff. I also messed with the padding stuff because it was getting in my way XD so hopefully that works. Not sure what happened to the header here too.
|
container is the appropriate height, header is ok, padding is ok, only slight little thing I couldn't fix was that you made the container div absolute; which killed my sticky footer.
It's like being on an odyssee, many-headed monsters to the left and right and the gods being pissed off about anything you do and do not dp ^^
|
+ Show Spoiler +html { position: relative; min-height: 100%; height: 90%; } html, body { height: 100%; }
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; min-height: calc(100% - 180px); height: calc(100% - 180px); }
#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;
height: 100%; }
#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; height:100%; }
#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; height: 100%; }
#content{ width: 995px; padding: 0px 0px 0px 5px; background: white; position: relative; float: right;
height: 100%; }
#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;
height: 100%; }
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; }
Here this should work, it only works in browser that understand css3 though.
|
Create a background image with the borders and the grey background of the boxes, add this to the html tag, repeating y direction, and you're done.
|
Thanks Yoshi- &Encdalf &Blisse 
Will have a look at your magic this evening.
|
|
On June 05 2013 22:27 nepeta wrote:Thanks Yoshi- &Encdalf &Blisse  Will have a look at your magic this evening. You might also want to look into the holy grail of css. I also think there is a stackoverflow post to make the footer sticky.
|
Also check out IP over homing pigeon, the Infinite Monkey Protocol Suite, and the IANA TLA one. I'm sure there are more good ones
|
Wikileaks To Leak 5000 Open Source Java Projects With All That Private/Final Bullshit Removed http://steve-yegge.blogspot.com.au/2010/07/wikileaks-to-leak-5000-open-source-java.html
Next article: Eclipse Sits On Man's Couch, Breaks It
New Hampshire programmer Freddie Cardenas, 17, describes the incident: "We invited Eclipse over for dinner and drinks. Eclipse sat down on our new couch and there was this loud crack and it broke in half. Those timbers had snapped like fuckin' matchsticks. Then my mom started crying, and Eclipse started crying, and I ran and hid in my bedroom."
|
I have a question if you are launching a website and you just want to send only a small portion of the traffic to the new site and the rest to the old one, what is the best method to do so?
|
On June 08 2013 08:59 lannisport wrote: I have a question if you are launching a website and you just want to send only a small portion of the traffic to the new site and the rest to the old one, what is the best method to do so?
pre authentication (not a great idea - either your users don't get a consistent experience or they get stuck to one version and then you can only control the percentage of users and not raw traffic proportions if you have a diverse userbase) - If you already have an existing load balancing solution, it should be able to handle that through a new rule. Otherwise I would say it depends on how you are hosting the two applications as you'll probably want to avoid spawning orphan sessions. You'd probably want a third application that acts as a surrogate load balancer unless you've got the applications set up to share session.
Post authentication - do some analytics and categorize your users by usage/traffic. Split a percentage of each category and redirect them after they log in.
I'm not sure why you would want to do this, though. Seems like it would just be confusing for all parties involved. I think something like what twitch/google do where they allow the user to switch between both versions (and keep track of the preferred version = instant feedback) while the new version is on pilot would be more successful
|
On June 08 2013 09:34 Toboe wrote:Show nested quote +On June 08 2013 08:59 lannisport wrote: I have a question if you are launching a website and you just want to send only a small portion of the traffic to the new site and the rest to the old one, what is the best method to do so? pre authentication (not a great idea - either your users don't get a consistent experience or they get stuck to one version and then you can only control the percentage of users and not raw traffic proportions if you have a diverse userbase) - If you already have an existing load balancing solution, it should be able to handle that through a new rule. Otherwise I would say it depends on how you are hosting the two applications as you'll probably want to avoid spawning orphan sessions. You'd probably want a third application that acts as a surrogate load balancer unless you've got the applications set up to share session. Post authentication - do some analytics and categorize your users by usage/traffic. Split a percentage of each category and redirect them after they log in. I'm not sure why you would want to do this, though. Seems like it would just be confusing for all parties involved. I think something like what twitch/google do where they allow the user to switch between both versions (and keep track of the preferred version = instant feedback) while the new version is on pilot would be more successful
It's actually a very simple website, nothing heavy in the backend (And I' still new to all this so even this is a little daunting). Thing is there was no user base so I don't think it will really confuse users (They had no backend before I redesigned their website). What I did was automate their order processing by creating a user login/database and making a php script that calls their ordering platform's api that creates new order forms. Nothing complicated. I have not heard of load balancing until today... Would Visual Website Optimizer be an okay solution? I really just want to make sure all the orders are processed correctly before a full site launch (Even though I'm testing everything in their staging server and placing real orders to test it out). I just don't want to overload their support staff if something goes wrong...
That being said, do you have a book or two you can recommend regarding web architecture/scaling and development in general? I do want to switch more into the backend and create an RoR app in the near future. Definitely will need to hit the books.
|
On June 08 2013 10:19 lannisport wrote:Show nested quote +On June 08 2013 09:34 Toboe wrote:On June 08 2013 08:59 lannisport wrote: I have a question if you are launching a website and you just want to send only a small portion of the traffic to the new site and the rest to the old one, what is the best method to do so? pre authentication (not a great idea - either your users don't get a consistent experience or they get stuck to one version and then you can only control the percentage of users and not raw traffic proportions if you have a diverse userbase) - If you already have an existing load balancing solution, it should be able to handle that through a new rule. Otherwise I would say it depends on how you are hosting the two applications as you'll probably want to avoid spawning orphan sessions. You'd probably want a third application that acts as a surrogate load balancer unless you've got the applications set up to share session. Post authentication - do some analytics and categorize your users by usage/traffic. Split a percentage of each category and redirect them after they log in. I'm not sure why you would want to do this, though. Seems like it would just be confusing for all parties involved. I think something like what twitch/google do where they allow the user to switch between both versions (and keep track of the preferred version = instant feedback) while the new version is on pilot would be more successful It's actually a very simple website, nothing heavy in the backend (And I' still new to all this so even this is a little daunting). Thing is there was no user base so I don't think it will really confuse users (They had no backend before I redesigned their website). What I did was automate their order processing by creating a user login/database and making a php script that calls their ordering platform's api that creates new order forms. Nothing complicated. I have not heard of load balancing until today... Would Visual Website Optimizer be an okay solution? I really just want to make sure all the orders are processed correctly before a full site launch (Even though I'm testing everything in their staging server and placing real orders to test it out). I just don't want to overload their support staff if something goes wrong... That being said, do you have a book or two you can recommend regarding web architecture/scaling and development in general? I do want to switch more into the backend and create an RoR app in the near future. Definitely will need to hit the books.
Do they have absolutely no user base or just a small user base? The thing about doing a load balancing solution is that its probably going to be random, and therefore the only way to get real feedback is either by stalking or watching logs.
It seems like it might work to get some of the "power users" or some known trusted customers to try out using the new site through just a separate beta url or something. This way not only are you testing out the real site in a live environment, you can also get feedback that wouldn't be available with a purely technical solution.
|
On June 08 2013 11:15 berated- wrote:Show nested quote +On June 08 2013 10:19 lannisport wrote:On June 08 2013 09:34 Toboe wrote:On June 08 2013 08:59 lannisport wrote: I have a question if you are launching a website and you just want to send only a small portion of the traffic to the new site and the rest to the old one, what is the best method to do so? pre authentication (not a great idea - either your users don't get a consistent experience or they get stuck to one version and then you can only control the percentage of users and not raw traffic proportions if you have a diverse userbase) - If you already have an existing load balancing solution, it should be able to handle that through a new rule. Otherwise I would say it depends on how you are hosting the two applications as you'll probably want to avoid spawning orphan sessions. You'd probably want a third application that acts as a surrogate load balancer unless you've got the applications set up to share session. Post authentication - do some analytics and categorize your users by usage/traffic. Split a percentage of each category and redirect them after they log in. I'm not sure why you would want to do this, though. Seems like it would just be confusing for all parties involved. I think something like what twitch/google do where they allow the user to switch between both versions (and keep track of the preferred version = instant feedback) while the new version is on pilot would be more successful It's actually a very simple website, nothing heavy in the backend (And I' still new to all this so even this is a little daunting). Thing is there was no user base so I don't think it will really confuse users (They had no backend before I redesigned their website). What I did was automate their order processing by creating a user login/database and making a php script that calls their ordering platform's api that creates new order forms. Nothing complicated. I have not heard of load balancing until today... Would Visual Website Optimizer be an okay solution? I really just want to make sure all the orders are processed correctly before a full site launch (Even though I'm testing everything in their staging server and placing real orders to test it out). I just don't want to overload their support staff if something goes wrong... That being said, do you have a book or two you can recommend regarding web architecture/scaling and development in general? I do want to switch more into the backend and create an RoR app in the near future. Definitely will need to hit the books. Do they have absolutely no user base or just a small user base? The thing about doing a load balancing solution is that its probably going to be random, and therefore the only way to get real feedback is either by stalking or watching logs. It seems like it might work to get some of the "power users" or some known trusted customers to try out using the new site through just a separate beta url or something. This way not only are you testing out the real site in a live environment, you can also get feedback that wouldn't be available with a purely technical solution.
They have a user base but no database on their website so users can't look at past orders or anything like that. They have a sales and support department that inputted orders manually in their CRM which would pass the data onto their ordering platform. Transaction history is stored at least in their ordering platform so I can pull users from that and create logins for previous customers. I have no clue how load balancers work but will look into that. I did put in some other analytics besides google that will show user behaviour and track their actions on a very granular level so I don't think the randomness would be a problem. But still, what about just using something like visual website optimizer? They have URL split testing that seems to take seconds to implement.
|
On June 05 2013 22:27 nepeta wrote:Thanks Yoshi- &Encdalf &Blisse  Will have a look at your magic this evening.
Sorry for the wait, only got around to it just now, and I'm sorry to inform everyone that I couldn't get it to work Thanks for all the input, really appreciated, it's probably just me.
Also got troubles with borders again, at least 'again' didn't pop up until I put more content on a page than one screen could hold. I officially suck at webdesign ^^
Going to rewrite once more. I cannot be that stupid that I can't get a bloody basic web page to work ^^
|
Hello Big Programming Thread. I'm coming with a request, I'm unsure if anyone will be interested in this offer, but here is my proposition:
My name is Samuel, 19 years old, from Alberta, Canada. I'm a second year mechanical engineering specializing in petroleum and minoring in Communication, in a very good university in Canada, and I do have some free time now that I've gotten a scholarship to pay for my schooling and finances are a lesser issue. I work at a Chem Lab as a High Voltage & Transformer Technician; part time. My work experience involves working in professional settings, working in a multitude of different environments. As this is the TL Programming thread, let me say my programming knowledge is relatively limited. I've only taken one C++ course(but with strong results) and previously in high school several robotics courses which involved simple programming, as well as a website design class. I've enjoyed all my classes computer classes, although I much prefer the math/coding aspect of computer science opposed to aesthetic appeal.
So I was wondering if a Software Engineer/Computer Science 3yr+ student or undergraduate would like to take me in and mentor me. I'd be able to alleviate some loneliness of the coding life, or help with some painstaking tasks with current projects. Whatever would be needed for your services(non-monetary), I'd be interested. I have 20~ hours a week I'm willing to invest into this, however if potential in my ability was seen and an industry position would be requested, I could allocate more time. Communication would not be an issue; I'm often available for skype calls, emails, etc.
I would not be expecting 24/7 mentoring, but general guidance in what I want to focus on learning, what is useful for personal uses, what is useful for industry uses. Perform occasional share screen calls, to point out any inefficiencies and areas of improvement, and repeating for emphasis: guidance on which sources are useful, and what is useful to learn. I expect commitment from my mentor, as I would do the same. I am looking for an individual who is willing to invest a period of 6 months+ into this. I plan to invest several years, but priorities may change, which therefore I'm making 6 months the initial guaranteed time to hold this vision.
I think that sums up everything I wanted to say pretty well, if anyone is interested, please just send me a PM on Teamliquid(or just post here) with a little information about yourself and what you do, and I'd be able to forward my resume, cover-letter, transcript, references, and other documents to show I am worth the investment for you thereafter.
Thank you for your time (I hope this does not conflict with TL advertising policies). PS - Threads devoid of cat pictures and actual smart things on TL make me very happy, cheers (:
|
|
|
|