{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Run SQL queries on StackExchange Data Explorer" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from google.cloud import bigquery\n", "import pandas as pd\n", "import bs4" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Create a client\n", "client = bigquery.Client(project='mlcore-418622')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## SELECT questions" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "# stackoverflow questions\n", "query = \"\"\"\n", " SELECT *\n", " FROM `bigquery-public-data.stackoverflow.posts_questions`\n", " LIMIT 10\n", "\"\"\"" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "# Run the query and wait for it to complete\n", "query_job = client.query(query)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "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:
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.
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:
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", "\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.
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", "\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", "
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", "\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: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", "
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", "\n", "Your organization's Google workspace account has been suspended. Please contact your Google workspace organization administrator to re-activate your organization.
\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", "\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", "\n", "To continue, switch to an administrator account. This will open the Google Admin console.
\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", "\n", "You do not have permission to create support cases.
\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", "\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", "
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", "\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: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", "
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
.
But the below OCI API
does not give the root compartment
details.
Is there a way to get root compartment
details via any API directly?
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.
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.
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 ...
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
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.
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?
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
.
Full error text:
\n", "\n", "\n", ""ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", "(wrong ELF class: ELFCLASS32): ignored."
\n", "
the same for 64bit and another one
\n", "\n", "\n", "ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", "(cannot open shared object file): ignored.
\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", "\n", "Wow.exe: PE32 executable (GUI) Intel 80386, for MS Windows
\n", "
I tried to build with and without the -m32
flag ( I changed all uint32
to uint64
):
gcc -std=c99 -Wall -Werror -m32 -O0 -fpic -shared -ldl -lGL -o eve.so eve.c\n",
"
\n",
"I saw this answer:
\n", "\n", "\n", "ltrace /lib/ld-linux.so.2 --preload /path/to/lib/strcmp.so ./exec
\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" ] } ], "source": [ "# Iterate over the results and print them\n", "for row in query_job:\n", " # print(f\"{row.name}: {row}\")\n", " for k, v in row.items():\n", " print(f\"{k}: {v}\")\n", " print()\n", " " ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "df = query_job.to_dataframe()" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['id', 'title', 'body', 'accepted_answer_id', 'answer_count',\n", " 'comment_count', 'community_owned_date', 'creation_date',\n", " 'favorite_count', 'last_activity_date', 'last_edit_date',\n", " 'last_editor_display_name', 'last_editor_user_id', 'owner_display_name',\n", " 'owner_user_id', 'parent_id', 'post_type_id', 'score', 'tags',\n", " 'view_count'],\n", " dtype='object')" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.columns" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " | id | \n", "title | \n", "body | \n", "accepted_answer_id | \n", "answer_count | \n", "comment_count | \n", "community_owned_date | \n", "creation_date | \n", "favorite_count | \n", "last_activity_date | \n", "last_edit_date | \n", "last_editor_display_name | \n", "last_editor_user_id | \n", "owner_display_name | \n", "owner_user_id | \n", "parent_id | \n", "post_type_id | \n", "score | \n", "tags | \n", "view_count | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \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", "2022-08-02 16:16:31.810000+00:00 | \n", "NaN | \n", "2022-08-05 09:00:14.693000+00:00 | \n", "2022-08-02 16:32:13.700000+00:00 | \n", "None | \n", "11226740.0 | \n", "None | \n", "11226740 | \n", "None | \n", "1 | \n", "0 | \n", "azure-container-registry|docker-daemon | \n", "256 | \n", "
1 | \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", "2022-08-08 21:53:16.703000+00:00 | \n", "NaN | \n", "2022-08-10 04:49:20.527000+00:00 | \n", "2022-08-09 08:12:13.920000+00:00 | \n", "None | \n", "2395282.0 | \n", "None | \n", "19123691 | \n", "None | \n", "1 | \n", "0 | \n", "azure|azure-devops|azure-application-insights|... | \n", "256 | \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", "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", "17654458.0 | \n", "None | \n", "17654458 | \n", "None | \n", "1 | \n", "3 | \n", "c#|unity3d | \n", "512 | \n", "
3 | \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", "2022-08-18 17:05:12.950000+00:00 | \n", "NaN | \n", "2022-08-19 16:43:13.243000+00:00 | \n", "2022-08-19 16:43:13.243000+00:00 | \n", "None | \n", "897007.0 | \n", "None | \n", "897007 | \n", "None | \n", "1 | \n", "0 | \n", "google-workspace | \n", "512 | \n", "
4 | \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", "2022-08-02 01:00:36.200000+00:00 | \n", "NaN | \n", "2022-08-17 00:40:54.303000+00:00 | \n", "NaT | \n", "None | \n", "NaN | \n", "None | \n", "19502695 | \n", "None | \n", "1 | \n", "0 | \n", "unity3d | \n", "257 | \n", "
5 | \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", "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", "19675989.0 | \n", "None | \n", "19675989 | \n", "None | \n", "1 | \n", "2 | \n", "oracle-cloud-infrastructure|oci-python-sdk | \n", "257 | \n", "
6 | \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", "2022-08-04 19:30:47.050000+00:00 | \n", "NaN | \n", "2022-08-04 19:30:47.050000+00:00 | \n", "NaT | \n", "None | \n", "NaN | \n", "None | \n", "190955 | \n", "None | \n", "1 | \n", "0 | \n", "visual-studio-code|pty|vscode-remote-ssh | \n", "257 | \n", "
7 | \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", "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", "1888143.0 | \n", "None | \n", "1888143 | \n", "None | \n", "1 | \n", "3 | \n", "c|hook|ld|wine|ld-preload | \n", "257 | \n", "
8 | \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", "2022-08-11 12:58:42.827000+00:00 | \n", "NaN | \n", "2022-08-11 22:04:07.210000+00:00 | \n", "NaT | \n", "None | \n", "NaN | \n", "None | \n", "19312689 | \n", "None | \n", "1 | \n", "0 | \n", ".net|sdk|windows-subsystem-for-linux | \n", "257 | \n", "
9 | \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", "3 | \n", "0 | \n", "None | \n", "2022-08-01 21:04:19.373000+00:00 | \n", "NaN | \n", "2022-08-22 12:05:35.783000+00:00 | \n", "NaT | \n", "None | \n", "NaN | \n", "None | \n", "10420838 | \n", "None | \n", "1 | \n", "2 | \n", "maui|.net-maui | \n", "513 | \n", "
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 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 1 0 None \n",
"1 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 0 0 None \n",
"7 1 0 None \n",
"8 1 0 None \n",
"9 3 0 None \n",
"\n",
" creation_date favorite_count \\\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 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 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 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 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 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": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Count questions"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"# write a sql query that counts the number of rows in the stackoverflow posts_questions table\n",
"query = \"\"\"\n",
" SELECT COUNT(*)\n",
" FROM `bigquery-public-data.stackoverflow.posts_questions`\n",
"\"\"\""
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"query_job = client.query(query)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" 1000 rows × 20 columns Asking the question in such a general way d... \n",
"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 2230377 None This debate has been going on in almost any... \n",
".. ... ... ... \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 Tensorflow... \n",
"998 48230654 None I've created a You might be interested in my paper \n",
"\n",
" 3284 rows × 40 columns 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 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 Some modes of the \"Paragraph Vector\" algori... \n",
"\n",
" a_accepted_answer_id a_answer_count a_comment_count \\\n",
"0 None None 0 \n",
"1 None None 0 \n",
"2 None None 2 \n",
"3 None None 0 \n",
"4 None None 7 \n",
"... ... ... ... \n",
"3279 None None 6 \n",
"3280 None None 0 \n",
"3281 None None 3 \n",
"3282 None None 0 \n",
"3283 None None 0 \n",
"\n",
" a_community_owned_date a_creation_date a_favorite_count \\\n",
"0 NaT 2021-02-05 20:56:20.433000+00:00 None \n",
"1 NaT 2012-10-22 18:59:16.480000+00:00 None \n",
"2 NaT 2020-11-10 17:32:04.837000+00:00 None \n",
"3 NaT 2017-04-19 20:53:29.257000+00:00 None \n",
"4 NaT 2018-01-25 05:58:05.390000+00:00 None \n",
"... ... ... ... \n",
"3279 NaT 2016-05-06 07:22:53.190000+00:00 None \n",
"3280 NaT 2015-08-06 15:20:58.687000+00:00 None \n",
"3281 NaT 2016-09-04 18:23:51.087000+00:00 None \n",
"3282 NaT 2017-03-01 13:08:45.890000+00:00 None \n",
"3283 NaT 2019-03-11 16:41:34.360000+00:00 None \n",
"\n",
" a_last_activity_date ... q_last_edit_date \\\n",
"0 2021-02-05 21:27:39.437000+00:00 ... NaT \n",
"1 2013-02-12 22:35:03.423000+00:00 ... NaT \n",
"2 2020-11-11 20:12:59.113000+00:00 ... 2020-11-21 08:27:51.943000+00:00 \n",
"3 2017-04-19 20:53:29.257000+00:00 ... 2016-04-27 10:52:02.297000+00:00 \n",
"4 2018-02-06 05:43:02.820000+00:00 ... 2017-11-29 08:27:32.963000+00:00 \n",
"... ... ... ... \n",
"3279 2016-05-06 07:35:19.467000+00:00 ... 2016-05-05 04:28:22.140000+00:00 \n",
"3280 2015-08-06 15:20:58.687000+00:00 ... 2012-09-05 09:40:17.337000+00:00 \n",
"3281 2016-09-04 18:28:52.773000+00:00 ... 2016-09-04 16:36:36.097000+00:00 \n",
"3282 2018-04-17 08:37:37.410000+00:00 ... NaT \n",
"3283 2019-03-11 16:41:34.360000+00:00 ... NaT \n",
"\n",
" q_last_editor_display_name q_last_editor_user_id q_owner_display_name \\\n",
"0 None NaN None \n",
"1 None NaN None \n",
"2 None 3025856.0 None \n",
"3 None 5946474.0 None \n",
"4 None 4099593.0 None \n",
"... ... ... ... \n",
"3279 None 555493.0 None \n",
"3280 None 836485.0 None \n",
"3281 None 1739884.0 None \n",
"3282 None NaN None \n",
"3283 None NaN None \n",
"\n",
" q_owner_user_id q_parent_id q_post_type_id q_score \\\n",
"0 13296138.0 None 1 3 \n",
"1 1327118.0 None 1 0 \n",
"2 14613675.0 None 1 0 \n",
"3 5946474.0 None 1 4 \n",
"4 4573703.0 None 1 22 \n",
"... ... ... ... ... \n",
"3279 555493.0 None 1 1 \n",
"3280 836485.0 None 1 2 \n",
"3281 1739884.0 None 1 3 \n",
"3282 6095189.0 None 1 16 \n",
"3283 11180395.0 None 1 1 \n",
"\n",
" q_tags q_view_count \n",
"0 python|keras|softmax 338 \n",
"1 c++|database|performance|compression|bit-manip... 651 \n",
"2 r|word2vec|doc2vec 492 \n",
"3 android|ip|ipv6|wifi-direct|wifip2p 1785 \n",
"4 python|scikit-learn|nlp|nltk 50259 \n",
"... ... ... \n",
"3279 algorithm|machine-learning|nlp|artificial-inte... 122 \n",
"3280 algorithm 2537 \n",
"3281 math|floating-point|ieee-754|complex-numbers 888 \n",
"3282 tensorflow|conv-neural-network 20371 \n",
"3283 vector|nlp|word2vec|doc2vec 506 \n",
"\n",
"[3284 rows x 40 columns]"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_qa"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"42\n",
"Index(['a_id', 'a_title', 'a_body', 'a_accepted_answer_id', 'a_answer_count',\n",
" 'a_comment_count', 'a_community_owned_date', 'a_creation_date',\n",
" 'a_favorite_count', 'a_last_activity_date', 'a_last_edit_date',\n",
" 'a_last_editor_display_name', 'a_last_editor_user_id',\n",
" 'a_owner_display_name', 'a_owner_user_id', 'a_parent_id',\n",
" 'a_post_type_id', 'a_score', 'a_tags', 'a_view_count', 'q_id',\n",
" 'q_title', 'q_body', 'q_accepted_answer_id', 'q_answer_count',\n",
" 'q_comment_count', 'q_community_owned_date', 'q_creation_date',\n",
" 'q_favorite_count', 'q_last_activity_date', 'q_last_edit_date',\n",
" 'q_last_editor_display_name', 'q_last_editor_user_id',\n",
" 'q_owner_display_name', 'q_owner_user_id', 'q_parent_id',\n",
" 'q_post_type_id', 'q_score', 'q_tags', 'q_view_count', '_arxiv_links',\n",
" '_n_arxiv_links'],\n",
" dtype='object')\n"
]
}
],
"source": [
"print(len(df_qa.columns))\n",
"print(df_qa.columns)"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"True\n"
]
}
],
"source": [
"# check that `a_parent_id` and `q_id` are the same\n",
"print(df_qa['a_parent_id'].equals(df_qa['q_id']))"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
"# columns to keep\n",
"columns_to_keep = [\n",
" # answer columns\n",
" 'a_id',\n",
" 'a_body',\n",
" 'a_creation_date',\n",
" 'a_last_activity_date',\n",
" 'a_last_edit_date', # for retrieval evaluation, we want to recreate a snapshot of arXiv at the time the answer was written or edited\n",
" 'a_tags',\n",
" \n",
" # question columns\n",
" 'q_id',\n",
" 'q_body',\n",
" 'q_creation_date',\n",
" 'q_last_activity_date',\n",
" 'q_last_edit_date',\n",
" 'q_tags',\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
"df_qa_clean = df_qa.copy()[columns_to_keep]"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [],
"source": [
"arxiv_links = []\n",
"n_arxiv_links = []\n",
"\n",
"for i, row in df_qa.iterrows():\n",
" # print(row['q_body'])\n",
" # print(row['a_body'])\n",
" # print()\n",
"\n",
" # q_soup = bs4.BeautifulSoup(row['q_body'], 'html.parser')\n",
" a_soup = bs4.BeautifulSoup(row['a_body'], 'html.parser')\n",
" arr = []\n",
" for a in a_soup.find_all('a', href=True):\n",
" # get the href attribute\n",
" # if 'arxiv.org' in a['href']:\n",
" # print(a['href'])\n",
" arr.append(a['href'])\n",
" arxiv_links.append(arr)\n",
" n_arxiv_links.append(len(arr))"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [],
"source": [
"df_qa_clean['_arxiv_links'] = arxiv_links\n",
"df_qa_clean['_n_arxiv_links'] = n_arxiv_links"
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" 3284 rows × 14 columns I could be wrong, it shoul... \n",
"1 13017935 Daniel Lemire has a couple of papers on pre... \n",
"2 64773818 Many people use "Doc2Vec" to refe... \n",
"3 43505854 A way to get around this without rooting th... \n",
"4 48436520 co... 73211582.0 \n",
"6
\n",
" \n",
"
\n",
"\n",
" \n",
" \n",
" \n",
" \n",
" f0_ \n",
" \n",
" \n",
" \n",
"0 \n",
" 23020127 \n",
" \n",
" \n",
"
\n",
"\n",
" \n",
" \n",
" \n",
" \n",
" id \n",
" title \n",
" body \n",
" accepted_answer_id \n",
" answer_count \n",
" comment_count \n",
" community_owned_date \n",
" creation_date \n",
" favorite_count \n",
" last_activity_date \n",
" last_edit_date \n",
" last_editor_display_name \n",
" last_editor_user_id \n",
" owner_display_name \n",
" owner_user_id \n",
" parent_id \n",
" post_type_id \n",
" score \n",
" tags \n",
" view_count \n",
" \n",
" \n",
" 0 \n",
" 4635560 \n",
" None \n",
" <p>Asking the question in such a general way d... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2011-01-08 18:54:26.003000+00:00 \n",
" None \n",
" 2011-01-09 09:22:47.240000+00:00 \n",
" 2011-01-09 09:22:47.240000+00:00 \n",
" None \n",
" 487781.0 \n",
" None \n",
" 487781.0 \n",
" 4635254 \n",
" 2 \n",
" 5 \n",
" None \n",
" None \n",
" \n",
" \n",
" 1 \n",
" 4509603 \n",
" None \n",
" <p>You're right to point out that the adjacenc... \n",
" None \n",
" None \n",
" 1 \n",
" NaT \n",
" 2010-12-22 13:25:12.920000+00:00 \n",
" None \n",
" 2010-12-22 13:25:12.920000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 68063.0 \n",
" 4509270 \n",
" 2 \n",
" 5 \n",
" None \n",
" None \n",
" \n",
" \n",
" 2 \n",
" 4617053 \n",
" None \n",
" <p>There's a paper titled <a href=\"http://arxi... \n",
" None \n",
" None \n",
" 1 \n",
" NaT \n",
" 2011-01-06 16:17:47.360000+00:00 \n",
" None \n",
" 2011-01-06 16:17:47.360000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 260307.0 \n",
" 4600258 \n",
" 2 \n",
" 8 \n",
" None \n",
" None \n",
" \n",
" \n",
" 3 \n",
" 4988447 \n",
" None \n",
" <p>Is this the type of thing you are looking f... \n",
" None \n",
" None \n",
" 3 \n",
" NaT \n",
" 2011-02-14 02:51:38+00:00 \n",
" None \n",
" 2011-02-14 03:02:24.360000+00:00 \n",
" 2011-02-14 03:02:24.360000+00:00 \n",
" None \n",
" 421225.0 \n",
" None \n",
" 421225.0 \n",
" 4988323 \n",
" 2 \n",
" 2 \n",
" None \n",
" None \n",
" \n",
" \n",
" 4 \n",
" 2230377 \n",
" None \n",
" <p>This debate has been going on in almost any... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2010-02-09 15:55:20.837000+00:00 \n",
" None \n",
" 2010-02-09 15:55:20.837000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 149637.0 \n",
" 2230032 \n",
" 2 \n",
" 1 \n",
" None \n",
" None \n",
" \n",
" \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" \n",
" \n",
" 995 \n",
" 48550118 \n",
" None \n",
" <p>The max-over-time pooling is usually applie... \n",
" None \n",
" None \n",
" 3 \n",
" NaT \n",
" 2018-01-31 19:36:05.203000+00:00 \n",
" None \n",
" 2018-01-31 19:36:05.203000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 712995.0 \n",
" 48549670 \n",
" 2 \n",
" 16 \n",
" None \n",
" None \n",
" \n",
" \n",
" 996 \n",
" 48612144 \n",
" None \n",
" <p>In order to guarantee that no party in the ... \n",
" None \n",
" None \n",
" 4 \n",
" NaT \n",
" 2018-02-04 19:27:50.137000+00:00 \n",
" None \n",
" 2018-02-04 19:27:50.137000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 104014.0 \n",
" 48611238 \n",
" 2 \n",
" 3 \n",
" None \n",
" None \n",
" \n",
" \n",
" 997 \n",
" 48306714 \n",
" None \n",
" <h2>Dynamic placeholders</h2>\\n\\n<p>Tensorflow... \n",
" None \n",
" None \n",
" 5 \n",
" NaT \n",
" 2018-01-17 17:24:03.947000+00:00 \n",
" None \n",
" 2018-01-17 17:24:03.947000+00:00 \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 712995.0 \n",
" 48230031 \n",
" 2 \n",
" 9 \n",
" None \n",
" None \n",
" \n",
" \n",
" 998 \n",
" 48230654 \n",
" None \n",
" <p>I've created a <a href=\"https://gist.github... \n",
" None \n",
" None \n",
" 5 \n",
" NaT \n",
" 2018-01-12 16:51:22.010000+00:00 \n",
" None \n",
" 2021-07-04 07:48:48.543000+00:00 \n",
" 2021-07-04 07:48:48.543000+00:00 \n",
" None \n",
" 6548106.0 \n",
" None \n",
" 712995.0 \n",
" 42064690 \n",
" 2 \n",
" 44 \n",
" None \n",
" None \n",
" \n",
" \n",
" \n",
"999 \n",
" 48436520 \n",
" None \n",
" <p>You might be interested in my paper <a href... \n",
" None \n",
" None \n",
" 7 \n",
" NaT \n",
" 2018-01-25 05:58:05.390000+00:00 \n",
" None \n",
" 2018-02-06 05:43:02.820000+00:00 \n",
" 2018-02-06 05:43:02.820000+00:00 \n",
" None \n",
" 562769.0 \n",
" None \n",
" 562769.0 \n",
" 43377265 \n",
" 2 \n",
" 22 \n",
" None \n",
" None \n",
" Dynamic placeholders
\\n\\n\n",
" \n",
"
\n",
"\n",
" \n",
" \n",
" \n",
" \n",
" a_id \n",
" a_title \n",
" a_body \n",
" a_accepted_answer_id \n",
" a_answer_count \n",
" a_comment_count \n",
" a_community_owned_date \n",
" a_creation_date \n",
" a_favorite_count \n",
" a_last_activity_date \n",
" ... \n",
" q_last_edit_date \n",
" q_last_editor_display_name \n",
" q_last_editor_user_id \n",
" q_owner_display_name \n",
" q_owner_user_id \n",
" q_parent_id \n",
" q_post_type_id \n",
" q_score \n",
" q_tags \n",
" q_view_count \n",
" \n",
" \n",
" 0 \n",
" 66070459 \n",
" None \n",
" <p><strong>I could be wrong,</strong> it shoul... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2021-02-05 20:56:20.433000+00:00 \n",
" None \n",
" 2021-02-05 21:27:39.437000+00:00 \n",
" ... \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 13296138.0 \n",
" None \n",
" 1 \n",
" 3 \n",
" python|keras|softmax \n",
" 338 \n",
" \n",
" \n",
" 1 \n",
" 13017935 \n",
" None \n",
" <p>Daniel Lemire has a couple of papers on pre... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2012-10-22 18:59:16.480000+00:00 \n",
" None \n",
" 2013-02-12 22:35:03.423000+00:00 \n",
" ... \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 1327118.0 \n",
" None \n",
" 1 \n",
" 0 \n",
" c++|database|performance|compression|bit-manip... \n",
" 651 \n",
" \n",
" \n",
" 2 \n",
" 64773818 \n",
" None \n",
" <p>Many people use "Doc2Vec" to refe... \n",
" None \n",
" None \n",
" 2 \n",
" NaT \n",
" 2020-11-10 17:32:04.837000+00:00 \n",
" None \n",
" 2020-11-11 20:12:59.113000+00:00 \n",
" ... \n",
" 2020-11-21 08:27:51.943000+00:00 \n",
" None \n",
" 3025856.0 \n",
" None \n",
" 14613675.0 \n",
" None \n",
" 1 \n",
" 0 \n",
" r|word2vec|doc2vec \n",
" 492 \n",
" \n",
" \n",
" 3 \n",
" 43505854 \n",
" None \n",
" <p>A way to get around this without rooting th... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2017-04-19 20:53:29.257000+00:00 \n",
" None \n",
" 2017-04-19 20:53:29.257000+00:00 \n",
" ... \n",
" 2016-04-27 10:52:02.297000+00:00 \n",
" None \n",
" 5946474.0 \n",
" None \n",
" 5946474.0 \n",
" None \n",
" 1 \n",
" 4 \n",
" android|ip|ipv6|wifi-direct|wifip2p \n",
" 1785 \n",
" \n",
" \n",
" 4 \n",
" 48436520 \n",
" None \n",
" <p>You might be interested in my paper <a href... \n",
" None \n",
" None \n",
" 7 \n",
" NaT \n",
" 2018-01-25 05:58:05.390000+00:00 \n",
" None \n",
" 2018-02-06 05:43:02.820000+00:00 \n",
" ... \n",
" 2017-11-29 08:27:32.963000+00:00 \n",
" None \n",
" 4099593.0 \n",
" None \n",
" 4573703.0 \n",
" None \n",
" 1 \n",
" 22 \n",
" python|scikit-learn|nlp|nltk \n",
" 50259 \n",
" \n",
" \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" \n",
" \n",
" 3279 \n",
" 37066615 \n",
" None \n",
" <p>A possible way to go about this is to assig... \n",
" None \n",
" None \n",
" 6 \n",
" NaT \n",
" 2016-05-06 07:22:53.190000+00:00 \n",
" None \n",
" 2016-05-06 07:35:19.467000+00:00 \n",
" ... \n",
" 2016-05-05 04:28:22.140000+00:00 \n",
" None \n",
" 555493.0 \n",
" None \n",
" 555493.0 \n",
" None \n",
" 1 \n",
" 1 \n",
" algorithm|machine-learning|nlp|artificial-inte... \n",
" 122 \n",
" \n",
" \n",
" 3280 \n",
" 31859670 \n",
" None \n",
" <p>A natural question here is to ask: for any ... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2015-08-06 15:20:58.687000+00:00 \n",
" None \n",
" 2015-08-06 15:20:58.687000+00:00 \n",
" ... \n",
" 2012-09-05 09:40:17.337000+00:00 \n",
" None \n",
" 836485.0 \n",
" None \n",
" 836485.0 \n",
" None \n",
" 1 \n",
" 2 \n",
" algorithm \n",
" 2537 \n",
" \n",
" \n",
" 3281 \n",
" 39320149 \n",
" None \n",
" <p>For C, please check out Annex G in C99 or C... \n",
" None \n",
" None \n",
" 3 \n",
" NaT \n",
" 2016-09-04 18:23:51.087000+00:00 \n",
" None \n",
" 2016-09-04 18:28:52.773000+00:00 \n",
" ... \n",
" 2016-09-04 16:36:36.097000+00:00 \n",
" None \n",
" 1739884.0 \n",
" None \n",
" 1739884.0 \n",
" None \n",
" 1 \n",
" 3 \n",
" math|floating-point|ieee-754|complex-numbers \n",
" 888 \n",
" \n",
" \n",
" 3282 \n",
" 42532658 \n",
" None \n",
" <h2>How can I fight overfitting?</h2>\\n\\n<ul>\\... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2017-03-01 13:08:45.890000+00:00 \n",
" None \n",
" 2018-04-17 08:37:37.410000+00:00 \n",
" ... \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 6095189.0 \n",
" None \n",
" 1 \n",
" 16 \n",
" tensorflow|conv-neural-network \n",
" 20371 \n",
" \n",
" \n",
" \n",
"3283 \n",
" 55106542 \n",
" None \n",
" <p>Some modes of the \"Paragraph Vector\" algori... \n",
" None \n",
" None \n",
" 0 \n",
" NaT \n",
" 2019-03-11 16:41:34.360000+00:00 \n",
" None \n",
" 2019-03-11 16:41:34.360000+00:00 \n",
" ... \n",
" NaT \n",
" None \n",
" NaN \n",
" None \n",
" 11180395.0 \n",
" None \n",
" 1 \n",
" 1 \n",
" vector|nlp|word2vec|doc2vec \n",
" 506 \n",
" How can I fight overfitting?
\\n\\n\\... \n",
"3283 55106542 None
\n",
" \n",
"
\n",
"\n",
" \n",
" \n",
" \n",
" \n",
" a_id \n",
" a_body \n",
" a_creation_date \n",
" a_last_activity_date \n",
" a_last_edit_date \n",
" a_tags \n",
" q_id \n",
" q_body \n",
" q_creation_date \n",
" q_last_activity_date \n",
" q_last_edit_date \n",
" q_tags \n",
" _arxiv_links \n",
" _n_arxiv_links \n",
" \n",
" \n",
" 0 \n",
" 66070459 \n",
" <p><strong>I could be wrong,</strong> it shoul... \n",
" 2021-02-05 20:56:20.433000+00:00 \n",
" 2021-02-05 21:27:39.437000+00:00 \n",
" 2021-02-05 21:27:39.437000+00:00 \n",
" None \n",
" 66069636 \n",
" <p>I have done manual hyperparameter optimizat... \n",
" 2021-02-05 19:43:28.030000+00:00 \n",
" 2021-02-05 21:27:39.437000+00:00 \n",
" NaT \n",
" python|keras|softmax \n",
" [https://arxiv.org/pdf/1410.5401v2.pdf] \n",
" 1 \n",
" \n",
" \n",
" 1 \n",
" 13017935 \n",
" <p>Daniel Lemire has a couple of papers on pre... \n",
" 2012-10-22 18:59:16.480000+00:00 \n",
" 2013-02-12 22:35:03.423000+00:00 \n",
" 2013-02-12 22:35:03.423000+00:00 \n",
" None \n",
" 11924954 \n",
" <p>I have developing word align bitmap compres... \n",
" 2012-08-12 19:01:42.053000+00:00 \n",
" 2013-02-12 22:35:03.423000+00:00 \n",
" NaT \n",
" c++|database|performance|compression|bit-manip... \n",
" [http://arxiv.org/abs/1207.2189, https://githu... \n",
" 3 \n",
" \n",
" \n",
" 2 \n",
" 64773818 \n",
" <p>Many people use "Doc2Vec" to refe... \n",
" 2020-11-10 17:32:04.837000+00:00 \n",
" 2020-11-11 20:12:59.113000+00:00 \n",
" 2020-11-11 20:12:59.113000+00:00 \n",
" None \n",
" 64772221 \n",
" <p>I am a student (computer science). This is ... \n",
" 2020-11-10 15:52:26.460000+00:00 \n",
" 2020-11-21 08:27:51.943000+00:00 \n",
" 2020-11-21 08:27:51.943000+00:00 \n",
" r|word2vec|doc2vec \n",
" [https://arxiv.org/abs/1405.4053] \n",
" 1 \n",
" \n",
" \n",
" 3 \n",
" 43505854 \n",
" <p>A way to get around this without rooting th... \n",
" 2017-04-19 20:53:29.257000+00:00 \n",
" 2017-04-19 20:53:29.257000+00:00 \n",
" NaT \n",
" None \n",
" 36867687 \n",
" <p>I have two Android KitKat phones, both are ... \n",
" 2016-04-26 14:19:00.243000+00:00 \n",
" 2017-04-19 20:53:29.257000+00:00 \n",
" 2016-04-27 10:52:02.297000+00:00 \n",
" android|ip|ipv6|wifi-direct|wifip2p \n",
" [https://arxiv.org/pdf/1601.00028.pdf] \n",
" 1 \n",
" \n",
" \n",
" 4 \n",
" 48436520 \n",
" <p>You might be interested in my paper <a href... \n",
" 2018-01-25 05:58:05.390000+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",
" 43377265 \n",
" <p>I am using both <a href=\"http://www.nltk.or... \n",
" 2017-04-12 18:41:32.477000+00:00 \n",
" 2022-04-14 01:45:44.743000+00:00 \n",
" 2017-11-29 08:27:32.963000+00:00 \n",
" python|scikit-learn|nlp|nltk \n",
" [https://arxiv.org/pdf/1801.07779.pdf, https:/... \n",
" 3 \n",
" \n",
" \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" ... \n",
" \n",
" \n",
" 3279 \n",
" 37066615 \n",
" <p>A possible way to go about this is to assig... \n",
" 2016-05-06 07:22:53.190000+00:00 \n",
" 2016-05-06 07:35:19.467000+00:00 \n",
" 2016-05-06 07:35:19.467000+00:00 \n",
" None \n",
" 37041935 \n",
" <p>I'd like to do the following given a docume... \n",
" 2016-05-05 03:41:23.833000+00:00 \n",
" 2016-05-06 07:35:19.467000+00:00 \n",
" 2016-05-05 04:28:22.140000+00:00 \n",
" algorithm|machine-learning|nlp|artificial-inte... \n",
" [http://bioinformatics.oxfordjournals.org/cont... \n",
" 4 \n",
" \n",
" \n",
" 3280 \n",
" 31859670 \n",
" <p>A natural question here is to ask: for any ... \n",
" 2015-08-06 15:20:58.687000+00:00 \n",
" 2015-08-06 15:20:58.687000+00:00 \n",
" NaT \n",
" None \n",
" 12278288 \n",
" <p>In a rectangular grid of size m*n, the numb... \n",
" 2012-09-05 09:25:45.387000+00:00 \n",
" 2015-08-06 15:20:58.687000+00:00 \n",
" 2012-09-05 09:40:17.337000+00:00 \n",
" algorithm \n",
" [http://arxiv.org/pdf/1309.4643.pdf] \n",
" 1 \n",
" \n",
" \n",
" 3281 \n",
" 39320149 \n",
" <p>For C, please check out Annex G in C99 or C... \n",
" 2016-09-04 18:23:51.087000+00:00 \n",
" 2016-09-04 18:28:52.773000+00:00 \n",
" 2016-09-04 18:28:52.773000+00:00 \n",
" None \n",
" 39318880 \n",
" <p>In real floating point arithmetic we have t... \n",
" 2016-09-04 16:05:00.530000+00:00 \n",
" 2016-09-04 18:28:52.773000+00:00 \n",
" 2016-09-04 16:36:36.097000+00:00 \n",
" math|floating-point|ieee-754|complex-numbers \n",
" [http://arxiv.org/abs/1210.4539] \n",
" 1 \n",
" \n",
" \n",
" 3282 \n",
" 42532658 \n",
" <h2>How can I fight overfitting?</h2>\\n\\n<ul>\\... \n",
" 2017-03-01 13:08:45.890000+00:00 \n",
" 2018-04-17 08:37:37.410000+00:00 \n",
" 2018-04-17 08:37:37.410000+00:00 \n",
" None \n",
" 36139980 \n",
" <p>I'm using TensorFlow to train a Convolution... \n",
" 2016-03-21 19:33:25.577000+00:00 \n",
" 2018-04-17 08:37:37.410000+00:00 \n",
" NaT \n",
" tensorflow|conv-neural-network \n",
" [https://arxiv.org/abs/1207.0580, https://www.... \n",
" 5 \n",
" \n",
" \n",
" \n",
"3283 \n",
" 55106542 \n",
" <p>Some modes of the \"Paragraph Vector\" algori... \n",
" 2019-03-11 16:41:34.360000+00:00 \n",
" 2019-03-11 16:41:34.360000+00:00 \n",
" NaT \n",
" None \n",
" 55090042 \n",
" <p>So, I have to compare vector of article and... \n",
" 2019-03-10 16:48:45.123000+00:00 \n",
" 2019-03-11 16:41:34.360000+00:00 \n",
" NaT \n",
" vector|nlp|word2vec|doc2vec \n",
" [https://arxiv.org/abs/1507.07998] \n",
" 1 \n",
"