The default username is “root” default password is ” (that is, do not write anything in password filed, leave it empty/blank).
Yeah, just putting this one here because I keep forgetting it and so I don’t need to google it every time.
The default username is “root” default password is ” (that is, do not write anything in password filed, leave it empty/blank).
Yeah, just putting this one here because I keep forgetting it and so I don’t need to google it every time.
This is a very specific problem so it might only work for some. After I updated WordPress and all plugins on an old site that used WordPress Custom Fields to enter some data, the Custom Fields in admin disappeared. I could add a new post but Custom Fields were nowhere to be sen, not even in the screen options.
Long story short, after doing some searching on the net, I found out it was ACF (Advanced Custom Fields) fault. In new version of the plugin they disable WordPress Custom Fields because they think you are using ACF anyway so no need for both. Not sure I agree but here is 2 ways you can try to solve it:
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
WordPress Custom Fields should reappear now.
I am in the process of migrating one of my sites from Codeigniter (anyone remember it? It promised so much but then fell behind, especially when Laravel came out years ago) to Laravel. It’s been a while since I used Laravel but I always love developing with it.
I always use XAMPP for local development but luckily I googled for alternatives and found Laragon. What an awesome find. At first I thought it was just for Laravel, due to name Laragon but you can use it for everything.
So here is how easy it was to install latest Laravel and start local development.
And that is all. I installed local web server, Laravel and phpmyadmin with few clicks.
One of the more annoying things when developing on your local computer is that your clients or friends can’t see what you develop. You can upload it on your web server or you can work directly on the web server but that is inconvenient and slow. So I was very happy to discover this great tool called ngrok. There are similar tools (localtunnel etc) but this one is really easy to use.
Ngrok is a cool little program that creates a tunnel from the public internet (http://subdomain.ngrok.com) to a port on your local machine. You can give this URL to anyone to allow them to try out a web site you’re developing without doing any deployment. Of course your local server has to run at the time of sharing but that is not a problem – you just leave your PC on.
With ngrok it is super simple to expose a local web server to the internet. On Windows you just download ngrok.exe, unzip it some folder and then in command prompt (cmd) you just tell ngrok which port your web server is running on.
This is the most simple way (This opens port 8080 on your local machine to the internet). Type this in your command prompt:
ngrok 8080
You will see something like this :
Tunnel Status online Version 0.11/0.8 Protocol http Forwarding http://345355bc.ngrok.com -> 127.0.0.1:8080 Web Interface http://localhost:4040 # Conn 0 Avg Conn Time 0.00ms
Of course the port (in this case 8080) has to be the port that your localhost is running on. Now just give the generated URL (in our example http://345355bc.ngrok.com
) to your client or friend and let them test out your application.
You can do a lot more with ngrok, like inspecting your traffic, XML/JSON syntax checking, replaying requests, requiring passwords to access your tunnels, accessing your tunnels over HTTPS, forwarding non-HTTP services, forwarding to non-local services and more.
Check out ngrok here.
While building my new admin/CMS with Laravel 4 and Gebo Admin (really cool twitter bootstrap responsive admin template) I encountered weird problem while using bootstrap tabs – after I added “enhanced select” (Country dropdown) suddenly a horizontal scroll bar appeared!
I am not sure if this is 100% best solution (I am not that keen on digging into all this .js stuff) but the easiest way to fix this is to open Bootstrap.min.css
, search for .tab-content
and then replace
overflow: auto;
with
overflow: hidden;
Reload your page and the horizontal scrollbar is gone.
Sitemaps are a very useful way to allow a webmaster to inform search engines about URLs on a website that are available for crawling. If you are using WordPress or some other CMS you can simply install a plugin (or maybe XML sitemap generation is already inbuilt module) and it will automatically create a sitemap for you. But sometimes you want to create a sitemap by yourself. There are several free services that allow you to create sitemaps for free, like xml-sitemaps.com , rorweb.com and so on. After you create a sitemap you should upload it to your website and submit to to Google,Yahoo etc.
That was a little sitemap introduction and now to the problem I encountered.I am not going to go into discussion if ROR sitemaps are better than Google/XML sitemaps or even needed (I don’t really use it but some people might find it useful). I am just describing solution to a possible problem you might encounter when making a ROR sitemap.
I built a ROR sitemap using xml-sitemaps.com site,uploaded to my site and added it in Google Webmaster Tools admin and Google showed me this error:
Missing XML tag
This required tag is missing. Please add it and resubmit.Parent tag: channel
Tag: description
At first I thought that xml-sitemaps.com ROR generator is outdated so I used one at rorweb.com/rormap.htm but I got the same error. After searching the net I found the solution is very simple:
Open the ror.xml file in your text editor and find this (the beginning of the document,it might look a little different)
<channel> <title>ROR Sitemap for http://www.yoursite.com/</title> <link>http://www.yoursite.com/</link> <item>
and paste the description
line between the title
the link
lines so it will look like this:
<channel> <title>ROR Sitemap for http://www.yoursite.com/</title> <description>ROR Sitemap for http://www.yoursite.com/</description> <link>http://www.yoursite.com/</link> <item>
Save the file,reupload to your server and resubmit to Google Webmaster Tools (refresh the page) and the ‘Missing XML tag This required tag is missing. Please add it and resubmit’ error should disappear.