fabiochiu/medium-articles huggingface dataset:
Avoid a Nightmare and Launch a Web Scraping Site in 5 Minutes.
By: Joshua Dyck
Tags: Nightmare, Docker, Zeit, Heroku, Web Scraping

I recently needed to upgrade the ability of one of my sites which was scraping some data from using CheerioJS to NightmareJS because the sites I was scraping updated to SPAs and Cheerio, though awesome, was only able to crawl static websites.

What I thought would be a quick fix ended up taking three days of trial and error. Finally, after combing through endless Github issues, open source Github projects and Stack Overflow whilst dealing with error after error (likely due to outdated libraries). I decided to give Heroku the heave-ho and tried Zeit Now instead. I’ve enjoyed using Now in the past and thought why not give it a shot.

Needless to say, after less than 10 minutes I found this repo, which sets up an electron instance with NightmareJS for Zeit Now using Docker. To get it working all you need to do is clone and… type “now” in the CLI. Done.

It’s sad that it took my three days to find a fix that took less than 10 minutes to deploy but it’s also amazing. I am blessed to live in a world that has open-source, Docker, and libraries maintained by passionate developers.

If you’re looking to use some web scraping tooling that needs to crawl SPAs for any reason I highly recommend using Zeit Now in combination with: https://github.com/now-examples/nightmare

Might save you three days of your life.

PS · If you by chance have a better way I’d love to hear it!

Cheerio!
Setup Socket.io Nodejs Server on Heroku
By: Terence Tsang
Tags: Nodejs, Heroku, Socketio

Setup Socket.io Nodejs Server on Heroku

Key Remarks

Install Heroku CLI

We have to use the environment port: Number(process.env.PORT || “80”). It will use 80 port to map into the internal port

Heroku will use Free Dyno to host the application. When there is no activity, the application will auto shutdown. Check Used Dyno Hours

heroku ps // check free dyno hours

You can deploy multiple process

Setup Project & Deployment

heroku login

npm init // create new node project

git init // init git

git add . // add files

git commit -m "Initial commit" // commit the files

heroku create // create app on heroku

// or

heroku git:remote -a heroku-testing // add by project name // Deployment Below git add .

git commit -m "New commit"

git push heroku master // deploy

heroku logs -n 200

.gitignore

/node_modules

npm-debug.log

