teleren/devto huggingface dataset:
AutoHotKeyの使い方メモ
Tags: windows, autohotkey
Published: 2021-02-09 08:49:26

---
title: AutoHotKeyの使い方メモ
published: true
description: AutoHotKeyの使い方メモ
tags: windows, autohotkey
//cover_image: https://direct_url_to_image.jpg
---

# 基本

## スクリプト書く

- デスクトップ等で右クリック→新規作成→AutoHotKey Script
  - `.ahk`のテキストファイルを作成すればOK.

## スクリプト実行

- ファイルを右クリック→`Run Script` で実行できる

## AHKで使うために、他のアプリの情報を取得する

- `Window Spy`というツールがインストールされているのでこれを使う
- AutoHotKeyアプリアイコンを右クリックして`Window Spy`を選択すると開く

## 参考
- https://www.autohotkey.com/ .. 公式サイト。ダウンロードもここから。
- https://fuchiaz.com/auto-hot-key/

# 事例

## F10を押したらビープ音を鳴らす
```
F10::SoundBeep
```

## F11を押したら計算機
```
F11::Run, calc.exe
```

## F12を押したらメッセージボックス表示
```
F12::MsgBox "Hello World!"

; Shiftを押しながらの場合の切替.
+F12::MsgBox "Hello World (Shift)!"
```

## F12でPCを強制終了
```
F12::Shutdown, 6
```
Matt Brannelly | Nonprofit's Solar Energy Guide
Tags: solarenergy, nonprofits
Published: 2021-02-09 08:49:25

According to Matt Brannelly, nonprofit organisations can take advantage of the power of solar energy to generate electricity. 

Matt Brannelly, the founder of Orbit NFP hub, shedsmore light on how nonprofit organisations can go green by employing solar energy and its benefits. Keep reading!
https://cremensugar.com/business/solar-energy-nonprofit-organisations-matt-brannelly
Hacking the codes!
Tags: codenewbie, webdev, javascript, python
Published: 2021-02-09 08:21:35

**Hacking codes** is something a real developer should be able to do, why? 

## Hacking codes a necessity as developers

This contains all procedures needed to be good at coding. As we all know, programmers codes and in coding you've got to debug, hacking of codes has all these, embedded in it and even beyond.

Hacking of codes is more difficult to accomplish than coding and debugging, that was why I concluded that a developer must learn how to hack codes for proficient, efficient and effective result in their respective field.
 
## What is "hacking codes" ? 

Hacking of codes is the ability to read and understand codes in order to make reforms and replacement according to your desires output, and this also includes process of thinking and debugging. Let's dive into this a bit.....

## Hacking of codes entails these;

#### 1. Reading and understanding of codes; 

For you to work on something(code), you need to understand what it is all about. This process, is the first of all before any other thing as far has hacking codes is the subject matter. You must read and understand the codes to know what you need to reform or replace to suite your desire and intention.

#### 2. Reforming and replacement of codes; 

This also is important, this is where the hacking really takes place. The hacking is being able to reform the code from its original structure, algorithm and function to the version intended and this will demand for a lot of thinking through and debugging. It is just like manufacturing a raw material(original code) to its finished product ( intended version), imagine the process that will be undergone for the success of the product.

>Hacking a code is two times more than writing a code. So if you can hack codes well, you would be very good at algorithms and programming at large.

