teleren/devto huggingface dataset:
Ethereum Transaction Details for Humans
Tags: ethereum, blockchain, javascript
Published: 2018-10-15 15:50:55

---
title: Ethereum Transaction Details for Humans
published: true
description: Get ethereum transaction details that makes sense to Humans
tags: ethereum, blockchain, javascript
canonical_url: https://learnings.desipenguin.com/post/view-eth-txn-details/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/45b3kw9qwrw76v12c9x9.jpg
---


*This was originally posted on my blog, [here.](https://learnings.desipenguin.com/post/view-eth-txn-details/)*

When working on one of my projects, it was asked "How do we ensure that transaction was indeed recorded on the blockchain"

While we can (and did) store the transaction hash returned by the function call in the database, `txn_hash` alone does no good.

e.g. "Official" method to get the details of the transaction (from the `txn_hash`) returns something like the following:

```javascript
web3.eth.getTransaction('0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8b§234')
.then(console.log);

> {
    "hash": "0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8b",
    "nonce": 2,
    "blockHash": "0xef95f2f1ed3ca60b048b4bf67cde2195961e0bba6f70bcbea9a2c4e133e34b46",
    "blockNumber": 3,
    "transactionIndex": 0,
    "from": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
    "to": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f",
    "value": '123450000000000000',
    "gas": 314159,
    "gasPrice": '2000000000000',
    "input": "0x57cb2fc4"
}
```

It doesn't really mean much - even to the developers. Sure `from` and `to` addresses provide some useful data, but we don't know what "operation" was performed and with what data. (The data is in the `input` field shown above, but does not make sense "as-is")

What if you could see something like the following, instead ?

```javascript
{ name: 'mintToken',
  types: [ 'address', 'uint256' ],
  inputs: [ '5bb4b21e60d0033a1b86b83e4a1f8307ab2d01f9', <BN: 64> ] }
```

You get the function **name**, not an address, and the parameters passed to the function - which can be "somewhat" useful, depending on the the types of parameters. 

e.g. in the above sample, the first input param is the address and the second one  - a number.

It may be easy to guess (from the function name) that we are minting 0x64 i.e. 100 tokens for a given address.

Isn't that much better ?

Getting such "human readable" output is made possible by `ethereum-input-data-decoder` library - which does the *heavy lifting*

I added some wrapper functionality to make it as generic as possible without having to make code changes.

You can pass the `txn_hash` and the path to the JSON file created by `truffle compile` as arguments to the script.

Thus it works for **any** contract.

-----

You can see the source code [here](https://github.com/mandarvaze/eth-playground/tree/master/utils)

If you have any queries (about the code) feel free to file a github issue (or ask here in comments)
Module Monday 17: Parallax gallery, Video bg, Comprehensive contact & more
Tags: showdev, opensource, webdev, javascript
Published: 2018-10-15 15:47:53

---
title: Module Monday 17: Parallax gallery, Video bg, Comprehensive contact & more
published: true
description: Module Monday 17
tags: showdev, opensource, webdev, javascript
cover_image: https://res.cloudinary.com/component/image/upload/b_rgb:f6f6f6,c_pad,h_370,w_880/v1539387257/video_50_lk5urj.gif
canonical_url: https://guide.anymod.com/module-monday/17.html
---

## Fast features for any website

Everything below is open source and free to use on any website, web app, or anywhere else. [Anymod](https://anymod.com) lets you quickly add features like these.

Click a mod to see it along with its source code.

## Parallax Gallery
Scroll gallery images underneath your content.
<a class="btn btn-sm" href="https://anymod.com/mod/lmdnb?v=20">View mod</a>
<a href="https://anymod.com/mod/lmdnb?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1539454968/parallax_50_xqwmeh.gif"/>
</a>

## Video background
Editable hero section with autoplay video background.
<a class="btn btn-sm" href="https://anymod.com/mod/lmdob?v=20">View mod</a>
<a href="https://anymod.com/mod/lmdob?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1539387257/video_50_lk5urj.gif"/>
</a>

## Comprehensive contact form
Everything you need to make contact. Works automatically.
<a class="btn btn-sm" href="https://anymod.com/mod/dmrno?v=20">View mod</a>
<a href="https://anymod.com/mod/dmrno?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1539393244/form_xvc7cu.png"/>
</a>

## Card section with background
Icon cards with links and an editable background image.
<a class="btn btn-sm" href="https://anymod.com/mod/bbmla?v=20">View mod</a>
<a href="https://anymod.com/mod/bbmla?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1539387454/cards_voymc2.png"/>
</a>

## Dark footer
Professional dark footer with description and links.
<a class="btn btn-sm" href="https://anymod.com/mod/ooamd?v=20">View mod</a>
<a href="https://anymod.com/mod/ooamd?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1539390131/footer_cnazyd.png"/>
</a>

<hr>

I post new mods [here](https://dev.to/tyrw) every (Module) Monday -- I hope you find them useful!

Happy coding ✌️
🔥 Top React links of the week
Tags: react
Published: 2018-10-15 15:29:44

---
title: 🔥 Top React links of the week
published: true
description: The featured links from the latest React Status digest.
tags: react
---

Each week ⚛️ [React Status](https://react.statuscode.com/?utm_source=devto&utm_campaign=react_roundup) brings together the latest announcements, thoughts, advice, tutorials and tools from across the React ecosystem.

***Here's a quick look at what links proved popular last week:***

### [Ways to eliminate common React performance issues](https://logrocket-blog.ghost.io/death-by-a-thousand-cuts-a-checklist-for-eliminating-common-react-performance-issues/)

A pragmatic step-by-step guide to eliminating common React-related performance issues.

### [Hello, Create React App 2.0](https://www.telerik.com/blogs/hello-create-react-app-2)

This is a practical look at what's changed in the 2.0 release, and how create-react-app is now more useful than ever. 

### [How to build a custom date picker with React](https://blog.logrocket.com/react-datepicker-217b4aa840da)

Glad Chinda shows you how to build a date picker from scratch.

### [The Suspense is Killing Redux](https://medium.com/@ryanflorence/the-suspense-is-killing-redux-e888f9692430)

Ryan Florence notes “Suspense won’t replace every use-case of Redux”.

### [Composing Components](https://developers.digital.abc.net.au/2018/09/28/composing-components/)

Insights into how the ABC (Australian Broadcasting Corporation) are transitioning their design process to working with the creation of React components.

___

![React Status](https://thepracticaldev.s3.amazonaws.com/i/ewep9rbanchgcv96gb4g.png)

The above are **just the highlights**, the full digest brings together around 15-20 links that are worth checking out. If you have any recent React tutorials or articles you think are worth sharing for a future round-up, please do drop a 🔗 link in the comments. 

You can [see the full digest here](https://react.statuscode.com/issues/109?utm_source=devto&utm_campaign=react_roundup) *(if you like it, maybe sign up to get it in your inbox)*.
When do you know that you are ready to apply for Web development jobs? 
Tags: webdev, help, learning, discuss
Published: 2018-10-15 15:02:52

---
title: When do you know that you are ready to apply for Web development jobs? 
published: true
description: 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/eypxf3egwvu9o6f8mar5.jpeg 
tags: webdevelopment, help, learning, discuss
---
When are you ready to apply for front end web development jobs? How much do you need to know to start looking for open positions?
Recent progress of Aspose.Imaging
Tags: csharp, raster, image, convert
Published: 2018-10-15 13:12:51

---
title: Recent progress of Aspose.Imaging
published: true
description: 
tags: csharp, raster, image, convert
---

In this article I'll tell about recent notable improvements of <a href="https://products.aspose.com/imaging/">Aspose.Imaging</a>.

### Fixed saving Baseline JPEG to Progressive.
Previously, in case you read an baseline JPEG image and tried to export it as progressive JPEG, you'd get an exception. Now this error is fixed and you can do it just fine like that:
```csharp
using (Image image = Image.Load("interleaved.jpg"))
{
	JpegOptions saveOptions = new JpegOptions();
	saveOptions.CompressionType = JpegCompressionMode.Progressive;

	image.Save(dir + "interleaved_progressive.jpg", saveOptions);
}
```

### Incorrect EMF creation.
Before, graphic primitive count in EMF's header was set incorrectly, leading to incorrect representation of the last added graphic primitive. The error has been fixed and EMFs are created correctly.

### Dashed lines saved as solid when exporting to SVG.
When source containing dashed lines was saved to SVG - be it vector graphics file or newly created set of graphic primitives, they were exported to SVG as solid lines. As of Aspose.Imaging 18.9, this problem has been fixed for licensed mode. However, when operating without license, lines still get converted to solid ones. This problem should be resolved in Aspose.Imaging 18.10 release.

### JPEG encoder optimisations.
JPEG DCT encoder has been optimised and displays up to 50% more performance (= up to 30% less time to encode).

### DICOM losing color when exporting to BMP.
DICOM files with RGB color space that used lossless JPEG compression were exported as grayscale when exporting to BMP (actually, they were read as grayscale). Now this has been fixed and output JPEG should be correct.

That's all for now, stay tuned!

For more examples please visit the <a href="https://github.com/aspose-imaging">Aspose.Imaging GitHub</a> page. There's also <a href="https://twitter.com/Asposeimaging">Twitter</a> and <a href="https://www.facebook.com/AsposeImaging-1702883649750052/">Facebook</a> pages for news on Aspose.Imaging.
Ported recent prototype to UI framework
Tags: go, webdev, webassembly, devlog
Published: 2018-10-15 13:11:28

---
title: Ported recent prototype to UI framework
published: true
description: Weekend recap! Did some docs and tests, but also ported my UI prototype to the new UI framework and it's working out pretty well.
tags: go, webdev, webassembly, devlog
---
I did some weekend work on my innovation projects, most of which I did not stream, but I figured I'd recap anyway.

What I did stream was writing docs and tests for go-reflected. I got coverage to 90% and in the process fixed some bugs. However, I'm not ready to release it because it's a project that is entirely about the API and I'm still not confident the API won't change. When it is ready to release, though, it'll just need a readme.

Some more interesting work I did off-stream was starting to use my UI framework to port the UI prototype I started recently. That was written with plain old JavaScript and some jQuery libraries. My plan was to isolate the jQuery libraries into components in my UI framework, so they'll still be jQuery but I can interface with them like components. 

So far I have the tree view mostly there. The buttons are components, and all the glue and page layout are done with components. I was originally thinking I might have to use Vue to add some structure to this prototype, but since this is already working out, I'm just going to keep pushing on this. It's helping me fix issues in the framework necessary for building real apps, and it's cleaning up the prototype for further development.

{% youtube q9J-jI_pmPs %}
How To Stay Up To Date With Releases Of Popular Frameworks with Release Butler
Tags: angular, javascript, node, react
Published: 2018-10-15 12:19:35

---
title: How To Stay Up To Date With Releases Of Popular Frameworks with Release Butler
published: true
description: Introducing Release Butler — A Twitter Bot That Helps You To Stay Up To Date With Releases Of Popular Frontend Frameworks & Libraries!
tags: angular,javascript,node,react
cover_image: https://thepracticaldev.s3.amazonaws.com/i/dxu1zn6eih2z25dotpmi.png
canonical_url: https://medium.com/@tomastrajan/how-to-stay-up-to-date-with-releases-of-popular-frontend-frameworks-with-twitter-bot-release-butler-86af7b734706
---

> #Keeping up to date with the latest versions of your favorite frameworks is hard…

# The goals
Besides selfish things like providing a high quality distraction and fleeting sense of purpose, Release Butler strives to support all of you in the following cases…

1. Reduce repetitive workflow when you manually check GitHub repositories for the new versions of used libraries
2. Decrease nagging FOMO when you didn’t check Twitter for a whole day and fear that you may have missed a release announcement by the author of the library you’re interested in
3. Empower developers by providing them with a tool that enables them to generate beautifully looking changelogs which can be used in their blog posts, presentations or just shared with others
4. Ability to fill the role of the person who breaks the news to the rest of the team is optional 😉

[Read more...](https://medium.com/@tomastrajan/how-to-stay-up-to-date-with-releases-of-popular-frontend-frameworks-with-twitter-bot-release-butler-86af7b734706)
Discuss: What is your Myers-Briggs Type Indicator (MBTI)?
Tags: discuss, nontech, selfimprovement, productivity
Published: 2018-10-15 09:30:58

---
title: Discuss: What is your Myers-Briggs Type Indicator (MBTI)?
published: true
description: 
tags: #discuss #nontech #selfimprovement #productivity            
---
I can start: I'm INTJ-A! I retook the test because I was somehow anxious (!?) that I could possibly be more INTP, but I consistently test as INTJ. 

If you don't know yours or forgot, you can take a free test in "less than 12 minutes" here: 

https://www.16personalities.com/free-personality-test

(I'm not associated or sponsored in any way!)

In terms of MBTI, I find 16personalities.com itself awesome. I think the neat graphics and detailed descriptions are better than any other MBTI site I've found. (Leave it to an INTJ to nerd-out on MBTI websites) 16personalities.com even includes "Roles" and "Strategies" which are a way of extending and categorizing the 16 types.

Now, I don't think the MBTI is a catch-all, and people are far more complex than four letters, but at the same time, I think learning one's own MBTI can be a great first stepping stone into introspection and self-improvement - it can help put one's strengths and weaknesses into concrete descriptions. 

I'd be very interested in hearing from lots of people! I'm curious if people with certain personality types have an affinity to programming, or who knows, perhaps programming and software development is so diverse I could be surprised and personalities come all across the board! :)
Python Decorators for Error handling
Tags: python, decorators, errors
Published: 2018-10-15 09:23:31

---
title: Python Decorators for Error handling
published: true
description: Using Python Decorator to apply error handling primitives to a function
tags: python, decorators, error_handling
---

So I had a little python script that scraps a certain website for product data. A couple of functions that fetches data, parses for one type of content, another type of data. 

Now I had this issue where the css selectors returns None which breaks all my sneaky list indices. 

Currently my program looks like this. 

```python

def get_x_info(url):

# piece of code that works all the time

# piece of code that crashes

   return result

```

Applying `try and except` to the piece of code that crashes wasn't quite convincing because of the tedious task of doing this to all of the probable volatile code. And I wasn't quite sure of what part might crash. 

Hence, **Python Decorators**.

A syntactic sugar for wrapping functions with a reusable code. 

Learn about it [here](https://realpython.com/primer-on-python-decorators/)

Here is how I used decorators error handle the functions that throws errors most of the time. 

```python
def safe_run(func):

    def func_wrapper(*args, **kwargs):
        
        try:
           return func(*args, **kwargs)

        except Exception as e:
            
            print(e)
            return None

    return func_wrapper


```

Now apply `safe_run` as a decorator to the function declarations in the main code

```python

@safe_run
def get_x_info(url):
....

```

*Quick terrible fix that works :)*
Collaboration on Open Source Projects: What Works and What Doesn't?
Tags: discuss, opensource, communication
Published: 2018-10-15 07:33:32

---
title: Collaboration on Open Source Projects: What Works and What Doesn't?
published: true
description: How do you effectively work together on open source projects from across time zones and cultures?
tags: discuss, open source, communication
---

Are you a contributor to open source projects on Github or elsewhere? Are you a maintainer? What has worked for you in effectively collaborating across time zones, and oftentimes, across cultures? How do you strive to not offend? To be welcoming? To be welcomed? If you are a contributor what makes you run away from a project and what makes you embrace it in the surrounding culture? If you are a maintainer, what helped enable your rise to leadership and what kind of culture sustains your high level of participation? 

I will be presenting next month at an open source conference in Tel Aviv on the topic of effective communication strategies for open source collaboration and I would love to hear your stories of what has worked for you and what has not. Please feel free to share active projects that you feel really represents a culture of inclusivity, welcoming and good communication.
How to Create Your Own Linux  Commands
Tags: howto, linux, opensource, ubuntu
Published: 2019-02-21 23:56:19

---
title: How to Create Your Own Linux  Commands
published: true 
tags: HowTo,Linux,open source,Ubuntu
canonical_url: https://fossnaija.com/how-to-create-your-own-linux-commands/
---

[![linux_alias_command_banner](https://i2.wp.com/fossnaija.com/wp-content/uploads/2018/10/linux_alias_command_banner.png?resize=665%2C380&ssl=1)](https://i2.wp.com/fossnaija.com/wp-content/uploads/2018/10/linux_alias_command_banner.png?ssl=1)

 

Who does not like to have the power to create things? Among many powers, Linux gives you the ability to create commands; or wrap default Linux commands in any new command of your choice.

Actually you will not be creating new commands (like **“cat”, “ls” or “touch”** ) that could be used on any Linux distribution (distro) out there. Far from it. \ ***Winks\***. Instead you can create some command aliases (or you could say alternate commands) on your local system for personal use – using the Linux **alias** command.

This is especially useful when you have to type long commands; which can become tiring when you have to do this on a regular basis. It can also be useful in helping you putting commands in words that are memorable.

Without much ado lets dive right in.

 

### STEP 1:

 

Add a file called “.bash\_aliases” (create if it doesn’t exist) in your home directory (/user/home).

 

### STEP 2:

Then add any command alias (alternate commands) you want in the general form:

```
alias command_alias = “actual command”
```

 

and then save the file.

Where the “actual\_command” is the command to be executed when when the “command\_alias” (the new name you have given it) is typed into the command-line.

 

## Example:

 

**>>** If the “.bash\_aliases” file does not exist create it:

 

```
touch .bash_aliases
```

 

**>>** Add the “ **sudo /etc/init.d/apache2 start”** command as an alias in the file:

 

```
alias apacheon = sudo /etc/init.d/apache2 start”
```

 

**>>** Save the file.

 

The new command alias “ **apacheon** ” is mapped to the actual command ( **sudo /etc/init.d/apache2 start** ). This means that any time you enter “ **apacheon** ” in the terminal it is interpreted by bash to mean “ **sudo /etc/init.d/apache2 start** ”, which is then executed.

 

You can add as many aliases as you wish/need in the file.

 

## Examples:

```
alias apachestop = “/etc/init.d/apache2 stop”

alias systemupdate = “sudo apt-get -y update”

alias wscan = “sudo iwlist wlan0 scan | more”
```

 

Try your hands on a few aliases to see for yourself!!!

 

**Happy Linux’NG!**

The post [How to Create Your Own Linux Commands](https://fossnaija.com/how-to-create-your-own-linux-commands/) appeared first on [Foss Naija](https://fossnaija.com).
Get income from OSS with volvox
Tags: opensource, blockchain
Published: 2018-10-15 05:26:47

---
title: Get income from OSS with volvox
published: true
description: Get income from OSS with volvox
tags: OSS, blockchain
---
* Sorry posting this again. I added the details.

Hi, I'm a CEO of volvox. 

I'm developing volvox ( [v4x.co](https://v4x.co) ), tool to get income from developing OSS. So, you can become a full-time OSS developer in the future. 

In detail, you can create tokens to your OSS project. Then, the project's members can get tokens according to the individual's contribution to the project.

You can use the tokens for any of your project, such as fee of your project(dual license), fee of events, donation, investing and so on. 

Because they have utilities, investors have incentives to invest in your projects.If users of your project want to use your product or pay for events or something, they'll buy your project tokens, then burn them. So the value of tokens that all past, present and future contributors have, will be increased. It is like a dividend.

That is the strength of tokens. If you only collect money in your project, only current and future contributors can get income.

So far, vuejs-jp (https://github.com/vuejs-jp/home) uses volvox.

If you're interested in this project volvox, ask me anything from this telegram link:
https://t.me/joinchat/GJCyCg9nMhvGoZr74V10-A

Thanks!
How do you authenticate your users?
Tags: security, discuss, webdev
Published: 2018-10-15 03:32:55

---
title: How do you authenticate your users?
published: true
description: Taking a session management survey
tags: security,discuss,webdev
---

Hey, dev.to crowd.

I'm thinking about writing an article about different user authentication / session management methods and I'd like to take a survey.


> How do you authenticate your users? How do you manage user sessions?

Do you use a cookie? With what flags? Do you use the Authentication header? Do you use JWT, Macaroons, some other crazy thing? No judgement in this post if you use session identifiers in local storage - although I'll be coming for you in the follow-up article. Please let me know in the comments!
Budget
Tags: javascript, machinelearning, knn, budgeting
Published: 2018-10-15 01:52:15

---
title: Budget
published: true
description: A JavaScript budgeting app that implements a KNN to make predictions
tags: javascript, machinelearning, knn, budgeting
canonical_url: https://github.com/victorqribeiro/budget
---

[Budget](https://github.com/victorqribeiro/budget) - A JavaScript budgeting app that implements a KNN to make predictions

![](https://thepracticaldev.s3.amazonaws.com/i/9shjeelesnid91fh6qy8.gif)