Posts marked with "Posts" in posts

Create A Profile Picture Framer Web App

You might have seen your Facebook friends’ fancy profile pictures with the frame of the sports team they support. These days for any major events, the best way to support them is by adding a frame to your profile picture with their logo.

Football (soccer) is my favorite sport. My state Kerala have a franchise club in the Indian Super League called Kerala Blasters. We are the largest club by average crowd attendance and the fans are so passionate. What if a passionate, crazy fan is also a programmer. Then you will get this.

... [READ MORE]

New Theme Brenton

It’s been some time since I have been active on this blog. For the past months, I had been paying little attention to my blog. It’s because I was busy with other projects and school of course.

From now on, I’ll try to make the blog more active. As a first step, I have updated the theme. This is the third update to the theme.

The previous themes were named “Subin’s Blog V1” & “Subin’s Blog V2”. That’s a pretty boring name. So I went to a random name picker website and chose one – “Brenton”.

... [READ MORE]

Get Architecture Plainly Without Version In Android

If you want to just get plainly the architecture of system like “arm” or “x86” in your apps, then this post is just for you.

So with this function that I’m gonna present, you will get 3 values, “arm”, “mips” or “x86” whether or not the system is 32 bit or 64 bit.

Here is the function :

public static String getArch() {
  String arch = System.getProperty("os.arch").substring(0, 3).toLowerCase();
  if (arch.equals("aar") || arch.equals("arm")) {
    return "arm";
  }else if(arch.equals("mip")){
    return "mips";
  }else{
    return arch;
  }
}

Just call it statically if it’s under a class :

... [READ MORE]

School Election Software "sElec"

I’m currently studying in 12th grade at Government Model Girls Higher Secondary School. Don’t mind the word “Girls” in the name, because in higher secondary both boys and girls study.

Like schools all over the world, we have an election for each classes to select our class leader. Even in 21st century, our schools were conducting the election with ballot papers.

So I thought why not make a software for it ? This led to the creation of “sElec” – a Lobby app for conducting school elections. (I just came up with the name at this moment writing this line)

... [READ MORE]

PHP Output Buffering For Noobies

You might have heard about output buffering while you code in PHP. I will tell you what it is and how to use it simply.

“Output Buffering” Meaning

“Buffering” in computing means

store (data) in a buffer while it is being processed or transferred.

This is exactly what PHP does too. But, the default mechanism is not this. It is turned off by default i.e :

data is not stored in a buffer while it is being processed or transferred.

... [READ MORE]

Run Multiple WebSocket Services On Same Port

Are you as crazy as me when developing WebSocket applications ? It’s so awesome to work with WebSockets that will blow up your mind and irritate you at the same time.

WebSockets can be used for any real time applications such as :

  • Games
  • Chat
  • News
  • File Transfer

And because it’s impact is so vast, we can develop as many applications as we want. But, a problem arises for freebies like me and you.

... [READ MORE]

Greed – A Short Film

Besides coding, my other passion is film making. I have already made some films since the age of 8. But those were raw footage and I didn’t edit them.

When I was 11, I created an another film and edited it with Windows Movie Maker. I didn’t publish it and it still exist in my computer.

Now, after 5 years I decided to create another film. This time with the help of my friends. I got the idea when I was studying at 5 AM in the morning of Mathematics exam.

... [READ MORE]

How To Install & Run Composer Binaries Globally

Take PHPUnit as an example. You can install it using Composer doing this :

composer require phpunit/phpunit

This will install a phpunit shortcut in vendor/bin directory. This obviously means you can run it. But, you would have to point to the exact location of the phpunit file to run : 

/home/username/mysite/vendor/bin/phpunit phpunit.xml

But, that’s long and uncomfortable. And you would have to install PHPUnit separately for each projects.

I’m gonna tell you how to install binaries globally as well as running it simply.

... [READ MORE]

Doing Random Things in PHP

Suppose you want to display something randomly in a news feed, or pick random elements from an array, or anything random in general. Programming Languages are used to define the way how something must be done. Hence in a technical way, it can’t do things randomly on it’s own. Otherwise it would be an AI (Artificial Intelligence). Doing random things is not done at compiling, but in execution. In case of PHP, this doesn’t matter as it’s an interpreter.

... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab