text:
copyDatabase in 2.0.0

In 2.0.0 sqlite.copyDatabase(dbname); -> file not found, in 1.7.1 working

Are you having issues in iOS or android?

Android and iOS

Hmm, I tested 2.01 on both iOS and Android with my sqlite example demo (which copies a database) and it worked fine for me.    I even reset the iOS simulator so that no database files existed anymore.
Can you give me a sample app that doesn't work?

May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: CONSOLE LOG file:///app/sql/sql.js:22:28: ReferenceError: Can't find variable: sqlite3_open_v2
May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: 1   0x9f238 -[TNSRuntime executeModule:]
May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: 2   0x500db main
May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: 3   0x4a70a25 start
May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: 4   0x1
May 25 12:53:40 MacBook-Pro-Reuf HelloCanada[1780]: file:///app/sql/sql.js:232:17: JS ERROR TypeError: null is not an object (evaluating 'dataBase.all')
May 25 12:53:40 MacBook-Pro-Reuf com.apple.CoreSimulator.SimDevice.5B75994F-E476-46D5-8AC9-AE896947D91B.launchd_sim[1309] (UIKitApplication:org.nativescript.HelloCanada[0xb920][1780]): Service exited due to signal: Segmentation fault: 11

    constructor() {

        // sqlite.deleteDatabase(dbname);
        if (!sqlite.exists(dbname)) {
            sqlite.copyDatabase(dbname);
        }

        new sqlite(dbname, function(err, dbConnection) {
            if (err) {
                console.log(err);
            }
            else
            {
                db =  dbConnection;
            }

        });

        this.db = db;
    }

Well based on your error, I would venture you are potentially using an older version of sqlite actually.
I would try:

tns plugin add nativescript-sqlite
tns plugin add nativescript-sqlite

You also have a couple issues in your code; your code should be:
// This uses the sqlite library from the new install...
var sqlite = require('nativescript-sqlite');

function constructor() {
    // We need to copy "this" to some other variable to keep a reference to it inside the sql inner function (so we store it as self, to be used later).
    var self = this;

        // sqlite.deleteDatabase(dbname);
        if (!sqlite.exists(dbname)) {
            sqlite.copyDatabase(dbname);
        }

        new sqlite(dbname, function(err, dbConnection) {
            if (err) {
                console.log(err);
            }
            else
            {
                // assign "this.db" to be our connection
                self.db =  dbConnection;
            }
        });

     // DO NOT assign this.db here; as you have a high likely hood of assigning it null as the sqlite opening connection is ASYNC meaning it can run after your assignment line of code
    }

I found the problem. While developing a project and if a folder have a "space" there is a mistake which I described above. Thank you for your response.

I'm also having a similar Can't find variable: sqlite3_open_v2 error.

I'm using SQLite version 3.8.10.2 2015-05-20 18:17:19
I installed with tns plugin add nativescript-sqlite.  I'm using verision 1.0.8.
TNS is version 2.0.1.

My code is super simple, just

var sqlite = require("nativescript-sqlite");
var db;

new sqlite("test.db", function(err, dbConnection) {
    if (err) {
        console.log(err);
        return;
    }
    db = dbConnection;
});

@NathanaelA  - Any thoughts?

Yes, actually I do.   Can you type "pod --version" and tell me which version you are using?

@NathanaelA  - 'pov --version' shows 1.0.1

Interesting same issue, I had this same issue occur with a friend of mine this week.   The solution was to downgrade cocoapods to v0.39 and install xcproj.
gem install cocoapods -v 0.39.0
gem install cocoapods-core -v 0.39.0
brew install xcproj
Then you need to reinstall the ios platform so do a:
tns platform remove ios
tns platform add ios
And you should be good to go...

@NathanaelA  - Thanks, but no luck with the suggestion above.

@handlebarcreative Sorry I didn't see your response.  Github didn't send me a email.   Have you got this fixed?
If not,

You are sure you followed all those steps?
What error are you seeing?

I'm having similar issues, but so far only on one device. I've tested on a Genymotion emulator where it works fine, a CAT S40 (Android 5.1 - API Level 22) where the application crashes whenever a connection is opened (I have made improvements and will test again when I have access to the device) and a Vodafone Smart Tab 3G running Android 4.4.2 (API Level 19) where the copying doesn't seem to work. Further details about the third device follows:
The application runs and I have a few outputs in the various bits of code. When the existence is checked:
if (!sqlite.exists(dbname)) {
            var result = sqlite.copyDatabase(dbname);
        }

It returns true and I see JS: Database copied successfully. in the console (I just check the return value, ie. result). I then proceed to open a connection to the database:
        console.log("Opening database...");
        new sqlite(dbname, function(err, dbConnection) {
            if (err) {
                console.log("DB connection failed!");
                console.log("DB connection error: " + err);
            }
            else {
                db = dbConnection;
                db.resultType(sqlite.RESULTSASOBJECT);
                console.log("Database opened.");
            }
        });

Which outputs:
JS: Opening database...
D/SQLiteDatabase(15328): 	at com.tns.Runtime.callJSMethodNative(Native Method)
D/SQLiteDatabase(15328): 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
D/SQLiteDatabase(15328): 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
D/SQLiteDatabase(15328): 	at com.tns.Runtime.callJSMethod(Runtime.java:712)
D/SQLiteDatabase(15328): 	at com.tns.Runtime.callJSMethod(Runtime.java:693)
D/SQLiteDatabase(15328): 	at com.tns.Runtime.callJSMethod(Runtime.java:683)
JS: Database opened.

Testing the connection with db.isOpen() returns true, but if I continue and try insert a record, it fails with the following error (Basically just saying the table doesn't exist):
Error: android.database.sqlite.SQLiteException: no such table: Records (code 1): , while compiling: INSERT INTO Records (recordID, fieldOne, fieldTwo, fieldThree, fieldFour, fieldFive) values (?, ?, ?, ?, ?, ?)
JS:     android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
JS:     android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:893)
JS:     android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:504)
JS:     android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
JS:     android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
JS:     android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
JS:     android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1697)
JS:     android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1678)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:712)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:693)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:683)
JS:     com.tns.gen.android.view.View_OnClickListener.onClick(View_OnClickListener.java:11)
JS:     android.view.View.performClick(View.java:4490)
JS:     android.view.View$PerformClick.run(View.java:18815)
JS:     android.os.Handler.handleCallback(Handler.java:808)
JS:     android.os.Handler.dispatchMessage(Handler.java:103)
JS:     android.os.Looper.loop(Looper.java:193)
JS:     android.app.ActivityThread.main(ActivityThread.java:5354)
JS:     java.lang.reflect.Method.invokeNative(Native Method)
JS:     java.lang.reflect.Method.invoke(Method.java:515)
JS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
JS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
JS:     dalvik.system.NativeStart.main(Native Method)
JS: The new record id is:

The exact same build runs on the Genymotion Android 6.0.0 (API Level 23) emulator just fine. I am going to test another device a little later.

I'm also having an issue when calling Sqlite.copyDatabase.
downloadDatabase() {
  let appsFolder = fs.knownFolders.currentApp();
  let databaseName = "myDatabase.db";
  let filePath = fs.path.join(appsFolder.path, databaseName);
  if(!fs.File.exists(filePath)) {
    http.getFile("https://myserver/" + databaseName, filePath).then((result) => {
      Sqlite.copyDatabase(databaseName);
      (new Sqlite(databaseName)).then(db => this.db = db, error => console.log("OPEN DB ERROR", error));
      }, (error) => console.log("Error RETRIEVING DATABASE", error));
   }
}

The following error is thrown when calling the above function:
JS: EXCEPTION: Error: Uncaught (in promise): Error: java.io.FileNotFoundException: app/myDatabase.db
JS:     android.content.res.AssetManager.openAsset(Native Method)
JS:     android.content.res.AssetManager.open(AssetManager.java:313)
JS:     android.content.res.AssetManager.open(AssetManager.java:287)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:712)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:693)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:683)
JS:     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
JS:     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
JS:     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
JS:     android.os.AsyncTask.finish(AsyncTask.java:636)
JS:     android.os.AsyncTask.access$500(AsyncTask.java:177)
JS:     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
...

In my case I don't package the db file in the app folder before deploying, but I download the file to the app directory before calling copyDatabase. I verified that the file exists in the app directory by running:
adb -d shell "run-as org.nativescript.myapp ls /data/data/org.nativescript.myapp/files/app"
app.component.html
app.component.js
app.component.js.map
app.component.ts
app.css
main.js
main.js.map
main.ts
myDatabase.db
package.json
shared
tns_modules

@DewaldDeJager can you do a "adb logcat" to get the full log between the
JS: Opening database...
and
JS: Database opened.
@jeffswitzer -
I think you are also missing part of the log; it does appear to be possibly inside competed callback; but there is no callstack into the sqlite code.  So a adb logcat would be helpful also.
Also as a diagnotistic test I would also add:
console.log("DB: ", databaseName, ", FilePath:", filePath, "Exists:", fs.File.exists(filePath));
After the http get, but before you try and open the sqlite database.

