Five years ago, in 2010, 3G internet speeds were able to deal with most websites quite adequately. However, the average web page doubled in size from 2010 to 2012. By 2013, the average page size was up a further 30%.
The capacity of 3G isn't increasing but the average page size of the top websites is growing exponentially.
Fun fact, CSS's color property doesn't just specify text color, but is rather a declaration of the foreground color, which includes things like border, bullet, and alt text color.
See item #1 here: http://www.sitepoint.com/12-little-known-css-facts/
I think you're forgetting history here. I haven't revised anything.
He's remembered as peak Ronaldo in 02 because of this world cup, before it happened he wasn't in any great shakes. Check out the qualification, its very similar to Argentina's this year. But i assure you, Brazil were absolutely not the pre-tournament favourites. France and Argentina were.
Proof:
http://www.sitepoint.com/forums/showthread.php?59285-World-Cup-2002-latest-odds-whos-gonna-win
>You have constructed a straw man and, successfully, defended yourself from its attack.
Meh, I'd say he's pretty close to the mark with javascript. it trys to take the best guess and just run with it.
Forgot a semicolon? no problem Accidentally used = instead of ==? Well you obviously wanted an assignment there. Tried to compare a string to an int? Well you obviously wanted that string to be parsed and compared to that int Even true and false get turned into 'truthy' and 'falsey'
It gives people (especially novices) incredible power to make things happen concisely, and without worrying about syntax that much, but it can lead to some really wacky counter-intuitive stuff in complex programs.
> Now I have some free time and would like to refactor some of my old projects to improve them and learn a few new skills in the process.
Have I got the book for you: Modernizing Legacy Applications in PHP. I am the author, but you don't need to take my word for it -- read the reviews linked on that page (the one from SitePoint is fair), and of course ask around.
Hope it helps!
> Maybe I'm waffling and this is probably too open a question without the right details but after a year of trying to plan out the best approach I need more opinions rather than my own.
Might I suggest my book on Modernizing Legacy Applications in PHP ? It details a step-by-step process to transform your legacy PHP application into an organized, modern, testable application. (You don't have to take my word for it that it works; here's a review from SitePoint.)
Regardless, good luck!
6% is way high for IE8. Although there was a bump at the beginning of the year (for some reason), even then, 6/7/8 combined were still less than the 6%:
http://www.sitepoint.com/browser-trends-january-2015-ie8-usage-triples/
Most stat counters put it around 2.5%. With and estimate 280,000,000 users, you're looking at about 7 million people total. Furthermore, most people with IE8 probably aren't using the web very much, which means they're more likely to hear about an event (and probably be taken to that event) by a friend or relative.
In addition to incremental GC and symbol GC, there is a string de-duplication feature that results in pretty large savings for most apps, especially if they're using Rack. I wrote a post on this Hash string key de-duplication performance: http://www.sitepoint.com/unraveling-string-key-performance-ruby-2-2/
Also Heroku supports Ruby 2.2 out of the box https://devcenter.heroku.com/changelog-items/574 thanks to Terence Lee for working over Christmas to compile and test the binaries.
JPG does by simplifying the image and you lose the crispness you need for text and vector-based shapes (often used in logos)
Here is a short article on when to use JPG and PNGs
As an alternative to the array_*
functions, you can use nikic/iter, as explained in this article.
Make two applications, one free demo and one paid full. Make the paid app check if the demo is installed, and offer to import the save. Make the demo offer a link to the full version when you reach the end of the demo, since if your demo contains the full game from an IAP it will be easier to pirate. Feel free to protect the full app appropriately (hopefully without inconveniencing legit users). Users are used to seeing demo apps, and will not be surprised when offered the full game at some point - just don't be obnoxious about it. Clearly label the demo as a demo rather than light/lite. "Lite" is more common for apps, and I typically associate it with offering most or all of the content, but including ads or limits (like time or total runs, etc).
To keep the save between apps, something like this should help you set up importing saves. This tutorial might help as well.
No IAP, potentially better security, and no save loss.
Thanks! Did all of the pen tooling in Illustrator and the half-toning and texturing in Photoshop.
Basically created a separate PSD that included all of the shading, converted it to a bitmap halftone texture (via this technique), then brought that into the original PSD as a smart object and tooled around with layer styles and color.
I suck at explaining things, but hope this helps!
Well, here is one: Ruby MVC framework From Scratch. Also, do have a look at the source of very small ones like Busker. Bunch of them are also listed here.
Do, post if anyone else knows better resources, I am also hunting for these.
Everything written by this guy should be a mandatory read. It's amazingly readable but also very educational. It'll help you a lot with modern best practices, even if the posts are a couple years old.
Opera (the browser) has had that exact issue when they switched the version number to Opera 10 a bunch of sites broke down complaining about it being too old a browser, so Opera 10's user-agent became Opera/9.80 instead of the original Opera/10.00 and got a Version/10.00 postfix instead: http://www.sitepoint.com/opera-10-user-agent/
http://www.sitepoint.com/dustmeselectors/
this says "Check a single page, or an entire site." I've never used it but in your case, I'd say it warrants the research! Post back any solution you do find because there are lots of us who would love to know a solution for this.
There is only one way that you should be hashing in PHP and that's with the password_* functions. There is no point attempting to do it yourself.
https://secure.php.net/manual/en/function.password-hash.php
http://www.sitepoint.com/hashing-passwords-php-5-5-password-hashing-api/
I don't think they're related. Actually, I've not heard of ruby being associated with meditation/monks/enlightenment more than any other language.
See this History of Ruby for the properties Matz wanted in a language.
For all those confused, Puli is just a layer for Composer which you can optionally add into your apps/packages by means of a puli.json file which will dictate file and folder mappings for non-logic resources, like view templates, image and CSS files, or even URL prefixes (useful for switching a CDN in a configuration file and having the new URL applied across all JS, CSS, .twig and whatnot). The puli file is generated via the puli command line.
Note that the Puli layer is entirely optional in that you can add it to your project and make the project easier to pulintegrate with another which uses Puli, but the puli.json file can also be completely ignored by the next project consuming yours if Puli isn't a part of the equation there. In other words, it's a convenience addon.
Here are some useful slides and an introductory tutorial ~~is getting published tomorrow on SitePoint~~ is published here.
Edit: linked to SitePoint post.
You're trying to do DOM manipulation in the post-linking function which won't work. By the time the post-link function runs, the DOM has already been constructed by Angular's compile phase. There's nothing wrong with manipulating the DOM in a directive, that's what they're explicitly for, actually. But to do that, you have to use the compile function instead of the link function.
compile: function(tElement, tAttrs){ angular.element(tElement).addClass('class');
return { link: //link code goes here }; };
Compile always returns an object of the link function and you no longer use the separate link function like in your example (Angular will just ignore it). If you need to access scope in the compile function (say to set a dynamic class based on controller data) you can't do that in compile, so instead you have to use a pre-link function in the returned object. Pre-link has access to scope and runs before the linkage phase, so it effectively works like compile.
return { pre-link: function(scope, element, attrs){ //you can manipulate DOM here with scope properties }, post-link: function(scope, element, attrs){ //mostly for attaching event listeners and things like that };
This blog post helped me wrap my head around it. Sorry for the lack of formatting. I'm on my phone.
Edit: I shouldn't say you can't manipulate the DOM in the post-link phase. You can, but it's mostly done on events like click and you have to run $apply to make sure that Angular passes the change out to the DOM.
Very excited about this! I strongly recommend that more experienced developers give this a go when they get an opportunity.
The skeleton installer is brilliant, and lets you easily set up an app with a choice from three routers (FastRoute, Aura, ZF), templating engines (Twig, Plates, ZF) and dependency injection containers (Pimple, Aura, ZF). It's also dead simple to wire in your own components as a replacement for any of these.
I had a crack at using this when I wrote an article about it for SitePoint. For me, this struck the perfect balance between a full-stack and micro framework - happy to answer any questions that anybody has! :)
You can use your desktop.
This is Chrome emulating a Nexus 10
http://imgur.com/STk3zWL
Directions Here.
http://www.sitepoint.com/use-mobile-emulation-mode-chrome/
Basically from the tab you want to display in mobile mode press F12 and then click on the phone looking icon in the top left corner. Set your device type and refresh the screen by hitting F5 if the page does not display correctly.
It did not want to work as an iPad for me but the Nexus 10 does.
I personally find Rails to be absolutely terrible. It's a huge frameworks and it's often very difficult to tell what effects calling a particular method will actually have. You either simply have to memorize things, or spend a lot of time learning ins and outs of Rails.
The amount of code that runs implicitly each time a request is served is mindboggling. The fact that it takes over 100k method calls ro render a Hello World page is absolutely insane.
On the other hand, the Ring stack is incredibly simple and you can know pretty much exactly what happens to a request when it's processed. I also much prefer being able to simply take a bunch of libraries that make sense for my application and glue them together to do what I need than figuring out how the framework designers expected me to do a particular workflow.
I also find that in most cases it makes more sense to do the presentation logic on the client as opposed to the traditional server side rendering. This is where things like Om and Reagent really shine. The server side becomes a very simple stateless service layer and there's simply no value in having a framework in that scenario.
I find library management with Leiningen to be far superior to anything I've seen with Ruby. Packaging and deploying Clojure apps is also much easier in my opinion.
I'd be really curious to hear from somebody who actually uses Rails as to what these supposed improvements actually are.
For those that don't know, use .png if the image contains text, linework, or vector compositions that you want to be crisp and readable. Here is an example of why (the image at the top, don't bother reading the rest). And here is more detail.
> Could be an infinite javascript loop which would crash any browser.
That doesn't crash browsers. After a few seconds, you get a notification which tells you that some script is taking too long and you're given an option to terminate the script.
A screenshot of one of those dialog and the limits used by various browsers (in 2010):
http://www.sitepoint.com/javascript-execution-browser-limits/
I'd like to add to c0cky's post, that even with cookies disabled there is a whole industry dedicated to tracking specifically you. You can have flash, cookies, and javascript disabled, an ad blocker in place and there is still a good chance they will still be able to unique identify you.
Now whether they have a name associated with you or not I can't tell you. There has been a good amount of evidence floating around though that normal browsing habits are enough to provide ad agency with enough information to narrow down where you live.
The official docs don't tell you much (Ruby language official docs are getting better, but still kind of sparse).
Just google for "ruby scope". Here's one piece
But basically, a block creates a new scope. Local variables created in outer scopes are available in the new socpe created by a block (which is what makes it possible to use proc/lambda as a closure). Variables created in a block will not exist in the outer scopes once you return to them.
And def x
, class X
, and module X
create new scopes, but local variables in outer scopes are not available to the new scopes created by those keywords. (Which is one big difference between defining a method with standard def
, and with define_method
. Since the define_method
approach uses a block to define the method body, and variables from outer scopes are available in a block -- variables from outer scopes are available in method body, as a closure, when you use define_method
).
I can't think of anything else that creates a new scope. if/else does not. begin (perhaps counter-intuitively) does not.
That's pretty much all you need to know, that I can think of.
> Can someone ELI5 angular and react to me?
They are thick client JS frameworks for developing single page apps in a manner that is similar in design philosophy to how native apps are developed, except using web technologies.
> And why/when I should use them
That is a hotly debated question. Some believe such frameworks are the right tool for the job for most web development efforts. Others (such as myself) believe such frameworks should only be used in very specific situations.
I'd tackle this problem using a message queue. I'd probably use rabbitmq or beanstalk. So basically when the user requests a job some basic info gets added to a queue. I'd then have a number of command line php workers connecting to the queues and doing the work and sending the emails once complete. The following tutorials should get you started (beanstalk is probably the simpler of the two):
http://www.sitepoint.com/use-rabbitmq-php/ http://www.lornajane.net/posts/2014/working-with-php-and-beanstalkd
AKA networking.
People looking for jobs, expand your network, try to really keep in touch with good friends, especially those that are older than you and working at nice companies. Even if a connection only goes so far as secondary, it can be highly beneficial to get to know people.
Some websites that are focused on Networking:
http://www.sitepoint.com/social-networking-sites-for-business/
I personally use LinkedIn. it's great for marketing yourself. I'd show you mine but that'd be against rules I think.
When you build dynamic websites, generated by scripting languages, the pages may not even exist as files on disk, so it's often not about removing the extension, but not even adding it in the first place. This is common when using the "front controller" pattern where all URLs get redirected through a single script (often something like "index.php")
File extensions are a trait of filesystems used to help identify the format of the content of the file (the "file type"), completely unnecessary on the web because there's a Content-Type header that identifies the "file type" of the content being served.
HTTP also allows for "content negotiation" where the same URL can serve different content based upon the visitors browsers advertised capabilities and other settings such as preferred language. This means that the same URL might serve different "files" (possibly in different "file formats") depending on the visitor.
Where can I find more articles and guides (like this) to help hone in on a style for my pictures. I'd like the guides to be mainly based around curves, RGB and channels, as this is where I feel I'm at with my photography.
Unfortunately, this question is impossible to answer.
I can answer it for myself per project, but I can't answer it for you for a myriad of reasons. Pricing depends on a variety of factors:
How long have you been developing websites? From your statements, it sounds as though you are relatively new to the process.
What is your skill level? How proficient are you?
What technologies are going to be used?
What is the scope of the project?
What does the market support?
What's your time worth?
Are you willing to walk away from a project if the client says no due to price?
Is there any ongoing support or is this a one-time statement of work?
How many revisions will you allow? (two or infinite)?
And there are many other factors as well, but all of these lead into your pricing structure.
Some recommended reading:
Cordova Phonegap integration allows you to use most of the Cordova Plugin Registry right out of the box. This is a solid set of the native functionality for a lot of mobile platforms. The well documented plugins have specific examples of how to use them.
If you can't find the functionality you need from the registry, create your own native module for Android and/or iOS (or whatever you'd like really) by writing it yourself! The idea of Cordova plugins is to be cross platform, so ideally you'd support at least two. You can import tarballs of github repos as a plugin as well. It doesn't need to be listed on the registry to usable.
Here's a general overview guide I just Googled for a more specific example of how to access the camera.
tl;dr Meteor.js native apps can do anything native code can do; sometimes you'll have to write it yourself.
That link is almost 9 months old, and the data comes from a site called "NetMarketShare", here is data from StatCounter which shows a completly different picture.
Here is an article comparing the 2 methodologies these websites use to gather and process their data, including their sample size. I personally agree with the writer and prefer the methodology StatCounter uses.
It also very much depends on how you count, only desktop, desktop + tablet, desktop + tablet + mobile, etc..
Or for example, I know people who use only a tablet for surfing, but might use IE once a month to access a government website which only works in IE.
But actually, in the article I mentioned, the writer mentions at the end: "However, your own website statistics are more indicative of real usage than average worldwide figures." And I think thats the most important thing. If your website is aimed as a service for web developers for example, Im sure you can skip full IE8 or even IE9 in a heartbeat.
mod_rewrite is what you are looking for :
https://support.godaddy.com/help/article/899/how-do-i-use-mod_rewrite
A sitepoint guide :
http://www.sitepoint.com/guide-url-rewriting/
And about.html is not an ugly url .... this is ugly :
http://art.com/artgallery/default.asp?sid=9DF4BC0580DF11D3ACB60090271E26A8&command=freelist
You will want to read a tutorial on Ajax, which lets you send information to the server without refreshing the page. A library that would facilitate this would be jQuery. In Short:
1) Use jQuery to detect when the user clicks on an item in the list 2) Use jQuery to send a request to server (or your PHP script) 3) Use jQuery to handle the server response (display a message to user? etc.)
In short, I would read up on jQuery and sending Ajax requests to the server, like here:
I appreciate the comment. I also appreciate that you were tactful and informative rather than just saying "You don't know what you're doing" and leaving it at that.
I am familiar with PHP, but I don't use it at work; only for side stuff. I am rarely the one to do the initial deployment of any websites that I work on, PHP or not. I think it's actually been years since I last did it. Even though I use Linux pretty regularly, I overlooked this basic fact and seeing the issue that I linked to (and also the "Altering Shared Folder Configuration" of this article) threw me off even further. Anyway, thanks again for clarifying for me.
I don't know about MySQL, but I noticed a couple things that do strongly suggest PHP:
1. The site sets a cookie psid
(short for "PHP Session ID", perhaps?) and a length of 26 characters, which is consistent with PHP's <code>session.hash_bits_per_character</code> set to '5'.
2. The headers:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache
are consistent with PHP's default cache limiter setting of "nocache".
Convert it to a WordPress theme. It's not terribly complicated to do, but it will probably take you a while the first time to get it all right.
> that writing framework agnostic code is the way to go
Is it?
Releasing packages and components are framework agnostic is awesome.
Instead, it sounds like you are trying to make your application framework agnostic? That's not really what framework agnostic means, you just are trying to avoid using a framework.
You can absolutely build your own with composer components, or instead use something insanely lightweight which is just a router strapped to a dispatcher, but that is basically what Slim and Lumen are so you might be wasting a bit of time.
What are your goals here? If the rest of the team is more comfortable using a framework, and you have no insanely low 50ms response time goals to hit, then you might want to just use a framework instead of fighting the team.
I'm going a little bit off on a tangent, but I don't understand why P5.js is officially supported by the Processing Foundation and the much older Processing.js isn't.
P5.js is "just" a javascript library where all the functions look a bit like processing but you're still writing javascript, while with processing.js is an actual processing interpreter which uses actual pde files to run anything.
And, according to this, processing.js is even a little bit faster than P5.
I think the best way to start with WebVR is to develop directly with WebGL in Javascript. You can build a simple world with THREEJS and then add VR handlers. A good introduction might be this article. http://www.sitepoint.com/bringing-vr-to-web-google-cardboard-three-js/ Don't hesitate if you have any question
http://www.sitepoint.com/5-reasons-to-reject-webkit-monoculture/
Some things are not a specific standard and supporting things like that will do more harm than good later on.
Firefox is steadily improving on the html5 adoption as well.
> To be honest I just tried it out of curiosity at first.
I feel like this mentality is so prevalent among devs right now that it's the main reason why articles like this have to be written.
I'm all for playing with flashy new tools, but as the article said, it does seem to be pretty alarming that, "developers seem to be using flashy new tools just for the sake of it, and not because they are solving an actual problem."
Not trying to single you out specifically. Your app could be the right use case for something like Angular or React. As the article mentioned, there are several good use cases. If you're making a prototype, client-only app (e.g. NW.js app), an internal corporate application targeting one browser, or you're making something as rich as Google Maps, then more power to you.
But what concerns me is I keep seeing people make ordinary websites using something like Angular or React. If you're just making links and forms, you don't need a SPA framework. You need progressive enhancement.
Web Developer here.
The Hamburger icon, or navicon, or the menu, or the drawer became more popular with the "trend" of responsive design. Responsive design is where a website changes its layout based on the width of the device.
So many sites have so much content that we try to condense what we can into the navigation menu bar. Whether it be a drop menu, hover menu or whatever. Even a simple basic site has these navigation links:
On wider devices, showing those 5 navigation links is pretty simple. Just display then from left to right inline. But what happens when the device viewing it is 320 pixels wide? or 480? What do we do if there are more than 5 navigation links? We minimize it and redesign the layout and hide it under the menu icon.
I have seen some well designed navigations containing 20+ links, some are sub-menu items, others are right in your face.
Ideally, we want YOU to be able to find nearly any page within 2-3 clicks or finger taps.
For a great example, checkout SitePoint.com and resize your browser.
The hamburger icon is actually quite old. Some sources say it's from as far back as 1981 :)
Meanwhile, IE 11 is quite fast on Windows 8.1. That joke is as old as that picture itself, and you can really see the age in that with the compression.
Check out escaping (or collapsing) margins. Here's a link on escaping margins. That's where that extra margin is coming from... it's the heading.
I'll have to check DrupalVM out, thanks - anything by Geerlingguy carries a lot of weight in my book, that guy's an Ansible master. Perhaps it'll contain something I can scavenge and plug into Homestead Improved for better Symfony support out of the box.
> Is there anyway I can structure this code?
I wrote a book specifically for the situation you describe; it's called Modernizing Legacy Applications in PHP, and it gives very detailed step-by-step instructions to help you convert that mess into something much more well-structured. You don't have to take my word for it; you can read the Sitepoint review, among others.
Good luck!
noosfeer seems a pretty horrid bit of content stealing evil website, don't link through that.
The actual article was stolen from:
http://www.sitepoint.com/vital-guide-interviewing-web-developers/
This is not a valid point. 19,303,740 people is an estimate based on 6% if the entire population of the United States - assuming every man, woman, and infant wants to visit the Bernie Sanders website.
Less than a combined 6% of total internet traffic is represented by IE6, IE7, and IE8 browser usage.
When you support outdated browsers, you are an enabler for users that choose to use incredibly insecure software that will eventually lead to their computer getting exploited by a malicious site.
It takes less than five minutes to download and install a new browser. Nudging your users to do that is safer for them, and is something you should do in spite of how many people you end up not reaching.
Hard to put in a reply, but it mainly boils down to everything Paul says in his book (review). Go step by step, identify stuff that can be incrementally improved, and treat your old framework like legacy code.
We had a whiteboard where we flagged every smelly part of code which could not just be taken out and injected into the DI of the new framework. We then focused on that one part until we made it extractable and package-able. This produced a bunch of services in the end, some of which we Phared and even sold (as for example with the rule powered state transition machine).
A very important thing to note is that the old project is getting abandoned. You cannot support or even bugfix the old one while working on the new one - you'll notice some bugs and fix them implicitly while refactoring, sometimes allowing for a quick backport into legacy, but unless you can dedicate a separate person or team to do maintenance of the old system while you work on the new one, you'll miss the deadline by an even larger margin. Don't assume it can be done, we did this mistake the first time around.
Then I guess you want to give credit to VisiCorp.
"Were the Mac and Windows GUIs the only ones on the market? Hardly. In fact, the first consumer-oriented, PC-based GUI was made not by either company, but by VisiCorp, the makers of VisiCalc. Called VisiOn, it debuted in October 1983, shortly before the Lisa"
http://www.sitepoint.com/real-history-gui/
Commodore and Atari were both already selling non GUI computers, just like Apple. In fact, Commodore was selling a lot more of them than Apple was.
All three had been developing GUI based systems for some time. Atari and Commodore got into a legal feud that delayed them for several months, during which time Apple started selling the Mac. For this, we should give them credit for creating the GUI?
This tweak forces GPU acceleration on cards that Mozilla "blacklisted".
Didnt have any rendering issues on Google sites on a crappy 1.1Ghz Celeron laptop as Intel HD graphics was fine, yet my 9800GT was deemed subpar.
I always like these stories ('early years of [insert language]'), especially coming from the original designer. It helps me understand what kind of problems they were trying to solve. Reading one about php actually made me feel better about wanting to learn almost every language except for that one.
I'd not say it was an idiom but a common, bad practice. Smarty has been around for quite a while, and although there are better alternatives today, some people still use it and obviously used it back then.
I did try Go. I was not impressed to be honest. As I said, if I were to adopt a compiled language for web work I'd probably go with C#, once it's cross platform.
In general, you want tests that prove your application works, and testing that validates particular changes against the application.
Let's say we have just one big test that runs a massive integration case. As long as that test passes, the code underlying it is probably good. When it no longer works, some unit in the program is no longer working, which is where you would want unit tests: you could easily identify which unit no longer works.
But there is another way to obtain that information - test changes in the smallest possible batch, thus disambiguating which change to the code broke the program. This is where git bisect shines.
If you're talking about map tag, it's not quite useful to use it. You can't change CSS properties of map/area. You might consider using SVG + jQuery option: http://www.sitepoint.com/dynamic-geo-maps-svg-jquery/
The only thing the site is lacking is an easy step by step setup process. Luckily others have made them: http://www.sitepoint.com/virtual-machine-browser-testing-modern-ie/
>I tried formatting it to ext4 with GNU Parted, but it told me that ZFS was not supported.
It doesn't need to support zfs. Try creating a new partition table.
This walkthrough may help, though it's a bit outdated.
Oh and /r/linux4noobs or /r/linuxquestions are generally better for tech support.
When was that book published?
It likely teaches you some bad practices if it's more than a few years old. Particularly any books that teach you the mysql_
functions are to be mostly shunned.
This one uses PDO (recommended), and has code sample of projects available for download, so it looks relatively practical as well.
If you buy it and this one as well from OReilly you can get a third book for your choosing for free, as well. Say, a nice one on HTML5 & CSS3 or something.
This is a good resource to use: Complete Intro to Photoshop. If you'd prefer video there's Photoshop CS5 for Beginners. Both are good. check them out.
/r/PhotoshopTutorials
When it comes to WordPress it will never be enough of learning so don't worry about it... Creating custom themes isn't hard at all- It just require more perseverance than using pre-made layouts. I'll give you couple of tips I found out while going from WordPress Theme user to Theme Developer -
Use the already made themes and tweak them to your own requirement using PHP, CSS, and mysql to get it done...
Learn how wp really works - wp is all about using a template to display data to users.
Learn the loop... Getting good understanding of how the loop works would be definitely helpful..
Here are couple of tutorials for you to do -
And the tutorial you mentioned is pretty good too. Most of the time mysql won't be hard for you since php is specially ported to work with mysql... and we are talking about wp which provides an API of methods to get a chunk of data you want... Wish you Good luck on your new Job...
IE7 usage is at 6% as of June 2011 and falling: http://www.sitepoint.com/1-in-5-use-chrome-browser-trends-july-2011/
It's not as commonly used as most people think
edit: Said July, meant June 2011
They are called image sliders or image carousel. They also go by a few other names.
A couple of links for you:
http://www.sitepoint.com/web-foundations/making-simple-image-slider-html-css-jquery/
This is my guess as well.
var myDivs = document.querySelectorAll(".my-divs");
might make more sense to you. Also, http://www.sitepoint.com/jquery-vs-raw-javascript-1-dom-forms/ might be helpful if you're trying to transition away from jQuery.
Sure. I program in PHP so I read up some tutorials and went from there. Some of the articles can get a bit heavy and technical, but I found these helpful as a start:
http://code.tutsplus.com/tutorials/mvc-for-noobs--net-10488
http://www.sitepoint.com/the-mvc-pattern-and-php-1/
http://programmers.stackexchange.com/questions/127624/what-is-mvc-really
Different frameworks each have a slightly varying implementation of MVC, but the general idea is that your application is split into 3 parts. Your controller handles user input / actions, your model does all the logic and thinking, and your view presents this information.
I'm not an expert, and these prepared me for Laravel, having previously had no experience with the MVC architecture.
what would you like to 'preview' on an XML file? It doesn't output anything to your screen, and if your teachers can't tell you that, please stop this class ASAP as you're wasting your time.
Please read this (instead): http://www.sitepoint.com/really-good-introduction-xml/
Basically a Chrome extension is just some HTML, CSS and JS. What you need to learn is the framework used to write Chrome extensions. Here you can find an high level description of all you need to do. Obviously to go deep you need to read the documentation.
You can also find some youtube videos that explain very well how it works.
I'm not an expert in Chrome extensions because i wrote only one to manage my bookmarks (there was nothing on the market that allow me to do what i wanted to do), but i made this from scratch (refers to the framework, not to languages) in an afternoon, so it is not very difficult.
A significant number of people consider that to be a mistake though.
And in response to that, frameworks like Angular and Ember are baking in new features that make it easier to do progressive enhancement. For instance, the next version of both frameworks will support server rendering.
Could be quite a few options how to do this. Simply put, I would be only wanting latitude and longitude data being sent between you and the customer. Then use google map's api geocoding service for the marker location. If the customer is connecting with you on a GPS-enabled device (smartphone) you could use the browser's/smartphone's geo-location service to pull the exact latitude and longitude details to have them send to you.
Hopefully it gives you a fair idea that it can be done ;)
When it complains that port 80 is in use. I opened command prompt in administrator mode and did 'net stop was /y'. It was the only way I could watch using FNeulion.
http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
Our business just got its first real press breaks. In the last week, we were asked to do a short interview for a podcast with 10K subscribers and found out we will be included in an article by sitepoint.com.
I know some wouldn't consider this a big deal, but we are pretty excited about it. We are still small and trying to grow, so it definitely helps our confidence that people are interested enough to write about us! Our website is Jumpanzee.com in case anyone wants to check it out.
You may find these two articles useful :
http://www.sitepoint.com/solving-design-anti-patterns-in-ruby-fix-the-factory/
http://www.sitepoint.com/how-to-solve-coding-anti-patterns-for-ruby-rookies/
Ignore the crappiness of this article, but I've been googling it.
What do you think about recent suits like this: http://www.sitepoint.com/target-settles-accessibility-lawsuit-for-6-million/
I mean it's fairly obvious no one would go after small companies, who probably don't have deep pockets, but does this mean there's a chance of it?
The general logic is correct, but that's a very insecure login (and SQL query in general).
What if someone makes their username ' (just a quote)? The way you currently build your query (by combining strings), it will fail and return an error message. If you have any sort of form that prints the SQL results back onto the page, an attacker can basically manipulate the query in such a way that it returns all the users and their passwords. This is called a SQL injection attack.
See the top answer here for how to use parameterized queries: http://stackoverflow.com/questions/728229/parameters-in-mysqli
The idea is that you first tell mysqli what your exact intended SQL query is, then tell it what the variables are. That way no matter what's in the variables, they won't be processed as part of your SQL.
The other part, that you alluded to, is hashing (not encryption, you want to hash passwords). As long as you have PHP 5.5, this is easy! When you add a user, just run the password through password_hash, and when you try to login, you'll just need to SELECT password WHERE username = ?; (with a parameterized query ;) ) and use password_verify to check it. Here's an info page on that: http://www.sitepoint.com/hashing-passwords-php-5-5-password-hashing-api/
Hashing is important because there isn't a legitimate reason to actually store your user's passwords, and if you get hacked (either by an injection attack or something else), it's much better to just not have the passwords available to be stolen from the beginning.
Not exactly unusual, no - but I guess it depends on what your needs are. Sublime text is, in essence, just a text editor. PhpStorm and Netbeans are IDEs. Also, refer to this 2014 survey to see what's popular: http://www.sitepoint.com/best-php-ide-2014-survey-results/
When it comes down to it, the modern browser doesn't care much about the URL ending when trying to handle a file, it actually looks for what is called the MIME type for the file and uses the computer's default setting for the file association if it has browser integration, otherwise it will prompt you with a download dialog box.
Thanks!
So Neo4j is used a lot for things where you need to browse lots of relationships (e.g. social networks, recommendation engines) and when your data is an obvious graph (e.g. again social networks, fraud detection, AST code analysis). There are also cases where it's useful even if it doesn't quite fit in there. For example I wrote an article about using Neo4j and Ruby to easily do complex access-control systems:
http://www.sitepoint.com/why-you-should-use-neo4j-in-your-next-ruby-app/
Honestly, though, the thing that I like it most for is the ease at which you can model your data. I feel like having relationships as entities often makes things so much simpler and easier to deal with. For example in the ActiveNode module for the gem, polymorphic associations are so much easier to reason about than in ActiveRecord (don't get me wrong, I love AR, one of the reasons why I work on the gem ;). The big Neo4j slogan is "graphs are everywhere" and when you start working with something like Neo4j you realize how true that is because you find yourself throwing in relationships because it's easy to do and browsing complex structures because it's easy to do/think about.
well, hate to be the first person to mention, but you should probably look into rabbitmq for queues, possibly consider ratchet for websockets, haproxy to merge your websockets & http server traffic together and zeromq to be the go-between from your completion response between your queue & websockets to communicate back to your client it's completed.
rabbitmq: http://www.sitepoint.com/use-rabbitmq-php/ ratchet: http://socketo.me/docs/push (use the pub/sub model) look into zmq look into autoban for websockets communication.
php will not be a problem for high-processing type workloads unless it's a lot of math computation which you might consider writing a very minimal extention for php.
Doctrine is one of the best ORM tools that exists for PHP. You won't really find a better one. In my opinion, what you are missing is simple to say and extremely hard to practice: think in terms of data structures, not databases.
A lot of really smart people (Fowler, Martin, etc) have been talking about this issue for years. The conclusion is that you have to separate entities from storage. A good method for doing so is using the repository pattern. The thing I find most attractive about using repositories is that you can use ORM when it works and use something else when it doesn't. In fact, your repositories can be backed by things besides a database, such as Redis or DAV or memory.
If you have PHP 5.4+ installed type php -S localhost:8080 in your terminal.
For more information see this link: http://www.sitepoint.com/taking-advantage-of-phps-built-in-server/
Edit: formatting
Not entirely sure how it's done on Mac. But I guess you have to import the file into VirtualBox. So download that to.
Found a guide here: http://www.sitepoint.com/virtual-machine-browser-testing-modern-ie/
you can turn your c++ program into a php extention library, this will run in the same context as your php code.
http://www.sitepoint.com/getting-started-php-extension-development-via-php-cpp/
http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/
or
http://www.php-cpp.com/download
Barring this you can simply use a named pipe.
The problem with pipes, if you do this asynchronously, is that data can get lost if one of the processes fails, right now with your mysql table you have persistence and data can't get lost without you logging an error about it.
Have you thought about developing in Meteor? It's based on node js if you haven't heard of it. You can create web, android, and iOS applications with one codebase. http://www.sitepoint.com/beginners-guide-mobile-development-meteor/
I'm really impressed that it works in my mobile browser! The game uses a simple concept, but you've implemented it well.
If I may, I'd like to suggest something to help make the experience perhaps more immersive for mobile users: The HTML5 Vibration API.
I noticed there are many times in your game at which the screen visibly shakes (pretty cool effect btw!), and I think this effect could stand out even more with a small vibration. Of course you would have to implement a button to disable/enable vibration (the same way you've added a button for fullscreen mode) because vibration in games drives some people crazy.
Anyway, good game, thanks for sharing!
First off we need a bit more information, your website, is it a Linux or Windows server? This is important because we need to see which technology we can work with. To tell you the truth, what your asking is too complex for merely HTML to do. What you need is a piece of server side technology, something like ASP.NET or PHP. Here is a link to a tutorial on using PHP to connect to an MS Access database.
http://www.sitepoint.com/using-an-access-database-with-php/
good luck!
The Bauhaus was an influential school of design in Germany, and the Bauhaus style has a specific use so it doesn't really make sense to call it Bauhaus, since minimalistic is a more accurate term. It's slightly pedantic though, so it's whatever. I mentioned it in case you'd be interested in learning more about it!
Here is some more background on it: history/ideals more ideals
One of the beautiful ideals that was embodied by the Bauhaus is "form follows function" - this doesn't mean minimalism necessarily, but often does result in minimalistic-like design
Ive never said they weren't first available for purchase. They were not the first to be designed, and they were only out for a short period of time before the other, more capable GUI based computers were available.
Edit: if you're interested in this history, here's a great resource:
http://www.sitepoint.com/real-history-gui/
"Were the Mac and Windows GUIs the only ones on the market? Hardly. In fact, the first consumer-oriented, PC-based GUI was made not by either company"
http://blog.honeybadger.io/ruby-security-tutorial-and-rails-security-guide/
Scroll down to "A recent exploit"
Erlang/Elixir has a similar issue with atoms (which are like symbols) EXCEPT that it has functions which only convert strings to atoms IF the atom already exists i.e. has been "seen" by the compiler (see binary_to_existing_atom), otherwise fail.
Never forget that things like symbols/atoms are a kind of global state, and global state is bad... or at the very least, must be utilized very carefully.
2.2 has Symbol GC but it will be a long while before all the crufty slow code that did String conversion to avoid DDoS is refactored back out. And as you can see from that article, that code caused things to be 2-5 times slower.
Mostly loops and lack of variety, most of us are pretty heavy in the pattern-recognition thing. If a creature only has one "hit sound" it's going to sound really repetitive and lame. Two or three variations, even if they vary ever so slightly, is a lot better. Same for ambient sounds, and, well, everything. Even a bird that only sings one song is going to sound slightly different every time.
I just realised that you might be able to combine several sounds into a cicada pattern (like they do visually here http://www.sitepoint.com/the-cicada-principle-and-why-it-matters-to-web-designers/) to avoid obvious looping.
Personally, I like this one: CCPL
It is responsive and it is easy to read/sort/tap. You could use something similar, like one of the things listed here: http://www.sitepoint.com/top-5-jquery-filter-sort-plugins/
**I have never personally used these jquery plugins so I can't attest to how easy they are to set up.
**edit: formatting, because I can't type.
I recommend giving "Modernizing Legacy Applications in PHP" a read. The book is a great guide covering everything from basic OOP, basic unit testing, basic autoloading, everything you need to know to break away from procedural code. Here's a review.
Fair. But it's going to be a year before PHP 7 is released, and another few years before PHP 5.6 is in EOL, so that gives anyone plenty of time to switch from ext/mysql to ext/mysqli or ext/pdo.
It's really not all that unreasonable to expect people to upgrade over the next few years, and as others mention, it has been deprecated a long time already.
Here is a migration guide from 2011: http://www.sitepoint.com/migrate-from-the-mysql-extension-to-pdo/
I guess that would depend on your definition of "ok" :) Technically, it works, so that's "ok", but make sure you understand why it works, i.e. understand Ruby's concept of a top-level self.
These resources will help you get there:
http://www.sitepoint.com/rubys-top-self-object/
https://banisterfiend.wordpress.com/2010/11/23/what-is-the-ruby-top-level/
Once you understand why it works, feel free to use top-level instance variables or globals as you see fit - it's a free language :)