fabiochiu/medium-articles huggingface dataset:
Why my google colab GPU is slow?. If yes, then this notebook is for you…
By: Amit Manbansh
Tags: TensorFlow, Jupyter Notebook, Gdrive, Keras, Colab

Have you ever encountered that your Keras Image classification model is training very slow during the 1st few epochs?

If yes, then this article is for you. We generally store the training images in our gdrive in order to use them in future also. Keeping them in colab temporary drive might lead to loss to data once the session expires.

However, storing images in gdrive comes with challenges. The colab runtime has to perform read operation continuously from the mounted gdrive. This read operation is very slow when compared to the read operation done from colab temporary drive. It can be sometimes 40 times slower to read data from gdrive when compared to colab temporary drive.

This slowness often leads to a slowdown of the training process by a significant amount. It has been noted that in some cases it makes the training process 40 times slower than the normal speed.

In this article, we will learn to tackle this problem of slowness by making the zip file of the image folder and then transferring the zip file to the colab temporary drive and using it for training from colab temporary drive.

Summary of steps to follow to prepare data:
Setup Tensorflow GPU in Windows- The quick way
By: Sourav Garai
Tags: Tensorflow Gpu, TensorFlow, Gpu, Nvidia

After days of struggle I figured out the simple 4 steps procedure to make tensorflow use your machine’s NVIDIA GPU. It takes about 3GB of download and 30 min of installation.

Step 1 — Install CUDA v11.0 and NOT the latest version.

Installing correct version of CUDA is the most important step while setting up tensorflow with gpu support. Make sure you install v11.0 and not the latest version of cuda as only v11.0 is supported by the current build of tensorflow gpu. Here is the link to download cudnn-11.0-windows-x64-v8.0.4.30 CUDA Toolkit 11.0 Download | NVIDIA Developer.

Step 2 — Install CUDNN v8.0 for CUDA 11.0 and NOT any other version

Download cuDNN for v8.0 from Download cuDNN v8.0.4 (September 28th, 2020), for CUDA 11.0. Just extract to a location like C:/tools/

Step 3 — Setup path variables

Add these 4 paths to your windows environment. (Click start -> type ‘path’)

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin

2. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\extras\CUPTI\lib64

3. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include

4. C:\tools\cuda\bin (this is the extracted cuDNN)

Step 4- Install tensorflow

pip install tensorflow

This installs tensorflow 2 with GPU support

Check with this simple code. If output value ≥1 you GPU will be automatically used by tensorflow.

import tensorflow as tf

print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))

That’s all folks. May the force be with you!

Links for reference.

GPU support | TensorFlow
How the Culture of Masculinity Keeps Men From Their Beauty
By: Agents Of Change
Tags: Stereotype, Ethics, Gender, Life Lessons, Sexism

How the Culture of Masculinity Keeps Men From Their Beauty

Photo credit: iStock

By Galen Erickson

If you are pretty . . .

If you are pretty you are not smart.

If you are beautiful, you are not tough.

These were the phrases that popped into my head while trying to figure out what felt so vulnerable about a photo of me that my friend posted. There is a certain softness about the photo, an almost feminine quality to it. I look younger than I am. I look vulnerable. This photo was scary for me and I couldn’t figure out exactly why until those two phrases popped into my head.

I don’t want people to think that I’m stupid. I don’t want people to think that I am weak.

If people think you are stupid, they don’t take you seriously. If you say or write anything that is different from their existing beliefs, they will brush it off as uneducated naïveté, rather than backed-up and contextualized insight. Rather than asking where you came up with your ideas, they tell you how you are wrong.

I know this is true because I have experienced it when people brushed me off as a “pretty boy.” I have also seen it when powerful, beautiful, and intelligent women in my life have tried to speak their mind. I see it on the news whenever a beautiful woman says anything controversial. This is the double bind we put women in. All women are expected to be pretty, but when they achieve this feat, their perceived intelligence is automatically downgraded.
Aretaic: You are what you do 🐛
Tags: Life, Philosophy, Ethics

When you are young, deontological ethics are all you have. All kinds of adults tell you what you should and should not do, and you lack the experience to do otherwise. Unless you take a serious approach and read the good books, which very few people read in their life, much less at their young age. In summary, you lack the perspective to define your own values, call it autonomous ethics, intrinsic, Übermensch, or whatever you prefer.

When you are old, “you know better”. You have accumulated the experience of a lifetime, you can predict the consequences, and you can judge actions based on their consequences, even if in many cases you will not be facing them. If you are really old, any long term planning is purely altruistic. From a purely egoistic perspective, any and all ethics are meaningless when the end of your lifespan is imminent.

Some people transition from the former to the latter. Some are stuck in one of the two. Both are the result of a lack of perspective. A proper perspective should be valid at the time you are born and at the moment of your death. In my opinion, that perspective is given by ethics virtue (aretaic). At all times you are becoming and you are being, the only question is “who?”. It is a question to which several generations have been exposed at young age, with the caterpillar of Alice in Wonderland. “Who are you?”

By their fruit you will recognize them. Do people pick grapes from thornbushes, or figs from thistles? Likewise, every good tree bears good fruit, but a bad tree bears bad fruit. A good tree cannot bear bad fruit, and a bad tree cannot bear good fruit. Every tree that does not bear good fruit is cut down and thrown into the fire. Thus, by their fruit you will recognize them. — Matthew 7:16–20

