profile
viewpoint
Alex L alex-red Canada Full Stack Software Engineer

alex-red/imess 6

iMessage API Server

alex-red/imess-client 5

iMessage Client for iMess Server

alex-red/Modern-Recipe-App 3

Mobile App built with the ionic framework

alex-red/zenmusic 2

HTML5 Music Browser with youtube search list api and youtube iframe api

kenmaca/frrand-api 2

Frrand—RESTful API used in Production

alex-red/MyBnB 1

AirBnB Clone using Java (Spark) backend with MySql.

alex-red/Advent-of-Code-2015 0

December http://adventofcode.com/ challenges primarily in Python.

alex-red/advent_of_code_2016 0

Advent of Code 2016 Holiday Coding Challenges

alex-red/angular2-universal-windows-app 0

An Universal Windows App (uwp) powered by Angular 2 !

startedkrisk/Fuse

started time in 15 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

@torch2424 Wow thanks so much, that worked!

No idea why I didnt think to try:

    WasmBoy.setJoypadState(newState);
    await WasmBoy._runWasmExport('executeMultipleFrames', [1]);
    WasmBoy.setJoypadState(WasmBoyJoypadState);

I also realized that the sharp lib i was using to double the image size was caching aggressively :sweat_smile:, so disabling the cache removed any of the "stuttering". And yes I just realized the saving stopped working haha

EuphoricPenguin

comment created time in 15 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

@torch2424

That makes sense, unfortunately no luck though -- it looks like it isn't even advancing the frame without .play().

No worries though, I'll tinker around and see, otherwise I'll move on to just using it non-headless :)

EuphoricPenguin

comment created time in 15 days

startedGloriousEggroll/proton-ge-custom

started time in 16 days

startednestjs/typeorm

started time in 16 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

It is the latter :) I've put a gist here with the relevant calls: https://gist.github.com/alex-red/1221a55e79eeea9762695d0639c7493b

The server call is at the bottom, let me know if you need anything else

EuphoricPenguin

comment created time in 16 days

startedfarzher/fuzzysort

started time in 17 days

startedpopperjs/popper-core

started time in 17 days

startedjoeattardi/emoji-button

started time in 17 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

Sure, I'm just sending this:

const WasmBoyJoypadState = {
  UP: false,
  RIGHT: false,
  DOWN: false,
  LEFT: false,
  A: false,
  B: false,
  SELECT: false,
  START: false,
}

With the corresponding input set to true.

And yea I'm saving it at the same time as sending the input and getting the screenshot.

EuphoricPenguin

comment created time in 17 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

@torch2424 Thanks for the help and quick reply :smile:

Unfortunately it seems like the same issue, the game does run for 60 frames but its not enough to process the entire action. (trying to run a pokemon rom btw): image

So sending "UP" only works after multiple tries, so I'm thinking it is not running enough frames. Maybe thats not the issue though because even if i change # of frames to 300 or put it in a for-loop it doesn't always seem to run all the way through.

EuphoricPenguin

comment created time in 18 days

startedtorch2424/wasmboy

started time in 18 days

issue commenttorch2424/wasmboy

Discussion / Feedback: Issues running in Node / Server Side

Hey guys, sorry to bump this old discussion, but did anyone figure out a way to properly input a command, wait for it to fully finish, then pause for screenshot?

My code:

    // actual input
    WasmBoy.setJoypadState(newState);
    await WasmBoy._runWasmExport('executeMultipleFrames', [60]);
    await WasmBoy.play();
    // reset input - looks like it holds the button down otherwise
    WasmBoy.setJoypadState(WasmBoyJoypadState);

    await WasmBoy.pause();
    const image = await getScreenshot();
    await saveState();

My problem is that it doesnt seem to fully finish rendering the button input so we have to do it multiple times, I've also messed around with frameskip and the frame number but that makes it skip ahead.

@torch2424 awesome work btw, and thanks for the headless support

EuphoricPenguin

comment created time in 18 days

push eventalex-red/graphql-engine

Alex L

commit sha c3bd56590341c4dc77563e3c0993ba2ca3e64607

add placeholders back for filters, fix tests

view details

push time in 19 days

PR opened hasura/graphql-engine

