coding

penejelasan terkait Migrations dan Query builder

penejelasan terkait Migrations dan Query builder

1.Migrations adalah untuk mengelola perubahan struktur database secara otomatis, seperti membuat tabel, mengubah kolom, atau menghapus tabel. Migrations memungkinkan pengelolaan versi database, sehingga memudahkan update dan rollback. Contoh Laravel: Rollback akan digunakan untuk mengembalikan ke versi dimana kita belum menjalankan migrasi sebelumnyacontohnya: 2.query builder merupakan fitur dalam laravel yang bisa kita gunakan untuk menjalankan sebuah query ke dalam database dengan lebih mudah dan sedeerhana.kita juga bisa menggunakan pagination di dalam query builder.contoh: di dalam query builder untuk melakukan proses inseret data ke dalam datebase kita bisa menggunakan method insert contoh: bisa juga menggunakan format array: juga dapat memperbaarui reccord yang…
Read More
Revolutionizing Business with APIs and AI: The New Era of Digital Transformation

Revolutionizing Business with APIs and AI: The New Era of Digital Transformation

In the ever-evolving landscape of technology, businesses are increasingly embracing two powerful forces: APIs (Application Programming Interfaces) and AI (Artificial Intelligence). These technologies are not just buzzwords but essential drivers of modern business transformation. Together, they are enabling companies to automate processes, personalize experiences, and create innovative products and services at an unprecedented scale. This article delves into how APIs and AI are revolutionizing business operations and ushering in a new era of digital transformation, touching on key areas such as automation, data-driven decision-making, customer experience, and innovation. The API Revolution: Connecting the Digital WorldAPIs have become the backbone of…
Read More
Rsyslog ile Kullanıcıların Bash History Bilgilerinin Log Sunucusuna Yönelendirilmesi

Rsyslog ile Kullanıcıların Bash History Bilgilerinin Log Sunucusuna Yönelendirilmesi