Please kindly comment below for feedback and you can link up with me on [Twitter](https://twitter.com/chryz_codez) and on this platform for more engagement and interaction and as a developer.
Getting MonthName from new Date()
Tags: javascript
Published: 2021-02-09 08:14:34

```javascript
const today = new Date()

// Default
today.toLocaleString('default', { month: 'long' }) // February
today.toLocaleString('default', { month: 'short' }) // Feb

// Indonesia
today.toLocaleString('id-ID', { month: 'long' }) // Februari
today.toLocaleString('id-ID', { month: 'short' }) // Feb

// English - GB
today.toLocaleString('en-GB', { month: 'long' }) // February
today.toLocaleString('en-GB', { month: 'short' }) // Feb

// English - US
today.toLocaleString('en-US', { month: 'long' }) // February
today.toLocaleString('en-US', { month: 'short' }) // Feb
```
What will be after anti-trust breakups?
Tags: webdev, watercooler
Published: 2021-02-09 08:04:37

So many of the technologies that we use (ReactJS, Angular, AWS, Firebase, etc...) are created and maintained by the 4 big tech companies. Now it's looking like these companies may face antitrust breakups. If that happens, how do you think this will change our occupations (or will it not change anything)?
WCF — Windows Communication Foundation Interview Notes
Published: 2022-07-05 10:52:26

---
title: WCF — Windows Communication Foundation Interview Notes
published: true
date: 2021-02-09 07:22:19 UTC
tags: 
canonical_url: https://lkgforit.com/wcf-windows-communication-foundation-interview-notes-8ac6fe585f3
---

 **a.**  **ABC in WCF:**

Address: This lets you know the location on server. Different bindings support different address types.

Binding: Defines which protocol is being used.

Contract: This defines each method exposed from service.

**i.**  **Contract:**

ServiceContract

OperationContract

DataContract

MessageContract

**ii.**  **BINDING:**

**HTTP-based:** If we want our service to be accessed across multiple OS or multiple programming architectures, HTTP based bindings are our obvious choice. Lets see the bindings supported.

BasicHttpBinding: It is used in case of web service, offers backward compatibility, the message encoding used is Text/XML, supports WS-basic profile.

WsHttpBinding: It gives all functionality which BasicHttpBinding offers, apart from that it offers transaction support, reliable message and WS-Addressing.

WSDualHttpBinding: Offers all functionality offered by WsHttpBinding, but the main purpose is to be used with duplex communication.

WsFederationHttpBinding: This is used when security within the organization is the most important aspect.

**TCP-based:** If we want to share the data in compact binary format, these bindings are of best use.

NetNamedPipeBinding: This is best binding to be used if our service and client both are hosted on the same machine, use TCP protocol to exchange data. It supports transaction, reliable session and secure communication.

NetPeerTcpBinding: This binding provided secure binding for P2P network, offers all functionality fro NetNamedPipeBinding.

NetTcpBinding: Used for secure and optimized binding for cross-machine communication between .NET application.

**MSMQ-based:** If we want to use MSMQ server to exchange data, we can use these bindings:

MsmqIntegrationBinding: We can use this binding to send and receive data from existing MSMQ applications that use COM, C++.

NetMsmqBinding: This is used to communicate between cross-machine using queue. This is preferred binding when using MSMQ.

1. **Exception handling:**

Wcf exception handling fault exception

Wep api exception handling custom exception
A Test-Driven Take on Learning
Tags: devjournal, codenewbie, testing, ruby
Published: 2021-02-09 07:21:04

_This post was originally published on February 9, 2021 on [my blog] (https://alexlsalt.github.io/blog)._

-------------

I've been steadily working through my Ruby course for work (it's Learn Enough Ruby to be Dangerous with Michael Hartl), and it's really great. I'm loving the video learning with the subsequent written explanations of the same content as it really helps me dial in each lesson.

I try to spend at least an hour on that each morning when I start my workday, and I'm proud to say I have just two chapters left of the 10-chapter course! Yesterday, I was so excited to go through the lesson on Test Driven Development, especially since I had a bit of a crash course in the application side of testing just a couple weeks ago.

I'm so glad I got that experience of really being challenged with testing before actually starting the learning process from scratch - kind of like jumping into the water without knowing how to swim but getting yourself to safety and then subsequently learning the techniques of swimming from the very first levels.

Actually, the way I'm even learning about testing now is kind of meta in that I tried it out first, failed a few times, got myself to pass the test of learning how to test however I could, and now I'm learning the actual techniques for it and am able to refine and refactor my own methods.

Whoa. I think I may have just broken my brain a little bit with that realization!!!

Anyway, within the course, I think the only sections left are a chapter on Shell Scripts and then a build-along type of project.

One step at a time, always! I committed to doing a little work on the course each day, or almost each day, and look at that - we're already almost to the end!

Along with the Ruby course, I've also simultaneously started going through a Rails tutorial on GoRails - we're building a Buffer-type application where we can schedule tweets. I am really loving it!!

This, again, is similar to being thrown in the deep end with trying to navigate a production-level codebase and then getting back to the very basics with a tutorial built from the ground-up.

It's an amazing way to learn - it's really challenging, and at times frustrating - but I'm feeling that the lessons are being reinforced in such a powerful way!

-------------

Pssst! I send weekly newsletters about the self-taught coding journey and my own coding adventures (and misadventures!)  [Sign up here! >>](https://ladies-code-collective.ck.page/e53b5fca44)
Cardano Forecast 2021: What is ADA’s course potential?
Tags: technology, cardano, cryptocurrency, ethereum
Published: 2021-02-09 11:59:16

---
title: Cardano Forecast 2021: What is ADA’s course potential?
published: true
date: 2021-02-09 07:12:00 UTC
tags: technology,cardano,cryptocurrency,ethereum
canonical_url: https://medium.com/coinmonks/cardano-forecast-2021-what-is-adas-course-potential-ab7da525b948
---

[![](https://cdn-images-1.medium.com/max/2600/1*25WK-9rYCOl89pp06Zt8BA.png)](https://medium.com/coinmonks/cardano-forecast-2021-what-is-adas-course-potential-ab7da525b948?source=rss----721b17443fd5---4)

In our Cardano Forecast 2021, we take a look at the opportunities and risks of ADA.

[Continue reading on Coinmonks »](https://medium.com/coinmonks/cardano-forecast-2021-what-is-adas-course-potential-ab7da525b948?source=rss----721b17443fd5---4)
Fix All issues related Alexa not responding  and echo do not responding Devices
Published: 2021-02-09 07:06:01

It is one in each of the foremost common problems faced by most Amazon Echo users. generally you'll need detected that your <a href="https://sites.google.com/view/alexanotresponding">Echo Do not responding</a> 
Alexa speakers do not listen or  <a href="https://sites.google.com/view/alexanotresponding">Alexa not responding</a>.
Make sure you are exploitation the ability adapter that was enclosed along with your device. 
Make sure you have connected to the internet
Animation Timing Property
Tags: css, tutorial, codenewbie, todayilearned
Published: 2021-02-09 07:01:50

Hello, coding people 👋,

Hope you are guy's doing well in your journey.

This post is a part of our "21 Days of CSS animation post"

{% link https://dev.to/atulcodex/20-days-of-css-animation-post-3g8d %}

In the last post, we have learned about two animation properties and keyframes function. In this post, you are going to learn two more animation properties which are "animation-delay" and "animation-iteration-count".

{% codepen https://codepen.io/atulcodex/pen/eYBzLZe %}

The use of delay property is to delay the time of animation start timing. Means the animation will start after this specific delay time period.

![delay](https://dev-to-uploads.s3.amazonaws.com/i/c8rwjfytxh8lqg5exz8i.png)

In this property we are setting animation looping count means how many times our animation will perform.

![Iteration count](https://dev-to-uploads.s3.amazonaws.com/i/en1a1z0l43aekr99xydj.png)

We can also set it to infinite also.

![infinite](https://dev-to-uploads.s3.amazonaws.com/i/29u7pzie3erifmgnrygj.png)

That's all for this post And if you are interested to learn CSS you can join Eduonix [E-Learning platform](https://www.eduonix.com/UHJvZHVjdC0xMzE1MDIw).
RedBull OS Build 11 Download.
Published: 2021-02-09 06:48:14

Hi guys, I'm developing my own os and I'm sharing the link for you guys to try it. Any suggestions, improvements or new feature ideas are appreciated.
Link - https://mega.nz/folder/96RCQR5C#9qkfjqdqT5EejyEQdkpDdw
VBox/Vmware config:
OS - Ubuntu 20.10 x64
RAM - Min. 2GB
HDD - MIn. 16GB for minimal, 32GB for standard installation
Vanilla JavaScript reverse an array
Tags: javascript
Published: 2021-02-09 06:44:13

You will often want to reverse an array in JavaScript, imagine you're receiving data based on a date, but you want it to show it reversed in the frontend.

This is where the JavaScript reverse method comes in handy.
It's a super cool array method, and it's easy to use.

To reverse an array, we can call the reverse method on a variable.

```js
const array = ['a', 'b', 'c'];
array.reverse();
// [ 'c', 'b', 'a' ]
```

As you can see, this reversed our initial input array.

## JavaScript reverse array but keep original

You might not want to reverse the original array in some cases but want to create a copy.

This is where the [JavaScript spread operator](https://daily-dev-tips.com/posts/10-ways-to-use-the-spread-operator-in-javascript/) comes in handy.

```js
const array = ['a', 'b', 'c'];
const reverse = [...array].reverse();
// array: [ 'a', 'b', 'c' ]
// reverse: [ 'c', 'b', 'a' ]
```

And that's it, reversing arrays is pretty straightforward and comes in super handy.

You can have a play with today's code in the following Codepen.

{% codepen https://codepen.io/rebelchris/pen/gOLaQPY %}

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
I bombed my first ever technical interview & it feels pretty liberating.
Tags: javascript, career, codenewbie
Published: 2021-02-09 06:43:57

> 

# Own the feelings
<br/>
> *"We have decided to pursue other candidates at this time."*

It's important to admit that the results of my interview initially made me feel intense fear and shame. Am I truly cut out for this industry? I found myself avoiding interactions with close friends in tech whose opinions I valued... 

![](https://i.imgur.com/x5FaUEL.jpg =450x)


Once I began sharing the bad news I found that everyone was extremely reassuring and/or genuinely excited for me. Many were quick to trade war stories of their first technicals & suddenly it felt more akin to a badge of honor, as if I had now been accepted into some sort of badass underground club!

# Lessons, lessons and more lessons
Focus on what you can control. I had a 10am interview and had stayed up well past 2am that morning trying to "cover all my bases." It was foolish of me to think that I would prepare for every scenario. That time would have been better spent sleeping as I felt tired and experienced difficulty focusing during my interview.

![](https://i.imgur.com/H2z3hTX.jpg =200x)


There is no feeling quite like fumbling something you are supposedly proficient at while two or three people watch you make a mess of it all. There was a certain point during the interview where I focused too much on one path and boxed myself in. Once I realized my mistake I became so desperate for a win that it was nearly impossible to organize my thoughts. I was no longer focused on the long game, but instead, on trying to make myself look like less of an idiot. The harder I fought the more I sank.

![](https://i.imgur.com/z4dr5sP.jpg =100x)

Stay calm & think before making your next move. I can see now that had I owned my mistake and regrouped I would have easily found the bug. Part of my personal growth will be to slow down and revert back to planning/high level overview when things go awry.

# Conclusion
It's important during your job search journey that you keep a sense of humor and a sharp memory. It is likely that coding interview questions will eventually repeat, remember what you did the first time you attemped it and what you can do better this time! If you've also recently crashed and burned during an interview, feel free to reach out to me & share the story. You should let that shit go, you won't need it where you're headed.

![](https://i.imgur.com/dROBmPY.jpg)

> "My mama always said you've got to put the past behind you before you can move on." - Forrest Gump
Ways to write BAD CSS
Tags: css, webdev, design, uiweekly
Published: 2021-02-09 06:30:31

#### Misusing Shorthand
```
/*bad*/

.item { margin: 0 1rem 0 0; }

/*good*/

.item { margin-right: 1rem; }
```

#### <br/>Misusing 'px'
```
/*bad*/

.item {
   width: 16.5px;
   height: 16.5px;
}

/*good*/

.item {
   width: 16px;
   height: 16px;
}
```

#### <br/>Silly z-index
```
/*bad*/

.overlay { z-index: 999...9; }

.box { z-index: 999...9; }

/*good*/

.overlay { z-index: 3; }

.box { z-index: 4; }
```

#### <br/>Disliking border box
```
/*bad*/

.button { 
   width: calc(100% - 2rem);
   padding: 0 1rem; 
}

/*good*/

* { box-sizing: border-box; }

.button { 
   width: 100%;
   padding: 0 1rem; 
}
```

<br/>Are you guilty of practicing any?

_Oh...me?_ For sure! 😂
ProtocolBuffers - TL;DR 
Tags: protocolbuffers, protobuf, tldr
Published: 2021-02-09 06:26:15

---
title: ProtocolBuffers - TL;DR 
published: true
description: ProtocolBuffers - information for absolute beginners
tags: ProtocolBuffers, protobuf, tldr 
cover_image: https://miro.medium.com/max/700/0*wf-X0h8aK6rZi3IF
---

- Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.
- Protocol buffers are also known as protobuf
- Protocol buffers are developed by Google for internal use. It is available for the public in 2008.
- Protobuf is binary serialize protocol, unlike JSON and XML which are text-based human-readable protocol.
- It’s non-human-readable because of binary serialize.
- Apache Thrift, Ion, Fast Buffers, FlatBuffers, Cap’n Proto, SBE (Simple Binary Encoding) are some of the alternatives of Protocol Buffers.
- It emphasizes simplicity and performance
- The current version is 3.14.0 which was released on Nov-2020.
- It uses .proto file extension.
- It has a language specification. (https://developers.google.com/protocol-buffers/docs/proto3)
- To define structure in Protocol buffers. It uses “message” keyword. A message is like a class or structure in C++ and Java.
- It also supports nested messages (structure) same as OOPs programming language.
- Protocol Buffers support C++, C#, Dart, Go, Java, Python, Ruby and other popular languages.
- It has double, float, int32, int 64, uint32, uint64, bool, string, bytes and many other data types. Data type also has default values like C++ or Java’s data type. - For string, the default value is the empty string, For bools, the default value is false, For numeric types, the default values is zero.
- Protocol buffers support enums, Map, Any and Array.
- Protocol buffers support optional, repeated and required field
- Protocol buffers message has field number, field number must be a unique number in the message. The field number is used to identify the field in message binary format. The smallest field number you can specify is 1, and the largest is 229–1, or 536,870,911. You also cannot use the numbers 19000 through 19999.
Github Repo: https://github.com/protocolbuffers/protobuf
- Protocol buffers come with the command-line tool `protoc`. Protoc compiles .proto file into specific language code.
- Example
```
Go Language output

protoc -I=$SRC_DIR — go_out=$DST_DIR $SRC_DIR/addressbook.proto
```
```
Java output
protoc -I=$SRC_DIR — java_out=$DST_DIR $SRC_DIR/addressbook.proto
```
- Protobuf is 6 times faster than JSON (https://auth0.com/blog/beating-json-performance-with-protobuf)
Pagination vs Scrolling what should you choose
Tags: webdev, webdesign
Published: 2021-02-09 05:58:22

Pagination refers to page navigation. It is a long-forgotten aspect of web design. However, it is a potential one. While deciding how you want your viewer to navigate your page, you have two options. Pagination or scrolling. To make a wise decision, you must go through the advantages of pagination as well as scrolling. 

A website design agency may find it difficult to choose between pagination and scrolling. The main reason is that both approaches have their pros and cons. Moreover, it is noteworthy that neither of the two gives one solution for all. So, you must choose accordingly.
Here are enlisted some key points to help you with the decision.

<strong>1. User Engagement and conversion</strong>

Pagination split your website into distinct web pages with related information or product/services. However, scrolling is an infinite process to expose the user to large data chunks with no literal focus, just as in Facebook newsfeed.
Allowing your user with infinite scrolling will have your users linger on for longer periods. Hence, providing you with better user engagement. In comparison, pagination aids you with better conversion rates. It is because this approach is a call-to-action approach. 

<strong>2. Addiction and sense of control</strong>

This is about the impact of pagination and scrolling on the human psyche. Scrolling with no ultimate final line to end is often addictive. Social media, especially Facebook newsfeed, is one such example. However, pagination provides a corresponding and a finite number of results. It imparts a sense of control in the user, and he feels more confident while making a purchase. 
No doubt, pagination, and scrolling is a critical decision for the web design. 

<strong>3. Item location</strong> 

Pagination allows the users to remember the brand and webpage more easily. Typically, your loyal customer would ultimately wish to get to the page he shopped last time. So that he may continue to shop from the same page for further purchases. This is quite impossible with scrolling. So, if your website is an eCommerce website, pagination would be the best suitable.

<strong>Learn More:</strong> https://www.navicosoft.com/web-design-company/