You are what you do, for the good and the bad. Principles and consequences are important to guide our actions. Principles are important, as they set example, which leads and propagates indefinitely. Consequences are similarly important, as their consequences (higher level consequences) also propagate indefinitely. Both meet in actions.

We all die. The goal isn’t to live forever, the goal is to create something that will.― Chuck Palahniuk

If the impact is not global, it may be local, and as local as it may be, its ripples may propagate further in time than some global but easily forgotten event, like most popular songs nowadays.

You are alive for a few years, that is your time to make your move, then you are an ancestor for the rest of the time of the universe, and it will be settled. Ultimately, it is as meaningful as you choose it to be. It is your life, and your choice.
Roberto Assagioli’s Ethics
By: Malcolm Schosha
Tags: Psychosynthesis, Ethics

Roberto Assagioli specifically excluded ethical considerations from his writings on the subject of Psychosynthesis, the school of psychology he founded. However, he did discuss ethics in a series of pamphlets that were presented as an introduction to meditation. I am saving the links to PDF files of those pamphlets below because some of those with an interest in Psychosynthesis are unfamiliar with that side of Assagioli’s life work.

These PDFs were written by Roberto Assagioli (1888–1974) and originally published in the late 1960s and early 1970s as a series of yellow pamphlets. They are all structured around the Three Laws and Three Principles of the New Age. I no longer have an interest in the so-called “New Age” and even less interested in the writings of the New Age teacher Alice Bailey from who Assagioli derived the concept of Three Laws and Three Principles discussed in the pamphlets. But in my view, Assagioli immeasurably improved on the source material written by Bailey. What he wrote deserves attention, and might interest both those concerned with Psychosynthesis, and also those interested in ethics both as a subject and as a way of life.

……

FIRST YEAR

1. Set One- https://meditationmount.org/wp-content/…/2011/02/1y1-WEB.pdf

2. Set Two- https://meditationmount.org/wp-content/…/2011/02/1y2-WEB.pdf

3. Set Three- https://meditationmount.org/wp-content/…/2011/02/1y3-WEB.pdf

4. Set Four- https://meditationmount.org/wp-content/…/2011/02/1y4-WEB.pdf

5. Set Five- https://meditationmount.org/wp-content/…/2011/02/1y5-WEB.pdf

6. Set Six- https://meditationmount.org/wp-content/…/2011/02/1y6-WEB.pdf

SECOND YEAR

1. Set One- https://meditationmount.org/wp-content/…/2011/02/2y1-WEB.pdf

2. Set Two- https://meditationmount.org/wp-content/…/2011/02/2y2-WEB.pdf

3. Set Three- https://meditationmount.org/wp-content/…/2011/02/2y3-WEB.pdf

4. Set Four- https://meditationmount.org/wp-content/…/2011/02/2y4-WEB.pdf

5. Set Five- https://meditationmount.org/wp-content/…/2011/02/2y5-WEB.pdf

6. Set Six- https://meditationmount.org/wp-content/…/2011/02/2y6-WEB.pdf

THIRD YEAR (on glamour)

1. Set One- https://meditationmount.org/wp-content/…/2011/02/3y1-WEB.pdf

2. Set Two- https://meditationmount.org/wp-content/…/2011/02/3y2-WEB.pdf

3. Set Three- https://meditationmount.org/wp-content/…/2011/02/3y3-WEB.pdf

4. Set Four- https://meditationmount.org/wp-content/…/2011/02/3y4-WEB.pdf

5. Set Five- https://meditationmount.org/wp-content/…/2011/02/3y5-WEB.pdf

6. Set Six- https://meditationmount.org/wp-content/…/2011/02/3y6-WEB.pdf
Heightgate: if Dr Kuhlman said Obama is 6' 1" with his shoes on then Trump is 6' 1/2" if Obama is…
Tags: Government, Ethics, Education, Psychology, Photography

Dear NY FBI, iF Sedgwick Claims has a responsibility to actively assist me in returning to work with a reasonable accommodation then why hasn’t Sedgwick Claims assisted me at all (in 10 years)?

Dear NY FBI, if NYS Senate (in 2007) said, “insurance carriers shall offer claimants a NYS Workers’ Compensation Section 32 settlement within 6 months of a NYS WCALJudge’s PPD classification then why have I been waiting 7 years 9 months (so far), NY FBI?
Ethics and Data Science
By: Nicholas A Kovacs
Tags: Morality, Data Science, Ethics, Moral Responsibility

Most actions that are classically considered unethical are self-evident in their moral standing. Standards & severity vary from culture to culture but there exist certain constants evolved from basic game theory principles or as necessary emergent properties of civilizations. These ethical rules, such as injunctions against bribery, treason, theft, or murder, have been with us always or have developed over the 400 generations we have lived in cities and towns. The transgressions facing us in data science, cyber warfare, and over the internet? A few decades at best.

How long will it take for society’s sense of ethics to catch up with technology? It may be several decades to come. But in the meantime, the responsibility must fall to the individual. It’s up to us to maintain a distinct sense of what should and shouldn’t be done. We all know already that just because something isn’t against the law, it doesn’t also mean it isn’t wrong.

