Live for Speed - LFS Main Site
- LFS World
- LFS News
- LFS Manual
- LFS Merchandise
  http://www.lfsproseries.net/

Go Back   Live for Speed > Main > LFS Programmer Forum

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th July 2010, 07:25   #271  -   
CodieMorgan
S2 licensed
 
CodieMorgan's Avatar
 
Racername: morugan-kodi
Join Date: Nov 2006
Location: South Africa
Posts: 292
CodieMorgan's online stats
Quote:
Originally Posted by Dygear View Post
Thank you for making my point for me, so I did not have too. On a side note, I hate SVG (as it seems very unwieldy right now). I wonder if the spec is as bad as some of the output files I've seen thus far.
And that mean everyone is gonna buy a new phone as soon as it is released just because of HTML5?

I doubt that much.

Thing about the large percentage of people that will be on XHTML1.0 phones - especially the unlucky ones that use embedded browsers - not all of them have 3D or Wireless broadband - in in some counties - are very unlikely to update their browsers on the ones that support update downloads.


RSA for example - bandwidth is crap - and expensive - and is GPRS half the time.

Backwards compatibility is a standard and unspoken rule - particularly with CSS


- if It doesn't degrade well - alot of people are gonna miss out for some time.


U should at least have HTML1.1 fallback . Going HTML 5 is also pointless to force if u don't use alot of it's features.

EG: degradability by using <div> tags instead of <article><description><footer> etc..... or have a regex-replace if the browser string reports a non HTML 5 browser....


If someone who is as poor as me is excluded from the audience - they will look for another service, if they one they looking at now is absolutist will not cover at least 2 years backwards comparability.
__________________
Facebook | deviantART | RollcageX Opensource Game Development Project
Quote:
Originally Posted by Don View Post
what is lfs?
Morugan.Net - My New Website
Reply With Quote
Old 17th July 2010, 09:43   #272  -   
boothy
S2 licensed
 
boothy's Avatar
 
Online at: cargame.nl GTR
Join Date: Apr 2008
Location: Scotland
Posts: 1,849
boothy's online stats
Quote:
Originally Posted by CodieMorgan View Post
U should at least have HTML1.1 fallback . Going HTML 5 is also pointless to force if u don't use alot of it's features.
You've mentioned XHTML1.1 in two posts now, I hope you're not serving it as text/html and also waiting for XHTML2.0
__________________
Quote:
Originally Posted by PMD9409
the LMP is just like driving a big vagina
Reply With Quote
Old 17th July 2010, 14:02   #273  -   
DarkTimes
S2 licensed
 
Racername: Faraday
Join Date: May 2004
Location: Glasgow, Scotland
Posts: 1,799
DarkTimes's online stats
Quote:
Originally Posted by E.Reiljans View Post
http://blog.sucuri.net/2010/06/googl...ing-stats.html

