-
Content Count
2,482 -
Joined
-
Last visited
Everything posted by miCRoSCoPiC^eaRthLinG
-
See both of them work almost equally fast. You won't be able to tell the difference between an image being rendered from blob and one that's being loaded from a file. But I tend to prefer the former - i.e. BLOB. It is much easier to handle data & organize them better this way - or so I believe. The file-location based approach works fine too - but I don't really like the idea of having a bunch of scattered files with the database containing their paths. Some of the files can go missing and then all hell breaks loose. In the blob approach, either you whole database crashes due to some freakish reason - or you always have your pictures handy. If you maintain and optimize your tables from time to time then the blob approach is much better I think.
-
Ok here goes - there are two approaches. The first one is a little easier but lame which happens to be with control arrays. I guess you know the basic idea of control arrays - you simply copy-paste a single textbox 11 times and they will be put into a virtual array where you can refer to each textbox using its array index. Now all the textboxes (rather most of the vb controls) have an associated event called LostFocus (along with another one named GotFocus). You need to create a skeleton procedure with the lostfocus event. Whenever the cursor leaves a textbox it'll jump to this routine. But here comes the lame part. Supposing all your textboxes have different validation routines for different types of data. You got to manually check each textbox everyone one of them looses focus and enable/disable the button accordingly. With a few textboxes this is fine - but in a screen with a large number of boxes - imagine the amount of cpu cycle this eats up.. on slower systems, you'll notice the a considerable lag before the button is enabled. But unfortunately in vb6 this is the only way to do it - since it doesn't support OOP. However, if you're using vb.net - then the solution can be far more elegant. You can, infact, derive a subclass from the textbox control and attach a validation routine to it inside the class. This way - whenever you try to leave a textbox and the data is incorrect, the cursor is immediately placed back into the textbox with the gotfocus event. Additionaly - you can keep a counter which increases/decreases by 1 whenever a textbox is validated or has invalid data. After lostfocus, you can throw an event which then checks this counter - say if it stands at 11, then the button is enabled else - it remains disabled. I dunno if I could clearly explain - but if you need examples, I'll be happy to provide for both of them. I'd rather go for the second one, but your project might limit you to vb6. In that case solution 1 is the only way to go. Regards, m^e P.S. - about OK/Apply buttons - you'll notice that the button is enabled as soon as some data is changed in one of the fields. it really doesn't check whether the data is valid or not. Validation is done only after you press OK. That way the validation cycle happens ONLY ONCE when you press the button and not EVERYTIME the textboxes loose focus.
-
Fedora Core 4: A New User's First Impressions
miCRoSCoPiC^eaRthLinG replied to QBRADQ's topic in Websites and Web Designing
I faced the same problem of Kernel Panic with SATA drives at my home recently - although it had installed all fine on my office comp. Anyone with solutions ?? It's not corrupt CD for sure.A word about downloads - don't ever try downloading from the main Redhat Archives - it'll take yearssssss. Their servers are extremely overloaded and very slow. I invariably always go for mirrors. I can't recall which one, right now - but there are a couple of university hosted mirrors. Those are the fastest ones around the block. -
I have the solution for you - infact I've done the exact same thing with more than 15 textfields in a screen and a save/update button - which gets enabled only when all fields are validated properly. But you gotta gimme time till tomorrow morn. It's 2am here and am almost dozing off on my keyboard. So just hold your breath for another 7-8hours :DRegards,m^e
-
New Irc Channel For This Board
miCRoSCoPiC^eaRthLinG replied to miCRoSCoPiC^eaRthLinG's topic in Websites and Web Designing
That's what we need in the channel - PEOPLE We need people to join us there regularly and have some fun -
I've seen that before and as far as I know - all the ^M-s represent the CR-LF combination of DOS. In DOS/Windows, a line is terminated by Carriage Return (CR) and Line Feed (LF) - whereas in *NIX platforms, a CR is enough to bring the cursor to the next line. I think it's this discrepancy that renders the CR-LF combination as a ^M in gedit/vim etc. You can safely remove them. Simply do a mass search and replace and replace the ^M with a space. that'll be easier than deleting them from the end of each line manually.Regards,m^e
-
New Irc Channel For This Board
miCRoSCoPiC^eaRthLinG replied to miCRoSCoPiC^eaRthLinG's topic in Websites and Web Designing
IRC ports range from 6667 - 7002. So try any of them if you can't connect to one. Also try out the various DALNet servers that there are. You'll get the whole list precompiled in mIRC. -
Gmail: Simply The Best Comparations make it clear
miCRoSCoPiC^eaRthLinG replied to herenvardo's topic in General Discussion
Hey wait a sec.. who said you can't block spam ? Gmail's got an awesome spam filter that's active round the clock. Till date I haven't received a single spam.. first of all I hardly get spam in this service - most are weeded out before they reach your inbox.. and the one that manage to slip through are caught by the spam filter in the webmail interface diverting them straight to your spam box. I haven't had to manually configure a single filter. Only once I think I had a spam mail, which I very conveniently marked as spam using the button right on top and that's it - have been at peace ever since.You should start marking your spam mails using the Mark Spam button.. it's right on top of your message list - and also on top of your message view. -
Interesting Dream Most fun I had in years
miCRoSCoPiC^eaRthLinG replied to cyborgxxi's topic in General Discussion
Dude.. only one question - What were you ON? Seems like some really powerful entheogenic Now, that's what I call Vivid Dreamz. -
World's First 3d Display Revealed
miCRoSCoPiC^eaRthLinG replied to cyph3r's topic in Science and Technology
Awesome.. and would you believe that just yesterday I saw some megasized posters of the flat wall-hanging tvs and kept thinking to myself - when the hell will we have holographic tvs where images pop out of the screen... and there you are BTW - this is what the company's website says as of now: So either someone brought their site down or it truly their server popped due to excessive load. If this was posted on Slashdot, it would presumably result in such a thing. -
Evolution Or God... How were we created?
miCRoSCoPiC^eaRthLinG replied to Nemisis's topic in Science and Technology
Going a little off-topic here but kinda related. There seems to be a massive misconception that Giraffes grew long neck through evolution and similarly other much-needed features developed in other animals as per need. Let me remind you this wasn't the case at all. This is where a big part of darwins theory - Natural Selection and Survival of the Fittest comes into play. Lets take up the case of giraffes for example. They didn't sprout long-necks coz they wanted to reach up to the juicy leaves high up on trees. DNA's the root of all evil here For any given animal/plant species, you get an amazing variation in the gene pool - even for closely related offsprings. What happened in essence was, that there were say, hundreds of different types of giraffes - some with long necks, some short and some in between. The ones with longer necks and feet were always at an advantage - better food, better pace.. thus this particular breed survived better than the rest, both in forraging and eluding predators. The other shorter breeds gradually died out coz they couldn't cope up with the changing environment. While this presents an elitist viewpoint - this infact, is the most logical explanation amongst all. If you apply Occam's Razor to the theories of evolution - this shines outright as the simplest and most plausible one. Nature always picks out the best it can find from the gene pools so that only the best genes are passed down to the future generations - that way, they always stand a better chance of survival and not become extinct. After all, mama nature wants her children to be hale and hearty and ever playful in her lap. I do believe in God - or at least in some supreme power - but I also do believe in evolution. The idea of Adam being created out of thin air and then Eve being born out of his rib is err.. excuse me - but hardcore *BLEEP*. If that was the case - we'd see women being born the same way till date. (Although this presents a very interesting idea - CLONING.. but how can you clone a man and give birth to a woman instead ?? Unless you did some massive genetic reengineering, which we're incapable of even today, with our limited knowledge.. so please.. a couple of million years ago ??? OH PHULEEZZZ) What I think is that dear God, just provided us with that primordial soup of life and sparked off reaction that gave birth to the first live ever on planet earth. From then on - it was all rest and rest and rest for him.. r maybe he got busy with any of the umpteenthybillion planets in our universe. But anyways, he let mother nature and the sun of evolution take course since then. He just built the basic stage and sat back to watch the fun. More later .. m^e -
Online File Editting In Group looking for one
miCRoSCoPiC^eaRthLinG replied to moonwitch1405241479's topic in Software
Why not use MediaWiki - the same one that WikiPedia uses ?? Except the changes won't be permanent till the admin approves them - but still the new additions are visible immediately after someone submits them. It's specifically cut out for document editing jobs like this with a CVS system thrown in. -
10 Funny Quotes From Irc A short list of funny quotes.
miCRoSCoPiC^eaRthLinG replied to darkranger's topic in Software
Hahahahahahaa... rofl.. awesome man.. thanks for sharing those.. reminds me of good old irc days.. had a good laugh reading through 'em.. do you have any more ?? -
It's not called Audioscrobbler anymore. I mean - it uses the same plugin and all behind the screens, but the site and service has been renamed to Last.Fm and can be accessed at http://www.last.fm/ Infact if you try to reach the audioscrobbler site you'll be redirected to this one instead. All your old logins still work and any posts you might have made in their groups/bulletin boards are still there. The interface has undergone a massive upliftment. Top Charts/Artists etc. - those lists look a hell lot better. The new color scheme stands out really well.
-
Hahaha.,... rofl.. good one dude.. damned good one - although it trails off a bit from time to time - but nevertheless, it's back with a banger right next
-
I'm sorry - according to our TOS that is not permitted. Even if you open up a aseparate account and accumulate enough posts - we can allot you only one hosting account. That holds true for both Xisto and Xisto, i.e. if you own a hosting account at either of these you cannot apply for a new one at the other one. this step is taken to ensure that all our members get an even chance to own a hosting account as well as get a decent share of hosting resources. Of course you can go ahead and apply for another account using a different nick & email address. It might even get approved - but if caught, you'll end up loosing all the hosting accounts you've managed to open up So I say, it's not worth it... Regards, m^e
-
Space Exploration (nasa= Good/bad)
miCRoSCoPiC^eaRthLinG replied to wua05's topic in Science and Technology
Going off topic here - so we have an IITian amongst us Terrific man. Welcome aboard Hope you can lure some of your superbrainy IT classmates into joining our ship That'd be an awesome help. Regards, m^e -
See ideally you needn't worry about importing this data directly into your new copy of SMF. If both the versions on your two hosts are identical then table structures will also be 100% same. in that case - the DROP TABLE IF EXISTS followed by CREATE TABLE will just recreate your blank tables and then populate them with the data from your older board. However problems arise - when you already have a couple of posts in your new board... The new posts will be indexed with say for example 1...2...3...4...etc. whereas the posts in your old board will also start with indexes of 1..2..3..etc . When you try to import this data into the new board - there will be a clash of primary key indexes and phpMyAdmin most likely will refuse to import the data due to Duplicate Primary Keys. I'd advice you to start off with a clean copy of SMF and simply import the old data into it and then carry on with new posts. As I said, it wouldn't matter if your new SMF has already created the tables - as long as both the versions are same.The paths of the board on either host is irrelevant here - coz the path is not related to your mysql db. As long as SMF knows which database to store it's data in, it's all fine - and that data as far as I remember is stored in a separate config.php file, which wouldn't come in the way of your data importing in any way. All the best
-
Google Earth New from Google since buying Keyhole
miCRoSCoPiC^eaRthLinG replied to saxsux's topic in Search Engines
Old thread - already posted several times over. Topic closed. -
Usually when you take a db dump with mysqldump it writes out the database and table structures as well. Now SMF uses just one database with multiple tables - right ? So once you get the dump file, simply remove the CREATE DATABASE smfdb syntax found in the top few lines. Next install SMF on asta - that'll create the required table structures. Now simply import your dump using phpMyAdmin and that should do the trick. Usually, all CREATE TABLE syntaxes created by mysqldump also includes the DROP & IF EXISTS clauses, which means, if your table is found to exist, it is dropped and a new table is created and populated with data. This won't affect you adversely in any way as your SMF tables will be blank anyways. The above process should create a mirror copy of the mysql tables on your earlier host. Regards, m^e
-
Since you brought up the subject of Fractals - you guys should give Fractint a try too. This is the first ever Fractal generator that came out - for DOS. It's still very much in development - it's fast and immensely configurable. With minor modification of certain parameters you can generate breathtaking variations of some common fractals. I've had it since 1994 I think. It's amazing what they came up for DOS based systems with such minimal support for graphics - in those days. A MUST TRY !! Here's the link: https://fractint.org/ Source code is also available at their site.
-
Hahhaa.. yeah that extreme zoom was an awesome easter egg. Cheese all the way... Who's gonna care about romanticising about the moon anymore?? Yummmeehh..