Hi Nathanael,
For the diagnostic console.log after the http.getFile, but before the Sqlite.copyDatabase I get:
JS: DB:  nn_system2.db , FilePath: /data/data/org.nativescript.naturesnotebookmobile/files/app/nn_system2.db Exists: true
Note I've changed the database name and project name since my code post from yesterday, but it seems the file is really there.
And here is the output from adb logcat:
I/ActivityManager(  987): Activity reported stop, but no longer stopping: ActivityRecord{11f093ef u0 org.nativescript.naturesnotebookmobile/com.tns.NativeScriptActivity t5241}
I/LaunchCheckinHandler(  987): Displayed org.nativescript.naturesnotebookmobile/com.tns.NativeScriptActivity,cp,ca,11001
I/ActivityManager(  987): Displayed org.nativescript.naturesnotebookmobile/com.tns.NativeScriptActivity: +10s946ms (total +11s2ms)
D/skia    ( 8724): --- SkImageDecoder::Factory returned null
V/JS      ( 8724): DB:  nn_system2.db , FilePath: /data/data/org.nativescript.naturesnotebookmobile/files/app/nn_system2.db Exists: true
V/JS      ( 8724): EXCEPTION: Error: Uncaught (in promise): Error: java.io.FileNotFoundException: app/nn_system2.db
V/JS      ( 8724):     android.content.res.AssetManager.openAsset(Native Method)
V/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:313)
V/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:287)
V/JS      ( 8724):     com.tns.Runtime.callJSMethodNative(Native Method)
V/JS      ( 8724):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
V/JS      ( 8724):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:712)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:693)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:683)
V/JS      ( 8724):     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
V/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
V/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
V/JS      ( 8724):     android.os.AsyncTask.finish(AsyncTask.java:636)
V/JS      ( 8724):     android.os.AsyncTask.access$500(AsyncTask.java:177)
V/JS      ( 8724):     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
V/JS      ( 8724):     android.os.Handler.dispatchMessage(Handler.java:102)
V/JS      ( 8724):     android.os.Looper.loop(Looper.java:135)
V/JS      ( 8724):     android.app.ActivityThread.main(ActivityThread.java:5343)
V/JS      ( 8724):     java.lang.reflect.Method.invoke(Native Method)
V/JS      ( 8724):     java.lang.reflect.Method.invoke(Method.java:372)
V/JS      ( 8724):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
V/JS      ( 8724):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
V/JS      ( 8724): STACKTRACE:
V/JS      ( 8724): Error: Uncaught (in promise): Error: java.io.FileNotFoundException: app/nn_system2.db
V/JS      ( 8724):     android.content.res.AssetManager.openAsset(Native Method)
V/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:313)
V/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:287)
V/JS      ( 8724):     com.tns.Runtime.callJSMethodNative(Native Method)
V/JS      ( 8724):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
V/JS      ( 8724):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:712)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:693)
V/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:683)
V/JS      ( 8724):     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
V/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
V/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
V/JS      ( 8724):     android.os.AsyncTask.finish(AsyncTask.java:636)
V/JS      ( 8724):     android.os.AsyncTask.access$500(AsyncTask.java:177)
V/JS      ( 8724):     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
V/JS      ( 8724):     android.os.Handler.dispatchMessage(Handler.java:102)
V/JS      ( 8724):     android.os.Looper.loop(Looper.java:135)
V/JS      ( 8724):     android.app.ActivityThread.main(ActivityThread.java:5343)
V/JS      ( 8724):     java.lang.reflect.Method.invoke(Native Method)
V/JS      ( 8724):     java.lang.reflect.Method.invoke(Method.java:372)
V/JS      ( 8724):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
V/JS      ( 8724):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
V/JS      ( 8724):     at resolvePromise (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:496:32)
V/JS      ( 8724):     at /data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:532:18
V/JS      ( 8724):     at ZoneDelegate.invokeTask (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:314:38)
V/JS      ( 8724):     at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:37:41)
V/JS      ( 8724):     at ZoneDelegate.invokeTask (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:313:43)
V/JS      ( 8724):     at Zone.runTask (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:214:48)
V/JS      ( 8724):     at drainMicroTaskQueue (/data/data/org.nativescript.naturesnotebookmobile/files/app/tns_modules/zone.js/dist/zone-node.js:432:36)
E/JS      ( 8724): Unhandled Promise rejection: java.io.FileNotFoundException: app/nn_system2.db
E/JS      ( 8724):     android.content.res.AssetManager.openAsset(Native Method)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:313)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:287)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodNative(Native Method)
E/JS      ( 8724):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:712)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:693)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:683)
E/JS      ( 8724):     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
E/JS      ( 8724):     android.os.AsyncTask.finish(AsyncTask.java:636)
E/JS      ( 8724):     android.os.AsyncTask.access$500(AsyncTask.java:177)
E/JS      ( 8724):     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
E/JS      ( 8724):     android.os.Handler.dispatchMessage(Handler.java:102)
E/JS      ( 8724):     android.os.Looper.loop(Looper.java:135)
E/JS      ( 8724):     android.app.ActivityThread.main(ActivityThread.java:5343)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Native Method)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Method.java:372)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) ; Zone: angular ; Task: Promise.then ; Value: Error: java.io.FileNotFoundException: app/nn_system2.db
E/JS      ( 8724):     android.content.res.AssetManager.openAsset(Native Method)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:313)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:287)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodNative(Native Method)
E/JS      ( 8724):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:712)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:693)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:683)
E/JS      ( 8724):     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
E/JS      ( 8724):     android.os.AsyncTask.finish(AsyncTask.java:636)
E/JS      ( 8724):     android.os.AsyncTask.access$500(AsyncTask.java:177)
E/JS      ( 8724):     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
E/JS      ( 8724):     android.os.Handler.dispatchMessage(Handler.java:102)
E/JS      ( 8724):     android.os.Looper.loop(Looper.java:135)
E/JS      ( 8724):     android.app.ActivityThread.main(ActivityThread.java:5343)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Native Method)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Method.java:372)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
E/JS      ( 8724): Error: Uncaught (in promise): Error: java.io.FileNotFoundException: app/nn_system2.db
E/JS      ( 8724):     android.content.res.AssetManager.openAsset(Native Method)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:313)
E/JS      ( 8724):     android.content.res.AssetManager.open(AssetManager.java:287)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodNative(Native Method)
E/JS      ( 8724):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
E/JS      ( 8724):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:712)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:693)
E/JS      ( 8724):     com.tns.Runtime.callJSMethod(Runtime.java:683)
E/JS      ( 8724):     com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:336)
E/JS      ( 8724):     org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:253)
E/JS      ( 8724):     android.os.AsyncTask.finish(AsyncTask.java:636)
E/JS      ( 8724):     android.os.AsyncTask.access$500(AsyncTask.java:177)
E/JS      ( 8724):     android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
E/JS      ( 8724):     android.os.Handler.dispatchMessage(Handler.java:102)
E/JS      ( 8724):     android.os.Looper.loop(Looper.java:135)
E/JS      ( 8724):     android.app.ActivityThread.main(ActivityThread.java:5343)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Native Method)
E/JS      ( 8724):     java.lang.reflect.Method.invoke(Method.java:372)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/JS      ( 8724):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
I/Auth    ( 2404): [AuthDelegateWrapper] Service intent: Intent {

@NathanaelA: Thanks, that's a pretty helpful command! It looks Here are the important snippet parts of the log:
V/JS      (23467): Opening database...
E/SQLiteLog(23467): (1) near "WITHOUT": syntax error
E/SQLiteLog(23467): (11) database corruption at line 93729 of [00bb9c9ce4]
E/SQLiteLog(23467): (1) near "WITHOUT": syntax error
E/SQLiteLog(23467): (11) database corruption at line 93729 of [00bb9c9ce4]
E/SQLiteLog(23467): (1) near "WITHOUT": syntax error
E/SQLiteLog(23467): (11) database corruption at line 93729 of [00bb9c9ce4]
E/SQLiteLog(23467): (11) malformed database schema (Sales) - near "WITHOUT": syntax error
E/DefaultDatabaseErrorHandler(23467): Corruption reported by sqlite on database: /data/data/com.company.example/databases/appData.sqlite
E/DefaultDatabaseErrorHandler(23467): deleting the database file: /data/data/ccom.company.example/databases/appData.sqlite
D/SQLiteDatabase(23535): beginTransaction()
D/SQLiteDatabase(23535): endTransaction()
D/SQLiteDatabase(23467): Db file is deleted

The WITHOUT part is referring to the WITHOUT ROWID since I'm using a different PK. I created a few other tables in the database with the same options set (Same PK) and they don't seem to be giving any issues.
I've just tried deleting that table (I don't use it as of yet) and now it's giving me the same error but on another table using WITHOUT ROWID. Once again, this is only on this specific device. When I run the exact same build on the Genymotion emulator mentioned in my previous post, I get absolutely no additional output:
07-08 16:50:30.863  1802  1802 V JS      : Opening database...
07-08 16:50:30.892  1802  1802 V JS      : Database opened.

