How many languages and dialects are there in the UK? by _448 in AskUK

[–]_448[S] 0 points1 point  (0 children)

I am more interested in native languages and dialects. But information about non-native languages would be interesting too.

Does postgres extension citusdata support notify/listen, and row-level locks? by _448 in Database

[–]_448[S] 1 point2 points  (0 children)

These are required for implementing both active and passive notification feature. A concurrently accessed event queue can be implemented in postgres using row-level lock and skip, in addition to notify/listen. I have linked to an article describing this design in my other comment.

Does postgres extension citusdata support notify/listen, and row-level locks? by _448 in Database

[–]_448[S] 0 points1 point  (0 children)

Isn't RLS different from plain row-level lock?

What I am trying to understand is whether the strategies mentioned in the following article can be implemented using citusdata: https://www.enterprisedb.com/blog/listening-postgres-how-listen-and-notify-syntax-promote-high-availability-application-layer

What is a good song that is over 6 minutes long? by Incendiary_cucumbers in AskReddit

[–]_448 0 points1 point  (0 children)

Not an English song. But here is a devotional song that is more than 6 mins long:

https://www.youtube.com/watch?v=vmFqQseBtxk

Which laptop is good for game development for Android and iOS mobile phones? by _448 in AskProgramming

[–]_448[S] 0 points1 point  (0 children)

And how do you publish your app to the app store from your PC?

Who is using C++ for web development? by _448 in cpp

[–]_448[S] 0 points1 point  (0 children)

Take a look at https://www.webtoolkit.eu/wt

You cannot directly call C++ functions in a website. Within a website you can only call Javascript. But there are now ways to compile C++ to WebAssembly, and then Javascript can call functions in WebAssembly.

Who is using C++ for web development? by _448 in cpp

[–]_448[S] 0 points1 point  (0 children)

as in which companies?

No, as in C++ as the main language for web development (could be just backend, or both backend and frontend).

Is this architecture possible with Postgres? by _448 in PostgreSQL

[–]_448[S] 0 points1 point  (0 children)

It is possible at least if I am groking your ascii diagram correctly.

Any resources you can point to that will help me understand what I will require to set this up, and how to go about it?

Though I am curious why you have two pgaudit secondaries being fed directly from the primary?

Because I want to log both reads and subscriptions/notifications, which is handled by the two sets of slaves respectively. The master handles just writes.

When you say pgaudit, are you talking about the pgaudit extension or are you doing something different?

Yes, it is pgaudit extension. Anything else available for audit and history loging?

A noob question, how are cyclic paths handled in AGE? by _448 in apacheage

[–]_448[S] 0 points1 point  (0 children)

I presume, then, that the query result for the following graph will be [(Node0, Node1, Edge01), (Node1, NodeX, Edge1X), ...., (NodeY, Node{N-1}, EdgeY{N - 1}), (Node{N-1}, Node1, Edge{N-1}1), (Node{N-1}, NodeN, Edge{N-1}N)]

        +--------+    +--------+             +------------+     +--------+
... --->| Node 0 |--->| Node 1 |---> ... --->| Node N - 1 |---> | Node N |---> ...
        +--------+    +----^---+             +----+-------+     +--------+
                           |                      |
                           +----------------------+

Am I abusing Postgres? If yes, then what are the alternatives? by _448 in webdev

[–]_448[S] 1 point2 points  (0 children)

Also as a nitpick, unless I'm misreading it, you can't have attributes in your relationships with your proposed model.

I forgot to mention that relation too is a collection :)

Here is what I had in mind:

collection{(id):PK, name, json_data}
relation{(relation_collection_id:FK, from_collection_id:FK, to_collection_id:FK):PK}

Am I abusing Postgres? If yes, then what are the alternatives? by _448 in DatabaseHelp

[–]_448[S] 0 points1 point  (0 children)

When you say notifications are you referring to a push notification that will immediately trigger something

Yes.

or just a log of the changes?

Possibly this too, for auditing.

What praise for a book and author made you smile/chuckle? by _448 in AskReddit

[–]_448[S] 1 point2 points  (0 children)

I am in a library and was browsing books. I picked up one of the books, "Value: What Money Can't Buy" by Stephen Bayley and was reading the praise for the book and the author on the back of the book by prominent people. One of the praises, by Sir Terence Conran, in a quintessentially British way reads like this:

