teleren/devto huggingface dataset:
AppleScript Observations
Tags: applescript
Published: 2019-10-30 02:09:00

---
title: AppleScript Observations
published: true
description: Some observations about AppleScript
tags: AppleScript
canonical_url: https://blog.appsbymw.com/posts/applescript-observations-41g2/
---

This post is going to cover some observations about using [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html#//apple_ref/doc/uid/TP40000983-CH208-SW1).

This is going to be a fairly informal post since it's my thoughts and observations.

# Variables... where are they declared?

I was a bit confused because variables are not declared any one.

In Swift, variables are always declared before they are used.

```swift
var name: String 

// or use type inferencing
var name = "Maegan"
```
In AppleScript to declare a variable the command is `set var_name to "var_value"`. I realized I wanted all my variables to be declared in a central place while working in AppleScript, but I couldn't really do that.

# AppleScript is **very** human readable

AppleScript is completely human readable. A lot of the commands are made to be read. Here are some examples:

- To declare a loop, it is a `repeat` command. 
- To break out of the loop, it is a `exit repeat` command.
- To check if something is not equal

```AppleScript
if varA is not "20" then
    -- Do something here
else
    -- Do something else
end if
```

- To make an application do something, use the `tell` command

To me, these are very human readable.

## There are no brackets!

While the commands are human readable, the nesting of code is not as human readable. There are no brackets and ScriptEditor.app does not have guides so the nesting can be hard to follow.

# THE POWER IS THERE

Lots of Mac apps support AppleScript. I have created a Keynote presentation that counts down from 1 hour all the way to 00:00:00, about 3300 slides, in maybe 15 minutes. I made a show control setup that fades down and pauses Spotify and also another one that fades up, skips to the next track, and plays the track at the same time.

# The end

Those were my quick observations. If you have any tips about AppleScript, let me know in the comments!

---

If you enjoy my posts, please consider sharing it or Buying me a Coffee!

<a href="https://www.buymeacoffee.com/appsbymw" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/arial-blue.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>
An attempt at generating dungeons with Ruby
Published: 2019-10-30 00:09:49

I wanted to make a random world generation and dungeons are a great way to start. This is an attempt at generating dungeons so right now it's only able to generate the number of rooms, monsters, and percentage of treasures there are in that generated dungeon. There is a dungeon size you could choose between small, medium, and large. The larger the dungeon, the higher the chances of getting treasures but you're also at risk of getting a dungeon spawned with legendary monsters. The screenshot below is the monsters and legendary monsters array that I created. Right now it's not a lot, but it's a good start.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/zoynb0r9anppfk2irpq8.png)

I haven't implemented a legendary monsters percentage yet but I am going to implement it later to spawn in a room with a certain percentage. The smaller the dungeon size, the less chance it'll spawn. The code is still really repetitive at this point, but I just want to see how it would feel like if it was working so that I could start doing the right things to get to that goal.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/oqith68fttpvl9pns6xl.png)

It's going to run in the terminal and the user input guides the world generation. Things such as would you want your dungeon to be small, medium, large, or custom in size. The dungeons are randomly generated so a small dungeon could be different from another small dungeon. It would still have the same percentage of treasure drops though which is the main attraction.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/crku0ucmtiwnqx5fnmpy.png)

Overall, this is just the beginning of the project and the first attempt at random world generation. I plan to make it generate a lot more things for the dungeon but for now, just three is fine.
Path to becoming a front end developer
Tags: career, beginners, uiweekly, javascript
Published: 2019-10-30 00:07:40

If you are wondering the steps to become a front end developer/ web developer then I think this post will bring some clarity in what to expect and how to prepare for the challenges.

Gone are the days when user interface(UI) use to be considered as just a placeholder. Front end technology has evolved over the years and especially JavaScript has become one of the prominent programming language. Developers can use JavaScript to create modern applications, micro-services and execute cron jobs for the database. 

The below mind map was published a few years back and might not be updated with the latest frameworks and libraries but it can give you a bit of context before we dive deeper into more analysis.


![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/5iwbdk83lvz8srlf3g93.png)


##**FIRST THING FIRST:**