@jeffswitzer - Any chance you can provide me a sample app that behaves this way; Dewald has managed to fix his issue so your the only one still broken...

Since there is no more activity on this since July; I assume you figured out your issue...

I am new to Nativescript and am having the same issue @jeffswitzer.  Here is my debug console output:
DB:  rpg-one.db , FilePath: /data/data/org.nativescript.RPGONE/files/app/rpg-one.db Exists: true (c:\dev\NativeScript\RPG-ONE\app\app.component.js:11:17)
EXCEPTION: Error in :0:0 caused by: java.io.FileNotFoundException: app/rpg-one.db.
Any help would be appreciated.

Is there a size limit on sqlite file when you copy it from pc to device using sqlite.copyDatabase()? I am able to copy a 5MB file but unable to copy a 303MB file. Below is the code snippet:
if(!sqlite.exists(dbname))     {         alert("no db");         sqlite.copyDatabase(dbname);         console.log("copying");     }

authors: AtixD DewaldDeJager NathanaelA TitikshaDaga handlebarcreative jafarkas jeffswitzer

repo: NathanaelA/nativescript-sqlite


text:
chore: update dependencies (TT-1802)

I hovedsak oppdatering av Spring Boot pga. sårbarheter som forårsaker automatisk fjerning fra image registry. Inneholder også andre mindre oppdateringer av kotlin, serialization, springdoc, postgresql og xmlunit.
Forsøkte med oppdatering til Spring Boot v3.4.0 og fasterxml til 2.18.3, begge skaper problemer som kanskje krever mer omskriving, blant annet swagger-problemer og XML/JSON deserialiserings-problemer.

Vi kunne vel slengt Kotlin opp til versjon 2 også. eller?

Vi kunne vel slengt Kotlin opp til versjon 2 også. eller?

Done!

source: gharchive/pull-request

authors: Sindrir fredrikmonsen

repo: NationalLibraryOfNorway/bikube

license_type: permissive

license_source: github-api


text:
Improve handling of form character check.

If a period is in a form it is an error. If any of the other non approved characters are in a form it is a warning.

@drivenflywheel
I made a few changes. I remember we had a discussion about this approach but do not recall what you wanted me to change.

I have lost track of this and not sure where we left off. I do not think there is any more work for me to do.

Closing this due to inactivity. If this form check is still wanted then this PR can be reopened or a new solution can be submitted.

repo: NationalSecurityAgency/emissary


text:
Added DYNAMIC flag to toString for OperandType

Added method to check whether DYNAMIC flag is set for OperandType, and added check to toString

LGTM 👍

Huh?  Why merge the broken whitespace?

authors: alex-bellon garrettgu10 mumbel

repo: NationalSecurityAgency/ghidra


text:
iOS: NavigationButton text

Hello, im using navigation button in action bar with text="Go Back" (for example). When i am routing to page(component) first time navigation button always show default text "Back" and then i go to the next page and then return, navigation button text shows "Go Back". How to fix this bug ? or should i just use custom ActionItem ?
p.s I am using different language for navigation button text

+1

Hi @Nurgunkalol
I tested the scenario with setting up a custom title for the NavigationButton button on iOS, however, was unable to recreate an issue. For your convenience, I am attaching GIF file from the simulator. You should be able to use the NavigationButton element without the need to create a custom ActionItem.
I am attaching sample project, please review it and make the needed changes, which will allow us to recreate the problem.
Also provide some more info about your case and about your environment(CLI, node, tns-core-modules, nativescript-angular versions).

Archive.zip

@Nurgunkalol @yamaoto
I had the same issue. Then I realised that the problem was performing because of the use of *ngIf in the NavigationButton. Removing it, the custom text works.
Maybe it is related to some king of Angular binding issue.
Let me know if it is your case too.

Hi @Nurgunkalol  @yamaoto,
Were you able to resolve the issue or the problem still persists?

closing due to inactivity

I have the same issue.

Hi @uzarsalan,
Could you provide sample project, which could be used for debugging? It would also help if you provide some more info about your environment(CLI, modules, node, npm, nativescript-pro-ui versions).

https://github.com/uzarsalan/nativescript-backButtonText-bug
I've pushed example with this bug.

Hi @uzarsalan,
Thank you for the attached sample project.
I tested it on my side and indeed the title for the NavigationButton will not be changed on the first navigation on iOS.
This issue seems to not be related to the Angular and will move it in the NativeScript modules repository. For further info please keep track on the issue.
Archive.zip

This issue was moved to NativeScript/NativeScript#5169

source: gharchive/issue

authors: Nurgunkalol smarza tsonevn uzarsalan yamaoto

repo: NativeScript/nativescript-angular


text:
Cannot read property 'FacebookSdk' of undefined

Hi,
I'm trying to test my app with the integrated Facebook login. I've managed to successfully run the Facebook login on iOS. But when trying it out on Android, I get this response when launching the application.
Cannot read property 'FacebookSdk' of undefined
Did I've missed anything on the setup?
Thanks!

Hi @bonlemuel ,
We cannot reproduce the issue on our side. Have you checked the demo apps in this repository? They might help you structure your code correctly. If this doesn't help, can you send us an example app as a .zip where the problem can be reproduced? Also it will help a lot if you tell us:

what version of NativeScript you're using
what version of the plugin you're using
are you testing on emulator or device
what Android version / API level you are using

Best regards,
Veselina

Closing due to inactivity

I have the same problem when trying to run the application once the 'app.module.ts' file is configured, the execution fails and the message is TypeError: Can not read property 'FacebookSdk' of undefined, after searching in several forums the solution was to add the compile line 'com.facebook.android:facebook-android-sdk:4.+' to the app.gradle file

authors: NickIliev bonlemuel odparraj radeva

repo: NativeScript/nativescript-facebook


text:
Slow starting app

Hi,
I'm sure it was discussed before, more generally maybe, but what can I do to improve start time for the app?
I am running on Nexus 5X with Android N and the app starts in 7.5s, which is quite big.
I've built in release, but with no improvement? As far as I've read, it is more an Angular2 issue than a native script one, but the problem still exists.
Do you have any advice regarding improving performance? Divide app in more modules that are loaded in time? Build Angular in production (maybe this is already done, although the ng2 forum say that it should improve performance greatly and it's not visible), precompile some bindings, upgrade to latest Angular RC, etc.
Thanks,
George

@georgeonofrei 7.5s is indeed a lot of time. Is it the very first start (the one after install) or any app start?

@georgeonofrei also are you using webpack to bundle the files?

Webpack is your friend here. However I have a lot of trouble making it work, especially when using plugins. Did you try --bundle ?

Did not try anything but: tns build release. I was expecting this command to do the minimizing and all the necessary performance improvements.
So I should try: tns build android --bundle --release ... ?
I have this delay every time I start the app after closing it entirely, not in background.

@georgeonofrei Could you please also try the snapshot approach? https://github.com/NativeScript/android-snapshot. It should bring times of improvement, the only trade-off is slightly increased package size.

Got this odd error:
Required heap snapshot package is not installed. Installing "nativescript-angular-snapshot@0.5.0-4.7.80".
Could not find package "nativescript-angular-snapshot@0.5.0-4.7.80" in the registry.
You can install it manually or remove the "nativescript-dev-android-snapshot" plugin and continue building without heap snapshots.
nativescript-angular-snapshot has the following versions available:
'0.1.8-4.7.80',
'0.2.0-4.7.80',
'0.3.0-4.7.80',
'0.3.1-4.7.80',
'1.0.0-4.7.80'
Any ideas?

some more info, in the nativescript-dev-angular-snapshot README it's writte:

Example: If you have tns-core-modules@2.0.1 and tns-android@2.1 installed (which comes with V8 4.7.80), the android-snapshot plugin will search for and download the tns-core-modules-snapshot@2.0.1-4.7.80 package (if not already manually installed).

So i have nativescript-angular 0.5.0, which leads to npm trying to install that 0.5.0-4.7.80. Is it possible to have a the nativescript-angular-snapshot for 0.5.0?

So I've updated to v 1.0.0 and it builds, but had an issue with starting the app. Will keep you ppsted

I've updated to v1.0.0 and without the snapshot it works. With this build, first ever load was registered at 9.5s and subsequent loads at 6.5s consistently.
This is my packages.json for v1.0.0:

"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
"@angular/router": "3.0.0-rc.3",
"email-validator": "1.0.4",
"everlive-sdk": "1.7.1",
"nativescript-angular": "^1.0.0",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-social-share": "1.3.0",
"nativescript-unit-test-runner": "^0.3.3",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"tns-core-modules": "2.2.1",
"zone.js": "0.6.21"
},
"devDependencies": {
"babel-traverse": "6.8.0",
"babel-types": "6.8.1",
"babylon": "6.8.0",
"codelyzer": "0.0.28",
"filewalker": "0.1.2",
"jasmine-core": "^2.4.1",
"karma": "^1.2.0",
"karma-jasmine": "^1.0.2",
"karma-nativescript-launcher": "^0.4.0",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.2",
"tslint": "^3.14.0",
"typescript": "^1.8.10"
}

