Showing posts with label Developers news. Show all posts
Showing posts with label Developers news. Show all posts

Monday, 8 October 2018

Base64 (Complete Guide For Images Encryption)

Base64 and image files


For those who don’t know base64 it’s an encoding format for any data. In that case with the images we can simply say, that base64 equals to text (string) representation of the image itself. In most cases you’ve image tags with src attribute pointing to the http source of the image.

Overview of the problem


Let’s say we’ve a HTML document with 100 images into. That’s a rare case I agree, but sometimes it happens. You’ve to preload the thumbnails of an image gallery where only one image is displayed in a bigger size. As I mentioned before the progressive JPEG suits better for a large image but for the thumbnails you’ve to use baseline JPEGs.

Note: In fact the technique with base64 representation of the images is not well known. I think that’s because there are not so much examples with pages with more than 100 images.

But anyway. We’ve the HTML document with 100 images (100 <img> tags). That means directly 101 requests/responses from the server. In my tests on my localhost, which is supposed to be fast enough, that case loaded 2 MB with a simple small JPEG for the image, loaded 100 times, and approximately 3 seconds. Which yet again on the localhost is extreamly slow. The image is on my machine, the server is here… what else?

How to put the images inline?


The other way to do that is to put all you images in you HTML document. Than the first and more important rule for optimization (see more here), to make fewer requests is done. You now have only one request. And with the response you’ve all 100 images. That’s good when you’ve different images, cause every repeatable element in your CSS should be made with HTTP request once and than repeated with the CSS. In other way you risk the size of the document transfered in the web.

The results


The second case with the inline images and the only one request is giving me an average response time of 900ms. The size of the document is bigger, yes. I had 5KB for the HTML with no base64 images, and then the size increased to 45KB. That’s 9 times more. But however 45KB is nothing for the web, instead of all those 2 MB in the previous test.

How to make your images to strings?


Speaking in PHP terminology there is a function called base64_encode, which with a combination of file_get_contents(imagefile), make the files a base64 string.

Is there any issue?


Yes there is. First you cannot have your image files in a remote server, cause file_get_contents must read only from the local filesystem. Than if you process all those files before returning them to the client, where’s the point? You lose all that time you’ve spent with the technique.

The reasonable solution


I think this technique is good for cases like the one described at the beggining. You’ve a page with more than 100 images. Then you’ve the base64 representation already. Let say you have it in your database as string and don’t need to convert it everytime you return the image. That may happen on upload of the image and the image enters the database with its base64 representation, and it’s done.
Share:

Vulnerability Assessment (Short Guide)

Vulnerability assessment is a methodology that acknowledges and classifies the security bugs in a pc, network, or infrastructure.

Some type of automated scanning product is used to look at the ports and companies on a vary of IP addresses. Most of those merchandise can even check for the kind of working system and utility software program operating and the variations, patch ranges, consumer accounts, and companies which can be additionally operating.

These findings are matched up with related flaws within the product’s database. The remaining consequence is a giant assortment of reviews that current a record of every system’s flaws and corresponding countermeasures to lower the related risk. Essentially, the software states, “Here is a record of your bugs and right here is a record of issues it’s good to do to repair them.

The drawback with simply relying upon this outcomes is that it was generated by an automatic software that has a arduous time placing its findings into the right context of the given atmosphere

For instance, many of those instruments current an alert of “High” for vulnerabilities that don’t have a extremely possible risk related to them. The instruments additionally can not perceive how a small flaw can be utilized in a giant organized . Vulnerability evaluation is nice for recognizing the foundational security points inside an atmosphere, however many occasions, it takes an moral hacker to essentially check and qualify the extent of threat particular vulnerabilities pose.
Share:

Google dorks (Specific File(s))

Depends entirely on what you are looking for, here are some:


"favorite links" Keyword(s)


"favorite links"


"favorite sites" Keyword(s)


"favorite sites"


"Keyword(s) sites"


"Keyword(s) website"


"Keyword(s)"


"list * Keyword(s) * sites"


"list * Keyword(s)"


"list of Keyword(s) sites"


"list of Keyword(s)"


"recommended links" Keyword(s)


"recommended links"


"recommended sites" Keyword(s)


"recommended sites"


directory * Keyword(s)


intitle:directory "Keyword(s)"


inurl:directory "Keyword(s)"


Keyword(s)


Keyword(s) * directory


Keyword(s) catalog


Keyword(s) directory


Keyword(s) sites


