!!ddg command for querying duckduckgo

Queries the DuckDuckGo API and returns more appealing results, posting them in chat.
I've convinced the Javascript room to add this feature to Caprica, so we might as well as (try to) get it for our own bot as well. :P
Proposed command:
!!ddg
alias: [!!duckduckgo]

As a demonstration, this query of 'duck' on duckduckgo API returns pretty json:
{
   "DefinitionSource" : "",
   "Heading" : "Duck",
   "ImageWidth" : 0,
   "RelatedTopics" : [
      {
         "Result" : "Duck The common name for a large number of species in the Anatidae family of birds, which also...",
         "Icon" : {
            "URL" : "",
            "Height" : "",
            "Width" : ""
         },
         "FirstURL" : "https://duckduckgo.com/Duck",
         "Text" : "Duck The common name for a large number of species in the Anatidae family of birds, which also..."
      },
      {
         "Result" : "Anaheim DucksA professional ice hockey team based in Anaheim, California, United States.",
         "Icon" : {
            "URL" : "",
            "Height" : "",
            "Width" : ""
         },
         "FirstURL" : "https://duckduckgo.com/Anaheim_Ducks",
         "Text" : "Anaheim DucksA professional ice hockey team based in Anaheim, California, United States."
      },
      {
         "Result" : "DucatiDucati Motor Holding S.p.A. is an Italian company that designs and manufactures motorcycles.",
         "Icon" : {
            "URL" : "https://duckduckgo.com/i/8d3cf6a1.png",
            "Height" : "",
            "Width" : ""
         },
         "FirstURL" : "https://duckduckgo.com/Ducati",
         "Text" : "DucatiDucati Motor Holding S.p.A. is an Italian company that designs and manufactures motorcycles."
      },
      {
         "Topics" : [
            {
               "Result" : "Duck (crossword compiler)A long-serving setter of crosswords in the UK. He has supplied puzzles for the Radio Times, The...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/don_Manley",
               "Text" : "Duck (crossword compiler)A long-serving setter of crosswords in the UK. He has supplied puzzles for the Radio Times, The..."
            }
         ],
         "Name" : "People"
      },
      {
         "Topics" : [
            {
               "Result" : "Duck, North CarolinaA town in Dare County, North Carolina, United States.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck%2C_North_Carolina",
               "Text" : "Duck, North CarolinaA town in Dare County, North Carolina, United States."
            },
            {
               "Result" : "Duck, West VirginiaAn unincorporated community in Clay County, West Virginia, United States. Duck is northeast of Clay.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck%2C_West_Virginia",
               "Text" : "Duck, West VirginiaAn unincorporated community in Clay County, West Virginia, United States. Duck is northeast of Clay."
            },
            {
               "Result" : "Monte CreekA rural locality on the South Thompson River east of Kamloops, British Columbia, Canada...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Monte_Creek",
               "Text" : "Monte CreekA rural locality on the South Thompson River east of Kamloops, British Columbia, Canada..."
            }
         ],
         "Name" : "Places"
      },
      {
         "Topics" : [
            {
               "Result" : "Duck (bridge)In the card game of contract bridge, to duck means to play low to a trick to which one has led...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_(bridge)",
               "Text" : "Duck (bridge)In the card game of contract bridge, to duck means to play low to a trick to which one has led..."
            },
            {
               "Result" : "Duck (cricket) A batsman's dismissal for a score of zero.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_(cricket)",
               "Text" : "Duck (cricket) A batsman's dismissal for a score of zero."
            },
            {
               "Result" : "Oregon DucksThe Oregon Ducks refers to the sports teams of the University of Oregon, located in Eugene...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Oregon_Ducks",
               "Text" : "Oregon DucksThe Oregon Ducks refers to the sports teams of the University of Oregon, located in Eugene..."
            },
            {
               "Result" : "Long Island DucksAn American professional baseball team based in Central Islip, New York.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Long_Island_Ducks",
               "Text" : "Long Island DucksAn American professional baseball team based in Central Islip, New York."
            }
         ],
         "Name" : "Sports and games"
      },
      {
         "Topics" : [
            {
               "Result" : "Duck (Alice's Adventures in Wonderland)A fictional character appearing in Chapters 2 and 3 of the book Alice's Adventures in Wonderland...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_(Alice's_Adventures_in_Wonderland)",
               "Text" : "Duck (Alice's Adventures in Wonderland)A fictional character appearing in Chapters 2 and 3 of the book Alice's Adventures in Wonderland..."
            },
            {
               "Result" : "Duck the Great Western EngineA fictional steam engine from The Railway Series by the Rev.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_the_Great_Western_Engine",
               "Text" : "Duck the Great Western EngineA fictional steam engine from The Railway Series by the Rev."
            },
            {
               "Result" : "Aflac duck The brand and mascot of Aflac Incorporated.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Aflac_duck",
               "Text" : "Aflac duck The brand and mascot of Aflac Incorporated."
            }
         ],
         "Name" : "Fictional characters"
      },
      {
         "Topics" : [
            {
               "Result" : "Duck (film)A 2005 film by director/writer/producer Nic Bettauer.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_(film)",
               "Text" : "Duck (film)A 2005 film by director/writer/producer Nic Bettauer."
            },
            {
               "Result" : "Duck! The Carbine High Massacre Duck! The Carbine High Massacre is a 1999 American comedy-drama film about a fictional school...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck!_The_Carbine_High_Massacre",
               "Text" : "Duck! The Carbine High Massacre Duck! The Carbine High Massacre is a 1999 American comedy-drama film about a fictional school..."
            },
            {
               "Result" : "\"Duck! / Aren't You Chupacabra To See Me?\" An episode of The Grim Adventures of Billy and Mandy.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/?q=Duck!%20%2F%20Aren%27t%20You%20Chupacabra%20To%20See%20Me%3F",
               "Text" : "\"Duck! / Aren't You Chupacabra To See Me?\" An episode of The Grim Adventures of Billy and Mandy."
            }
         ],
         "Name" : "Film and television"
      },
      {
         "Topics" : [
            {
               "Result" : "American Canyon Transit Also known as \"The Duck\".",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/American_Canyon_Transit",
               "Text" : "American Canyon Transit Also known as \"The Duck\"."
            },
            {
               "Result" : "Citro\u00ebn 2CVA front-engine, front wheel drive, air-cooled economy car introduced at the 1948 Paris Mondial de...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Citro%C3%ABn_2CV",
               "Text" : "Citro\u00ebn 2CVA front-engine, front wheel drive, air-cooled economy car introduced at the 1948 Paris Mondial de..."
            },
            {
               "Result" : "DucatiDucati Motor Holding S.p.A. is an Italian company that designs and manufactures motorcycles.",
               "Icon" : {
                  "URL" : "https://duckduckgo.com/i/8d3cf6a1.png",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Ducati",
               "Text" : "DucatiDucati Motor Holding S.p.A. is an Italian company that designs and manufactures motorcycles."
            },
            {
               "Result" : "Goodyear DuckA 1940s American three-seat light amphibian built by the Goodyear Aircraft Corporation.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Goodyear_Duck",
               "Text" : "Goodyear DuckA 1940s American three-seat light amphibian built by the Goodyear Aircraft Corporation."
            },
            {
               "Result" : "Grumman JF Duck A single-engine amphibious biplane, built by Grumman for the United States Navy during the 1930s.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Grumman_JF_Duck",
               "Text" : "Grumman JF Duck A single-engine amphibious biplane, built by Grumman for the United States Navy during the 1930s."
            },
            {
               "Result" : "J2F DuckAn American single-engine amphibious biplane.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/grumman_J2F_Duck",
               "Text" : "J2F DuckAn American single-engine amphibious biplane."
            },
            {
               "Result" : "DUKWA six-wheel-drive modification of the 2-ton capacity \"deuce\" trucks used by the U.S. military in...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/DUKW",
               "Text" : "DUKWA six-wheel-drive modification of the 2-ton capacity \"deuce\" trucks used by the U.S. military in..."
            }
         ],
         "Name" : "Transportation"
      },
      {
         "Topics" : [
            {
               "Result" : "On2 TechnologiesA small publicly traded company, headquartered in Clifton Park, New York, that designed video...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/On2_Technologies",
               "Text" : "On2 TechnologiesA small publicly traded company, headquartered in Clifton Park, New York, that designed video..."
            },
            {
               "Result" : "Duck RecordsThe record label of Eric Clapton.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_Records",
               "Text" : "Duck RecordsThe record label of Eric Clapton."
            },
            {
               "Result" : "Duck StudiosA production studio based in Los Angeles, California, USA. It focuses primarily on producing...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_Studios",
               "Text" : "Duck StudiosA production studio based in Los Angeles, California, USA. It focuses primarily on producing..."
            }
         ],
         "Name" : "Businesses"
      },
      {
         "Topics" : [
            {
               "Result" : "Duck (food)A common livestock bird in many parts of the world. Duck is eaten in many cuisines around the world.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_(food)",
               "Text" : "Duck (food)A common livestock bird in many parts of the world. Duck is eaten in many cuisines around the world."
            },
            {
               "Result" : "Cotton duck A heavy, plain woven cotton fabric. There is also linen duck, which is less often used.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Cotton_duck",
               "Text" : "Cotton duck A heavy, plain woven cotton fabric. There is also linen duck, which is less often used."
            },
            {
               "Result" : "Duck Samford StadiumA stadium in Auburn, Alabama.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Duck_Samford_Stadium",
               "Text" : "Duck Samford StadiumA stadium in Auburn, Alabama."
            },
            {
               "Result" : "Ducks (hiking) A man-made pile of stones. The word cairn comes from the c\u00e0rn.",
               "Icon" : {
                  "URL" : "https://duckduckgo.com/i/8a9ad1c0.jpg",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/cairn",
               "Text" : "Ducks (hiking) A man-made pile of stones. The word cairn comes from the c\u00e0rn."
            }
         ],
         "Name" : "Other uses"
      },
      {
         "Topics" : [
            {
               "Result" : "WaterfowlWaterfowl are certain wildfowl of the order Anseriformes, especially members of the family...",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/Waterfowl",
               "Text" : "WaterfowlWaterfowl are certain wildfowl of the order Anseriformes, especially members of the family..."
            },
            {
               "Result" : "Duct Meanings  See related meanings for the word 'Duct'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duct",
               "Text" : "Duct Meanings  See related meanings for the word 'Duct'."
            },
            {
               "Result" : "Duckie Meanings  See related meanings for the word 'Duckie'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duckie",
               "Text" : "Duckie Meanings  See related meanings for the word 'Duckie'."
            },
            {
               "Result" : "Ducky Meanings  See related meanings for the word 'Ducky'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Ducky",
               "Text" : "Ducky Meanings  See related meanings for the word 'Ducky'."
            },
            {
               "Result" : "Duck Island Meanings  See related meanings for the phrase 'Duck Island'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duck_Island",
               "Text" : "Duck Island Meanings  See related meanings for the phrase 'Duck Island'."
            },
            {
               "Result" : "Duck Lake Meanings  See related meanings for the phrase 'Duck Lake'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duck_Lake",
               "Text" : "Duck Lake Meanings  See related meanings for the phrase 'Duck Lake'."
            },
            {
               "Result" : "Duck River Meanings  See related meanings for the phrase 'Duck River'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duck_River",
               "Text" : "Duck River Meanings  See related meanings for the phrase 'Duck River'."
            },
            {
               "Result" : "Duck Creek Meanings  See related meanings for the phrase 'Duck Creek'.",
               "Icon" : {
                  "URL" : "",
                  "Height" : "",
                  "Width" : ""
               },
               "FirstURL" : "https://duckduckgo.com/d/Duck_Creek",
               "Text" : "Duck Creek Meanings  See related meanings for the phrase 'Duck Creek'."
            }
         ],
         "Name" : "See also"
      }
   ],
   "Entity" : "",
   "Type" : "D",
   "Redirect" : "",
   "DefinitionURL" : "",
   "AbstractURL" : "https://en.wikipedia.org/wiki/Duck_(disambiguation)",
   "Definition" : "",
   "AbstractSource" : "Wikipedia",
   "Infobox" : "",
   "Image" : "",
   "ImageIsLogo" : 0,
   "Abstract" : "",
   "AbstractText" : "",
   "AnswerType" : "",
   "ImageHeight" : 0,
   "Results" : [],
   "Answer" : ""
}

soo what of that JSON would be posted to chat then?


Unity API change in 5.6 beta 6

Unity 5.6 beta 6 introduces the error below (only in Android builds on device, in my testing).  This is due to an API change in Unity 5.6 beta 6 that renames 'Application.bundleIdentifier' to 'Application.identifier':
from https://unity3d.com/unity/beta/unity5.6.0b6
5.6.0b6 Release Notes (Delta since b5)
API Changes
Build Pipeline: Changed 'Application.bundleIdentifier' to 'Application.identifier' and 'PlayerSettings.bundleIdentifier' to 'PlayerSettings.applicationIdentifier'. These now apply to the active target only (Use PlayerSettings.SetApplicationIdentifier to set it for any platform).

adb logcat output from APK build on Android device (Samsung Galaxy S6):
I/Unity   (24349): MissingMethodException: Method not found: 'UnityEngine.Application.get_bundleIdentifier'.
I/Unity   (24349):   at Parse.ParseClient.Initialize (Configuration configuration) [0x00000] in :0
I/Unity   (24349):   at Parse.ParseClient.Initialize (System.String applicationId, System.String dotnetKey, System.String serverURL) [0x00000] in :0
I/Unity   (24349):   at Parse.ParseInitializeBehaviour.Initialize () [0x00000] in :0
I/Unity   (24349):   at Parse.ParseInitializeBehaviour.Awake () [0x00000] in :0
I/Unity   (24349):   at MyParseInitializeBehaviour.Awake () [0x00000] in :0

I don't know anything about this issue, but looking at the source code for ParseClient.Initialize it never uses bundleIdentifier anywhere :/
https://github.com/ParsePlatform/Parse-SDK-dotNET/blob/master/ParseCore/Public/ParseClient.cs
So where is the Parse SDK calling the bundleIdentifier?

Thanks for taking the time to look into my issue.  I was getting a bit worried, since there don't seem to be very many responses to issues that other people have posted the past few months.
I couldn't find the call to bundleIdentifier in the current DotNet Parse SDK code either, so I dug deeper using ILSpy to decompile my Parse.Unity.dll and found the call to Application.bundleIdentifier in a file called PlatformHooks.cs.  I'm using a Parse.Unity.dll forked from 1.7.0 that added the serverURL string to ParseClient.Initialize, so I could migrate away from Parse.com in Q4 2016.  I guess that the PlatformHooks.cs file has been removed in more recent updates?  At this point I figured that just using the current Parse.Unity.DLL would resolve the issue that I experienced.
I tried building a new DLL from the master branch and ran into issues using Visual Studio 2015 (issue #250 already seems to mention this).  Would it be possible for someone to update the released DLL to something newer than 1.7.0?  It's been 13 months since that release and that release won't work anymore anyway since Parse.com has been shut down.

@o3a I also ran into problems compiling the DLL (I'm on a Mac), and a lot of people already asked for a small "last" release, but it seems we can't have that :)
But you can do as I did, which is use a DLL compiled by someone on this thread, right here: https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/166#issuecomment-217834669

@nah0y Thanks for the DLL, I tried it and it has the same issue as the DLL that I was using before (with Unity 5.6 beta 6). This problem is not blocking me at the moment, since I can get by with Unity 5.6 beta 5 for now, but I don't like the idea of getting stuck on a Unity beta version when they're actively changing and adding features that I need (in this case, Google Daydream and integrated Cardboard VR support).  Since I'm technically not blocked, I can't justify spending the time to get to the bottom of the compilation issues with the current Parse DotNet SDK master branch in Visual Studio 2015.  One option that sounds simpler, would be to install a copy of VS 2013 on a separate Windows machine, since I guess it used to work with that?
Really, since Parse and the Unity / DotNet SDK is such a critical part of our project, I would like to see it being continuously updated, instead of being stuck using a 13 or 9 month old DLL, as is currently the case.  The combination of that, plus being forced to be on the bleeding edge of Unity's releases, is something that I foresee problems with in the coming weeks.  I'm hoping to preemptively address that, and in the process, help others get updated to a more recent DLL as well.

@o3a we have the same issue with it being core to some projects and your point about unity releases is important.  I think we DO need someone to take over as admin, and make this a real open source effort.
We started that convo in this thread, I hope it goes somewhere:
https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/166#issuecomment-254364431

I was able to get past this issue by using ILSpy with the Reflexil plugin to essentially remove the line of code that is incompatible with Unity 5.6 beta 6 and newer.  Reflexil allows you to edit IL code directly and save modified DLL's without having to compile from original source code.
Tools used:
http://ilspy.net
http://reflexil.net
To install Reflexil, just dump all of the Reflexil files into the ILSpy folder.
Tutorial video for using Reflexil to patch a Unity DLL:
https://www.youtube.com/watch?v=fAHvevOFdbo
I am hesitant to post my patched Parse.Unity.dll file at the moment because it hasn't been fully tested yet and I think it may break push notifications.  We are not using push so it works for us so far.  If anyone is using 5.6 beta 6 or newer and experiences this same issue, please message me and I will be happy to send over my patched DLL file.

https://github.com/supersolid/Parse-SDK-dotNET/pull/2

@SebastianMaj I took a look at your PR. It looks great! My only question is where is Platform hooks located? I took a look in my code and I cant find it. Im using latest master version.

@SebastianMaj can you make your PR against this repo? You'd have to catch up to the recent changes however. I'll make a note that this is an outstanding bug in the mean time.

I'm having the same issue; is there anywhere I can download a newer dll that can be used with Unity 2017?  I don't have a windows machine to run through some of the processes mentioned here to patch the current dll.  If anyone is willing to send me a link to a patched dll, I'd greatly appreciate it!

@ryanspiffy there may be a few users who have already built updated DLLs. You might have some look contacting individuals directly that have mentioned building their own DLLs across related issues to this.
We'll see if we can't target and fix this in preparation for an upcoming release soon here (i.e. before 2018).

How did you get the Unity SDK to work? I'm stuck here :S #282

Should note that we'll focus on targeting Unity 2017, from there we'll work back as needed.

It's a step on our way to bringing back a revamped sdk :). Just have a lot
to step through haha.
If it is as simple as a renaming a reintegration may be possible by
following the existing implementation, accounting for the name change.
The priority for the moment is to bring up decent tests around the core and
to ensure the core works as expected. Once that's defined and tested to
ensure it stays functional we'll start working on implementations with
other platforms.
On Mon, Feb 26, 2018, 16:07 Cartoman<EMAIL_ADDRESS>wrote:

Hi,
I'm developing under UNITY 2018.1.0b7, and I'm trying to use Parse Release
1.7.0.
I confirm that the problem:
MissingMethodException: Method not found:
'UnityEngine.Application.get_bundleIdentifier'.
Parse.ParseClient.Initialize (Configuration configuration)
is still there !
This is for me completely blocking (try to use Parse without initializing,
it's hard!)
The problem is that since this regression came under Unity, Parse is no
longer usable under Unity!
It seems from this post that the origin is a renaming since Unity 5.6, and
that the solution would be that Parse now calls according to the new naming.
You can go there without fear, because versions 5.6 and earlier of Unity
are now obsolete,
and that developments made with it must also be stalled with recent
versions of Unity (if not for them it is technical death).
I know you're doing complicated work and there are other issues to solve,
but can you tell approximately when Parse will be exploitable again with
Unity ?
Cordially
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/parse-community/Parse-SDK-dotNET/issues/253#issuecomment-368697095,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE1d4NE42yzxKeEaNXVlLkwEuyjpHu5fks5tY0dAgaJpZM4L6HmL
.

Hi,
Thank you for your prompt response.
As for me, I am currently on a personal development around a game. It takes me a lot of time. My game is today in Alpha version.
I previously looked for how to store and render informations on the Web (for my case, it just concerns connections, scores and reports on scores).
Parse responds perfectly to my problem (and in addition it uses internally MongoDB, which is a NoSQL database that I know) ... except that Parse no longer works under Unity.
If it can help you, I am candidate to test your developments on Unity in advance of phase
In the meantime, I'm going to use the FireBase environment for my game, while planning to migrate to Parse in the target.
Hoping that you will quickly make the new version.
Cordially

That sounds like a good plan to me! Thanks for letting us know what the
situation is. We'll keep you posted in regards to our progress for
reintegrating unity. That would be fantastic if you want to test drive that
functionality once it's in place.
I haven't looked at firebase in depth but i imagine most of the
functionality is quite similar to what is present in parse. If it's close
enough you might be able to save yourself time by writing a simple
interface for working with firebase. If it's general enough you could then
switch it out for parse (or anything else that's similar for that matter)
and you would only need to adjust how parse interacts with your interface,
rather than all the points dotted throughout your project itself. Just a
thought, but could be nice.
Best of luck with your game by the way!
On Wed, Feb 28, 2018, 12:55 Cartoman<EMAIL_ADDRESS>wrote:

Hi,
Thank you for your prompt response.
As for me, I am currently on a personal development around a game. It
takes me a lot of time. My game is today in Alpha version.
I previously looked for how to store and render informations on the Web
(for my case, it just concerns connections, scores and reports on scores).
Parse responds perfectly to my problem (and in addition it uses internally
MongoDB, which is a NoSQL database that I know) ... except that Parse no
longer works under Unity.
If it can help you, I am candidate to test your developments on Unity in
advance of phase
In the meantime, I'm going to use the FireBase environment for my game,
while planning to migrate to Parse in the target.
Hoping that you will quickly make the new version.
Cordially
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/parse-community/Parse-SDK-dotNET/issues/253#issuecomment-369379636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE1d4MjacndCf-qhJU_hr0JocPJxo5Nrks5tZb1FgaJpZM4L6HmL
.


stats testing

conditional display using pandas
df.style.apply(highlight_greater, axis=None).bar(subset=["E",], color='dimgray')
store display data as a member of the frame

in reduce , need to store the matrix settings*values and process it to produce indicative matrix 2 best, 1 eq

need to have direction of metric.
df.rename(columns = {'A':'A ↑ ↓'}, inplace = True)


[DashboardLayout] Support collapsed mini-drawer by default

Add defaultSidebarCollapsed prop to DashboardLayout to start with mini-drawer on desktop-sized screens.
Includes test and docs demo.
Closes https://github.com/mui/toolpad/issues/4172
https://deploy-preview-4234--mui-toolpad-docs.netlify.app/toolpad/core/react-dashboard-layout/#start-with-mini-drawer-on-desktop

@apedroferreira If this is close to completion can it be a part of v0.8.0? Another user requested this.

@apedroferreira If this is close to completion can it be a part of v0.8.0? Another user requested this. CC: @Janpot

Just needs a review and to be rebased, so it should be possible to include it?

Also not sure if initialSidebarCollapsed would be a better name for the prop or not.

Also not sure if initialSidebarCollapsed would be a better name for the prop or not.

What do core components do?

Also not sure if initialSidebarCollapsed would be a better name for the prop or not.

What do core components do?

default seems more common, let's stick with it.

defaultValue in components like  or .
defaultChecked in  and  components.

There are some exceptions like initialState in the DataGrid but default seems good.


issue/pup-3958/add-puppet-version-header-to-requests

CLA signed by all contributors.

can you add a test, there's a similar one in spec/unit/indirectory/rest_spec.rb, under it "adds an Accept-Encoding header"

I have some time, working on adding the tests.

Merged in 203bc03


terraform-provider-ibm: 0.11.0 -> 0.11.1

Motivation for this change
Upstream version update
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg  build terraform-provider-ibm

Success on x86_64-linux (full log)
Attempted: terraform-provider-ibm
Partial log (click to expand)
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin
shrinking /nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin/bin/terraform-provider-ibm_v0.11.1
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin/bin
patching script interpreter paths in /nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin
checking for references to /build in /nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin...
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
/nix/store/w0wbscr7pkh65z1hnyhsqjg35d9ld711-terraform-provider-ibm-0.11.1-bin

Success on x86_64-darwin (full log)
Attempted: terraform-provider-ibm
Partial log (click to expand)
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
find: '/nix/store/g4407gk60flzni23wh2bgy2cdh9hvva4-terraform-provider-ibm-0.11.1': No such file or directory
/nix/store/3lqn8j9p7f3lswqril4g1ik2h57lxnrh-terraform-provider-ibm-0.11.1-bin

Success on aarch64-linux (full log)
Attempted: terraform-provider-ibm
Partial log (click to expand)
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin
shrinking /nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin/bin/terraform-provider-ibm_v0.11.1
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin/bin
patching script interpreter paths in /nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin
checking for references to /build in /nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin...
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
/nix/store/7pkjgr3mln7r48vnbv7a7q8zx2b4a4fp-terraform-provider-ibm-0.11.1-bin


[FEATURE]: Can gradient accumulation be used in the pretraining of llama2-70b?

Describe the feature
Can gradient accumulation be used in the pretraining of llama2-70b?
And if so, how can it be enabled？

您好，gemini对梯度累积的支持已经完成。
Hello, we have just supported gradient accumulation on Gemini plugin.
Usage can be referred to  docs/source/en/features/gradient_accumulation_with_booster.md, our online tutorials will also be updated within a few days.


Clockwork install doesn't set symlink up properly (windows/msys and mac)

I just updated everything here and things were smooth on my Arch Linux clone, but the clockwork symlinking didn't work on windows/msys and mac.
I ended up just symlinking from ~/.local/share/clockwork/build/clockwork to a link in my path and it works fine...but I just thought I would mention it.
Seems like the clockwork/scripts/symlink.vsh file isn't working correctly on these two platforms?

Ah, I see it is an issue upstream, as clockwork doesn't seem to be tested or made specifically for mac/msys. I guess we should fix and make a PR for the project?

Yeah that would be a good idea. I happened to encounter the clockwork project right around when I decided we should either:
a): write a custom VSH script file to be used for all of our "actions/tasks/commands/recipes"
b): create a custom tool which is written in V that behaves like just/make
The design of clockwork and how it works is good, my goal for migrating to it was to hopefully provide an easier experience for developers with the V compiler but nothing else. Kind of how I found just very useful and easy to use and install for my Go project workflows (since it's implemented in Go so its just a go install command away.
The downside of using such a project however is it is brand new, I was able to request the author implement a bunch of things early on which I didn't have the time to do, for example being able to define task categories and adjust the verbosity of the list output via the config file.

I'll DM you directly about this when I get a minute Kelly, and then for brevity and historical reasons whatever PR we/you end up raising with clockwork we can just link here for others to follow. :)

I have this resolved on the Clockwork side now, so it should work here now :P


Question on bot

I did some experimenting with the code trying to get rid of errors on extractor productions. Did not succeded yet, but I think i'm on the right way, now i want make decision -

rather to pass this iteration (in case there is something that didnt update yet what causes errors),

or to try to check if there is available action on selected Drone.

What did i try else, adressing this problem:

Tried but did not succeed on adding of list of target_vespene's to check if considered_vespene is in this list. It selects proper vespene geyser, but still errors. Don't know why for now :(

But I think I managed to achieve consistency on executing "build order", often there were no spawning pool starting for me and as a result - loss. Did some changes on logic: changed =='s to >= and added dict once = { 'needed_action' = True, ... } for every needed action so if bot starts another worker on start there will for sure be Overseer deployed. And after action 'needed_action' is set to False, so action does not repeat and next action proceeds.
I like what you are doing, want to take part in the project (soon i will do some pull requests basing on your "todo" list for now)
Message of this Issue is simple: please dont dissappear, i like your bot and i like that you are working on it :)
I like that strategy of fast expanding, but it needs some kind of logic to defend against rushes. VS zerg on VeryHard it's 50:50 depending on decicion of a bot to rush with zerglings or to stall.
Can you share some thoughts on what are you planning to do so i can assist you? If you want to see my code in pull requests, reply me :)

Hey @agi1512! Sorry that I missed your message. I'm new to project collaborations and this is my first time sharing an open source project of my own.
I haven't had much time to work on this project the past few months because I've been focusing on school and searching for a summer job (I got a job as a web developer at my school). Now that things have settled down for me, I plan to continue on this project.
I'm not sure whether your comment was posted before or after I divvied up my mega class into a hierarchy, but the target_vespene and the "build order" issues should be fixed. For reference, I've put all of my old code into a folder called: AreologyBotLegacy and the updated bot is under AreologyBot.
Regarding the TO-DO list, I'm either planning to move it to the readme text so that it's easier for others to view.
I know it's been quite a while since you've posted, but if you're still interested, I would love to have you on board!
And don't worry, this time I'm here to stay :)


Collect PDB related information.

This is a feature request, since we collect various information as an upgrade it will be amazing to log the PodDisruptionBudget information as well.
PDB in itself is a huge topic, but a log which can give enough data for the end user who understand will help in further analysis.
Extras PDB information: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
cc: @SriHarsha001 - might like this from this tool, (This has no direct connection with the other diagnostic tool which is based on rules engine) but I thought it might be good to add this information as PDB logs.
Any thoughts? please feel free to share.

@Tatsinnit - This is awesome. Yes, it makes complete sense to get a dump of PDB information from the cluster to analyze.


a few more states addition proposal

Hi Roger,
I found this little package extremely useful and would like to contribute with some low hanging fruits that I anyway coded for my project and PR it back :)
More specifically I added 5 more states
	// StateAccepted represents a (local) listener connection. This state gets triggered when a new incoming connection is made.
	StateAccepted

	// StateOpen represents the last part of a successful remote connection proccess.
	// This state's purpose is to signal when the connection is established and fully usable.
	StateOpen

	// StateClosed represents a finished connection cycle as an internal proccess of the package.
	// When triggered it means a successful connection has been terminated.
	StateClosed

	// StateFailed represents a remote dial to server failure, while the underline SSH connection is established.
	StateFailed

	// StateRemoteDropped represents a shut down SSH connection from server.
	// This state is the real remote server connection drop, not internal procedure of the package.
	StateRemoteDropped

I also included a check for connection drop from remote
	go func() {
		// check if connection is still alive
		err := sshConn.Wait()
		if err != nil {
			if tun.debug {
				log.Printf("SSH connection to %s has shut down: %s", server, err.Error())
			}
		}
		if tun.connState != nil {
			tun.connState(tun, StateRemoteDropped)
		}
	}()

thanks in advance,
Byron

hey, it's alright!
I used the code for a small project and afterwards I left it be.
I have no problem to change something if you give me clear instructions but I am looking at the code again and I dont understand what you would like to be done I am afraid.

But I don't like the states of the tunnel and the tunneled connections to share the same ConnState.

I dont understand what you are saying here. What would be the difference between the states of the tunnel and the states of the tunneled connection? Isn't a tautology?
from the comments // SetConnState specifies an optional callback function that is called when a SSH tunnel changes state.

"This would cause confusion when having multiple connections through the tunnel because you would not know which one the state you are receiving refers too."

I thought that sshTun := sshtun.New(8080, "my.super.host.com", 80) could only provide one connection at a time?

Maybe adding a SetForwardedConnState that allows to set a callback receiving those new states you proposed and a counter (or something to identify the connection).

I can see how to implement SetForwardedConnState but I have no idea what you mean by something to identify the connection in our context.
Please advice :)