I will try with the snapshot and see what happens. Hopefully it start this time.

Can't get the sample groceries to work with android snapshot.
Any other directions?

@georgeonofrei I will have a look at it tomorrow. Meanwhile any logs or error messages would be helpful.

The app does not report any errors on screen, but the OS just reports: Application stopped working.

@georgeonofrei It seems that the current snapshot binaries are not updated with the latest Angular bits. We will update as soon as possible (ping @jasssonpet). In the mean time you may try the WebPack option (bundling the JS sources together):
http://docs.nativescript.org/tooling/bundling-with-webpack

I've tried the webpack direction, but with the default configuration the app is not starting. Same OS report: App stopped working. I'll follow the nativescript webpack forum for some info.
On a side note, the size of the apk dropped from 32 MB to 16 MB, so that's encouraging. If it would start, I think the app load would be quite good. Plus there is the lead to bundling htmls.

@georgeonofrei Here are my findings. Currently the project in master branch has some incompatibility issues with our everlive-sdk plugin. For the moment I would suggest to use the tip of angular-end branch.
You can try --bundle option and see if that helps with the start time.
git clone git@github.com:NativeScript/sample-Groceries.git
cd sample-Groceries
git checkout angular-end
tns install webpack
tns run android --bundle

Additionally, we will update our snapshot module so it can be used with 2.3.0 release.

@slavchev I've followed your indications and the app works now. I am constantly getting 5.5s at launch and the apk size at 16 MB.
Quite nice improvement from the 7.5s.
Any other worthy directions to pursue? Is there any great improvement with the html bundling?