Sometimes, though, it isn’t that easy. Especially for people in a situation like I am — where I’m making a dramatic career shift in the midst of a great deal of economic & political instability — we’re wondering what job markets will look like after we’re done, we’re looking at bills & unemployment checks and wondering how long it will be before we’re employed again — sometimes, you have to take what you can get. And that’s okay, too. Sometimes a job is a job. The most important thing is to not succumb to the again-and-again of inertia and to lose your principles for the money. For those who remain vigilant another opportunity will always present itself. If you intend to do good in this world with the skills you have, there’s nothing that can stop you.
Dear NY FBI, if I can see racial nepotism then can’t God? — TimboGolden Jun 8, 2017
Tags: Religion, Ethics, Philosophy, Psychology, Law

unless the spirit “in man” gets awakened, he/she cannot know God — Sri Ramakrishna

TimGolden • 6 years ago Tuesday, September 23, 2014 2:57 PM

According to Buddha, there are hot hells and cold hells and special hells

so if you (wee spirit “in man”) want to hang out in Heaven with JESUS, then you (wee spirit “in man”) better eat God’s Mail and exorcise (right wrongs)

+

Timothy Golden Jan 26, 2015

4(e!) minutes ago

T imGolden

U.S. Department of Justice,

while you were sleeping I went fishing

on G-D’S web

look at what I caught and reeled in:

NYS WCB 2001 Annual Report

NYS WCB 2006 Annual Report

eat! eat!

U.S. Department of Justice,

how many Indian-American women and men do you see in reports?

how many African-American women and men do you see in reports?

how many Asian-American women and men do you see in reports?

how many Latin-American women and men do you see in reports?

how many Native-American women and men do you see in reports?

how many ME-American women and men do you see in reports?

p.s.

someone call the cops!

(someone call the EEOC!)

Okla. cops think man may have spontaneously combusted

+

Dear Goivernor Cuomo and NYS senators,

Q: if ONLY employers fund the New York State Workers’ Compensation then is not that a Conflict Of Interest?

+

+

Dear NY FBI, did Verizon and Verizon’s insurance carrier Sedgwick Claims pay yet for their orthopedic IME Moriarty’s report about me? This claimant is bizarre, I saw the claimant reading a Torah with a large magnifying glass.

+

+

+

+

+

Dear NY FBI, should I take these cards to PSA or my FATHER to be graded?

+

=

+

p.s.

chew! chew! [eat God’s Mail]

and

do! do! [exorcise (right wrongs)]

or else
Polygraphgate: if FBI agents have to pass a Polygraph then pOTUS and COTUS and SCOTUS candidates…
Tags: Insurance, Government, Ethics, Education, Psychology

Q: who’re the ones guilty of getting America $23 Trillion in debt?

hinT:

Debtgate: why are we $22T in debt if we’ve given Uncle Sham $40T in tax revenue to manage since 2000?

A: aren’t y’all [President(s) + OMB + Congress] the world’s worst money managers?

+

Let’s Make America Great Again

vs

Let’s Under-Staff EEOC Again and Again and Again and Again (duh!)

EEOC staffing has been slashed by(e bye) 40% since Reagan so where’re SCOTUS and FBI (who’re followers of CHRIST)?

+

[he] took from the poor (mentally ill) and [he] gave to the rich (DoD) so who was [he]?

Michael O’Hanlon, a defense analyst at the Brookings Institution, said that Reagan’s nuclear arms increases and missile defense programs “had an insanity element to it.”

+

Goivernor Reagan slashed the number of mentally ill patients at California state hospitals
office.com/setup
By: Robert Frost
Tags: Ms Office, Information Technology, Softwares

Today Microsoft Office has evolved from a group of private productivity products to a more complete and integrated system. Building on the well-known tools that a lot of people are familiar with already, the Microsoft Office System includes servers, solutions, services and programs meant to work as one to help deal with a broad range of business dilemmas.

What’s my benefit for getting Microsoft Office?

A Microsoft Office System gives you a building block for solutions that helps:

It gives business users enhanced access to data, and therefore they can get a better insight and take actions that are more valuable. And it improves an organizations capability to expect, handle, and react to changes in the market. Further, it is allowing organizations and teams to work jointly with swiftness and quickness. The most important, it improves individual efficiency and enables more business users to contribute in the all the time more challenging environment around them.

office.com/setup
All That Is Ethical Is Moral?
By: Kishan Dev
Tags: Philosophy, Ethics, Morality, Moral Libertarian, Psychology

SHORT WRITE–UP

All That Is Ethical Is Moral?

Generally speaking, Yes. All that is ethical is moral.

Before diving into the specifics, we should clear the definitions first, it is always better to go back to the basics.

First — ethics:

Merriam Webster

a system of moral principles: the ethics of a culture. (used with a plural verb) the rules of conduct recognized in respect to a particular class of human actions or a particular group, culture, etc.: medical ethics; Christian ethics. (used with a plural verb) moral principles, as of an individual. (used with a singular verb) that branch of philosophy dealing with values relating to human conduct, with respect to the rightness and wrongness of certain actions and to the goodness and badness of the motives and ends of such actions.

So Ethics; basically are a set of moral codes, principles & beliefs which are held by a group or community of people to better conduct themselves.

Second — morals:

Merriam Webster

conformity to ideals of right human conduct.

So Morality; basically is a set of principles & beliefs [as in values] held by an individual or two to conduct their actions in a manner which could be far from wrong conducts.

