Today I mostly implemented Abiathar Live Studio's Fork Level command. After pasting a version URL, the user can select a path for the ADEPS file. The development and test environments are downloaded and prepared as usual, then a pull is executed. Implementing this system turned out to be pretty easy thanks to having the smaller parts (ADEPS selection, environment setup, and pulling) already done. I have yet to implement the level search method of version selection - currently the user must paste an URL - but once that's done, forking will be easy.
Since it's now possible to have local copies of levels that one doesn't own, some assumptions about permissions will need to be reevaluated. As a start, I made the Level Properties window actually check for errors (mostly permissions problems) and complain about them after attempting to save.
Various technical articles, IT-related tutorials, software information, and development journals
Saturday, March 31, 2018
Friday, March 30, 2018
Use VCF files to get SNP information from large data sets
Recently I needed to find information on the co-occurrence of some single-nucleotide polymorphisms in a human gene. For a small data set covering only the gene of interest, manipulating the information in SAM format worked well. But then I wanted to look at the data generated by the 1000 Genomes project, which is comprised of thousands of full genomes - a ton of data. My scripts probably wouldn't be able to handle files that large, and even extracting the relevant SNPs using my current tools from a single genome could take ages. Fortunately, the 1000 Genomes project also offers VCF files, which are catalogs of variations with each individual's type at that site right there on the same line. That's extremely convenient. The rsID is the third tab-delimited field, and filtering for rsIDs I needed was pretty easy with a bit of PowerShell.
Thursday, March 29, 2018
Trying to run only a dependent TestNG test may fail with "nonexistent group"
The IntelliJ IDE allows you to select a specific TestNG test to run. One person, attempting to run a test, received an error saying the test method "depends on a nonexistent group" even though the prerequisite group was definitely in the test suite. The problem is that IntelliJ doesn't include dependent tests in the impromptu battery of tests when preparing to run a specific test, so TestNG thinks the prerequisites don't exist and fails. Running the entire test suite works fine.
Wednesday, March 28, 2018
The Android Studio emulator doesn't work on AMD CPUs on Windows
Today I helped someone who was trying to use Android Studio's emulator but getting an error about virtualization capability: "Your CPU does not support required features (VT-x or SVM)." His CPU did support virtualization and it was enabled in the BIOS (Task Manager confirmed it); he did not have Hyper-V enabled to conflict with it. This was strange - it should have been able to virtualize just fine. Careful reading of a page on the emulator, though, revealed the problem: on Windows, their emulator only supports Intel virtualization for hardware acceleration! The person I was helping has an AMD processor.
He decided to just use a physical phone for testing. Other solutions include using the Visual Studio Emulator for Android, which is supposed to appear to Android Studio as a USB device. This is the strategy I'm using (since I have Hyper-V enabled already), but it took a lot of effort and fiddling to make it actually work.
He decided to just use a physical phone for testing. Other solutions include using the Visual Studio Emulator for Android, which is supposed to appear to Android Studio as a USB device. This is the strategy I'm using (since I have Hyper-V enabled already), but it took a lot of effort and fiddling to make it actually work.
Tuesday, March 27, 2018
When MATLAB shows side-by-side configuration errors
I recently tried to run a MATLAB compiled program that produced errors about the side-by-side configuration being incorrect. This was on an essentially fresh Windows 10 virtual machine, so there shouldn't have been too much junk interfering with anything. Some searching revealed that, apparently, a Visual C++ Redistributable update needs to be installed to correct the problem. The version installed needs to be of the right bitness for the application. The MATLAB program I had downloaded was ostensibly 64-bit, but seemed to have 32-bit components that required the 32-bit version of the Redistributable.
Saturday, March 24, 2018
Keen Modding Live - Get version by ID
I started the UI for selecting a level to clone/fork. I suspect it'd be most convenient for users to simply copy the URL right from the web page where they're playing the level, so there's a button to identify a version from the URL on the clipboard. While implementing that, I found that there was no way to get the information on a single specific version from the API, only to get the versions associated with a specific level. I adjusted the "get version" API endpoint to also accept a version ID and used that functionality to make the desktop client extract version information from the current level URL scheme.
Friday, March 23, 2018
FMod - Simultaneous Tileset doesn't get re-enabled
I noticed while testing Abiathar Live Studio that in Abiathar v2.10, Simultaneous Tileset gets disabled when opening a new project. This is a regression; the past, correct behavior was to put Simultaneous Tileset in its user-selected startup configuration when opening a project. I had moved a bit of code into the "only set up default settings if opening project for the first time" block to avoid toggling settings, but apparently Simultaneous Tileset gets disabled when projects close, so I should just put it back every project load.
Subscribe to:
Posts (Atom)