@georgeonofrei Glad to hear you have a progress. Once we publish our updated snapshot module I think you can expect much faster startup time (see this repo for reference https://github.com/NativeScript/android-snapshot)

@slavchev any timeline on the snapshot fixes?

Hey @georgeonofrei, I'm looking into it and am expecting that we can make a fix and release it in the next few days.

I think I've made the required changes here: https://github.com/NativeScript/android-snapshot/commit/9175c27ed17186fb637a233b7427d02ebb95f33d
We are going to publish the new package when our automated tests pass.

In the mean time you can install this package: nativescript-angular-snapshot-1.0.0-4.7.80.zip
For example:
tns create MyApp --ng && cd MyApp
tns install android-snapshot
npm i "~/Downloads/nativescript-angular-snapshot-1.0.0-4.7.80.zip"
# run in release or export TNS_ANDROID_SNAPSHOT=1

I'm running the app with snapshot and have a startup time on my Galaxy Note 3 of 8 seconds.
I'm unsure if I should start coding a "real" app, if it likely has the same poor performance.

@muena - are you using Angular? A quite common mistake for slow load time, especially in Angular applications is if you declare the router and the components in the main page. This causes all the pages declared in the router to be initialized.
Please let us know and we will take a look at the problem.

@valentinstoychev - Thank you for the fast answer!
Yes, I'm using Angular. I have started with the angular-start branch and followed the tuturial. The last step that I have finished was to add the ability to add new items to the list.
Do you mean that it causes poor performance if the startup component contains the ""?
In my opinion it wouldn't be very convenient for users to add a useless startup component in front of the real app.

Yes - if you have more pages in the app you need to use the lazy loading feature of the router. Please check this blog post - https://vsavkin.com/angular-router-preloading-modules-ba3c75e424cb#.7p756m230

OK, thank you!
For the future: Is it possible to include this in the sample app and the tutorial? I think that many new users are deterred by the slow startup of their first sample app.

@muena Lazy loading is now included in this sample, and we have webpack integration in the works 😄
I’m going to close this issue as we have a few other issues logged to improve the performance of this sample, such as https://github.com/NativeScript/sample-Groceries/issues/213.
If you have any other suggestions please feel free to pass them along. The feedback in this thread has been great.

authors: atanasovg georgeonofrei jasssonpet jlooper muena slavchev tjvantoll valentinstoychev

repo: NativeScript/sample-Groceries

license_source: bigquery


text:
window is transparent, even if set to false

after upgrading from 0.8 to 0.91, I can now see other windows in the background if I am displaying a texture with semi-transparent pixels.
I have tried adding .transparent(false) to my WindowConfig, but this does not change anything.
This is a window displaying a texture on top of this webpage:

I am using
draw.image(texture)
.blend_mode(BlendMode::NORMAL);

(This is on Linux/popOS)

Having same problem

I am talking with the people from glutin to see what will be a good approach to fix this. Meanwhile... I think that clearing the windows with a solid color when the frame starts will fix the issue. (I hope so).
fn draw(gfx. &mut Graphics) {
    let mut draw = gfx.create_draw();
    draw.clear(Color::BLACK);
    // you can keep using here this draw instance to draw your stuff if you want
    gfx.render(&draw);

    // or maybe you want to do it in 2 passes, so after clearing the windows you can do your stuff here
    // 2 passes can work fine for an app like oculante, 1 pass is better for games to avoid extra draw calls
}

Thank you so much!

Anytime! Sorry for the inconveniences. 0.9.2 will be out today probably.

authors: LedinecMing Nazariglez woelper

repo: Nazariglez/notan


text:
Create compute daemon's version from git-version-gen

Give the compute daemon a version id similar to the one use for the container image, and let the daemon report its version when requested.

Output from my build:
# ./nnf-dm version
Version 0.0.0.171-3cb3

$ ./git-version-gen
0.0.0.171-3cb3

Ok, this is ready for reviewers.

repo: NearNodeFlash/nnf-dm


text:
Check all divisions, added error field in response

Fixes #13

Waiting for confirmation from unraid forums.

repo: NebN/unraid-simple-monitoring-api

license: MIT


text:
Help

Can someone update all the weeks answers  , please?

I believe solutions for all weeks have been uploaded here .
If any query is there ,explore the repository once
Sometimes IITM replaces graded assignments with practice assignments hence check both

repo: NebulaTris/pdsa-iitm


text:
Repo for frontend ?

I was trying to find the frontend repo for this project. Unfortunately couldn't find from the documentation

Haven't worked on the frontend part yet but looking for collaborators


text:
🛑 Becpl Angular UI is down

In 91eb0ad, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in ff561d8 after 7 minutes.

repo: NehalDamania/becpl-uptime


text:
🛑 Becpl Angular UI is down

In e788610, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 759a696 after 6 minutes.


text:
🛑 Becpl Angular UI is down

In e14c8f1, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in f0b61dd after 5 minutes.


text:
🛑 Becpl Angular UI is down

In 48b6e89, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in e448a2e after 10 minutes.


text:
🛑 Becpl Angular UI is down

In 2f51269, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in ee812b3 after 19 minutes.


text:
Discussion: (How) should we validate blockchain at startup?

#144 has demonstrated that it is possible for the blockchain to become invalid (with a different genesis block) and yet neptune-core can be restarted without detecting any problem.
I was curious why this is, so I read through the initialize() fn carefully and found that it doesn't do any validations of the blocks on-disk.  Rather, it simply instantiates ArchivalState and trusts it.
So then, the question in my mind becomes how should we go about validating blocks, as quickly as possible?   I found this description of how bitcoin-core does it:

I have benchmarked the client's startup process. Most of the time is spent validating the database to ensure the client has a sensible view of the hash chain.
It is "fast verified" up to the most recent checkpoint and then "slow verified" to the current block. Fast verification entails checking only that the header is valid. Slow verification is a much more complete verification that can only be done at about 20 blocks per second on hardware like yours. (Upgrading the client will help, since newer version of the client will have more recent checkpoints.)
If you passed the -rescan option, the client will check every transaction in every block to see if it relates to any account in your wallet. That will add some time to the client's startup time.
When you run the Bitcoin client for the very first time, it will take several hours to sync up to the network. The downside of a decentralized system is that you cannot trust anything and must check everything yourself. This literally requires you to fully verify every Bitcoin transaction that has ever taken place. I've seen that take 9 hours on Pentium 4 class computers with 100Mbps Internet connections. (Though I think it should be a bit faster now, thanks to bugfixes in the client.)

note: That comment is quite old so some details may have changed, but I think its still generally correct.
Now if I understand correctly we may be able to verify that the tip is valid given only the genesis block.  eg, a light-state node.  So that's pretty good, and that validation would have caught the #144 issue.   However, it would not detect if an intermediate block has an invalid header.   For that, I believe we must run through all the headers.   Also, it seems there  should be a mode/command to rescan and verify all the block-body as well.
So I can see three validation modes for an archival node:

validate tip only
validate headers of all blocks (possibly using checkpoints)
validate header+body of all blocks

So what have I missed or gotten wrong?   What is the least validation we can perform to be certain we are operating with correct data?   (or at least as certain as bitcoin-core is?)

replying here to this comment in #144.

I disagree that we should be detecting the problem. The client assumes that the database and disk content is correct. The policy is that if it's not correct, it doesn't get stored.

trust, but verify.     not:  trust, and hope for the best.
Even if it was stored correctly, it could've been modified in the meantime, perhaps by a malicious program.  And the startup validation is also a double-check that was stored correctly.
I'm not saying the validation must be implemented right now necessarily, but i do believe it will be important/necessary eventually for people to have trust in the system's soundness.

Also, with recursion, we actually get a full check of the entire blockchain state by just verifying the last proof. So if you would want to protect your view of the blockchain against these freak bit-flipping occurrences, it should be enough to verify the proof of the last block and then verify that that matches your mutator-set accumulator and whatever else block information may be relevant. There might be parts of the archival state (individual nodes in MMRs) that are not covered by these checks, but for this integrity, a leveldb checksum should suffice.
TL;DR: With recursion (checking proof of tip block on init) and leveldb checksums, all relevant cryptographic data should be verified. There could still be a bit flipped in a stored block but that would only be relevant when the block was shared with other archival nodes, which would then reject the shared block, as the block's proof would be invalid.

authors: Sword-Smith dan-da

repo: Neptune-Crypto/neptune-core


text:
Version 4

Version 4 of our robot code.

all done for ilt


text:
Read/write replay buffer from filesystem

Is there an option in Coach to read/write a replay buffer from/to filesystem?

Reading a replay buffer from file:
https://github.com/NervanaSystems/coach/blob/5d4b9c73998afe4928e49ee71f3a78aa81ca9a6f/rl_coach/memories/episodic/episodic_experience_replay.py#L406

Closing this issue for now.
If there is a need for additional support on top of the above, feel free to reopen and add more details on the requested functionality.

authors: galnov mattiasmar

repo: NervanaSystems/coach


text:
Sending Text Commands

Is your feature request related to a problem? Please describe.
The ability to send text rather than using the TV keyboard would make using this remote even better than the physical one. It should be possible to use the existing Home Assistant integrations to send keystrokes to Android TVs.
Describe the solution you'd like
The ability to send keystrokes to Android TV.
Describe alternatives you've considered
The Google TV app has the best implementation of this, as it seems to live capture the contents of the text box you're interacting with and modify it in real time. I'm not sure how they are doing that or if it's part of Android TV Remote Protocol V2.
Additional context
Using the alphabetical keycodes listed here with remote.send_command frustratingly does nothing. I'm not sure if this is a bug in the integration, the underlying library, or Android TV Remote Protocol V2.
It is possible to send text to Android TVs using Home Assistant via ADB, but it isn't nearly as graceful as doing so from the Google TV app. I created an input_text entity and a script that when called, would send the contents of the textbox to the Android TV.
alias: Lounge TV - Google TV Send Text
sequence:
  - service: androidtv.adb_command
    data:
      command: input text "{{ states("input_text.lounge_tv_google_tv_text_input") }}"
    target:
      entity_id: media_player.lounge_google_tv_adb
mode: single
icon: mdi:form-textbox

And a lovelace config to go with it that includes backspace functionality:
type: entities
entities:
  - entity: input_text.lounge_tv_google_tv_text_input
    hold_action:
      action: call-service
      service: script.lounge_tv_google_tv_send_text
    tap_action:
      action: call-service
      service: remote.send_command
      data:
        entity_id: remote.lounge_google_tv
        command: KEYCODE_DEL

This method works but feels hacky and inelegant. I want to try to find a better solution, like one that would transmit keycodes to the Android TV live rather than in bulk.

As of v1.4.0 This feature has been implemented! But

As of v1.4.0 this feature has been implemented using the ADB integration! But, it could be better. Currently the keyboard button opens a browser text prompt, in which text can be entered and sent to the TV. While this works I want to work on a more seamless solution in the future using a keypress event listener. I'll need a good way to trigger opening the keyboard from JS when a text box is not present, and to create translations for all JS keyboard event codes to ADB keyboard event codes. Or I could keep doing ADB input text commands and have special cases for non text keys like backspace/delete.

Ok so after restarting my Google TV I got this to kinda work, so I am now able to send text commands to the search bar, but the enter button on the card unfortunately doesn't work for me. Maybe its a Google TV problem? Not sure what to do.

For me nope the on-screen keyboard does not show up, apparently, this virtual keyboard can be disabled in settings but then that would probably just stop this whole feature from working.

Disabling the virtual keyboard may actually help according to this thread. I'll try to find a better solution in the future. Maybe there's a way to trigger search without the onscreen keyboard via the remote API or ADB.

Hopefully. I forget how exactly I fixed the issue for me a while back. Can you share a picture or list of what your enabled keyboards looks like? It should be under Settings > System > Keyboard >  Manage Keyboards. Here's what mine looks like.

I disabled Gboard on one of my Google TVs and tried to trigger a search without the keyboard but wasn't able to do it, not even with the Google TV app's keyboard. I think it may be  a limitation with Android TV that the only way to do a text search is the search button on the virtual keyboard.

I did find this buried in the HA ADB documentation.
I think I can add an alternate search button to do a global search using it with this ADB command:
am start -a "android.search.action.GLOBAL_SEARCH" --es query "{{ states('input_text.androidtv_search_input')}}"

@dnestico while I can't fix the no keyboard showing up and therefore can't actually click enter/search issue, I did find a workaround and put it in v1.4.1. It should let you use global Google Assistant search instead. Let me know if it works!

Ok I will update when it is available, sorry I went out to the theatres to watch a movie so couldn't answer.
Is global Google Assistant search like voice search btw?

Do I still need to disable the virtual keyboard with v1.4.1?
If you want to use regular text input within apps yes. For global/Google Assistant search no.

Is global Google Assistant search like voice search btw?
Yes, it's the same. It's called global search in the ADB call but it opens the Google Assistant search within Google TV.

Updated and added the Google Assistant button, haven't tested yet but here is my virtual keyboard settings btw I turned off virtual keyboard like you said, GBoard can't be disabled for me so whatever but hopefully this fixes things next time I try it out 👍

authors: Nerwyn dnestico

repo: Nerwyn/android-tv-card


text:
Uncaught TypeError: Cannot set properties of undefined in service-call-tile-feature on Chrome 129.0.0.0

Description
Encountered an uncaught error in the Home Assistant frontend while using the service-call-tile-feature custom component. The error occurs on Chrome version 129.0.0.0 running on Windows 10. The issue appears to be related to setting the entity_id in the custom-features-row.min.js file.
Ask: Just wanting to understand what this actually means??
Logger: frontend.js.modern.202410023
Source: components/system_log/__init__.py:331
First occurred: 14:24:07 (1 occurrences)
Last logged: 14:24:07

Uncaught error from Chrome 129.0.0.0 on Windows 10
TypeError: Cannot set properties of undefined (setting 'entity_id')
    o (/hacsfiles/service-call-tile-feature/custom-features-row.min.js:2:106121)
    nn.handleSelectorChange (/hacsfiles/service-call-tile-feature/custom-features-row.min.js:14:64399)
    F.handleEvent (/hacsfiles/service-call-tile-feature/custom-features-row.min.js:2:160111)
    dispatchEvent (src/common/dom/fire_event.ts:76:7)
    _setValue (src/components/entity/ha-entity-picker.ts:422:16)

Additional Context: This error appears in the custom-features-row.min.js file, specifically when handling the selector change for entities. It might be related to an issue with the ha-entity-picker component.
Home Assistant Version
2024.10
Contaner OS
HACS Version
4.1.0

@sipimokus that's a HACS load error, usually resolved by waiting or restarting Home Assistant. It's unrelated to this or this card project in particular.

@cloudbr34k84 that error means that the custom feature that it's trying to set the entity of is not defined. I thought I caught all situations where that could happen but I may have missed something. Was this a one off issue, or does it happen every time you try to set entity ID?

I'm going to close this as I can't reproduce it. If you can reproduce it and provide steps to do so, I can reopen and see if there's a fix.

repo: Nerwyn/service-call-tile-feature


text:
InfluxDB exporter should not require bucket, org, port, or precision fields when using url

As reported by li fi on Slack
Harvest version 22.05

Improve documentation
Fix bug in 22.05 that causes the InfluxDB exporter to fail when using url and bucket, org, port, or precision fields are missing

Verified that InfluxDB exporter does not require bucket, org, port, or precision fields when using url
Verified on release/22.08.0 a05a0279

repo: NetApp/harvest


text:
Trident CSI sitll connecting on FCOS 36.20220716.3.1

Describe the bug
After doing upgrade Fedora CoreOS to ver 36.20220716.3.1 the Node-CSI driver still connecting.
time="2022-08-02T14:24:57Z" level=warning msg="Could not update Trident controller with node registration, will retry." error="could not log into the Trident CSI Controller: error communicating with Trident CS
I Controller; Put "https://10.233.51.147:34571/trident/v1/node/l8101\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" increment=10.496269484s requestID=e3e2d6c4-c6d7-497a-93c4-95
I have this problem only with OS:
Fedora CoreOS 36.20220618.3.1
Fedora CoreOS 36.20220703.3.1
Fedora CoreOS 36.20220716.3.1
Environment
$ tridentctl version
+----------------+----------------+
| SERVER VERSION | CLIENT VERSION |
+----------------+----------------+
| 22.07.0        | 22.04.0        |
+----------------+----------------+
$ k get node -o wide
NAME    STATUS   ROLES                  AGE   VERSION     OS-IMAGE                        KERNEL-VERSION            CONTAINER-RUNTIME
l8101   Ready    control-plane,master   78d   v1.23.7     Fedora CoreOS 36.20220716.3.1   5.18.11-200.fc36.x86_64   containerd://1.6.4
l8102   Ready    control-plane,master   78d   v1.23.7     Fedora CoreOS 36.20220605.3.0   5.17.12-300.fc36.x86_64   containerd://1.6.4
l8103   Ready    control-plane,master   78d   v1.23.7     Fedora CoreOS 36.20220605.3.0   5.17.12-300.fc36.x86_64   containerd://1.6.4
l8104   Ready                           78d   v1.23.7     Fedora CoreOS 36.20220605.3.0   5.17.12-300.fc36.x86_64   containerd://1.6.4
$ k get pod -o wide
NAME                                READY   STATUS    AGE     IP                      NODE
trident-csi-5pplc                   2/2     Running   34m     10.226.11.133   l8103
trident-csi-6f2wr                   1/2     Running   8m58s  10.226.11.131   l8101
trident-csi-cvz7d                   2/2     Running   34m     10.226.11.132   l8102
trident-csi-vsgn8                   2/2     Running   34m     10.226.11.134   l8104
trident-operator-7c98557778-ftqq5   1/1     Running         34m     10.233.121.86   l8105
trident-csi-797999d774-rq5ch        6/6     Running   34m     10.233.80.77    l8108
Logs
k logs -f trident-csi-6f2wr trident-main
time="2022-08-02T14:24:27Z" level=info msg="Running Trident storage orchestrator." binary=/trident_orchestrator build_time="Fri Jul 29 11:24:51 EDT 2022" version=22.07.0
time="2022-08-02T14:24:27Z" level=info msg="Initializing plain CSI helper frontend."
time="2022-08-02T14:24:27Z" level=info msg="Added frontend." name=plain_csi_helper
time="2022-08-02T14:24:27Z" level=info msg="Initializing CSI frontend." name=l8101 version=22.07.0
time="2022-08-02T14:24:27Z" level=info msg="Enabling node service capability." capability=STAGE_UNSTAGE_VOLUME
time="2022-08-02T14:24:27Z" level=info msg="Enabling node service capability." capability=EXPAND_VOLUME
time="2022-08-02T14:24:27Z" level=info msg="Enabling node service capability." capability=GET_VOLUME_STATS
time="2022-08-02T14:24:27Z" level=info msg="Enabling volume access mode." mode=SINGLE_NODE_WRITER
time="2022-08-02T14:24:27Z" level=info msg="Enabling volume access mode." mode=SINGLE_NODE_READER_ONLY
time="2022-08-02T14:24:27Z" level=info msg="Enabling volume access mode." mode=MULTI_NODE_READER_ONLY
time="2022-08-02T14:24:27Z" level=info msg="Enabling volume access mode." mode=MULTI_NODE_SINGLE_WRITER
time="2022-08-02T14:24:27Z" level=info msg="Enabling volume access mode." mode=MULTI_NODE_MULTI_WRITER
time="2022-08-02T14:24:27Z" level=info msg="Added frontend." name=csi
time="2022-08-02T14:24:27Z" level=info msg="Initializing HTTPS REST frontend." address=":17546"
time="2022-08-02T14:24:27Z" level=info msg="Added frontend." name="HTTPS REST"
time="2022-08-02T14:24:27Z" level=info msg="Added 0 existing volume(s)" requestID=34eb6d49-a684-4f89-b6fa-6e1767e351a0 requestSource=Internal
time="2022-08-02T14:24:27Z" level=info msg="Trident bootstrapped successfully."
time="2022-08-02T14:24:27Z" level=info msg="Activating plain CSI helper frontend."
time="2022-08-02T14:24:27Z" level=info msg="Activating HTTPS REST frontend." address=":17546"
time="2022-08-02T14:24:27Z" level=info msg="Activating CSI frontend." requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
time="2022-08-02T14:24:27Z" level=info msg="Starting periodic node access reconciliation service." requestID=dc00598e-6109-4b50-b622-517187516267 requestSource=Periodic
time="2022-08-02T14:24:27Z" level=info msg="Discovered iSCSI initiator name." IQN="iqn.1994-05.com.redhat:de886ad0c8f6" requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
time="2022-08-02T14:24:27Z" level=info msg="Discovered IP addresses." IP Addresses="[10.226.11.131 10.233.84.0 172.17.0.1]" requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
time="2022-08-02T14:24:57Z" level=warning msg="Could not update Trident controller with node registration, will retry." error="could not log into the Trident CSI Controller: error communicating with Trident CSI Controller; Put "https://10.233.51.147:34571/trident/v1/node/l8101\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" increment=10.496269484s requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
time="2022-08-02T14:25:38Z" level=warning msg="Could not update Trident controller with node registration, will retry." error="could not log into the Trident CSI Controller: error communicating with Trident CSI Controller; Put "https://10.233.51.147:34571/trident/v1/node/l8101\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" increment=19.057534053s requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
time="2022-08-02T14:26:27Z" level=warning msg="Could not update Trident controller with node registration, will retry." error="could not log into the Trident CSI Controller: error communicating with Trident CSI Controller; Put "https://10.233.51.147:34571/trident/v1/node/l8101\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" increment=40.699091843s requestID=e3e2d6c4-c6d7-497a-93c4-959fb1bf0bfe requestSource=Internal
$ k logs -f trident-csi-6f2wr driver-registrar
I0802 14:24:27.601972    3484 main.go:166] Version: v2.5.1
I0802 14:24:27.602066    3484 main.go:167] Running node-driver-registrar in mode=registration
I0802 14:24:27.603799    3484 main.go:191] Attempting to open a gRPC connection with: "/plugin/csi.sock"
W0802 14:24:37.604947    3484 connection.go:173] Still connecting to unix:///plugin/csi.sock
W0802 14:24:47.603983    3484 connection.go:173] Still connecting to unix:///plugin/csi.sock
W0802 14:24:57.604876    3484 connection.go:173] Still connecting to unix:///plugin/csi.sock
W0802 14:25:07.604311    3484 connection.go:173] Still connecting to unix:///plugin/csi.sock
W0802 14:25:17.604232    3484 connection.go:173] Still connecting to unix:///plugin/csi.sock