console: add IS NULL filter to the data browser (close #5287)

<!-- Thank you for submitting this PR! :) --> <!-- Provide a general summary of your changes in the Title above ^, end with (close #<issue-no>) or (fix #<issue-no>) -->

Description

<!-- The title might not be enough to convey how this change affects the user. --> <!-- Describe the changes from a user's perspective --> Added support for IS NULL filtering when browsing data in the console. Uses the existing graphql operator and loads a true/false select.

Demo: hasura_null_filter

Changelog

  • [ x] CHANGELOG.md is updated with user-facing content relevant to this PR. If no changelog is required, then add the no-changelog-required label.

Affected components

<!-- Remove non-affected components from the list -->

  • [x] Console

Related Issues

<!-- Please make sure you have an issue associated with this Pull Request --> <!-- And then add (close #<issue-no>) to the pull request title --> <!-- Add the issue number below (e.g. #234) -->

Solution and Design

<!-- How is this issue solved/fixed? What is the design? --> <!-- It's better if we elaborate -->

Just using the existing _is_null gql condition and exposing it to the filter selection.

In FilterQuery.js, I added a check to see if the operator is boolean, and if so, render a true/false <select> element instead of a text box.

Additionally, added checking for boolean values when retrieving defaultValue and when running an $is_null query.

Happy to change any of my approaches or if there is something that I could do better.

Steps to test and verify

<!-- If this is a feature, what are the steps to try them out? --> <!-- If this is a bug-fix, how do we verify the fix? --> In the Data tab, select [_is_null] filter and select true/false

Limitations, known bugs & workarounds

<!-- Limitations of the PR, known bugs and suggested workarounds --> <!-- Feel free to delete these comment lines -->

Server checklist

<!-- A checklist for server code -->

Catalog upgrade

<!-- Is hdb_catalog version bumped? --> Does this PR change Hasura Catalog version?

  • [x ] No
  • [ ] Yes
    • [ ] Updated docs with SQL for downgrading the catalog <!-- https://hasura.io/docs/1.0/graphql/manual/deployment/downgrading.html#downgrading-across-catalogue-versions -->

Metadata

<!-- Hasura metadata changes -->

Does this PR add a new Metadata feature?

  • [ x] No
  • [ ] Yes
    • Does run_sql auto manages the new metadata through schema diffing?
      • [ ] Yes
      • [ ] Not required
    • Does run_sql auto manages the definitions of metadata on renaming?
      • [ ] Yes
      • [ ] Not required
    • Does export_metadata/replace_metadata supports the new metadata added?
      • [ ] Yes
      • [ ] Not required

GraphQL

  • [x ] No new GraphQL schema is generated
  • [ ] New GraphQL schema is being generated:
    • [ ] New types and typenames are correlated <!-- No dangling types or typenames with missing types (a potential bug, introspection fails) --> <!-- If you have anything in your mind, which can be added here as a check list item, please submit a PR to update this template :) -->

Breaking changes

  • [x ] No Breaking changes

  • [ ] There are breaking changes:

    1. Metadata API

      Existing query types:

      • [ ] Modify args payload which is not backward compatible
      • [ ] Behavioural change of the API
      • [ ] Change in response JSON schema
      • [ ] Change in error code <!-- Add if anything not listed above -->
    2. GraphQL API

      Schema Generation: <!-- Any changes in schema auto-generation logic --> <!-- All GraphQL schema names are case sensitive -->

      • [ ] Change in any NamedType
      • [ ] Change in table field names <!-- Add if anything not listed above -->

      Schema Resolve:- <!-- Any change in logic of resolving input request -->

      • [ ] Change in treatment of null value for any input fields <!-- Explain them below --> <!-- Add if anything not listed above -->
    3. Logging

      • [ ] Log JSON schema has changed
      • [ ] Log type names have changed <!-- Add if anything not listed above -->

<!-- Add any other breaking change not mentioned above -->

<!-- Explain briefly about your breaking changes below -->

+62 -16

0 comment

6 changed files

pr created time in 19 days

push eventalex-red/graphql-engine

Alex L

commit sha 50acdf4899ce1f7c2817c1385df10fe3ec3f43e8

update changelog for #5287

view details

push time in 19 days

issue commenthasura/graphql-engine

_is_null in data browser

Hi @beerose, I would like to contribute to this one :)

iuriikomarov

comment created time in 20 days

create barnchalex-red/graphql-engine

branch : is_null_filter_query

created branch time in 20 days

fork alex-red/graphql-engine

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.

https://hasura.io

fork in 21 days

startedremorses/genql

started time in a month

startedtrevoreyre/autocomplete

started time in 2 months

startednuxt/nuxt.js

started time in 2 months

issue commentfroala/wysiwyg-editor

Editor re-enables unexpectedly

seeing this issue as well, anyone have a temporary workaround?

drdrak3

comment created time in 2 months

startedhelios1138/graphql-typed-client

started time in 2 months

push eventalex-red/server-setup

Alex L

commit sha 516f1af7607930a4049f2d7b2c9478390341839c

Update README.md

view details

push time in 2 months

push eventalex-red/server-setup

Alex L

commit sha c13e78e4accab4b4727a2ea84fe747b494468efd

Update README.md

view details

push time in 2 months

starteddotansimha/graphql-code-generator

started time in 2 months

startedpubkey/rxdb

started time in 2 months

push eventalex-red/server-setup

Alex L

commit sha eeeb626ac09ae05ea18d0d726f0e7b7dd3e4f9f8

feat: colour bash option

view details

push time in 2 months

push eventalex-red/server-setup

Alex L

commit sha 4ee5570ea9ea657dc8bedbca9e59c3657ec58974

Update README.md

view details

push time in 2 months

push eventalex-red/server-setup

Alex L

commit sha 026661a0166f8df8ce0496e262f72fa2221c415a

update: only generate alias file if enabled

view details

push time in 2 months

push eventalex-red/server-setup

Alex L

commit sha 30c07f903acb7e37403a3d446b7247d8e3e753bb

feat: ability to install new commands as an alias file to .bashrc

view details

push time in 2 months

push eventalex-red/server-setup

Alex L

commit sha 8a250a43644f9b585ac499e591e5e04c659169c7

initial commit

view details

push time in 2 months

create barnchalex-red/server-setup

branch : master

created branch time in 2 months

created repositoryalex-red/server-setup

Scripts for installing QOL/needed packages for Ubuntu servers

created time in 2 months

startedsamdenty/gqless

started time in 2 months

startedksensehq/eventnative

started time in 2 months

issue openedcaprover/caprover

Support docker swarm update configuration

Hi all, loving Caprover so far and it seems to have everything I need except one config that I think would be great to have: the ability to set the UpdateConfig for service updates. Being able to set the delay between updates would help with having zero downtime in images that take a bit longer to startup.

Something simple like in portainer would be nice: image

Let me know if this has already been addresssed elsewhere (couldn't find anything through the search), and I would be happy to contribute to this as well.

created time in 2 months

startedSequel-Ace/Sequel-Ace

started time in 3 months

startedrrweb-io/rrweb

started time in 3 months

more