Skip to content

Instantly share code, notes, and snippets.

View sithumonline's full-sized avatar
🏠
Working from home

Sithum Bopitiya sithumonline

🏠
Working from home
View GitHub Profile
  1. Assign a object to constant.
  2. Print keys and values of the object like below.
    key ~> value
  1. Create empty array.
  2. Push random numbers to that array.
  3. Print the array.
> deno run -A --unstable --node-modules-dir npm:next dev >> deno-err.log
warn - Invalid next.config.js options detected:
- The root value has an unexpected property, type, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
- The root value has an unexpected property, url, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, e

ABSTRACT

Social media, which is used by most individuals, has become an integral part of modern lifestyle. However, these social networks use centralized servers to store user data, which is an approach shown to have many disadvantages such as users having no control over their data or the platform they use. This proposal presents a decentralized social network that utilizes the user's device as storage, while ensuring that data remains secure and authentic, with complete control over user data residing with the user. Furthermore, the implementation of a user data decentralization protocol, along with the design and deployment of a client application capable of seamless communication with other network peers via the decentralized protocol, form the central components of the proposed solution. This protocol is designed to not only be used in the proposed social network, but also to be used in other decentralized systems, such as distributed applications, and other decentralized sharing platforms. RPC sty

Background literature

Social media has become an integral part of modern life. Today, there are numerous social networks, such as Facebook, WhatsApp, Instagram, Twitter, and others, and their usage continues to grow [1]. These platforms enable users to connect with others, share information, and stay updated on global events. The popularity of social media can be attributed to various factors, including the need for connectivity, real-time updates, entertainment, and the ability to express opinions. Additionally, businesses have shifted their marketing strategies towards online platforms, targeting specific audiences [2]. Centralization of these social networks has led to various problems, which have recently become hot topics such as the spread of false news, misinformation, privacy concerns, and the lack of regulation [3]. To address these challenges, people have turned to Web 3.0 technologies, which offer potential solutions within the decentralized framework. The progression of Web 3.0, driven by the

Case for Using NewSQL over RDBMS & NoSQL

Timeline of NewSQL databases:

graph LR
    A["Google Spanner
     2012"] --> B["CockroachDB 
     2015"]
 B --> C["YugabyteDB
const kdbush = require('kdbush');
const geokdbush = require('geokdbush');
const haversine = require('haversine-distance');
// Example train track points as 2D vectors (longitude, latitude)
let track_points = [
[longitude1, latitude1],
[longitude2, latitude2],
//...
];
@sithumonline
sithumonline / jina.py
Created September 17, 2024 09:27
jina.ai reader-lm
#https://colab.research.google.com/drive/1wXWyj5hOxEHY6WeHbOwEzYAC0WB1I5uA?usp=sharing#scrollTo=lHBHjlwgQesA
from vllm import SamplingParams
from vllm import LLM
import re
import requests
from IPython.display import display, Markdown
from vllm.distributed.parallel_state import destroy_model_parallel, destroy_distributed_environment
{
"last_node_id": 88,
"last_link_id": 142,
"nodes": [
{
"id": 80,
"type": "ToBasicPipe",
"pos": {
"0": 509,
"1": 445