Aurelia bug with bindable in combination with class decorator? - decorator

I've either encountered a bug in Aurelia or failed to create a class decorator. Since it requires a fair amount of code to describe and re-create I've created a
gist.run
with further information and instructions.
Any help is greatly appreciated!

Related

Blazored/LocalStorage working in a service class?

Is there an example to Inject the Blazored/LocalStorage in a Singleton Service Class? Or how can I get an instance of the Blazored/LocalStorage within the Service Class as needed? (So not injected but on-demand)
I had an example of the code I wrote, but was asked to reduce the detail in the question so making it a more broad question.
I am new to coding in Blazor, so apologize if I didn't provide the right information, or this is a stupid question and I am guessing there is something simple I am missing.
Any help would be greatly Appreciated.
Ok. So I had to do a couple of things to make this work, but seems to be working.
For some reason I had to close my VS and reopen because all my breakpoints were being captured by the browser instead of VS.
I modified the code to have:
private IlocalStorageService localStorage;
public AppSettingsService(IlocalstorageService inLocalStorage)
{ localStorage = inLocalStorage; }
In my progam.cs I have
builder.Services.AddBlazoredLocalStorage();
builder.Services.AddScoped<IAppSettingsService, AppSettingsService>();
FYI.. AppSettingsService is a new service I created that each component will Inject so that component can get to the local storage, and will use this AppSettingsService to raise events any time a value changes from another component so all other components can update their state.
As I continue to learn, apologize if I wasted anyone's time.
Thanks

What does #redux-saga/simple-saga-monitor do?

In the redux-saga real-word example in store/configureStore.dev.js, a package named #redux-saga/simple-saga-monitor is included and added as saga middleware. Unfortunately I cannot find any information on what exactly this package does. Can someone shed some light on this?
I was wonder about the same and not much info has been shared online but looking at the source code here, it looks like a simple wrapper to log saga activities to the window or react native app console

Trying to use a TreeMap in a subclass entitiy

I have found help for subclassing of a mapped superclass, and I have found help on how to map a TreeMap. However, I can not find anything that covers using a TreeMap in a subclass at all. Here is the situation: I am adding a function to a long-existing application. That application has mapped entities, a certain set of which, form a hierarchy. There is a , for instance that establishes the base class. Then there are many many MANY subclasses that use the elements to map the individual subclasses. The subclasses all use elements to reference the additional table that holds the attributes of the subclass. This has worked for several years and life has seemingly been good.
Now along comes my work effort and I need to use a TreeMap in my new subclass entity (extending the same base class as all of the others) so the first thing that I do is attempt to map it the same way other subclasses do, with a inside a .
Making the story short, I got an error when I started the app and Hibernate began mapping. Researching this error led me to review the DTD for hibernate mapping files and, guess what? According to my interpretation, one can not configure a Map of any kind inside a .
That same research exposed me to the which CAN contain a Map. So, off I go configuring a inside the base class mapping.
When I did this, I got bizarre errors referencing symbols that I can't even find in the code, in mappings.... anywhere! More research and I find a reference in the Hibernate reference manual, Chapter 9, that says that Hibernate does not support mixing of and elements. So that can't be done either.
My question is: is there a solution that I have missed along the way? From the sound of things it seems that you can NOT configure a map in a subclass if you are using because the inside it won't take a map.... and, while a Map can be configured in a , I doubt that I can gather up much support around here for wading through the current mapping files and re-mapping ALL entities as entities.
Has anybody got any ideas? If I am not looking at this right, believe me, I am willing to accept that and learn!

QNetworkAccessManager::setProxy example

may someone give an example of using properly QNetworkAccessManager::setProxy, i meant i primaly a java developer mostly using HttpClient all the time.
Thx!
Ricardo, in Qt source code directory go to "examples/declarative/cppextensions/networkaccessmanagerfactory" or go to http://qt.gitorious.org/qt/qt/trees/4.7/examples/declarative/cppextensions/networkaccessmanagerfactory. There is nothing complicated in that class method so you should be able to use it.

What Causes Flash Error #2012 (Can't instantiate class)?

I am new to ActionScript 3 and have run into a problem:
Using Flex Builder 3, I have a created a project with a few simple classes. If code in class A instantiates an object of class B (class B is in its own source file) then the code compiles fine, but I get the following run time error:
ArgumentError: Error #2012: B class cannot be instantiated.
Can someone explain what I'm doing wrong?
Update: Please see my own answer below (I could not vote it to the top since I'm not yet registered).
I finally realized what was wrong: Class B was subclassing from DisplayObject which I now see is an abstract class. Class B did not implement the abstract members, thus the error. I'll probably change class B to subclass from Sprite instead.
This seems like a problem that should have been caught by the compiler. Does the fact that it wasn't mean implementation of abstract members can wait until run time? Even if so, it would be nice to at least get a compiler warning.
Thanks for everyone's answers, hopefully they will help others who run into error 2012.
This usually means that the class information was not included in the SWF.
Make sure that you are importing the class, and that there is a reference to it somewhere (so the compiler will included it in the SWF).
btw, here are the runtime error codes:
http://livedocs.adobe.com/flex/201/langref/runtimeErrors.html
(not much useful info though)
mike chambers
mesh#adobe.com
It's worth noting that if you're including classes that someone else built, and they used Flash CS3 and you're using Flex, or vice versa, that the core libraries of each are different and some things are not included in both. Check out the two reference docs to be sure:
CS3: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/
Flex: http://livedocs.adobe.com/flex/2/langref/

Resources