yes! I do miss something! XD
is this code u r referring to tunneled connections?
// Accept connections
	go func() {
		for {
			localConn, err := localList.Accept()
			if err != nil {
				tun.errStarted(fmt.Errorf("Local accept on %s failed: %s", local, err.Error()))
				break
			}
			if tun.debug {
				log.Printf("Accepted connection from %s", localConn.RemoteAddr().String())
			}
			if tun.connState != nil {
				tun.connState(tun, StateAccepted)
			}

			// Launch the forward
			go tun.forward(localConn, config)
		}
	}()

I think I get your point now, will look at it a bit more but my ssh skills are limited and if you could take the the time to explain in more detail it will be greatly appreciated :)

hey, is something like this what u had in mind?

	// We set a callback to know the state of the forwarded connections
	sshTun.SetForwardedConnState(func(tun *sshtun.SSHTun, state sshtun.ForwardedConnState, forwardCounter int) {
		switch state {
		case sshtun.StateAccepted:
			log.Printf("Forward %d STATE is Accepted", forwardCounter)
		case sshtun.StateOpen:
			log.Printf("Forward %d STATE is Open", forwardCounter)
		case sshtun.StateClosed:
			log.Printf("Forward %d STATE is Closed", forwardCounter)
		case sshtun.StateFailed:
			log.Printf("Forward %d STATE is Failed", forwardCounter)
		case sshtun.StateRemoteDropped:
			log.Printf("Forward %d STATE is Dropped", forwardCounter)
		}
	})

