galbenu.ro

How to change splashscreen and app icon on Android w/ Ionic

Jan
2017

First, Ionic is kind of stupid!
Now let’s make it smarter:
1. go to: /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/resources.js
2. change cacheImages property to false
3. remove android platform
4. re-add android platform
5. regenerate resources
Now Ionic is less stupid!

And in config.xml make sure the code is configured as follows:

<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
<preference name="SplashScreen" value="screen"/>

How do you edit in vim, on Mac?

Jan
2017

You press the “i” key, because the mac does not have an “insert” key.

(On windows and linux you press insert)

Images Aspect Ratio and Google Chrome

Jan
2017

Google Chrome does not know how to maintain aspect ratio of images if the parent has “display: flex”.

In order to make it work and display the images in a responsive manner, the image must be contained in  another element that has a width/min-width/max-width. Then also set max width and height for the image itself.

Here is a sample:

HTML:

 

 

CSS:

.image-container {
width: 50px;
}

img {
max-width: 50px;
max-height: 150px;
height: auto;
width: auto;
}

Tags or the equality thing

Apr
2016

I am traveling by tram today. There is a person that misses one eye. I am not sure they were in an accident recently or they just did not have the money for the surgery.

Three chairs later there are 3 gypsy women with colorful skirts. They are eating sunflower seeds  and loudly spitting the husks on the floor.

Next to those there is a woman with a defect on her nose that just makes you look at it.

A bit behind there is a man who believes that the microphone and the speaker are the same because every time he replies to the person he is talking to over the phone he moves the phone from the ear to the mouth

The motorman is drunk (there is a very pregnant alcohol scent coming from his cabin). And a  cheap-jack just boarded..

All of these are tags. Do we set them because we find it amusing? The worst part is that the tagged people know we tagged them and yet they do not say a thing even though they are bothered by it. Maybe because we all do it no matter the tag we bear. Also bad is that even though we are all people and all equal, after so many thousands of years of living on he same planet we don’t seem to have understood the equality thing.

This is sad.

It is sad that we consider other to be inferior. Why would they be? Because they were not lucky enough to have been born in better environment? Maybe we should get more involved with helping other less fortunate people. Maybe we should be more understanding or emphatic. Maybe we should teach them the rules. Yes, that would be hard! But in the end i believe it would be worth it.
But we don’t eve try to find a solution let alone to get involved into applying existing solutions. We complain about not having time, we always find something better to do, we have to work. But what are we working for? For our children – would some say; for am exotic vacation – would others say; for food; for home; for mortgages; for clothes; and so on… But for society? Who work for the society? We all want to live in a better place, but what are we doing about this? What are you doing about this?

Nothing.

Why? Did you raise your shoulders? Now answer this: why do we complain about the existence of people for whom we set tags?

Let’s explain them in a POLITE way they they should not spit and should not spit the husks on the floor. Maybe we should put bins in the transportation vehicles.

Or even better: let’s teach an adult to read. There are a lot of potential pupils, trust m

Rename branch in GIT (on local)

Mar
2016

If you want to rename the current branch use this command:

git branch -m "new-branch-name"

If you want to rename any other branch use this command:

git branch -m "old-branch-name" "new-branch-name"

Instalare npm pe Windows (10)

Feb
2016

Pentru a instala npm ai nevoie de Node.js. Cea mai simpla cale pentru a instala Node.js este sa folosesti kit-ul de instalare disponibil aici: installer pentru nodeJS.org

Eu am folosit versiunea stable. Salveaza si da dublu click (ca orice alt program in Windows). Urmeaza instructiunile in fereastra de instalare. (more…)

Uncategorized 0 Comment

Creare tema noua magento2

Feb
2016

La crearea unei noi teme bazata pe Magento/Blank trebuie neaparat creat folder-ul media cu imaginea de preview setata in theme.xml.
Daca nu, nu mai poate fi accesat admin panel.

Uncategorized 0 Comment

Culoarea anului 2016

Dec
2015

Culoarea (sau culorile) anului 2016 : Rose Quarz și Serenity.

rose-quartz-serenity

 

 

 

 

 

 

 

 

Sursa imaginii: Pantone

Uncategorized 0 Comment

Cine e $this ?

Nov
2015

$this sunt eu

 

Uncategorized 0 Comment

Responsive table FARA JavaScript

Nov
2015

Nu e invenția mea, dar mi se pare soluția cea mai bună.

Sursa: Responsive Table – a Pen by Geoff Yuen (more…)

Uncategorized 0 Comment