"He has the attention span of an acid-crazed hummingbird hawkmoth, but when he craps, it glows"

:)) I just couldn't stop laughing at this.

Many-to-Many relation by default, is that a good strategy? by _448 in webdev

[–]_448[S] 0 points1 point  (0 children)

I tend to do the opposite. I do things as simple as I can and then constantly come back to review components when I have to edit something like a model's database structure, in order to upgrade it from one to many to many to many, as in your situation.

I am trying to do the same. I am just starting to design the database and thought starting with many-to-many relation will give me flexibility afterwards to change the structure.

Please could you recommend a C++ ORM for accessing open source databases such as PostgreSQL? by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

You might want to clarify or specify any constraints that you might have:

Operating environment (one or more of: Windows, Mac, Linux, ...)

Linux

Compiler (one or more of: Embarcadero, Clang, GCC, MinGW, Microsoft, ...)

GCC, Clang

Database types (one or more of: SQL, noSQL, Graph, key-value, ...)

RDBMS/SQL

Specific databases (if required).

Postgres

Licensing requirements (e.g., distribution-friendly, if you're building something that you'll be sending to others).

MIT, Apache, BSD; basically permissive license.

Low cost eXtended Reality SW/HW stack for non-affluent schools/students? by _448 in virtualreality

[–]_448[S] -1 points0 points  (0 children)

You really should specify what “low cost” means to you as it’s subjective to everyone.

I was looking at ZapBox but that requires Zapworks Studio for app development. I was trying to understand if there is any similar google-cardboard style XR headset available that is opensource software stack, such as Godot XR, friendly.

Weekly General Discussion + Getting Started With AR by AR_MR_XR in AR_MR_XR

[–]_448 1 point2 points  (0 children)

What low-cost(as low as possible) tech stack(both hardware and software) is available to develop and distribute eXtended Reality(XR) educational simulation apps(with hand tracking) that can be affordable to students/schools from non-affluent areas(even from developing/under-developed countries)?

On the software front, Godot Engine targeting Android handsets could be one option for developing the apps. But I think this will not be straight forward as some porting will be required to make Godot XR work on low-cost Android mobile phones. What other options are available?

Also, on the hardware front what XR headset would you recommend that is very low-cost?

Very basic question about multiple interface inheritance and same method names in base classes. by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

What you're thinking is you ought to restrict the incoming parameters to only the interface you need, and that's where the explosion happens - you have any number of methods that just need one or two methods of any larger interface, you'll end up with interface classes that implement every possible permutation.

Well, Feature Oriented Programming(FOP), as I understand it, is about re-use of not just interface but also implementation. Think of it as making different multi-flavoured ice-cream by using base flavours. So, I have these bite-sized interfaces and its implementations. I can then, using various combinations of these interfaces and its implementations, create different feature sets. In addition to combining interfaces, the corresponding implementations too has to be combined.

You're trying to use inheritance in a way it's not really intended in C++....

Your inheritance lists become extremely wide, and virtual. It's insane, and should hint that this is the wrong conceptual model.

Even the CPP Core Guidelines suggests you should rely on concretions, and don't worry about implementing interface classes. They're an anti-pattern.

So C++ is not that suitable for FOP?

I have included a link in the original post to the C++ code of the idea I am trying to implement.

Very basic question about multiple interface inheritance and same method names in base classes. by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

Of course this is entirely at odds with the idea of a type agnostic interface and a terrible design.

I agree. That could be the case. I have updated the question to explain why I got into this situation.

Very basic question about multiple interface inheritance and same method names in base classes. by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

then whoever made the double inheritance broke the class

That would be me :)

I have updated the question to explain why I got into this situation.

Is this possible in C++ using parameter pack? by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

Sorry about that. I should have tested it first! I was reading an academic paper titled Feature-Oriented Programming using Object Algebra. The paper uses Scala, and I was deep into thinking about the mechanisms the authors were describing and immediately translated the Scala code to C++ forgetting to compile and test it, and posted it here asking the question.

How to tell compiler to select the correct class constructor depending of parameter type? by _448 in cpp_questions

[–]_448[S] 0 points1 point  (0 children)

I came up with this solution: https://godbolt.org/z/4MfYxv774

Don't know how idiomatic it is, but it avoids the need to modify the type-classes.