The online racing simulator
Searching in All forums
(789 results)
the_angry_angel
S3 licensed
Quote from wien :Boost.RegEx? I personally prefer Spirit for my string parsing needs though.

Maybe I'm just not getting it from the Spirit introduction page, but is Spirit a (better|different) objective version of Lexx?
the_angry_angel
S3 licensed
I've written some pretty nasty (read: long) regexs, so describing them as one line wonders isn't 100% accurate, but you're pretty much right
the_angry_angel
S3 licensed
Quote from dawesdust_12 :They're evil. I've never had a valuable use for them yet, but I still hate them because I have no idea where to use them.

They're good for validating complex input, such as telephone numbers. They're also good for quickly grabbing stuff from strings of input, or for manipulating strings.

To give 2 real world examples -

Many years ago I used to play a game called Planetarion - a web based online space strategy game. In it you could scan other planets to determine if they were worth attacking. Groups of players would form alliances and you'd want to share these scans. Unfortunately the only way to get them was to copy and paste from the browser. To deal with this many alliances would write little web based tools that their members could paste the scan into to update the database. Although each browser would copy a table into plain next in roughly the same format, it wasn't exact - some would place tabs between columns, others spaces. Regular expressions were the most sane and sensible way of getting the required data from these pasted scans and into a relational database for analysis.

I use regex's most days at work. At work I'm employed to be an outsourced sysadmin, but I also code for internal projects and so forth. For both elements of my job I will use regexs. For instance, using ldifde you can query an Active Directory server to get various bits of information about stuff in the AD (such as getting a list of users in an OU [organisational unit]). Unfortunately it normally returns a load of extra stuff you don't want and can't trim out through ldifde itself. Using regex's you can reliably remove these additional bits of guff. In our internal projects regex's are use for some of the more complex form validation, such as post/zip codes, email addresses and phone numbers.

For the coding aspect of my job it's handy when moving blocks of code or for refactoring. For instance I recently had to convert from using the Zend_Date object to our own. There were about 3 affected files, and about 4 instances created in each. I could've manually gone through and edited each file and each instance. However, using regex's I could simply perform :%s/Zend_Date/Better_Date/g (This is an example of using Vim's regex support to subsitute Better_Date for Zend_Date, through out the entire file, even if it occurs multiple times in the same line).

Unfortunately it becomes exceptionally easy to over use regexs.

For instance although you could use a regex to screen scrape from a website, it's a bad idea and you should really be using something that understands the DOM and allows you to query based on that - such as XPath or CSS selectors - the reason being that although a regex will probably work, it'll break if the website introduces new lines or additional attributes that your regex doesn't have support for. Something that understands the DOM will just continue working.

As I've said before, regex's are something you will absolutely hate. Until you get used to them.
the_angry_angel
S3 licensed
InSim is the protocol for communicating with LFS.

A program can use InSim to do stuff that LFS doesn't do natively.

There are a few programs available (see the unofficial addons section), such as LFSLapper and Airio which are general tools and can do multiple things. Other than that the programs are written by various people for their own usage and aren't always distributed.

If you want to write your own more information is available under the LFS Programmers forum, where a number of libraries are made available to help with working with InSim, and docs\InSim.txt of your LFS install.
the_angry_angel
S3 licensed
Quote from Shotglass :i see for it will be as a svn replacement

Really? Or do you use SVN for things other than code, such as conf files, internal documentation, etc.?
the_angry_angel
S3 licensed
Quote from MyBoss :Can I use the LFS banners and icons on my website? Its just a temporarily site that I am making for a project at college.

The best place to ask would be via the http://www.lfs.net/index.php?page=mailus
the_angry_angel
S3 licensed
Sorry to weigh in really late on this one, but -
Quote from Victor :How on earth is an average windows user supposed to understand all this?

They aren't. That's the point. The companies and people producing software should be familiar enough with the concepts of preventing their program file directory from being globally writable, etc.

I would like to say that these are new concepts and that it is a surprise, unfortunately it's not and it's something I have to battle with on a monthly basis for customers that use terminal servers and other highly locked down Windows based environments. %APPDATA% and %USERPROFILE% exist for a bloodly good reason, all of which Kegetys has already outlined. They should be used, and potentially you should at least have the ability to manually specify another location for storage if neither of these are suitable for the user.
the_angry_angel
S3 licensed
Quote from aroX123 :I got this school pc, and it has a block thing so the user i log into cant do shit.

I'd take that up with school techies. Odds are that there's a reason that they've done this.

Quote from aroX123 :Is there a way to find this password?

Yes, although resetting it is probably easier. Using a boot cd (such as a Windows PE, or a Linux CD) it is possible to add/reset local accounts directly into the local Windows SAM with the right tools. There is a small risk that doing so will screw up the install, although its quite small. Alternatively you can get the accounts password hash and crack it, but that's a bit daft.

I'd suggest talking to the techies first, and they might be able to do something for you, or it might just be a honest mistake. If you get caught with a full access account you might very well get massively bollocked.
the_angry_angel
S3 licensed
Quote from ghostrider83 :LOCK Please

