diff --git "a/so_bigquery.ipynb" "b/so_bigquery.ipynb" --- "a/so_bigquery.ipynb" +++ "b/so_bigquery.ipynb" @@ -9,12 +9,13 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from google.cloud import bigquery\n", - "import pandas as pd" + "import pandas as pd\n", + "import bs4" ] }, { @@ -36,7 +37,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -50,7 +51,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -60,22 +61,519 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 5, "metadata": {}, "outputs": [ { - "ename": "Forbidden", - "evalue": "403 Access Denied: Table bigquery-public-data:serverfault.posts_questions: User does not have permission to query table bigquery-public-data:serverfault.posts_questions, or perhaps it does not exist in location US.", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mForbidden\u001b[0m Traceback (most recent call last)", - "\u001b[1;32m/Users/ag2435/repos/arXiv-agent/examples/data/bigquery.ipynb Cell 7\u001b[0m line \u001b[0;36m2\n\u001b[1;32m 1\u001b[0m \u001b[39m# Iterate over the results and print them\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[39mfor\u001b[39;49;00m row \u001b[39min\u001b[39;49;00m query_job:\n\u001b[1;32m 3\u001b[0m \u001b[39m# print(f\"{row.name}: {row}\")\u001b[39;49;00m\n\u001b[1;32m 4\u001b[0m \u001b[39mfor\u001b[39;49;00m k, v \u001b[39min\u001b[39;49;00m row\u001b[39m.\u001b[39;49mitems():\n\u001b[1;32m 5\u001b[0m \u001b[39mprint\u001b[39;49m(\u001b[39mf\u001b[39;49m\u001b[39m\"\u001b[39;49m\u001b[39m{\u001b[39;49;00mk\u001b[39m}\u001b[39;49;00m\u001b[39m: \u001b[39;49m\u001b[39m{\u001b[39;49;00mv\u001b[39m}\u001b[39;49;00m\u001b[39m\"\u001b[39;49m)\n", - "File \u001b[0;32m~/anaconda3/envs/arxiv-agent/lib/python3.12/site-packages/google/cloud/bigquery/job.py:2822\u001b[0m, in \u001b[0;36mQueryJob.__iter__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 2821\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m__iter__\u001b[39m(\u001b[39mself\u001b[39m):\n\u001b[0;32m-> 2822\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39miter\u001b[39m(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mresult())\n", - "File \u001b[0;32m~/anaconda3/envs/arxiv-agent/lib/python3.12/site-packages/google/cloud/bigquery/job.py:2762\u001b[0m, in \u001b[0;36mQueryJob.result\u001b[0;34m(self, timeout, retry)\u001b[0m\n\u001b[1;32m 2738\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39mresult\u001b[39m(\u001b[39mself\u001b[39m, timeout\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m, retry\u001b[39m=\u001b[39mDEFAULT_RETRY):\n\u001b[1;32m 2739\u001b[0m \u001b[39m \u001b[39m\u001b[39m\"\"\"Start the job and wait for it to complete and get the result.\u001b[39;00m\n\u001b[1;32m 2740\u001b[0m \n\u001b[1;32m 2741\u001b[0m \u001b[39m :type timeout: float\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 2760\u001b[0m \u001b[39m not complete in the given timeout.\u001b[39;00m\n\u001b[1;32m 2761\u001b[0m \u001b[39m \"\"\"\u001b[39;00m\n\u001b[0;32m-> 2762\u001b[0m \u001b[39msuper\u001b[39;49m(QueryJob, \u001b[39mself\u001b[39;49m)\u001b[39m.\u001b[39;49mresult(timeout\u001b[39m=\u001b[39;49mtimeout)\n\u001b[1;32m 2763\u001b[0m \u001b[39m# Return an iterator instead of returning the job.\u001b[39;00m\n\u001b[1;32m 2764\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_query_results:\n", - "File \u001b[0;32m~/anaconda3/envs/arxiv-agent/lib/python3.12/site-packages/google/cloud/bigquery/job.py:703\u001b[0m, in \u001b[0;36m_AsyncJob.result\u001b[0;34m(self, timeout, retry)\u001b[0m\n\u001b[1;32m 701\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_begin(retry\u001b[39m=\u001b[39mretry)\n\u001b[1;32m 702\u001b[0m \u001b[39m# TODO: modify PollingFuture so it can pass a retry argument to done().\u001b[39;00m\n\u001b[0;32m--> 703\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39msuper\u001b[39;49m(_AsyncJob, \u001b[39mself\u001b[39;49m)\u001b[39m.\u001b[39;49mresult(timeout\u001b[39m=\u001b[39;49mtimeout)\n", - "File \u001b[0;32m~/anaconda3/envs/arxiv-agent/lib/python3.12/site-packages/google/api_core/future/polling.py:134\u001b[0m, in \u001b[0;36mPollingFuture.result\u001b[0;34m(self, timeout, retry)\u001b[0m\n\u001b[1;32m 129\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_blocking_poll(timeout\u001b[39m=\u001b[39mtimeout, \u001b[39m*\u001b[39m\u001b[39m*\u001b[39mkwargs)\n\u001b[1;32m 131\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_exception \u001b[39mis\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[1;32m 132\u001b[0m \u001b[39m# pylint: disable=raising-bad-type\u001b[39;00m\n\u001b[1;32m 133\u001b[0m \u001b[39m# Pylint doesn't recognize that this is valid in this case.\u001b[39;00m\n\u001b[0;32m--> 134\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_exception\n\u001b[1;32m 136\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_result\n", - "\u001b[0;31mForbidden\u001b[0m: 403 Access Denied: Table bigquery-public-data:serverfault.posts_questions: User does not have permission to query table bigquery-public-data:serverfault.posts_questions, or perhaps it does not exist in location US." + "name": "stdout", + "output_type": "stream", + "text": [ + "id: 73210679\n", + "title: az acr login raises DOCKER_COMMAND_ERROR with message docker daemon not running\n", + "body:

Windows 11 with wsl2 ubuntu-22.04.

\n", + "

In Windows Terminal I open a PowerShell window and start wsl with command:

\n", + "
wsl\n",
+      "
\n", + "

Then I start the docker daemon in this window with the following command:

\n", + "
sudo dockerd\n",
+      "
\n", + "

It prompts for the admin password, which I enter and then it starts the daemon.

\n", + "

Next I open a new PowerShell window in Windows Terminal, run wsl and run a container to verify everything is working. So far so good.

\n", + "

Now I want to login to Azure Container Registry with the following command:

\n", + "
az acr login -n {name_of_my_acr}\n",
+      "
\n", + "

This returns the following error:

\n", + "
You may want to use 'az acr login -n {name_of_my_acr} --expose-token' to get an access token, \n",
+      "which does not require Docker to be installed.\n",
+      "An error occurred: DOCKER_COMMAND_ERROR\n",
+      "error during connect: This error may indicate that the docker daemon is not running.: \n",
+      "Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": \n",
+      "open //./pipe/docker_engine: The system cannot find the file specified.\n",
+      "
\n", + "

The error suggests the daemon is not running, but since I can run a container I assume the deamon is running - otherwise I would not be able to run a container either, right? What can I do to narrow down or resolve this issue?

\n", + "

Docker version info using docker -v command:

\n", + "
Docker version 20.10.12, build 20.10.12-0ubuntu4\n",
+      "
\n", + "accepted_answer_id: 73247188\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-02 16:16:31.810000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-05 09:00:14.693000+00:00\n", + "last_edit_date: 2022-08-02 16:32:13.700000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 11226740\n", + "owner_display_name: None\n", + "owner_user_id: 11226740\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: azure-container-registry|docker-daemon\n", + "view_count: 256\n", + "\n", + "id: 73284406\n", + "title: Run Azure log query from the command line with Azure CLI (az monitor)\n", + "body:

I am trying to get the Azure log query data from the CLI because we want to get the log message automatically.\n", + "For example, when we want to get exceptions message, we will got to Azure log and run the query like this

\n", + "

\"1\"

\n", + "

However, in powershell, when I run az monitor log-analytics query -w 0000000000000 --analytics-query "exceptions"\n", + "(000 is the workspace ID)
\n", + "then I got an error message BadArgumentError: The request had some invalid properties.\n", + "But I did not get the error message when I use Azure Dashboard.

\n", + "

How would I modify my query? Or should I use a different function?

\n", + "

Thanks in advance

\n", + "accepted_answer_id: None\n", + "answer_count: 2\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-08 21:53:16.703000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-10 04:49:20.527000+00:00\n", + "last_edit_date: 2022-08-09 08:12:13.920000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 2395282\n", + "owner_display_name: None\n", + "owner_user_id: 19123691\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: azure|azure-devops|azure-application-insights|azure-log-analytics|azure-log-analytics-workspace\n", + "view_count: 256\n", + "\n", + "id: 73250763\n", + "title: Error CS0246: The type or namespace name 'StreamingContext' could not be found (are you missing a using directive or an assembly reference?)\n", + "body:

I have these errors when trying to write this script for save and load in my game.

\n", + "
\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(62,40): error CS0246: The type\n", + "or namespace name 'StreamingContext' could not be found (are you\n", + "missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(13,31): error CS0246: The type\n", + "or namespace name 'PlaceableObjectData' could not be found (are you\n", + "missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(61,6): error CS0246: The type\n", + "or namespace name 'OnDeserializedAttribute' could not be found (are\n", + "you missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(61,6): error CS0246: The type\n", + "or namespace name 'OnDeserialized' could not be found (are you missing\n", + "a using directive or an assembly reference?)

\n", + "
\n", + "

That is the script i'm working on:

\n", + "
    using System;\n",
+      "using System.Collections;\n",
+      "using System.Collections.Generic;\n",
+      "using UnityEngine;\n",
+      "using System.Runtime.Serialization;\n",
+      "\n",
+      "\n",
+      "[Serializable]\n",
+      "\n",
+      "public class SaveData\n",
+      "{\n",
+      "    public static int IdCount;\n",
+      "\n",
+      "    public Dictionary<string, PlaceableObjectsData> placeableObjectDatas =\n",
+      "        new Dictionary<string, PlaceableObjectsData>();\n",
+      "\n",
+      "    public static string GenerateId()\n",
+      "    {\n",
+      "        IdCount++;\n",
+      "        return IdCount.ToString();\n",
+      "\n",
+      "    }\n",
+      "\n",
+      "     public void AddData(Data data)\n",
+      "    {\n",
+      "        if (data is placeableObjectDatas plObjData)\n",
+      "\n",
+      "        {\n",
+      "\n",
+      "            if (placeableObjectDatas.ContainsKey(plObjData.ID))\n",
+      "        {\n",
+      "            placeableObjectDatas[plObjData.ID] = plObjData;\n",
+      "\n",
+      "        }\n",
+      "        else\n",
+      "        \n",
+      "        {\n",
+      "            placeableObjectDatas.Add(plObjData.ID, plObjData);\n",
+      "        }\n",
+      "\n",
+      "        }\n",
+      "\n",
+      "   }\n",
+      "\n",
+      "      public void RemoveData(Data data)\n",
+      "       {\n",
+      "\n",
+      "        if (data is placeableObjectDatas plObjData)\n",
+      "\n",
+      "        {\n",
+      "\n",
+      "            if (placeableObjectDatas.ContainsKey(plObjData.ID))\n",
+      "            {\n",
+      "                placeableObjectDatas.Remove(plObjData.ID);\n",
+      "\n",
+      "            }\n",
+      "\n",
+      "        }\n",
+      "\n",
+      "    }\n",
+      "\n",
+      "    [OnDeserialized]\n",
+      "    internal void OnDeserializedMethod(StreamingContext context)\n",
+      "    {\n",
+      "    placeableObjectDatas ??= new Dictionary<string, PlaceableObjectsData>();\n",
+      "\n",
+      "    }\n",
+      "\n",
+      "}\n",
+      "
\n", + "

EDIT:

\n", + "

This is the script for PlaceableObjectData:

\n", + "
using System;\n",
+      "using UnityEngine;\n",
+      "\n",
+      "\n",
+      "\n",
+      "public class PlaceableObjectsData : Data\n",
+      "{\n",
+      "    public string assetName;\n",
+      "    public Vector3 position;\n",
+      "}\n",
+      "
\n", + "

EDIT 2

\n", + "
\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(17,13): error CS0103: The\n", + "name 'Directory' does not exist in the current context

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(20,13): error CS0103: The\n", + "name 'Directory' does not exist in the current context

\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(26,21): error CS0246: The type\n", + "or namespace name 'placeableObjectDatas' could not be found (are you\n", + "missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(31,28): error CS0246: The\n", + "type or namespace name 'JsonSerializerSettings' could not be found\n", + "(are you missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(32,42): error CS0103: The\n", + "name 'ReferenceLoopHandling' does not exist in the current context

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(34,29): error CS0103: The\n", + "name 'JsonConvert' does not exist in the current context

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(36,19): error CS1061:\n", + "'string' does not contain a definition for 'WriteAllText' and no\n", + "accessible extension method 'WriteAllText' accepting a first argument\n", + "of type 'string' could be found (are you missing a using directive or\n", + "an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveData.cs(48,21): error CS0246: The type\n", + "or namespace name 'placeableObjectDatas' could not be found (are you\n", + "missing a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(42,22): error CS1061:\n", + "'string' does not contain a definition for 'Exists' and no accessible\n", + "extension method 'Exists' accepting a first argument of type 'string'\n", + "could be found (are you missing a using directive or an assembly\n", + "reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(45,42): error CS1061:\n", + "'string' does not contain a definition for 'ReadAllText' and no\n", + "accessible extension method 'ReadAllText' accepting a first argument\n", + "of type 'string' could be found (are you missing a using directive or\n", + "an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,13): error CS0246: The\n", + "type or namespace name 'saveData' could not be found (are you missing\n", + "a using directive or an assembly reference?)

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,31): error CS0103: The\n", + "name 'JsonConvert' does not exist in the current context

\n", + "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,61): error CS0246: The\n", + "type or namespace name 'saveData' could not be found (are you missing\n", + "a using directive or an assembly reference?)

\n", + "
\n", + "accepted_answer_id: 73251390\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-05 13:43:25.850000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-05 16:40:00.610000+00:00\n", + "last_edit_date: 2022-08-05 16:40:00.610000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 17654458\n", + "owner_display_name: None\n", + "owner_user_id: 17654458\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 3\n", + "tags: c#|unity3d\n", + "view_count: 512\n", + "\n", + "id: 73406942\n", + "title: Google workspace account has been suspended with no recovery method\n", + "body:

Many years ago I set up my domain so Google would manage my domain's email. Today, possibly because I was accessing from another state, Google decides to suspend the service:

\n", + "
\n", + "

Your organization's Google workspace account has been suspended. Please contact your Google workspace organization administrator to re-activate your organization.

\n", + "
\n", + "

So since I'm the administrator, I try to logon with those credentials, which are correct, but they challenge me, and want me to complete an email loop, but the recovery email is in the locked domain!

\n", + "

There seems to be no way to get this fixed. There's some code they can send me that I'm supposed to put my domain's server to prove I'm legit, but Google controls that...I have nothing on the domain except email. I'm paying Hover as the registrar.

\n", + "

Any way out?

\n", + "

I appreciate "Only Google can help", but there's no path forward. No phone number, no button to "open a ticket", no live chat. If you can't log on as administrator, none of that is available. How would a superuser get through on a problem like this?

\n", + "

There is a page that says:

\n", + "
\n", + "

To get phone, chat, or email support for your legacy free account at xxxxxxx.com, you need to upgrade to Google Workspace.

\n", + "
\n", + "
\n", + "

To continue, switch to an administrator account. This will open the Google Admin console.

\n", + "
\n", + "

https://support.google.com/a

\n", + "

But I can't log in as administrator to upgrade my account so I can get support because when I log in with correct credentials, they send a challenge to an email address that's in the locked domain!

\n", + "

I can't be the only one this happened to, so figure they're just hiding the path to victory so they don't have to answer too many phone calls. This page might be as close as I've gotten: https://support.google.com/a/answer/6335621

\n", + "

When I try to open a support case under my non-admin account, it says

\n", + "
\n", + "

You do not have permission to create support cases.

\n", + "
\n", + "

I found a form to fill out: https://support.google.com/accounts/contact/disabled2

\n", + "

The above form accepts any email address, so you enter any email address that you currently have access to (not one that is locked, obviously).

\n", + "

But matter what I do, they want me to prove my identity by adding something to my domain. I've asked Hover how to do this, but have not received a response yet.

\n", + "

Here's the email Google sent

\n", + "
\n", + "

Your action is required in order for us to assist with your request.

\n", + "
\n", + "
\n", + "

We were unable to verify the DNS ownership of Google Workspace Account sengsational.com. Please follow the instructions below to verify domain ownership.

\n", + "
\n", + "
\n", + "

The following instructions outline the DNS record (CNAME or TXT) to add to your domain settings. Learn more

\n", + "
\n", + "
Via CNAME (preferred):\n",
+      "    Label/Host: [eight digit number removed]\n",
+      "    Destination/Target: google.com\n",
+      "    Time to live (TTL): 3600 seconds / 60 minutes / 1 Hour\n",
+      "\n",
+      "For more information on how to create a CNAME record, please refer to the article Add a CNAME record to your domain's DNS records. If you need assistance creating the CNAME record, please contact your hosting provider for support.\n",
+      "\n",
+      "You can verify your CNAME record here.\n",
+      "\n",
+      "Via TXT:\n",
+      "    Label/Host: enter @ or leave it blank\n",
+      "    Value/Destination: google-gws-recovery-domain-verification=[eight digit number]\n",
+      "    Time to live (TTL): 3600 seconds / 60 minutes / 1 Hour\n",
+      "\n",
+      "For more information on how to create a TXT record, please refer to the article Verify your domain with a TXT record . If you need assistance creating the TXT record, please contact your hosting provider for support.\n",
+      "\n",
+      "You can verify your TXT record here.\n",
+      "
\n", + "
\n", + "

Note: Updates to DNS records may take 24-48 hours to propagate across the entire internet.\n", + "In order for us to help you with the sign-up process, please follow this link and submit your request.\n", + "Best regards,\n", + "Google Workspace Support

\n", + "
\n", + "accepted_answer_id: 73419827\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-18 17:05:12.950000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-19 16:43:13.243000+00:00\n", + "last_edit_date: 2022-08-19 16:43:13.243000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 897007\n", + "owner_display_name: None\n", + "owner_user_id: 897007\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: google-workspace\n", + "view_count: 512\n", + "\n", + "id: 73200968\n", + "title: Mac Unity package manager error resolving packages: one or more packages could not be added to local file system\n", + "body:

I use unity 2021.3.7f1, I was creating a new game on unity hub when i got this error message:\n", + "one or more packages could not be added to local file system com.unity.collab-proxy: ENOENT no such file or directory

\n", + "accepted_answer_id: None\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-02 01:00:36.200000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-17 00:40:54.303000+00:00\n", + "last_edit_date: None\n", + "last_editor_display_name: None\n", + "last_editor_user_id: None\n", + "owner_display_name: None\n", + "owner_user_id: 19502695\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: unity3d\n", + "view_count: 257\n", + "\n", + "id: 73210586\n", + "title: Get list of all compartments in OCI Tenancy\n", + "body:

I am trying to get the list of all compartments (including child compartments) in OCI Tenancy using Python SDK.

\n", + "

But the below OCI API does not give the root compartment details.

\n", + "

Is there a way to get root compartment details via any API directly?

\n", + "

Below is my code:

\n", + "
import oci\n",
+      "from oci.config import from_file\n",
+      "from oci.signer import Signer\n",
+      "\n",
+      "config = from_file()\n",
+      "\n",
+      "COMPARTMENT_ID="ocid1.tenancy.oc1..a"\n",
+      "\n",
+      "identity_client = oci.identity.IdentityClient(config)\n",
+      "\n",
+      "list_compartments_response = identity_client.list_compartments(\n",
+      "    compartment_id=COMPARTMENT_ID,\n",
+      "    compartment_id_in_subtree=True)\n",
+      "\n",
+      "compartmentlist = list_compartments_response.data\n",
+      "
\n", + "

compartmentlist dict does not contain the root compartment details.

\n", + "

Please help.

\n", + "

Edit 1:

\n", + "

COMPARTMENT_ID given above in the code is the root compartment ID. I need the details of even this root compartment in the final response of API.

\n", + "accepted_answer_id: 73211582\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-02 16:07:41.327000+00:00\n", + "favorite_count: 1\n", + "last_activity_date: 2022-08-02 17:38:46.370000+00:00\n", + "last_edit_date: 2022-08-02 16:13:57.297000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 19675989\n", + "owner_display_name: None\n", + "owner_user_id: 19675989\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 2\n", + "tags: oracle-cloud-infrastructure|oci-python-sdk\n", + "view_count: 257\n", + "\n", + "id: 73241368\n", + "title: VSCode Meaning of : ptyhost warning Shell integration cannot be enabled for executable\n", + "body:

In VSCode I connect from Windows to Ubuntu via the Remote SSH extension. I can open the VSCode Terminal window for 'bash' and I get to shell in the remote server.

\n", + "

But this message shows in the Log for Remote Pty Host:
\n", + "[ptyhost] [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ...

\n", + "

The args for /bin/sh have a script for wget and fallback to curl to call :
\n", + "--header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id

\n", + "

While I don't normally use tmux, I can open that and get to shell as well. But the log shows the same warning:\n", + "for executable "/usr/bin/tmux" and args undefined.

\n", + "

Bottom line: bash and tmux are working but I'm curious about the warnings, as I'm struggling with other issues related to VSCode and Remote SSH.

\n", + "

What are these ptyhost errors?
\n", + "What are they telling us?
\n", + "What should we do to fix the problem being reported?
\n", + "Might this affect other operations from VSCode?

\n", + "accepted_answer_id: None\n", + "answer_count: 0\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-04 19:30:47.050000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-04 19:30:47.050000+00:00\n", + "last_edit_date: None\n", + "last_editor_display_name: None\n", + "last_editor_user_id: None\n", + "owner_display_name: None\n", + "owner_user_id: 190955\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: visual-studio-code|pty|vscode-remote-ssh\n", + "view_count: 257\n", + "\n", + "id: 73276629\n", + "title: How to preload library with ld_preload to wine(windows game)?\n", + "body:

I want to learn how to preload and hook functions in wine running windows apps.\n", + "I'm trying to preload a library with ld_preload to wine(windows game(32-bit)) on Arch Linux (64-bit but I think I installed 32-bit support). I get the error wrong ELF class: ELFCLASS32 and the same for ELFCLASS64.

\n", + "

Full error text:

\n", + "
\n", + "

"ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", + "(wrong ELF class: ELFCLASS32): ignored."

\n", + "
\n", + "

the same for 64bit and another one

\n", + "
\n", + "

ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", + "(cannot open shared object file): ignored.

\n", + "
\n", + "

How am I getting "wrong class" when I have both 32 and 64-bit installed? What architecture do I need to make it work right?

\n", + "

Wow.exe:

\n", + "
\n", + "

Wow.exe: PE32 executable (GUI) Intel 80386, for MS Windows

\n", + "
\n", + "

I tried to build with and without the -m32 flag ( I changed all uint32 to uint64):

\n", + "
gcc -std=c99 -Wall -Werror -m32 -O0 -fpic -shared -ldl -lGL -o eve.so eve.c\n",
+      "
\n", + "

I saw this answer:

\n", + "
\n", + "

ltrace /lib/ld-linux.so.2 --preload /path/to/lib/strcmp.so ./exec

\n", + "
\n", + "

But don't know how to run it with wine running the app.

\n", + "

I want to learn how to preload and hook functions in wine running windows apps. I saw this guide:\n", + "https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/276206-linux-simple-injection-ld_preload.html

\n", + "accepted_answer_id: None\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-08 10:43:51.060000+00:00\n", + "favorite_count: 1\n", + "last_activity_date: 2022-08-18 05:14:00.740000+00:00\n", + "last_edit_date: 2022-08-18 05:14:00.740000+00:00\n", + "last_editor_display_name: None\n", + "last_editor_user_id: 1888143\n", + "owner_display_name: None\n", + "owner_user_id: 1888143\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 3\n", + "tags: c|hook|ld|wine|ld-preload\n", + "view_count: 257\n", + "\n", + "id: 73321062\n", + "title: How to install specific SDK (I need 6.0.300)\n", + "body:

I'm running WSL-Ubuntu 20.04 on windows and need to have dotnet 6.0.300.

\n", + "

I have 5.0.480 and 6.0.400 installed, but I can't figure out how to get the specific one (dotnet 6.0.300).

\n", + "accepted_answer_id: None\n", + "answer_count: 1\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-11 12:58:42.827000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-11 22:04:07.210000+00:00\n", + "last_edit_date: None\n", + "last_editor_display_name: None\n", + "last_editor_user_id: None\n", + "owner_display_name: None\n", + "owner_user_id: 19312689\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 0\n", + "tags: .net|sdk|windows-subsystem-for-linux\n", + "view_count: 257\n", + "\n", + "id: 73199602\n", + "title: Need a way to hide soft keyboard in MAUI's Editor / Entry fields\n", + "body:

I found what seems to be useful in this link:

\n", + "

A Keyboard disabled Entry control in Xamarin Forms

\n", + "

But it seems that it only works in Xamarin Forms. I even used it in my MAUI app, but it simply has no effect !

\n", + "

The reason I am looking to do this is because I want to enable focus on the Editor field but without triggering the soft keyboard (for a barcode scanner field)

\n", + "

Thanks.

\n", + "accepted_answer_id: None\n", + "answer_count: 3\n", + "comment_count: 0\n", + "community_owned_date: None\n", + "creation_date: 2022-08-01 21:04:19.373000+00:00\n", + "favorite_count: None\n", + "last_activity_date: 2022-08-22 12:05:35.783000+00:00\n", + "last_edit_date: None\n", + "last_editor_display_name: None\n", + "last_editor_user_id: None\n", + "owner_display_name: None\n", + "owner_user_id: 10420838\n", + "parent_id: None\n", + "post_type_id: 1\n", + "score: 2\n", + "tags: maui|.net-maui\n", + "view_count: 513\n", + "\n" ] } ], @@ -91,7 +589,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -100,7 +598,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -115,7 +613,7 @@ " dtype='object')" ] }, - "execution_count": 11, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -126,7 +624,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -175,233 +673,233 @@ " \n", " \n", " 0\n", - " 64177830\n", - " How to read to a certain point in python for e...\n", - " <p>I tried to read from every line until the <...\n", - " NaN\n", - " 2\n", + " 73210679\n", + " az acr login raises DOCKER_COMMAND_ERROR with ...\n", + " <p>Windows 11 with wsl2 ubuntu-22.04.</p>\\n<p>...\n", + " 73247188.0\n", + " 1\n", " 0\n", " None\n", - " 2020-10-02 20:24:36.460000+00:00\n", + " 2022-08-02 16:16:31.810000+00:00\n", " NaN\n", - " 2020-10-03 19:36:27.847000+00:00\n", - " 2020-10-03 00:43:19.873000+00:00\n", + " 2022-08-05 09:00:14.693000+00:00\n", + " 2022-08-02 16:32:13.700000+00:00\n", " None\n", - " 7589636.0\n", - " user13798483\n", - " NaN\n", + " 11226740.0\n", + " None\n", + " 11226740\n", " None\n", " 1\n", " 0\n", - " python|function|variables|line\n", + " azure-container-registry|docker-daemon\n", " 256\n", " \n", " \n", " 1\n", - " 64183547\n", - " How to use nested \"map\"\n", - " <p>I would like to map a json, based on some n...\n", - " 64183941.0\n", + " 73284406\n", + " Run Azure log query from the command line with...\n", + " <p>I am trying to get the Azure log query data...\n", + " NaN\n", " 2\n", " 0\n", " None\n", - " 2020-10-03 11:08:52.807000+00:00\n", + " 2022-08-08 21:53:16.703000+00:00\n", " NaN\n", - " 2020-10-04 10:24:48.673000+00:00\n", - " NaT\n", + " 2022-08-10 04:49:20.527000+00:00\n", + " 2022-08-09 08:12:13.920000+00:00\n", " None\n", - " NaN\n", + " 2395282.0\n", " None\n", - " 11380853.0\n", + " 19123691\n", " None\n", " 1\n", - " 2\n", - " dataweave|mulesoft\n", + " 0\n", + " azure|azure-devops|azure-application-insights|...\n", " 256\n", " \n", " \n", " 2\n", - " 64220954\n", - " Azure DevOps Ephemeral agents not working\n", - " <p>I am trying to configure an Ephemeral agent...\n", - " 64246902.0\n", - " 2\n", + " 73250763\n", + " Error CS0246: The type or namespace name 'Stre...\n", + " <p>I have these errors when trying to write th...\n", + " 73251390.0\n", + " 1\n", " 0\n", " None\n", - " 2020-10-06 07:11:42.210000+00:00\n", - " 1.0\n", - " 2020-10-07 15:04:27.907000+00:00\n", - " NaT\n", - " None\n", + " 2022-08-05 13:43:25.850000+00:00\n", " NaN\n", + " 2022-08-05 16:40:00.610000+00:00\n", + " 2022-08-05 16:40:00.610000+00:00\n", " None\n", - " 5311841.0\n", + " 17654458.0\n", + " None\n", + " 17654458\n", " None\n", " 1\n", - " 0\n", - " azure|azure-devops|agent|azure-container-insta...\n", - " 256\n", + " 3\n", + " c#|unity3d\n", + " 512\n", " \n", " \n", " 3\n", - " 64228509\n", - " How do load value from DB only once in java\n", - " <p>I am using spring boot application and want...\n", - " NaN\n", + " 73406942\n", + " Google workspace account has been suspended wi...\n", + " <p>Many years ago I set up my domain so Google...\n", + " 73419827.0\n", " 1\n", " 0\n", " None\n", - " 2020-10-06 15:01:45.267000+00:00\n", + " 2022-08-18 17:05:12.950000+00:00\n", " NaN\n", - " 2020-10-06 15:17:40.703000+00:00\n", - " 2020-10-06 15:07:25.863000+00:00\n", + " 2022-08-19 16:43:13.243000+00:00\n", + " 2022-08-19 16:43:13.243000+00:00\n", " None\n", - " 14211936.0\n", + " 897007.0\n", " None\n", - " 14211936.0\n", + " 897007\n", " None\n", " 1\n", " 0\n", - " java|spring|spring-boot\n", - " 256\n", + " google-workspace\n", + " 512\n", " \n", " \n", " 4\n", - " 64232071\n", - " gh-pages script cannot commit .nojekyll to GitHub\n", - " <p>I have the following script in my <code>pac...\n", + " 73200968\n", + " Mac Unity package manager error resolving pack...\n", + " <p>I use unity 2021.3.7f1, I was creating a ne...\n", " NaN\n", " 1\n", " 0\n", " None\n", - " 2020-10-06 18:49:10.107000+00:00\n", + " 2022-08-02 01:00:36.200000+00:00\n", " NaN\n", - " 2021-06-08 11:51:34.657000+00:00\n", + " 2022-08-17 00:40:54.303000+00:00\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 7738040.0\n", + " 19502695\n", " None\n", " 1\n", - " 2\n", - " reactjs|git|next.js|github-pages\n", - " 256\n", + " 0\n", + " unity3d\n", + " 257\n", " \n", " \n", " 5\n", - " 64237197\n", - " AttributeError: type object 'Graph' has no att...\n", - " <p>I am using python-igraph.</p>\\n<p>Running t...\n", - " 64237360.0\n", + " 73210586\n", + " Get list of all compartments in OCI Tenancy\n", + " <p>I am trying to get the list of all <code>co...\n", + " 73211582.0\n", " 1\n", " 0\n", " None\n", - " 2020-10-07 04:26:20+00:00\n", - " NaN\n", - " 2021-11-24 22:19:25.397000+00:00\n", - " 2021-11-24 22:19:25.397000+00:00\n", + " 2022-08-02 16:07:41.327000+00:00\n", + " 1.0\n", + " 2022-08-02 17:38:46.370000+00:00\n", + " 2022-08-02 16:13:57.297000+00:00\n", " None\n", - " 695132.0\n", + " 19675989.0\n", " None\n", - " 7418045.0\n", + " 19675989\n", " None\n", " 1\n", - " 0\n", - " python|igraph\n", - " 256\n", + " 2\n", + " oracle-cloud-infrastructure|oci-python-sdk\n", + " 257\n", " \n", " \n", " 6\n", - " 64244371\n", - " IAR Compiler Linker Error [Li009]: _CPP_Except...\n", - " <p>I have a project which compiles with the IA...\n", - " 64251998.0\n", - " 1\n", + " 73241368\n", + " VSCode Meaning of : ptyhost warning Shell inte...\n", + " <p>In VSCode I connect from Windows to Ubuntu ...\n", + " NaN\n", + " 0\n", " 0\n", " None\n", - " 2020-10-07 12:50:38.073000+00:00\n", + " 2022-08-04 19:30:47.050000+00:00\n", " NaN\n", - " 2020-10-07 20:41:03.237000+00:00\n", - " 2020-10-07 13:01:16.020000+00:00\n", + " 2022-08-04 19:30:47.050000+00:00\n", + " NaT\n", " None\n", - " 14367166.0\n", + " NaN\n", " None\n", - " 14367166.0\n", + " 190955\n", " None\n", " 1\n", " 0\n", - " exception|linker|embedded|stm32|iar\n", - " 256\n", + " visual-studio-code|pty|vscode-remote-ssh\n", + " 257\n", " \n", " \n", " 7\n", - " 64256016\n", - " Nativescript gestures not working with vuejs\n", - " <p>How to use them? Docs are not clear about v...\n", + " 73276629\n", + " How to preload library with ld_preload to wine...\n", + " <p>I want to learn how to preload and hook fun...\n", " NaN\n", " 1\n", " 0\n", " None\n", - " 2020-10-08 04:55:16.917000+00:00\n", - " NaN\n", - " 2020-10-08 06:31:26.930000+00:00\n", - " NaT\n", + " 2022-08-08 10:43:51.060000+00:00\n", + " 1.0\n", + " 2022-08-18 05:14:00.740000+00:00\n", + " 2022-08-18 05:14:00.740000+00:00\n", " None\n", - " NaN\n", + " 1888143.0\n", " None\n", - " 4254220.0\n", + " 1888143\n", " None\n", " 1\n", - " 0\n", - " nativescript|nativescript-vue\n", - " 256\n", + " 3\n", + " c|hook|ld|wine|ld-preload\n", + " 257\n", " \n", " \n", " 8\n", - " 64262142\n", - " Instantiate and set to parent of a sub gameObject\n", - " <p>I have a multi level gameObject hierarchy t...\n", - " 64263996.0\n", - " 2\n", + " 73321062\n", + " How to install specific SDK (I need 6.0.300)\n", + " <p>I'm running WSL-Ubuntu 20.04 on windows and...\n", + " NaN\n", + " 1\n", " 0\n", " None\n", - " 2020-10-08 12:04:39.540000+00:00\n", + " 2022-08-11 12:58:42.827000+00:00\n", " NaN\n", - " 2020-10-08 14:16:11.620000+00:00\n", + " 2022-08-11 22:04:07.210000+00:00\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 14260342.0\n", + " 19312689\n", " None\n", " 1\n", " 0\n", - " c#|unity3d\n", - " 256\n", + " .net|sdk|windows-subsystem-for-linux\n", + " 257\n", " \n", " \n", " 9\n", - " 64263183\n", - " SLIM PUT-Request CORS Header missing\n", - " <p>I've tried to set up a Angular App with SLI...\n", + " 73199602\n", + " Need a way to hide soft keyboard in MAUI's Edi...\n", + " <p>I found what seems to be useful in this lin...\n", " NaN\n", - " 1\n", + " 3\n", " 0\n", " None\n", - " 2020-10-08 13:06:02.593000+00:00\n", + " 2022-08-01 21:04:19.373000+00:00\n", " NaN\n", - " 2020-10-08 13:24:33.893000+00:00\n", + " 2022-08-22 12:05:35.783000+00:00\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 8518867.0\n", + " 10420838\n", " None\n", " 1\n", - " 0\n", - " php|angular|slim|slim-4\n", - " 256\n", + " 2\n", + " maui|.net-maui\n", + " 513\n", " \n", " \n", "\n", @@ -409,103 +907,103 @@ ], "text/plain": [ " id title \\\n", - "0 64177830 How to read to a certain point in python for e... \n", - "1 64183547 How to use nested \"map\" \n", - "2 64220954 Azure DevOps Ephemeral agents not working \n", - "3 64228509 How do load value from DB only once in java \n", - "4 64232071 gh-pages script cannot commit .nojekyll to GitHub \n", - "5 64237197 AttributeError: type object 'Graph' has no att... \n", - "6 64244371 IAR Compiler Linker Error [Li009]: _CPP_Except... \n", - "7 64256016 Nativescript gestures not working with vuejs \n", - "8 64262142 Instantiate and set to parent of a sub gameObject \n", - "9 64263183 SLIM PUT-Request CORS Header missing \n", + "0 73210679 az acr login raises DOCKER_COMMAND_ERROR with ... \n", + "1 73284406 Run Azure log query from the command line with... \n", + "2 73250763 Error CS0246: The type or namespace name 'Stre... \n", + "3 73406942 Google workspace account has been suspended wi... \n", + "4 73200968 Mac Unity package manager error resolving pack... \n", + "5 73210586 Get list of all compartments in OCI Tenancy \n", + "6 73241368 VSCode Meaning of : ptyhost warning Shell inte... \n", + "7 73276629 How to preload library with ld_preload to wine... \n", + "8 73321062 How to install specific SDK (I need 6.0.300) \n", + "9 73199602 Need a way to hide soft keyboard in MAUI's Edi... \n", "\n", " body accepted_answer_id \\\n", - "0

I tried to read from every line until the <... NaN \n", - "1

I would like to map a json, based on some n... 64183941.0 \n", - "2

I am trying to configure an Ephemeral agent... 64246902.0 \n", - "3

I am using spring boot application and want... NaN \n", - "4

I have the following script in my pac... NaN \n", - "5

I am using python-igraph.

\\n

Running t... 64237360.0 \n", - "6

I have a project which compiles with the IA... 64251998.0 \n", - "7

How to use them? Docs are not clear about v... NaN \n", - "8

I have a multi level gameObject hierarchy t... 64263996.0 \n", - "9

I've tried to set up a Angular App with SLI... NaN \n", + "0

Windows 11 with wsl2 ubuntu-22.04.

\\n

... 73247188.0 \n", + "1

I am trying to get the Azure log query data... NaN \n", + "2

I have these errors when trying to write th... 73251390.0 \n", + "3

Many years ago I set up my domain so Google... 73419827.0 \n", + "4

I use unity 2021.3.7f1, I was creating a ne... NaN \n", + "5

I am trying to get the list of all co... 73211582.0 \n", + "6

In VSCode I connect from Windows to Ubuntu ... NaN \n", + "7

I want to learn how to preload and hook fun... NaN \n", + "8

I'm running WSL-Ubuntu 20.04 on windows and... NaN \n", + "9

I found what seems to be useful in this lin... NaN \n", "\n", " answer_count comment_count community_owned_date \\\n", - "0 2 0 None \n", + "0 1 0 None \n", "1 2 0 None \n", - "2 2 0 None \n", + "2 1 0 None \n", "3 1 0 None \n", "4 1 0 None \n", "5 1 0 None \n", - "6 1 0 None \n", + "6 0 0 None \n", "7 1 0 None \n", - "8 2 0 None \n", - "9 1 0 None \n", + "8 1 0 None \n", + "9 3 0 None \n", "\n", " creation_date favorite_count \\\n", - "0 2020-10-02 20:24:36.460000+00:00 NaN \n", - "1 2020-10-03 11:08:52.807000+00:00 NaN \n", - "2 2020-10-06 07:11:42.210000+00:00 1.0 \n", - "3 2020-10-06 15:01:45.267000+00:00 NaN \n", - "4 2020-10-06 18:49:10.107000+00:00 NaN \n", - "5 2020-10-07 04:26:20+00:00 NaN \n", - "6 2020-10-07 12:50:38.073000+00:00 NaN \n", - "7 2020-10-08 04:55:16.917000+00:00 NaN \n", - "8 2020-10-08 12:04:39.540000+00:00 NaN \n", - "9 2020-10-08 13:06:02.593000+00:00 NaN \n", + "0 2022-08-02 16:16:31.810000+00:00 NaN \n", + "1 2022-08-08 21:53:16.703000+00:00 NaN \n", + "2 2022-08-05 13:43:25.850000+00:00 NaN \n", + "3 2022-08-18 17:05:12.950000+00:00 NaN \n", + "4 2022-08-02 01:00:36.200000+00:00 NaN \n", + "5 2022-08-02 16:07:41.327000+00:00 1.0 \n", + "6 2022-08-04 19:30:47.050000+00:00 NaN \n", + "7 2022-08-08 10:43:51.060000+00:00 1.0 \n", + "8 2022-08-11 12:58:42.827000+00:00 NaN \n", + "9 2022-08-01 21:04:19.373000+00:00 NaN \n", "\n", " last_activity_date last_edit_date \\\n", - "0 2020-10-03 19:36:27.847000+00:00 2020-10-03 00:43:19.873000+00:00 \n", - "1 2020-10-04 10:24:48.673000+00:00 NaT \n", - "2 2020-10-07 15:04:27.907000+00:00 NaT \n", - "3 2020-10-06 15:17:40.703000+00:00 2020-10-06 15:07:25.863000+00:00 \n", - "4 2021-06-08 11:51:34.657000+00:00 NaT \n", - "5 2021-11-24 22:19:25.397000+00:00 2021-11-24 22:19:25.397000+00:00 \n", - "6 2020-10-07 20:41:03.237000+00:00 2020-10-07 13:01:16.020000+00:00 \n", - "7 2020-10-08 06:31:26.930000+00:00 NaT \n", - "8 2020-10-08 14:16:11.620000+00:00 NaT \n", - "9 2020-10-08 13:24:33.893000+00:00 NaT \n", + "0 2022-08-05 09:00:14.693000+00:00 2022-08-02 16:32:13.700000+00:00 \n", + "1 2022-08-10 04:49:20.527000+00:00 2022-08-09 08:12:13.920000+00:00 \n", + "2 2022-08-05 16:40:00.610000+00:00 2022-08-05 16:40:00.610000+00:00 \n", + "3 2022-08-19 16:43:13.243000+00:00 2022-08-19 16:43:13.243000+00:00 \n", + "4 2022-08-17 00:40:54.303000+00:00 NaT \n", + "5 2022-08-02 17:38:46.370000+00:00 2022-08-02 16:13:57.297000+00:00 \n", + "6 2022-08-04 19:30:47.050000+00:00 NaT \n", + "7 2022-08-18 05:14:00.740000+00:00 2022-08-18 05:14:00.740000+00:00 \n", + "8 2022-08-11 22:04:07.210000+00:00 NaT \n", + "9 2022-08-22 12:05:35.783000+00:00 NaT \n", "\n", " last_editor_display_name last_editor_user_id owner_display_name \\\n", - "0 None 7589636.0 user13798483 \n", - "1 None NaN None \n", - "2 None NaN None \n", - "3 None 14211936.0 None \n", + "0 None 11226740.0 None \n", + "1 None 2395282.0 None \n", + "2 None 17654458.0 None \n", + "3 None 897007.0 None \n", "4 None NaN None \n", - "5 None 695132.0 None \n", - "6 None 14367166.0 None \n", - "7 None NaN None \n", + "5 None 19675989.0 None \n", + "6 None NaN None \n", + "7 None 1888143.0 None \n", "8 None NaN None \n", "9 None NaN None \n", "\n", " owner_user_id parent_id post_type_id score \\\n", - "0 NaN None 1 0 \n", - "1 11380853.0 None 1 2 \n", - "2 5311841.0 None 1 0 \n", - "3 14211936.0 None 1 0 \n", - "4 7738040.0 None 1 2 \n", - "5 7418045.0 None 1 0 \n", - "6 14367166.0 None 1 0 \n", - "7 4254220.0 None 1 0 \n", - "8 14260342.0 None 1 0 \n", - "9 8518867.0 None 1 0 \n", + "0 11226740 None 1 0 \n", + "1 19123691 None 1 0 \n", + "2 17654458 None 1 3 \n", + "3 897007 None 1 0 \n", + "4 19502695 None 1 0 \n", + "5 19675989 None 1 2 \n", + "6 190955 None 1 0 \n", + "7 1888143 None 1 3 \n", + "8 19312689 None 1 0 \n", + "9 10420838 None 1 2 \n", "\n", " tags view_count \n", - "0 python|function|variables|line 256 \n", - "1 dataweave|mulesoft 256 \n", - "2 azure|azure-devops|agent|azure-container-insta... 256 \n", - "3 java|spring|spring-boot 256 \n", - "4 reactjs|git|next.js|github-pages 256 \n", - "5 python|igraph 256 \n", - "6 exception|linker|embedded|stm32|iar 256 \n", - "7 nativescript|nativescript-vue 256 \n", - "8 c#|unity3d 256 \n", - "9 php|angular|slim|slim-4 256 " + "0 azure-container-registry|docker-daemon 256 \n", + "1 azure|azure-devops|azure-application-insights|... 256 \n", + "2 c#|unity3d 512 \n", + "3 google-workspace 512 \n", + "4 unity3d 257 \n", + "5 oracle-cloud-infrastructure|oci-python-sdk 257 \n", + "6 visual-studio-code|pty|vscode-remote-ssh 257 \n", + "7 c|hook|ld|wine|ld-preload 257 \n", + "8 .net|sdk|windows-subsystem-for-linux 257 \n", + "9 maui|.net-maui 513 " ] }, - "execution_count": 12, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -523,7 +1021,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -536,7 +1034,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -545,7 +1043,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -586,7 +1084,7 @@ "0 23020127" ] }, - "execution_count": 15, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -604,7 +1102,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -619,7 +1117,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -628,7 +1126,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -769,24 +1267,24 @@ " \n", " \n", " 4\n", - " 7842\n", + " 2230377\n", " None\n", - " <p>You can do this in two lines in python with...\n", + " <p>This debate has been going on in almost any...\n", " None\n", " None\n", - " 1\n", + " 0\n", " NaT\n", - " 2008-08-11 14:47:31.227000+00:00\n", + " 2010-02-09 15:55:20.837000+00:00\n", " None\n", - " 2020-07-27 01:15:48.273000+00:00\n", - " 2020-07-27 01:15:48.273000+00:00\n", + " 2010-02-09 15:55:20.837000+00:00\n", + " NaT\n", " None\n", - " 6800539.0\n", - " Pall Melsted\n", " NaN\n", - " 826\n", - " 2\n", + " None\n", + " 149637.0\n", + " 2230032\n", " 2\n", + " 1\n", " None\n", " None\n", " \n", @@ -815,116 +1313,116 @@ " \n", " \n", " 995\n", - " 50711443\n", + " 48550118\n", " None\n", - " <p>If you want to classify the image then you ...\n", + " <p>The max-over-time pooling is usually applie...\n", " None\n", " None\n", - " 0\n", + " 3\n", " NaT\n", - " 2018-06-06 02:27:58.530000+00:00\n", + " 2018-01-31 19:36:05.203000+00:00\n", " None\n", - " 2018-06-06 02:34:47.867000+00:00\n", - " 2018-06-06 02:34:47.867000+00:00\n", + " 2018-01-31 19:36:05.203000+00:00\n", + " NaT\n", " None\n", - " 7984359.0\n", + " NaN\n", " None\n", - " 7984359.0\n", - " 50710556\n", + " 712995.0\n", + " 48549670\n", " 2\n", - " 1\n", + " 16\n", " None\n", " None\n", " \n", " \n", " 996\n", - " 50884034\n", + " 48612144\n", " None\n", - " <p>Unfortunately, batch size is a hyper parame...\n", + " <p>In order to guarantee that no party in the ...\n", " None\n", " None\n", - " 0\n", + " 4\n", " NaT\n", - " 2018-06-16 00:14:37.153000+00:00\n", + " 2018-02-04 19:27:50.137000+00:00\n", " None\n", - " 2018-06-16 00:14:37.153000+00:00\n", + " 2018-02-04 19:27:50.137000+00:00\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 1574073.0\n", - " 50883917\n", + " 104014.0\n", + " 48611238\n", " 2\n", - " 1\n", + " 3\n", " None\n", " None\n", " \n", " \n", " 997\n", - " 50936084\n", + " 48306714\n", " None\n", - " <p>You want object detection and segmentation....\n", + " <h2>Dynamic placeholders</h2>\\n\\n<p>Tensorflow...\n", " None\n", " None\n", - " 0\n", + " 5\n", " NaT\n", - " 2018-06-19 20:01:01.307000+00:00\n", + " 2018-01-17 17:24:03.947000+00:00\n", " None\n", - " 2018-06-19 20:01:01.307000+00:00\n", + " 2018-01-17 17:24:03.947000+00:00\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 2286337.0\n", - " 50935297\n", + " 712995.0\n", + " 48230031\n", " 2\n", - " 1\n", + " 9\n", " None\n", " None\n", " \n", " \n", " 998\n", - " 50958287\n", + " 48230654\n", " None\n", - " <p>There is a technique where you can write yo...\n", + " <p>I've created a <a href=\"https://gist.github...\n", " None\n", " None\n", - " 0\n", + " 5\n", " NaT\n", - " 2018-06-20 23:13:01.947000+00:00\n", + " 2018-01-12 16:51:22.010000+00:00\n", " None\n", - " 2018-06-20 23:13:01.947000+00:00\n", - " NaT\n", + " 2021-07-04 07:48:48.543000+00:00\n", + " 2021-07-04 07:48:48.543000+00:00\n", " None\n", - " NaN\n", + " 6548106.0\n", " None\n", - " 7900077.0\n", - " 29994694\n", + " 712995.0\n", + " 42064690\n", " 2\n", - " 1\n", + " 44\n", " None\n", " None\n", " \n", " \n", " 999\n", - " 50780869\n", + " 48436520\n", " None\n", - " <p>Both current answers are wrong in that they...\n", + " <p>You might be interested in my paper <a href...\n", " None\n", " None\n", - " 0\n", + " 7\n", " NaT\n", - " 2018-06-10 05:37:44.840000+00:00\n", + " 2018-01-25 05:58:05.390000+00:00\n", " None\n", - " 2018-06-15 10:24:02.077000+00:00\n", - " 2018-06-15 10:24:02.077000+00:00\n", + " 2018-02-06 05:43:02.820000+00:00\n", + " 2018-02-06 05:43:02.820000+00:00\n", " None\n", - " 2366315.0\n", + " 562769.0\n", " None\n", - " 2366315.0\n", - " 36570904\n", - " 2\n", + " 562769.0\n", + " 43377265\n", " 2\n", + " 22\n", " None\n", " None\n", " \n", @@ -939,83 +1437,83 @@ "1 4509603 None

You're right to point out that the adjacenc... \n", "2 4617053 None

There's a paper titled Is this the type of thing you are looking f... \n", - "4 7842 None

You can do this in two lines in python with... \n", + "4 2230377 None

This debate has been going on in almost any... \n", ".. ... ... ... \n", - "995 50711443 None

If you want to classify the image then you ... \n", - "996 50884034 None

Unfortunately, batch size is a hyper parame... \n", - "997 50936084 None

You want object detection and segmentation.... \n", - "998 50958287 None

There is a technique where you can write yo... \n", - "999 50780869 None

Both current answers are wrong in that they... \n", + "995 48550118 None

The max-over-time pooling is usually applie... \n", + "996 48612144 None

In order to guarantee that no party in the ... \n", + "997 48306714 None

Dynamic placeholders

\\n\\n

Tensorflow... \n", + "998 48230654 None

I've created a You might be interested in my paper \n", " \n", " 0\n", - " 58722371\n", + " 66070459\n", " None\n", - " <p>The <strong>Attention Mechanism</strong> is...\n", + " <p><strong>I could be wrong,</strong> it shoul...\n", " None\n", " None\n", " 0\n", " NaT\n", - " 2019-11-06 02:45:52.803000+00:00\n", + " 2021-02-05 20:56:20.433000+00:00\n", " None\n", - " 2019-11-06 02:45:52.803000+00:00\n", + " 2021-02-05 21:27:39.437000+00:00\n", " ...\n", - " 2019-11-06 02:46:34.280000+00:00\n", + " NaT\n", " None\n", - " 10133797.0\n", + " NaN\n", " None\n", - " 10704050.0\n", + " 13296138.0\n", " None\n", " 1\n", - " 2\n", - " python|keras|deep-learning|data-visualization|...\n", - " 1031\n", + " 3\n", + " python|keras|softmax\n", + " 338\n", " \n", " \n", " 1\n", - " 59144361\n", + " 13017935\n", " None\n", - " <p>I just finished reading the paper for this ...\n", + " <p>Daniel Lemire has a couple of papers on pre...\n", " None\n", " None\n", - " 3\n", + " 0\n", " NaT\n", - " 2019-12-02 17:59:35.543000+00:00\n", + " 2012-10-22 18:59:16.480000+00:00\n", " None\n", - " 2019-12-02 23:29:51.047000+00:00\n", + " 2013-02-12 22:35:03.423000+00:00\n", " ...\n", " NaT\n", " None\n", " NaN\n", " None\n", - " 10855529.0\n", + " 1327118.0\n", " None\n", " 1\n", - " 4\n", - " python|pytorch\n", - " 2844\n", + " 0\n", + " c++|database|performance|compression|bit-manip...\n", + " 651\n", " \n", " \n", " 2\n", - " 50189281\n", + " 64773818\n", " None\n", - " <p>It looks like your OAI server does not acce...\n", + " <p>Many people use &quot;Doc2Vec&quot; to refe...\n", " None\n", " None\n", - " 5\n", + " 2\n", " NaT\n", - " 2018-05-05 12:11:35.753000+00:00\n", + " 2020-11-10 17:32:04.837000+00:00\n", " None\n", - " 2018-05-05 12:11:35.753000+00:00\n", + " 2020-11-11 20:12:59.113000+00:00\n", " ...\n", - " NaT\n", + " 2020-11-21 08:27:51.943000+00:00\n", " None\n", - " NaN\n", + " 3025856.0\n", " None\n", - " 9120635.0\n", + " 14613675.0\n", " None\n", " 1\n", " 0\n", - " php|xml|oai|oai-pmh\n", - " 117\n", + " r|word2vec|doc2vec\n", + " 492\n", " \n", " \n", " 3\n", - " 62257119\n", + " 43505854\n", " None\n", - " <p>I don't think there is the name used by eve...\n", + " <p>A way to get around this without rooting th...\n", " None\n", " None\n", " 0\n", " NaT\n", - " 2020-06-08 07:33:06.670000+00:00\n", + " 2017-04-19 20:53:29.257000+00:00\n", " None\n", - " 2020-06-08 07:33:06.670000+00:00\n", + " 2017-04-19 20:53:29.257000+00:00\n", " ...\n", - " NaT\n", + " 2016-04-27 10:52:02.297000+00:00\n", " None\n", - " NaN\n", + " 5946474.0\n", " None\n", - " 6495857.0\n", + " 5946474.0\n", " None\n", " 1\n", - " -1\n", - " nlp|nltk|stanford-nlp|spacy\n", - " 401\n", + " 4\n", + " android|ip|ipv6|wifi-direct|wifip2p\n", + " 1785\n", " \n", " \n", " 4\n", - " 54066401\n", + " 48436520\n", " None\n", - " <p><a href=\"http://jshun.github.io/ligra/\" rel...\n", + " <p>You might be interested in my paper <a href...\n", " None\n", " None\n", - " 0\n", + " 7\n", " NaT\n", - " 2019-01-06 22:10:02.730000+00:00\n", + " 2018-01-25 05:58:05.390000+00:00\n", " None\n", - " 2019-01-14 15:17:25.297000+00:00\n", + " 2018-02-06 05:43:02.820000+00:00\n", " ...\n", - " NaT\n", + " 2017-11-29 08:27:32.963000+00:00\n", " None\n", - " NaN\n", + " 4099593.0\n", " None\n", - " 10327739.0\n", + " 4573703.0\n", " None\n", " 1\n", - " 3\n", - " multithreading|algorithm|graph|parallel-proces...\n", - " 1020\n", + " 22\n", + " python|scikit-learn|nlp|nltk\n", + " 50259\n", " \n", " \n", " ...\n", @@ -1277,123 +1775,123 @@ " \n", " \n", " 3279\n", - " 47009439\n", + " 37066615\n", " None\n", - " <p>I would strongly suggest against using freq...\n", + " <p>A possible way to go about this is to assig...\n", " None\n", " None\n", - " 0\n", + " 6\n", " NaT\n", - " 2017-10-30 06:46:48.830000+00:00\n", + " 2016-05-06 07:22:53.190000+00:00\n", " None\n", - " 2017-10-30 06:46:48.830000+00:00\n", + " 2016-05-06 07:35:19.467000+00:00\n", " ...\n", - " 2017-10-30 09:54:36.833000+00:00\n", + " 2016-05-05 04:28:22.140000+00:00\n", " None\n", - " 1714410.0\n", + " 555493.0\n", " None\n", - " 6454217.0\n", + " 555493.0\n", " None\n", " 1\n", - " -2\n", - " python|c++|image-processing|fft|image-segmenta...\n", - " 320\n", + " 1\n", + " algorithm|machine-learning|nlp|artificial-inte...\n", + " 122\n", " \n", " \n", " 3280\n", - " 66288381\n", + " 31859670\n", " None\n", - " <p>I would say behavior such as this is to be ...\n", + " <p>A natural question here is to ask: for any ...\n", " None\n", " None\n", " 0\n", " NaT\n", - " 2021-02-20 05:37:33.433000+00:00\n", + " 2015-08-06 15:20:58.687000+00:00\n", " None\n", - " 2021-02-20 05:37:33.433000+00:00\n", + " 2015-08-06 15:20:58.687000+00:00\n", " ...\n", - " 2021-03-03 07:22:26.220000+00:00\n", + " 2012-09-05 09:40:17.337000+00:00\n", " None\n", - " 14692.0\n", + " 836485.0\n", " None\n", - " 14253961.0\n", + " 836485.0\n", " None\n", " 1\n", - " 3\n", - " tensorflow-federated|federated-learning\n", - " 139\n", + " 2\n", + " algorithm\n", + " 2537\n", " \n", " \n", " 3281\n", - " 66288150\n", + " 39320149\n", " None\n", - " <p>How is the test accuracy calculated? How ma...\n", + " <p>For C, please check out Annex G in C99 or C...\n", " None\n", " None\n", - " 1\n", + " 3\n", " NaT\n", - " 2021-02-20 04:51:46.420000+00:00\n", + " 2016-09-04 18:23:51.087000+00:00\n", " None\n", - " 2021-02-20 04:51:46.420000+00:00\n", + " 2016-09-04 18:28:52.773000+00:00\n", " ...\n", - " 2021-03-03 07:22:26.220000+00:00\n", + " 2016-09-04 16:36:36.097000+00:00\n", " None\n", - " 14692.0\n", + " 1739884.0\n", " None\n", - " 14253961.0\n", + " 1739884.0\n", " None\n", " 1\n", " 3\n", - " tensorflow-federated|federated-learning\n", - " 139\n", + " math|floating-point|ieee-754|complex-numbers\n", + " 888\n", " \n", " \n", " 3282\n", - " 50892512\n", + " 42532658\n", " None\n", - " <p>Be aware that <a href=\"http://%20%20%20[1]:...\n", + " <h2>How can I fight overfitting?</h2>\\n\\n<ul>\\...\n", " None\n", " None\n", " 0\n", " NaT\n", - " 2018-06-16 23:24:22.767000+00:00\n", + " 2017-03-01 13:08:45.890000+00:00\n", " None\n", - " 2018-06-16 23:24:22.767000+00:00\n", + " 2018-04-17 08:37:37.410000+00:00\n", " ...\n", - " 2018-04-24 12:29:02.223000+00:00\n", + " NaT\n", " None\n", - " 5974433.0\n", + " NaN\n", " None\n", - " 881141.0\n", + " 6095189.0\n", " None\n", " 1\n", - " 9\n", - " machine-learning|neural-network|nlp|deep-learn...\n", - " 3310\n", + " 16\n", + " tensorflow|conv-neural-network\n", + " 20371\n", " \n", " \n", " 3283\n", - " 21355344\n", + " 55106542\n", " None\n", - " <p>Nor will you ever understand how to calcula...\n", + " <p>Some modes of the \"Paragraph Vector\" algori...\n", " None\n", " None\n", " 0\n", " NaT\n", - " 2014-01-25 19:41:47.890000+00:00\n", + " 2019-03-11 16:41:34.360000+00:00\n", " None\n", - " 2014-01-25 19:41:47.890000+00:00\n", + " 2019-03-11 16:41:34.360000+00:00\n", " ...\n", - " 2014-01-25 19:32:46.570000+00:00\n", + " NaT\n", " None\n", - " 2462245.0\n", + " NaN\n", " None\n", - " 2462245.0\n", + " 11180395.0\n", " None\n", " 1\n", - " 2\n", - " c|simulation|computational-geometry|game-physi...\n", - " 1844\n", + " 1\n", + " vector|nlp|word2vec|doc2vec\n", + " 506\n", " \n", " \n", "\n", @@ -1402,100 +1900,100 @@ ], "text/plain": [ " a_id a_title a_body \\\n", - "0 58722371 None

The Attention Mechanism is... \n", - "1 59144361 None

I just finished reading the paper for this ... \n", - "2 50189281 None

It looks like your OAI server does not acce... \n", - "3 62257119 None

I don't think there is the name used by eve... \n", - "4 54066401 None

I could be wrong, it shoul... \n", + "1 13017935 None

Daniel Lemire has a couple of papers on pre... \n", + "2 64773818 None

Many people use "Doc2Vec" to refe... \n", + "3 43505854 None

A way to get around this without rooting th... \n", + "4 48436520 None

You might be interested in my paper I would strongly suggest against using freq... \n", - "3280 66288381 None

I would say behavior such as this is to be ... \n", - "3281 66288150 None

How is the test accuracy calculated? How ma... \n", - "3282 50892512 None

Be aware that Nor will you ever understand how to calcula... \n", + "3279 37066615 None

A possible way to go about this is to assig... \n", + "3280 31859670 None

A natural question here is to ask: for any ... \n", + "3281 39320149 None

For C, please check out Annex G in C99 or C... \n", + "3282 42532658 None

How can I fight overfitting?

\\n\\n