Now, as I have defined the terms, now I shall put forward the arguments in support of the motion; that is — all that is ethical is moral.
Thus, is it more intelligent to not use the much standardized Oxford Comma or simply an imitation…
By: Seymour Toa
Tags: Ethics, Computer, Bias, Artificial Intelligence, Programming

Thus, is it more intelligent to not use the much standardized Oxford Comma or simply an imitation of some programmer’s preference? I wonder what other biases lie within the foundation of AI and when/how will they be noticed?
Ethics at NeurIPS 2020 — A small collection of resources
By: Jesse Parent
Tags: Ethics, Inclusion, Computer Science, Ai Ethics

Ethics at NeurIPS 2020 — A small collection of resources

Social causes and inclusivity are continuing to be normalized at major tech conferences, and NeurIPS was no exception this year. Jesse Parent Follow Dec 25, 2020 · 2 min read

Resistance.AI Workshop Homepage

Fresh off of front-page news in tech-ethics with the controversial set of events surrounding renowned ethical leader Timnit Gebru from Google’s ethical AI team, the annual AI & Computer Science mega-conference Neural Information Processing Systems (NeurIPS) would take place. 2020 in America had already seen significant social discontent following the murder of George Floyd by Minneapolis Police and subsequent protests and legislative reform efforts.

NeurIPS provided several platforms upon which to engage the nexus of technology and society — while listing all workshops below (See NeurIPS schedule), I would particularly not the culmination of these efforts into what would become the Resistance.AI Workshop.

Resistance.AI Workshop

Website: https://sites.google.com/view/resistance-ai-neurips-20

NeurIPS: https://neurips.cc/virtual/2020/protected/workshop_16151.html

Collective Resource Shared Document: a crowdsourced collection of links and resources brought up during the Workshop

Links

Black in AI https://blackinai2020.vercel.app/

Latinx in AI https://www.latinxinai.org/

Data for Black Lives https://d4bl.org/

Queer in AI https://sites.google.com/view/queer-in-ai/

Disabled in STEM https://disabledinstem.wordpress.com/

No Tech for ICE https://notechforice.com/

Other Highlights

Dr. Ramon Amaro’s fireside chat at the Black in AI workshop was a particular standout for it’s historical depth and breadth. Amaro went back to the sociopolitical atmosphere of G.W. Leibniz when he was creating his uses and interpretations of Calculus, as well as other figures like Thomas Malthus at the roots of various economic & social theories to which advances in mathematics and statistics would be applied.

Amaro’s upcoming book seems like an important compliment to works like Ruha Benjamin’s Race After Technology, which was noted in Erik Brynjolfsson’s tweet of Stanford Human-Centered AI’s book recommendations.

Did you have any favorite social/ethical moments from NeurIPS2020? Let us know in the comments below.

Other Tweets (Compilation Forthcoming)
The Ethical Dilemma of Cyberpunk 2077’s Soulkiller Project
By: Paul Lombardo
Tags: Ethics, Technology, Business, Gaming, Features

Running from the Reaper

While a personality construct replacing one’s consciousness isn’t quite a feat we’ve reached today, you can compare the process to cloning, which is most definitely an available technology.

In Cyberpunk 2077, Arasaka’s Soulkiller project aims to grant immortality and “godhood” to higher-ups such as Saburo. Cloning, with a bit of tweaking, can also accomplish this, albeit it’ll be a good few years before the process is perfected.

Dolly was a cloned sheep part of The Roslin Institute’s methods of producing modified livestock. Through the process of Somatic cell nuclear transfer, (removing DNA from an unfertilized egg and replacing it with the nucleus of the intended clone), the identical clone of a sheep was created for the first time with an adult cell. This was groundbreaking, as the process was not thought of as possible, and opened many doors for discussion.

While cloning animals for experiments is debated ethically, the real discussion is at the level of cloning humans. Many argue that the process is simply “playing God” and morally wrong, but it also brings on many practical issues, such as impacting the gene pool. Societal side effects are expected, as we see in the ending of Cyberpunk 2077, where the Soulkiller project is commercialized and only the powerful can become “immortal.” Religion also comes into play when discussing the ethics of cloning. Genetic engineering has been condemned by Protestant theologian, Paul Ramsey because it “threatens Christian views on human happiness, morality, power, and procreation.”

Cyberpunk’s unique take on cloning lays within the possible corporate oppression that comes with it. Power is constantly shifting, exchanging between the hands of different people as history goes on. With the technology to clone someone, power can remain in one individual’s hand, and if the ability to be cloned is commercialized, what does that mean for those at the bottom? Are they forever doomed to be ruled by the wealthy, for eternity?

Arasaka offers V the opportunity to be uploaded to Mikoshi while the company looks for a body for V to be uploaded into. This was the final decision in my game, one that I declined. Signing V’s rights over to Arasaka was something I wasn’t planning to do. Call it the Silverhand influence, but after watching the final events of the game unfold, I wish I had gone out in a blaze of glory instead of helping Arasaka reach their goals of becoming immortal.
What I learned when we talked about ethics this semester
By: Sarah Darer Littman
Tags: Ethics, Teaching, Managerial Writing, Writing

“I want to win the election. It’s important to win. We’re told that constantly. But is how you go about winning important, too? No one ever seems to talk to us about that.” Stella Walker ANYTHING BUT OKAY (Scholastic Press, 2018)

