Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Abbas Gadhia
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Edit | Post #294397 |
Post edited: clarified the implementation details |
— | about 1 year ago |
| Edit | Post #294397 | Initial revision | — | about 1 year ago |
| Question | — |
Protobuf C++ Arena - Memory Clean Slow I have a fairly large C++ application that is reading Protobuf messages from the network using the Google Cloud CPP BigQuery API. If the data is too much, the application starts to use up a lot of memory very very fast and after some time, the machine becomes unresponsive. In my implementa... (more) |
— | about 1 year ago |
| Edit | Post #294074 |
Post edited: |
— | over 1 year ago |
| Comment | Post #294076 |
Thanks for pointing them out. I've added the the limitations into the answer (more) |
— | over 1 year ago |
| Edit | Post #294076 |
Post edited: |
— | over 1 year ago |
| Edit | Post #294076 |
Post edited: |
— | over 1 year ago |
| Edit | Post #294076 | Initial revision | — | over 1 year ago |
| Answer | — |
A: Convert Shaded Java class to its original Casting the shaded class to its original is not possible, even though they are exactly similar. One will hit classCastExceptions while doing so The simplest and easiest way is to serialize the shaded class is, using a serializer that doesn't encode the original class information in the seriali... (more) |
— | over 1 year ago |
| Edit | Post #294074 | Initial revision | — | over 1 year ago |
| Question | — |
Convert Shaded Java class to its original How do I cast or convert a shadow/shaded class (a package relocated class which is generally generated via tools like gradle/maven) to its original class in Java? The assumption is that both the shaded version and the original version are simultaneously available on the classpath (more) |
— | over 1 year ago |
| Edit | Post #293470 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293471 | Initial revision | — | over 1 year ago |
| Answer | — |
A: Proguard induced : No enum constants for class while deserializing using jackson If you have enum classes in the code that is being obfuscated, you need to tell proguard to skip obfuscating the `values` and `valueOf` method in your enum class, since it uses reflection internally to fetch the enum constants of an enum. This is how the rule would look if you are using the gr... (more) |
— | over 1 year ago |
| Edit | Post #293470 | Initial revision | — | over 1 year ago |
| Question | — |
Proguard induced : No enum constants for class while deserializing using jackson I'm getting the following exception with deserializing a json file using jackson. Any tips on how to fix it? ```java com.fasterxml.jackson.databind.JsonMappingException: No enum constants for class com.dp.h (through reference chain: com.dp.L["properties"]->com.dp.model.K["traits"]->com.dp.m... (more) |
— | over 1 year ago |
| Edit | Post #292686 | Initial revision | — | almost 2 years ago |
| Question | — |
Question/Answer views on Codidact Where can I see the number of views for a specific question/answer? It motivates if i know more people are seeing the Question or Answer (more) |
— | almost 2 years ago |
| Edit | Post #292670 | Initial revision | — | almost 2 years ago |
| Answer | — |
A: Using sqlline, how do you filter/find tables using the !tables command From the source code it seems the following is possible. !tables !tables !tables () So for the examples quoted above, this is how it would be done 1. `!tables "s1" "%"` 2. `!tables "t0%"` 3. `!tables "%20" "x%"` 4. `!tables "s19" "%" "TABLE"` 5. `!tables "%" "%" "V... (more) |
— | almost 2 years ago |
| Edit | Post #292669 | Initial revision | — | almost 2 years ago |
| Question | — |
Using sqlline, how do you filter/find tables using the !tables command I need to filter/find and list tables using the sqlline `!tables` command. For example, these are the type of queries i wish to fire 1. Find out all the tables in a particular schema `s1` 2. All tables that start with t0 3. All tables whose schema name ends with 20 and whose table name st... (more) |
— | almost 2 years ago |
| Edit | Post #287375 | Initial revision | — | almost 4 years ago |
| Answer | — |
A: How do you insert a struct into a hive table column using HiveRunner? Figured it out. It should be a List. The data type of the list should be object, but the individual objects in the list should be compatible with the data type of the fields of the struct. For ex. if the struct is struct Then the list should be like this ```java List struct = Arrays.asL... (more) |
— | almost 4 years ago |
| Edit | Post #287374 |
Post edited: |
— | almost 4 years ago |
| Edit | Post #287374 | Initial revision | — | almost 4 years ago |
| Question | — |
How do you insert a struct into a hive table column using HiveRunner? If my struct column has the data type of struct then what should be the equivalent java object that should be inserted into that struct column? I'm trying the following code using HiveRunner ```java Object val = ? // what should be this object? shell .insertInto("sourcedb", tableName) ... (more) |
— | almost 4 years ago |
