Creating Interactive Visualizations with Bokeh

There have been many examples of useful and exciting data visualizations for a variety of topics and applications. In [1]: from IPython.display import IFrame, HTML from IPython.core.display import display display(IFrame(“http://demographics.coopercenter.org/DotMap/index.html”, ‘800px’, ‘600px’)) In [2]: display(IFrame(“http://www.nytimes.com/interactive/2014/07/31/world/africa/ebola-virus-outbreak-qa.html”, ‘800px’, ‘600px’)) Most of these invlove directly coding JavaScript. Not everyone enjoys writing JavaScript. In [53]: ar.contours(plot, title=”ISO Contours”) show() In [1]: from IPython.core.display… Continue reading Creating Interactive Visualizations with Bokeh

League of legends crawler

primary site for this project: https://tracker.gg/lol This crawler is built using selenium using the firefox webdriver In [1]: from selenium import webdriver from selenium.webdriver.firefox.service import Service as FirefoxService from webdriver_manager.firefox import GeckoDriverManager from selenium.webdriver.common.by import By In [2]: driver = webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install())) driver.get(“https://tracker.gg/lol/leaderboards/stats/all/LeaguePoints?region=NA&queueType=RANKED_SOLO_5x5”) driver.implicitly_wait(3) [WDM] – Downloading: 19.0kB [00:00, 2.11MB/s] North America Leaderboard In [3]: na_leaderboard = driver.find_elements(By.TAG_NAME, ‘tr’)… Continue reading League of legends crawler

Routing, Arbitrage

Chapter 8 of Real World Algorithms. Panos Louridas Athens University of Economics and Business The Bellman-Ford(-Moore) Algorithm The Bellman-Ford(-Moore) algorithm is an alternative to Dijkstra’s algorithm for finding shortest paths in graphs. The basic idea is that we find the shortest paths from a start node to other nodes by using 1, 2, $n$ links,… Continue reading Routing, Arbitrage

Lines, Paragraphs, Paths

Chapter 7 of Real World Algorithms. Panos Louridas Athens University of Economics and Business Dijkstra’s Algorithm Dijkstra’s Algorithm finds the shortest path from a given node to other nodes in the graph. It works by using a priority queue where it stores path distances. Initially all distances are set to $infty$ apart from the distance… Continue reading Lines, Paragraphs, Paths

Published

How To Add Failover Ip On Centos 8

Snippet 1 #Run ifconfig to find out the devices(base) ➜  ~ ifconfigeno1: flags=4163  mtu 1500     …#Notedown the device name and then run following command…sudo ifconfig eno1:0 netmask 255.255.255.255 up#Test your IP by pinging it…ping    Similar Snippets How To Add Failover Ip On Centos 8 – centos 8 Copyright © Code Fetcher 2020  … Continue reading How To Add Failover Ip On Centos 8

Published

Bias and Variance

Similar Notebooks bias and variance 8 linear regression penalized regression Copyright © Code Fetcher 2022 Code Fetcher Python Pandas Vlsi Notebooks Machine learning class support material, Universidad Nacional de Colombia, 2013 The purpose of this notebook is to illustrate the bias-variance trade-off when learning regression models from data. We will use and example based on… Continue reading Bias and Variance

How To Check Health Status Of Drives Behind Raid On Centos

Snippet 1 smartctl –scan#output[[email protected] ~]# smartctl –scan/dev/sda -d scsi # /dev/sda, SCSI device/dev/bus/0 -d megaraid,9 # /dev/bus/0 [megaraid_disk_09], SCSI device/dev/bus/0 -d megaraid,10 # /dev/bus/0 [megaraid_disk_10], SCSI device/dev/bus/0 -d megaraid,11 # /dev/bus/0 [megaraid_disk_11], SCSI device/dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device/dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device/dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device/dev/bus/0… Continue reading How To Check Health Status Of Drives Behind Raid On Centos

Published

Analyzing police daily activity logs

Introduction How many? When? Introduction The Sacramento Police Department daily activity logs website was always the first I visited when I worked the early morning crime shifts at the Sacramento Bee. A public relations officer updated it every morning with a fairly well-standardized list of notable incidents the department responded to the day before, and… Continue reading Analyzing police daily activity logs