teleren/devto huggingface dataset:
Bolt walkthrough - Tryhackme
Tags: computerscience, career
Published: 2020-08-14 17:47:42

Today I am gonna write about a CTF machine which is very easy one particularly meant for very beginners. 

Bolt is the one of the easiest machines in tryhackme Capture the flag platform. I am only doing free rooms as I don’t have money to buy subscription account to practice more on subscribers only rooms. So let’s start by doing a simple scan after machine is connected.

nmap -sV -sC -sT target-machine-IP

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/go4ckqsashf57nb6vyxl.png)

The first question was to which port number web server with a CMS is running? You will get the answer for this from the scan results. After that the next question is to find username and password. you can easily find it by simple crawling across the machine. After you have found the username and password from the crawling you have to login to the CMS. the default login is http://yourdomain.com/bolt. So after you login you can find answer for the 4th question there.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/cl72k90gqtbttifqxl4l.png)

After that it’s time for exploit the machine. search exploit-db or in metasploit using the CMS name you have got. I have gone for metasploit. opened metasploit and then I have used the below thing

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wyauf7tyr6kcyq3seqtd.png)

the covered part is CMS name. you will get info about exploits and it will satisfies the answer for 5th and 6th questions. ok, now it’s time for setting and exploiting using metasploit. So you have to set your IP accordingly

  -  LHOST :- inet address you get from ifconfig command
  -  RHOST :- Target machine IP
  -  LPORT :- Set whatever
  -  username :- from answer 2
  -  password :- from answer 3

ok after setting this run command. It will take a minute and yes you are done now.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9s3po61ge80yfyif74b5.png)

You are now root. You got the root flag and you are done. Submit the flag and yeah you got a congrats message.

That’s all about Bolt.

Thank you
Simple pyramid pattern
Tags: beginners, java, codenewbie, career
Published: 2020-08-14 17:43:59

---
title: Simple pyramid pattern
published: true
description: 
tags: #beginners #java #codenewbie #career
//cover_image: https://direct_url_to_image.jpg
---

### Problem statement:

Write a program to print the following pattern:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/clgdij9ofcwhe1tu82bs.png)

### Solution:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2k723d788uathmh0ipes.png)
The "4 Letter Fails" Action
Tags: actionshackathon
Published: 2020-08-14 17:43:56

### 4 Letter Fails

If your README.md contains any four-letter-words then "4 Letter Fails" will halt the workflow. This GitHub Action checks your README.md for profanity and fails if any are found.

### Submission Category: 

Wacky Wildcards

### Yaml File or Link to Code

GitHub Repository: {% github https://github.com/PuZZleDucK/4-Letter-Fails %}

Marketplace: https://github.com/marketplace/actions/4-letter-fails

### Additional Resources / Info

Under the hood it's making use of profanityfilter: https://github.com/areebbeigh/profanityfilter and a custom action

Currently having problems trying to use the action in other repositories. It's published on the market, but when I use it I always get `An action could not be found at the URI 'https://api.github.com/repos/actions/4-Letter-Fails/tarball/v1'`

Author: Ben Minerds (PuZZleDucK)
Using React hooks in MDX
Tags: react, javascript, mdx
Published: 2020-08-14 17:35:13

Hey, I don't know who needs to read this, but we can use all the power of React and hooks directly in MDX.

You don't necessarily need to create a separate component in a separate file. 

Using named exports on MDX makes the React component available to use in the MDX scope.

```jsx
# Hey

This is an inline counter directly created in MDX:

import React from "react"

export const initialCounterState = 4;

export const MyCounter = () => {
  const [counter, setCounter] = React.useState(initialCounterState);
  return (
    <button onClick={() => setCounter((c) => c + 1)}>
      Increment {counter}
    </button>
  );
};

<MyCounter />

That's cool isn't it?
```

And it would render correctly.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/25d3khpd7x0t4u05d190.png)

However, with great power comes great responsibility. 

I'll let you decide if it's a good idea to do this :)