/*.env

.idea

Package.json



"name": "heroku-testing",

"version": "1.0.0",

"description": "",

"main": "build/App.js",

"dependencies": {

"socket.io": "^2.2.0",

"socket.io-client": "^2.2.0",

"debug": "^4.1.1"

},

"devDependencies": {

"

"

"

"

"

"

"chai": "^4.2.0",

"mocha": "^6.1.4",

"source-map-support": "^0.5.12",

"ts-node": "^8.1.0"

},

"scripts": {

"start": "set DEBUG=app* & node build/App.js",

"logs": "heroku logs -n 350",

"commit": "git add . & git commit -m 'auto' & git push heroku master",

"test local": "set DEBUG=app* & node build/TestLocal.js",

"test production": "set DEBUG=app* & node build/TestProduction.js"

}

} "name": "heroku-testing","version": "1.0.0","description": "","main": "build/App.js","dependencies": {"socket.io": "^2.2.0","socket.io-client": "^2.2.0","debug": "^4.1.1"},"devDependencies": { @types/chai ": "^4.1.7", @types/mocha ": "^5.2.6", @types/node ": "^11.13.5", @types/socket .io": "^2.1.2", @types/socket .io-client": "^1.4.32", @types/debug ": "^4.1.4","chai": "^4.2.0","mocha": "^6.1.4","source-map-support": "^0.5.12","ts-node": "^8.1.0"},"scripts": {"start": "set DEBUG=app* & node build/App.js","logs": "heroku logs -n 350","commit": "git add . & git commit -m 'auto' & git push heroku master","test local": "set DEBUG=app* & node build/TestLocal.js","test production": "set DEBUG=app* & node build/TestProduction.js"

Create Socket.io Server

Create Socket.io Client

Testing Script

Replace the host with the public domain of Heroku
Hosting Your Rails App on Heroku
By: Valentino Wong
Tags: Flatiron School, Heroku, Hosting

As new software engineers, one of the most gratifying moments while learning to code is when we are finally able to share our projects with others. While you can definitely have users test your applications directly on your computer, hosting your application on the internet gives your users the freedom to access your application from anywhere at anytime!

Luckily, with advances in cloud computing over the last 10–15 years, creating and sharing our projects on the internet has never been easier. Today, there are many options for hosting your applications. Here are a few that came up frequently in my google searches:

Options for easily hosting your web application:

Each of these services has their pros and cons, which should be evaluated based on your specific situation. However, I have found that for new software engineers who are looking to host their first few Rails applications on the internet, Heroku provides a simple, cost-effective solution.

For that reason, this tutorial will focus on how to quickly set up a rails application on Heroku.

8 Steps for Setting up your Rails App on Heroku

1. Create a Heroku Account

2. Install the Heroku CLI (Command Line Interface) on your computer.

The Heroku CLI tools allow you to manage your Heroku apps directly from the terminal on your computer.

3. Login to Heroku from your terminal

$ heroku login

4. Create a new Rails app

When hosting your rails application on Heroku, you will need to use PostgreSQL as your database.

Since you’ll be using this as your production database, it’s recommended that you also use PostgreSQL for your development database. We can do this by passing in an option specifying which database we would like to use when we first create our new rails app.

$ rails new myapp --database=postgresql

5. Code your app

Routes, models, controllers, views, assets, etc. All the fun stuff that goes into building our applications!

6. Store your app on git

Hopefully you’re already using git & github to save your work and collaborate with others. For a short tutorial on how, check out my blog post!

$ git add .

$ git commit -m “Insert Message Here About Your Commit”

7. Deploy your application to Heroku

Creating a new application on Heroku is simple with the Heroku CLI tools:

$ heroku create example_app_name

NOTE: You can also leave the “example_app_name” blank and Heroku will automatically create a name for your application.

After the application has been created, push the most up-to-date code for you application from git to Heroku:

$ git push heroku master

8. Migrate your database(s) on Heroku

If your app relies on reading or writing any data to a database, you’ll need to first setup your Heroku database.

$ heroku run rails db:migrate

9. Visit your application on the web!

Now, your application should be hosted on the web through Heroku! In order to access it for the first time, just type the following into the terminal:

$ heroku open

Resources
HOW TO DEPLOY REACT APP USING HEROKU
By: Dennis Ukonu
Tags: Heroku, Programming

Heroku is a hosting platform where one can deploy dynamic application in PHP, Node.js, Python web applications etc.

DEPLOYING REACT APP WITH HEROKU

To deploy a React App, one can achieve it through different ways using node or express or any other stack . But I personally chose this steps because it is very much easier and precise.

STEPS

1. Check your node and npm versions.

for node

node -v

for npm

npm -v

2. Open your package.json file and create an object with key value pair of node and npm versions.

Note: Package.json is an object with key value pairs which are created based on the properties utilized. Yours might be different from this but it doesn’t matter. It wont utter what you want to deploy anyway.

For instance:

Let this be our initial package.json file.

{ “name”: “React App”, “version”: “0.1.0”, “private”: true, “dependencies”: { “react”: “16.8.6”, “react-dom”: “16.8.6”, “react-router-dom”: “5.0.1”, “react-scripts”: “3.0.1” },...

}

Let this be our final package.json file

{ “name”: “my-todo-app”, “version”: “0.1.0”, “private”: true, “node”: “10.15.3”, “npm”: “6.0.2”, “dependencies”: { “react”: “16.8.6”, “react-dom”: “16.8.6”, “react-router-dom”: “5.0.1”, “react-scripts”: “3.0.1” },... }

Observe that our Node and npm versions were added to our final package.json file.

3. Install heroku

Windows, Mac, Linux …have different installation method. So, i suggest you visit the site below.

After intallation, check heroku version

heroku --version

4. Git hub will be used. Use the following git commands for the file/files before the next process.

git init

git add ['filename'] or git add .

git commit -m'[name]'

Note: it is important to know exactly the git branch which heroku will deploy and specify it. Here, we will use the master branch.

5. Login in to heroku. This might open up your browser with your permission. Once signaled login is done, proceed to the next step.

heroku login

6. Run heroku create command. This will produce two links; one for our web url and the other for git hub.

heroku create

7. Run the push command for our app to be deployed.

git push heroku master

8. Finally, run the open command for the work to be displayed on the browser.

heroku open

Note:Changes can be made to the deployed app as well new deployment by visiting the options presented in the dashboard.

HERE IS A SAMPLE OF AN APP DEPLOYED WITH HEROKU

Note: One can make changes to the deployed app as well create new deployment paths by visiting the options presented in the dashboard.

Also, Heroku have a set limited to free users. The message below will be prompted once a free user wants to exceed their set limit.

▸ You’ve reached the limit of 5 apps for unverified accounts. Delete some

▸ apps or add a credit card to verify your account.

Happy Deployment.
Solving the TCP/IP connection error in a Python Flask App During Deployment
By: Faith Thuita
Tags: Deployment, Flask, Heroku

Let’s get started

Let’s begin by finding out what TCP and IP are and what they are responsible for doing in our applications before we can move forward.

TCP stands for Transmission Control Protocol, while IP stands for internet protocol. For starters, TCP like any other protocol has a set of established rules, it defines how to establish and maintain a network conversation where applications can exchange data. TCP works with the Internet Protocol (IP), which defines how computers send data to each other.

This blog assumes that you have tried deploying your Flask application to Heroku and gotten to the last stage where you create a database schema on Heroku through this command heroku run python3.6 manage.py db upgrade and received the following error or something similar if not the exact error:

(psycopg2.OperationalError) could not connect t

rver: Connection refused

Is the server running on host "localhost" (127.0.0.1) and accepting

TCP/IP connections on port 5432?

What this error is trying to say or at least from my experience, is that it’s trying to connect to your database but can’t. Assuming you have created a start file(start.sh) that will set up your environment variables and run the application easily for you rather than exporting them each time you have to run your application via python3.6 manage.py server.
Watch this epic song on ‘bitcoin’ on Youtube
Tags: Bitcoin News, Bitcoin, Rap, Cryptocurrency, Songs

[verse 1]

a Bitcoin is a currency, Blockchain is technology,

transactions take place on it constantly,

a public key is your address, private key is your access,

cash is trash but a Bitcoin is an asset,

and stacking sats is like accumulating gold,

a market order’s sold, to hodl is to hold,

a confirmation is that, the transaction is backed

with verification intact with miners proof of work,

a bankster is a crook, amateur traders get shook,

look, the white paper is the book,

and if the price is low you bought high and got stuck,

so whats luck? cause if you got hacked that means you got fucked,

and Bcash is a clone, open source is the code,

a computer running software is a node,

I know you like the way I break it down,

so lets take a moment to ponder,how does a million dollar Bitcoin sound?

[Hook]

ain’t nothing funny,

don’t nothing move, but the money,

stop standing’, be still,

don’t nothing move, but the money,

[verse 2]

Credit is debt, speculation is a bet,

Bitcoin, a native currency for the internet,

to panic sell is to sweat, a note is a cheque,

and to moon is for the price to move a 100x,

and Peter Schiff is a hater, Roger Ver is a traitor,

also whales are big players and manipulators,

to leverage is to add margin to your trade,

and if the market moves against you then your absolutely slayed,

I see bubbles they pop, it’s volatile alot

to predict the price going up, that’s just timing the top,

not many systems are credible, a Satoshi is one, one hundred millionth of a bitcoin decimal,

your wallet functions exactly like a bank clerk,

and hashrate is the power of the network,

I know you like the way I break it down,

So lets take a moment to ponder hows does a million dollar Bitcoin sound?

[Hook]

ain’t nothing funny,

don’t nothing move, but the money,

stop standing’, be still,

don’t nothing move, but the money,

[Verse3]

your crypto holdings is your bag, to boast about your gains is to brag

an address name is a tag,

scammers are shills, no coiners hold bills,

to execute a trade means your order got filled,

also Dapps are decentralized apps,

capital gains means tax, some buy signals are traps,

to discourse is to talk, but a lack of consensus

means that when a blockchain splits its a fork,

a halvenings an event,

where the block reward that miners get is cut by 50 percent,

participation builds a network effect,

but if you lost a large amount then that means you got rekt,

A low price is a dip, lambo’s are whips,

and bitcoin improvement proposals are bips,

I know you like the way I break it down,

so lets take a moment to ponder hows does a million dollar bitcoin sound,

[Hook]

ain’t nothing funny,

don’t nothing move, but the money,

stop standing’, be still,

don’t nothing move, but the money,
Put That On Your Playlist: Fly Out
By: Charles Blouingascon
Tags: Hip Hop, Lil Wayne, Music, Rap, Playlist

Song: Fly Out

Album: Tha Carter II

Honourable Mention: Brown Paper Bag (Like Father, Like Son)

— — —

Though Fly In is probably the better of the two bookends to Tha Carter 2, please don’t ever sleep on this track here. Seriously, listen to the actual song as you read through this verse, which we copied and pasted below in its entirety.

I got the game

On ball and chain

I threw the key in the drain

I’m like a ki in a drought

I spent a G on these frames

But my vision is priceless

Seeing through you niggas

Like a fuckin’ psychic

Hearing through the grapevine

Niggas wanna hate mine

Say my name and die in the daytime

You catch my drift

Man you better be Peyton

Boy the heat’s on

They making peace bonds

I’m in this bitch throwing up the “17” sign

Straight frowns, no daps

Strapped three times

A Tec-11, AK-47, one Beretta

Ready for whatever

Tell them pussy niggas come together

Heavy better, nigga

Super-soaker wet a nigga

Six feet under flowers

You ain’t nothing but a petal, nigga

I’m just a little nigga

Trying to be a civil nigga

30 years old, shit

That’ll be a given, nigga

Quit it Wayne, your Mom is listening

But she ain’t really tripping

’Cause the pots is pissed in

Them niggas trippin’

Until the shots whistlin’

Hear them bullets hissin’

Like a cobra at attention

I got a bitch, and quit calling women bitches

As long as she don’t worry ‘bout the coke in the kitchen

No preventing the grind, I gotta get it

I’m admitted to the game, true player, no quittin’

There you go shittin’ on the way a nigga thinkin’

Only history I know is Benjamin Franklin

And since the future ain’t promised to no one

I live everyday like this is the sure one

Trade in the tidal wave, this is the ocean

Stand in that heat ’til the motherfucking snow come

And it feels so fucking good

Throw my dope like a rope

Let ’em tug and pull

No hope for the hopeless

Rats and roaches

Running ‘cross the porch

In the attic there’s a fortune

Come and get it

Automatics in motion

We banging for the bread

Nigga, even the molded

I got my loaf

I got my toast

Chaperone of the South

I got my coast

Yeah, and until I die

I’m the Best Rapper Alive

Lil Wayne can’t rap? Come on man, are you serious? After he’s finished a verse where he brags about how he spent a G on these frames but that it doesn’t matter because his vision is priceless and gives you a life motto that we might as well have tattooed across our chest — “And since the future ain’t promised to no one I live everyday like this is the sure one” — there’s little doubt as to the veracity of the kicker of the verse. Wayne is the best rapper alive, thank you for listening.

— — —

Beat: 10/10

Lyrics: 10/10

Verdict: 10/10
An RPA Growth Story: Why R-Path Partnered With WorkFusion to Grow Their Business
Tags: Rpa, Automation, Business Process, Data Processing

There’s an emerging, even more compelling growth story to be told around process automation: Entirely new businesses can form around RPA, and small businesses can grow bigger through the exponential productivity that automation software allows.

R-Path Automation and Telogical Systems are two great examples of this business creation and growth.

Automation consulting firm R-Path helps businesses use robotic process automation and RPA tools to improve business outcomes. Its client, Telogical, had maximized what they could do with their staff and wanted to scale rapidly — but didn’t want to hire more workers to do the kind of data-gathering that can be quickly and accurately automated.

R-Path shortlisted four software solutions and recommended WorkFusion’s Intelligent Automation Cloud.

Jim Frost, R-Path’s Solutions Partner, said, “Telogical’s business revolves around monitoring telecommunications providers’ offerings, pricing, packages, and more across hundreds of sources a day. The primary use case was to automate monitoring that data and compare it to Telogical’s master data.” Telogical also delivers competitive insights to their clients via email and wanted to automate that end-to-end process too. In short, they required a versatile solution that could address multiple, disparate challenges, and WorkFusion’s software fit the need.

Capability wasn’t the only factor. As a smaller company with big growth ambitions, Telogical didn’t want employees to spend valuable time learning a complex, cumbersome software product. They knew time was better spent quickly delivering value to clients. Compared to other products, they recognized that WorkFusion’s dashboard is more intuitive and easier to understand, because it was built for business people without software-development expertise.

“You can be a very smart business user and, with good training, start using WorkFusion a lot faster. With WorkFusion’s help, we were up and running in a production environment within one day.” — Jim Frost, R-Path Automation

R-Path also was careful to choose an automation software product that comes with a supportive, proactive team behind it. RPA is still a new capability and getting the most out of it often means spending some time with the people who know it best. WorkFusion customers benefit from support and education, often in the form of courses on the Automation Academy training platform.

WorkFusion applauds the team at R-Path Automation, and what they are achieving for their clients. To learn more about R-Path and how they saved a client 10,000 hours of manual effort by automating a single use case, read this short case study. https://bit.ly/329Ot5G
Keneth Gone’s “Star Girl”
By: Cj Howard
Tags: Indie Music, Music, Independent Artist, Rap, SoundCloud

Indie artist Keneth Gone, is a rising SoundCloud rapper. Unlike many others of the kind, Keneth is the truth and has great music. He raps, sings, writes, and produces all his stuff. At just 16-years-old, he’s way ahead of the game compared to other MC’s out there. Just recently, Keneth dropped another new single, “Star Girl.” When you listen to the track, you’ll be gone like Keneth. It’s a really laid back track, with an addictive melody to it. Star Girl is a great feel good song, get gone in it.

I had a little chat with Keneth Gone and was impressed. He’s from Vancouver, Canada, his music influences are: Tyler the Creator, Daniel Caesar, Frank Ocean, and Nujabes. I had a couple of questions for him, one being what inspires and drives him, Keneth had this to say, “I’m at a point in life where I have to make decisions, performing to big crowds is a big dream.” The other was about why he goes by Keneth Gone, “ I feel like Keneth Gone is a very strange name, and that’s why I roll with it, no one has it.” And there you have it; Keneth Gone, original from his work to his name. With dreams of performing on the big stage, let’s put him there and support “Star Girl.”

Keneth has an EP coming out soon and has other songs out now, you’ll want to have his links, and stay updated.

Spotify: https://open.spotify.com/artist/1bjNJ9Crr6rlr8YlYgtJSZ

SoundCloud: https://soundcloud.com/kenethgone

IG: https://www.instagram.com/kenethgone/

Be sure to follow my publication, IG: @cwams:428, Twitter @cwamentertain1
Artist Interview: F. Nitti
Tags: Pop, Rap

Tell us about yourself and your music

First and foremost, thank you for sitting down with me for this interview, I appreciate it…I am known as the hip hop artist from Atlanta called F. Nitti and my music has the formula to take the music game back to realness and real lyricism.

Talk to us more about your latest release

My latest release entitled “Git Loose Wit It” was released mid January via all digital media outlets and has been doing exceptionally well on Spotify and Soundcloud. Its the next chart topper that will have ladies in a frenzy . Its also sky rocketing and gained the interest of Sony Music top A&R, Khao (@khaomusic)

What inspired you to write this release?

The beat was very moving when I first laid ears on it, so it was easy to write to. My comrade Paparazzi Hott came thru the studio unexpectedly and blazed the track with a verse so undeniable to sear in the flavor for this musical contraceptive.

Any plans to release a video?

I do have plans to release a video for Git Loose, I’m just waiting for my producers and videographer to have the final sit-down and finalize everything. I want it to be on point and not to miss a beat. However,I do have plans to do a video for What You Do, but my ideas for that track puts me way over budget.

Any plans to hit the road?

Not as of yet. I want everything to be into perspective first before I start doing tours. It’s good to have your ducks in a row before you leap out into something that’s new to you.

As an indie artist, how do you brand yourself and your music to stand out from the rest of the artists out there?

I don’t sound like the traditional artist of today. I’m more of what you may call a lyricist and it’s hard to break out of my ways of thinking when it comes to hip-hop.

Who have you been listening to lately?

The legends: 8Ball&MJG, UGK, Twista, Outkast, Bone Thugs, 2Pac, T-Pain, Old Jay-Z. I don’t have an artist that I like right now, because everyone sounds the same. Everyone is turnt up and they dont make any sense with their lyrics and I can’t roll like that. I have to make sense.

Tell us about your passions

What gets me out of bed? GOD. Period. My drive to be a better me is always the daily plan. I want to do better than I did the previous day and that’s what I strive for.

What else is happening next in your world?

Nothing really. If it ain’t music, It ain’t shhhhh. Lol

Thanks for an awesome interview, Donnell!

Connect with F. Nitti

Facebook: https://www.facebook.com/therealfnitti

Twitter: https://www.twitter.com/therealfnitti

YouTube: https://www.youtube.com/fnittiworldtv

Soundcloud: https://www.soundcloud.com/therealfnitti

Reverbnation: https://www.reverbnation.com/therealfnitti

Source: ArtistPR Indie Artist Interviews
This Salesforce Robot Saves UiPath Marketers 200+ Hours of Tedious Data Entry
By: Sudheer Kvr
Tags: Rpa, Uipath, Automation First, Salesforce

In most of my automated process examples, I use my hypothetical human example, Martha, and a generic process to explain where to start automating. The examples are a good place to start but still vague and I get asked often for advice on where to start automating more specifically. Well, here is my response to that question: a real example of a process that we automate at UiPath using our Robotic Process Automation (RPA).

We started the same way that we tell our customers to — by looking for repetitive processes that are necessary, but tedious. Finding these opportunities for automation starts with a single piece or person in a process.

In our case, a marketer named Ben noticed that he and his team spent a lot of time updating Salesforce with possible leads.

Sales collected leads from events and marketing campaigns, and then someone else needed to put that information in Salesforce and keep it updated. At UiPath, we love talking to customers and seeing people at events, but (like most people) we aren’t too thrilled with the data entry aspect of the job.

Ben brought this process to our developers and together they made a video recording of Ben at his computer updating leads in Salesforce. From that video, they were able to create documentation of the process that included every detail and exception.

People often forget little details about a process when they think about it, so the recording ensures that every click and every save is documented.

The documentation was then handed over to a developer, in this case, an intern named Rebecca, and she got to work building the Robot. While making the Robot, Rebecca discovered a few flaws in the process that she was able to fix that made the process even more efficient.

Read the complete article here: www.bit.ly/2lETqne
Artist Interview: PoopE Balboa
Tags: Rap

Tell us about yourself and your music

What’s up people I’m PoopE Balboa, I am an Artist from Sacramento California born in Oakland California. I’ve been into music since before Gradeschool and wrote my first rap at 13.Talk to us more about your latest release

I recently released a project called ‘Holes in the boat’. available on all music platforms so make sure to check that out.

What inspired you to write this release?

This release is inspired by the pain, struggle, and betrayal that I’ve encountered over time.

It’s hard to stay afloat when there are people on board drilling holes in the boat.

Describe the writing and recording process

This project was written and recorded in a home studio but professionally mixed and mastered. The writing process was pretty emotional on a few tracks because I had to kind of re-live some things that were painful.

Any plans to release a video?

I have released a video for the title track and plan to drop at least five more.

Any plans to hit the road?

I am looking to tour but nothing is set in stone right now. I have recently performed in a few holes in the wall venues around Sacramento

As an indie artist, how do you brand yourself and your music to stand out from the rest of the artists out there?

A lot of artists today just rap with little or no meaning and most are hard to understand. I like to paint vivid pictures in my experience of life.

Who have you been listening to lately?

I’ve been listening to a lot of Nipsey Hussle lately… I think he’s pretty inspirational.

Who are your biggest influences?

I’ve always been influenced by artists like Ice cube, too short, E-40 but one of my biggest influencers today is Mozzy. I grew up with that guy so we definitely share the same struggles.

Tell us about your passions

I would have to say, families. I have two boys 16 and 13 that I’ve been taking care of on my own for the past 11 years and making sure their goals are met it is very important to me.

What else is happening next in your world?

Well, I’ve always been into filming and directing and I am happy to announce that I am working on a movie and a few other things that you guys will have to wait and see about.

Thanks for an awesome interview, Henry

Connect with PoopE Balboa

Facebook: https://m.facebook.com/poope.balboaTwitter: https://twitter.com/2solidbalboaReverbnation: https://revirbnation.com/poopebalboaSoundcloud: https://soundcloud.com/poopebalboaYoutube: http://www.youtube.com/watch?v=F3RANr6cwuo&list=OLAK5uy_llPbQ660Y-wIWy9XBsTjH5MceCd2dPJEk

Source: ArtistPR Indie Artist Interviews
Music, Nairobi and Legacy.
By: Itotia Waiyaki
Tags: Hip Hop, Nairobi, Africa, Music, Rap

Nairobi.

Nairobi is not like most cities, legacy here is incredibly high pedigree.

I stumbled across a clip on Sunday evening by HBR where a local up an coming female rapper, Dyana Cods in a minute or so, summarized where the music industry in Kenya is.

https://www.youtube.com/watch?v=e75NFKDZaA4&feature=youtu.be

The lady can rap. End of. It was amazing watching her take her time, and make sure the beat matched her cut throat flow…

“Kuja na ngwai, mabeste wangu wote fisi, mi ndio hu dara polisi, mi huleta form ya bedroom kwa kiti…”

A couple of bars in and you just knew Nairobi would not be the same. Her references were on point; taking samples off local hits as well as local events, and her breath control as she tore through the instrumental, showed an artist in her element. It was as if she has been rapping for years.

You could almost feel her passion, pain, joy and hunger as she breezed through the trap instrumental, painting a picture of what its like to grow up in Eastlands.

I would have loved to be in the studio the night she did this. I love being part of these moments. When someone starts a fire. When someone sets the bar.

The music industry in Kenya has had such a high pedigree, you think of all the lyrical MCs we’ve seen bless a microphone, from the poetic flow of E-sir, K -Rupt’s melodic voice,( btw am the only one who thinks Nyashinski is like the second coming of K Rupt?…) to Nonini and the whole of the Calif crew.

All these talented MCs have come and set the bar for the next generation and it feels like something special is happening again, and not just in music.

Now, like most of the content coming out now, the content is raw, hard hitting and full of profanity. I am not against it, my only hope is that these artists come under older artists/ labels that can guide them to diversify their content and grow.

We all want to see all these talented artists go all the way. This wont be done just rapping about drugs alcohol and sex, but this is a debate for another day.

I look forward to being inspired. To seeing how far Dyana, the whole of Zozanation and these incredible pool of talent this city is churning out can go.

There is something about this beautiful city of ours… Legacy is incredibly high pedigree here, and whatever you seek to do here, you better be coming for the crown, and not just to participate.
The Next Generation of Rap and R&B
By: Lewis Pearce
Tags: Music, Hip Hop, Rap

Cordae

The Next Drake?

Image from https://www.xxlmag.com/ybn-cordae-interview-the-break/

I’ll start the list off with arguably the biggest artist here. Cordae, formerly YBN Cordae, has been heralded as one of the best up-and-coming rappers of his generation. It is easy to see why — his promising debut release, 2019’s The Lost Boy, highlighted his versatility, his pen game and his ability to attract some of the biggest artists currently working in the industry, including acts like Pusha T and Anderson Paak. However, not all believe the hype, and he needs his sophomore to build on this promising start.

The reason I have likened him to Drake is for his wide range of song styles and big personality displayed in his music. Comparing Broke as Fuck and Wintertime is like night and day, like Drake with Jungle and Energy or between his different albums. There is also the element of him becoming popular, meaning some rap fans are beginning to dislike him to be “cool”. Finally, I truly believe he will be the artist other artists will scramble to feature on their tracks, similar to how Drake is now for every rapper.
NBA King David “The Next Big Thing”
Tags: Rap

Atlanta, GA — Friday, July 2nd, 2021 — NBA King David A.K.A. Dirty Dave, is the owner and co-ceo of Never Broke Again Records-now it’s his turn in the spotlight. He’s been pulling big numbers on YouTube with every recent video uploaded.

The Baton Rouge LA. native is a Hip-hop artist who is considered to be one of today’s best new artists. Not considering his troubled past in which he was shot with guns on several occasions, and he was shot numerous times including getting shot in his face and he lived.

His upcoming debut album, The Next Big Thing, will be a project chronicling a chapter of his life filled with ups and down, taken from experiences in the streets of Baton Rouge Louisiana and Atlanta Georgia.

Originally from Louisiana, NBA King David relocated to Georgia as an adult, to pursue his music career. It’s no surprise he’s considered The Next Big Thing, because his Rugged-N-Raw voice and rap style can not be emulated.

Kicking off his career as a talented Hip-hop artist, NBA King David’s music can be located on most major platforms. Some of the list includes platforms such as Apple Music, Spotify, Google Play/YouTube, iTunes, Amazon, iHeartRadio, Deezer, Napster, and viral music videos on YouTube.

So it’s highly recommended that you subscribe to NBA King David’s YouTube channel:

Also, follow NBA King David on Twitter @kingdavid404, Instagram nba_kingdavid, and feel free to listen to NBA King David’s latest single entitled “Beautiful”

NBA King David — Beautiful

###

ABOUT

NBA King David A.K.A. Dirty Dave, is the owner and co-ceo of Never Broke Again Records-now it’s his turn in the spotlight. He’s been pulling big numbers on YouTube with every recent video uploaded.

The Baton Rouge LA. native is a Hip-hop artist who is considered to be one of today’s best new artists. Not considering his troubled past in which he was shot with guns on several occasions, and he was shot numerous times including getting shot in his face and he lived.

His upcoming debut album, The Next Big Thing, will be a project chronicling a chapter of his life filled with ups and down, taken from experiences in the streets of Baton Rouge Louisiana and Atlanta Georgia.

Originally from Louisiana, NBA King David relocated to Georgia as an adult, to pursue his music career. It’s no surprise he’s considered The Next Big Thing, because his Rugged-N-Raw voice and rap style can not be emulated.

Kicking off his career as a talented Hip-hop artist, NBA King David’s music can be located on most major platforms. Some of the list includes platforms such as Apple Music, Spotify, Google Play/YouTube, iTunes, Amazon, iHeartRadio, Deezer, Napster, and viral music videos on YouTube.

So it’s highly recommended that you subscribe to NBA King David’s YouTube channel:

Also, follow NBA King David on Twitter @kingdavid404, Instagram nba_kingdavid, and feel free to listen to NBA King David’s latest single entitled “Beautiful”

NBA King David — Beautiful

CONTACT

NBA King David

jesussonkingdavid@gmail.com

Source: ArtistPR Music Press Release

#Rap, #Albums, #PressRelease
[Linux/Ubuntu] How to fix ‘Solving environment: failed with initial frozen solve. Retrying with flexible solve’ in Anaconda without creating a new environment
By: Amritya Singh
Tags: Anaconda, Opencv, Conda, Solving Environment, Initial Frozen Solve

[Linux/Ubuntu] How to fix ‘Solving environment: failed with initial frozen solve. Retrying with flexible solve’ in Anaconda without creating a new environment Amritya Singh Follow Feb 13 · 3 min read

So if you’re new to Anaconda or have just encountered the ‘Solving environment: failed with initial frozen solve. Retrying with flexible solve’ while installing a certain package in your environment, then here’s the fix without creating a new environment!

Please got through it carefully!

What to avoid?

Many of the fixes that you’ll find online will tell you to create a new environment altogether and then install the package that you are having trouble with in that environment.

Creating a new environment by running:

conda create --name env1

And then activating it by:

conda activate env1

And then installing the package (let’s assume it’s opencv) in the new environment (env1) by running:

conda install opencv

Now, we should avoid creating a new environment altogether because it’s just a time consuming temporary get-around, and we might face the same problem in the future because the real issue hasn’t been dealt with. Also, creating a new environment every time you come across this error is just lame. So, I’d suggest not following through this step.

The root of the problem?

So, let’s say you decide to install opencv in your environment (my_env in my savedcase). So you activate your environment:

conda activate my_env #replace 'my_env' with your environment name

And then install the opencv package:

conda install opencv

And come across this error:

Solving environment error

Now, this happened because there is a conflict with the existing packages and the package we are trying to install. We can see, that that opencv isn’t compatible with python=3.8, which is our anaconda’s python version. The rest of the packages which are already installed works on the version 3.8 but opencv doesn’t.

We can clearly see in the error output message that the which python versions work with opencv.

The fix?

What we need to do is simply change the python version inside anaconda. We can first see the list of the python versions inside of anaconda by executing:

conda search python

We’ll get something like this:

python version list

Now, we know that any python version between 2.7 and 3.8 is supported by opencv. So select any version between that bracket, preferably the latest one, in my case I am chosing 3.7.5 and install it in our environment by executing:

conda install python=3.7.5

Now, after executing this command, the python version will shift to 3.7.5 and all the packages will be updated/downgraded to that version.

Now we will install opencv in our environment by:

conda install opencv

And voila! It’s installed!

Successfully installed

You can install any other packages the same way if you’re having a similar problem with your anaconda environment.

Leave a clap, if it helped you!
Faster YOLOv4 Performance with CUDA enabled OpenCV
By: Akash James
Tags: Yolov4, Opencv, Cuda, Nvidia, Computer Vision

CUDA 11.2 and cuDNN 8.1.0 installation

The section that has the highest chance of rendering your machine un-bootable. Just kidding! Do everything right and this should be a breeze.

Installing CUDA 11.2

Begin with downloading the deb file from the CUDA repository based on your platform.

Image by author | CUDA platform selection

Once you have selected your platform appropriately, you will be provided installation commands. If your platform is similar to that of mine, you can install it as follows —

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/11.2.1/local_installers/cuda-repo-ubuntu2004-11-2-local_11.2.1-460.32.03-1_amd64.deb sudo dpkg -i cuda-repo-ubuntu2004-11-2-local_11.2.1-460.32.03-1_amd64.deb sudo apt-key add /var/cuda-repo-ubuntu2004-11-2-local/7fa2af80.pub sudo apt update sudo apt -y install cuda sudo reboot

If done right, you should have the following output when you run nvidia-smi

Image by author | nvidia-smi

Finally, finish off by pasting the following in your .bashrc or .zshrc

# CUDA

export CUDA=11.2

export PATH=/usr/local/cuda-$CUDA/bin${PATH:+:${PATH}}

export CUDA_PATH=/usr/local/cuda-$CUDA

export CUDA_HOME=/usr/local/cuda-$CUDA

export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH

export LD_LIBRARY_PATH=/usr/local/cuda-$CUDA/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH

export NVCC=/usr/local/cuda-$CUDA/bin/nvcc

export CFLAGS="-I$CUDA_HOME/include $CFLAGS"

Don’t forget to follow up with source ~/.bashrc or source ~/.zshrc

Installing cuDNN 8.1.0

For this, you will need to have an account with NVIDIA, so make sure you sign on. Once you do, head here and download the marked files.

Image by author | cuDNN selection

Once you have the deb files downloaded, run the following commands —

sudo dpkg -i libcudnn8_8.1.0.77-1+cuda11.2_amd64.deb

sudo dpkg -i libcudnn8-dev_8.1.0.77-1+cuda11.2_amd64.deb

This marks the completion of NVIDIA CUDA and cuDNN installation!
Setup Machine Learning Environment/OpenCV/TF On M1 Mac (Apple Silicon)
By: Trayansh Dewangan
Tags: TensorFlow, Opencv, Apple Silicon, Machine Learning, M1

//I Suggest To Do all this Inside miniforge3 dir for that

// cd miniforge3

unzip opencv.zip

unzip opencv_contrib.zip

cd opencv-4.5.0

mkdir build && cd build

//Here Take Care Of Paths of OPENCV_EXTRA_MODULES_PATH and

// PYTHON3_EXECUTABLE If you're Beginner watch the YouTube video

//And If Inside miniforge3 just place your <username>.

cmake \

-DCMAKE_SYSTEM_PROCESSOR=arm64 \

-DCMAKE_OSX_ARCHITECTURES=arm64 \

-DWITH_OPENJPEG=OFF \

-DWITH_IPP=OFF \

-D CMAKE_BUILD_TYPE=RELEASE \

-D CMAKE_INSTALL_PREFIX=/usr/local \

-D OPENCV_EXTRA_MODULES_PATH=/Users/<username>/miniforge3/opencv_contrib-4.5.0/modules \

-D PYTHON3_EXECUTABLE=/Users/<username>/miniforge3/envs/ml/bin/python3 \

-D BUILD_opencv_python2=OFF \

-D BUILD_opencv_python3=ON \

-D INSTALL_PYTHON_EXAMPLES=ON \

-D INSTALL_C_EXAMPLES=OFF \

-D OPENCV_ENABLE_NONFREE=ON \

-D BUILD_EXAMPLES=ON ..

make -j8

//"8" is the number of cores To be used(This Step Takes Time)

sudo make install

//Linking OpenCV To Conda Environment

mdfind cv2.cpython

//From the output Copy the Path similar to the below one

"/usr/local/lib/python3.8/site-packages/cv2/python-3.8/cv2.cpython-38-darwin.so cv2.so"

cd

cd miniforge3/envs/ml/lib/python3.8/site-packages

ln -s PasteYourCopiedPathHere
Face recognition using Open CV in Java
By: Ashan Lakmal
Tags: Java, Facedetection, Java Programming, Opencv

In this operation we use the opencv java to build the application using spring. So in this blog you can see the face detection was successfully done by the application.

First, We look How to import the libraries To The application

First, obtain a fresh release of OpenCV from download page and extract it under a simple location like C:\OpenCV-2.4.6\ . I am using version 2.4.6, but the steps are more or less the same for other versions.

Now, we will define OpenCV as a user library in Eclipse, so we can reuse the configuration for any project. Launch Eclipse and select Window –> Preferences from the menu.

Navigate under Java –> Build Path –> User Libraries and click New….

Enter a name, e.g. OpenCV-2.4.6, for your new library.

Now select your new user library and click Add External JARs….

Browse through C:\OpenCV-2.4.6\build\java\ and select opencv-246.jar. After adding the jar, extend the opencv-246.jar and select Native library location and press Edit....

Select External Folder… and browse to select the folder C:\OpenCV-2.4.6\build\java\x64 . If you have a 32-bit system you need to select the x86 folder instead of x64.

Your user library configuration should look like this:

Testing the configuration on a new Java project

Now start creating a new Java project.

On the Java Settings step, under Libraries tab, select Add Library… and select OpenCV-2.4.6, then click Finish.

Libraries should look like this:

Now you have created and configured a new Java project it is time to test it.

Test the Face-detector

Now get the code for the Facedetector.class

package com.ocr.ocrexample;



import org.opencv.core.*;

import org.opencv.imgcodecs.Imgcodecs;

import org.opencv.objdetect.CascadeClassifier;

import org.springframework.web.multipart.MultipartFile;



import java.io.IOException;



import static java.lang.System.loadLibrary;

import static org.opencv.imgproc.Imgproc.rectangle;







class DetectFaceDemo {

public static void run(MultipartFile file) throws IOException {



loadLibrary( Core.NATIVE_LIBRARY_NAME );

CascadeClassifier faceDetector = new CascadeClassifier();

faceDetector.load( "C:\\Users\\Desktop\\ocv\\.idea\\haarcascade_frontalface_alt.xml" );



// Input image



com.ocr.ocrexample.FileUploadController.convert(file);

Mat image = Imgcodecs.imread(String.valueOf(file)); // Detecting faces

MatOfRect faceDetections = new MatOfRect();

faceDetector.detectMultiScale( image, faceDetections );



// Creating a rectangular box showing faces detected

for (Rect rect : faceDetections.toArray()) {

rectangle( image, new Point( rect.x, rect.y ), new Point( rect.width + rect.x,

rect.height + rect.y ), new Scalar( 0, 255, 0 ) );

}

// Saving the output image

String filename = "Ouput.jpg";

System.out.println("Face Detected Successfully ");

Imgcodecs.imwrite( "D:\\" + filename, image );





}

}

From this code you can get the output as a green color box that indicate the face.

Output

Output

You can get the face recognition from the open cv java.
OpenCV: Brief note on how you can access webcam in Google colab!
By: Arvina Kori
Tags: Opencv, Google Colab, Computer Vision, Deep Learning, Face Detection App

Working in Google Colab with free GPU is the smartest option that a beginner can get. But it becomes headache when you are working with OpenCV.

Basically Google Colab is cloud service, and you can’t access your local hardware like webcam. But it is possible by running some Javascript code given by Google Colab, but it only captures photo not video.

So i have grabbed some code from this article and some my code, to access webcam.

Step 0: Open Google Colab.

Step 1: Make Directory where all our captured videos will be stored.

Clone Opencv repo where you can get haarcascade files.



!mkdir Video !git clone https://github.com/opencv/opencv.git !mkdir Video

Step 2: Import Javascript code to open webcam.

Step 3: Open captured video

videofile = get_video() with open(video_file_test, 'wb') as f:

f.write(videofile)

Step 4: Some OpenCV code

If you want to view entire video you can remove count from while loop.

Step 5: And you are all done:

Disadvantage: Using this method, the video will be shown as png format, means frame by frame. But you know what it works.

You can find the working Github repo here.

OpenColab.ipynb