Hi @pmokrz,
Fedora CoreOS isn't one of the supported Operating Systems  that we test. Considering that you are only having issues with the most recent version of FCOS I'd suspect that there is a breaking change in FCOS and not Trident.
You can check on network connectivity from your Kubernetes node, where the Trident daemonset pod is running, with the Kubernetes node where the Trident controller is running. There may have been a configuration change in FCOS that is preventing the needed network connection to register the Trident daemonset pod with the Trident controller.

Closing this issue as there hasn't been a response from @pmokrz recently and previous FCOS versions are known to work with Trident.

From what I found it somewhere after the update, some strange way is blocking communication between the pods in the k8s cluster. Maybe someone had a similar case?
I think this bug can be hooked up together with:  Could not update Trident controller with node registration, will retry." error="could not log into the Trident CSI Controller: error communicating with Trident CSI Controller #752

My solution: sudo ethtool --offload vxlan.calico rx off tx off was done on every node

authors: gnarl pmokrz

repo: NetApp/trident


text:
Result handling logic should be expanded to support class-based handlers.

Description
As discussed on the Discord, it is the intent to implement class-based result handlers for every service, in pursuit of more accessible and customizable result handling. The following naming suggestions apply:

IApplicationCommandResultHandler
IComponentInteractionResultHandler
ICommandResultHandler

A footnote here, should this include ...Text... for clarity or take from preexisting naming?

These classes should be optional and not used by default. The original result handling logic can be retained, and the service provider can include the discovered objects on module creation, to be fetched at post-execution. (Can simply be done in HandleResultAsync default overload)
Unclear:
Do we want to support these types to be singleton or transient through something like an attribute? (scoped is irrelevant, it would adopt same logic as transient), or will we simply force either of the two on the recipient?

Might be better to use a ResultHandlers namespace or something similar, just to shorten the names in this case.

How would types in ResultHandlers be named?