When I wrote my YA novel ANYTHING BUT OKAY, I’d already been thinking about the importance of creating more opportunities to discuss ethics with young people. Thirteen years as a political columnist in Connecticut (aka “Corrupticut”) will do that to you.

I worked on the novel in 2017, when we were in the first year of the Trump Administration. The administration’s complete disdain for ethical norms highlighted the ever more urgent need to build ethics discussion into the curriculum in an age-appropriate way, at all levels of education.

The news that over 70 West Point Cadets were accused of cheating on a calculus final is just another example. Cadets attend the academy tuition free with a $10,000 stipend, but must abide by a strict honor code: “A cadet will not lie, cheat, steal, or tolerate those who do.”

Dear cadets: I struggled with calculus, but I managed to pass it without cheating.

Meanwhile, the outgoing president of the United States is using his pardon power to send the message that corrupt, unlawful behavior and war crimes are fine, as long as you have shown loyalty to him or happen to the father of his son-in-law.

This semester in my managerial writing classes, I made a point of spending more time discussing ethics than I have in the past, trying to counter the damaging behavior modeled at the highest levels of our government.

We discussed several case studies, and students worked together in groups online to talk about how they would respond if they were the decision makers.

What I found was that students like to discuss these issues. We don’t talk about them enough.

Here are a few excerpts from end-of-semester reflective essays:

“we explored a broader array of business ethics and that …helped me look at business situations from another point of view”

“This was probably my favorite part of class”

“something may not be illegal, but does not mean it is ethical”

Yes, it’s important that students can write clear, concise memos, effective emails, and persuasive proposals. But it’s just as important that we talk about ethical communication and decision-making. As one of my students said “something may not be illegal, but does not mean it is ethical.” Case in point: the latest Trump pardons.

Another student wrote “This was probably my favorite part of class.” Students like discussing these issues.

Just as importantly, students need to learn how to think about and discuss ethical issues, otherwise we will won’t be able to continue the work toward the Founders’ goal of: “a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity.”
I am SICK of all these unethical marketing hacks that people resort to these days.
By: Clément Bourcart
Tags: Ethics, Marketing, Sales, Online, Business

I am SICK of all these unethical marketing hacks people resort to these days.

Trying to sell a $3,000 course teaching you how to achieve “financial freedom” by shipping $0.50 fishing lures from Alibaba…

All these “live” webinars where people are encouraged to post questions, which are obviously pre-recorded and have been playing on auto-pilot for months or years…

All these dubious calls-to-action, with timers and pressurizing messages (“You have 60 seconds to make a choice!”…“Once you leave this page, it’s GONE FOREVER!!”)…when refreshing the page resets the time to zero, or brings up the very same offer a week, a month, heck a year later.

If you have a genuine offer that adds value to people's lives, why are you using all these deceitful tricks to lure them in?

Don’t you think people can tell?

Time for ethical Marketing. Time to stop this crap. Seriously.
How to Configure SSH Key for GitHub on Ubuntu
By: Adil Shehzad
Tags: Ubuntu, Github Ssh, Github, Git, Linux

As we previously learned how to Run the Ubuntu machine on Windows 10 using VsCode Extension WSL. Incased you missed it please learn from this blog.

How to Configure SSH Key for GitHub on Ubuntu

Prerequisites:

Ubuntu Machine

Git

Linux basic Commands

Git Installation or Version check

As Git is pre-installed in git you can check by entering the following command

git --version

git — version

In case if git is not installed in your Linux system you can install by using the following commands

sudo apt-get update

sudo apt-get install git

and after these following commands you can check your git installation by the first command we execute in this blog

git --version

Creating Private and Public SSH Keys

First, we need to create private and public keys. Please do not share your private key on any platform. Please only share the id_rsa.pub key on GitHub

mkdir .ssh

cd .ssh

ssh-keygen -t rsa -b 4096

ssh keys for GitHub

so the ssh keys are generated inside your /home/adil/.ssh/id_rsa (please change adil username to your username you are using)

Now, you have to add the public SSH Key into your SSH Agent:

sudo ssh-add /home/<your username>/.ssh/id_rsa

Sometimes, depending on your Linux configuration, you could have the message “Could not open a connection to your authentication agent.”. In that case, you should execute:

eval `ssh-agent -s`

Configure SSH Key for GitHub on Ubuntu

first, you need to go to your GitHub account and then go to settings on the left side 11 rows you will found SSH and GPG Keys Click on it

Profile Pic/Settings/SSH and GPG Keys

Then Press on the New Key

Go back to the terminal and enter the following command. You need to copy the following command and please do not share with any person or platform.

cat ~/.ssh/id_rsa.pub

Copy the content, paste it in the GitHub Form and press the “Add SSH Key” button

This is totally fake

Finally, we need to check that our SSH is working or not by entering the following command

ssh -T git@github.com

Hurrah Finally we configure our SSH on Github and Ubuntu Machine.

If you are facing any kind of problem feel free to reach out on Linkedin.

That’s All! See you in the next blog. Cheers:)
Add Size Limit to GitHub Actions
Tags: JavaScript, Github Actions, Github, Continuous Integration, Software Development

This article goes over how to add Size Limit, a performance budget tool for JavaScript, to GitHub Actions.

Setup

Install size-limit :

