News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
When You're Hacked in WordPress Staying Safe Later On
February 20, 2015 @ 14:19:00

NetTuts.com has posted the second part in their "When You're Hacked - WordPress" tutorial series today with this new article showing you how to stay safe once you've recovered from the initial attack.

n the first part of this series, we went through what to do when your website gets hacked. In this second part, we're going to learn about staying safe and being able to act quickly when another unpleasant incident happens.

They start by answering the overarching question everyone wants to know about WordPress (as it relates to security) - "is it safe?" They follow this with some recommendations to help keep your install safe including:

  • Staying Up to Date
  • Using Safe Plugins & Themes
  • Using a Security-Related WordPress Plugin

Check out the rest of the article for the full list and a quick summary of each, some with links to the actual tools and plugins to help you protect your installation.

0 comments voice your opinion now!
wordpress hack stay safe tutorial series part2 recommendation

Link: http://code.tutsplus.com/tutorials/when-youre-hacked-in-wordpress-staying-safe-later-on--cms-22748

NetTuts.com:
When You're Hacked in WordPress Dealing With a Hacked WordPress Site
February 19, 2015 @ 10:50:30

On the NetTuts.com site today there's a new tutorial showing you what you can do when your WordPress site is hacked.

One of the worst things that can happen to your website just happened: It's been hacked. Somebody broke into your computer and got passwords, or your passwords were weak, or somebody exploited a security vulnerability caused by WordPress or your hosting provider, or something else happened that let a hacker hack your website...What do we do now? It's not the time to feel sorry for yourself, it's time to take action and bring back your website.

They start with a brief look at how a WordPress site might be hacked, not specific exploits, but topics and types of vulnerabilities. Following this they talk about thier recommended steps to do when the hack is discovered including:

  • Shut It Down NOW!
  • Contact Your Hosting Provider for Details
  • Find Out What Caused It and Take Action
  • Fix and Double-Check Everything and Go Live Again

Each step comes with a summary of the steps inside and even a "checklist" of things to verify before bringing the site back up.

0 comments voice your opinion now!
wordpress hack remediation plan steps recommendation

Link: http://code.tutsplus.com/tutorials/when-youre-hacked-in-wordpress-dealing-with-a-hacked-wordpress-site--cms-22747

Piotr Pasich:
ClassManager - You shall not pass
January 30, 2015 @ 11:42:55

Piotr Pasich has shared some thoughts on naming in his latest post to his site today. In it he talks about one of the "hardest things in computer science" (naming things) and makes some recommendations to help you make naming in your code more effective.

Precise names for classes is notoriously difficult. Done right, it makes code more self-documenting and provides a vocabulary for reasoning about code at a higher level of abstraction. There are a couple simple tips&tricks to make the names more readable: do not abbreviate, do not add any extra informations (underscore, type), avoid single letter prefixes, etc etc.

But what if you already know and use those rules and you still want to improve naming in your code? I assume that you care, you're not selfish and you think about elses when you write the code. You ask one of the most important question to yourself, during architecture implementation - how the fellow sitting next to will behave while reading the code.

He's broken up the remainder of the post into different sections, each with a high level recommendation and some follow up description:

  • Ask somebody else
  • Does it have a single responsibility you can name?
  • Simple Superclass Name
  • Qualified Subclass Name
  • Adding 'Interface' word

He ends with a few names to avoid (like *Manager, *Helper or *Handler) to help prevent ambiguity. He reinforces providing meaning in your naming and making it easier for others to understand what's going on.

0 comments voice your opinion now!
classmanager naming opinion recommendation avoid meaning

Link: http://piotrpasich.com/classmanager-you-shall-not-pass/

SitePoint PHP Blog:
Create a Movie Recommendation App with Prediction.io - Implementation
September 16, 2014 @ 10:54:16

The SitePoint PHP blog continues their series about creating a movie prediction engine with Prediction.io in this second part focusing on implementation. In the first part of the series they set up the server and configuration to make the jump into the code. This second part gets more into the application side and features working code linking the prediction engine with the TheMovieDB API.

He jumps right into the code, showing how to:

  • Fetch the data from the TMDB (via Flight and Guzzle)
  • Populate the data back into the Prediction.io database
  • Picking a random movie from the list (and outputting it to a page)
  • Get movies the engine predicts as recommendations

The recommendations are based on ratings on other movies in the database with most of that logic happening behind the scenes instead of in the PHP script. The results are then output to the page along with the other movie data.

0 comments voice your opinion now!
movie recommendation predictionio server tutorial api implementation

Link: http://www.sitepoint.com/create-movie-recommendation-app-prediction-io-implementation/

SitePoint PHP Blog:
Create a Movie Recommendation App with Prediction.io - Setup
September 15, 2014 @ 09:47:24

On the SitePoint PHP blog today Wern Ancheta has posted the first part of a series about creating a recommendation engine with the help of PHP and a system called Prediction IO.

In this tutorial, I'm going to walk you through Prediction IO, an open-source machine learning server. It allows you to create applications that could do the following: recommend items (e.g. movies, products, food), predict user behavior, identify item similarity and rank items. You can pretty much build any machine learning application with ease using Prediction IO. You don't have to deal with numbers and algorithms and you can just concentrate on building the app itself.

He walks you through the download and install of the Prediction IO software, how to start up the server and how to access its web interface. He shows you how to create an "engine" that will be used to make the recommendations and some of the settings allowing you to tailor it to your needs. The script will hook into The Movie DB API for content. He starts in on the PHP packages that will be needed to make the API connection and recommendations, but the actual code will come in a later article.

0 comments voice your opinion now!
movie recommendation predictionio server tutorial api movie