A footnote here, should this include ...Text... for clarity or take from preexisting naming?

I think it should be named ICommandResultHandler, without the Text

Might be better to use a ResultHandlers namespace or something similar, just to shorten the names in this case.

You would not write these names more than once in any project, and they would be best implemented in the netcord.hosting.services project. Besides, the type clarity would crumble if ResultHandler is excluded, intellisense does not point out the namespace a type is from when it is imported

Do we want to support these types to be singleton or transient through something like an attribute? (scoped is irrelevant, it would adopt same logic as transient), or will we simply force either of the two on the recipient?

I think there are no pros of using transient in this case. Are there? Also could you clarify how would the attributes work?

You would not write these names more than once in any project, and they would be best implemented in the Netcord.Hosting.Services project. Besides, the type clarity would crumble if ResultHandler is excluded, intellisense does not point out the namespace a type is from when it is imported

Yeah, I don't think it's a good idea, but maybe @Red-K0 has some better idea for the names we don't know about.

Might be better to use a ResultHandlers namespace or something similar, just to shorten the names in this case.

You would not write these names more than once in any project, and they would be best implemented in the Netcord.Hosting.Services project. Besides, the type clarity would crumble if ResultHandler is excluded, intellisense does not point out the namespace a type is from when it is imported

Intellisense (at least on VS) does show what namespace a class is from if it would need to add a using or package to use it. As for name complexity, there's no realistic reason to be so verbose about the handler names. ICommandResultHandler can just be ResultHandlers.CommandResult or something. I'm sure there's better, just nothing coming directly to mind at the moment.

I honestly disagree with this, it makes things more confusing than they have to be. Note, I did already say 'When they are imported' in regards to revealing namespaces.

I honestly disagree with this, it makes things more confusing than they have to be. Note, I did already say 'When they are imported' in regards to revealing namespaces.

Ah missed your last statement, my bad. Regardless it is just an idea, I'm mostly just concerned about the class' name length, but if it'll only ever be used once or twice then it should be fine.

repo: NetCordDev/NetCord


text:
无法启动game-server

path.js:28
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'path', 'string');
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
at assertPath (path.js:28:11)
at Object.resolve (path.js:1179:7)
at start (/usr/local/lib/node_modules/pomelo/bin/pomelo:340:24)
at Command. (/usr/local/lib/node_modules/pomelo/bin/pomelo:65:5)
at Command. (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:249:8)
at Command.emit (events.js:160:13)
at Command.parseArgs (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:472:12)
at Command.parse (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:370:21)
at Object. (/usr/local/lib/node_modules/pomelo/bin/pomelo:142:9)
at Module._compile (module.js:660:30)

https://github.com/yangfch3/lordofpomelo
试一下这个

repo: NetEase/lordofpomelo

license: mit


text:
Scale test

This is all the changes I've made while developing the scale tester so far. A lot of these commits should probably be squashed after the deadline before we merge into master and some will probably be deleted.

Not ready for merge, I need to clean this up first

repo: NetSys/quilt


text:
codecov: Ignore all files containing "mock"

Now that we're using mockery more aggressively the codebase is strewn
with auto-generated mock files that shouldn't be counted toward code
coverage.

quilt-bot smiles on @Baisang


text:
Jira comment opens up editor for yml configuration when message was already provided

Executing jira comment ap-41 -m "Foo bar." will open the editor where you can change the yml. However I find this step unnecessary since there are no more fields that I could specify. The only change I could do is edit the message.
Hence I'd propose to not show the editor and submit the comment straight away.

There is a --noedit option:
      --noedit             Disable opening the editor

That will bypass the editor and try to submit immediately.  Does this work for you?

From the name of it, it would yes. How could I configure this in conjunction with:
case $JIRA_OPERATION in
    comment)
        ;;
esac

case $JIRA_OPERATION in
    comment)
        echo "noedit: true"
        ;;
esac

You can also create a .jira.d/comment.yml with noedit: true in it so the config does not need to be executable.

Oh that's even better. Thanks :+1:

authors: coryb vanniktech

repo: Netflix-Skunkworks/go-jira


text:
Aggregate multi hosts failed

Hello,
I have a problem with my turbine aggregator :
I have Eureka Server which started on 7200 port.
I have also my war which is started on 7580 port. This war contains turbine annotation, cirtuitBreaker, dashboard and eurekaClient
When I run juste the war with eureka server, I'm able to see aggregated stream with turbine in localhot:7580/turbine.stream?cluster=MyService
The dashboard shows only one host because i have juste one (localhost:7580) and all stream are ok => it's correct
But when I launch a second war on a diffrent port, like 7480, I can't see the aggregation of this one and the dashboard show me already one host and not 2 hosts.
The localhot:7580/turbine.stream?cluster=MyService can't aggregate the stream localhot:7480/hystrix.stream.
Have you any idea to solve this problem please?
Thanks you.

spencergibb

@benjchristensen any help please?

Try:
instanceInsertPort: false
combineHostPort: true

authors: hamzaELY tjuchniewicz

repo: Netflix/Turbine


text:
If a task refers to an input with a space in it, conductor cannot schedule it, throws exception

Hello,
If you create the following workflow:
{
  "type": "workflow-definition",
  "label": "My Label Here",
  "name": "WKF_NAME",
  "description": "Example workflow",
  "inputParameters": {
  },
  "tasks": [{
    "taskType": "task_type_here",
    "taskReferenceName": "ref1",
    "label": "Record",
    "description": "This task does nothing",
    "inputMapping": {
      "blabla": "${workflow.input.Space Value}"
    },
    "startDelaySeconds": 0
  }]
}

If you start this workflow, the execution will fail right away, as conductor will try to schedule the only task, and tries to replace the data in the inputMapping of the task.
This generates the following exception:
 com.jayway.jsonpath.InvalidPathException: Use bracket notion ['my prop'] if your property contains blank characters. position: 17
at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:184)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145)
at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139)
at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145)
at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139)
at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145)
at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139)
at com.jayway.jsonpath.internal.path.PathCompiler.readContextToken(PathCompiler.java:118)
at com.jayway.jsonpath.internal.path.PathCompiler.compile(PathCompiler.java:54)
at com.jayway.jsonpath.internal.path.PathCompiler.compile(PathCompiler.java:69)
at com.jayway.jsonpath.JsonPath.<init>(JsonPath.java:101)
at com.jayway.jsonpath.JsonPath.compile(JsonPath.java:467)
at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:149)
at com.netflix.conductor.core.execution.ParametersUtils.replaceVariables(ParametersUtils.java:217)
at com.netflix.conductor.core.execution.ParametersUtils.replace(ParametersUtils.java:167)
at com.netflix.conductor.core.execution.ParametersUtils.getTaskInputV2(ParametersUtils.java:128)
at com.netflix.conductor.core.execution.ParametersUtils.getTaskInput(ParametersUtils.java:63)
at com.netflix.conductor.core.execution.DeciderService.getTasksToBeScheduled(DeciderService.java:443)
at com.netflix.conductor.core.execution.DeciderService.getTasksToBeScheduled(DeciderService.java:437)
at com.netflix.conductor.core.execution.DeciderService.getNextTask(DeciderService.java:308)
at com.netflix.conductor.core.execution.DeciderService.decide(DeciderService.java:172)
at com.netflix.conductor.core.execution.DeciderService.decide(DeciderService.java:99)
at com.netflix.conductor.core.execution.WorkflowExecutor.decide(WorkflowExecutor.java:575)
at com.netflix.conductor.core.execution.WorkflowExecutor.updateTask(WorkflowExecutor.java:531)
at com.netflix.conductor.service.ExecutionService.updateTask(ExecutionService.java:162)

This happens anytime conductor tries to schedule a task with a reference to a variable having a space in it (whether this variable exists or not).
This has been tested with conductor 1.10.17.
Instead, it should rather do the following:

check if a space is present (or catch the underlying exception);
set status FAILED to the task referencing this bad variable;
add a message as to why the task is failed (referencing variable with a space-name).

Is there a validator? Seems like this would be a trivial PR.....

Maybe this PR? https://github.com/Netflix/conductor/pull/862

authors: Jiehong jwulf

repo: Netflix/conductor


text:
Only one filed from schema is generated, expected two.

If my graphql schema defines a type that looks like this:
type ProductType {
    ....
    ....
    productClasses: [ProductClassType]
    masterClass: ProductClassType
    ....
}

The code and query generator will create a projection root that contains only one of the fields (the first one from the top). Thus in the example above, the masterClass will not be in the generated projection code.
The environment:

java 11
gradle 6.7.5
com.netflix.graphql.dgs:graphql-dgs-client:3.4.1

I am not able to reproduce it with a similar schema:
type Query {
                people: [Person]
            }

            type Person {
                firstname: String
                lastname: String
                otherContacts: [Contact]
                contact: Contact
            }

            type Contact {
                address: String
            }

Am I missing something? Also what version of the codegen plugin are you using? Our latest is v4.2.0, and I do not see this issue with that version.