2021/03/20 13:26:10 STATE is Starting
2021/03/20 13:26:10 STATE is Started
2021/03/20 13:26:11 Forward 0 STATE is Accepted
2021/03/20 13:26:11 Forward 1 STATE is Accepted
2021/03/20 13:26:11 Forward 2 STATE is Accepted
2021/03/20 13:26:11 Forward 3 STATE is Accepted
2021/03/20 13:26:11 Forward 4 STATE is Accepted
2021/03/20 13:26:11 Forward 5 STATE is Accepted
2021/03/20 13:26:12 Forward 0 STATE is Open
2021/03/20 13:26:12 Forward 3 STATE is Open
2021/03/20 13:26:12 Forward 4 STATE is Open
2021/03/20 13:26:12 Forward 1 STATE is Open
2021/03/20 13:26:12 Forward 5 STATE is Open
2021/03/20 13:26:12 Forward 2 STATE is Open

Hi @bh90210!
Sorry for not answering for this long time, I have had no energy to dedicate to this project because of my work and other projects and left it unanswered. The situation has not changed and my priorities are others by now, but maybe I get some time to review, merge or give feedback in the next months...
But reading your messages, I see you understood the point I was concerned about by yourself. :)
Answering your last question, yes, something like that was exactly what I had in mind!
Thank you very much for your contribution, I hope the project has been useful to you and I hope others can benefit from your work soon.


