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 authentication How server-side session store works Advantages of sessions over JWT Advantages 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…
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