Self updatable Python application package – codename: PUPPA
P.UP.P.A
is a friendly boilerplate for a python package (made by zipping the project files) able to update itself via command line.
Another Web Development Blog
is a friendly boilerplate for a python package (made by zipping the project files) able to update itself via command line.
Hi everybody,
What do you do when a client of yours ask for a mailbox? Some developers prefer to buy mailboxes on their domain providers (1-5$ year/mailbox), others are so experienced in postfix and unix administration that can configure a mail server in 5 minutes. I sincerely hate handling mailboxes. They are long to configure, i don’t like self-hosted web interfaces like roundCube and i hate to spend time to fine-tune the server in order to avoid black lists and spam.
So i come up with this revelation:
let’s use something like Mandrill which has a huge free tier to handle personal emails.
I expected to find tons of material to support my idea or some critical issue that destroys it completely… but actually i found a little and i was able to make it working perfectly!
After 3 years i finally found the time to update my blog design.
This time rather than using a pre-made template i decided to let my inner designer be free to do what he pleased… Well, the final result could have been worse.
I sticked on the previous theme for the logic and i decided to try out this “material design” way. I actual had fun. I heard “google material design is soul-less and not suited for companies” but i still think that it’s great for small website, applications and apps of course.
You can see the result yourself, the blog is now much more readable, more “interactive” and a little more sexier:
Actual version:
I didn’t dislike the previous design, but i always found it lacking of mobile goodies and i found that pre and code tags were kind-a-cheap and ugly.
Now we have some great and readable pre/code tags! Yeah!
Just for reference: i used a Materialize.css framework, not the your usual mainstream css framework.
Hope you enjoy the new design but i expecially hope that you will find the blog much easier and simpler to read!
Jonathan
Hello all,
Today we are trying to achieve effortless livereload while emulating a mobile device.
Hello everybody.
This error occurs when this conditions are met:
The solution was not that easy to find on google, most of the people just treated it as a bug waiting to be fixed, but actually you can get your ‘cordova platform add’ in few seconds with these commands:
If you get this error you are probably trying to configure a new ftp user on proftpd.
This error found on proftpd.log refers to UserAlias configuration
UserAlias [ login-user real-user]
add early in your /etc/proftpd/proftpd.conf a line similar to this:
UserAlias ftp-login-name real-unix-user
and that’s it.
Remember to check that the user exists and it’s inside the proper ftp group, based on your proftpd configuration
Hello everybody.
Quick code snippet for JSX for rendering an array of items, instead of a single one, in a ReactJS component:
var React = require('react');
var MyComponent = React.createClass({
render: function() {
var myString = ["L","o","r","e","m"," ","i","p","s","u","m"];
return (
<div> {
myString.map(function(letter) {
return <span>{letter}</span>
})
} </div>
);
}
});
module.exports = MyComponent;
voilà!
Hello everybody,
I bet everybody has his own cloud solution for syncing it’s folders from home to work, viceversa and between devices.
Before today i always relied on a Dropbox / Google Drive combo depending on the project:
BUT as any other web developer i have this big, nasty problem of not wanting to sync:
Everybody have tried a npm install with devastating consequences for poor cloud clients and it’s a known fact that in the long run both dropbox/drive will corrupt a git repo.
Parse error: syntax error, unexpected '$theme' (T_VARIABLE) in /......./wp-content/themes/optima/lib/constants.php on line 1
or perhaps
PHP Parse error: syntax error, unexpected '$theme' (T_VARIABLE) in /..../wp-content/themes/Lightbox/lib/constants.php on line 1
what to do:
why?
When you upload the theme with FTP some of your file such as constans.php are compressed and spaces removed from file. That issue comes from some host. Trey to re-upload files that have errors.
seriously.
sudo apt-get install vnc4server
jenkins
unix user from now on:
sudo su jenkins
vncserver
To test if everything worked, start a VNC screen on screen 99:
vncserver :99
If that goes through alright, then kill the screens created (When I ran vncserver for the first time, it created a screen at :1, so we’ll kill both of the screens created)
vncserver -kill :99
vncserver -kill :1
Voilà!