Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Quality
Anya is LIVE right now
FREE
Free to watch âĸ No registration required âĸ HD streaming
I want to make people engaged in my conversation (through talking, messages and videos) so more and more people will be interested in what I have to say.
I will initially use this skill for making vlog stories on YouTube, make them fun and engaging.
And why I want to make vlogs?
So I can create something, store them for future and maybe create an audience.
How I am approaching this?
I searched for a Udemy course first, found a promising one that I like but itâs 27 hours long. I donât have that much time to spend, maybe in the future.
So I am going to watch story telling videos from YouTube. This will give me a barebones starting point and give an overall idea from many different sources.
Have collected a list of ten or so videos on a public playlist.
I will spend one hour every day for the next week to watch, learn and apply the skills. To apply, I will take notes and also make a post using the techniques on social media.
Right now I don't know anything about story telling, I just write and tell my stories. I will check back next week to see what I have learned.
function doSomething() { // Code goes here } doSomething();
I removed the endscreen like this: document.querySelector('.ytp-ce-element').style.display = 'none';
After uploading the chrome extension I saw the video only hides one end screen. There can be upto four end screen items in a video.
So I used the querySelectAll() to select all the elements. This creates an array. My next job is to run a loop and hide all of them.
Updated code:
function loadStuff() { // Target and get all the endscreen items var allEndscreenItems = document.querySelectorAll('.ytp-ce-element'); // Hide them all allEndscreenItems.forEach((item) => (item.style.display = 'none')); } loadStuff();
So it works now!
Problem
After checking a few other videos I saw the end screens are back.
Apparantly, the script only runs when I do a page refresh, but YouTube loads videos without refreshing the page.
This is where I got stuck and I need to learn how to run the code everytime a new video plays.
This is the part I hate the most.
Temporary Solution
I made a temporary solution by putting the code inside a time interval. It will now run every second. I know it's not very efficient but it is working now.
setInterval(function () { loadStuff(); }, 1000);
Publishing to Chrome web store
Uploading was straightforward. I just uploaded the folder in zip and set the description and images. It cost me \$5 for one time developer fee.
Chrome Extension Link
I also uploaded it to Firefox and the process for making an extension is the same as chrome. So I was able to upload the same package.
Making multiple API requests with Promise.all() with loop
In some cases I don't know how many times I have to call the api (like a user request), so I will need to run a loop. Now it's possible to call the api with a for loop using async await like this:
The function should have async keyword before the function keyword
for(let i = 0; i< list.length; i++) { let response = await callTheApi(); }
But it's slow and takes way more time. Better if I run them all at once with Promise.all()
For this I will run the loop first and then call the array later with all the promises.
var allPromises = []; inputRequestArray.forEach((request) => allPromises.push(request)); var allReturnedPromises = await Promise.all(allPromises); // The code below this will not run until all promises resolve above
This way all three or so API calls run at the same time and resolve in less time.
We can streamline this code further with Array.map():
var allPromises = inputRequestArray.map((request) => request);
Reading file with FileReader in JavaScript + Reading Excel SpreadSheets
The file input field for uploading the file. This should be inside the <form> tag. It should have enctype="multipart/formdata" when using vanilla JS. React doesn't seem to need this.
<input type="file" name="excelFile"/>
Add an onChange action to hook up a file upload action.
Capturing the file:
let file = event.target.files[0];
File is an object with name, size and various attributes.
Use the FileReader class to create a new reader to make the reading and stuff.
let reader = new FileReader(); // Reading text and csv files: reader.readAsText(file); // Reading complex files like xls files reader.readAsArrayBuffer(file);
Hook into the onload event listener that will fire after the file is being loaded.
reader.onload = function(evt) { var data = evt.target.result; // Do something with the data, display it // OR var { result } = reader; // Do something with it // The data and the result is the same thing }
Reading Excel SpreadSheet xls, xlsx with XLSX module
Get array buffer data and process the spreadsheet with this module.
npm i xlsx
import XLSX from 'xlsx';
Now use the following functions to parse the excel sheet and convert the data into a JSON object:
// Parses the data var workbook = XLSX.read(data, {type: 'array'}); // array because I used readAsArrayBuffer // It can have multiple sheets, here taking the first one var first_worksheet = workbook.Sheets[workbook.SheetNames[0]]; // Converting the worksheet to json var jsonArr = XLSX.utils.sheet_to_json(first_worksheet, { header: 1 }); // Do something with the json
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Quality
Anya is LIVE right now
FREE
Free to watch âĸ No registration required âĸ HD streaming
I am working with TypeScript for this new React project and itâs hampering my productivity. I am learning it as I go.Â
Getting errors in every other line of code and the overall productivity is low. But I know TS is great and it will make me productive over the longrun.
Every time you start using new tech, your productivity will go down for the first few weeks. Then it will go up eventually. Just like it happened with me when switching to VS Code.
The file sits inside the project root folder (where I can see src, bin folders)
The FileReader is primitive, so I have to wrap it around a TextReader or Scanner class. I am using scanner to create the input stream:
Scanner input = null; input = new Scanner(new FileReader(fileName));
The Scanner input should be defined outside so that I can use the input later in the project. It should be set to null to avoid Java showing the local variable may not be initialized error.
Once I have the input stream, I can process the text file line by line with input.nextLine() or word by word input.next()
Checking if there are more text in the file: input.hasNext()
The entire input should be wrapped inside a try-catch block, it throws a FileNotFoundException:
try { input = new Scanner(new FileReader(fileName)); while(input.hasNextLine()) { System.out.println(input.nextLine()); } input.close() } catch (FileNotFoundException e) { // TODO: handle exception System.out.println("File not found " + e); }
Writing Files with Output Stream
PrintWriter is the available class in Java to create the output stream. I create this by doing PrintWriter output = new PrintWriter("output.txt")
This will create a file in the directory, rewrite if already exists.
I can take the output object and write to it like this: output.println() for writing line by line or output.print() for writing in the same line.
Again, I have to wrap it around a try-catch block and catch an IOException error.
Today I lucid dreamed. (it's a state when you are aware of the dream and can control it) I went downstairs, then I reached a beach. I looked at myself in the mirror to see my face.
When you see yourself in the mirror, what you will see is a representation of yourself by your subconscious self. Sometimes it can freak you out because it won't be what you see in the real world.
Okay so I saw my face in the mirror, a happy face. I also noticed that I have eyes in my ear. So I have about 4 eyes. I did not freaked out because I am aware that it's my dream.
I went to the beach waves. Dipped my feet with it.
I am lucid dreaming more frequently and I am not even doing any preparations at all. So it makes me feel that slowly I am gaining control over my dream state. Feels wonderful.
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Quality
Anya is LIVE right now
FREE
Free to watch âĸ No registration required âĸ HD streaming
What it's gonna be? Germany or Brasil? Just 3 hours to go for the semi finals in world cup. I hope Brasil wins and meets Argentina in the final (I hope Arg wins too)
Today's google doodle was great. In this world cup the referee draws a line with a foam can -it looks kinda like the shaving foam.
So in this doodle g-o-o-g-l-e letters are standing in a row as we see when ever someone takes a free kick. The referee (r) draws a line and sees the bearded G and puts some foam in his face too.
The animation ends when the referee pulls out a razor as he were to shave G's beard. That was so funny!
If you missed the doodle you can search for "google doodle july 8 2014"
So today I had a long nap in the evening so I can enjoy the first semi final in 2AM over at my place.
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Quality
Anya is LIVE right now
FREE
Free to watch âĸ No registration required âĸ HD streaming
It's 11th of Dec 2012 and I see people are talking about the upcoming 12-12-12.
For years people are having this belief that the world is going to end this year. But it is not.
And if the world is going to end, why it will happen in the English year?
Today is a different date in Chinese calender, something else in the Islamic (lunar) calendar, a completely different set of numbers in Bengali year also completely different from what it is on the Jewish year.
12-12-12 is just like 11-11-11 or 10-10-10, it is something that looks nice to see and read.
In 2009 it was 9-9-9 and in 1999, it was 9-9-99.
Numbers doesn't matters.
For so many people today(or at the moment) it is the end of their lives. So many people at this moment are suffering like hell in torture. So it is judgement for them anyway.
Just few weeks ago, I was having pain in my ankle. It was hard to spend each day.
When I went to see the doctor, he couldn't say much but he suggested that I have very high blood pressure. He did some tests for me and he said to meet this doctor.
I was worried after that and I was feeling that I am going to die. I am not even 25 and started to see that my time is coming to an end.
When I saw this doctor, he said I am completely fine. And he gave me some meds.
From that day I realized that I got a new life and I must use it at it's best.
Since that day I am getting up early in the morning and getting much work done than before.
So my friend, if you survive after 12-12-12, you have to make a promise to yourself. You have to change your life once and for all.