Looks like totally free and open-source nginx has almost same market share as IIS.
Well I guess, but given how many web servers there are in the world, a 3% difference still tallies to tens of millions of servers, so not really that close. What's probably more interesting is how far behind everyone else seems to be...
Reply With Quote
Old 18th July 2010, 01:53   #274  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
I had some great lines in this post that I just deleted (I typed it up, but did not bother posting it as it was pretty blunt. I'm just a little too tired to type right now, and smooth myself out as so not to offend. So, I'll say this, when I'm doing a personal project I shoot for the stars. I want to see how far the tech as come, and I want to see how far it can take me.

When I'm working, getting paid to produce code, I agree with everything you said ... to an extent.

-- Have a good night guys, I'm on my ambulance in about an hour or two, and I need a nap before I step foot on it and see my first patient.
__________________
Reply With Quote
Old 18th July 2010, 11:02   #275  -   
GeForz
S2 licensed
 
GeForz's Avatar
 
Join Date: Feb 2003
Posts: 613
GeForz's online stats
Quote:
Originally Posted by DarkTimes View Post
Well I guess, but given how many web servers there are in the world, a 3% difference still tallies to tens of millions of servers, so not really that close. What's probably more interesting is how far behind everyone else seems to be...
And stats for 1000 server don't mean anything for "tens of millions"

That's like saying "The coin landed on heads twice so it is 100% it lands on heads for 200 tosses"
Reply With Quote
Old 18th July 2010, 13:19   #276  -   
E.Reiljans
Demo Racer
 
Join Date: Jul 2010
Posts: 123
E.Reiljans's online stats
Quote:
Originally Posted by DarkTimes View Post
What's probably more interesting is how far behind everyone else seems to be...
That's because all shared hosting providers use apache2 due to compatibility (for example, MediaWiki prefers Apache2 with mod_rewrite).
For most common tasks, nginx is still way better. Even when serving static content, for example - our firms' server connected to 100 mbit/s
dedicated line was giving out around 600-700 GiB per day with apache2, and around 1.0-1.1 TiB per day with nginx. With apache2, CPU was
the bottleneck, with nginx, only network connection was (it was using only 20% of CPU and 15 MB of RAM!)
Reply With Quote
Old 18th July 2010, 13:59   #277  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by E.Reiljans View Post
Even when serving static content, for example - our firms' server connected to 100 mbit/s
dedicated line was giving out around 600-700 GiB per day with apache2, and around 1.0-1.1 TiB per day with nginx. With apache2, CPU was
the bottleneck, with nginx, only network connection was (it was using only 20% of CPU and 15 MB of RAM!)
That's a damn impressive stat! I've never heard of nginx, I'm going to have to look this up!
__________________
Reply With Quote
Old 18th July 2010, 14:16   #278  -   
misiek08
S2 licensed
 
Racername: misiek08
Join Date: Jul 2008
Location: Poland
Posts: 206
misiek08's online stats
@Dygear, better delete your post :P

You didn't hear about nginx? It's (like for me) best alternative for Apache. It support something like mod_rewrite and you can easy migrate from Apache to nginx setting nginx as proxy.
__________________
HTML, CSS, JS, AJAX, PHP Programmer
SQL Magic
Mod_rewrite admin
I'm learning c# .net
Reply With Quote
Old 18th July 2010, 14:21   #279  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by misiek08 View Post
@Dygear, better delete your post :P

You didn't hear about nginx? It's (like for me) best alternative for Apache. It support something like mod_rewrite and you can easy migrate from Apache to nginx setting nginx as proxy.
I've had my head in the sand for a while now when it comes to web server tech.
__________________
Reply With Quote
Old 18th July 2010, 15:49   #280  -   
misiek08
S2 licensed
 
Racername: misiek08
Join Date: Jul 2008
Location: Poland
Posts: 206
misiek08's online stats
I was just kidding about your post. I was using Apache for 3 years. Then friend told me about nginx..... and everything started to work faster and my servers are now bored because of free RAM and CPU.
__________________
HTML, CSS, JS, AJAX, PHP Programmer
SQL Magic
Mod_rewrite admin
I'm learning c# .net
Reply With Quote
Old 18th July 2010, 20:08   #281  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by misiek08 View Post
my servers are now bored because of free RAM and CPU.
Lol, that's awesome.
__________________
Reply With Quote
Old 18th July 2010, 20:42   #282  -   
DarkTimes
S2 licensed
 
Racername: Faraday
Join Date: May 2004
Location: Glasgow, Scotland
Posts: 1,799
DarkTimes's online stats
Quote:
Originally Posted by GeForz View Post
And stats for 1000 server don't mean anything for "tens of millions"

That's like saying "The coin landed on heads twice so it is 100% it lands on heads for 200 tosses"
Not really, because two times is statistically insignificant, but a thousand is a pretty reasonable number. That's about the same number of people they ask in government polling.
Reply With Quote
Old 20th July 2010, 02:59   #283  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Anyone else using Stack Overflow for their programming questions? They have provided some very insightful answers.
__________________
Reply With Quote
Old 20th July 2010, 03:08   #284  -   
amp88
S2 licensed
 
amp88's Avatar
 
Racername: [DSR] amp88
Join Date: Aug 2005
Location: Glasgow, Scotland
Posts: 3,675
amp88's online stats
Quote:
Originally Posted by Dygear View Post
Anyone else using Stack Overflow for their programming questions? They have provided some very insightful answers.
I hit it from regularly when I'm looking for help with problems but I haven't asked any questions there myself.
__________________
[DSR] Darkside Racing -

Masters of Endurance and ex-IGTC admin - DarcyF1 filehost for MoE
LFS Manual | Quali Ticker | Custom Resolution Launcher
Reply With Quote
Old 20th July 2010, 04:09   #285  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by amp88 View Post
I hit it from regularly when I'm looking for help with problems but I haven't asked any questions there myself.
I've asked a few and all answers are spot on.
__________________
Reply With Quote
Old 20th July 2010, 09:26   #286  -   
misiek08
S2 licensed
 
Racername: misiek08
Join Date: Jul 2008
Location: Poland
Posts: 206
misiek08's online stats
I'm using it too.
There is no forum that can be more helpful than SO.
__________________
HTML, CSS, JS, AJAX, PHP Programmer
SQL Magic
Mod_rewrite admin
I'm learning c# .net

Last edited by misiek08; 20th July 2010 at 09:34.
Reply With Quote
Old 25th July 2010, 18:26   #287  -   
PoVo
S2 licensed
 
PoVo's Avatar
 
Racername: Forgot
Join Date: Jun 2008
Location: Dublin, Ireland
Posts: 462
PoVo's online stats
Hey, I just wanted to ask a small question.

(This is all in C# @ LFS_External)

Is it possible to create a BTT button, so that when I click it, I get the text box, and when I click OK, I get another text box?

Long Sentence Short:

Click Button "Example" -> Textbox 1 shows up. -> Type in stuff, press OK -> Textbox 2 shows up. -> Enter stuff, press OK.

I don't think it's possible (in my eyes, but worth a try)

AFAIK: It would be possible if I knew the OK button's "ClickID"??
Reply With Quote
Old 26th July 2010, 13:20   #288  -   
CodieMorgan
S2 licensed
 
CodieMorgan's Avatar
 
Racername: morugan-kodi
Join Date: Nov 2006
Location: South Africa
Posts: 292
CodieMorgan's online stats
Quote:
Originally Posted by boothy View Post
You've mentioned XHTML1.1 in two posts now, I hope you're not serving it as text/html and also waiting for XHTML2.0
Not at all . XHTML2 is totally not my thing - I don't like it - Im interested in HTML5 (and current XHTML 1.1 'Strict')...

I tread all XHTML as XML - when parsing it!


Change of topic :

I created this using GDI to prototype some buffer matrixes using multiple renderbuffers. (vb.net)



Now I want to start the final product - and am having trouble decing eather to go DirectDraw9 clean - SlimDX, or any other - as my little project has peaked in GDI (cant do more without killing GDI framerate now )

Any suggestions of either any .Net friendly wrappers, or frameworks ( NOT XNA please... ) ? I am already testing some stuff in Axiom (Ogre/Mogre) .. but I need something lighter ... otherwise ill be doing Raw Direct2D and DirectDraw
__________________
Facebook | deviantART | RollcageX Opensource Game Development Project
Quote:
Originally Posted by Don View Post
what is lfs?
Morugan.Net - My New Website
Reply With Quote
Old 26th July 2010, 23:54   #289  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
The Go Programming Language

Has anyone played with the Go Programming Language? It's one of the more intresting things to come out of the Portland [s]trip[/s], programmers conference.


On a side note, Vic, can you please add <s>strike</s> to the BBCode list in the admin panel here? Thanks, bye!
__________________
Reply With Quote
Old 27th July 2010, 01:29   #290  -   
Woz
S2 licensed
 
Woz's Avatar
 
Join Date: Aug 2003
Posts: 2,312
Woz's online stats
Quote:
Originally Posted by DarkTimes View Post
I like TDD for some things, I've had genuine fist-in-the-air moments when a test passes, but I'm having issues with the fact that I am writing two or three times as much code as I was before, plus I sense a real increase in the complexity of some of my code.

I enjoy some things, writing the tests first creates some nicely decoupled code, and as I say I have had some really great moments when a a complex algorithm finally passes. I was writing some code the other day that converted base 10 numbers into base 36, and I found the tests very helpful while I grappled with my bad mathematics.

It will be very useful when working with dynamic languages, such as Python, when you don't have the safety-net of the compiler, but I'm not convinced that for the sorts of GUI apps I write, that I am really getting an equal return for the time-investment.

Anyway I'm still having fun and I plan to continue with it for the time being.
I got TDD into place early in the project I am working on which is now in the region of 500000 lines of code. Without our unit tests we would never keep it stable. TDD is great at finding all the little issues that occur in what you think are unrelated code.

You are right in that you create 2-3 times more code BUT the offset is less manual tests are required. So the time very quickly repays itself. We even took the time to write automatic reflection based test that check attribute tagging and validators are correctly hooked on objects etc.

You just have to stop fighting writing the test code, after a while you feel a little exposed when you write code without the associated unit tests to back it up.

I hate writing code without tests now as it means I have to perform the tests that would be automatic manually. Time better spent coding tbh.
__________________
I have CDO. Like OCD but the letters are in the correct alphabetical order like they should be!
Reply With Quote
Old 31st July 2010, 16:00   #291  -   
DarkTimes
S2 licensed
 
Racername: Faraday
Join Date: May 2004
Location: Glasgow, Scotland
Posts: 1,799
DarkTimes's online stats
Has anyone tried the BBC JavaScript library? It looks pretty nice, especially the widgets that come with it. Not sure it has enough going to replace jQuery however, but it does look interesting.

Last edited by DarkTimes; 31st July 2010 at 16:13.
Reply With Quote
Old 1st August 2010, 23:35   #292  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by DarkTimes View Post
Has anyone tried the BBC JavaScript library? It looks pretty nice, especially the widgets that come with it. Not sure it has enough going to replace jQuery however, but it does look interesting.
I've never heard of it, I'll have a look.
__________________
Reply With Quote
Old 4th August 2010, 11:55   #293  -   
the_angry_angel
S2 licensed
 
the_angry_angel's Avatar
 
Join Date: Jun 2003
Location: Bristol, UK
Posts: 5,536
the_angry_angel's online stats
Quote:
Originally Posted by DarkTimes View Post
Has anyone tried the BBC JavaScript library? It looks pretty nice, especially the widgets that come with it. Not sure it has enough going to replace jQuery however, but it does look interesting.
Yeah it's not too bad, but to be honest the possibility of it going away (if the BBC bin it) and the fact that I've been using jQuery for so long, both personally and at work, hasn't made me move to it.

I will admit I've been meaning to port one or two of the widgets to jQuery though. Never quite managed to find the time (as usual)
__________________
Karl 'the_angry_angel' Southern | Project BlueThrow
Reply With Quote
Old 4th August 2010, 15:44   #294  -   
CodieMorgan
S2 licensed
 
CodieMorgan's Avatar
 
Racername: morugan-kodi
Join Date: Nov 2006
Location: South Africa
Posts: 292
CodieMorgan's online stats
Quote:
Originally Posted by PoVo View Post
.... if I knew the OK button's "ClickID"??
I'm seriously late noticing this but.....

What the heck do you mean by ClickID?

You are working in C# right?

You are trying to track a C# button click, or a click else were ( btt)?
__________________
Facebook | deviantART | RollcageX Opensource Game Development Project
Quote:
Originally Posted by Don View Post
what is lfs?
Morugan.Net - My New Website
Reply With Quote
Old 4th August 2010, 18:00   #295  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by CodieMorgan View Post
I'm seriously late noticing this but.....

What the heck do you mean by ClickID?

You are working in C# right?

You are trying to track a C# button click, or a click else were ( btt)?
ClickID is a struct memeber found in the IS_BFN (Button FunctioN), IS_BTN (BuTtoN), IS_BTC (BuTton Click) & IS_BTT (BuTton Type) structs. ClickID is used to track a button in these cases:
  • ClickID can be used to update a button's text via the IS_BTN struct, where the ClickID is already known. However it should be noted that in this case, all contents of the packet is ignored if the button with that ClickID is already being displayed, only the Text member of the struct is read in the packet, and updated on screen. It's position will remain the same, as the position members are ignored also.
  • ClickID in IS_BTC, will tell you what button was clicked by the client.
  • ClickID in IS_BTT, will tell you what button was typed in by the client.
  • ClickID in IS_BFN, will let InSim know what you wish to do with that button along with the SubT member of the Struct.


Quote:
Originally Posted by PoVo View Post
Click Button "Example" -> Textbox 1 shows up. -> Type in stuff, press OK -> Textbox 2 shows up. -> Enter stuff, press OK.
Yes.

Send a IS_BTN struct with the TypeIn set to the max length of the text you wish to receive up to a length of 95 charaters, set it's ClickID and send the packet. Note down somewhere what ClickID you set. When you get a IS_BTT packet, where it's ClickID is the same as the one you set, read the data and send another IS_BTN function like last time.
__________________

Last edited by Dygear; 4th August 2010 at 18:06.
Reply With Quote
Old 16th August 2010, 19:58   #296  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
I was looking at licenses recently, as some of you might of noticed, and I was looking up how Linus and Stallman did it, and I stumbled upon this:

Tech Talk: Linus Torvalds on git - Yeah, ok. I think I'll use git, taking a tenth of a second to go though the whole linux kernal source tree is pretty impressive. It should be more then powerful enough for us pokey devs on the PRISM project.
__________________
Reply With Quote
Old 18th August 2010, 12:06   #297  -   
bunder9999
S2 licensed
 
bunder9999's Avatar
 
Racername: bunder
Join Date: Jun 2008
Location: Hamilton, Ontario
Posts: 3,124
bunder9999's online stats
Quote:
Originally Posted by Dygear View Post
git
it's not that bad actually... i'm using it for a game source repo.

i used to use svn a couple years ago, and i wasn't really interested in learning another RCS, but once you configure it and use it a few times, it's pretty manageable. the only thing that bugged me was that i couldn't get it to send patch emails properly.
__________________
Maybe I am a bit over-dramatic, I just hate being stuck in limbo.
Reply With Quote
Old 18th August 2010, 15:48   #298  -   
dawesdust_12
S2 licensed
 
dawesdust_12's Avatar
 
Join Date: Feb 2004
Location: Nanaimo, BC
Posts: 7,673
dawesdust_12's online stats
I love git. Yes I haven't used it for anything mission critical (I could have been just as well off without SCM, and kept 1 copy I worked off of), but it worked remarkably well. easy to get setup (once the concept was understood), and made things nice for sharing with the other person I was working on the project with.
__________________
STOP TALKING ABOUT MY FONTS GUIZ.. IT'S THE BEST THAT LOOKS LIKE MY WRITING!
Quote:
Originally Posted by zeugnimod View Post
Listen to Dustin, he's always right!
Reply With Quote
Old 28th August 2010, 18:47   #299  -   
DarkTimes
S2 licensed
 
Racername: Faraday
Join Date: May 2004
Location: Glasgow, Scotland
Posts: 1,799
DarkTimes's online stats
An excellent free book that teaches programming and the C# programming language.

http://www.robmiles.com/c-yellow-book/

Last edited by DarkTimes; 28th August 2010 at 18:54.
Reply With Quote
Old 29th August 2010, 04:07   #300  -   
Dygear
S2 licensed
 
Dygear's Avatar
 
Racername: (EAGLE)Dygear
Join Date: Feb 2005
Location: Levittown, NY.
Posts: 2,145
Dygear's online stats
Quote:
Originally Posted by DarkTimes View Post
An excellent free book that teaches programming and the C# programming language.

http://www.robmiles.com/c-yellow-book/
I never really grokked, or even got C#. I felt that I was always on the cusp of being able to understand it. So, I'll read this after medic school is over
__________________
Reply With Quote
Reply

  Live for Speed > Main > LFS Programmer Forum

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:58.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Live for Speed © 2002-2009 - Scawen Roberts, Eric Bailey, Victor van Vlaardingen