Link: http://www.sitepoint.com/create-movie-recommendation-app-prediction-io-setup/

Snipe.net:
Why You Should Stop Stalling and Start Presenting
June 13, 2014 @ 11:47:01

In her latest post Snipe does her best to motivate those out there that have thought about speaking or presenting at a technology conference but are "stalling" and finding excuses not to. The post pulls from some of her own past experiences as a speaker in various communities, PHP and otherwise.

My last post generated a bit of buzz when it was posted to HackerNews recently, so I figured I'd take this opportunity to reiterate something I've been saying on Twitter for a while now. If you have never presented a conference before, make this the year you change that.

She breaks the rest of the post up into different reasons to stop making excuses and just do it:

  • It is an incredible experience that makes you better at other things
  • You will meet great people and learn about their experiences
  • Even if you suck the first time, it really is okay, even if it doesn't feel like it at the time
  • It's great for your career
  • If you are part of an underrepresented minority, your peers need to see you on that stage
  • Your audience is actually far more forgiving than you imagine
  • You're smarter than you think. Things that are obvious to you are not obvious to everyone else
  • It feels really fucking awesome talking about stuff you care about

She also shares a few panic-aversion tactics she's worked up over the years including starting small, working with "power poses" and a reminder to use the "presenter view" feature in your presentation software of choice.

0 comments voice your opinion now!
presentation conference speaking experience opinion recommendation

Link: http://www.snipe.net/2014/06/why-you-should-stop-stalling-and-start-presenting/

Frank de Jonge:
A Case Against Coding Lingo
May 28, 2014 @ 10:54:14

In this new post to Medium Frank de Jonge talks about one of the infamous "two things hard about programming", namely...well, naming things.

The other day I had a small discussion on one of my open-source projects, in this case Flysystem. It was about the smallest thing ever, the name of a method. A method name that was suggested to replace another method name just didn't feel right to me. It made me wonder why. I came to the conclusion: Using lingo in code should be avoided.

He elaborates a bit on what he means by "coding lingo" and a few general things to think about when naming your methods, variables, etc. His reminders include:

  • Going for clarity
  • Remembering that not everyone is English
  • That it can be excluding
  • It can be limiting

He reminds us that naming doesn't have to be "cool", it just needs to be useful and a developer-focused kind of documentation. He recommends using common names/terms for things, being concrete and avoiding abbreviation. There's a few other recommendations in the post too, so check out the full article for more.

0 comments voice your opinion now!
coding lingo naming convention opinion recommendation

Link: https://medium.com/@frankdejonge/8ffae1a4fa4e

Stefan Koopmanschap:
Want to Be More Productive? Work Less!
May 22, 2014 @ 10:02:08

Stefan Koopmanschap has a recommendation for all of the developers (really, anyone) out there about their work habits - want to be more productive? Work less.

There are many people (myself included for a long time) that will work more and more when they have more stress. Whether it's a deadline or simply too much work on your hands, you just start working longer, open your laptop when at home just to finish that one feature, skip lunch or ignore your RSI-breaks. While this may sometimes work, in the long run, this will only make you less productive.

He talks about a few things that can come with "more work" that can make you less productive in the long run. He includes a few recommendations to help "take back that productivity" including:

  • Take breaks
  • Take regular days off
  • Holidays are good
  • Don't always work from the office
  • Do "fun" work

He also points out that a lot of your level of productivity revolves around stress and how even just changing small things like where you're working from can make a real difference.

0 comments voice your opinion now!
productivity less stress opinion recommendation breaks

Link: http://leftontheweb.com/blog/2014/05/21/Want_To_Be_More_Productive_Work_Less

SitePoint PHP Blog:
How to Speed Up Your App's API Consumption
April 11, 2014 @ 10:51:23

The SitePoint PHP blog has some advice posted today from Jacek Barecki about how you can speed up your use of other APIs with a few performance increasing tips.

In the process of creating a PHP application you may come to a point when keeping it isolated from remote resources or services may become a barrier in its development. To move along with the project you may employ different API services to fetch remote data, connect with user accounts on other websites or transform resources shared by your application. [...] But using APIs in an incorrect way can quickly lead to performance issues and lengthen the execution time of your script. If you're looking for a way to avoid it, consider implementing some of the solutions described in the article.

He recommends four things you can think about doing to help make the most effective use of these services:

  • Make multiple requests at a time
  • Separate API calls from the app main flow
  • Build a smart cache engine
  • Master the API documentation
0 comments voice your opinion now!
api performance recommendation tips usage

Link: http://www.sitepoint.com/speed-apps-api-consumption/

Erika Heidi Reinaldo:
Advices and resources for PHP novices
September 11, 2013 @ 09:59:01

Erika Heidi Reinaldo has made a post over on her Coderwall page with a few helpful hints for the budding PHP developers out there about things to investigate and learn to help further their knowledge of the language.

This post is a collection of things that I consider important for people who are starting with PHP, based on my experiences with this language through the years. PHP has considerable evolved in the last years, thanks mainly to the community efforts. [...] As a downside for the language evolution, as things change, tutorials and practices might get deprecated. So we have a lack of good updated tutorials for beginners.

She includes some great things for new developers to look into including a recommendation to "learn the language, not a framework" and exploring git and Github as a collaborative workspace to both share your own work and explore the work of others for helpful hints. She also makes a recommendation that can help more than most developer think - get involved (contribute to projects or meet with other developers, online or at something like a user group).

0 comments voice your opinion now!
advice resource beginner developer language recommendation

Link: https://coderwall.com/p/0ictea


Community Events

Don't see your event here?
Let us know!


symfony2 php7 conference install performance language interview series framework example community opinion podcast introduction api release configure laravel part2 application

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework