Image ratio calculator

Finally I coded my image ratio calculator…!

I use it to calculate the dimensions of the image I want to create with a precise ratio. Usually I only create 16:9 images, but since in Photoshop you sadly can’t set the image’s dimensions at creation based on a ratio (at least the ratio I’m interested in), I built myself this little tool. In Photoshop this is what you see:

Photoshop size options

Photoshop ratios

No 16:9 ratio. Yet, 16:9 is my favourite, since it’s the HD widescreen dimensions. So in my tool you just set your preferred orientation and dimension and it calculates the dimensions with the ratio that you provide. It saves me really a lot of time in my process. Even if Photoshop provides a way to create an image from a custom template with your custom dimensions, I don’t naturally recognize that such template is a 16:9, I always end up recalculating the dimensions… So I really need this! And maybe so do you! Bookmark it already:

https://eloone.github.io/image-ratio/

 

On the subject of images, I will elaborate later. But yeah, sometimes I produce stuff! This is mine !!๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ย ๐Ÿ˜‰

Remember to be fearless

21st century ready

This is just to say that I upgraded my blog to support two majors things that qualify a blog as “21st century ready”:

  • Markdown
// Oh my God.๐Ÿ˜œ
alert('Finally!!!');
  • Emojis

๐Ÿ˜€ย ๐Ÿ™‚โญ๏ธย โœจย โšก๏ธย ๐Ÿค“ย ๐Ÿ˜ณย ๐Ÿ˜‚ย ๐Ÿ˜ย ๐Ÿ˜ย ๐Ÿ˜‡ย ๐Ÿ‘‰ย ๐Ÿ˜Žย ๐Ÿ’ชย โœŒ๏ธย ย ๐Ÿ‘€ย ๐Ÿ™Œย ๐Ÿ‘ย ๐Ÿ’•ย ๐Ÿ™ƒย ๐Ÿ˜œย ๐Ÿ™„ย ๐Ÿ‘‹ย ๐Ÿ˜นย ๐Ÿพย ๐Ÿ’ฅย ๐Ÿ’ซย ๐ŸŒฝย ๐ŸŸย ๐Ÿ’–ย ๐Ÿ’žย ๐Ÿ˜ผย ๐Ÿค–ย ๐Ÿ‘ปย ๐Ÿ‘ฝย ๐Ÿ‘…ย ๐Ÿ˜Šย ๐Ÿ˜‰ย โ˜บ๏ธย ๐Ÿ˜ย ๐Ÿ˜‘ย ARE YOU FREAKING KIDDING ME ๐Ÿ˜ฑย ๐Ÿ˜ฑย ๐Ÿ˜ฑย ๐Ÿ˜˜ ! ! ! ! ! ! ! ! ! ? ?

CHARACTER ENCODING HAS ALMOST KILLED ME. ๐Ÿ”ช ๐Ÿ”ช ๐Ÿ”ช

Posted in Technical, Misc

Tagged ,

The Amazon ultimate Ad

The lost art of gift offering

Here’s an interesting personal story that I experienced recently, about gifts.

Ancient social wrapping for objects used in human relationships

Continue reading

The Air Seychelles HTTPS Mayhem

The Chase of the magic flight ticket

This is November, temperature is 5ยฐ C, Christmas holidays are coming fast, terrorist attacks happened, spirit is down and broken, I need to get away. I want to go here:

Magic beach

Continue reading

I work in a bank: The Rebound Job

A rehab story

So, since two weeks now I have taken on a new job: I work in a bank. This sounds very weird because I am not at all a bank type person. I’ve always worked in media style companies and I am attracted to creative fields with start-up mentality. But since my last experience in this very type of environment went ballistic (see The Mega Shit Day) I got a little fed up and quite disgusted of this start-up mentality that is not at all as evolved as everyone thinks — I’m still working on my report to detail that. So when I came across an opportunity to work in this bank, the job sounded interesting, technically, and my idea of the world of finance is that it is very organized and serious. So I thought, I need to change settings, I want to work in an organized workplace where people are serious and take me seriously. Soย why the hell not?ย Let’s do this. I was not very confident at first of my choice because I kept wondering why I was doing this so much it is unlike me, but all in all, I think it’s good. I really needed to change my environment, and I got it. What has not changed though is the technical job, and I am really happy about it.

Continue reading

Posted in Life, Stories

Technical Documentation Terribilis

Massage parameters and give them coconut juice

Technical Documentation Terribilis

Continue reading

Change of settings

Upgrade!

Here are some updates, I am on a new contract since three months now. I changed my settings. This is the story of what happened to me after my last introspective dilemma. And my discovery of a new type of developers. Wanna read about that?

Continue reading

Posted in Life, Devsworld

The typing symbol hack

Introducing the symbolTyper js library โ™ฅ

Do you remember as a kid playing with the Wingdings font of Microsoft Word on Windows 95 ? Personally it’s one of my favourite memories. I used to always activate the font and type on the keyboard to discover which symbols appeared on the screen. Every key was hiding a symbol. I never really understood why this font even existed mixed in with Times New Roman and Arial. It was like a pirate in the navy, discarding any character encoding rule, outputting whatever it wanted, like a crazy font. It seemed very odd that engineers would come up with that since it follows no logic and the use is really not obvious. Anyway, I found it very fun to play with and always ended up making some posters or invites with it. In the end I would do something that approached this :

For some reason, I particularly loved the bomb symbol, it is very unique, I’ve never seen it in any other font. So this is what the hack I want to share today made me think of, typing symbols in my childhood. High moment of almost creativity.

Continue reading

By value, by reference in javascript

The pass by reference mechanism in javascript

Lately I have realized some useful facts about the pass by reference mechanism in javascript.
Let me share them here.

To cut to the chase, there is no such thing as passing a variable as reference in javascript. Variables are always passed as values in arguments. This means that what you can do in PHP for example when you do function test(&$val){} is not possible in javascript, there is no special keyword or symbol to do that.

However, there are some cases when you can “simulate” this behaviour in javascript. But before showing you how to do that, let’s make a recap.

Continue reading

Posted in Code, Programming, Wiki

Tagged

Dude, where’s your paranoia?

Working with Java bears

Today’s story is about security. At work, one of our big construction site is to move old SOAP webservices into modern RESTful webservices. One of these webservices’ job is to generate a personalized pdf for a user based on the id of their banking operation. Doing this was not trivial considering our architecture, but it was rather fun, and it came with extra fun because developers are left alone with themselves to decide how to do things with no site manager to supervise how the building is going to be. No plan, just build it. Developers are expected to be their own architects. So developers are also expected to communicate with each other on how they’re going to do things. Sometimes it leads to funny situations.

Continue reading

Posted in Stories, Devsworld

Tagged