Keyword(s) websites |Keyword(s)


Keyword(s) websites

Share:

Full-stack Web Developer (Complete Guide)

Summary: a full-stack web developer is someone who has honed skills in both front-end web design/development and back-end/server coding. You can count on a full-stack web developer to design, code, implement and maintain a fully functional modern interactive website on his/her own (not just a static website with a few pages).

Full-stack Web Developer


With the ever evolvement of the almighty World Wide Web, new job functions are created virtually every day. Just a few years ago, you only needed a web designer to create the visual design in Photoshop and/or Dreamweaver and a web developer to code the front-end/back-end scripts and the website was ready to go. At that time, websites were charged based on the number of “pages” (a concept borrowed from print design).

Fast forward to the present, we now have (not a exhaustive list) :

  • visual designer

  • web designer

  • UI designer

  • UX designer

  • interaction designer

  • art director

  • front-end developer

  • back-end developer

  • web developer

  • mobile developer

  • database developer

  • database administrator

  • web master

  • web server administrator

  • SEO specialist

  • web analyst

  • web security professional

  • quality assurance tester

  • project manager

  • growth hacker



Several roles may be taken up by the same individual depending on the size of the company and the resources. Very large and profitable companies may gather experts from each field in their teams with a view to create the best-ever-possible web products of the world.

But normally, in the down-to-earth company, the web designer/developer distinction still applies. The web designer will be responsible for the visual/web/UI/UX/interaction design while the web developer will do the front-end coding/back-end coding/database administration/server setup/debugging/etc. However, problems always occur in areas when the two have to work together yet only either one takes responsible. Factors like miscommunications/false assumptions of job role and scope/misunderstanding of the technology/etc. will render the end product a subpar one.

This is where a full-stack web developer can fill the gap. A full-stack web developer masters the best of both worlds (or to a minimum understands both worlds). (S)He will be able to steer the web projects in the right direction utilizing the best practices and latest advancements in the technology. (S)He will design and code the whole web project themselves or supervise others to perform the tasks by overlooking the whole process from scratch to finish.

When websites and web applications become more and more interactive and sophisticated, understanding the technical capabilities of the systems and having an eye for artistic/usability judgement are critical to the success. So it is natural for web professionals to evolve to full-stack web developers in due course.
Designers will become more like programmers as programming becomes more like design.

However, designing and coding are two distinct skills that require different regions of the brain to master . The right brain is for visual and creativity and the left brain is for structure and organization. Designers are predominately right-brainers while coder left-brainers. So there is still only a handful of full-stack web developer on the market .

Benefits of Being a Full-Stack Web Developer



  1. You can build a professional website from scratches for your employer.

  2. You can be a competent member in cross-functional Agile teamswhere you can perform both front-end and back-end development. As Agile project management is fast becoming the norm for web application development and UI/UX is gaining in importance for the success or failure of any web application, you will be seen as a valuable team member contributing to the success of projects.

  3. You can start your own website design and development business.

  4. You can build your own websites and monetize them through Adsense, affiliate marketing, selling your own products and more. The best of this is the flexibility of earning extra money alongside your regular job. There are many great examples of web developers turning this business into a career and quitting their regular jobs.

    • as an example, you can utilize your knowledge in web development to help others to select the most suitable website hosting plan with an earning of US$85 per referral.

      • Click here to join the A2 Hosting affiliate program for freeFor a limited time, you will get US$10 upon signing up (there is a earning threshold of US$100 (i.e. 2 referrals) before they will send you the money). You will need to have a website to be eligible for the program.

      • Don’t worry if you don’t have a website, you can get unlimited hosting for a monthly fee as low as US$3.89 (with use of coupon code: WHTPRIME, please activate the discount here and click “Web Hosting” on the menu bar).





Share:

Computer Strain (Save you eyes and Future)

No more watery eyes, when you wake up from sleep in the middle of the night to work on your bright computer screen. Your eye savior, f.lux is here. First things first, what is f.lux and why do you need it?


 


Why do you need f.lux ?


Decreasing the brightness is not that attractive an option, because the blue light emissions from your screen is still significant enough to well up your eyes with water and completely ruin your sleepy state. It is proven that exposure to blue light significantly aids in keeping you awake for a longer time in the night.

To get to the science behind it, here’s why. Most of us don’t know this, but there is another kind of receptor cells beside rods and cones in our retina. It’s called Melanopsin. The discovery was made about 15 years ago. Melanopsin is sensitive to narrow band of blue light in 460-480 nm range. Melanopsis works different functions for different creatures, but that’s another story.