Add customizable HTTPS proxy authentication

It is currently impossible to authenticate with a proxy using
Proxy-Authenticate/Proxy-Authorization headers on a CONNECT method.
This adds support by allowing the user to specify a Hijack method that
provides the challenge header.

Sounds reasonable.
Do you think that we should instead allow a mode that controls the response altogether?
I'll merge it, and if another plausible response is due, we'll add a generic mode.

Thanks!  I think the IETF standards only allow a couple different nominal proxy responses.

Care to collect them, we need to add all of them I think.
On Tue, Apr 12, 2016 at 4:52 PM, Kevin Graney<EMAIL_ADDRESS>wrote:

Thanks! I think the IETF standards only allow a couple different nominal
proxy responses.
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/elazarl/goproxy/pull/153#issuecomment-208917075

Well, for authentication they're listed here: https://tools.ietf.org/html/rfc7235#page-7.  For CONNECT specifically, the details are here https://tools.ietf.org/html/rfc2817#page-7.

I was hoping you'll extend the PR for all of them if you have time ;-)
On Wed, Apr 13, 2016 at 5:04 AM, Kevin Graney<EMAIL_ADDRESS>wrote:

Well, for authentication they're listed here:
https://tools.ietf.org/html/rfc7235#page-7. For CONNECT specifically, the
details are here https://tools.ietf.org/html/rfc2817#page-7.
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/elazarl/goproxy/pull/153#issuecomment-209192810


Improve .NET SDK Example

The example provided here from my understanding is flawed for two reasons:

You can only specify a weaker consistency level, so you would never override the consistency level on a per request basis with Strong. You would also not override with Bounded Staleness as it behaves the same as Strong for reads and you shouldn't override with Session as you would not have a session token unless the default consistency when writing was Session. So really you should only ever chose Consistent Prefix or Eventual. I'm amazed this is not better documented and mentioned anywhere.
You can only override the consistency level on a pre request basis for reads - not writes. Yet your example is trying to write by creating a new item. So I'd imagine this example would just fail or be ignored assuming the default consistency was already Strong.