$ npm install --save-dev size-limit

Run the size-limit binary to get the message:

$ npx size-limit

Install Size Limit preset depends on type of the project For application, where you send JS bundle directly to users

npm install --save-dev @size-limit/preset-app For frameworks, components and big libraries

npm install --save-dev @size-limit/preset-big-lib For small (< 10 KB) libraries

npm install --save-dev @size-limit/preset-small-lib

https://github.com/ai/size-limit/ Check out docs for more complicated cases

In our example, we’re going to install the big library preset @size-limit/preset-big-lib :

$ npm install --save-dev @size-limit/preset-big-lib

Run size-limit again to get the error:

$ npx size-limit

ERROR Create Size Limit config in package.json "size-limit": [

{

"path": "dist/bundle.js",

"limit": "10 KB"

}

]

Config

The config options are:

path : path to your bundle

: to your bundle limit : size (e.g., 42 B , 1337 KB ) or time limit (e.g., 314 ms , 1.618 s ) of your bundle

Example

If your bundle path is build/my-bundle.js and you don’t want your bundle to go over 9000 bytes, add the following to your package.json :

Success

A success message for size-limit looks like:

$ npx size-limit

✔ Adding to empty webpack project

✔ Running JS in headless Chrome Size limit: 8.79 KB

Size: 8.69 KB with all dependencies, minified and gzipped

Loading time: 50 ms on slow 3G

Running time: 60 ms on Snapdragon 410

Total time: 110 ms

Failure

A failure message for size-limit looks like:

$ npx size-limit

✔ Adding to empty webpack project

✔ Running JS in headless Chrome Package size limit has exceeded by 1 KB

Size limit: 8.79 KB

Size: 9.79 KB with all dependencies, minified and gzipped

Loading time: 50 ms on slow 3G

Running time: 70 ms on Snapdragon 410

Total time: 120 ms Try to reduce size or increase limit at .size-limit.json

GitHub Action

Create .github/workflows/size-limit.yml , which uses the size-limit-action:

The initial PR (pull request) to add the workflow will fail because the action tries to compare against the base branch, which doesn’t have size-limit added (see #33).

Once size-limit is on master , all newly created PR’s will measure the the bundle size/performance.

See example PR that adds this workflow.
Let’s update package.json in all repositories
By: Vitaliy Vorobyev
Tags: Github, Repositories, Git, Update, Package

You can access your security advisor through email or directly from the repository

As almost all of my repositories were my pet-projects, I did not care about the compatibility of these packages and just wanted the security bot to do not send me so many emails.

So, you can find the source code of the script here: Vvitali/autoUpdateAllPepositories

There are few prerequisites that you most likely will satisfy by default if you use Github already and read this article:

“npm-check-updates” npm-package should be globally installed (can be installed locally but change the script yourself then) Your git-credentials in the console should be valid (ssh-keys and email, username) You need to use git-bash (or any other console which supports .sh files), or you can use windows 10 Windows Subsystem for Linux (WSL), I tested both options and they work the same (duh :))

And then only a few steps

npm install #in order to install Axios which needed to perform GitHub-API request which will gather info about your repositories Go to list.js file, and replace the content of ‘USERNAME’ variable with your GitHub-username npm run step1

This step will make a list of all public repositories under your profile, and save them into a file with the name ‘list.txt’, then bash script will read the list and run ‘git clone’ for every line in the list. You will end up with a directory with all of your repositories cloned.

So, technically, if you want to exclude some repositories, you can run ‘node list.js’ first, then edit the ‘list.txt’ file, remove lines with repository names, and then run ‘./download.sh’ script.

4. npm run step2

This step will go into each repository, run ‘ncu -i,’ and add/commit/push changes related to package.json, and also remove old package-lock.json.

If you don’t want to remove the old package-lock.json — just comment out line 11 in “updatePackagesAndCommit.sh” script.

step2 is also asynchronous and forks processes, so it will exit the script, but it might take a few minutes to finish and you will be getting messages about the process in your console, but usually, it does not take longer than 2 if you have SSD and somewhere around 40 repositories.

Enjoy and feel free to report a bug, contribute a fix, and comment below!

Also, feel free to check my LinkedIn article — Let’s update package.json in all repositories
Publier une application VueJs sur github
Tags: Publishing, Vuejs, Github, Web Development, Programming

main Project : "un robot qui range ma chambre" robot that tidy my room. Working on "how can robots share informations ?" how can we tell them what we want...
Open Source & Github
By: Sudeepa Kolli
Tags: Github, Open Source

Open-source software exactly delivers the meaning by the name itself, the source code of a piece of software is maintained available and free to download, modify and incorporate into third party projects, which helps to improve the software itself over time.

Open-source projects tend to be more adaptable because they respond more rapidly to market needs. Closed-source programs might exist in a bubble while trying to convince a target market of its significance, as opposed to being completely responsive. GitHub provides a community where programmers are constantly working to solve modern problems and formulating solutions available to the public.

Because of the huge extent of the GitHub community, you can periodically find programmers working on similar projects or who have skills, understandings, or a vision that offers a good fit for your organization.

GitHub is a website for developers and programmers to collaboratively work on code.

The basic advantage of GitHub is its version control system, which allows for seamless collaboration without compromising the integrity of the actual project.

The projects on GitHub are examples of open-source software.

Why only GitHub?

