For Bioinformatics Support
loadcsv also support tsv format file (\t split type), just using:
loadcsv test.tsv tb1 1
loadcsv also support bioinformatics .maf/.vcf/.sam/.gtf/.gff/.gpd file, just using:
loadcsv test.maf tb1 or loadcsv test.vcf tb1
Load GenBank Format Features Data.
using: loadgb gbfile tb01
load bioinformatics GenBank file (etc: .gb/.gbff/.gpff) features info to table.
Crawl website data, parse and write to database
using: loop loadweb url=https://xxx.xxx.com/xxx re=(\d+), base on python regular module, Qsqlite loop nesting function, can achieve complex web data crawling and content extraction, and then write to the database.
v = sv.objc_instance
for _ in range(6): v = v.superview()
From some time (iOS 14?), these lines are no more sufficient...
Up to 8 instead of 6 solve the problem, but I have generalized it with
#for _ in range(8): v = v.superview()
UIPanGestureRecognizer = ObjCClass('UIPanGestureRecognizer')
#i = 0
for gr in v.gestureRecognizers():
# comment next line to avoid UIParallaxTransitionPanGestureRecognizer
if gr._get_objc_classname() == b'UIPanGestureRecognizer':
v = v.superview()
# old method
# New method
from collections import namedtuple
AudioComponentDesc = namedtuple("AudioComponentDesc", "componentType componentSubType componentManufacturer componentFlags componentFlagsMask")
anyEffect_o = AudioComponentDescription(conver_OSType('aufx'),conver_OSType('dcmp'),conver_OSType('appl'),0,0)
anyEffect_n = AudioComponentDesc(conver_OSType('aufx'),conver_OSType('dcmp'),conver_OSType('appl'),0,0)
# using old method call this function will error,new method it's ok.
availableEffects = manager.componentsMatchingDescription_(anyEffect_n)
# but objc function return it's all fail.
# if using this will ok
@wolf71 , great. The call to super is a Python 3 construct. But it's nice, because it's generic. It just calls the base class without having to refer to it absolutely. In the Python 2 version, you can see calling ui.View.init() by name. It may seem like a small difference, but it really can make life a lot easier if you chop,and change your code object model. I am just thinking about small things here. But on a medium to large project I am sure it can have a profound impact. I can only speculate as I have never done a large project in Python.
My comments above are about when you are inheriting from just one base class. You have to think a little harder(aka, have more understanding) if your are inheriting from multiple base classes (multiple inheritance).
The code you copied this from was in the context of another Object, like perhaps the application's main delegate object, etc. in your case, just thing of it as a place to store your audioengine,.. global is probably fine, depending on what you are doing.
(in real objc, while blocks do have a hidden self parameter, I don't think you can normally access it without introspection... )
your problem seems to be you have not created your AVAudioEngine or AVAudioPlayerNode.
Your code is using those as globals, which is fine here, but those globals better exist!
@wolf71 In this case you need to pass both arguments using byref. The first argument (buffer) is a pointer-to-pointer-to-char, and aabuf is a pointer-to-char, so you need to use byref to make it a pointer-to-pointer. Same with the next one - len needs to be a pointer-to-long, and aalen is a long, so you need to put it through byref to make it a pointer.
@robertiii, seems to be an Apple-defined limit, that may be driven by Bluetooth LE limits. It is now hard to find concrete current information in Apple docs, but I wanted to make that limit visible so that you get warned before embarking on an ambitious project targeting hundreds of peers in one session.