Reputation Activity
-
Sogo7 got a reaction from gregmurkett in Web Developer - Currently in Sixth Form, advice?Focusing on the present Greg it sounds like you need to get your head into a maths book either in your own time or at the expense of another subject and your ass booked onto a seat for the maths exam. If the school will not assist then then evening classes at the local college is another option. Subjects such as AS geography, product design and business studies are going to require you understand some complex arithmetic in order to pass. Wed development is also going to focus heavily on advanced stuff like algebra and boolean logic. Maths is also what employers call a transferable skill and will be one of the most important items that should be on your CV.
Website or product design for that matter is not just about drawing pretty pictures, it's about creating something that 'does stuff'. In the case of a functional product be it a Stiletto heeled shoe or a toaster oven a way is required to make sense of the engineering forces involved and properties of the material its being built from and that means maths... lots of it!
-
Sogo7 got a reaction from craigpettit in php captchaNot a bad mail script on the whole, you would not believe how many do not sanitise that email field to prevent injection attacks.
Tip#
The GD library can use custom fonts (.ttf) and unusual ones in particular can play havoc with true spam bots pattern recognition scripts, humans paid to solve captcha's just find them more annoying.
-
Sogo7 got a reaction from Renaissance-Design in Are you a member on any other big forum?A few hours honest toil working up a sweat gave me much pleasure and things cleared up nicely.
-
Sogo7 got a reaction from neil0wen in Help with PHP form please!$badwords = array("adult", "xxx", "viagra", "phentermine", "tramadol", "adipex", "advai", "alprazolam", "ambien", "ambian", "amoxicillin", "antivert", "blackjack", "backgammon", "texas", "holdem", "poker", "carisoprodol", "ciara", "ciprofloxacin", "debt", "dating", "porn", "link=", "voyeur" , "seminar","SEO","content-type", "bcc:", "cc:", "document.cookie", "onclick", "onload", "javascript","x-x","<a","http","[","href"); foreach ($badwords as $word) if (strpos($_POST['word'], $word) !== false) $points += 1; if ($points>3){ /// Probably a spammer so do something /// echo a message or redirect to another page /// anything except let the rest of the script send the email }
Are you sure you would not like a complete ready made email script?
-
Sogo7 got a reaction from Hem in Would like to add some image effects - not quite sure how though!Find this line
<script src="jquery.min.js"></script>
and replace with this one
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
That will hook the page up to the jQuery library hosted by Google
-
Sogo7 got a reaction from steveking in What are you working on - Sneak Peek?Here is a little something I did over the weekend, not much to look at from a design point of view
and still needs shed loads of work but there may be parts of it that will inspire others. It's based
on the Skeleton boilerplate and have just finished the menu system for this rough template with
a Sci-Fi twist.
Demo
PS: turn your speakers on, or grab your headphones
-
Sogo7 got a reaction from Charlie in Caching YouTube video list to decrease load time?Looks like the YouTube api getting stuck at their end ,
try changing lines 42 to 45 from
$data = file_get_contents("http://gdata.youtube.com/feeds/api/playlists/C82EBDAC0429B6A2?orderby=published&max-results=12"); $fh = fopen($cachefile, 'w') or die("can't open file"); fwrite($fh, $data); fclose($fh);
to this
$data = @file_get_contents("http://gdata.youtube.com/feeds/api/playlists/C82EBDAC0429B6A2?orderby=published&max-results=12"); if ($data){ $fh = fopen($cachefile, 'w') or die("can't open file"); fwrite($fh, $data); fclose($fh);}
Whats changed..
the @ symbol will suppress the file_get_contents command from generating an error if YouTube cannot provide an answer to its request, script carries on with no information in the $data variable
an IF statement around the code that writes the new $data to the server, so now only if the file_get_contents has worked and there is something in the $data variable does it write a new cache.
That should keep it from misbehaving.
-
Sogo7 reacted to Renaissance-Design in Is Googles golden days behind it now?It's only in black hat that the goalposts are changing. If you want to advise clients, get them to invest in good copywriting so their content is something people will want to link to. It's a lot easier to build links to something that's worth reading.
With white hat SEO the goalposts haven't shifted an inch: Google wants to surface good content, so make your content good.
-
Sogo7 got a reaction from Harman in Please review my website!Nicely done and above all very useful for many people.
Somebody has allready mentioned about custom fonts and that will keep you busy for hours,
however do remember if you plan to have adverts on the site at a later date then you must use
a font that has been licensed for commercial use.
An onsite contact form would be a nice addition and will help keep them spam out of your inbox.
looks odd to English speakers try this instead... "every password you get is unique"
-
Sogo7 got a reaction from Pete Prosper in Javascript onclick issue<img id="loadingImage" src="<?php echo $image ?>" style="visibility:hidden"/>
You're missing the echo command that puts the php variable into the HTML
-
Sogo7 got a reaction from Renaissance-Design in Which Processor do you use?Processor core and Operating System preferences aside for a moment the one item worth considering for a bespoke construction or re-build has to be a Solid State Drive or SSD.
-
Sogo7 got a reaction from Renaissance-Design in Converting animated .gif to HTML5?Ahh.. I see the problem. The gif image looks 'choppy' because there are only 15 frames. Flash of course works out the inbetween frames hence the more fluid look.
The individual finger elements could drawn and moved purely with code using canvas but at a guess that could be a messy block of code.
An old school alternative method would be compile the SWF as a FLV then step through every frame using something like the VLC media player taking a screenshot then build the animated gif that way one frame at a time.
Used the above method to build this animated gif a while back,
its 34 frames copied, cropped from a Youtube video.
-
Sogo7 got a reaction from DigitalSquid in the cost?Depends what you mean by 'active'... and what kind of website ?
A forum with 150 members making thousands of posts per day can be run happily for nothing using a free web hosting provider. Though for better reliability you need a professional web host and these are normally between $5 to $10 a month.
By contrast a suite of chatrooms with 150 users contantly posting every minute of the day like you can find over at chess.com is going to require at least one dedicated server or Virtual Private server. Package deals for this kind of setup vary but $50/month/each is an average starting figure.
-
Sogo7 got a reaction from Renaissance-Design in Self-Promoting @ Ground Zero a hopeless climb ?I've oft been quoted about saying that Websites are both designed and built so anybody who is just good at art had better abandon all hope of freelancing as a site designer just yet. Until you are competant both in front and behind the screen what you are doing should be considered as a hobby.
<!-- end std hope crushing speech>
Freelancing also requires a third skillset, 'Personality'. After all you are selling yourself not just your talents. Some projects last months, good ones can go on for years so you have to be easy to get along with to some extent for when communication stops things go wrong.
If you got into computers because you don't do people then you're up sh#t creek without a paddle because 90% of freelancing is about putting your smiling face physically into a room with a complete stranger showing them your portflio then asking them for money.
This sadly also means acclimatising ones self to daylight as most potential clients operate during this period. The regular application of soap, wearing a proper shirt, trousers, shoes and necktie if you can manage it without looking like you've been garroted should also become second nature. The ability to speak to strangers with confidence should also be developed, having a list of clients FAQ's burned into your cortex helps tremendously* Avoid using speech fillers such as 'Ummm' and for the love of whatever gods you pray to.. never promise miracles or stuff you've never coded before.
Getting that ground-zero client.. use goolge-> find every business within ten miles of where you are-> ignore the ones with an up to date or half decent website => physically go visit the remaining with your business card, some printed portfolio material & laptop if you have one. Don't ask to see somebody in the IT dept.. the head you need to turn will be in charge of Sales. Business 101 they are in it for the money and a shiny new online shop may equal more customers. Hardcopy printouts of designs & mockups also tends to work better for those with no existing website from past expereience. Restaurants in particular make good targets.
Know thy enemies. Strangely enough its not the local competition you need to worry about undercutting or providing a better service than. It's the swine who run glossy ads on TV and folk like British Telecom in the UK http://www.websites.bt.com/
*
How is your design going to help my business?
What happens if I want the layout changed at a later date?
Can you tell me about your design process?
Do you provide product photography services?
If the site is not ready by the deadline what discount can I expect?
What type of communication can I expect during construction?
How can I track how effective my website is?
Will I be able to update/add stuff to parts of this website myself?
What happens if you are not available?
Can you set up the domain registration & web hosting for us?
What is wrong with with flashing green & red text?
Are you able to sabotage our competitors website?
Am sure the regulars here could add some more gems to this list.
-
Sogo7 reacted to Jay Gilford in Is my form being spammed?hehe well client side you should have to change very little, but you'll need to basically replicate your checking php side and add errors client side accordingly. As for the cleaning data - well that can also apply to your contact form depending on how it's set up. For example, check this out
http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/
It may not apply to your form, but it's worth a read for any future contact forms
-
Sogo7 got a reaction from MikeChipshop in IE7 Compatibility - Just say NoFed up with IE7 issues Kogan.com an Austrailian reltailer has announced it will tax
any user making a purchase using the much loathed IE version.
full story over at BBC
-
Sogo7 got a reaction from johnharrison in Script to automatically embed latest YouTube video?That's odd... remember to you have to tell youtube to allow embedding by others apart from that it should work fine.
I've created a fresh clone for you http://pipes.yahoo.com/pipes/pipe.info?_id=dacb753dcbd3f1076e0a254bd626ce9d
Will watch this thread, if you have any problems let us know your Youtube ID for the RSS feed and I'll take another look.
-
Sogo7 got a reaction from Renaissance-Design in Need a enter postcode to see if we are in your area option, please help!For those that want to take a stab at this here's the SQL for lat/long/postcode radius search.
SELECT * , 6371.04 * acos( cos( pi( ) /2 - radians( 90 - Latitude) ) * cos( pi( ) /2 - radians( 90 - '$latitude' ) ) * cos( radians( Longitude) - radians( '$longitude' ) ) + sin( pi( ) /2 - radians( 90 - Latitude) ) * sin( pi( ) /2 - radians( 90 - '$latitude' ) ) ) AS Distance FROM MyLocations WHERE ( 6371.04 * acos( cos( pi( ) /2 - radians( 90 - Latitude) ) * cos( pi( ) /2 - radians( 90 - '$latitude' ) ) * cos( radians( Longitude) - radians( '$longitude' ) ) + sin( pi( ) /2 - radians( 90 - Latitude) ) * sin( pi( ) /2 - radians( 90 - '$latitude' ) ) ) <1 ) GROUP BY one_id HAVING dist < '$radius' ORDER BY Distance LIMIT 0 , $numberOfResults
MyLocations = The table with your locations
Fields:
id
Name
Latitude
Longitude
$longitude = The longitude
$latitude = The latitude
$radius = The radius in kilometers
$numberOfResults = The maximum number of results you want
Attached is a database import/export file (you will need to change the file extension back from to txt to sql) for all 3000+ UK postcodes with all the info you could ever want (postcode`, `eastings`, `northings`, `latitude`, `longitude`, `town`, `county`)
Tip# if the site is performing a lot of radius lookups then you want to look at saving any results the sql spits out into a lookup table so you are not ever working out the same problem twice. You could even create a complete table of pre-computed results, this makes for a way larger table but the search query is simpler and faster.
uk_postcode_master2.txt
-
Sogo7 got a reaction from Tinker in free photosTry morguefile.com, don't let the name confuse you it's nothing to do with bodies lol.
Professional photographers and artists use the term 'morguefile' for unfinshed or unwanted material. Plus all material onsite is free for commercial use, free to download and high resolution.
-
Sogo7 got a reaction from teodora in If I ruled HellA special place in hell would be reseved for..
People who use apostrophes in URLs
Clients who insist upon miracles
and the order picker from Tesco who thought that
decaf was a good substitute for my regular coffee.
-
Sogo7 reacted to Renaissance-Design in does anyone know of a better way...Use cURL to fetch the page and regex to find a lost of porn-related stopwords in the page content. Fairly easy to process on submission.
-
Sogo7 got a reaction from DigitalSquid in Conflict of InterestBeing purely mercenary about the situation... what conflict?
SEO is like a game of poker, there are rules, some underlying math
but ultimately it's still a gamble.
Clients should be fully aware that any expenditure on SEO
does not come with guaranteed results. If they believe different
then sit then down and explain the nuances and charge an hourly
rate for doing so.
-
Sogo7 got a reaction from OneGoodMan in Unresponsive and long crone job can kill your websiteThe biggest problem with retrieving dynamic content from external websites is that the structure of the target may change and breaks all your regex. It's not really the cron timers fault but the script being called by cron is where the error log will point.
Behind the scenes of my little job hunting project a similiar process takes place with a cron job banging away at a fetch_data script and the output is stored in the database.
When a results page is initially loaded the stored content is shown but an AJAX call also fires the same fetch_data script and when that comes back with the most recent data a few seconds later this gets swapped into the page for the human visitor to see (& database gets updated).
If googlebot runs over the site a server side trip goes off and calls the same fetch_data script. We then decide if the bot gets fed the existing stored content or is forced to wait for the new data thus controlling what google percieves as the loading time.
That all may seem a lot of messing about to display dynamic content but has several advantages;
1.Visitor is happy because they had something to look at while waiting.
2.Google is happy because it finds almost fresh new content & a quick load time.
3.If the cron job or fetch_data script ever fail the site would still function for visitors by showing the last lot of information.
-
Sogo7 got a reaction from joel1st in Web filter search.Web scraping projects like this are seldom small or simple for that matter but the basic principles are to be found in several tutorials across the Internet thanks to Google.
Nearly all webmasters loathe harvesters with a passion and sometimes even getting the raw data is a challenge in itself if they have defences in place. There's no point in going into details as this would spoil the joy of learning for yourself. Anyhow with a bit of luck you can get your hands on the information, after that comes the challenge of extracting what you want using regex commands.
-
Sogo7 reacted to paulb in trading address?Hi Emac
Companies have to list certain pieces of information.
The law firm Pinsents Masons offer a really good website outlining some basic guidance.
http://www.out-law.com/page-7594
Paul