Hence the example provided is quite poorly designed as it is not possible for the above two reasons.
Ideally change the example to perform a read with the request based consistency level of Consistent Prefix or Eventual which are the only two levels that would actually take effect.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 30408ba6-333d-6fe5-0df2-e545f6422ba4
Version Independent ID: 7fccbe15-a6f4-7777-293b-ff6d105567c5
Content: Manage consistency in Azure Cosmos DB
Content Source: articles/cosmos-db/nosql/how-to-manage-consistency.md
Service: cosmos-db
Sub-service: nosql
GitHub Login: @seesharprun
Microsoft Alias: sidandrews

I see the other examples (Java) use Eventual and perform a read which is exactly as I suggested. Please fix the .NET SDK example.

@krispenner Thank you for your feedback. We will review and get back shortly.

Wow! You are right. I'm not sure why the .NET code sample drifted so far away from the others but it has been fixed to be accurate and reflect a real-world scenario. This fix will publish soon.
Thank you again for taking the time to review this and provide feedback.


Character Data

So I'm not all that sure if this is a bug or just something on my part but on my character page its saying that I have Xiangling instead of Beidou. It could be that I just pulled Beidou but its been saying that I've had Xiangling even before I made a wish. It doesn't even say in the logs on the wish banners that I've ever pulled Xiangling.

I added xiangling as default because you get it for free after defeating abyss floor 3

Ooh! Sorry 😓 I haven't really done the abyss floors so I never knew that! Thank you anyways!!

no problem :)


rafthttp: refactor streamtype

Add String() func to represent streamtype better
Add parse func to let convertion between endpoint and streamtype
clean

I do this for log cleanup and backoff work.
There doesn't exist an official way to represent stream type well, so i introduce this one.

I did not see the benefits of this pull request actually. Can you please explain more?

I want a method to represent a stream type well in log. Today we print it out using string(t), which prints out msgapp/msgappv2/message. This is hard to understand without stream context in log line.

@yichengq I think we can simply add a string func to the existing code.

@xiang90 k. will use that simple way.


Segfault with ffi.load('gettextlib').

This code throws segfalt:
local ffi = require 'ffi'
gettext = ffi.load('gettextlib')
local lgi = require 'lgi'

I'm using linux mint 18, gettext 0.19.7, lua 5.2 with ffib from https://github.com/facebook/luaffifb, lgi from luarocks. What's wrong? If I will load gettext after lgi, all is ok.

Which gettext library are you loading there? It seems to be part of the problem.
The following works fine here: lua5.1 -e 'gettext = require("ffi").load("xcb") require("lgi") print("done")

I've got this problem only with gettext.
ls -l /usr/lib/x86_64-linux-gnu/libgettextlib.so
lrwxrwxrwx 1 root root 23 Jul  1 13:45 /usr/lib/x86_64-linux-gnu/libgettextlib.so -> libgettextlib-0.19.7.so

In that case you must be on some Ubuntu version that I don't have access to. There is no such file in any Debian package (and the path suggests that you are using Debian or some Debian derivative).
http://packages.ubuntu.com/search?suite=xenial&arch=amd64&mode=exactfilename&searchon=contents&keywords=libgettextlib.so

I'm sorry for wrong library name in ffi.load, it's really gettextlib.

I found it: http://packages.ubuntu.com/search?mode=exactfilename&suite=xenial&section=all&arch=amd64&keywords=libgettextlib.so&searchon=contents.

Ok, I can reproduce with lua5.1 -e 'gettext = require("ffi").load("gettextlib-<IP_ADDRESS>") require("lgi")'. However, no idea why this crashes. It crashes here which seems to just be the first call to gi.require. The crash is inside of g_irepository_require which calls some function which calls some function which causes g_hash_table_destroy to dereference a NULL pointer.
Dunno, sorry.

Seems to be a problem with libgettextlib. It exports its own version of glib symbols, for example:
$ nm --dynamic /usr/lib/libgettextlib-<IP_ADDRESS>.so | grep g_hash_table_new
000000000002be50 T g_hash_table_new
000000000002bde0 T g_hash_table_new_full

That does not seem correct.

Why are you loading libgettextlib at all? What are you doing with it? It seems to be more or less an implementation detail of gettext that should not be used on its own.
Anyway, this library exports g_hash_table_new, but does not export g_hash_table_destroy, so the version of libgettextlib is used to create the hash table, but the "real" function is used to destroy it again. Looking at the source code, the ABI here is different. libgettextlib uses
typedef struct hash_table
{
  unsigned long int size;   /* Number of allocated entries.  */
  unsigned long int filled; /* Number of used entries.  */
  struct hash_entry *first; /* Pointer to head of list of entries.  */
  struct hash_entry *table; /* Pointer to array of entries.  */
  struct obstack mem_pool;  /* Memory pool holding the keys.  */
}

Current glib uses
struct _GHashTable
{
  gint             size;
  gint             mod;
  guint            mask;
  gint             nnodes;
  gint             noccupied;  /* nnodes + tombstones */

  gpointer        *keys;
  guint           *hashes;
  gpointer        *values;

  GHashFunc        hash_func;
  GEqualFunc       key_equal_func;
  gint             ref_count;
#ifndef G_DISABLE_ASSERT
  /*
   * Tracks the structure of the hash table, not its contents: is only
   * incremented when a node is added or removed (is not incremented
   * when the key or data of a node is modified).
   */
  int              version;
#endif
  GDestroyNotify   key_destroy_func;
  GDestroyNotify   value_destroy_func;
};

I reported https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842478 and propose that this bug report against lgi is closed.

I'm using gettext below, but this code just crashes.

Then you are loading the wrong library. gettextlib is not meant to be used by anything except for gettext's own tools. Are you perhaps looking for libintl (load("intl")) or libc? Do you have some more lines of code to look at?

Does perhaps the following help you?
ffi = require("ffi")
ffi.cdef("const char* gettext(const char* text);")
print(ffi.string(ffi.C.gettext("foo")))'

In fact, I'm using library from https://raw.githubusercontent.com/bungle/lua-resty-gettext/master/lib/resty/gettext.lua. I found this code:
local ok, lib = pcall(ffi_load, "intl")
if not ok then
ok, lib = pcall(ffi_load, "gettextlib")
if not ok then
lib = C
end
end
Before, ffi_load = ffi.load

It seems to me that the issue is quite clear, loading gettextlib into global process namespace causes issues because of symbols coming from gettextlib clash with proper ones from glib.  This has nothing to do with lgi and IMO it is clear cockpit error.  I'll close this issue soon unless someone will raise objections with new facts. :-)


Enhance METdatadb to load the additional climatology column in the ORANK line type updated for met-10.0.0.

Describe the Enhancement
dtcenter/MET#1451 makes two changes to the ORANK line type created by Ensemble-Stat. It renames the existing column from CLIMO to CLIMO_MEAN and addends a new column to the end of the line names CLIMO_STDEV. The updated line type will be available in the met-10.0.0-beta4 release. This task is to enhance METviewer to load the updated contents of the ORANK line type for MET version 10.0.0.
@JohnHalleyGotway will provide an updated sample data file as soon as one is available.
Time Estimate
Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
No sub-issues required.
Relevant Deadlines
METplus 4.0 release
Funding Source
?
Define the Metadata
Assignee

[x] Select engineer(s) or no engineer required: Venita
[x] Select scientist(s) or no scientist required: no scientist required

Labels

[x] Select component(s)
[x] Select priority
[x] Select requestor(s)

Projects and Milestone

[x] Review projects and select relevant Repository and Organization ones or add "alert:NEED PROJECT ASSIGNMENT" label
[x] Select milestone to next major version milestone or "Future Versions"

Define Related Issue(s)
Consider the impact to the other METplus components.

[x] METplus, MET, METdatadb, METviewer, METexpress, METcalcpy, METplotpy
dtcenter/MET#1451
dtcenter/METviewer#261

Enhancement Checklist
See the METplus Workflow for details.

[ ] Complete the issue definition above, including the Time Estimate and Funding Source.
[ ] Fork this repository or create a branch of develop.
Branch name: feature_<Issue Number>_<Description>
[ ] Complete the development and test your changes.
[ ] Add/update log messages for easier debugging.
[ ] Add/update unit tests.
[ ] Add/update documentation.
[ ] Push local changes to GitHub.
[ ] Submit a pull request to merge into develop.
Pull request: feature <Issue Number> <Description>
[ ] Define the pull request metadata, as permissions allow.
Select: Reviewer(s), Project(s), Milestone, and Linked issues
[ ] Iterate until the reviewer(s) accept and merge your changes.
[ ] Delete your fork or branch.
[ ] Close this issue.

Please find updated version of the ORANK line type for met-10.0.0 attached:
sample_orank.tar.gz.txt
(Note: added .txt to the tarfile name to trick GitHub)

Please see this comment to METviewer #259 for sample stat data:
https://github.com/dtcenter/METviewer/issues/259#issuecomment-789011255

Completed with issue 48.


