Wednesday, July 30, 2014

Linux Olivia 15 - apt-get - Not found [IP: 91.189.91.14 80]

Hi there, this morning I came across this very annoying message from my linux Mint (Olivia 15):

Err http://archive.ubuntu.com raring-updates/universe i386 Packages 404 Not Found [IP: 91.189.91.14 80] Err http://archive.ubuntu.com raring-updates/multiverse i386 Packages 404 Not Found [IP: 91.189.91.14 80] Fetched 163 kB in 23s (6838 B/s) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80]

So... after a while I've found that this is probably caused from Raring Ringtail (13.04) becoming EOL!

I've opened Synaptic, and then I've disabled old raring* repos.
The problem is that while trying to add new repositories, it suddenly crashed leaving me alone with a worse problem: apt-get stopped working at all.

Then, the solution:

sudo nano /etc/apt/sources.list

mine looked like: 
# deb http://archive.getdeb.net/ubuntu/ raring-getdeb ap ps games 

# deb http://repository.spotify.com/ stable non-fre e 

I've added: 
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse 

It works like a charm!

Cheers,
pietro


Wednesday, July 2, 2014

Responsive web layouts based on Flexbox Model


Hi all,
I'm going to publish a small layouts collection: they're based on the stunning forthcoming Flexible Box layout model so... take it like an experiment!



As of today I've put the first layout, very standard setup for a web application: header, footer, zoom and scoll locked, a main section and the aside.
I'm trying to adhere as much as I can to the rules of semantic html because I strongly believe that this is going to become a standard and I love it.
I just cannot see divs and lot of classes as of 2014, and I'm lucky enough to have the power to force my customers to not use some bad products.
I've choosen to not support old or bad browsers.

So, before you get angry:
  1. check your browser's support
  2. update it... it's free.
  3. change it... it's free as well.

Enjoy the example:  first layout.
Download the full repo from Github!
 
For this work I'm using my own Less mixins:










Monday, June 23, 2014

Change Requirejs, Less compiler and CoffeScript versions in Play Framework

Hi there,
I've found myself struggling with Play 2.2.1 for one (really? just one???) reason: it comes with Less 1.4.2, that's a great CSS compiler but...

...according to the official Less' website, they've released the 1.7.x version!


And what's wrong with 1.4.2? Some bufixes and improvements, as usual, but what I really love is the possibility to pass rulesets to mixins as arguments: definitely great!

The biggest problem is that in our development stage we've frozen the project to Play 2.2.1 and there's no way to upgrade it. So, digging into Play's files I've discovered this wonderful folder:

your-play-path/framework/src/sbt-plugin/src/main/resources

there you can find less-x.x.x.js, coffeescript.js and r.js: just overwrite them and run

your-play-path/framework/build

then leave the console open and type
> compile
> publish-local

...enjoy!


Pietro

Tuesday, May 6, 2014

CSS3 Flexbox made easy!

Hello everybody,
I've decided to use FlexBox (CSS3) layout for my biggest project.

After a while (struggling with some issues and lot of implementation's problem...) I got the job done with some LESS mixins.

I've tested them on Chrome (>32), Firefox (>25) and Safari (>6.0), even on mobile devices (just Android & Apple).
It works like a charm, so I'm giving those mixins to everyone who is learning or developing using this wonderful tecnology.

Let me know for problems, issues or improvements.

Sorry for not posting examples or tutorials but I'm definitely overwhelmed as of today and too busy.

Ciao!
Pietro

Wednesday, January 8, 2014

Footage Manager by TPTeam




Hello,
tonight I'm going to publish our first public project: the Footage Manager.

It is a JS frame player who's able to track movement onto a movie: it seems quite complicate this way but...
JUST TRY IT!

This manager is based on PIXI and Astar and its aim is to follow mouse/device movements updating a MovieClip object. The goal is to control an animation composed by a number of textures throught the mouse's movement, in order to get an animation interacting with the user. 

The 3D character has been edited and animated with Blender (as usual) and I've packed the frames with our STexturePacker 

I'll publish some instructions and one tutorial later, now just try it if you want! I think that the workflow is quite straight-forward (it has been for me, so... don't worry!) anyway would be great to have also some more documentation.

Credits:


Pietro - TPTeam

Monday, January 6, 2014

Back again!

Hi there,
long time no see you.
Since March and in 2014 here's my first post.

I decided to keep just this blog as I'm working full time for a big team and I'm gonna have no more time to manage  blogs, websites and so on. So I just drop down my website, I'll post tricks and tips here with some personal stuff and opinions as well.
This blog itself is gonna be more personal and not too commercial, as long as I don't need to sell my work anymore.

What I can guarantee is that I'm going to be more present and I will definitely publish at least one post a week.

Wish you the best for 2014,
Pietro