There are times when it’s really useful for a webpage to scroll up and down automatically. For instance when showing information on a TV screen you may not want to scroll manually. Using jQuery its possible to have the page automatically scroll down at a set speed then scroll back to the top and repeat.
When working with forms, to submit them input type=’submit’ or button type=’submit’ are used but in cases when it’s better suited to submit the form with a regular ahref link, this technique can be used.
Today Github has announced private repo’s are now unlimited for upgraded accounts, for organisations the starter package was 10 private repos for $25 a month, this has been upgraded to $9 a month after the first 5 users still at $25 a month but with unlimited repo’s.
Personal accounts also have unlimited repo’s but $7 a month, whilst there are services like bitbucket that offer free private repo’s I’ve never taken to them in the same way I do with Github. Personally I prefer the Github so this is really good news!
Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositories which is great when working with a team, I’ve recently started using Gitlab for a private project, where I need to download private repositories to the project server and extract their contents.
I have a folder of csv files that need uploading to a server I don’t want to do it manually, Bash can handle this task perfectly.
This script will connect to an FTP server then loop through the csv files or any type specified and upload them. You cannot do a loop whilst inside of heredoc block like most examples do, instead the commands are written to a txt file.
I’m really happy to announce version 3.0 has been released of Nova Framework, (Nova is the new name, replacing Simple MVC Framework). The main focus of 3.0 was to place files above the document root.
This meant restructering the folders and there paths, normally assets such as css, js files and images are placed in the public folder so they can be ran normally, we went futher and placed everything except .htaccess and index.php above the root including all images, css and js files!.
This change results in a lot of other changes, documented in the docs and will be covered in future screencasts, here is the overall summary of the changes:
PHP UK Conference is next week, I went last year, had an amazing time and learn’t a lot the main takeaway’s was upgrading all my servers to PHP 5.6 and to use PSR (PHP Standard Recomendations) before then I wasn’t using or even really knew what PSR was! I work in a ultra small team, since then I’ve tried to keep upto date.
HTML 5 has some great API’s one of which is the notifications api which lets you set browser notifications to the end user, outside of the website scope so they can be issued when the user switches to another tab or application.
When working with forms there are often times it would be really handy to be able to submit the form and depending on the button clicked changed the form action the data is posted to. Normally this has not been possible so we find workarounds.
I recently found the need for this again and come across a HTML attribute called formaction which is amazing for this! This attribute allows you to specify the url to post to which when pressed will override the form action attribute.