Everything posted by mbabuskov
-
Numbers game countdown
Hello, I created a website with a game which has a problem that needs to be solved in limited time. I'm looking for a best way to implement a JavaScript countdown timer. Here's what I have so far: countdowngames.tv/game/numbers It uses jQuery countdown function I found somewhere on the net that uses .animate() repeatedly. This does work, but feels kind of awkward to use animation timer. My main concern is that this must run on every browser. Is there some better way to do it? Thank you.
-
Starting to look like a website yet...? :)
I would try to create a variant with footprint in the header (and perhaps hand print in footer).
-
Creating a website version for mobile devices
Thanks for all the feedback. I'm doing this for existing website and I want it to be completely usable with mobile devices, so I guess I'll have to go with custom CSS. The main problem is that CSS was not written by hand, but generated using YAML, so it will take a lot of testing and playing with this huge CSS file to get it right. Oh well, at least I learned a valuable lesson for the websites I plan to build in future.
-
Lorem Pixum
Great site. Thanks for sharing. Although, I don't like the "relaxed" attitude towards copyright. It says that "all images are using Creative Commons license" which does not say anything really, because there is no such thing as The Creative Commons License. There are Creative Commons licenses which range from completely free to those only usable for non-commercial use with requirement to display the original author's copyright. IMHO, each image should show the exact CC license used, like CC-SA, CC-BY, etc.
-
Starting to look like a website yet...? :)
Looks good, but you might have a hard time finding a good design for the content; at least for this dark variant. It would be great if you posted the idea or ideas for the design of the inner, content area. Good luck.
-
Creating a website version for mobile devices
One of my websites has about 2% of access from mobile devices (Android, iPhone, iPod Touch, Samsung and Nokia phones) and site is not very user friendly and usable to them - I tried and it requires a lot of zooming and scrolling. So far I have streamlined the content from 3-column layout into 1-column layout and vertical scroll is no longer required unless you zoom in. Website is dedicated to playing DHTML games, so I need to have at least somewhat constrained screen size, i.e. some of divs have fixed width in pixels. Because of this, my main concern is what screen width should I target for those devices? Currently it seems to me that I would have to create multiple versions of website for different screen sizes of each device and this looks like mission impossible. Is there some good way to do this? Thanks, Milan B. CountdownGames.tv
-
Tried Firefox 4?
I just tried it and it's great. This is the first time since 2.0 that there is an actual speed increase that you can feel. Especially on pages with many graphics and flash elements and javascript running. I don't like some of the new defaults for UI, so I configured those to my needs. The only drawback I see so far is that some extensions I use are not yet supported. For example TamperData no longer works, so I have to use Firebug which is a little bit too much for simple tampering and replaying of requests; it's like trying to kill a flea with atomic bomb To conclude: best release so far, and first time I upgraded the same day I tried it. For example, I waited about 2 months after release to switch to 2.0, and about 6 months to switch to 3.0 and later to 3.5 and 3.6. Looks like IE9 and Chrome's speed has finally hit the Mozilla developers and they decided to do something about it.
-
How to exlclude some elements from printing using STYLE attribute
Actually, that's what I knew already. I was looking for a way to place CSS in regular STYLE attribute of any tag, without having to define class. I googled around the Internet, and failed to find the solution, so I guess it is not possible. Looks like I'll have to define the class. Thanks for trying anyway.
-
What's a website worth?
Thanks for all the replies guys. I ended up asking for a 5-year profits, but the buyer wasn't ready to pay as much. He offered only 2-year profits and I decided not to sell it.
-
Best way to create MS Excel files from PHP
While searching for this, I found some stuff on phpclasses website which writes native BIFF format used by Excel XP/2003. I had to modify it a bit to get support for other character sets but it works nice. I had to learn a little bit about BIFF format, there's a great reference by OpenOffice project. I also tried to get UTF-8 support working, but it seems too complex. Thanks.
-
Linux suddenly truncating my files
That it a great idea. I changed it as you wrote and have no problems since. Thanks. Milan B. CountdownGames.tv
-
How to exlclude some elements from printing using STYLE attribute
On one of my pages that users regularly print I have a few elements that need to be removed. Of course I could output "print" version, but CSS has nice support for this issue using @media print inside STYLE tag, or using media="print" in the tag itself: <style> @media print { .hideprint { visibility:hidden } } </style> or <style media="print"> .hideprint { visibility:hidden } </style> Now, the question is, how to do this in STYLE attribute of some other tag? For example: <div style="... what to put here? ...">hide this from printout</div> Thanks.
-
Best way to create MS Excel files from PHP
I need enable the website users to export some data into Microsoft Excel format. I googled around, but most solutions require Windows platform and that MS Office is installed to create the file. The website runs PHP on a Linux server, so I'm looking for PHP-only solution. I'm currently using CSV format (via fputcsv function) and on some Windows machines the browser correctly opens the file with Excel, but it looks like different versions of Excel expect different field separators. I'm trying to find some solution that would work with all versions of MS Office. Thanks.
-
Linux suddenly truncating my files
Hello, I have a website form that allows users to subscribe to a newsletter. I wrote a sample PHP script that uses fopen() to open a log file named /var/log/signup.txt and add the e-mail to the list (and fclose() afterwards). Very simple. This is all on a dedicated server. The system is default installation of CentOS 5.5. Web server is Apache 2, running PHP 5.1.6. It was working fine (I had some 20 e-mails in the list) and this morning I went to /var/log/ and see that signup.txt file is truncated (zero bytes). I suspect this might be to some housekeeping cron job, but don't have a clue where to look. I understand that I lost the data, but how can I prevent this from happening again? Thanks for any ideas.
-
MySQL concurrent inserts and fixed table format
I have a large MySQL table of about 50 million records. The table is heavy with inserts, updates and selects (about 150 per second). I'm considering to change the format from dynamic to fixed(static) to improve performance. The only varchar column is 12 characters, so it shouldn't add much to the size of the table. A few times during the day, a couple of records are deleted from this table. Not much, maybe 10 or 20 records. I read everywhere that MyISAM supports concurrent INSERT and SELECT if there are no deleted rows in middle of the table. I assume this is due to the fragmentation of the table. What I failed to find out is whether the fixed table format is a good workaround if you delete a few records from time to time. As I understand, new inserts would will the gap, and since table format is fixed, the new records would fit the gap completely and there wouldn't be any more fragmentation. Since deletes are rare and only a few records is deleted, I assume the gap would be filled really fast (in a couple of seconds) and I would have concurrent inserts all the time. Do you know of any article, of have a personal experience confirming this? Thanks.
-
What's a website worth?
Recently I was requested a quote from potential buyer for one of my websites. I calculated some stuff like the current revenue stream, operation costs and made some approximate predictions of the future, competitors, etc. I also considered "buy vs build", i.e. what it might cost them to build it on their own. I got to some figure, let's says it's something like 10000 GPB profit per year (costs and taxes already excluded). Now, if website gets you 10000 GPB per year, how much is realistic to ask for. Should I look 5 years ahead? or 10 years, or 20? I thought maybe calculating how much would one get by placing the money in savings account at some bank, but I'm not sure if it's a good idea. What are your thoughts on this? Thanks.
-
Which payment processor for web based services?
Hello, I have a few websites in USA where I sell web based services, i.e. services that are completely virtual and delivered electronically. I'm looking into expanding into UK market. In US, I mostly use PayPal. There are a few glitches here and there but it mostly works fine. As I understand, PayPal is great for US because everyone has an account and everyone uses it often. But in UK and Europe there the story is different (is it). Some people suggested payment via SMS/mobile phones, but as much as comfortable that is, the commission by mobile operators is rather too high for my taste. What would be the best payment method for completely electronic transactions in UK? Thanks.