not a valid react native component!

Hi ,
when i tried to embed the "superchart" Component in the react native app
the failure occurs in the following error
Invariant Violation : View config not found for name div :Make sure to start a component name with a capital letter
This error is located at :
in div (created by SuperChartCore)
in  SuperChartCore  (created by SuperChart)
div is an invalid React Native Component

The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: https://github.com/apache/superset/issues/13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this issue on the main repo if it is still relevant.


TLS helpers to ease Windows support

@compnerd what do you think?

LGTM; I can rebase my patch for the mocking once this is merged!  Thanks!


[Feature Request] Start providing suggestions after first suggestion load

The concept is brilliant and very useful, it is just a little painful to wait until all 10 pages are indexed

Thanks for the feedback @bast-guru. That was what what the feature available.
You can reduce the number of results in the settings to get results quicker


Drag-drop: add state to carried entity during hover

Give entity in hand opportunity to respond to finding a drag-drop target

no longer relevant in new api


response code 204

Expected Behavior
insomnia resolves request, says no content but request successful
Actual Behavior
insomnia never resolves the request
Reproduction Steps
create a rest api which responds with no content & http code 204
request it with insomnia
Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
No response
Insomnia Version
2022.3.0
What operating system are you using?
Windows
Operating System Version
Windows 11, 21H2
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response

Hi @ian-ok, thank you for reporting this issue!
I'm not able to reproduce this for example requesting to httpbin.org/status/204 which forces the status code to 204 and returns no content.

Can you provide more details into what you see, and are you able to resolve the same request elsewhere, for example by sending a curl request?

to send the request i used

I assume you mean to send the response?
I think it's more likely that your request handler is hanging before, or is returning before reaching the line you shared.

i dont think so, if i add content to the request it works as expected

@ian-ok this could have something to do with the implementation of your server, not necessarily with Insomnia.
I've tried reproducing with a simple server setup:
const http = require('http');
const port = 3000;

http.createServer(function (req, res) {
	res.writeHead(204, {'Content-Type': 'text/plain'});
	res.end('test');
}).listen(port);

And I was able to still get the proper 204 No Content response.

I'm marking this issue as closed for now, but I would encourage you to check if you notice similar behavior using for example a curl request, or with other API clients, as it might indeed be an implementation problem.
If you still face this problem, or you find new ones, please feel free to open an issue.


[Suggestion]You could use a private API to scroll to specific text

https://discord.com/channels/686053708261228577/840286264964022302/882336266228748318

leaf.openFile(file, {eState: {match: {content: originalTextContent, matches: [[start, end]]}}});
Which might be better than add a block reference to a text?

That looks cool - thanks - really appreciated, will have a play and see what I can do - it'd be great not to be adding block references (and cut out a hacky sleep I have in the code too :)

OKay, so I've had an initial stab at this and have come up with a solutiuon (that doesn't quite work yet), based on your suggestion coupled with the code from obsidian-community-lib#openOrSwitch so it opens the file in either an existing leaf or in a new one if it isn't already open.
I'm then using leaf.setEphemeralState({ line: lineNumber }) to set the highlight on the line of the todo title.  This works when the file is opened in a new leaf, but not when it is in an already opened leaf.  This is where it is not working:
https://github.com/roovo/obsidian-card-board/blob/b625c5028d5945a6b8c5194e8ba6e8e97568c5fa/typescript/view.ts#L213-L214
I have ended up lost in the logic, as it is actually highlighting the correct line in the file and then eventually it ends up in the line inside the t.prototype.onDocumentClick function:
t.prototype.onResize = function() {
    this.trigger("resize")
}
,
t.prototype.onDocumentClick = function(e) {
    e.defaultPrevented || this.trigger("click")
}
,
t.prototype.onLinkContextMenu = function(e, t, n, i) {
    var r = new Uv(this.app);
    this.handleLinkContextMenu(r, t, n, i) && (e.preventDefault(),
    r.showAtMouseEvent(e))
}

This triggers the click and the highlight goes away - hmphh
This will be really cool if I can get it working as I could change it later to highlight all the lines for a task with subtasks and whatnot underneath it, so am determined to get this fixed, but may need some help working out why it is doing this (and what I need to do to stop it).  So if you have any ideas......
I've been stepping through javascript long enough for today tho 😵💫

Think I have it working so will hopefully be incorporated into the first (non-beta) release - yay

A big thanks @Quorafind - a massive improvement not having to write block links 😄 .  Code is that little bit sweeter now too!!


313 highlight in use addresses in other division

Resolves #313

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

54 of 55 (98.18%)  changed or added relevant lines in 7 files are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 94.658%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

CourageScores/Services/Division/DivisionDataDtoFactory.cs
6
7
85.71%

Files with Coverage Reduction
New Missed Lines
%

CourageScores/ClientApp/src/components/division_fixtures/sayg/PlayerInput.js
1
87.36%

CourageScores/Services/Division/DivisionDataDtoFactory.cs
4
92.92%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
6153

Relevant Lines:
6271

💛  - Coveralls


add Qwen2-VL

SOTA light weight vision model
https://github.com/QwenLM/Qwen2-VL
llama.cpp issue #9246

+1

support +1

hope to support

+1

+1

+1

+1

+1

hope to support

** I am really looking forward to this model being used in Ollama**

yes pls.

support +1

support +1

support +1

+1

+1 Please

+1

+1

+1

+1

hope to support

Benchmarks look very strong, please support this model.

+1

+1

+1 ❤

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

Here to support :)

+1 this model was able to read recipes that other models failed at and i was using openai to ocr with.

here to support :) soon there will be the 72 version

+1

+1

when will this be added? I've been looking to use it

+1

+1

+1

hope to add qwen2-vl soon, thank you all guys!

+1

+1

+1 !!!

+1!!!

+1 Please!

+1 !!!

+1

+1

+1 Please!

+++！

++1

+1

++++

+++++

+++++++++

Hey guys, let's stop the +1 or +++ activities, this is a "mail disaster" for each subscriber, just liking the existing replies is enough

+++1

++++1

+1

+1

+1

+1

one more +1

+1

+1

+1

hope to support

+1 please

+1 The model is great!

Add my voice with you

+1
plz

++++++++1

+1

+10^10 man pls man ollama main dev pls

this is dumb, its been almost 5 months.
Add it
+1

+1

Qwen2-VL work better than llama3.2-vision 11B for pictures contain Chinese Character, so just add it plz

Ollama is based on Llama.cpp and guff models, qwen VL is not compatible with llama.cpp as it uses a different archetechure because of its vision. it wont be added anytime soon likley.

Ollama is based on Llama.cpp and guff models, qwen VL is not compatible with llama.cpp as it uses a different archetechure because of its vision. it wont be added anytime soon likley.

llama.cpp support qwen-vl now: https://github.com/ggerganov/llama.cpp/pull/10361

Yes, llama.cpp supports qwen2-vl now.
https://huggingface.co/bartowski/Qwen2-VL-72B-Instruct-GGUF
https://huggingface.co/bartowski/Qwen2-VL-7B-Instruct-GGUF
https://huggingface.co/bartowski/Qwen2-VL-2B-Instruct-GGUF

+1

hope to support

+1

I experimented with vllm, but Qwen2 vl on ollama would be just awesome. (with multiple image support).

Can we use Qwen2-VL now? It's the best visual model, after all

Yes, llama.cpp supports qwen2-vl now.

They stupidly droped multimodal from llama-server 9 month ago, so no online VLM, only local

This model would be so perfect for the kind of thing I'm working on with tool calls. Support for this model would be very useful.

Does anyone know if there is currently a team supporting the use of the qwen2-VL model on Ollama?

https://github.com/ollama/ollama/commit/8c9fb8eb73afc220e8bf99772572096b6498b748
will this commit mean supporting qwen vl


How to charge for Artifact?

According to the document https://azure.microsoft.com/en-us/pricing/details/devops/azure-devops-services/
We could to know that if Azure Artifacts includes a free usage tier of 2 GB. Any usage below this level isn’t billed to your subscription. Above this limit, we charge you for your actual usage. The charge is 2 GB free, then starting at $2 per GB /mo.
Now the question is:

Is $2 per GB/mo settled by natural month? Or is it a one-month settlement based on the 30 days after the start of the day I applied?

If I applied for 2GB of extra space, but after using it for a while I cleared them from my feed, how is it billed after it is cleared?

Thanks.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b5531731-8bd5-b178-9307-f01b3d2f23b3
Version Independent ID: 8dea3b69-ad79-5045-3820-4a83a0bc4ce0
Content: Sign up for Azure Artifacts
Content Source: docs/artifacts/sign-up-azure-artifacts.md
Product: devops
Technology: devops-artifacts
GitHub Login: @chcomley
Microsoft Alias: chcomley

Hi @liushuanggang, Thanks for reaching out.
We bill daily, based on usage above the free amount. If you delete data, which drops you back under the free amount, you should see it reflected the next day (and charges are stopped).
We do charge for the Recycle Bin – where packages are “stored” for 30 days after deletion, in case they need to be restored. So to see usage freed up, the deleted packages will have to be removed from the bin as well. We don't recommend deleting a feed. We keep storage around for 30 days, but there's no UI to restore/permanently delete, so some customers have increased their limit due to this.
Please let me know if you have any further questions. Thank you!

