Show HN: Debugger that generates video visualizations for algorithm learning
- A simple Python debugger and profiler that generates animated visualizations of program flow.
- All of the debugger's subcommands and options are documented in the usage help, which is readily available on the command line.
- It is possible to generate videos live while running the debugged program, but this is discouraged because the overhead of video creation inflates execution times greatly and thus ruins profiler results.
- The default config documents the available options, which can be customized in an minimal overlay config without having to duplicate the entire config.
- An example of a simple overlay is the config used to generate official demo videos for embedding in READMEs. This simple config increases the speed (FPS) slightly and adds an intro screen at the beginning of the video.
- Once your contribution meets the guidelines, open a pull request to make things official.
De-Anonymization via Clickjacking in 2019
- This blog post is about my journey to understand the current practice of de-anonymization via the clickjacking technique whereby a malicious website is able to uncover the identity of a visitor, including his full name and possibly other personal information.
- My journey began when I read the excellent Google YOLO blog post by @filedescriptor about a clickjacking vulnerability of the Google YOLO (You Only Login Once) service, a web widget that provides an embeddable one-click login on websites.
- The blog post discusses how the widget can be used as a privacy threat, explaining that it’s possible to build a website with the Google YOLO widget and disguise the widget to make it look like a harmless button.
- An attacker can easily create a new website and use clickjacking with the Like widget, and then send the page to a limited amount of victims and reveal their identities by tracking the likes on Facebook.
Understanding Higher Order Function
- Higher Order Function it's a very basic concept (and much important too) but also a little misunderstood.
- And if, rather than define in the declaration moment the all behavior of our function, could we define one parameter to receive another function as argument and let the behavior to the execution moment?
- Now we create a generic function copyArrayAndManipulate, that receives as parameter the array e one function called fn.
- The function copyArrayAndManipulate it's our Higher Order Function, while the function fn that we'll pass in argument is our callback function.
- Our code stayed much more declarative and legible, because in reading we know exactly that the value of result1 will be the copy of array [1, 2, 3] multiplied by 5, for example.
- Higher Order Function it's a simple and important concept, but so much peoples have a little difficult to understand it.
Why I *love* TMUX
- So one sweet thing about Tmux is that it creates "sessions" which means that you can open several separate instances of tmux all with their own tabs and applications running.
- This feature extends beyond the ability to run tmux in any terminal and get a new instance.
- I create a specific "work" session in tmux that has VIM, servers, and other utilities initialized and I actually rarely close it - I simply detach from the session when I'm done working.
- The session management in tmux is more of a power user utility that I started seriously using only recently but it's super useful and at this point, it's the selling feature of tmux to me.
- If I want to take a break from my desktop, I can just pick up my laptop, open a terminal window there, and attach to the session.
Code Review best practices
- The aim of the code review is to build the team spirit, improve the code quality and collaboratively learn the best practices.
- Make sure your CRR or commits are based on a single feature or story or bug fix.
- Keeping multiple features or bug fixes in a single code review request will create more confusion.
- Add everyone from the team to your code review request.
- Send an Instant message to your team when the CRR request is sent or when the individual completes reviewing a particular request.
- When you are reviewing, look into the code and make sure you understand what code does actually; if there is any doubts/clarification needed highlight the code and add comments for clarification.
- The code review process is to improve the code quality and build the team spirit in a better way.
Learning Faster as a Developer
- To get things done, by being resourceful or seek information or advice by Googling or asking a person for help.
- I found that reading another person's codebase and documentation helps a lot to understand to write better pieces of code.
- One of the best ways to learn about coding is diving into open source projects and reading their codebase to understand their thinking process and how a feature is implemented.
- As long as you create content that is specific for your niche, which in my case was Python, Web Development & Startup.
- To find you by offering you a job or customers who know that you are specialised in your niche to seek advice or help them to build things for them.
- I hope it is useful for you who are seeking to accelerate your learning as a developer.
Dershowitz says he'll 'forgive' Pompeo's 'rudeness' to reporter if he brings peace to Middle East
- The comments come following President Donald Trump's remarks at the unveiling of the Middle East plan on Tuesday, where the President praised Pompeo's behavior toward a National Public Radio reporter as "very impressive" and having done "a good job on her" as Dershowitz patted Pompeo on the back.
- While Dershowitz initially said, "I patted him on the back a dozen times when we talked about the Middle East, so that's what my pat was intended to encourage," he then suggested that the gesture had been meant to support Pompeo in response to criticism over his behavior toward Kelly.
- On Monday, the department removed another NPR reporter from the press pool covering Pompeo's upcoming trip to the United Kingdom, Ukraine, Belarus, Kazakhstan and Uzbekistan, and has yet to explain or defend the highly unusual decision.
Trump in private: what really happens
- Once Trump arrives and the phone is set down, the audio reveals a President who can speak with more coherence than we hear from him in public, but whose talking points and jokes don't vary much from his greatest hits.
- However, the recording also offers not only a new window into a world of sycophants and operators, but also disturbing proof that the President is just as narcissistic, erratic and ill-informed in private as he is in public.
- It's the craziest thing; since I've said that I don't hear from her anymore.") Like the public Trump, the private one also lies about America's share of the NATO budget, pegging it at 90% when it's really 22%.
- Although the President didn't promise to take action on behalf of the others at the dinner, after Parnas talked, Trump said, "Get rid of her.
THE STORIES REPORT: How brands can take advantage of the viral growth of the Stories format
- Business Insider Intelligence Stories are on track to become the main format for social media consumption, providing brands with a massive and vital opportunity to reach consumers.
- Combined, Stories features on Facebook-owned platforms command a whopping 1.5 billion daily active users (DAU), though some may be double-counted.
- Stories-centric features have also emerged on several other platforms, including YouTube, Google search results, and even LinkedIn. The viral acceptance of Stories, their accelerating usage, and their highly engaging nature make it imperative for brands to use the format to reach consumers.
- In The Stories Report, Business Insider Intelligence identifies the most popular platforms for Stories features, defines best practices to maximize engagement without alienating users, and pinpoints challenges hindering brand adoption for the future.
- The companies mentioned in this report are: Facebook, Google, Instagram, LinkedIn, Messenger, Snapchat, WhatsApp, and YouTube.
Australia is quarantining residents evacuated from Wuhan on a controversial island used to house asylum seekers
- Having controversially used the remote Indian Ocean territory to keep out asylum seekers for over two decades, the Australian government announced on Wednesday local time it would use Christmas Island to quarantine Australians who have found themselves in the midst of the coronavirus outbreak.
- Those selected will be transported from China to Christmas Island, a small Australian territory south of Jakarta, a journey of more than 4,500 kilometers (2,796 miles).
- The Christmas Island detention facility was shut down in 2018, after years of controversy including unrest and protests within the center as well as stories of self-harm and riots.
- The coalition government last year reopened the detention center after Parliament passed a medivac bill despite its opposition.
- Just four people are currently detained there, costing the Australian government $AU30 million, a senate committee heard late last year.