Giter Club home page Giter Club logo

blog's People

Contributors

afman42 avatar aldy505 avatar arnoldart avatar artileda avatar bulukucing avatar elianiva avatar grenzgou avatar herlangga72 avatar iamyuu avatar jason-wihardja avatar kawaii-ghost avatar krowter avatar lamualfa avatar linefile avatar mahesads2408 avatar natserract avatar oktak avatar opakholis avatar raywp avatar rijalbinhusen avatar rimzzlabs avatar ronnygunawan avatar rubichandrap avatar subekti02 avatar vmasdani avatar wahidinaji avatar youkwhd avatar yuxxeun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

blog's Issues

feat: AdSense

Halo, maintainer.

Aku kemarin baca artikel kalo blog nya mau di terima adsense, ada berapa hal yang perlu dipastiin.

  • Responsive (mobile friendly)
  • Punya halaman Privacy Policy, Term of Use, Disclaimer

Contoh web:

Referensi:

article: .NET Series

Part 1:

  • Dependency injection
  • Repository pattern

Part 2:

  • Encapsulation
  • Data validation
  • Wrong DRY practices

Part 3:

  • DDD
  • Clean architecture

Part 4:

  • Blazor

Part 5:

  • Microservices

Part 6:

  • Orleans

Bug: website doesn't work correctly if cookie is disabled

I get this console error whenever I open a blog post with cookies disabled:

framework-2191d16384373197bc0a.js:1 
DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at R (https://teknologiumum.com/_next/static/chunks/pages/posts/%5Bslug%5D-403e3460e620a95d45a6.js:1:22273)
    at ro (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:60216)
    at Hu (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:112674)
    at Pi (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:99848)
    at xi (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:99776)
    at _i (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:99639)
    at vi (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:96605)
    at https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:45984
    at t.unstable_runWithPriority (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:130375)
    at Wl (https://teknologiumum.com/_next/static/chunks/framework-2191d16384373197bc0a.js:1:45761)

Solution:

Check whether we can use localStorage or not before using it

article: random ideas from telegram

  • intermediate sql materials (inner join/outer join, dll, transaction, subquery)
  • apa itu deadlock dan gimana cara hindarinnya
  • git flow, gimana cara kerjanya, benefitnya apa

rfc: directory structure

this is just a proposal, if you have a better idea, please do let us know

.
├── src
│  ├── routes               - Literally the pages
│  ├── layout               - Oh come on
│  ├── components           - Reusable components
│  ├── lib                  - Internal libraries
│  └── utils                - Utilities
├── content                 - Markdown files, categorized by year
│  ├── 2021
│  └── 2022, and so on forth
└── static
   └── images               - Pictures/screenshot (if any) to be referenced. 

cc @elianiva

kayaknya aku gabisa ngoding sampe pertengahan minggu depan, banyak kerjaan mulai numpuk lagi

Add Mastodon as one of socials for Author Card

Currently we have GitHub, Telegram, and Twitter on every author card just below the author's name in every blog post.

Now since some people are moving to Mastodon to expand their audiences, or because some people prefer Mastodon as it's more FOSS than Twitter (or for whatever reason), we should support it.

We should add another prop on the AuthorCard component, the value should be @username@host. For example: @[email protected]. The link then should be parsed to https://hachyderm.io/@mustafasegf.

export function AuthorCard(props: AuthorCardProps) {

One edge case: It should also handle multiple @ (at) points. Like @[email protected]@social.gnuweeb.org, it should be parsed to https://social.gnuweeb.org/@[email protected]

Featured post implementation

Current featured post is a placeholder. Replace this with the latest post (by date) from the list of articles.

image

feat: implement analytics

  • use Supabase's Postgres to store data (I'll sign up for that later using the org's email)
  • use Prisma (don't know if its gonna be overkill or not lol) or just regular pg-promise
  • use Vercel's serverless function to create the API

Avoid flash of default theme

Currently, user will see light mode for a split second before the dark mode applies on page reload/visit. The reason is there’s a pause after user visits the page until the dark mode script runs.

There’s probably an off-the-shelf library that takes care of the flash like next-themes. Or since we already have the logic for setting dark mode, the final stretch is to move it to a <script> tag before the <body> as outlined in https://hangindev.com/blog/avoid-flash-of-default-theme-an-implementation-of-dark-mode-in-react-app

feature request: comments!

implement this: https://giscus.app/

why Github Discussions over Github Issues? biar rapih aja. let discussion be discussion and let issues be the place to report bugs and talk about the source code rather than the blog contents

cc @lamualfa minta tolong di install ke repo ini ya pak

darkmode theme

image
Please add the darkmode mode , because the lightmode is a bit dazzling in the eyes

Hall Of Sponsors

List of people who give financial aid to Teknologi Umum through GitHub or Saweria.

article: Big O notation Part 2, 3, dst

Part 2:

  • O(1), O(n), O(n^2), O(n^3) in real algorithm
  • Deep dive into O(log n): O(n) to O(log n) optimization (binary search, interpolation search)

Part 3:

  • Deep dive into O(1): hash map, hash table, bloom filter, programming challenge that can be solved in O(1) using math

Part 4:

  • Sorting algorithms, database indexing

Migrate to Next v13

We're using Next v12 with Node v16 currently, which is pretty old. We should migrate to newer version of next and bump the version of the rest of the dependencies that we use to make the blog up and running.

fix article card height

Currently the post card displayed is uneven. This is because there are different amount of topic badges. Ideally they should all have the same height.

Several possible solutions:

  • limit the topic badges, eg: max 2 badges for each post card
  • make the card height to be the same, although the result may look awkward since there will be too much empty space
  • make the topic badges horizontally scrollable
  • etc

image

security: Client-side URL redirect

<Link href={`/${contentType}/${slug}`}>

Redirecting to a URL that is constructed from parts of the DOM that may be controlled by an attacker can facilitate phishing attacks. In these attacks, unsuspecting users can be redirected to a malicious site that looks very similar to the real site they intend to visit, but which is controlled by the attacker.

Recommendation

To guard against untrusted URL redirection, it is advisable to avoid putting user input directly into a redirect URL. Instead, maintain a list of authorized redirects on the server; then choose from that list based on the user input provided.

Example

The following example uses a regular expression to extract a query parameter from the document URL, and then uses it to construct a new URL to redirect to without any further validation. This may allow an attacker to craft a link that redirects from a trusted website to some arbitrary website of their choosing, which facilitates phishing attacks:

window.location = /.*redirect=([^&]*).*/.exec(document.location.href)[1];

References
OWASP: XSS Unvalidated Redirects and Forwards Cheat Sheet.
Common Weakness Enumeration: CWE-79.
Common Weakness Enumeration: CWE-116.
Common Weakness Enumeration: CWE-601.


security alert from codeql

fitur copy di tag code

select itu apa. kita harusnya bisa kopas sekali klik wkwkwk. kontent tentang panduan biasanya bikin gregetan pas kita select wkwkwk.

Create a post article!

This is an easy Hacktoberfest PR that would likely be accepted by the Hacktoberfest team. And this should comply with the Hacktoberfest's quality standard.

Simply create a post article about anything, whether it's tech-related or not. Share your knowledge! Tell us your experience of using something! Tell us a story about how you went through a coding interview! Anything would be accepted as long it's not against the law.

A few resource to keep you up and running about Pull Requests:

Feature: Print

jadi ane bikin printnya lebih make sense karena sebelumnya white space dan beberapa yg harusnya nggak perlu di print ke print.

ada problemnya:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.