Hi @chcomley, Thanks for your quickly reply. Your reply make me clear my second question, but I still confused about my first question:

Is $2 per GB/mo settled by natural month? Or is it a one-month settlement based on the 30 days after the start of the day I applied?

You said you bill daily. That means if I use 3GB, I will pay for an extra 1GB. It is no problem at all. But if I just used extra space for up to 15 days, that means I only need to pay $1? No matter which day of the month I start applying and ending the use of my feed.
That means your pricing is $2  per GB month, but the actual settlement is based on daily?

Hi @liushuanggang,
Billing is set up by what you’re referring to as a “natural month."
While we charge monthly, we calculate the billed amount daily. We take your daily usage, take the monthly amount that would be charged, and divide that by 31. $1 per GB of storage per month for your first 10 (after the 2 free) GB of storage.
So, if you used 3GB of storage for one day, you'd be billed 1GB=$1/31 = 3.2 cents. If you had 3GB of storage for 15 days, then your bill would show 3.2 cents x 15 = .48 cents.

@chcomley, Got it! Thanks for your detailed reply.


Bug: Inserting a wxAuiToolBar bar, the wrong wx header file is added

Description:
Perhaps I'm missing something, but as I tried to insert a wxAuiToolBar I would have expected #include <wx/aui/auibar.h> instead of #include <wx/toolbar.h> which will lead in a building error

This was fixed in #796 -- however the commit didn't mention the fix to the include file. I've now listed the fix in the CHANGES.md file.


Feature back last position

Hi spgennard,
I tried to set all of your suggestions. I think that is ok.
Feel free to change or recommend anything else.
Thanks

Hi,
What is the advantage of this over the standard navigation functions eg;
Alt+Left
Alt+Right
?

Hi,
So, when I try to move for a section, and decided to move to another
section inside of this and decided to see one third section... and after
see what I wanted,  I would like to come back...
I don't know,  there's a standard navigation for that?
On Mon, Jun 10, 2019, 6:59 AM spgennard<EMAIL_ADDRESS>wrote:

Hi,
What is the advantage of this over the standard navigation functions eg;
Alt+Left
Alt+Right
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spgennard/vscode_cobol/pull/74?email_source=notifications&email_token=AAPIZAEABX6VVN5KQBCSDA3PZYQXNA5CNFSM4HWQHWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJORCA#issuecomment-500361352,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPIZAF7RBPEYDRPC7KCOFLPZYQXNANCNFSM4HWQHWPQ
.

After you jump to a section, you can jump back with ALT+LEFT ARROW and then move back with ALT+RIGHT ARROW.
(on PC)

Ah, ok..
I realized that on Mac the keys are different..
Anyway... Thanks...
On Mon, Jun 10, 2019, 9:03 AM spgennard<EMAIL_ADDRESS>wrote:

After you jump to a section, you can jump back with ALT+LEFT ARROW and
then move back with ALT+RIGHT ARROW.
(on PC)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spgennard/vscode_cobol/pull/74?email_source=notifications&email_token=AAPIZADKWUO3BWRLWMFDAULPZY7JBA5CNFSM4HWQHWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJWBQI#issuecomment-500392129,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPIZADMYIZSZWM6UWNASVTPZY7JBANCNFSM4HWQHWPQ
.

Given that both of us did not pick up the fact that navigation keystrokes exist, perhaps I should add a shortcut for it, so it is more visible.  What do you think?

I think so... I think is a good idea! This way is more explicit.
Em ter, 11 de jun de 2019 às 02:53, spgennard<EMAIL_ADDRESS>escreveu:

Given that both of us did not pick up the fact that navigation keystrokes
exist, perhaps I should add a shortcut for it, so it is more visible. What
do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spgennard/vscode_cobol/pull/74?email_source=notifications&email_token=AAPIZAF74UTHFZEQVMX6NODPZ44V7A5CNFSM4HWQHWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMAROA#issuecomment-500697272,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPIZAH7QBLZZCV2DRLAEV3PZ44V7ANCNFSM4HWQHWPQ
.

Hey spgennard,
One thing that I realized about the use the standard navigation, that is
the standard navigation occur over all the open documents.
So, if you want just back the positions over the same document, this
implementation has more sense.
But it is just a thing that  I realized. In the end, this implementation
has the same function that the standard navigation, but limited at one
single document and just for coming back in the positions.
Em ter, 11 de jun de 2019 às 09:01, Rodrigo Augusto Silva dos Santos <
<EMAIL_ADDRESS>escreveu:

I think so... I think is a good idea! This way is more explicit.
Em ter, 11 de jun de 2019 às 02:53, spgennard<EMAIL_ADDRESS>escreveu:

Given that both of us did not pick up the fact that navigation keystrokes
exist, perhaps I should add a shortcut for it, so it is more visible. What
do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spgennard/vscode_cobol/pull/74?email_source=notifications&email_token=AAPIZAF74UTHFZEQVMX6NODPZ44V7A5CNFSM4HWQHWP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMAROA#issuecomment-500697272,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPIZAH7QBLZZCV2DRLAEV3PZ44V7ANCNFSM4HWQHWPQ
.

See official doc about navigation:

Alternatively, you can use [Alt]+[Left] and [Alt]+[Right] to navigate between files and edit locations. If you are jumping around between different lines of the same file, these shortcuts allow you to navigate between those locations easily.

I do think it would be useful if vscode would have an option to: only switch between edit positions, too (maybe with a [SHIFT] modifier) but this should be implemented in vscode core to be available for any code (it is very bad if it just work with one file but not with the other).

Do you want to raise this as an issue with vscode itself?   If so, can we close this merge request?

let me know the issue number on vscode of the issue you have raised, closing this out


"Align parameters and components": Align assignments across multiple parenthesis in one VALUE

Hi Jörg-Michael, I'm sorry to open another issue for rule "Align parameters and components" - I hope I don't annoy with this... 😅
This issue is about the option "Align assignments" in a VALUE statement to create an internal table. Example:
  METHOD example.
    TYPES: BEGIN OF ly_type,
             short       TYPE i,
             medium      TYPE i,
             longer_name TYPE i,
           END OF ly_type.

    DATA lt_example TYPE TABLE OF ly_type WITH EMPTY KEY.

    lt_example = VALUE #( ( short       = 1
                            medium      = 1
                            longer_name = 3 )
                          ( short  = 2
                            medium = 2 )
                          ( short       = 3
                            longer_name = 3 ) ).
  ENDMETHOD.

The second table line is aligned based on its longest component name medium. Instead, I'd like it to be aligned to the longest component used (in this case longer_name):
  METHOD example.
    TYPES: BEGIN OF ly_type,
             short       TYPE i,
             medium      TYPE i,
             longer_name TYPE i,
           END OF ly_type.

    DATA lt_example TYPE TABLE OF ly_type WITH EMPTY KEY.

    lt_example = VALUE #( ( short       = 1
                            medium      = 1
                            longer_name = 3 )
                          ( short       = 2
                            medium      = 2 )
                          ( short       = 3
                            longer_name = 3 ) ).

    lt_example[ 1 ]-longer_name = 1.
  ENDMETHOD.

For completeness, here are my settings:

Hi ConjuringCoffee,
another issue on "Align parameters and components" is not a surprise, given that it is a rather complex rule!
And you're completely right, alignment should work (at least by default) across these table rows; that has actually already been on my list…
Kind regards,
Jörg-Michael

Hi ConjuringCoffee,
this should work now :-) If I enter
    ets_table = VALUE #( date = gc_any_date
                           id = gc_any_id

                           ( item_name = 'ANY'
*                      size = 'M'
                              quantity = 1 )
                             ( item_name = 'OTHER'
                                quantity = 2
                                reference_id = '12345' )
                                   ( item_name = 'THIRD'
                                  quantity = 3 ) ).

activating the new option

the "Align parameters and components" rule produces:
    ets_table = VALUE #( date = gc_any_date
                         id   = gc_any_id

                         ( item_name    = 'ANY'
*                           size         = 'M'
                           quantity     = 1 )
                         ( item_name    = 'OTHER'
                           quantity     = 2
                           reference_id = '12345' )
                         ( item_name    = 'THIRD'
                           quantity     = 3 ) ).

Deactivating the option leads to the previous behavior:
    ets_table = VALUE #( date = gc_any_date
                         id   = gc_any_id

                         ( item_name = 'ANY'
*                           size      = 'M'
                           quantity  = 1 )
                         ( item_name    = 'OTHER'
                           quantity     = 2
                           reference_id = '12345' )
                         ( item_name = 'THIRD'
                           quantity  = 3 ) ).

Kind regards,
Jörg-Michael

Hi ConjuringCoffee,
thanks for the "hooray emoji(s)" :-) And again, very good point, this has now really improved the optics of such VALUE statements.
Kind regards,
Jörg-Michael


powertoys run support dec2hex and hex2dec

Description of the new feature / enhancement
Powertoys run  calculator, supports different hexadecimal conversion command
Scenario when this would be used?
Programmers often use decimal hexadecimal conversion to each other
Supporting information
No response

