How to Authenticate Users: JWT vs. Session

How to Authenticate Users: JWT vs. Session

Blog
In web applications, you try to decide when to use either JSON Web Tokens (JWTs) or sessions (cookies) for authentication. When you browse the web you use HTTP, which is a stateless protocol. So, the only way to remember the states of your application is using either sessions or tokens. Goals This article deep dives into: Differences in using sessions and JSON Web Tokens for authenticationHow server-side session store worksAdvantages of sessions over JWTAdvantages of using JWT and other things concerning the structure of JWT. JWT vs. Session: What to Use? Deciding to choose between JWT or session is not just choosing one over the other. You need to look at some factors to determine which one to use in an application. In order to figure this out, you need…
Read More
Social Media Image Sizes

Social Media Image Sizes

Blog
Facebook Image Sizes With 1.18 billion monthly active users, Facebook is the world’s largest social network. One bad image choice could spell the difference in attracting and engaging with this huge user base and being completely ignored. One thing to remember when choosing your photos is that there is a difference between how things will display on your personal timeline and how things will display in a user’s news feed. Make sure that you are choosing dimensions based on where you want the majority of viewers to see your image. Profile Picture: 180 x 180 (Displays 170 x 170 on Desktop) Say cheese: this is going to be the photo representing you or your brand on Facebook. This is the square photo that appears on your timeline layered over your…
Read More
[DZ] E Payment –  Société Générale Integration And Transactions Fees

[DZ] E Payment – Société Générale Integration And Transactions Fees

Blog
Membership & Main Features Fees (HT) Member ship fees : 50000 DZDIntegration slot openning fee : 10000 DZD / DaySATIM Testing resources access fees :5000 DZD / Day6000 DZD / Hour (when opened on non business hours) Yearly Subscription fee (based on transactions amount) :0 to 1000 operations : 0 DZD1001 to 10000 operations : 10000 DZD 10 001 to 50 000 operations : 50 000 DZD 50 001 to 100 000 operations : 100 000 DZD More then 100 001 operations : 150 000 DZD Other Fees (optional) :Merechant Website Audit : 100000 DZDNew VPT Integration : 50000 DZD / Year Transacyions Based Fees : Operation TypeOperation TotalComission HTComission TTCIntra Bank (SGA cards)ANY1011.9Inter Bank (NON SGA Cards)100 to 5000 DZD1011.9Inter bank (NON SGA Cards)More Then 5000 DZD0.7%RELATIVERefundANY89.52 Miminum Operation…
Read More
SSH Tunneling Explained

SSH Tunneling Explained

Blog
https://www.youtube.com/watch?v=AtuAdk4MwWw This video is mainly about different techniques about how to use SSH tunneling serving and maintaining access when not possible . i am actually adding this video particularly because of the graphic approach followed explaining how communication in the internet work , more precisely , IP PORTS . Types of Port Forwarding SSH's port forwarding feature can smuggle various types of Internet traffic into or out of a network. This can be used to avoid network monitoring or sniffers, or bypass badly configured routers on the Internet. Note: You might also need to change the settings in other programs (like your web browser) in order to circumvent these filters. There are three types of port forwarding with SSH: Local port forwarding: connections from the SSH client are forwarded via…
Read More
MySql :  Understanding Generated Columns

MySql : Understanding Generated Columns

Blog
The Theory Generated Columns is a feature released on MySQL 5.7. They can be used during CREATE TABLE or ALTER TABLE statements. It is a way of storing data without actually sending it through the INSERT or UPDATE clauses in SQL. The database resolves what the data will be. There are two types of Generated Columns: Virtual and Stored. They work with: mathematical expressions (product_price * quantity)built-in functions (RIGHT(), CONCAT(), FROM_UNIXTIME(), JSON_EXTRACT())literals (“2”, “new”, 0) Besides that, they can be indexed but they don’t allow subqueries in it.A Generated Column works within the table domain. If you need subqueries on a particular column, you may have to look at Views. The basic example As an example I am going to use an e-commerce database as based on my past experience…
Read More
Quantum Computing Primer