plugin version is 4.1.2, let try the v4.2.0

The issue is not reproducible in the latest v4.2.0. I am closing this ticket. Thank you @srinivasankavitha  for looking at it.

authors: srinivasankavitha xsolo

repo: Netflix/dgs-codegen


text:
Fix install.sh error when no .env file is present

Running install.sh when there is no .env file present causes two issues
1- The following error is observed
dispatch-docker git:master  ❯ ./install.sh
Checking minimum requirements...
ERROR: Couldn't find env file: /home/user/folder/dispatch-docker/.env
Cleaning up...

If there is no .env file present, the installer fails before reaching 'ensure_file_from_example' because 'docker-compose down --rmi local --remove-orphans' will be expecting .env file present. Therefore changing the order of 'ensure_file_from_example' so that it happens before 'docker-compose down --rmi local --remove-orphans' would fix the issue
2- The following error is observed
Cannot stat /.example.env: File not found

This happens because the cp/sed expression inside 'ensure_file_from_example' is attempting to copy the non-existent file .example.env while it should be copying .env.example

Thanks for the PR!

authors: kevgliss shumbashi

repo: Netflix/dispatch-docker


text:
Add docker setup for running tests on a docker enabled dev environment.

We use docker and docker-compose for development. This PR adds the requisite files to enable development without needing to install python, node, postgres. It should not alter a non-docker dev workflow, but merely enable docker dev as an option if that is your thing.

Coverage remained the same at 65.966% when pulling 41bebcd5c9138f0070aa1401a7c881bb83bd3919 on pvdvreede:docker-dev-setup into fbc24ea40067411d3b4c7483311c7dd2500a4136 on Netflix:master.

This seems cool if you have time/inclination I wouldn't mind some documentation around developing Lemur with docker.
https://github.com/Netflix/lemur/blob/master/docs/developer/index.rst

authors: coveralls kevgliss pvdvreede

repo: Netflix/lemur


text:
Enable autoscaling when using programmatic tables

Fixes #131
I use default values present in the AWS console for all numbers (initial r/w CU, minimum r/w CU, maximum r/w CU and target r/w utilization).

I am not sure if it clear in the code. There are two ways to use the plugin. One way that the user does everything through the AWS Console and the second way that the user does most operations programmatically. It feels to me that the first would be the majority of the use cases. Hence this PR should fit in the initializeTable().

@ipapapa seems like I am going to have to do the credential refactoring first then rebase this branch on the credential refactoring. lets put this PR on hold until then.

OK, I will block it to avoid mistakenly merging until you tell me to unblock it.

Is there an update on this PR?

I've opened PR #182 to fix the story on credential injection. After merging #182, let me rebase this PR and then we can merge it.

I rebased on the cli branch for easier testing.

Setup:
sudo yum update -y \
&& sudo yum upgrade -y \
&& sudo yum install -y java-1.8.0-openjdk-devel git emacs \
&& sudo yum remove -y java-1.7.0-openjdk \
&& git clone https://github.com/amcp/ndbench.git \
&& cd ndbench \
&& git checkout consumed \
&& ./gradlew build

Test:
DISCOVERY_ENV=AWS ./gradlew run \
-Dndbench.config.cli.clientName=DynamoDBKeyValue \
-Dndbench.config.cli.bulkSize=1 \
-Dndbench.config.cli.timeoutMillis=360000 \
-Dndbench.config.dataSize=1000 \
-Dndbench.config.numKeys=1 \
-Dndbench.config.readEnabled=true \
-Dndbench.config.readRateLimit=4 \
-Dndbench.config.writeEnabled=true \
-Dndbench.config.writeRateLimit=4 \
-Dndbench.config.dynamodb.rcu=5 \
-Dndbench.config.dynamodb.wcu=5 \
-Dndbench.config.dynamodb.tablename=hires \
-Dndbench.config.dynamodb.consistentread=true \
-Dndbench.config.dynamodb.maxRetries=0 \
-Dndbench.config.dynamodb.requestTimeout=100 \
-Dndbench.config.dynamodb.maxConnections=1 \
-Dndbench.config.dynamodb.numReaders=1 \
-Dndbench.config.dynamodb.numWriters=1 \
-Dndbench.config.dynamodb.programmableTables=true \
&> output

@ipapapa Setting up autoscaling on a table is best done as a first-time activity in the AWS console. A few managed and custom IAM policies would be required to automate this in code. Closing in favor of the non-programmatic driver issue.

authors: amcp ipapapa

repo: Netflix/ndbench


text:
Add gather_classes

PR corresponding to #66

I don't understand the solution. It seems unnecessarily overcomplicated

Much of this was simplified when assuming that the block_num could be reliably derived from the name. The code should be more straightforward now.

repo: NethermindEth/blockifier-tester


text:
[leetcode] number-of-provinces

TITLE

number-of-provinces
LINK

문제 출처 사이트 : leetcode
Link

📷 Screenshots

댓글 양식

아래 양식을 복사한 뒤 [shift]+[tab] 2회를 하고 작성하여 주세요

    ### 풀이 언어

    - python/java

    ### 코드

    ```python/java

    ```

    ### 핵심 로직 혹은 자료구조

    -

    ### 시간 복잡도

    - O(  )

풀이 언어

java

코드
import java.util.*;

class Solution {
    private int[][] map;

    public int findCircleNum(int[][] isConnected) {
        map = isConnected;
        boolean[] visit = new boolean[map.length];
        int count = 0;
        for(int i = 0; i < map.length; i++) {
            if (!visit[i]) {
                dfs(visit, i);
                count++;
            }
        }
        return count;
    }

    private void dfs(boolean[] visit, int index) {
        for(int i = 0; i < map.length; i++) {
            if( map[index][i] == 1 && !visit[i]) {
                visit[i] = true;
                dfs(visit, i);
            }

        }
    }
}

핵심 로직 혹은 자료구조

시간 복잡도

O(  )

repo: Next-Squad/Algorithm


text:
fix long description name may overflow the Image item

By using Balancer from react-wrap-balancer library to fix long item's name
Also:
Install Playwright on home computer and run a few UI test, discover long item description will overflow on the Image UI

previously, trying to get playwright to work on personal Macbook computer, and delete some  unnecessary test case

@BangMach Try to pull the code from master branch and resolve all conflicts.
Be sure not to use food_options.json. You can delete that file.

authors: BangMach vietanhdev

repo: NextCafeteria/cafeteria


text:
Cannot build: project.pbxproj missing

pod install fails with: /Users/.../NextLevelAR/NextLevelAR.xcodeproj/project.pbxproj` doesn't exist.

same
NextLevelAR git:(master) pod install
Analyzing dependencies
[!] The plist file at path /Users/admin/Downloads/examples/NextLevelAR/NextLevelAR.xcodeproj/project.pbxproj doesn't exist.

this makefile is not a good idea.
@piemonte  This is going to screw up peoples cocoapods / I've never a repo impose this amount of stuffing around for their system.
See here
https://guides.cocoapods.org/using/a-gemfile.html
I'd point you in the direction of RVM (ruby version manager) / bundler / gemfile to specify specific version of cocoapods - these are more sympathetic to having a variety of cocoapod versions for different projects. Here you mandating latest version of cocoapods - and forcing it with sudo.

# setup pods
setup:
	@echo [install cocoapods]
	@sudo /usr/bin/gem install -n /usr/local/bin cocoapods
	@pod setup

pods:
	@echo [updating pods]
	@echo ensure you have the latest cocoapods, run make setup
	@echo
	@-rm Podfile.lock
	@-rm -rf Pods
	@pod install

cleanpods:
	@echo [removing local Pods caches]
	@echo /Users/$$USER/.cocoapods/*
	@echo ensure to re-run make setup!
	@-rm -rf /Users/$$USER/.cocoapods/*

.PHONY: setup pods cleanpods

hey, thanks for the project interest. as the readme mentions, this repo is in progress. i'll post full examples when i get the opportunity in the future.
the repo is available because others were going to be contributing PR's with their examples, but hasn't happened.
@johndpope thanks for the makefile feedback. if you'd like to update this to use a gem file, feel free.

i actually use makefiles on a couple projects but should be using a gem file! really appreciate the pointer.

authors: AnsonT johndpope piemonte

repo: NextLevel/examples


text:
port appended

Please try the jc21/nginx-proxy-manager:github-develop docker image, which has these headers removed and comment whether this is problem is fixed.

Hello jc21,
It's not been fixed yet, the docker-compose.yml is as follows:
version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:github-develop'
    #image: 'jc21/nginx-proxy-manager:2.9.11'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./newdata:/data
      - ./newletsencrypt:/etc/letsencrypt
      #- ./data:/data
      #- ./letsencrypt:/etc/letsencrypt

Originally posted by @jiangge in https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1717#issuecomment-1078474293

It's fixed. So I close it.

repo: NginxProxyManager/nginx-proxy-manager