1- Rsyslog Paketinin Kurulması Log paylaşımı yapması istenen linux sunucuda rsyslog paketinin kurulu olup olamdığını kontrol edelim, yoksa kuralım. Debian sistemler için: apt install rsyslog Enter fullscreen mode Exit fullscreen mode RPM tabanlı sistemler için yum install rsyslog Enter fullscreen mode Exit fullscreen mode 2- Rsyslog Yapılandırmasının Yapılaması Standart rsyslog kurulumunda yapılandırma bilgileri /etc/rsyslog.conf içinde ve /etc/rsyslog.d/ klasörünün altında .conf uzantılı dosyaların içinde yer almaktadır. Kullanıcıların komut geçmişlerine erişmek ve yönlendirmek için birkaç konfigürasyonu yapılandırma dosyasına eklememiz gerekmektedir. $ModLoad imfile $InputFileName /home/*/.bash_history $InputFileTag bash_history $InputFileFacility local0 $InputRunFileMonitor local0.* @<hedep-ip>:<hedep-port> Enter fullscreen mode Exit fullscreen mode InputFileName alanı yönlendireilecek dosya veya…
Read More
Thought-Provoking Questions Every Backend Developer Should Ask

Thought-Provoking Questions Every Backend Developer Should Ask

Whenever I embark on a backend development project, I find it essential to ask myself a set of critical questions. These questions help guide my approach to building a system that is scalable, secure, and highly performant. Here are some of the key areas I focus on and the thought-provoking questions I ask to ensure I'm building the best possible solution. 1. API Design & Usability APIs are the backbone of many backend services. They need to be both functional and easy to use, but they also require speed, security, and resilience against abuse. Some of the questions I ask…
Read More
CSS Grid: Building a Responsive Menu

CSS Grid: Building a Responsive Menu

Introduction:CSS Grid is a powerful tool for building highly responsive and visually appealing layouts on websites. One great use case for CSS grid is creating a responsive menu that adapts to different screen sizes seamlessly. In this article, we will explore the advantages, disadvantages, and features of CSS Grid for building a responsive menu. Advantages of CSS Grid: Simplifies layout structure: CSS grid allows for flexibility in layout structure, making it easier to create complex designs without relying on additional HTML markup. Responsive: CSS grid is designed to be responsive by default, making it easy to create a menu that…
Read More
SaSS-ify with Jigsaw Stack

SaSS-ify with Jigsaw Stack

Jigsaw Stack's API provides various services, such as web scraping and LLM prompting. I tried out the web scraping and translation services in a fit of vanity. Wired Japan interviewed me, and I wanted to try Jigsaw Stack's translation service. You can sign up for Jigsaw Stack and create a token to access the services for free. Here's example code to scrape the part of the article about me and translate it from Japan to English. from jigsawstack import JigsawStack, JigsawStackError as err import os, re from dotenv import load_dotenv load_dotenv() api_key = os.getenv("JIGSAW_STACK_API_KEY") jss = JigsawStack(api_key) # scrape the…
Read More
SQL 101: Introduction to Structured Query Language(SQL)

SQL 101: Introduction to Structured Query Language(SQL)

What is SQL? -SQL, or Structured Query Language, is a language designed to allow both technical and non-technical users query, manipulate, and transform data from a relational database. And due to its simplicity, SQL databases provide safe and scalable storage for millions of websites and mobile applications. There are many popular SQL databases including SQLite, MySQL, Postgres, Oracle and Microsoft SQL Server, they all support the common SQL language standard. What is relational database? A relational database is a type of database that stores and provides access to data points that are related to one another. For example, if a…
Read More
SQL ain’t that Scary

SQL ain’t that Scary

Introduction The Stack overflow developer survey ranks SQL as one of the highly desired and admired programming languages. 2024-Rank *What is SQL? * SQL stands for Structured Query Language MYSQL MySQL is a powerful database management system that can be used to store and manage data for a wide variety of applications. It is widely used in web development, e-commerce, and other applications where data needs to be stored and retrieved quickly and efficiently. Other databases similar to MySQL PostgreSQL SQLite MariaDB Oracle Why use MySQL? Open source and free to use Fast and reliable Scalable and flexible and so…
Read More
Transformer in PyTorch

Transformer in PyTorch

Transformer() can get the 2D or 3D tensor of the one or more elements computed by Transformer from the 2D or 3D tensor of one or more elements as shown below: import torch from torch import nn tensor1 = torch.tensor([[8., -3., 0., 1.]]) tensor2 = torch.tensor([[5., 9., -4., 8.], [-2., 7., 3., 6.]]) tensor1.requires_grad tensor2.requires_grad # False torch.manual_seed(42) tran1 = nn.Transformer(d_model=4, nhead=2) tensor3 = tran1(src=tensor1, tgt=tensor2) tensor3 # tensor([[1.5608, 0.1450, -0.6434, -1.0624], # [0.8815, 1.0994, -1.1523, -0.8286]], # grad_fn=<NativeLayerNormBackward0>) tensor3.requires_grad # True tran1 # Transformer( # (encoder): TransformerEncoder( # (layers): ModuleList( # (0-5): 6 x TransformerEncoderLayer( # (self_attn): MultiheadAttention( #…
Read More
Issue 64 of AWS Cloud Security Weekly

Issue 64 of AWS Cloud Security Weekly

(This is just the highlight of Issue 64 of AWS Cloud Security weekly @ https://aws-cloudsec.com/p/issue-64 << Subscribe to receive the full version in your inbox weekly for free!!) What happened in AWS CloudSecurity & CyberSecurity last week September 24- October 01, 2024? Amazon Inspector introduced an upgraded engine for its Lambda standard scanning which offers a more thorough view of vulnerabilities in the third-party dependencies used in Lambda functions and associated layers within the environment. Do note that: with this change, you may observe some findings being closed as the engine re-assesses resources for improved risk evaluation, while also identifying…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.