Please use the "report this post" feature if you wish to have something moderated. That includes requesting that your thread is closed. By doing so all moderators will be notified and we'll do it much sooner.
the_angry_angel
S3 licensed
elmasfumao, I've merged your last 3 threads on the same subject.

At present there are no off the shelf solutions that just work - even the most complete and available version needs a little bit of tweaking and modifying.

Unfortunately given the number of people who come here and ask for various cruise related things there is absolutely no motivation from anyone to write everything for you. What you are asking for is a non-trivial invesment of their time.

Basically what I'm trying to tell you is that you'll need to know a little bit about programming and you'll need to use the version available here and here as your starting blocks.
the_angry_angel
S3 licensed
If it's not in InSim.txt and not in http://www.lfs.net/?page=coderfiles or http://en.lfsmanual.net/wiki/File_Formats (unofficial documentation), then it's either not been recorded by anyone, or not available.

The file formats that Scawen hasn't released officially are generally because he doesn't want to have to support 3rd party modifications and programs for these files. That would restrict his ability to alter and change as required - just something you need to be prepared for.
the_angry_angel
S3 licensed
Quote from Dygear :I have 4 tables (appointed, class, elected, status) that I want to cross reference into a single table's (members) column. The values of the of 4 tables are time sensitive based off a history table (members_history). The desired result is that the query should output all members and the current appointed position or current elected position, class, and status within the members row and include additional information obtained from the foreign rows.

Sounds what you want is an outer join, but I will admit that I've not had the time to read your post properly... If I'm barking up the wrong tree I'll either add to this post after work or add a new one in
the_angry_angel
S3 licensed
Quote from brandons48 :And a chance for me to scare the living shite out of kids that come to the door, depending on my mood

Flash gun rigged upto fire as the door opens, and a large knife in fake blood works really well Until a very little 'un cries :o
the_angry_angel
S3 licensed
Yup, went out as gentlemen and ladies; top hat, trousers, shirt, waistcoat, drawn on moustache, etc. Good night out when you're dressed up! Plus I discovered that standing out from the crowd and grinning like a madman gets you served damn quick!
the_angry_angel
S3 licensed
Quote from (The Stig) :What is the point of having a Dev Team if their never on our servers .

1. Your logic confuses me. If you work at McDonalds you don't spend all your meals eating at McDonalds, do you?

2. Who says they don't go online. Why should they use their "dev" tagged name? For all we know they could well have secret account(s) to allow them to race in peace. If Scawen logged on as Scawen he wouldn't be able to race. Same goes for Vicc and Eric.

3. Why do you care and why should the team justify their actions to you?
the_angry_angel
S3 licensed
Infractions have been handed out. The thread has been closed.
the_angry_angel
S3 licensed
Or if you're already using a *ix box as your edge device, squid could do it (if you silently ensure all outgoing http(s) traffic goes through the squid server - easily doable with iptables, pf, etc.)
the_angry_angel
S3 licensed
Good lord guys. Would you stop posting crap in (The Stig)'s threads. You might not believe that the league is going anywhere, but why do we care. If you intend to take part do so. If you intend to troll just don't post, bugger off, and the threads will die. If they don't they'll be considered spam and removed.

(The Stig) - you seem to be better than you were a few weeks ago, but cut down on the "there's nothing happening" or "coming soon" threads. Just post when you're ready and everything is prepared and you'll probably have less shit in your threads.

(The Stig) - if you want this thread cleaned and reopened please approach one of the mods. I'm not around for part of the weekend, so I might not be the best.
the_angry_angel
S3 licensed
Multiple accounts are not permitted on the LFS forum. Please login with your licenced account details - you can use the same details that you use on LFS.net, LFSworld, etc..
the_angry_angel
S3 licensed
Because -
1. Thats an example using a router running DD-WRT. You'll need to look at your own router's documentation, or possibly check portforward.com for whatever hardware and firmware you're using.
2. The "Applications and Gaming" is in the router interface, not in the command prompt window.
the_angry_angel
S3 licensed
There's nothing that will do what you want off the shelf (that I'm aware of), so either someone is going to have to write it for you, or you need to write it yourself.

If you plan on having someone else write it I suspect you'll be very lucky if anyone volunteers.

If you're going to write it yourself we can probably help out a bit more, but we'll need to know what language you're writing it in. PHP, C#, python or something else? If you're not sure, and you're not familiar with any of these languages, then you're going to need to learn at least the basics of that language first.
the_angry_angel
S3 licensed
Hmm, FKs definately do work (I know, I use them in a legacy app at work under MySQL). I'm curious that the example doesn't work for you though.. Have you checked to see that foreign_key_checks aren't set to 0?

If they are enabled I'd be surprised and interested enough to do some testing.
the_angry_angel
S3 licensed
Sounds like you're after Foreign Keys Only works with innodb under MySQL tho.
the_angry_angel
S3 licensed
FYI, I've moved this to the unofficial addons subforum as this seems to be a finished product (I've left a permanent redirect), as you'll get more coverage.

Good work and thanks for sharing with the community.
FGED GREDG RDFGDR GSFDG