Jump to content
xisto Community

Galahad

Members
  • Content Count

    591
  • Joined

  • Last visited

Everything posted by Galahad

  1. Well, I guess PERL would be the best choice for such searches, RegEx is a quite powerfull tool... You can connect to MySQL databases from PERL, so that shouldn't be a problem either... You should concentrate on connecting to databases (MySQL, PostgreSQL, and others) in PERL, and also Regular Expressions... RegEx will be your best friend in searches for news articles...
  2. Dunno where XAMPP for Linux expects files to be... Generic Apache configuration on my Linux looks in /var/www for files and scripts... Maybe there? You should read XAMPP documentation, or configuration files, to see where XAMPP wants the files to be...
  3. With standard TextBox you can't have multiple fnt styles... If you want that, then use RichTextBox control, that allows multuple font styles, colors and others...
  4. I used to have Nokia 7650, and it kind of ticked me off, since it was blocking often... After that, I bought Siemens SX1, and I absolutely adore that phone, I still have it, and don't plan to sell it... It's a Symbian 60 phone, that's aesthetically lovely to the eye, and functional...But, since this is about Nokias... I have Nokia Communicator 9300, and it has everything you need, period... OggPlay makes it into a portable music player... RealPlayer and SmartMoviePlayer make it into a portable video player... GPRS Internet is kind of slow, but you can always check you e-mails, wherever you are...And 1GB MMC card allows you to do all that at once So, my Nokia 9300 is kind of my best travel companion, be it for reading, listening to music, or anything else...
  5. Well, while going for the median price is easy, I don't think there are a lot of people willing to pay 5 euros for a book that costs 1 euro... I mean, I wouldn't... Unless it's some extremely rare book... It's just my oppinion, but I think paying 4 times the value of something, to get it - it's just not worth buying... But then again, that's just me... Providing unique price for every item, tells your customers you care about them, so that may increase your sales... But that's just going into "running the business" topic...
  6. I would also go with attempting to access the disk via a Linux distro, and trying to copy the data... There are always good tools in Linux to get the damaged data from harddrives... It seems to me that Vista screwed something with the HD, probably screwed FAT table, or something like it...
  7. MD5 is a hash function... Hash functions are one-way, meaning, they create a hash string, based on their input... MD5 doesn't encrypt anything, it just creates hash string...The only possible way to "crack" MD5 is using dictionary attack, that is, using a list of existing MD5:Cleartext pairs, and matching to a desired MD5... There is no way do decode, only "break in"... Only, it requires quite big processing power to do it fast...
  8. Galahad

    Audio Files?

    Well, for linux, there is youtube-dl, a program that downloads a video from YouTube... If you want to extract audio, you just run FFMpeg program, and voila, you've got yourself an audio file...There are similar tools for Windows and mac too...Frankly, whoever wants to get something, he/she will... There is always that lame method of playing a file from your player, and recording it in parallel... There is still no protection against that... What people hear, they can record...The moment you give out something to the public, you run the risk of being ripped off... But, being ripped off, means your stuff is good, so you should be flattered...
  9. Problem with all mail companies, is they are trying to get the most money out of your shipment... I haven't worked with Royal Mail, but I worked with UPS, DHL, and severl other similar transportational companies... They calculate the shipping cost in the following way... You need to weigh your package, and you need to measure it, WxHxD... Then, WxHxD is divided by some number, generaly 1000, then, they see which value is greater, weight or WxHxD / 1000, and use that value to calculate the cost... You don't have an easy task ahead of you, but you can precisely calculate the shipping cost for the entire collection... The only problem is, you will need to measure all of your books, and the new ones you get, measure them immediately... The good thing is, books usualy have similar dimensions, only their weight is different... Tough job is ahead of you, but once done, I'm sure your customers will be the quite happy...
  10. Nah, generic VB6 Timer doesn't create it's own thread, and it isn't quite precise... Yes, it's satisfactory if you don't need exact time intervals in a millisecond, but when precision is of the essence, it fails misserably... I wrote a programm that needed precise time intervals to poll certain hardware, and Timer failed to do the job, I had to write a separate thread timer using API, to achieve 20ms precision...
  11. I agree with afore mentioned cable usage... I have SBLive 5.1, and I use RCA-to-Jack cable... It extends the distance between your computer and the device, and it's not as thick... If you're tech savvy, you could make that cable yourself... Nah... You would have done it already That's what I do... I make stuff I don't want to buy (or better said, I'm to lazy to go out and look for), so my room is filled with custom made wires, cables, several converted power supplies, and other electronics... They don't do anything special, I just love solderin and making stuff... I'm going offtopic...Cable is the only solution for you, as it will allow you to connect 3 standard Jacks in there, and there will be no cramping... Plus, you get a few feet in length
  12. He could, but Timer object isn't very precise... And if something occupies his program, Timer would miss his turn... So it wouldn't be 10 minutes, it would become 12 minutes... Multi-threading is the best way to go about, have an external process worry about minutes, and when the time comes, execute the code he needs... If on the other hand, those 10 mintes don't have to be 10 minutes, Timer object would be satisfactory...
  13. Did anyone mention the ability to completely customize your system? And did I mention I just LOVE Linux? I just started learning Perl, and already I'm writing insane scripts, that actually work fast, and get the job done... That's right... I wrote a simple email filter for Evolution mail, in Perl, and it works... No learning ability, just simple straightforward filtering, based on rules, black- and white-lists... Also, an email checker... Sometimes I just want to see if I have emails, and who from... Piece of cake, I check all of my accounts, and get a number of new emails, and if I want, sender and subject... Yeah, you could do that on Wintendo too, but it would cost you much more, and would take much more time... One just has to love the command line Khm... What? What's a lot? Any company that wants to increase their profit, switch from Wintendo to one of Linux distros... When you know Linux, you're a guru, when you know Wintendo, you're a user... See the difference? And I wouldn't call Wintendo universal - I'd call it... Hmm... No, I wouldn't call it at all... And that gaming thing? Well, believe it or not, the world doesn't revolve around games... Wintendo is hard for newbies too... Because you are used to Wintendo, you claim Linux is hard... Yeah, right... I thought that too... Until I tried... And guess what, Linux actually makes a lot of things EASIER than in Wintendo... Gnome or KDE or other WMs are also straightforward... And explained... Perhaps even better than Wintendo... Synaptic (for example) enables one to install/uninstall EVERY piece of software there is... And no registry to be broken... I'll agree with rvalkass on this one... I didn't have the need for drivers for any of my hardware - not my TV/FM card, my SBLive, network card,USB external hard drives, card readers, monitor, graphics cards, and the rest... All worked after installation... Only drivers I had to download were generic drivers for USB webcams... And it took me like 3 minutes... Yeah, wobbly windows are dumb... But what about a rotating desktop? Isn't it coooool... Ok, let's get serious... Wintendo doesn't give you 100% liberty to cusomize... Gnome and KDE do... And if you install Beryl or some other effects engine... It get's even better... Wintendo will NEVER be able to have rotating desktop cube, running on 1GB RAM machine, with 64MB GFX card... I can bet on it... Yeah, Wintendo doesn't load bunch of fonts into RAM memory, it doesn't have registry to fill up a little more of RAM, and also doesn't have unneccessary services running in the backround, and doesn't allocate 20% of resources to spy on you... Oh, wait, that's not right, that's Linux I'm still trying to get my head around this one - and I can't... Wow... Windows is so cool... Yeah you have to pay for it, and have to pay for much of its software, but you get cool freebies - viruses... Jeez... You like viruses? I'll send you a few, to play around for a while ... Seriousely, dude, this is not an argument, this is... I don't know what this is... As someone above said, prevention is better than a cure... It's like you said "There's a cool fancy restaurant, that charges $15 for a glass of water, but I just have to watch for the germs on the glasses, They've got a bunch of them, some of them nasty. But even if I catch a germ, I get to pay another $15, and they cure me. Sure there is some chance I'll lose an arm, but hey, it's a fancy restaurant. I just have to be smart, and avoid really nasty bugs, like AIDS and stuff. I could buy a microscope and check for those bugs - that would be top smart"... Again, I'm not on a mission to convert anyone, but when I see a list like this, that is not based on real experience, but more on heresay, it ticks me off... Dude, if you're happy with Wintendo, keep using it, and good luck with it...
  14. Well, Vista SP1 sounds like a genuine M$ stuff... "Hey, I don't like this piece of software - let's block it!"... Great... I would say that the likely cause is that SP1 is incompatible with itself, and thus it blocks software... Funny how Norton and McAffee aren't blocked... Dirty competition?Also, why the need for "Vista's Live File System" on CDs? Can't they use ISO-9660 or UDF? Jeez...Well, anyways, not my problem, but I just thought I'd add my two cents here... It's usefull to read stuff like this, so people don't get frustrated due to not knowing what is at hand...
  15. I've got a 4th Generation Pentium, that is Celeron... It's main speed is 2.0GHz, but I overclocked it to 2.6GHz... I increased Vcore voltage from 1.55V to 1.70V... In these circumstances, in hot summer temperatures (which are now, and are about 35 degrees Celsius), my CPU never exceeds 60 degrees Celsius, under 100% load... And, I use the stock fan I got with the CPU... Soooo, there must be something wrong with your system, probably the fan has reached the end of it's life...I put two 40mm fans in the front, to extract hot air from 2 HDDs that are located right there, I have 1 80mm fan extracting hot air from my GFX card, I put a 40mm fan on GPU, since it originaly came only with a heatsink, and I have 1 80mm fan extracting hot air from my CPU... No fans are blowing air inside, just extracting hot air from the inside... Case is of course open at all times, but not for heat, bu because I just like it open... To be able to mess with anything right off...I'd check a fan, probably it's ball bearings are shot...
  16. Yaaaay, post 1001 is mine :)Do we Linux freaks count? Lol...While I used Wintendo, I used AVG, since it's ligthweight, fast, detected any virus I received in email, and above all - it was free... yay... So I would recommend it for all Wintendo uses... Kaspersky,and other big commercial software are too much of a resource hog... And besides, I want to be able to install ONLY anti-virus software, no firewalls, no intelligent anti-run protection, and whatnot... AVG gave me that option... For firewalls, try and finr AtGuard, and old firewall, that works great... That it was great, proves the fact that Symantec bought it, and changed it to Norton Firewall...And as for now, well I use ClamAV to scan for incoming mail, and Linux builtin iptables firewall... I don;t quite need that ClamAV, but what the heck, it's cool to say I have anti-virus software on my machine... It's not running all the time, since I don't see the need for it... Win32 viruses can't do anything to me... yay again
  17. Well, I've been using OpenOffice for several months now, and can say that for me, it works flawlessly... I mostly used OOo Spreadsheet, for a VERY serious work, I wrote some macros, and what did I get? everything I needed... It even looked the same in Excel... Workd with OOo Word Processor, and it also does great work... Let's face it, when you have a company, you're not writing childrens books, you're writing reports, contracts, and other serious stuff, hence, no need for clipart, and what-not...For people who prefer aesthetics, fine, go with M$ Office... Sure, it can beat OOo in shiny and glittery stuff, but when it comes to serious work, it performs exactly the same as M$ Office... Companies and people in DTP area don't use M$ Office anyway, so, why try and to that with OOo?And those comments, "I tryed it a year ago, and it sucks", are just dumb... Open Software advances every day, because people work on it actively... And OOo is nowhere near as bad as it was (yes it was bad at one point)...Anyways, I'm not trying to convert anyone, I use OOo because it works exactly what I need, and I don't want to pay poor old billy a ton of money, for something that doesn't work, and most importantly, for something I don't need...
  18. I can with certainty speak for Google, but not too much, obviousely... There's such thing called a "Non-Disclosure Agreement" or "NDA"... So, anyone working there, can't really talk about anything specific... Now, before you all think I work, or have worked at Google, stop right now - I haven't (though I wish I could)... I just know a guy who did...Working environment is great, and as you see in movies, TV's everywhere, soda machines, beanbags, and relaxation areas in offices...I can tell you that Google, for it's search engine, does not use MySQL... I mean, look at it, you can't use any conventional database system for such a gigantic site... They have virtually thousands of terrabytes of information on their servers... Google uses it's own version of database system - I don't know how they call it, I don't know the specifics, but I know that they do, and that's all I can say... For back-end, they use pure C, and some Perl...For GMail backend, they have some email software, I believe developed by them, and front end, well... PHP combined with AJAX... By the way, did I say I hate AJAX? It's so slow, and tends to kill even the fast connections... Oh, and AJAX is NOT a programming language, it stands for Asynchronous JavaScript and XML, so it's technically JavaScript...Anyways, such big sites must use fast, and above all, customized software, because they don't quite do what a next guy would do... My Perl junk filter works great for me, but it would be lamely slow in GMail...But, we all agree that they all work with PHP, Perl, Python, C/C++, and Java (all flavours)...P.S.If some big giant head from Google reads this, I made it up
  19. You're very welcome...Perl can be scary by itself, I know I was frustrated with how it works... It's completely different than conventional programming languages, but then, it's the same... If you catch my drift... An regular expressions can be particularly scary and frustrating... I still haven't got the full hang of it, but every day I get to know Perl a little better... It's aprticularly usefull to know Perl because here at Xisto we have full cgi support, so we can make Perl scripts that do complex tasks... I plan on series of tutorials for Perl, from how to make a CGI script, connect to a MySQL database, to some other stuff... Just now, I'm working on a primitive mail junk filter... And thanks to RegEx, it's a breeze... It's not a smart filter, it doesn't have the ability to learn, but with a few good rules, whitelists and blacklists, it get's the job done much better and quicker than, for example, SpamAssasin... I suppose I could put it here, and make a tutorial out of it... There's an idea I always like to help beginners get a hang of something new, and help them avoid stuff that made me cry with frustration and anger
  20. I'll add another good program for file recovery TestDisk... It's for Linux, and it's free...TestDisk is a terminal program, that will analyze your drives... they don't even have to be mounted... It also comes with a handy toold called photorec... Same thing, only recovers a bunch of files that can't be accessed... For example, today my digital camera messed up my CF card... All the photos were lost, and Linux wouldn't mount it, since it couldn't recognize file system in use... Photorec scanned the entire card, and extracted each and every photo, and saved them to my harddrive... It works also with other file types, not just images...
  21. Ok, if I understood you correctly, you could do it something like this... I'm writing this blindly, since I don't use VB anymore, I switched over to Linux Dim Headers() As StringDim Columns() As StringPublic Sub FillVariables(ByRef Headers() As String, ByRef Columns() As String, rs As MYSQL_RS, Optional Owner As Variant) On Error Resume Next Dim lngCounter As Long Dim FirstColumn As Boolean ReDim Headers(rs.FieldCount - 1) For lngCounter = 0 To rs.FieldCount - 1 Headers(lngCounter) = rs.Fields(lngCounter).Name Next 'PREALLOCATE MEMORY FOR ROWS SendMessage lvwData.hwnd, LVM_SETITEMCOUNT, rs.RecordCount, 0& ReDim Columns(rs.RecordCount, rs.FieldCount,rs - 1) Dim lngCols As Long Do Until rs.EOF lngCols = lngCols + 1 For lngCounter = 0 To rs.FieldCount - 1 Columns(lngCols, lngCounter) = rs.Fields(lngCounter).Value Next rs.MoveNext LoopEnd Sub This is ofcourse only the idea how to try, I haven't actually tried it... The whole idea is to use two-dimensional array for row data, so that each row, can contain column data, for example Columns(1,1) = Column 1, Row 1 Columns(1,2) = Column 2, Row 1 Columns(1,3) = Column 3, Row 1 Columns(2,1) = Column 1, Row 2 etc...
  22. Well, it's possible, but very ineffective... Insteda, you shoud look at API Guide... They have a complete list of API functions, and there are two that can be used for this what you need... They are advanced timer controls, and allow you to set a callback function, that will be called on interval you specify, and plus, it runs as a separate thread... I think they ahve something to do with quartz.dll... I'll try to find my old projects, and write you an example... Edit: I found a few good functions that you may find usefull: Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As Currency) As CurrencyPrivate Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As Currency) As CurrencyPrivate Sub WaitMs(ByVal MS As Long) 'wait a given number of millisecondsDim t21 As Currency, f21 As Currency, e21 As CurrencyQueryPerformanceFrequency f21 'get number of counts/secondt21 = f21 * MS / 1000# 'multiply f by number of seconds to get number of counts to waitQueryPerformanceCounter e21 'get current count numbere21 = e21 + t21 'add number of counts to wait to current countDo QueryPerformanceCounter t21 If t21 > e21 Then Exit Do 'wait for current count to exceed e DoEventsLoopEnd Sub I'm still looking for that separate thread function Edit 2: I couldn;t find what I was looking for, but try looking at this example HERE... I think it has everything you need, and it's sort of multi thread for VB6... I think that's the best choice for you...
  23. I've searched the Tutorials section, but haven't found a RegEx tutorial, so I thought I'd add one, since it's very usefull to know regular expressions if you're a programmer... If I overlooked a tutorial explaining RegEx, my bad, just erase this tutorial... Ok, first off, regular expressions are a great functionality of Perl, but the can also be found in other languages and environments, such as linux shells, or PHP... I'm guessing most people would be interesten in useing regular expressions in PHP... Let's go on with a complex matching regular expresions my $var = "This is some text here that we need to search.";if ($var =~ m/th/) { print "I found a th\n";}In the following example, regular expression will locate a 'th' in 'that', and not in 'This', because matching is case sensitive. If we wanted case insensitive matching, we would write this: my $var = "This is some text here that we need to search.";if ($var =~ m/th/i) { print "I found a th\n";}And now, match will be found at 'This'. Regular expressions always try to find a match as soon as possible, and to make it as large as possible. Summary of regular expression matching m/search_text/ - Find search_textm/^search_text/ - Match search_text but only at the begining of the line. Operator ^ does thism/search_text$/ - Match search_text but only at the end of the line. Operator $ does this.m/^search_text$/ - Match search_text, but only if it's the entire textm/search_text/i - Match search_text, but case insensitive Of course, if regular expressions were this easy, there wouldn't be a need for a tutorial. Regular expressions are quite powerfull, and can match anything in the text. For example, these wildcards can be used in regular expressions to find anything: . - Match any character\w - Match words (alphanumeric characters and "_")\W - Match non-words\s - Match whitespace character\S - Match non-whitespace character\d - Match digit character\D - Match non-digit character\t - Match tab\n - Match newline\r - Match return\f - Match formfeed\a - Match alarm characted (bell, beep, and others)\e - Match escape\O45 - Octal characters match; in this case, it's 45 octal; Replace O with 0... I had to do this because PHP parses as nothing, as you can see :)\x6fa - Hexadecimal character match; in this case. it's 6FA hexAlso, combined with these wildcards, you can use repetition operators: * - Match 0 or more times+ - Match 1 or more times? - Match 0 or 1 times{n} - Match exactly n times{n,} - Match at least n times{n,m} - Match at least n, but not more than m times Ok, I'll add a few examples for this so far: $var =~ m/\+\d{1,3}\ \(\d{1,3}\)\ \d{3,4}-\d{3,4}/; # This example will match a telephone number in the following format +381 (21) 123-456 or +381 (21) 1234-567$var =~ m/^Hello/; # This example will match "Hello, world", but not " Hello, world" or "hello, world", because search is case sensitive, and requires the line to begin with Hello$var =~ m/galahad/i; # This line would match wherever a Galahad or galahad is found in text; search is case insensitiveAlso, note how I escaped a space, a +, and brackets. I did this because they are also used by regular expressions, and escaping them makes regular expressions treat them as a common text. You escape a character with backslash (\)...Slashes also have to be escaped. Ok, we're half way there... Now we go on to character groups and character classes... What character groups do, is allow alternative phrases to be used. In the next example, it would be a match if we had a Susan, Marie, or Jennifer in the text $var =~ m/(Susan|Marie|Jennifer)/;Character groups also allow for retrieval of selected text, when used in selections, and placing them in scalars $1, $2, .. Buit I will cover that a bit later. Character classes allow for character ranges. For example, this short line would match if we have names starting with A through N: $var =~ m/^[A-N]/;Character classes consist of one character, and one character only. The following will NOT work: $var =~ m/^[Ab-Ne]/; As per experience of others, character classes can be a bit quirky, so avoid using them, since character groups will almost always give you what you need. And now off to: Selections AKA Parsing Ok, we established that regular expressions are a mighty thing, but so far, they don't do anything spectacular. I mentioned character groups a bit earlier, and mentioned they can be used to retrieve selections. And here's how, and were regular expressions excell and get very usefull. Say we have a phone number +381 (21) 123-456. Country code is 381, and area code is 21. And let's say we need all these in separate variables. Here's what we would do: my $phone="+381 (21) 123-456";$phone =~ /\+(.+)\ \((.+)\)\ (.+)/;my $country = $1; # $country will contain 381my $area = $2; # $area will contain 21my $num = $3; # $num will contain 123-456Pretty powerfull, huh? This is probably the best thing about regular expressions.. And one more thing you can do with regular expressions is... Substitutions: These are quite simple to master: my $var = "Xisto sucks";$var =~ s/sucks/rules/; # $var now contains "Xisto rules" Other things to note: - If you want to make your search case insensitive, just add an i at the end of the regular expression, eg. m/match/i - If you want to change all instances of a word, add an g at the end of the regular expression, eg. s/to_replace/replacer/g - You can combine i and g, and have s/to_replace/replacer/gi, or s/blank//gi; The last one replaces all occurences of blank, with nothing ("") - =~ means matches = !~ means does not match And voila, you now have sufficient knowledge to make rather powerfull regular expressions, and incorporate them in your PHP scripts, or Perl scripts, or wherever. I hope you found this tutorial usefull. Also, don't hesitate to experiment with regular expressions, because, that's the best way to learn something. And of course, don't hesitate to ask questions, if any of this was unclear...
  24. That location opens on my side too... It's what rvalkass says, your ISP may be late to update their DNS servers... Also, try Ctrl+F5, to clear your cache... I had to do it in my case, because my FF remembered that greeting hosting page on my domain... But reloading a page did the trick...Also, there is no need to be angry with OpaQue... This is a free service afterall, and like it or not, we are able to use it only with his good will, nothing else... I want to commend him, and the entire Xisto staff, for quick and prompt resolution of the problem... I seriousely doubt that any free web host would be this fast with restoring user accounts... Most of the free hosts don't even have backups, so your sites would all be lost... We got our files back, our databases back... Everything intact... Okay, a little but our of date for some, but hey, these things happen, hardware fails, software corrupts... Even on paid hosting, there are no everyday backups, only a weekly, or even monthly...Shree was always prompt with helping us... Also, T17 admins have gone quite out of their way to help members here... This may sound like sucking up to them, but it's not... I have no reason to suck up... And they DO deserve a little praise, don't you think...Seeing how OpaQue was fast to respond to this situation, made me decide finally, to move to Xisto - Web Hosting, and get me a paid hosting with him... Because I know I can rely on his service, and if the problems do arise, I can always count on top tech help... Hel, I've been using T17 for almost 4 years now, I think I've seen all kinds of times here, good and bad... And guee what, I'm sticking by...So, everybody just chill, and have some patience, matters will be resolved quickly, and all who need help will get it...
  25. I too seem to be having this problem, I can't see my site. it's on parked domain http://www.todorowww.net/blog/, and I can't login to my cPanel... I know, it's the password change...Right now, I don't have that amount of credits to spend, to reset my password, and besides, it's not like I want to change the pass, so I don't quite want to give up 10 credits for that...This may just nudge me to switch to Xisto - Web Hosting, for payed hosting, since my real-life duties kind of prevent me from posting all too often...Live chat wasn't any help either, I was wainting for an operator for like a half an hour, and noone appeared, so I closed the live chat... I'll wait some more, and then, if all fails, I'll contact Shree... But I know he has a ton of work cut out for him, and I'm reluctant to bother him just yet... Perhaps he will solve all this automatically...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.