Easy to contribute to open source projects

If you want to contribute, you just fork a project, make your changes and then send them a pull request using GitHub web interface. To be honest, nearly every open-source project uses GitHub to manage their project.

Documentation

By using GitHub, you make it easier to get excellent documentation. Their help section and guides have articles for nearly any topic related to git that you can think of.

Showcase your work

Today, when searching for recruits for their project, most companies look into GitHub profiles. If your profile is functional, you will have a higher chance of being recruited even if you are not from a big university background.

Track changes in your code across versions

GitHub keeps track of all the changes that have been pushed to the repository. You can have a version history of your code so that previous versions are not lost with every iteration.

GitHub Pages

It lets you host static web pages by simply assigning HTML pages.
Deploy a site to GitHub Pages from multiple branches using GitHub Actions
By: Tiger Oakes
Tags: Web Development, Github Pages, Github, Github Actions

I’ve been moving many repositories over to GitHub Actions to automate deployment and testing. One of my projects uses GitHub Pages, but includes data from two different branches:

The main branch contains the bulk of the website

branch contains the bulk of the website The app-challenge branch contains a second site that appears under a /heleon/ path

Using GitHub Actions, I set up the site pull from both branches before deploying. The script looks like this:

on:

push:

branches: [main]



jobs:

build:

runs-on: ubuntu-latest



steps:

# Checkout the `main` branch

- uses: actions/checkout@v2

# Install Node.js

- uses: actions/setup-node@v2-beta

with:

node-version: '14'

# Install npm dependencies

# (similar to npm install)

- run: npm ci

# Run code to build the site files inside the `big-island-buses` folder

- run: npm run build



# Checkout the `app-challenge` branch

- uses: actions/checkout@v2

with:

ref: app-challenge

# Put the checked out files inside the `big-island-buses/heleon` folder

path: big-island-buses/heleon

clean: false

# Delete the .git folder from `big-island-buses/heleon`

# This turns the files into a plain folder instead of a git repository

- run: rm -rf big-island-buses/heleon/.git

# Deploy the `big-island-buses` folder to GitHub Pages

- uses: peaceiris/actions-gh-pages@v3

with:

github_token: ${{ secrets.GITHUB_TOKEN }}

publish_dir: "./big-island-buses"

user_name: 'github-actions[bot]'

user_email: 'github-actions[bot]@users.noreply.github.com'

The first sequence of steps checks out the main branch, installs Node.js and npm dependencies, then runs the build script. The files created by the build script end up in a folder named big-island-buses .

The second sequence checks out the app-challenge branch, and places the files inside a folder named heleon , which is a subfolder of big-island-buses . These files are static so they don't have a separate build script.
Organizing Your Github
By: Megan, Thadev
Tags: Software Development, Github, Coding, Software Engineering

Digital Image. PNGIMG. 21 December 2020.

What does your GitHub Page say about you as a “Coder”? No matter what your niche or specialty — your GitHub page is basically an alternate portfolio. A window into your raw work and characteristics as a “coder”. Therefore, you will want to be sure that this page is conveying the best possible impression that you can convey! Common sense albeit, but — there are some guidelines and organizational tips that I have complied to hopefully aid you (and myself!) in refining and optimizing our GitHub pages for a cornucopia of benefits! Let’s explore these tips, tricks, examples, and more down below, as we will go through my own “post-bootcamp” GitHub and I will document my experiences optimizing it for the job search (and so that other coders can contribute to the open-source work!).

Digital Image. My GitHub Profile. 21 December 2020.
How to Embed Single File From a Multiple Files Gist on Medium
By: Jerry Ng
Tags: Code, Github, Writing Tips, Writer, Writing

Problem

Yikes.

However, if you were to have a multiple file Gist, such as this, Medium will try to render all the files in the Gist in one go — which is not really what we wanted.

Previously, to render a single file, we would have to create separate Gist to do so, which is also not ideal as our account will be flooded in no time by the power of exponential.

Solution

Quick Steps

Copy the multi-file Gist path, i.e. — https://gist.github.com/ngshiheng/d63434f91834c4d3d842358c210398ae from your browser Paste it somewhere else than the Medium article. Like in a search bar of a new tab in your browser or Notepad Append the query parameter for the file to the URL. i.e. — https://gist.github.com/ngshiheng/d63434f91834c4d3d842358c210398ae?file=schema.py , take note that ?file=schema.py at the end of the URL Paste the entire URL as an unformatted plain text back to Medium and hit ‘Enter’

Done. Simple as that.

Final Result

You should see that only the specified schema.py file is rendered here in this article rather than all the files.

Final Notes
GitHub Actions Vs. Jenkins
By: Ismail Alabou
Tags: Jenkins, Github Actions, Github, DevOps, Jenkins Pipeline

GitHub Actions Vs. Jenkins

the photo says it all ;)

Introduction

Jenkins and GitHub Actions both allow you to create workflows that automatically build, test, publish, release, and deploy code. Jenkins and GitHub Actions share some similarities in workflow configuration:

Jenkins creates workflows using Declarative Pipelines , which are similar to GitHub Actions workflow files.

, which are similar to GitHub Actions workflow files. Jenkins uses stages to run a collection of steps , while GitHub Actions uses jobs to group one or more steps or individual commands.

, while GitHub Actions uses to group one or more steps or individual commands. Jenkins and GitHub Actions support container-based builds.