There are two things I’d like to recommend to your reading list to get more information about melanopsin and effect of blue light on sleep:

1) Internal Time by Til Roennberg

2) Research Papers and articles – link

What is f.lux what does it do?


f.lux is a desktop applet for Windows, Linux, Mac, iPhone, iPad and iPod touch which limits the glow of your screen. Instead, it replaces that with a warm tone. There is no problem for your eyes not to feel comfortable on the screen in the morning. The daylight is sufficient and doesn’t let your eyes feel the glow that the screen throws. But say at 11 PM while you are, say trying to work late after sneaking on your father or wife, you power up your computer and you get instantly taken back by the brightness!

You can reduce the brightness and contrast to a certain extent, but there is a limit to which you can go without compromising your experience. f.lux comes to rescue here. It automatically switches to a warm tone at night and goes back to a brighter shade in the morning.

Don’t worry as it uses only 3.86MB of RAM approximately, is completely free, has no CPU load and works like a charm without any user interference. The working is also fairly simple. You can also customize the way it works, especially how warm you want your screen to be at night.

How to use f.lux to save your eyes?


It does the work by calculating your present location (through google maps)and works according to the sunrise/sunset cycle. The f.lux indicator applet automatically manages the color temperature of your screen based on your latitude and longitude, or if you are in the US, your zip code.



 

In the preferences panel, you can set your preferred night-time color temperature and see a preview, as well as seeing the current color temperature.

 





You can even pause the applet if you want to:



You can download f.lux for windows here and for Mac here.
For iPhone, iPad and iPod Touch you need to jailbreak your device in order to install it. You can follow the instructions here.

To install f.lux on Linux (Ubuntu) open up the terminal and copy paste the following commands one by one.



If you are having an error in adding the ppa (the first command), follow this link to troubleshoot it.

The Linux GUI of the f.lux applet doesn’t provide as much customizing options as that of the other platforms, so if you are interested in adding features to it, you could do it on its open source code on GitHub.

If you have any other query regarding f.lux, comment your queries below. Do share your experiences.
Share:

Friday, 5 October 2018

[latest] how many google ads is allowed per page

For the last years there was a restrict limitations for
the number of allowed AdSense ads on a single page:
It was 3 ads for content units and 3 ads for link units.
(Some premium partners were allowed to serve up to
6 ad units)
In August 2016 Google updated this policy
You can now place an unlimited amount of AdSense
ads on a page following the recommendation:
This mean that all ads on your site, no matter if they
are based on AdSense or not, are taken into account
for the maximum number of allowed ads on a single
page.
There is no longer a strict number of ads limitation.
Its more important that you have no more ads on your
site than visible content.
An example:
Having more than 2 visible ads at the same time on a
mobile device is too much because this the would
highly likely exceed the visible content and would lead
to a bad user experience.
On the other hand on a large desktop monitor or tablet
it is ok to show 2 or more ads as there is more
available space.
How can you know if ads exceed your content?
“Should not exceed your content” sounds more like a
rule of thumb but we think you are on the save
side when you estimate the total space of your ads on
a single page and than compare it with the total
space of your content. You can also ask friends and
visitors if the ads on your site are irritating or not.
So you get a feeling about what is ok and what not. If
the user experience is fine and the total amount of
ads are not preventing a visitor from enjoying and
reading the content you should be fine.
How many AdSense ads are recommended?
Although there is no ad limit restriction and no upper
limit you should be aware of very short posts on your
site. Using a plugin and generating ads automatically
on all your posts could lead to a very bad user
experience and spamming of your own short posts
with a huge number of ads which quickly exceed the
total content.
To prevent this we recommend that you check your
short posts carefully and consider if the total visible
amount should be reduced. If you are using WP
QUADS you can easily do this by deactivating specific
ads on a single page:
If you are showing too many ads on a single page
you could run into less or no visible ads on your site.
“We may limit or disable ad serving on
pages with little to no value and/or
excessive advertising until changes are
made.”
So we suggest you keep less than 5 ads per page. We
usually enable 3 or 4 ads on our pages.
But you should do some testing:
Sometimes 2 ad units perform better than 3 ad
units.
Placing ads above the fold leads to better
performing.
A combination of text and image ads perform
better.
Anyway, this limit should be correlating to your own
website layout. If you have a lot of content and a huge
site it could be ok to enable more than 5 ads on your
site. The only thing that matters is the user
experience. Keep that always in mind!
How many AdSense ad units are you using on your blog?
As Google has lifted the 3 ads limit are you using more
AdSense ad units or do you retain to the previous
ad limit?
Share:

steemit was hacked! say No

[slide-anything id='84']

Steemit is a God secured platform, Yes we all
know that. But there are some things we do that
put our steemit account in danger of getting
hacked.
However, Today I will be introducing you to
various ways to protecting your steemit account
from getting hacked.
It is certain that if your steemit account should
be hacked, it is from you.
Ways in which hacker explore their target:
Operating System (OS) vunerabilities.
Bugged mail messages.
network sniffing.
physical abuse.
How do you prevent your account from been
hacked:
Note: your steemit account password is already
strong enough, so you will not be needing a
new password.
1. Get two step gmail verification
Two step verification is obviously one of
the latest security measure on gmail,
whatsapp etc. This help to reduce the risk
of your gmail account getting hacked, as
70% of steemit user would prefer to hide
there password on there account, to avoid
the stress of retyping there password often.
2. Getting your Operating System up to date
Have you ever imagined why windows
keep releasing newer version of there OS,
from time to time?
Have you ever thought on, why do we
have various versions of windows?
This is because of various threats noticed
in the previous version.
Therefore, using a non up to date OS, gives
your attacker almost a easy access to your
account with just a few hit on metasploit or
even smaller tools.
3. Use a trusted antivirus
Anti virus plays a large role in keeping
your system or device out of troubles such
as virus, worm, trojan etc.
However, Bitdefender or kapersky might
really be a good choice. So:
a) Do yourself a favour of getting one.
b) Ensure you scan all mail from all
unidentified and untrusted senders.
4. Never entrusted your device to a stranger
Human been can never be predicted, we
can be bad, good, weak, strong or even
evil.
the bad guy will not label there head with
'I am a bad guy'.
Therefore, trust nobody, security is your
right, is your role.
HAPPY STEEMING!
Share:

Saturday, 8 September 2018

How to Hack & Secure a Wireless Network (Complete Guide)

Wifi stands for Wireless Fidelity, Its a device that performs the functions of a router but also includes the functions of a wireless access point and a network switch.
They are commonly used to allow access to the Internet or a computer networks without the need for a cabled connection. Wifi is commonly used in airports , Offices etc

How Wifi Works?


The working of Wifi is pretty simple to understand. The components of wireless network includes a communication device such as a laptop or a cell pone etc, a router and internet connection
The communication device which has a wireless compatibility ( laptops )converts the data in the form of radio waves and transmits it to the router, through an antenna. The router receives the signal and decodes it. The router sends the information to the Internet using a physical, wired Ethernet connection.

The reverse communication follows the same ( i.e) the router receiving information from the Internet, translating it into a radio signals and sending it to the computer’s wireless adapter.

What’s the Risk?


Security is an important part of a home wireless network. If you set your router to create an open hotspot, anyone who has a wireless card will be able to use your signal. And he/she will be able to use your internet connection .

To protect and keep our internet private we can use one the following encryptions

WEP


Wired Equivalent Privacy (WEP) is a weak security algorithm for wireless networks. Its intention was to provide data confidentiality comparable to that of a traditional wired network. WEP, recognizable by the key of 10 or 26 hexadecimal digits, Its widely in use and is often the first security choice presented to users by router configuration tools.
Although its name implies that it is as secure as a wired connection, WEP has been demonstrated to have numerous flaws and has been deprecated in favor of newer standards such as WPA2.

WPA And WPA 2


WPA (Wi-Fi Protected Access) and WPA2 (Wi-Fi Protected Access II ) are two security protocols for wireless networks from the Wi-Fi Alliance that was developed to provide a migration from WEP.
The Alliance defined these in response to serious weaknesses researchers had found in the previous system, WEP

But these encryptions can also be broken , The following demo shows us how easy it is to crack WEP Keys.

 How to Secure Your Wireless Network


1. Never use WEP as your encryption type, always use WPA Or WPA 2 as your encryption type.
2.Use strong passwords , which can not be cracked easily by using a dictionary attack or brute force attack.
3. Always Use a Vpn when your using pubic Wifi hotspots.Hope this Information Helps You , For further doubts and clarifications please pass your comments
Share:

Sample Text

Copyright © Promoting Unique Content | Powered by Blogger Design by ronangelo | Blogger Theme by NewBloggerThemes.com