By looking at the mind map, the very first thing you would have noticed is that you need to start learning with *HTML5, CSS3 and JavaScript.*

Once you feel comfortable with all the aspects of the above three which might take some time, but **you should spend as much time as possible** with getting the foundation strong. Eventually, the browser only understands HTML, CSS and JavaScript and the rest of the libraries/frameworks or tools are there to enhance the capabilities.


##**MOVING ON:**

Now once you are content with your understanding of *HTML5, CSS3 and JavaScript*, I would like to bring your attention to another important aspect - the best practices like, **semantic HTML, accessibility, BEM model, design patterns etc.**. 

You must be wondering why not move on to the latest frameworks and libraries? My view is that first getting your foundations strong and then expanding your skillset, differentiates between a developer and an expert. You can write the code just to get the job done but did you write it in the best way possible?


##**FINAL LEG:**


Finally, you can look at the current trending frameworks by checking the trend checker platforms: 

[NPM Trends](https://www.npmtrends.com/) - How many times npm package was downloaded

[Google Trends](https://trends.google.com/) - How many times the framework was searched.


At the moment there are three popular MVC JavaScript framework/libraries - React, Angular, Vue.


For Microservices - Node, GraphQL.


For Database - MongoDB, Couchbase, NoSQL.



I hope this article must have brought some sense of clarity in your plan of becoming a front end developer. Happy coding and learning!
Introduction to Cross-Site Request Forgery (CSRF)
Tags: csrf
Published: 2020-09-21 07:15:49

---
title: Introduction to Cross-Site Request Forgery (CSRF)
published: true
date: 2019-10-30 00:00:00 UTC
tags: CSRF
canonical_url: https://www.loginradius.com/engineering/blog/introduction-to-cross-site-request-forgery-csrf/
---

Introduction Cross-Site Request Forgery (CSRF) is a common web application attack where a victims’ authenticated session becomes compromised. This attack essentially tricks a victim into performing unintended tasks on a website they are authenticated in. There are variations to…

   
[Read On](https://www.loginradius.com/engineering/blog/introduction-to-cross-site-request-forgery-csrf/)
Getting Started with gRPC - Part 1 Concepts
Tags: engineering, grpc
Published: 2020-09-21 07:15:27

---
title: Getting Started with gRPC - Part 1 Concepts
published: true
date: 2019-10-30 00:00:00 UTC
tags: Engineering,gRPC
canonical_url: https://www.loginradius.com/engineering/blog/getting-started-with-grpc-part-1-concepts/
---

This blog is part 1 of a series on gRPC. Part 1 will go over some important concepts, part 2 will be a walkthrough of a client-server implementation in Go, and part 3 will be about LoginRadius' experience migrating to gRPC! gRPC gRPC, simply put, is just another way to send data…

   
[Read On](https://www.loginradius.com/engineering/blog/getting-started-with-grpc-part-1-concepts/)
SFML 2.5.1  setup on macOS with CLion
Tags: gamedev, clion, sfml, cpp
Published: 2019-10-30 02:59:40

---
title: SFML 2.5.1  setup on macOS with CLion
published: true
date: 2019-10-29 23:50:51 UTC
tags: GameDev,C#,CLion,SFML
canonical_url: https://giovanni.codes/sfml-2-5-1-setup-on-macos-with-clion/
---

I know that the title is very specific but that is the platform that I am doing some experiments with SFML.

So, if you want to create games with SFML and you have macOS and you want to use CLion as IDE just follow the next steps:

## Install SFML

There are a lot ways to [install SFML](https://www.sfml-dev.org/download.php) but the easiest is to install it with brew

```
brew install sfml
```

With this command, you’re going to install the version 2.5.1.

## Create the project with CLion

Now is time to create a new project with CLion, put the name that you want

![](https://giovanni.codes/wp-content/uploads/2019/10/CLion-SFML-Create-Project-1024x684.png)

Now, you need to update the **CMakeList.txt** to compile and link your project with the SFML libraries.

```
cmake_minimum_required(VERSION 3.14)
project(HelloSFML)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp)
add_executable(HelloSFML ${SOURCE_FILES})
include_directories(/usr/local/include)

find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
include_directories(${SFML_INCLUDE_DIRS})
target_link_libraries(HelloSFML sfml-system sfml-window sfml-graphics sfml-audio sfml-network)
```

My recommendation is that you link the libraries that you are going to use, for example, only link and require  **sfml-graphics** and **sfml-audio** for example.

## A simple SFML project

Now , create a simple SFML code to check if all was installed correctly.

```cpp
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(640, 480), "SFML Application");
    sf::CircleShape shape;
    shape.setRadius(40.f);
    shape.setPosition(100.f, 100.f);
    shape.setFillColor(sf::Color::Cyan);

    while (window.isOpen())
    {
        sf::Event event;

        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }
}
```

Run your project and you will see

![](https://giovanni.codes/wp-content/uploads/2019/10/SFML-Simple-Program.png)Now you are ready to create games ![🙂](https://s.w.org/images/core/emoji/12.0.0-1/72x72/1f642.png) !

The post [SFML 2.5.1 setup on macOS with CLion](https://giovanni.codes/sfml-2-5-1-setup-on-macos-with-clion/) appeared first on [Giovanni Codes](https://giovanni.codes).

 ![](http://feeds.feedburner.com/~r/giovannicodes/~4/TDttIoMqO8M)
Day 22 : Foundation
Tags: hiphop, code, coding, lifelongdev
Published: 2019-10-29 23:01:48

_liner notes_:
- Professional : Got the first part of the app working. The previous one used messaging and this new one is using voice. There's a lot to learn. Trying to build a strong foundation of knowledge so I'm more comfortable building things and able to help others. So yeah, just trying things and see what the results were.

- Personal : Going to go through more tracks for this week's radio show. Also, going to go through more of the Svelte tutorial. Maybe even start writing up some code for my new side project.

![View of Wallowa, OR, United States mountains and countryside](https://thepracticaldev.s3.amazonaws.com/i/2gym8q3ysnt43lwnuld7.jpg)

So tomorrow is my birthday. Was never really into celebrating, so it'll be just like any other day. haha I do have some packages that are supposed to arrive. Going to get back to this tutorial.  

Have a great day!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube k_8Jlq9n3Kw %}
JAMstack Roundup for October 29th 2019
Tags: react, webdev, graphql, jamstack
Published: 2019-10-29 22:45:35

###Here are 5 great articles we've enjoyed this week!

1. [Adding Search to your Eleventy Static Site with Lunr](https://www.raymondcamden.com/2019/10/20/adding-search-to-your-eleventy-static-site-with-lunr)

    Lunr is a completely client-side search solution. 🌚 Working with an index of your creation, Lunr will take in search input and attempt to find the best match it can. You are then free to create your search UI/UX any way you choose. 😲

2. [JAMstack: Progressive Mailchimp sign-up form with Netlify](https://dev.to/skatkov/jamstack-progressive-mailchimp-sign-up-form-with-netlify-13m3)

    This article will help you build a solid "works-at-all-times" sign-up form with a custom serverless function on the JAMstack. ✅

3. [How We Built a Serverless Progressive Web App with Cloudflare Workers](https://medium.com/krayx/how-we-built-a-serverless-progressive-web-app-with-cloudflare-workers-f917cca7bbd8)

    A few days ago, we launched our new Progressive Web App (krayx.com). We did this without setting up any servers. We didn’t have to worry about regions or uptime. 💃🕺 Instead, we could focus on delivering the best experience to our users. 

4. [Play with React Concurrent Mode with Your Gatsby Site](https://dev.to/wgao19/play-with-react-concurrent-mode-with-your-gatsby-site-2b70)

    The React team released curious cat version for concurrent mode 😸, and I want to try that with my personal sites and side projects.

5. [Using Storybook as a Visual Testing Platform](https://medium.com/better-programming/using-storybook-as-a-powerful-visual-testing-platform-3b71db953b4b)

    This is my experience with Visual Testing and how you can implement it in your projects. 📖
Read the friendly Manual, do it!
Tags: discuss, webdev, code
Published: 2019-10-29 22:19:35

---
title: Read the friendly Manual, do it!
published: true
description: instead of assuming you know already, refer to documentation and confirm your answer, aka read the fucking manual
tags: discuss, webdev, code
---

~~READ THE FUCKING MANUAL!~~

read the FRIENDLY manual.

Sorry for swearing, I'm not the one who came up with that. But it rings true. 

Instead of fighting your code and assuming you already know how to code something based off previous experience, go read the docs (manuals). 

Here is why. You may have already studied up on something and might even be using it daily! But sometimes you learn something with an assumption that was incorrect, yet due to how you were using it, it just worked.

Then you come to an issue and you waste hours trying to make it work, since last time you got it to work! Banging your head against the keyboard. You google everything you can... but why not just go to the source of truth?

I am **sooooooooo** guilty of this, it's why I'm writing this post. It's more of me calling myself out so I stop doing it! 

Take Jest for an example. We use it for our unit test in every project. But for what ever reason, I struggle mocking classes every time. I think I remember how to do it, just to spend hours fiddling with the right solution. 

Part of the issue is the time in between projects, but mostly due to me going off my assumption that I know what I'm doing based off that I got it working last time. 

Well this time, I decided not to fight it. I read the docs. And sure enough I was wrong on what I thought it was doing.

So do yourself a favor. Before going off aimlessly for hours, go to the source of truth and confirm you know exactly what you need to do and how it works.

I hope this saves you hours of your life! 

- DeChamp
Modern React interview questions for junior developers
Tags: react, beginners, javascript, codenewbie
Published: 2019-10-29 22:13:19

Here's an example of an interview-style question that's common in junior React frontend interviews.

Mainly, they want you to show that you know the ins and outs of how to work with the framework.

This is a real phone screen question I had when I was interviewing for my first fronted role, including ES6, list mapping, click events, etc.

Also, updated to use **React Hooks**!

Please consider subscribing by clicking [here](https://www.youtube.com/mattupham?sub_confirmation=1)!

{% youtube 3vOUMEBeRvs %}
[Modern React interview questions for junior developers](https://youtu.be/3vOUMEBeRvs)

If you found this video useful, please consider subscribing to my YouTube Channel! I talk about tech, life in Silicon Valley, and self-improvement!

**Subscribe Here**
[YouTube - Matt Upham](https://www.youtube.com/mattupham?sub_confirmation=1)

Learning to code? Join our growing [Discord](https://discord.gg/9RGdMcF) community!

Thanks for reading!
Getting ready for Sveltevember
Tags: svelte, interactivefiction, gamedev, devlog
Published: 2019-10-30 22:44:59

---
title: Getting ready for Sveltevember
published: true
date: 2019-10-29 21:44:32 UTC
tags: svelte, interactive fiction, gamedev, devlog
canonical_url: https://triptych.writeas.com/getting-ready-for-sveltevember?pk_campaign=rss-feed
---

I've been wanting to get back into writing, coding for games, and learning about Svelte, so I've decided to combine all this into one effort where I do a #devlog about my experiences with #svelte and how I'm porting STIM over to it as a first pass.

![](https://i.snap.as/yJ58HP6.jpg)
Founding Backend Engineers needed at doddle.ai (Redwood City)
Tags: career, machinelearning, ai
Published: 2019-10-29 21:14:53

The founders of doddle have extensive experience leading large teams building big data and ML platforms to enable data scientist and ML Engineers at Pinterest, Facebook and Uber. They are looking for Founding Engineer to join their team. Extremely technical and a small team, so not a lot of room for ramp up, but really great people. Be apart of something from the beginning #machinelearning #ml #ai please feel free to connect on twitter @jonv1919 or email at jvolk@unusual.vc
Lead SDET Opportunity - Banyan Security (San Francisco) 
Tags: testing, career, security
Published: 2019-10-29 21:12:53

I have an exciting group of founders that are looking for their first #SDET to own the testing function! #computerscience degree is strongly preferred as this is a start up. Really great people trying to build something great! https://jobs.lever.co/unusual/0a4bf9e6-d808-4555-b9bf-31276d4222c3 please feel free to connect on twitter @jonv1919 or email at jvolk@unusual.vc
5 Reasons to Choose Mobile App Development Company in California
Tags: graphics, arts, design, illustration
Published: 2019-10-29 20:44:08

Your mobile application needs can become a trouble for you but not for people who are with us. We are the finest [Mobile App Development Company in California](https://appdevelopmentcalifornia.com/) and here are five reasons why you should choose us.

**1.The Best Professionals**

We have got the best professionals on board. They are expert and experienced in their domain and can use their expertise to make your mobile applications have the best and effective measures. 

**2.Experience in the Industry**

We are not new, we are experienced, and this is another reason why you should come to us. We have an idea about the industry and the trends that are currently flowing in the industry. We can make your applications to have the best ideas and trends to be implicated. 

**3.State of the art Tools**

We have the best tools and software in-house. We have these tools that make the mobile applications to have the effectiveness and have the things that are required in contemporary times.

**4.Affordable Rates**

Do you think that everything above will cost you much? Well, not with the mobile app development company in California. We offer the most competitive and affordable rates according to the things you.

**5.Amazing Customer Service**

Well, unlike many of the businesses, we don’t deliver the product or the application, but instead we deliver customer satisfaction. We have the idea of making you satisfied with everything that we are giving you and we can revise the applications as many times as you want until you get satisfied.
These are the five things that make people come to us, and this is the reason that we are one of the most recommended mobile app development company in California.
Top 6 Best Blockstack Apps in 2019
Tags: blockchain, blockstack, dapps
Published: 2019-10-29 18:10:16

It’s no secret that there’s a new class of apps on the rise.

They’re user-centric, privacy-first and regulars on Blockstack’s daily charts for most of 2019. Everyday, these apps hand over new types of control to their users as they slowly trickle into the mainstream.

If you haven’t taken the reins of your own online identity and data yet, it may be a good time to get started (before the next large-scale data hack, leak, etc.). To get you going, these apps are all accessible with a single Blockstack ID:


📞 dPhone makes secure calls directly between you and the other person

📖 SafeNotes is a secure PDF annotator

📁 pDrive is an encrypted file storage

📸 Bitcoin4Photos is a marketplace to buy and sell stock photos for bitcoin

💬 SatsHi allow you to earn bitcoin by livestreaming yourself

📅 Secure Calendar is a private calendar tool

If none of these strike your fancy, there are over 270 more to play with and, if you’re a builder, you can get paid to build these types of apps through Blockstack’s App Mining program.

# About Blockstack
It's all about fundamental digital rights.
Blockstack is a full-stack decentralized computing protocol that enables a new generation of applications where developers and users can interact fairly and securely, while curing the ills of centralized Internet design. Blockstack builds protocols and developer tools designed to enable a fair and open Internet that returns digital rights to developers and consumers. Led by some of the world's foremost experts on distributed systems, Blockstack allows users to own their own data that they can take with them from app to app in the ecosystem, along with their Blockstack ID that eliminates the need for password-based logins. The end result is privacy, security, and freedom.

https://community.blockstack.org/what-is-blockstack
Developing a Secure API with NestJS: Getting Started
Tags: javascript, frontend, nestjs
Published: 2019-10-29 20:21:39

---
title: Developing a Secure API with NestJS: Getting Started
published: true
description: Learn how to use NestJS, a Node.js framework powered by TypeScript, to build a secure API.
tags: #javascript #frontend #nestjs 
canonical_url: https://auth0.com/blog/developing-a-secure-api-with-nestjs-getting-started/
---
In this tutorial, you'll learn how to build a secure API using NestJS, a module-based architecture framework for Node.js powered by TypeScript.

NestJS helps developers create highly scalable, modular, and maintainable server-side web applications. It leverages the Express framework to easily implement the MVC (Model-View-Controller) pattern and to provide you with extensibility, as you can use any of the third-party modules available for Express. However, the most outstanding feature of NestJS is its native support for TypeScript, which lets you access optional static type-checking along with strong tooling for large apps and the latest ECMAScript features.

[Keep reading 🚀](https://auth0.com/blog/developing-a-secure-api-with-nestjs-getting-started/?utm_source=dev&utm_medium=sc&utm_campaign=starting_nestjs)

![Developing a Secure API with NestJS: Getting Started](https://cdn.auth0.com/blog/illustrations/nestjs.png)