Steps or tasks can be reused and shared with the community.

Key differences

Jenkins has two types of syntax for creating pipelines: Declarative Pipeline and Scripted Pipeline . GitHub Actions uses YAML to create workflows and configuration files.

and . GitHub Actions uses to create workflows and configuration files. Jenkins deployments are typically self-hosted, with users maintaining the servers in their own data centers. GitHub Actions offers a hybrid cloud approach by hosting its own runners that you can use to run jobs, while also supporting self-hosted runners.

Comparing capabilities

Happy coding ツ
How to deploy code onto Github In just 5 minutes
By: Hassaan Hameed
Tags: Code, Github, Education, Programming, Coding

Hi I’m Hassy here I would tell you about how can you deploy your code on the GitHub from your local machine by just a few commands if you just follow the steps in given below

create a new repository

Firstly, you make a repository onto your GitHub account then you need to deploy your code onto that repository.

Open a terminal or push an existing repository from the command line

open a terminal go over that directory anywhere you saved the code that you want to deploy on Github repository and initialize that repository by using the command git init

git init

After initializing the local repository you need to add your files or code files by using the command

git add [filename]

then you need to authentication to your terminal by using the commands that are git: config — -global user.gmail “zyz@yahoo.com” and the second command for username is: config- -global user.name “zyz@yahoo.com”

you have done one part after doing that you need to push an existing repository from the command line by remote command and after that you tell the branch name of the repository, then the last command Push command deploy your code onto the existing repository on Github .

git remote add origin [URL of that repository you want to deploy code] (2). git push origin [branchname]

when you run the push command after that terminal would ask your credentials of GitHub account username and password for the authentication you enter that code would deploy onto the GitHub repository. How can you confirm that your code is deployed or not you check out the git status command it would tell you about the displays the state of the working directory and the staging area.
Well explained and easy to understand 👏
By: Ahmed Shafraz Dilshan
Tags: Version Control, Git Commands, Github, Repositories, Git

Well explained and easy to understand 👏
Use GitHub Like A Pro !
By: Viraj Jadhav
Tags: Github Trend, Version Control System, Version Control, Github, DevOps

Writing good commit messages really makes a difference. At first, it is a bit annoying to write this message for each commit. But as we realized its benefits, it became a habit for us! By having a small and meaningful commits, it would be easier, later on, to track down bugs. I consider this to be helpful which makes a code review easier and faster.

Here are my few relevant commits messages listed :

feat : Introducing New feature

docs : Update READ.md

style : Type of style added

fix : Validating input

What are the alternatives of GitHub ?

So, here is a curated list of tools that can replace GitHub. This list includes open source tool with latest Download Links.

SourceForge : A centralized online location to control and manage free and open-source software projects.

2. Allura : A website which allows you to manage bug reports, source code repositories, discussions, etc. It has most effective bug tracking system.

3. Gogs : It allows you to run on an inexpensive Raspberry Pi.

4. BitBucket : It is preferred choice for big enterprises and free for projects with up to five team members.

Trending Repositories I explored :
GitHub Contributors
By: Vikram Singh
Tags: Github, Git, Github Pages, Data, Open Source

So before starting first of all introduce myself, I’m Vikram Singh a python developer and data analytics with machine learning. Let’s talk about GitHub, GitHub is a open source platform where any code developer work together to hosting a platform for version control and collaboration. You have to learnt these essentials like repositories, branches, commits, and Pull Requests.
GitHub a Proje Nasıl Eklenir?
By: Ürem Sancaktutan
Tags: Add, Repository, Github, Visual Studio, Proje

in The Unpopular Opinions of a Senior Developer
Migrate Travis CI to GitHub Actions for Node.js
Tags: Github Actions, Github, DevOps, Continuous Integration, Software Development

This article will go over how to migrate from Travis CI to GitHub Actions for a Node.js project on GitHub.

Travis CI

Given the .travis.yml :

GitHub Actions

First make the directory .github/workflows :

mkdir -p .github/workflows/

Create .github/workflows/build.yml :

touch .github/workflows/build.yml

Add the Node.js workflow:

The workflow is inspired by the template.

Workflow

Here’s a breakdown of what each YAML field does.

name

name is the workflow name. It’s optional and you can name it whatever you like:

on

on is the event that triggers the workflow. In our example, git push triggers our workflow.

To add the pull_request event:

Which is the same thing as:

jobs

jobs are the jobs that the workflow runs. In our example, we have a single job named build :

runs-on

runs-on is the environment that the workflow runs on. To specify an OS version:

strategy.matrix

strategy.matrix is the build matrix. In our example, we’re running a job for a single node version. To run jobs for multiple node versions:

steps

steps are the tasks of a job. In our example, we’re using the GitHub Actions:

actions/checkout checks out the repository and actions/setup-node sets up the node environment:

coverallsapp/github-action sends the coverage report to Coveralls:

steps.run

steps.run runs the commands. The commands can be npm scripts from package.json or other bash commands:

actions/setup-node@v1 installs npm , npx , and yarn . The --if-present option runs the script only if it exists.

env

env sets the environment variables for the entire workflow or an individual step. See env and jobs.<job_id>.steps.env .

Although Travis CI sets default environment variables, we don’t have to set CI=true for our job since actions/checkout@v2 does it for us:

Resources