Follow me on [Twitter](https://twitter.com/sebastienlorber) for updates like this.
Bitte nicht Chanel Couture mit Cancel Culture verwechseln
Tags: allgemein
Published: 2020-09-24 11:58:57

---
title: Bitte nicht Chanel Couture mit Cancel Culture verwechseln
published: true
date: 2020-08-14 17:34:46 UTC
tags: Allgemein
canonical_url: http://drikkes.com/?p=14530
---

Was soll ich noch zum Sommerlochthema sagen, wenn [Margarete Stokowski im Spiegel](https://www.spiegel.de/kultur/cancel-culture-fuer-anfaenger-kolumne-zum-streit-um-lisa-eckart-a-2c3d06d6-0b3c-4dc3-858b-2ecd052a365a) doch schon fast alles ~~W~~ Richtige geschrieben hat? Halte ich die Klappe? Nein. Ich könnte ja meinen spezifisch werbeweltlichen Senf zur Abkanzelungskultur dazugeben.

![](http://drikkes.com/wp-content/uploads/2020/08/coco_culture-300x300.png)Es hat schon immer ein paar Regelungen und Verbote gegeben, an die Werbung sich zu halten hat. Wettbewerbsverzerrung ist nicht okay, Alkohol- und Zigarettenwerbung nur an bestimmten Orten und nicht an Kinder. Grob lügen geht auch nicht, aber beschönigen geht in Ordnung. Wenn einen nicht gerade die Konkurrenz anschwärzte, hatte man wenig zu befürchten – höchstens eine Rüge vom Werberat wegen sexistischer Botschaften. Und die ist als provokativer Möchtegern-Multiplikator oft mit eingeplant.

Ich habe das Gefühl, hier ändert sich etwas. Und ich rede hier nicht über letztendlich geschmäcklerische Shitstorms auf Social Media. Da wird sich hinterher entschuldigt, niemand nimmt einem diese Entschuldigung ab und zwei Wochen später interessiert es nicht mehr. Ich meine gefühlt häufigere Werbeverbote, hier einige Beispiele aus letzter Zeit:

- [UK advertising watchdog investigates Shell’s ‚drive carbon neutral‘ campaign | Reuters](https://uk.reuters.com/article/uk-climate-change-shell-investigation/uk-advertising-watchdog-investigates-shells-drive-carbon-neutral-campaign-idUKKBN20P2ZD)
- [‚junk food‘ ad ban: IAB, Advertising Association and Action on Sugar debate proposals | The Drum](https://www.thedrum.com/news/2020/07/29/uk-junk-food-ad-ban-iab-advertising-association-and-action-sugar-debate-proposals)
- [France bans Dutch bike TV ad for creating ‚climate of fear‘ about cars | Media | The Guardian](https://www.theguardian.com/media/2020/jul/01/france-bans-dutch-bike-tv-ad-for-creating-climate-of-fear)
- [What is the Tampax ad ban about? | London Evening Standard](https://www.standard.co.uk/news/world/tampax-ad-ban-about-a4516281.html)

Es ist allerdings keine Richtung erkennbar, gecancelt wird sowohl aus progressiven wie auch reaktionären Gründen. Das ist wahrscheinlich je nach Land und Behörde unterschiedlich gewichtet. Blöd nur, daß beides dann auf die Legende einzahlt, man dürfe ja nichts mehr sagen.
How to Use IMREAL Function in Excel 365? – [With Examples]
Tags: excelfunctions, imrealfunctioninexce
Published: 2020-08-21 17:00:35

---
title: How to Use IMREAL Function in Excel 365? – [With Examples]
published: true
date: 2020-08-14 17:26:10 UTC
tags: ExcelFunctions,IMREALFunctioninExce
canonical_url: https://geekexcel.com/how-to-use-imreal-function-in-excel-365-with-examples/
---

## IMREAL Function in Excel:

Here we come up with the **IMREAL Function in Excel 365** with its syntax, explanation, and examples **.** Let’s get into this article!! Get an official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

 

## **IMREAL – Function Definition:**

- IMREAL function will **return the real coefficient** of a complex number in the form of  ( X+Yi ).
- Where X is a real coefficient, Y is an imaginary coefficient.

## **Basic Syntax:**

**=IMREAL(inumber)**

### Argument Explanation:

**Inumber** – A complex number in which you want to get the **real co-efficient**.

### **Note:**

- You can use COMPLEX function to convert real and imaginary coefficients to a complex number.

## **Examples:**

Let’s see an example to know how IMREAL Function works.

- In the below image, you can see the **Real coefficients** of the complex number in **Column C**.

![Find Real Co-efficient](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/1-28.png)<figcaption id="caption-attachment-11667">Find Real Co-efficient</figcaption>

- You can use the COMPLEX function to convert real and imaginary coefficients to a complex number.

![COMPLEX Function](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/COMPLEX-Function.png)<figcaption id="caption-attachment-11660">COMPLEX Function</figcaption>

## **A Short Synopsis:**

In this article, you can understand how to use **IMREAL Function in Excel 365** with its syntax, description, and examples. Share your **feedback** in the below comment section. Thanks for visiting **[Geek Excel.](https://geekexcel.com/)** Keep Learning!!

### Read Also:

- [How to Use “BITLSHIFT” Function in Excel 365? – {With Examples}](https://geekexcel.com/how-to-use-bitlshift-function-in-excel-365-with-examples/)
- [How to Use BITOR Function in MS Excel 365? – { with Examples }](https://geekexcel.com/how-to-use-bitor-function-in-ms-excel-365-with-examples/)
Is There a Blogger who wants to Collaborate here?
Tags: writing, blog, wordpress
Published: 2020-08-14 17:01:45

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/e6wc2qt152eigux95a8l.png)

This is [PETTEEN](www.petteen.com). You want to collaborate and grow together, please drop a comment below.

Best regards!
Cropping & Zooming in on SVGs with viewBox
Tags: css, svg, webdev, javascript
Published: 2020-08-14 17:01:18

When you build an SVG, you build your own little world. And what's the point of creating something beautiful if you're not gonna take pictures of it and show people (note: I recognize I'm letting my inner millennial show here). 

Within your `<svg>` tags, you can build your little world! It can be bursting with life and color and all the most beautiful things. But then, you have to decide what you want to show your friends by taking the pictures. 

Think of the SVG's `viewBox` attribute as your camera lens. Which pieces of your world do you want to capture on your camera for people to see? 

Take this image for example. This whole bakery might be what is inside the `<svg>` tag. But you don't really need to show people the entire bakery at this time, you just wanna zoom in on these tasty little donuts — the real star of the show!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rdc8eqp412tmkfc3if3c.png)

So, when you think of an SVG, you should think that the actual SVG itself could potentially have an infinite canvas, but what us humans can actually see is what is within the `viewBox` that the developer has defined! 

Your `viewBox` is what is in charge of zooming and panning your "camera lens" so we only show what we want to show. 

---

The value of the viewBox attribute is a list of four numbers: `min-x`, `min-y`, `width` and `height`.

`min-x` and `min-y` are the top left corner of the `viewBox` and define it's position. 

`min-x`: This will move your camera lens right and left — much like "trucking" in filmography. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8o82i2zl2bihfe11u4yh.gif)

`min-y`: This will move your camera lens up and down — much like "pedestal" in filmography. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/d3s35jc732ita8se2zng.gif)

`width` and `height` are set to the number on "units" that are visible inside of your `viewBox`. Changing these values will zoom in on our world! 

`width` and `height` work off of each other, so you may need to work with both values depending on what you want to achieve. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3qgnsrthlq9dq5mib8xm.gif)

There you have it! Now, with the power of `viewBox` attribute, you have to power to crop and zoom your SVG to show exactly what you want people to see. You might have also learned some new photography vocab as well that you can apply to your next Instagram story.

There is a great video on the `viewBox` attribute over [here by DesignCourse](https://www.youtube.com/channel/UCVyRiMvfUNMA1UPlDPzG5Ow).

And you can use a brilliant tool they've created to play around with the `viewBox` attribute on your own SVGs [over here](https://codepen.io/designcourse/live/mdydjBa)
What was your win this week?
Tags: discuss, weeklyretro
Published: 2020-08-14 16:53:45

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

👋👋👋👋

Looking back on your week -- what was something you're proud of?

All wins count -- big or small 🎉

Examples of 'wins' include:

- Getting a promotion!
- Starting a new project
- Fixing a tricky bug
- Cleaning your house...or whatever else that may spark joy 😄


**Have a great weekend!**

![Friday](https://media.giphy.com/media/3oD3YqLKEPCYpN3jZm/giphy.gif)
TIL: Data Attributes are way easier to use than I realized 
Tags: html
Published: 2020-08-14 16:44:56

Today I learned about how "dataset" can be leveraged in Javascript to quickly retrieve a data attribute on an object. Per the MSDN docs, note that dashes are converted to camelCase.

And this approach has 99%+ support in browsers.

```
<article
  id="electric-cars"
  data-columns="3"
  data-index-number="12314"
  data-parent="cars">
...
</article>

<script>
const article = document.querySelector('#electric-cars');
 
article.dataset.columns // "3"
article.dataset.indexNumber // "12314"
article.dataset.parent // "cars"
</script>
```

REF: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
Podcast 1
Tags: podcast
Published: 2020-08-14 16:37:30

<div id="root">Loading...</div>
    <script>
        (function (w, d, s, o, f, js, fjs) {
            w['BuildBubbles-Audio-Player'] = o; w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
            js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
            js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
        }(window, document, 'script', 'w1', 'https://vasinl124.github.io/buildbubbles-audio-player-widget/build/widget.js'));
        w1('init', { targetElementId: 'root' });
        w1('episodeid', { id: '5f36be516401b300177acba9', center: true });
    </script>
How to start a Blog in 30 minutes
Tags: productivity, wordpress, writing, html
Published: 2020-08-14 16:12:16

Today it is very easy to have a mark on the Internet.
I know that there are many people here that lovemaking apps and website from scratch.

But, let me tell you one thing: you have to find ways to save time and focus more on other tasks.

Many young American entrepreneurs started their business with a simple Blog. This is the case of the very serious blog [Huffpost] (https://www.huffingtonpost.fr/) known for being a must-see news media, and also Spencer Haws who created [nichepursuits](http://nichepursuit.com/), Ryan Robinson who created [Ryrob](https://www.ryrob.com/how-start-blog/) and many others.

If you want to learn how to start a blog like a real start-up in 30 minutes, you've come to the right place. 

Many people are comforting themselves by saying that blogs are too saturated in 2020. 
Adam Enfroy created his [Blog](http://adamenfroy.com/) in January 2019 to prove that it is always possible to generate revenue with a Blog. 

On his Blog, he posts reports on all of his blog's expenses and revenues (he now earns more than$ 80,000 / month) with about 400,000 visitors/month.

Here are some tips to quickly create a [Blog](https://www.petteen.com/) in 2020.
First of all, you need to know why you want to blog. We start blogging for various: be known in your industry, supplement your income, or even create an audience around a theme. The steps to get started quickly are summarized as follows :

* Choose the Niche of your Blog.
* Write down the goals of your Blog.
* Choose a domain name.
* Get your hosting and domain.
* Set up WordPress CMS.
* Choose Your Blog Theme.
* Install WordPress Plugins.
* Configure your blog's SEO.
* Start Creating Content.
* Create a content strategy.

If you want to learn more about [how to start a Blog](https://www.petteen.com/), you can just search on Internet, or if you can read French, there is a full tutorial on [Comment créer un blog](https://www.petteen.com/). If you prefer a tutorial in English, you can [Ryrob](https://www.ryrob.com/how-start-blog/)' site or [Adam's](http://adamenfroy.com/).

It is worth noting that Worpress will allow you to create a Blog in minutes, whereas you have to spend days, even weeks if you prefer to build your website from scratch.

Eventually, in the end, you will more likely come with a site which not better than the one you can build with just WordPress. 

So please, save your time and effort and use your energy other apps and projects.
Adobe Alternatives
Tags: windows, adobe, acrobat, software
Published: 2020-08-14 16:27:53

Adobe controlling it as a proprietary format until 2008, Adobe Reader has been the go-to PDF Reader on our computers. Other options for adobe are many nowadays. 

1. PDF X-Change Editor - https://www.tracker-software.com/product/pdf-xchange-editor 

With the free version, you can not only insert or extract pages, but it also comes with a great little feature called OCR (optical character recognition) that allows you to scan any printed document and save the text as a PDF.
-Feature-packed free version
-Free version supports editing
-Supports Optical Image Recognition (OCR)

2. STDU Viewer - http://www.stdutility.com/stduviewer.html 

The program can also open a whole host of file types, like, DjVu, XPS, JBIG2, FB2, TXT, e-books (ePub and Mobi), comic book archives (CBR and CBZ), TCR, PalmDoc (PDB), AZW and DCX. As for images, STDU Viewer can open BMP, PCX, PNG, WMF, EMF and PSD alongside the two other formats mentioned above.
- Modern user interface
- Free for non-commercial use
- Supports multiple languages

3. Nitro PDF Viewer - https://www.gonitro.com/pdf-reader

One of its unique features is a split-screen view that allows users to compare two different PDF files side-by-side. The program also comes with drag-and-drop support, allowing users to quickly create new PDF files by simply dragging any document on the Nitro desktop icon.
-The free version of the software is packed with features
-You can create PDF from scratch
-Split-screen view for viewing multiple documents

4. SlimPDF Reader - https://www.investintech.com/resources/freetools/slimpdfreader/

The program weighs in at just 1.4MB, making it, by far, the smallest actively-developed PDF viewer we know of right now.

Like Sumatra PDF, this one also has a minimalist interface and, works exactly as advertised for the most part. It doesn’t really offer too many bells and whistles, which is of course, understandable given its tiny footprint.
-Small and light-weight (1.4 MB)
-Minimal interface
-Fast to open PDF files

5. PhantomPDF - https://www.foxitsoftware.com/downloads/

The program can convert multiple different file types to PDF and PDF to a whole host of different files including, MS Word documents. PhantomPDF supports as many as 41 different languages, and while that’s not as many as that of Adobe Acrobat, it’s still more than most of its other competitors.
-Packed with pro features
-Supports OCR
-Supports PDF encryption
-Supports multiple languages

Source - https://beebom.com/adobe-reader-alternatives/
Debugging in CS50
Tags: c, beginners
Published: 2020-08-14 16:25:28

Over the summer I have been working on Harvard's CS50 EdX course and it's been a really fun experience (working on C++ is on pause until I finish CS50). After working with pointers in C I finally feel like I understand (big picture) how memory works. 
One of the assignments is to create a simple box blur. One of the neat features of CS50 is that they provide tests for the code to see if we completed the assignment correctly or not. I really appreciate this as I can't visually assess if a blurred pixel is the right kind of blurred. 
I had been pretty dispirited this week because I wasn't sure why my blur was failing. I was getting most of the blur correct, but it would fail for one pixel in one test case and two pixels in the second test case.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/f112awhfssmf5vnuxjlf.png)
I knew I had solved it in a suboptimal way because I was treating each corner and edge differently, rather than working with a buffer or some of the other solutions I saw online later. It's a pretty janky solution, but it's one I came up with independently. I figured there would be some kind of problem here, and my intuition was ultimately right.
My first thought was that since it only seemed to the last row that failed, I should check that I wasn't accidentally taking the average of the wrong color channel or indexing wrong. Those turned out to be correct, no matter how many times I reread them. 
And then this morning, when I had a free 15 minutes, I decided I would take a look at it again. I copied the expected output and my output into a table so I could look for exactly what was wrong. This instantly revealed the problem. My corner pixels were correct, but the bottom edge pixels were failing. I checked that section of my code again and everything looked correct... until I finally noticed the mistake. 
`// bottom edge
else if (top_edge == 1)
{
 ... // calculate the average for each color channel
}`
I was checking the wrong condition. I corrected that, recompiled, reran the tests, and passed. I'm glad I finally fixed that mistake. 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2fogqzaqtxoc3tfouqjg.png)
AWS Braket - Trying Out Quantum Cloud Computing
Tags: aws
Published: 2020-08-14 16:21:54

AWS Braket, or Quantum Computing as a Cloud Service, just released.  Of course, I had to try it out.  As usual, AWS makes this easy, I just used the AWS console (shown below).  NOTE: AWS Braket includes both a simulator (for dev/test) and the ability to select your prod env Quantum device ( D-Wave, IonQ or Rigetti).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/j48nye79c2prdd3am9g9.png)

To try it, I created a Braket (Sagemaker) Notebook, again (shown below).  This Jupyter Notebook includes a good number of examples.  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rx52a3giwak1vgd2jymh.png)

I decided to try out the sample named "ANATOMY OF QUANTUM ANNEALING WITH D-WAVE ON AMAZON BRAKET".  All samples in this folder shown below.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8097c4xc0b824b89ve98.png)

I am not going to try to explain how Quantum Computing works in a Dev.to post - suffice it to say that I've read several [books](https://www.amazon.com/Quantum-Computing-Introduction-Engineering-Computation/dp/0262015064) and taken entire courses on the topic and, IMHO, the examples provided by AWS are very useful - partial example shown below.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/euw3ud8aei7xhgmc9j8f.png)

To continue learning, Jeff Barr has a useful blog post on the launch of [AWS Braket](https://aws.amazon.com/blogs/aws/amazon-braket-get-started-with-quantum-computing/) for cloud Quantum Computing.