Add the following lines to the code. This might solve the problem.
Monday, June 7, 2021
How to resolve Failed to connect to port 443: Network is unreachable when using curl with PHP?
How to find out if curl is enabled for PHP on your web server?
https://www.discussdesk.com/how-to-install-curl-and-check-curl-is-enabled-in-web-server.htm
1. phpinfo
curl
2. Verify through PHP code
echo "CURL is available on your web server";
} else {
How to find the extensions directory for PHP?
phpconfig
bash-3.2# php-config --extension-dir
/usr/lib/php/extensions/<foldername>
Friday, May 28, 2021
How to search email in outlook across all folders? - Use "All Mail" from search toolbar
Do a basic search in Outlook
Click "All Mail" and perform search now.
Source https://apple.stackexchange.com/questions/378292/outlook-for-mac-searching-only-the-current-folder
https://support.microsoft.com/en-us/office/find-items-by-doing-a-basic-search-in-outlook-for-mac-53b60f65-25b7-4582-9c5e-4adf16e503a1?ui=en-us&rs=en-us&ad=us
Sunday, May 2, 2021
How to find the executable path of a php,mysql program? - Try which and whereis
You may want to find out where the executable is installed or is being executed from
which php
/usr/php
which mysql
/usr/local/mysql/bin/mysql
Alternative command for the same results as above.
whereis php
whereis mysql
echo "">access_log How to clear a log file without deleting it?
Do you want to debug a file and realize it has too much of content in it.
Let's say the file name is access_log.
just say echo "">access_log.
This will replace the content with the blank file.
Now your file is ready to starting logging data from now :-).
Note: Please use this at your own discretion. This is just a workaround.
How to define a temporary variable in mac Terminal
How to define a temporary variable in mac Terminal?
Example1: Lets say I want to store company Name into a temporary variable in a terminal and display it.
export companyName="GGHL"
echo $companyName
GGHL
Example2: Display machine name path
export myhomedir=/Userss/${USER}
echo $myhomedir
/Users/username
Saturday, May 1, 2021
Top 5 tips of using meta tag in html web pages to improve SEO
Meta tags are meta (additional) information usually describing the page and its contents. This is generally for search engines to read and understand the content of your page.
1. Set the charset -
<meta charset="utf-8">
This will ensure that when you go for international character sets, you will not see gibberish. If you do not understand, safely use the above statement for any html page.
2. Set the author name
<meta name="author" content="<author name>">
It is learnt that this information can be helpful in identifying the original author of the content. Search engines do use this information.
3. Search Engine Optimization (SEO)
<meta name="description" content="The important keywords of your article should go in here, so that when a user searches on a search engine, the page rank and the probability of the search results displaying on top results increases."
4. Keywords
<meta name="keyword" content="HTML,CSS,javascript">
Keywords will help Search engines as part of SEO ( Search Engine Optimization ) filter your page when a user uses keywords to search their results. It is also recommended that these keywords be frequently used- not overused in the content of the page being displayed to allow search engine to consider the page and keywords relevant and move your page up the order.
5.Title tag
<title>Your page title</title>
Even though this is not part meta tag, it is worth mentioning that this tag also adds value when a user searches on a Search engine and is an important parameter for SEO (Search Engine Optimizer), a key placeholder.
Friday, April 30, 2021
Where is php.ini located on macOS
Location of php.ini file
<prompt>:~<username>$ php -ini
List the php modules installed
$php -m
Sample output:
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
What is the mantra and meaning of prabh ki simaran ridh sidh no nidh?
Happy Friday, I learnt something new today from a forward from a friend. It's a mantra.
Here's my learning or decoding of what's in it.
prabh ki simran ridh sidh no nidh |
prabh ki simran gyaan dhyaan
thath budh |
I came to know that there is a complete mantra Read more
Since I am no good at vocabulary. I did my part to break it down further.
Prabh -> Prabhu -> God : Prabhu
Simran -> Continuous remembrance
Ridh -> Prosperity : Riddhi
Siddh -> Accomplishment : Siddh-arth
Nau Nidh -> 9 Treasures
Gyaan -> Knowledge ( spiritual or religious knowledge )
Dhyaan -> Contemplation, Reflection, Meditation
Thath -> Supreme
Budh -> To Awkaen, To Know, To become aware or : Buddha
HTH, Please share your wisdom
Wednesday, April 28, 2021
How to find the OS version of a linux remote machine? /etc/os-release
cat /etc/os-release
Should give you
NAME
VERSION
ID
VERSION-ID
and so -on...
How to find the web server location of html, php files on a remote machine?
I had to make modifications on a remote machine.But i did not know the location where web server files html or php are located.
ssh username@remotehost
password: #####
bash$cat /etc/httpd/conf/httpd.conf | grep DocumentRoot
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
cd /var/www/html
There I was in the directory to proceed further,
Tuesday, April 27, 2021
What do the version numbers mean in NPM modules ^ ~
A package with the sequence 4.17.4 is interpreted as Major release, Minor Release and patch.
^4.17.4 - keep major version update minor version
~4.17.4 - keep minor version update patch
4.17.4 - exact version
* - latest version
Monday, April 26, 2021
What is XHR?
XHR stands for XmlHttpRequest object.
This is the traditional way of accessing data asynchronously.
HTML file has a button that we will use to trigger the event.
!DOCTYPE html><script src="js/ajax.js"></script>
Saturday, April 24, 2021
Where are the macOS commands located? What are /usr/bin /usr/local/bin directories used for?
We have all heard of /usr/bin /usr/local/bin and so on. Do we know how and why they are organized?Let's get started
/bin - user utilities - cd ls cat bash cp pwd - all these are here. Did you know?
/sbin - s for system program and administration
ping mount reboot shutdown ifconfig - ring a bell?
/usr/bin - non-system programs -
awk base64 curl emacs find grep ssh php vim perl php python rake rails sed
/usr/sbin - system daemons(background processes) & system utilities only
chown chmod cron httpd sendmail sshd apachectl - sytem utilities that are user specific
/usr/local/bin - The programs installed over the base operating systems due to a dmg file installation or using a package manager might land up here.
Example: Lets say you install mysql it would be installed in /usr/local/mysql/bin. Similarly php would be installed in /usr/local/php
/bin and /sbin - commands provided by OS - /bin - consumers /sbin - system administrators
/usr/bin - utilities used by developers
/usr/sbin - utilities used by OS administrators
/usr/local/bin - compilers/executables softwares installed - php and mysql
/usr/local/sbin - administrative commands for softwares installed - Apache restart, mysql server start re-start
We all use cd, ls and many such commands in the macOS Terminal day in and day out. I am better than yesterday after I learnt this today. I know where to search my executables.
Credits & Thanks to :https://medium.com/@jalendport/what-exactly-is-your-shell-path-2f076f02deb4
Are you feeling low? Top 5 ways to live with coronvavirus COVID-19 pademic
COVID-19 made it's may into 2020 and now 2021.
How do I feel about it? It's mixed emotions.
I miss the strangers, the acquaintances, friends, colleagues and buddies I use to spend time with.We are all aging as the day passes by, our friends and family are not limited to only family.
The pandemic has taken a toil on our mental health. We as people are born to be on the move.
I miss the coffee talks, the cafeteria chats, eleventh hour plans and it all comes down to freedom and independence.
We have now seen a series of lockdowns and unlockdowns but our minds have taken a hit.
I am no spiritual healer not a motivational speaker, but here's how I deal with the ups and downs and high's and low's.
1. Read a book:
I wasn't a voracious reader ever, I've managed to be better than I was. Pick up a book, read 5 pages a day.
2. Health:
I wouldn't suggest this to people. I was overweight and still I am, I had a routine to walk ~10,000 steps a day a year before pandemic and I lost 1.5 kgs a month. I continued this for 14 months and I lost ~20 kgs. This story is for another day.
I walk 3 to 4 times a day - 10 to 15 min walk in my room, jog around. This will clear up your mind.
3. Ask yourself, What am I doing? and What should I be doing?
I picked this from a book. We are become mindful with each day, but with each day we add thoughts to the millions we already have. Our whole life is about thoughts.
If you have work to do and you want to focus, question yourself. What am I doing? You'll notice your brain stops for a second, keeps all thoughts aside and becomes blank. Continuously do this the whole day, you will observe a sense of awareness.
4. Pick a hobby:
Learn something and start writing. Try to enjoy activities with family. If you like to be alone, pick an area of interest, read and write a blog about it like I am doing now.
5. Time your activities:
Time your activities in the day, use a mobile to time them, you should be able to make a 24 hour plan for yourself in a couple of months. This is how I did it. Time a task let's say read a book for 5 mins or 10 mins. Snooze it if you want to continue it for another 5 mins. Eventually you will find that time that suits your concentration levels.
Remember to take breaks and don't let the breaks break you either.
Cheers,
Ajith
What does CRSF stand for?
CRSF stands for Cross-site request forgery.
CSRF is also used as an abbreviation in defences against CSRF attacks,
such as techniques that use header data, form data, or cookies, to test
for and prevent such attacks.
The app must send a request header called X-CSRF-Token with the value fetch in this call. The server generates a token, stores it in the user's session table, and sends the value in the X-CSRF-Token HTTP response header.
Cross-site request forgery, also known as one-click attack or session riding and abbreviated as CSRF (sometimes pronounced sea-surf) or XSRF, is a type of malicious exploit of a website where unauthorized commands are submitted from a user that the web application trusts.
cross-site scripting (XSS), exploits the trust a user has for a particular site,
CSRF exploits the trust that a site has in a user's browser.
Source:https://en.wikipedia.org/wiki/Cross-site_request_forgery
Thursday, April 22, 2021
How to set css color property to red in JQuery
$('h1').css('color','red')
$('*').css('color','red')
What is Patmos in the Book of Revelation?
Patmos is mentioned in the Book of Revelation, the last book of the Christian Bible.
Patmos, an Aegean island in the north of Greece’s Dodecanese island group, is a significant Christian pilgrimage site. Its Cave of the Apocalypse is where John of Patmos (St. John the Theologian) is said to have written the Book of Revelations.
What are the seven Spirits which are before the throne of God? - Revelation 1
I was curious to find out the meaning of "the seven Spirits, which are before the throne of God" which reading the Bible today.
Here's something that I found. Please feel free to add:
The seven gifts of the Holy Spirit are wisdom, understanding, counsel, fortitude, knowledge, piety, and fear of the Lord
Wednesday, April 21, 2021
How to add google analytics code to blogger blog?
Go to Design mode. Click Theme.
Click Customize drop down > Click Edit as HTML
under head paste your google code from analytics. Steps to get google analytics code is below.
In google analytics go to ADMIN
Then create account and add blog.
If you have already have one, Click Account Management. Close the Popup that comes up.
Look for "Tracking Info" under property>
Click "Tracking Code" under it.
Copy the code under Global site tag.
Paste it now in the section under head.
https://www.youtube.com/watch?v=N3jGnYbkr50
What is Ram Navami
What is Ram Navami?
It is a sprint Hindu festival that celebrates the birthday of Hindu God Lord Rama.
Ram was born to King Dasharath and Queen Kaushalya in Ayodhya in the Tretha Yug.
Ram is considered the the seventh incarnation of Vishnu.
It is celebrated as ninth day of Chaitra Navratri.
Tuesday, April 20, 2021
How to create a HTTP server, listener and response with NodeJS at runtime?
Pre-requisute: Install nodejs, visual studio code and the http modul
Descrption: The use of createServer from http module - will help create an object that servers as a webserver running on localhost:8080
const {createServer} =require('http');
cons server=createServer((request,response))=>{
response.writeHead(200,{'Content-Type':'application/json'});
response.write(JSON.stringify({a:1,b:2,c:3}));
return response.end();
});
server.listen(8080);
What does this mean?
This means, you can technically launch a webserver on the fly and create a response work temporarily and shut it down.
I am assuming its a good strategy to not have a webserver always running, but that question is for another day.
Cheers
How to copy filepath from Finder and open it in Terminal on MacOS
Open Finder
If you do not see the Path listed above status bar, do the following.
Select the following Menu Option
View -> Show Path Bar
Now click on any file in the finder window.
You should be able to see the path of the file below
Macintosh > Library > WebServer > Documents > index.html
The format we are looking for is /Library/WebServer/Documents/index.html
Right click on index.html file you should see an option Copy "index.html" as Pathname
Paste it into a Terminal and you should be the path of the format.
/Library/WebServer/Documents/index.html
To open the folder in the Termainal, right click on any folder (blue icons), example Documents in this case or Library. Use "New Terminal Tab at Folder" or "New Terminal at Folder". A new terminal would open with the path set by default.
use pwd to verify the path.
What is prometheus?
Prometheus is a software for mentoring and alerting. The idea it to time
Similar tools:
Borgman remains internal to Google. Treating time-series data as a data source
Monday, April 19, 2021
What is graphana? what does it do?
Graphana is an open source web application.
It supports Prometheus database and ships it inbuilt.
What purpose does it serve?
It allows you to build Charts, Graphs and Dashboards that you want to Visualize
What is the architecture of Graphana?
-> Data producer (Jenkins, Kubernetes, Virutal Machine) - Aggregate data - Temperate, weather
-> Data Source (Prometheus or any other database) - Pull data (sensor data) or Data Producer pushes data
-> Graphana queries the data source and provides a Dashboard
What are the Categories of data that Graphana visualizes over?
Metrics - CPU Load, Memory Usage
Logs - errors [TimeSliced]
What does the Dashboard show?
It shows CPU/Memory along with TimeSeries Graph that you can Zoom in and factor data for the controlled set of data.
Similar Tools:
Kibana
Sunday, April 18, 2021
How to find a file in macOS Terminal using bash?
Cd into the directory.
Example:
List down all the files with the name test.
find . -type f -name "test*"
Additional tip
List down all the directories with the name test.
find . -type d -name "test*"
How to configure settings in php on MAMP ?
The configuration file for php is php.ini.
The file is present in /etc directory.
Open a Terminal. Change to Root user.
bash#su -s
enter password
bash# cd /etc
bash# ls -l | grep php.ini
-rwxr-xr-x 1 root wheel 72020 Apr 18 11:17 php.ini.default
bash# chmod 755 php.ini.default
Rename the file to pho.ini
mv php.ini.default
Edit the file and set the following settings if you wish too.
vi php.ini
To seach use /<word>
Userful settings
display_errors On
disaplay_start_errors - On
error_log /var/log/apache2/php_errors.log
write and quit
restart apache to reflect changes
bash#apachectl restart
Additional commands
php -v - version of php
php -m - modules installed like ssl, sockets etc.,
php -i - view php.ini configuration files
Saturday, April 17, 2021
Top 5 keywords associated with Beauty?
Words have meanings associated to it, some are synonyms like siblings and some are distant relatives like friends and associates.
Let's write the words down and you and I can later figure out our preferences to categorize them.
- Beauty
- Makeup?
- Dress
- Women
- Hair
- Wardrobe
- Face
- Beauty products
Friday, April 16, 2021
How to increase the font size of MacOS terminal?
Open a command Terminal.
Use command + command - to increase or decrease the font size
How to solve InnoDB: Unable to lock ./ibdata1 mysql error? Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
Problem Statement:
bash-3.2# /usr/local/mysql/support-files/mysql.server start
Starting MySQL
.................................................................................................... ERROR! The server quit without updating PID file (/usr/local/mysql/data/xx-xxx.pid).
bash-3.2# cat /usr/local/mysql/data/xx-xxxx.pid
Root Case :
There might be multiple mysql processes running. Kill them.
Solution:
bash-3.2# ps aux|grep mysql
root 28892 0.9 0.0 4277256 796 s001 S+ 1:09PM 0:00.00 grep mysql
_mysql 22971 0.0 1.1 4884468 186036 ?? Ss 9:49AM 0:23.22 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so
sudo kill 22971
Restart the server
bash-3.2# /usr/local/mysql/support-files/mysql.server start
Starting MySQL
. SUCCESS!
Error Messages from logs could look like:
bash-3.2# cat /usr/local/mysql/data/amoni-mac.err2021-04-16T07:05:06.321323Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.23) starting as process 27393
2021-04-16T07:05:06.324284Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
2021-04-16T07:05:06.342917Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-04-16T07:05:06.365435Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 35
2021-04-16T07:05:07.368910Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 35
2021-04-16T07:05:08.372637Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 35
How to list directories in linux macOS
- find * -maxdepth 0 -type d
- ls -al | grep '^d'
Thursday, April 15, 2021
How do configure apache web server on MAMP on a Mac?
Open Terminal in Mac
If sudo su (doesn't work)
Use : "sudo -s"
This should bring you to a bash prompt
httpd -v
Server version: Apache/2.4.34 (Unix)
Server built: Feb 22 2019 20:20:11
apachectl stop
apachectl start
If it's already started, you may see a message similar as follows:
apachectl start
/System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded
apachectl status
Open "http://localhost:80" in the web browser of your choice.
Stopping a server
apachectl graceful
apachectl -k stop
AH00557: httpd: apr_sockaddr_info_get() failed for amoni-mac
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
To Unload the server
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
In order to avoid the message above,you can configure the server name using the command in the Terminal
vi /etc/apache2/httpd.conf
Look for the following section and uncomment #ServerName <provide a name here>
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost
How do I build a website on Mac, Windows or Linux?
Download the following software on your local machine Mac,Windows or Linux machine.
MAMP - Mac Apache MySQL PHP
XAMPP - Cross-Platform Windows/Mac - Apache MySQL Php and Perl
WAMP - Windows Apache MySQL PHP
LAMP - Linux Apache MySQL PHP - Comes default in Linux OS
Apache - WebServer
PHP/Perl - Service side Programming language that is used in combination with browser based a.k.a client client languages HTML,CSS and Javascript for your website look and feel
MySQL - database - store data
Once you build your website and have it running on your machine, you could
- Buy domain name
- Buy a domain hosting space and configure LAMP installed on the host.
- Use FTP to move files from local machine to server host
Viola! done
Additional Info read here
Wednesday, April 14, 2021
What is Ansible?
What is Ansible - Configuration Management Tools - Alternatives to- Chef and Puppet
It is used in Devops.
Business Users: System Admin - infrastructure
Configuration of : N servers x Type of servers(Webserver, Apache, MySQL)
Is is an automation tool? Yes
Yes it helps in IT Automation
Business Scenario : Configuration - 100 apache servers and database servers
Mechanism:
1) Pull Configuration - 2) Push Configuration ( no client installed on nodes, Server pushes)
Core Elements of Ansible:
1st part Core - Playbook
Playbook - instructions to confiugure the node
Written in YAML to describe the data
YAML - YAML ain't a mark up language
...
name: play1
hosts: webserver
tasks:
-name:install apache
yum:
name:apache
state:present
-name: start apache
service:
name: apache
state: start
-name: play 2
hosts: databaseserver
tasks:
-name:install MySQL
2nd Part : inventory
[webserver]
web1.machine
web2.machine
[databaseserver]
db1.machine
How it works?
Ansible is installed on the local machine
Connects to different nodes - agentless
Playbook - How to setup remote nodes
Uses SSH to connect to nodes
and Push the Playbook to the node
Create environment that is consistent
Ansible is a command line tool
Ansible Tower - RedHat - Framework
Usecase: Hootsuite
Business: Social media platform
Problem Statement:
Rebuild their servers
Now they write Playbooks to deploy servers providing a standardization
Take away:
IT Automation consistent configuration
Friday, April 17, 2020
Armenian Duduk, Chello, Hammered Dulcimer & Percussion instruments
The most commonly used system divides instruments into string instruments, woodwind instruments, brass instruments and percussion instruments;
Saturday, June 24, 2017
Bible verse of the day - Psalms 07:10
Saturday, May 2, 2015
Friday, May 1, 2015
Thursday, April 30, 2015
Wednesday, April 29, 2015
Thursday, February 5, 2015
Read a nice article on pin drop
Can you hear a pin drop?
What is the meaning of pin drop silence?
Following are some instances when silence could speak louder than voice.
Take 1:
Field Marshal Sam Bahadur Maneckshaw once started addressing a public meeting at Ahmedabad in English.
The crowd started chanting, "Speak in Gujarati. We will hear you only if you speak in Gujarati."
Field Marshal Sam Bahadur Maneckshaw stopped. Swept the audience with a hard stare and replied,
"Friends, I have fought many a battle in my long career.
I have learned Punjabi from men of the Sikh Regiment; Marathi from the Maratha Regiment; Tamil from the men of the Madras Sappers; Bengali from the men of the Bengal Sappers; Hindi from the Bihar Regiment; and even Nepali from the Gurkha Regiment.
Unfortunately there was no soldier from Gujarat from whom I could have learned Gujarati."
You could have heard a pin drop.
----
Take 2:
JFK'S Secretary of State, Dean Rusk, was in France in the early 60's when Charles DeGaule, the French President, decided to pull out of NATO.
DeGaule said he wanted all US military out of France as soon as possible.
Rusk responded, "Does that include the 180,000 who are buried here ?"
DeGaule could not respond.
You could have heard a pin drop.
----
Take 3:
Robert Whiting, an elderly US gentleman of 83, arrived in Paris by plane.
At French Customs, he took a few minutes to locate his passport in his carry on.
"You have been to France before, Monsieur?", the Customs officer asked sarcastically.
Mr. Whiting admitted that he had been to France previously.
"Then you should know enough to have your passport ready."
The American said, “The last time I was here, I didn't have to show it."
"Impossible. Americans always have to show their passports on arrival in France !", the Customs officer sneered.
The American senior gave the Frenchman a long, hard look.
Then he quietly explained.
"Well, when I came ashore at Omaha Beach, at 4:40am, on D-Day in 1944, to help liberate your country, I couldn't find a single Frenchman to show a passport to"
You could have heard a pin drop.
Saturday, January 31, 2015
Sunday hyms for 31-jan-2015
Enter his gates
Lord god have mercy on us all. Have mercy lord and hear our prayer
Ballad Accoustic 01 099
Glory to god in the highest and peace to his people on earth poprock p1 05 113
Praise god praise god ballroom p2 04 102
B39 take our bread ballad p3 80sepballad 02 092
Holy holy lord earth is full of your glory. Glory filla the heavens too ballroom p2 9-8 walz 05 124
Jesus name above all names
Lamb of god o jesus christ take away our sons we pray
Sing them over again to me ballroom p2 9-8walz 04 126
Masi tu hamse batadey exp user p2 3-4-folk.8 03 140
He abides swing&jazz p2 morswing 05 110
Saturday, January 10, 2015
Android Studio
Setting up an Environment:
- Download Android Studio.
- Download the latest SDK tools and platforms using the SDK Manager.
License clauses:
"You will protect the privacy and legal rights of those users.
If the users provide you with user names, passwords, or other login information or personal information, you must make the users aware that the information will be available to your application, and you must provide legally adequate privacy notice and protection for those users.
If your application stores personal or sensitive information provided by users, it must do so securely
If the user provides your application with Google Account information, your application may only use that information to access the user's Google Account when, and for the limited purposes for which, the user has given you permission to do so.
You acknowledge that your use of such third party applications, data, content, or resources may be subject to separate terms between you and the relevant third party."
References:
http://developer.android.com/training/basics/firstapp/index.html
Summary : Firefox Extensions and Themes
Add-ons add new functionality to Gecko-based applications such as Firefox, SeaMonkey, and Thunderbird.
There are two main types of add-on:
- Extensions add new features to the application
- Themes modify the application's user interface.[UI]
Mozilla operates a repository at addons.mozilla.org, also known as AMO
You don't have to submit add-ons to AMO, but if you do, users can take confidence in the fact that they have been reviewed, and you can benefit from AMO's visibility as a source for useful add-ons.
As a developer one needs to follow a set of guidelines to help ensure that they provide a good experience to users.
There are three different techniques you can use to build extensions:
- Add-on SDK-based extensions,
- Manually bootstrapped restartless extensions
- Overlay extensions.
References:
https://developer.mozilla.org/en-US/Add-ons
Saturday, January 3, 2015
Book Review: "Beginning Responsive Design with HTML and CSS3" by Jonathan Fielding
I was able to quick read about 107 pages an ebook on Beginning Responsive Design with HTML and CSS3 and it was worth it.
The Author Jonathan Fielding has wonderfully compiled the necessary meal required for an aspiring Web Developer.
The book gives you an insight of how well the HTML and CSS have advanced to reduce features once web developers dreamed off considering the complexity of screensize across devices and browsers.
It covers subject knowledge behind Responsive Design across Web Browsers across devices. Some new takeways are the Viewports, additions in HTML5, power of CSS3, limitations of CSS implementation and existing solutions that overcome them.
The book also covers multiple columns, Gradient Panels, Device simulators for Blackberry, Android,FirefoxOS et.,.
The examples are neatly driven that allow a developer to practice as they move.
This has been the best learning curve in understanding the concepts in practice.
I do want to highlight about "Media Queries". It saved me a traditional approach that i had wanted to implement.
I suggest people glance through the book that clearly breaks down logically and architecturally what a thinking developer should understand to save time and effort.
I reached 100+ pages admiring the topic Layouts (Fixed, Fluid and Elastic) and its technical reference and application in designing. I feel really wonderful and its one of my fastest reads. I'd love to finish this book and complete my review.