Quantum Computing Primer

Blog
What you will learn By following through the material in this primer, you will learn: How quantum physics gives us a new way to computeThe similarities and differences between quantum computing and classical computingHow the fundamental units of quantum computing (qubits) are manipulated to solve hard problemsWhy Quantum Computing is well suited to AI and machine learning applications, and how quantum computers may be used as 'AI co-processors' SECTION 1 1.1 - Conventional computing To understand quantum computing, it is useful to first think about conventional computing. We take modern digital computers and their ability to perform a multitude of different applications for granted. Our desktop PCs, laptops and smart phones can run spreadsheets, stream live video, allow us to chat with people on the other side of the world,…
Read More
Efficiently delete a million files on Linux servers

Efficiently delete a million files on Linux servers

Blog
It happens to the best: some script rockets to the skyline resulting in an instand system administrator headache because some folder - typically, sessions - was stuffed with millions of files. Linux is not quite happy with that, deleting the folder is not an option and the loyal "rm -rf" command decides to call it a day. To make things even worse: you want to remove only files of some days ago... what are the options? Find is you friend The Linux "find" command is a possible solution, many will go for: find /yourmagicmap/* -type f -mtime +3 -exec rm -f {} \; The command above will give a list of files older than 3 days and will pass each found file to the rm command. The rule above has…
Read More
The Secrets to Staying Motivated as a Software Developer

The Secrets to Staying Motivated as a Software Developer

Blog
“I don’t want to code this.” “I don’t care anymore.” “Why am I still working here?” That feeling when coding a simple “for” loop seems unbearable. You know you love programming, but it has become boring, frustrating and even painful. You see your coworkers busily at work around you, and you don’t understand how they can stand it anymore. So what happened? How do you move on? How do you keep motivated? Understanding Your Intrinsic Motivations You might not loathe programming yet. But if you’re having doubts about your job, and you’re not doing anything about it, it can only go downwards. Why do you go to work? Like (almost) everyone, your first motivation is probably money. You need money to make a living. However I bet that more money won’t…
Read More
PHP MVC Framework Showdown: 7.1 Performance

PHP MVC Framework Showdown: 7.1 Performance

Blog
A simple performance comparison of 6 PHP MVC style frameworks using PHP 7.1. Test Kit: php-framework-benchmarkTest Server: Digital Ocean Ubuntu 16.04.1 x64 2gb / 2CPU droplet.Test Software: PHP 7.1.0, Apache 2.4.18 I used a minimal installation of PHP and Apache with no additional configurations or sever settings changed. Overview The benchmark tool kit executes a simple “hello world”, it does this with the frameworks minimal settings, no database, no debugging and if possible, no template engine. Read more about the testing on the benchmark tool kits page. Results Out of the 6 frameworks tested Codeigniter 3 produced the most requests per second and the least memory usage. Zend Framework 2.5 produced the least requests per second and Laravel 5.3 produced the most memory usage. No framework: 7,094 requests per second,…
Read More
The 5 Skills You’ll Need to Land a Web Dev Job

The 5 Skills You’ll Need to Land a Web Dev Job

Blog
Here at TechLaunch, we take a no-nonsense approach to web dev. We don’t waste time with excessive theorizing, learning about “legacy” technologies, or spelling out the “elopment” in web development. Our students come to us to help them get into new careers, so we focus on the only things that truly matter: the skills that employers are actually looking for in the 2018 job market, like for example how TikTok algorithm works. We work with dozens of small, medium, and large-scale employers here in Miami, and have placed students in web dev positions throughout the city. Through extensive conversations and in-depth hiring processes, we have determined that there are five major skills that employers are looking for in junior web developers. So without further ado, here are the five skills…
Read More