My Page

LWFlouisa's picture

[ about ]


I am a science fiction and fantasy writer, who also dabbles in Ruby programming. Currently learning ChatScript, and eventually InMoov.

I am currently on:

Mastodon
Diaspora
Twitter

[ blog ]


These blog posts are published in ascending order.

 

Artificial World or Artificial Intellegence?

LWFlouisa's picture

In certain pre-development projects, they have a virtual robot instead of a regular robot. Would the habit of creating a modular virtual wold be a habit I'd need to get out of? Because that's been the general approach I've taken with Ruby.

Basically I construct the AI as if it were multiple programs that operate co-dependantly, with them able to be bug tested individually. Then ends up creating more a world environment, and not so much the intellegence in their own right.


Why The Right Semantics Is Important,

LWFlouisa's picture

I've met tech people on social media websites, that have this idea their concept of how tech works is gospel, only for them to reveal themselves not having basic programming distinctions:

 

A hash index (also called a codebook), creates a dictionary of things.

=>

a = {

  "A" => "1", "B" => "2", # And so on.

}

 


Wanting to adapt a chatbot project to InMoov,

LWFlouisa's picture

Going to see about maybe implementing chatscript with python, I definitely know this has been done.


How export webgui to your team,

Services: 

localtunnel
myrobotlab

Hardware: 

Not applicable.

In most cases, you don't really want a localhosted site to be accessible from outside your machine, but there are certain circumstances where you may need to, if you're a multiple person team, and you're wanting to collaborate on MyRobotLab without sharing the same machine.

Enter Local Tunnel, you can find a copy of the download here: https://github.com/localtunnel/localtunnel

New Servo Interface

GroG's picture

I have not visited the Servo service for a long time.  It gained functionality, but some of the implementations make it very difficult to extend in the future.  Additionally, there were some problems which made the code unecessarily complicated.


ESP32 - Pushing a Varaible out to multiple GPIO pins using registers

Gareth's picture

How to output a variable directly to GPIO pins ... i.e. in parallel.

This can be done using the ESP32's registers.

// sending a variable to GPIO pins Bitwise register style

// create a parallel GPIO bus using GPIO 12,13,14,15 i.e. must be consecutive pins
#define PARALLEL_0  12

int RGBled=000; // demo RGB connected to Gpio pin 12,13,14,15

void setup() {


ESP32 - Setting up 2 cores to run 2 parallel Code threads

Gareth's picture

Here is the simplest way to get code running parallel with two separate cores on the ESP32.


Google Speech Recognizer Log Error Code

LWFlouisa's picture

I seemed to have resolved the issue, it just takes a while for Mary to load.


Finally getting used to the syntax,

LWFlouisa's picture

What was really stumbling me was mainly trying to add numbers as parts of speech, but it was easy enough to turn these back into strings, and then display it normally.

The flow is extremely similar to Ruby:

 

[code]

# Submission based emotions.

def attraction():

  print("I do accept.")

 

def trust():

  print("I do trust")

 

def acceptance():

  print("I do accept")