/dup #6124

/dup #3272

ugh ... keep finding ones that at first glance are the same, this is an actual /dup https://github.com/microsoft/PowerToys/issues/24216

actually, /dup https://github.com/microsoft/PowerToys/issues/13905 as this is a lower number


fix(): Missing name in tracing

Resolved missing namespace component of ClusterID
Part of #5048
Signed-off-by: Whitney Griffith<EMAIL_ADDRESS>
Description:
Envoy Sidecar Container Spec sets the --service-cluster parameter based on ServiceAccount and pod.Namespace. Namespace component is always missing, even in example tracing documentation.

Testing done:

[x]  Test in AKS environment
[x] Test in Kind environment

Additional Work:

[x] Update example tracing documentation PR

Affected area:

Functional Area

New Functionality
[ ]

CI System
[ ]

CLI Tool
[ ]

Certificate Management
[ ]

Control Plane
[ ]

Demo
[ ]

Documentation
[ ]

Egress
[ ]

Ingress
[ ]

Install
[ ]

Networking
[ ]

Observability
[X]

Performance
[ ]

SMI Policy
[ ]

Security
[ ]

Sidecar Injection
[X]

Tests
[ ]

Upgrade
[ ]

Other
[ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project?

Did you notify the maintainers and provide attribution?

Is this a breaking change?

Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)?

Can you reproduce the bug with a failing unit test?

+1, object meta is embedded, so this change looks like a no-op to me

Can you reproduce the bug with a failing unit test?

The latest version of OSM does not have missing namespace in the name. See pictures attached.
However our latest docs is showing outdated images.

Can you reproduce the bug with a failing unit test?

The latest upstream version of OSM does not have missing namespace in the name. See pictures attached.
However our latest docs is showing outdated images. PR to fix this: docs/tracing: update jaeger ui examples #440

The current OSM version, v1.1.2 , in the AKS add on has the missing namespace

@whitneygriffith do I understand correctly there is not change needed on main?  Do we know what commit fixed this and needs to be backported to 1.1.X branch?  Does 1.2 have the fix?

@whitneygriffith do I understand correctly there is not change needed on main? Do we know what commit fixed this and needs to be backported to 1.1.X branch? Does 1.2 have the fix?

As of now, no changes are needed on main. 1.2 does not have the fix. I am confirming that main works within the aks environment before advising the customer to expect the fix in our upcoming release.
Also need to investigate which commit fixed this.

@whitneygriffith do I understand correctly there is not change needed on main? Do we know what commit fixed this and needs to be backported to 1.1.X branch? Does 1.2 have the fix?

As of now, no changes are needed on main. 1.2 does not have the fix. I am confirming that main works within the aks environment before advising the customer to expect the fix in our upcoming release.
Also need to investigate which commit fixed this.

The namespace value is missing in the aks environmen with osm built from the latest main

Missing namespace is resolved with relying on req.namespace. PR is ready for review.

Is it worth adding a test to something like https://github.com/openservicemesh/osm/blob/main/tests/e2e/e2e_metrics_test.go?

Will investigate adding a unit test to ensure this bug doesn't happen again


From private repo

@PMEds28 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


DINT-1178: Add of 'channel' attribute to all storefront events

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

It looks like every AEP event now needs this channel attribute, as well as the commerce scope set.  We should come up with a solution add this information to the event payload without manipulating every handler.
One potential solution would be to pass along the Event parameter to the sendEvent function, and include the logic for adding channel info and commerce scope to the payload in that sendEvent function.
@aniham and @NadiyaS does that sound reasonable?


Update GitKraken to v1.4.1

As Tittle.

OK, I'll fill the template next time.
I don't like update cask with cask-repair that will create a new branch for update. I don't like to create unnecessary branch.

@RJHsiao Running cask-repair -d will delete those branches, FYI.

Thanks 👍


Issue: Issue with ConversationBufferMemory in FastAPI code

Issue you'd like to raise.

Python Version: [Python 3.8]
Issue: When I used ConversationBufferMemory then it returns the response out of the context. when I remove memory functionality from my code it works fine.

CODE:
`from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
from langchain.llms import OpenAI
import pinecone
from langchain.vectorstores import Pinecone
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.chains.conversation.memory import ConversationBufferMemory
from langchain.prompts import PromptTemplate
from langchain.chains.question_answering import load_qa_chain
class MemoryConfig:
def init(self):
self.template = """You are a chatbot having a conversation with a human. If you don't know the answer, you will respond with "I don't know.
{context}
{chat_history}
Human: {human_input}
Chatbot: """
self.prompt = PromptTemplate(
input_variables=["chat_history", "human_input", "context"], template=self.template
)
app_settings = MemoryConfig()
app = FastAPI()
user_sessions = {}
class ExportRequest(BaseModel):
query: str
categoryName: str
@app.post("/chat")
def chat(request: ExportRequest):
query = request.query
categoryName = request.categoryName
index_name = categoryName
openai_api_key = "sk-xxxx"
PINECONE_API_KEY = "xxxxx"
PINECONE_API_ENV = "us-west4-gcp-free"

pinecone.init(
    api_key=PINECONE_API_KEY,
    environment=PINECONE_API_ENV
)

embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key)

index_name = index_name
vectorstore = Pinecone.from_existing_index(index_name, embeddings)
memory = ConversationBufferMemory(memory_key="chat_history", input_key="human_input", return_messages=False)

# Get or create a session for the user
user_session = user_sessions.get(categoryName, {})
print("user_session 1", user_session)
if "chat_history" in user_session:
    for entry in user_session['chat_history']:
        user_message = entry['human_input']
        ai_message = entry['chatbot_response']
        memory.chat_memory.add_user_message(user_message)
        memory.chat_memory.add_ai_message(ai_message)
# Initialize the conversation history for this session
if "chat_history" not in user_session:
    user_session["chat_history"] = []
# Load the conversation history from the session
chat_history = user_session["chat_history"]
chain = load_qa_chain(
    OpenAI(temperature=0, openai_api_key=openai_api_key), chain_type="stuff",memory=memory, prompt=app_settings.prompt
)

try:
    docs = vectorstore.similarity_search(query)
    output = chain.run(input_documents=docs, human_input=query)

    # Append the latest user input and chatbot response to the conversation history
    chat_history.append({"human_input": query, "chatbot_response": output})
    # MEMORY LOAD
except Exception as e:
    return HTTPException(status_code=400, detail="An error occurred: " + str(e))

# Save the updated conversation history in the session
user_session["chat_history"] = chat_history
user_sessions[categoryName] = user_session
# memory.clear()
return {"status": 200, "data": {"result": output, "MEMORY":memory}}

if name == "main":
import uvicorn
uvicorn.run(app, host="<IP_ADDRESS>", port=8000)
`
Query: 1
{
"query": "Who is the PM of India?",
"categoryName": "langchaintest"
}
"result": " I don't know",
Query: 2 (Hit API 2nd time with same question)
{
"query": "Who is the PM of India?",
"categoryName": "langchaintest"
}
"result": " The Prime Minister of India is Narendra Modi.",
NOTE: my Pincone DB doesn't have any context related to "The Prime Minister of India is Narendra Modi."
I want to response only those query which exist in pinecone db.
Please let me know if there's any additional information or troubleshooting steps needed. Thank you for your attention to this matter.
Suggestion:
No response

@dosu-bot.
so how can I restrict in my code to response only from the Pinecone context?

@docu-bot,
When i used your provided code I am getting this issue :
document_ids = set(vectorstore.get_all_ids())
AttributeError: 'Pinecone' object has no attribute 'get_all_ids'


mqtt publish null values stopped working

What are the steps to reproduce?
publish null with mqtt to a topic
What happens?
publishes the string "null"
What do you expect to happen?
publish null value (clear)
Please tell us about your environment:

[ ] Node-RED version:
[ ] node.js version: 0.17.5:
[ ] npm version:
[ ] Platform/OS: linux
[ ] Browser:

Hi - thanks for reporting. When you say 'stopped working' - did this previously work for you? I'm not aware of this code path changing for some time, so likely to have been like this for quite a while.

Hmm yeah... workaround for now is to send ""  ie a blank string...

I wan't to say it has been working but I might got it confused. I'm just returning to node-red and I want to say it worked last time I messed around.
Blank string is not null :-)
Found another workaround though, new Buffer(0).

well a blank string "" is 0x  so yeah... like what I said...

@dceejay I'm apparently a mess today, i thought i did try "" and didn't get null. But i tried it again and yes of course it worked.

:-) - but indeed sending a real null ought to also do the right thing - so thanks for spotting it.


fix: Skip create application when root application is present

Description
During git checkout to a remote branch, if the underlying application is present in DB, the operation creates an extra application with name "null". This PR fixes the issue.
PR fixes following issue(s)
Fixes #24614
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Bug fix (non-breaking change which fixes an issue)

Testing

How Has This Been Tested?

[x] Manual
[x] JUnit

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test sha=9befdf2

/ok-to-test sha=4f889b6

/ok-to-test sha=d88d673

/build-deploy-preview

Verified the issue and it works fine now.