Nand2tetris hardware simulator GUI not opening - nand2tetris

Hi This question may not belong on this forum but I'm not sure where else to post it. I'm taking the Nand2Tetris course and in week 1 the instructor goes through the Hardware Simulator to test HDL code. The instructor shows a GUI. Trouble is when I try to follow along and I click on the HDL simulator.Sh file. I don't get an GUI I just get a list of apps to open my code the best being VS code which doesn't seems to run HDL. Anyone here familiar with Nand2 Tetris and knows how I can get the HDL simulator (preferably with the GUI) to work?

Related

Bluetooth Low Energy: Issues using WinRT API

I want to read characteristics from a service using WinRT API for BLE. Ihad some working code, but in my last question (Bluetooth low energy characteristic access only works once) i was told my API was too old and wont work on every PC. My issues now are:
I can't get the sample code working. Research on this issue didn't give me answers, so I'm asking here. In the image you can see part of the code and some error messages.
The code doesn't seem to read characteristics, but I'm really unsure how to read them with this new API.
You can take a look at the code here: https://github.com/urish/win-ble-cpp/blob/master/BLEScanner/BLEScanner.cpp
Im using Visual Studio 2019 and i have installed UWP, WinRP C++, and everything else I think I need.
Thanks in advance

tizen on gear s3 get/set information to app on connected phone

I am developing a widget/app for the gear s3 smartwatch. In particular, I would like to build something similar to the Alarm widget that comes pre-installed on the gear.
What I can't find is any information about is connecting to the phone and getting alarm info. There are android java api's for doing this (on a phone device), but, again, I can't find anything for a native tizen app on the gear s3.
Any info, pointers, etc. greatly appreciated.
TIA
ken
(PS: I do know that the tizen IDE comes with a sample alarm widget, but it is only a GUI, no functional code. That's what I need.)
Sorry guys. I guess I wasn't clear enough: 1) I have built the "alarm widget" sample- it is mostly the GUI part (see #2); 2) the "alarms" that you have pointed out are really just "timed callbacks". They have nothing to do with the alarms available on the phone's clock app.
I did find something about "com.android.alarmclock" on github (here). How does one get access to something like that via tizen c?
See this link on how to develop Tizen Wearable Native Widget Application.
https://developer.tizen.org/development/training/native-application/getting-started/creating-your-first-tizen-wearable-native-widget-application
Alarm Sample Overview with code hint
https://developer.tizen.org/development/sample/native/AppFW/Alarm
API: The Alarm API allows setting an "alarm clock" for the delivery of a notification at some point in the future.
https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/latest/org.tizen.native.mobile.apireference/group__CAPI__ALARM__MODULE.html
I found this on github (https://github.com/aosp-mirror/platform_packages_apps_alarmclock/tree/master/src/com/android/alarmclock) This is pretty much what I need. Now I just have to translate from android/java to tizen/c. For the latter this (https://developer.samsung.com/galaxy/accessory) will also be useful, although it might not look so.
Just to clarify and maybe help with the next poster: I really should have been more careful when using the word "alarm". I know about the alarm api's in tizen, but as mentioned these are specific to one app instance. I really wanted to communicate with an app running on the connected phone - ie, the alarmclock app.

Automation Testing for Chrome

I was hoping you could point me in the correct direction. I am trying to find an automation tool for an internal Chrome site that I, as a tester, can use to create tests. I would prefer some kind of recording type option and free or very low cost. And it MUST work on Chrome. Our app doesn't work with any other browser
Here's what I've looked at so far:
I am not going to have time to learn any new languages or have access to a developer, so Cucumber is out (this was the company's first choice).
I found the Ghost add-on that records, but it needs to open the firewall to be used. BIG no no.
I looked at sikuli, but we can't have a dedicated screen like that, although it might still be a last ditch option
TestComplete might work, but it costs money. I am going to download the free trial, but the justification may not be enough to get the company to spend the money
SoapUI is something I've worked with before and I know that only the Pro is helpful to a non-programmer like myself.
Any ideas are welcome.
Thanks!
You could look at Robot Framework. It is a keyword driven test automation framework and it has good Chrome support via Selenium. Web page has examples how to write tests for browsers.
Robot Framework is open source and free. Writing tests with keywords looks more difficult than using record-playback tool. However, once you have several tests, managing them will be easier with keywords.

Is there a simplified explanation of how to setup an actionscript IDE?

I've recently purchased some beginner books on basic ActionScript animation and also downloaded the flashDevelop IDE. I've taken a couple Java classes and have a VERY basic understanding of coding and at that, computers in general. I'm having a difficult time figuring out this IDE (eclipse was setup for me). I've downloaded the file and installed the IDE. I made a file and wrote some code but when trying to compile I get some sort of pathway error and also an SDK error. I'm completely lost on how to fix these issues as the results I've found through Google and stackoverflow are not simplified enough. I'm also confused about how this ActionScript code will be turned into, say, a ball jumping around the screen. Could I please get a VERY simple, borderline special needs explanation of how to setup this IDE and also any info on additional programs needed to actually turn the code into an animation? Forgive me for my ignorance, but I'm starting from the ground up and any help will be much appreciated. Thank you
You may try Flash Builder, and you could change different version of sdk in flash builder. http://www.adobe.com/cn/products/flash-builder.html

MySQL+PHP+Flash+as3 How to save into a mySql data from a Flash AS3 2d RPG game in OFFLINE programming.?

It's my first time to ask online about my programming problem and I hope I can get feed backs as soon as possible. Me and my partner are working on a project of doing a 2D RPG game using FLASH CS5.5, AS3, PHP(Dreamweaver cs5.5) and Mysql(xampp). I would like to know if there's any way that wwe can create the game and connect it to mysql where we can save and retrieve data after a game is played and save it in the players status so that when the player plays again, he can have the last status of his game to continue. We want it to be an OFFLINE game and anywhere i search in the net, all of the tips are for online games. PLease help us. Thank you.
Assuming the game is mostly written in ActionScript 3
In order to save data on the an SQL server you need to pass the data from AS3 to PHP and insert it into the server.
To do this, you will need to become familiar with AS3's JSON library. There are numerous ways to do this, including the popular as3codelib, but the JSON library is built in and is much simpler than it first appears.
I would explain it all, but this tutorial will get you familiar with it.
P.S: Like others have said, you will want to test this locally so make sure you know how to perform basic SQL queries and run PHP scripts using XAMPP. If you do not, this should help
If you only want this to run locally (i.e. a user has their own set of data), why don't you just use a SharedObject?
This lets you save data to the users machine very easily and much more efficiently.