text
stringlengths
70
452k
dataset
stringclasses
2 values
Python to VB.NET - Check URL With Tor I have the following code written in python. The script uses Tor expert bundle to check links using Tor. Would it be possible to write this in VB.NET? I am not sure on vb.net capabilities. #Tor Onion links Active Status checking import os import requests import json import time imp...
common-pile/stackexchange_filtered
Escaping input for LIKE in Zend_Db What is the right way to escape text that is passed to query with LIKE pattern matching? The problem is that select()->where('field LIKE ?', $input . '%'); will be incorrect with $input = '%sometext'; UPDATED: 'vulnerable to' -> 'incorrect with' It's not vulnerability, is it? It's ...
common-pile/stackexchange_filtered
Replace string with another string in C I have written a program that replaces a given c-string with another c-string. My code works well with small files but takes too much time while working with large files (50 Megabytes and larger). Also, there's a fast_strncat() function which is much much faster than strcat() fun...
common-pile/stackexchange_filtered
World Of Warcraft purchasing question So I decided to buy WOW. What is better, buying cds or buy it from blizzard web store? I understand I will need to pay monthly for subscription to be able to play Legion. And if I buy the cds do I need to buy every single patch? And do I need to buy subscription anyways? Welcome t...
common-pile/stackexchange_filtered
Getting form data in nodeJS with Jade I am trying to make my first website in NodeJS with Jade and Express. Now I want to make a form on a page called Lipinsky but I can't figure out how I can store the input into a variable. I tried console.logging res and req and they're big objects without any body, so req.body is u...
common-pile/stackexchange_filtered
Vue3 async composantes in Pinia store i'm working with a Vue3 project with Pinia and i need to perform an async call in the state function. I have a Pinia store made in this way to manage login export const useAuthStore = defineStore({ id: "auth", state: () => ({ user: JSON.parse(localStorage.getItem("user...
common-pile/stackexchange_filtered
Naming of Haskell Modules I am doing the 99 Haskell problems: http://www.haskell.org/haskellwiki/H-99:_Ninety-Nine_Haskell_Problems I can name modules something like "Nine.hs" and at the top of that file have module Nine where ... but in the interest of brevity I would like to write "9.hs" and have module 9 where ... ...
common-pile/stackexchange_filtered
docker-compose in gitlab-ci: expose ports I like to set up a gitlab repository and a gitlab-ci with docker-compose for integration tests. I finally managed to start some containers with docker-compose. image: docker/compose:1.29.2 variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_HOSTNAME: myhost DOCKER_DRIVER: ...
common-pile/stackexchange_filtered
error message occur when im trying redirecting the user on server side im trying to redirect the user to the dashboard if ever the id is not on database. but I get an error message saying "Cannot set headers after they are sent to the client" my middleware code const mongoose = require('mongoose'); const Room =...
common-pile/stackexchange_filtered
Create an array 1*3 containing only one 1 and rest 0 I am just learning matlab now. I faced a difficulty in creating an array of 3 elements in a row. I wrote a code Source = randi ([0,1],1,3); which gave me output [1,1,0]..... [0,1,1].... but I was willing to get only one 1 and two zeros in the output instead of gettin...
common-pile/stackexchange_filtered
Hello! I dont understand how is right use word "component" in sourse Images (WPF) and I have problem with this item When I write the source of the image in my application (WPF) in the XAML file I have a problem with the path. In this way: pack://application:,,,/Registration_and_Login_Forms/Images/key-icon.png I do no...
common-pile/stackexchange_filtered
Change binded object property on button click in WPF I have binded an object to a WPF control. How can I toggle the object property "IsEditMode" on click of the edit button using only xaml and no code behind? Here is sample code of xaml - <Label Style="{StaticResource TitleLabel}" Content="{Binding Path=GroupTi...
common-pile/stackexchange_filtered
Time taken to remove Firebase Realtime Database Listener My question is simple "how much time does it take to remove a listener?" I am asking this because when I assign a ValueEventListener to a specific place in a real-time database and remove it after the work is done. Now, if still the changes are made to the same d...
common-pile/stackexchange_filtered
Is it possible to test a MIDI device through its connector with a multimeter? I have a Fluke 115 multimeter available that I'm hoping has capabilities to register (even with low fidelity) any MIDI signals flowing out of a handful of devices. There's an old keyboard that I'm testing out which has the standard MIDI IN/OU...
common-pile/stackexchange_filtered
mypy: "__eq__" incompatible with supertype "object" this is my code: class Person: def __init__(self, id): self.id = id def __eq__(self, other: 'Person') -> bool: return self.id == other.id def compare(self, other: 'Person') -> bool: return self.id == other.id mypy throw error: Arg...
common-pile/stackexchange_filtered
Abelianization of general linear group? I am asking purely out of interest: What the abelianization of general linear group $GL(n,\mathbb{R})$? The derived group of ${\rm GL}(n,K)$ is ${\rm SL}(n,K)$ for all $n \ge 1$ and all fields $K$, so the abelianization of ${\rm GL}(n,K)$ is the multiplicative group of the field...
common-pile/stackexchange_filtered
Leaving PhD program early, moving to industry and reapplying to others later I am currently enrolled in a PhD program which involves a coursework component followed by a dissertation phase. I applied to the program under the suggestion of former research advisors who were personally familiar with the local faculty. I h...
common-pile/stackexchange_filtered
using -fno-objc-arc still gives me Convert to ARC errors I am trying to update my project to use ARC and I use JSONKit so I went in the 'Build Phases' tab under 'Compile Sources' and added the argument '-fno-objc-arc' but I still get errors all over the place. I thought that was suppose to prevent this from happening?...
common-pile/stackexchange_filtered
How to decrease MySQL container memory usage? Problem: MySQL is taking over 350MB on idle, as shown in docker stats Tried: Tweaking the configuration file as suggested in posts like this one. Added these lines to the file: /etc/mysql/my.cnf innodb_buffer_pool_size=64M innodb_log_buffer_size=256K max_connections=5 key...
common-pile/stackexchange_filtered
Finding the degrees of the attaching map of the $2$-cell of the torus I am trying to calculate the degrees of the attaching map of the two cell of the torus. I have the following cell structure: The $2$-cell is $e_2$ and the $0$-cell (all four corners) is $e_0$. I called the attaching map of $e_2$ $f_2$ and defined i...
common-pile/stackexchange_filtered
What are the advantages/disadvantages of using the Add-on SDK to develop my Firefox extension? I am developing (yet another) password manager add-on for Firefox. My add-on needs to: Add two context menu items to each password field. Open a dialog box or floating panel when the menu item is selected. Access a specific ...
common-pile/stackexchange_filtered
SAP BusinessObjects Crystal Reports -- Where does the data source come from? I'm flummoxed with (what I believe is) a seemingly-simple theoretical question about SAP BusinessObjects / Crystal Reports store their data sources, to help me change them to integrate with our new upgrade of Maximo. One Sentence Summary: I ca...
common-pile/stackexchange_filtered
How could I use file path containing Japanese character for href How could I use file path containing Japanese character for href eCell.innerHTML = "<a href="C:\02_代理店買取数Test Allocation\Failed_test_Allocation_85_20170110144943.csv" download>Failed</a>" It is showing '???' in UI browser status at bottom in place of Jap...
common-pile/stackexchange_filtered
Hierarchical list based on two different properties of same List I have a list of 'quests' with a quest that is 'granted' when one 'ends'. The quests are not stored in sequential order so I'm attempting to find two things. class quests { public string questGrantID { get; set; } public string questEndID { get; s...
common-pile/stackexchange_filtered
quantile threshold of t distribution and normal distribution I want to calculate the quantiles of a t distribution and a normal distribution fitted to my data (can be found here: http://uploadeasy.net/upload/nk0f.rar). The t distribution is leptokurtic, therefore there will be an area, where the quantile of the t dist...
common-pile/stackexchange_filtered
select the month part only in a DATE datatype column using CI active record? How could I select the month part only in a DATE datatype column using CodeIgniter's active record class? What would be my query? Im also confused what do i need to use,.. LIKE or WHERE clause? Please give me examples. What have you tried? S...
common-pile/stackexchange_filtered
SQL Injection in a Web Service URL as a Parameter Value Obviously SQL Injection via the payload of a message is a very common practice and therefore it is always key to cover this (I already have in my code). However I'm just wondering about how possible it is for SQL Injection via the URL and whether this is possible ...
common-pile/stackexchange_filtered
How can i make the XPATH FORMAT as i wanted to (customized) in DataStage? I'm literally confused how to make the XPATH in DataStage, because i've tried some things from Google and that gave me no hope or whatsoever. What i wanted is something like this : <redcords ACCOUNT_NO="1020006187840" BALANCE="0" BALANCE_IDR="0"...
common-pile/stackexchange_filtered
Lipschitz parametrization of a symmetric convex curve Assume that $\gamma$ is a convex curve which is symmetric with respect to two orthogonal lines (the ellipse is such a curve). I want to know if there exists a $(l,L)$-bi-Lipschitz mapping of the unit circle onto $\gamma$ such that $L=\mathbf{diam}(\gamma)/2$ and $l...
common-pile/stackexchange_filtered
Prove that $\frac{a_1}{a_2}+ \frac{a_2}{a_3}+\frac{a_3}{a_4}+...+\frac{a_{n-1}}{a_n} \le \frac{n}{2}$ Let $n \ge 2$ be a positive integer and let $a_1, a_2, ... a_n$ be positive numbers such that $$ a_1\le a_2, a_1+a_2\le a_3, a_1+a_2+a_3\le a_4, ... ,a_1+a_2+...+a_{n-1}\le a_n$$ prove that $$\dfrac{a_1}{a_2}+ \dfrac...
common-pile/stackexchange_filtered
What is the significance of giving multiple font family name For a project I download a template. In its style.css font family was defined as body { font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif; } arial , sans-serif, Helvetica Neue are different font families then why font-family in css is def...
common-pile/stackexchange_filtered
UICollectionView inside a UITableViewCell gets populated with data only after swiping I'm using this method of displaying a UICollectionView inside a UITableViewCell. It's being populated with data from an API, using JSON. My problem with it however is, that when the view initially loads, it contains no data (just bla...
common-pile/stackexchange_filtered
Map through an object with children objects/array I am trying to map through an arraycategory(which is inside an object List) and access id and name which are inside an array of objects. Below is my data. List = { category: [ { id: 1, name: 'Alpha', }, { id: 2, name...
common-pile/stackexchange_filtered
How do I enumerate receivers in my user interface? Is there a good way to fetch a list of Chromecast receivers for use by my user interface? An older version of the CC API offered code like this: (found here) var cast_api = new cast.Api(); cast_api.addReceiverListener('APP ID', onReceiverList); ... onR...
common-pile/stackexchange_filtered
All Hardware do not respond except mouse Ubuntu startup and works correctly but after a while it suddenly stop responding any more Only the mouse is responding for movement but not clicks No keyboard or menus, I only end with just a moving mouse cursor and nothing else Letting the device for a while don't solve anythin...
common-pile/stackexchange_filtered
Is quorum disk required for standalone installations? A provider is setting up a single bare-metal Oracle server for us, which will not be part of any grid or cluster. It has over 20 disks connected via fiber to a SAN, each 1TB. OVM is installed on a remote redhat server and the bare metal has Oracle linux with OVS. Is...
common-pile/stackexchange_filtered
How to get a correct group in my geopandas project? I'm making a project which find the nearest linestring(simulate a river) to points or a single point,looks like this: linestrings points linestring1 point1 linestring2 point4 linestring1 point2 linestring2 point5 linestring1 point3 linestring2 ...
common-pile/stackexchange_filtered
What pycharm's config files are worthy of being in the repository Me and my colleagues are working on a project in pycharm. Usually it is not a good idea to have any of the files in the .idea folder in the repository itself, since they are user and computer specific. However some files might be useful. For example i fo...
common-pile/stackexchange_filtered
ValueError: Exception encountered when calling layer "tf.__operators__.getitem_20" (type SlicingOpLambda) Followed tensorflow's tutorial and tried to recreate the code myself with multi-label input features and encountered this error. I've recreated the sample code as follow. DataFrame Creation: sample_df = pd.DataFram...
common-pile/stackexchange_filtered
Equivalent of protractor's isDisplayed I want to assert that an element exists on a page. It is possible to check that in protractor like that: expect(element(by.id('button')).isDisplayed()).to.eventually.be.true What would be the equivalent in Selenium? I tried expect(driver.findElement(By.id('button')).isDisplayed()...
common-pile/stackexchange_filtered
Parsing json using Ansible I have a json as below : "instances": { "biometricsManagerInstance": { "appId": "biometrics-manager", "spawnType": "uniqueSiteWide" }, "videoSensorInstance": { "appId": "video-sensor", "spawnType": "reuse" }, "faceDetectionInst...
common-pile/stackexchange_filtered
Why would 1 navigation property be NULL? I have a simple query that is returning NULL in a navigation properties for just one of the results. I could understand if they were all NULL, it would mean I need to force the lazy loading to include them, but only 1 of 7 results is coming back NULL. var employees = this.Roles....
common-pile/stackexchange_filtered
How to apply/style All Item Center and space Between Items In Css and ReactJs justify-content: space-evenly; works fine but not getting expected output What Actually I Want to achieve is And Here is what I can create Let me show you my code function App() { return (<div className="App"> <div className...
common-pile/stackexchange_filtered
Most efficient inplace merge algorithms (stable and unstable) I am currently researching the best algorithms available to achieve an inplace merge operation: consider two consecutive sorted arrays of size n and m, and the goal is to merge it in place into a single sorted array (of size n + m). I have found this referen...
common-pile/stackexchange_filtered
Using a selector on a mapped div I am trying to use gsap to animate my .gallery-item's with the following code: const MoveItMoveIt = () => { gsap.from('.gallery-item', { delay: .4, duration: 3, y: 110, ease: "elastic(1, 0.5)", stagger: '0.4'}) } And I have the gallery being mapped as so: {pets.map((pets) => { ...
common-pile/stackexchange_filtered
Unable to follow while in Review Queue While reviewing some Late Answers and First Posts noticed that it's not possible to click "follow" and start following the post. In order to do it at the moment, I had to go to the page where the answer resides outside of the Review queue. This behaviour was first noticed in Sta...
common-pile/stackexchange_filtered
Is it possible to style the contents of a DockPanel to fill the last *visible* child? Consider this XAML snippet... <DockPanel x:Name="TestDockPanel"> <Button x:Name="RightButton" Content="Right" DockPanel.Dock="Right" /> <Button x:Name="FillButton" Content="Fill" /> </DockPanel> As written, the DockPanel wi...
common-pile/stackexchange_filtered
Django: Programmatically add Groups on User save After a user is saved, I need to make sure that its instance is associated with a group by default. I have found two ways to achieve that: Overriding the model's save() method models.py: from django.contrib.auth.models import AbstractUser, Group class Person(Abstract...
common-pile/stackexchange_filtered
PyTorch : cuda out of memory but enough memory left (add error message) I'm trying to classify cat vs dog with GoogleNet(Pytorch). Each class contains 4000 images to train and 1000 images to test, which's size is 300*300. My computer has 32GB RAM and RTX 2080 Super graphic card. And this error occurs when it just start...
common-pile/stackexchange_filtered
How do I access the same IoC container (i.e. Unity) in multiple classes? How do I access the same IoC container (i.e. Unity) in multiple classes? The following container is a local variable when embedded inside a method. As a result, How do I access this container in other classes? using (var container = new UnityC...
common-pile/stackexchange_filtered
ASP.Net Dropdown Value Not Correct in Browser History I can't believe I've never noticed this before, but searching has brought up nothing on this particular oddity. In the code below if you cycled through the dropdown options (select 2, 3, 4, 5 in order) you will see the correct values displayed in the label. Now if y...
common-pile/stackexchange_filtered
Trouble with tsql not in query I'm trying to find rows where a value in table 1 column A are not in table 2 column A This is the query... SELECT contactsid FROM contacts WHERE (email1 NOT IN (SELECT email FROM old_contact)) It returns 0 rows, which I know is incorrect. There are many rows in cont...
common-pile/stackexchange_filtered
Closed form for $\sum_{k\in\mathbb{N}}\frac{k}{a\uparrow^kb}$ Let $a,b\in\Bbb{N}$. Is there a closed form for $\displaystyle\sum_{k\in\mathbb{N}}\frac{k}{a\uparrow^kb}$ ? (I use Knuth's up arrow notation) If so, how can we obtain it ? If there isn't a closed form, is there at least a 'nicer' way to express it using oth...
common-pile/stackexchange_filtered
Was "tea" ever pronounced as "teh-ah"? Follow up on SciFi.SE Pronunciation of teatime: in my answer I argue that "teh-ah" as spelled out once in a discworld novel is a pronunciation-spelling. It is essentially not clear why tea /ti:/ is spelled and pronounced the way it is to begin with. According to one comment by @Te...
common-pile/stackexchange_filtered
How to sort binary array by amount of ones in their binary representation Numbers with identical amount of "1"s should be ordered by decimal representation. For example: srt([3,7,8,9]) => [8,3,9,7] # 1000, 11, 1001, 111 Btw the question how to count set bits in a number is quite interesting by itself https://stacko...
common-pile/stackexchange_filtered
In ExtJS 4 Why column rendere is not working for Objects? I am trying to use renderer for a column inside grid. Here is the json data { "success": true, "products": [{ "myfield": [30, 50] }] } Here is the code for renderer for column { text: "Myfield", dataIndex: 'myfield', ...
common-pile/stackexchange_filtered
How do I get the values in php variables from a selected row in phpgrid? I am trying to populate fields in a html form getting data values from a row selected by a user in phpgrid. So the phpgrid has a table from the database and I want to select a row which then gets populated in a html form. I tried using AJAX variab...
common-pile/stackexchange_filtered
Using jsonb_object_keys postgres function in Django? Is there a way to use jsonb_object_keys postgres function in django with the built in ORM ? Does this answer your question? Postgres 9.4 Django 1.9 get all json keys
common-pile/stackexchange_filtered
How to move Woocommerce product title above image on single product page? How to move Woocommerce product title above image on single product page? I've tried codes that i've found online but they're not doing anything. I'm guessing this has to be done from functions.php but nothing I do works. Thanks in advance. Ple...
common-pile/stackexchange_filtered
SwiftUI and MVVM: Is using multiple viewModels in one view 'valid'? This is more a general question: I'm working on my first SwiftUI project and using MVVM for the first time as well. After programming some views I realized that I need for almost each view two different view models. Often it's the view model for the cu...
common-pile/stackexchange_filtered
Update Community♦ "More than 20 comments posted in the past 3 days" rule to factor deleted comments Just now, Community♦ put a flag with the "More than 20 comments posted in the past 3 days" on the following answer: Reading Binary from File? However, as can be seen by the comments in the answer, it currently has way le...
common-pile/stackexchange_filtered
Tree implementation in .NET Entity Framework Core is causing reference issue I am using the following Tree class: public class Tree {      public Tree() {}              public Guid TreeRootNodeId { get; set; }      public virtual Node TreeRootNode { get; set; }      public virtual List<Node> Nodes { get; set; } } wi...
common-pile/stackexchange_filtered
How to initialize data with computed value inside asyncData? I am building a web app with nuxt. here's simplified code: pages/index.vue data() { return { item: {name:'', department: '', testField: '',}, } } async asyncData() { const result = call some API const dataToInitialize = { name: result.username, ...
common-pile/stackexchange_filtered
Friedman's Test fails inspite of big differences between the average ranks of algorithms I performed Friedman's test to validate that a particular algorithm is statistically different from other compared algorithms. For example: I wanted to prove my algorithm A is significantly different from other algorithms across d...
common-pile/stackexchange_filtered
Upload Excel contains image file in codeigniter I am doing Excel download with codeigniter. Its working, but if I attach an image in an Excel cell, I can't read image from Excel using codeigniter. $sheetData = $objPHPExcel - > getActiveSheet(); foreach($sheetData - > getDrawingCollection() as $drawing) { $stri...
common-pile/stackexchange_filtered
How to calculate total sum of orientation changes in 6 DOF data from a Motion tracker? I'm using data from a motion tracker that give provides 6 coordinates for every frame ( with frame rate of 240Hz) Position: x, y, z Orientation: azimuth(yaw), elevation(pitch), roll I can calculate total distance travelled by sensor ...
common-pile/stackexchange_filtered
RAR/ZIP multiple files separately in separate folders I have 300 Microsoft Word files sitting in 300 folders. I want to password protect these files with a single password in one go. My understanding is that the easiest way to accomplish this would be to put each of these files in an archive. I know that WinRAR has an ...
common-pile/stackexchange_filtered
Chat-Server-Client back and forth messages I'm trying to make a program that sends messages back and forth. I seem to have done that; however, in order for messages to be sent back and forth, the client must first send a message for the conversation to jump start. I want to know how to send messages based on whoever wa...
common-pile/stackexchange_filtered
regex for extracting css rules and double curly brackets Currently I am separating css rules by using preg_match_all( '/(?ims)([a-z0-9s,.:()#_\-@>*]+){([^}]*)}/', $content, $arr); It's working fine. However, if I have double curly brackets like this @keyframes animationName1{0%{opacity: 0}100%{opacity:1}}div{opacity:0}...
common-pile/stackexchange_filtered
When I use 'auto' in the first loop it works fine, but with 'int' it gives an error, why? As you can see, my code works fine, but I had a doubt about use of auto and int in the first loop while accessing a vector: #include <iostream> #include <vector> using namespace std; int main() { vector<vector<int>> a{{1,2,3}...
common-pile/stackexchange_filtered
Update crawl-delay in the Shopify robots.txt file I wan't to update the crawl-delay in the Shopify robots.txt file Here is the robots.txt file content. Robots.txt content](https://i.stack.imgur.com/JXgYR.png) I don't know where I can update the crawl delay. I have no idea how to do that, if anyone know please reply, Th...
common-pile/stackexchange_filtered
inputmask not working when input clicked I have included the inputmask js files correctly and can see it in my source. in my app.js I have the following along with my HTML in my view however I am getting nothing when I click the input why? JS: $(document).ready(function(){ $(":input").inputmask(); }); HTML: <div cla...
common-pile/stackexchange_filtered
How to map the response for the REST request by Apache camel HTTP component I have implemented following route with Apache camel XML mode. <restConfiguration component="servlet" bindingMode="json" contextPath="/abc-esb/rest" port="8181"> <dataFormatProperty key="prettyPrint" value="true" /> <dataFormatProperty...
common-pile/stackexchange_filtered
What metrics could I use to compare multiple 2-dimensional histograms/sinograms? I have a set of two-dimensional shapes, each represented by one or more closed paths, which enclose one continuous area. My objective is to establish a measure of similarity between these shapes. I do not have a rigid definition of similar...
common-pile/stackexchange_filtered
how to insert date using php into mysql query? what i'm trying to do is get date from html input, execute a query using that date. but i can't seem to figure out what is the problem, i'm doing everything right (or am i?) Here is some code index.php <head> <script> function showReport(str) { var xmlhttp = new X...
common-pile/stackexchange_filtered
How to allow user to view HTML page if is logged in using PHP Quick question here. How can I make sure that a user can view a HTML page only if they are logged in (using PHP). I understand that I must use $_SESSION to state whether the user is logged in, but how should I check on an HTML page if the user is logged in i...
common-pile/stackexchange_filtered
Observe Socket-IO Messages I am implementing a chat feature in my app using nkzawa sockets library. I have sent message to server using sockets and an endpoint (url string). I have heard talk about RxJava and RxAndroid being the best way to observer data streams. Observable.from(MyEndPoint).subscribe() But I am havi...
common-pile/stackexchange_filtered
Apache Superset Deck.gl Multiple Layer Map issue I want to create a 4 layered map in apache superset. I tried to use deck.gl multiple layers map. But no matter what dataset I use, the data points are clustered around san francisco and inflexible. Anyone knows how to fix this ? Any suggestions on how to build a layered ...
common-pile/stackexchange_filtered
Header doesn't reach borders My header alway fails to reach the borders of my window, i've tried a plethora of solutions and even setting the margins to 0 does nothing .navbar{ position: fixed; display: flex; justify-content: center; align-items: center; flex-direction: row; flex-wrap: wrap; background-...
common-pile/stackexchange_filtered
Error "mysqld dead but pid file exists" I get the error "mysqld dead but pid file exists" I have a acache webclient running on EC2. With WordPress. I started seeing "error in Databse Connection" When i do a sudo service mysqld status i See the error "mysqld dead but pid file exists" Looks like I have enough space ...
common-pile/stackexchange_filtered
Can someone help me in writing a function to plot circles in ESRI javascript api ver 4.5? I am new to programming and wondering if someone can help me in writing a simple global function to plot a circle based on radius and a center point (lat,long). Basically, i need function that uses variables such as x,y,r to plot...
common-pile/stackexchange_filtered
unsuccessful sudo apt-get update not working still new to Linux and trying out Ubuntu. Was able to get it installed however when I tried updating in terminal with $sudo apt-get update I would get the following: wave@Wave:~$ sudo apt-get update E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource tempo...
common-pile/stackexchange_filtered
Drawing in 2D Arrays Turtle Graphics I am trying to recreate the Turtle Graphics in C but my program is not giving me what I want. My "Turtle" is supposed to start with the pen up and facing east but instead, it starts off by facing south. I have decided to give numbered variables to directions so I can manage them eas...
common-pile/stackexchange_filtered
how to commit and start a new transaction within a single request? I am using the repository pattern in nhibernate. In a asp.net mvc application. I have a httpmodule, that: beginRequest it calls session.beginTransaction(); EndRequest it calls session.Transaction.Commit(); This is fine for 95% of the time. I have a cas...
common-pile/stackexchange_filtered
Edit one line in #each block I have template: {{#each action_log}} <div> {{Name}} {{#if editing_score}} <input type="text" id="set_score" parm="{{_id}}" value="" /> {{else}} <div class="score" id="{{_id}}">{{Score}} .</div> {{/if}} </div> {{/each}} And I have a javascript ...
common-pile/stackexchange_filtered
"Failed to execute child process (no such file or directory)" I am trying to bind a command to run a script to some key in openbox WM.I did that with the following xml lines: . . <keybind key="W-t"> <action name="Execute"> <command>"bash /home/bibek/test.sh"</command> </action> </keybind> . When I try to inv...
common-pile/stackexchange_filtered
In ASP.NET Core 3.0 MVC Project, How exactly do I log to app insights using ilogger? I'm trying to determine how exactly to log to app insights using _logger.LogInformation Im not finding the documentation https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core very helpful. For example, lets imagine ...
common-pile/stackexchange_filtered
Is there any way to getElementBy the text content? I've got a problem I've been stuck with for a while, sorry for spamming the forum a little. Is there any way I can get an element by it's text content? Here's an example: <span id="result_5_name" class="market_listing_item_name" style="color: #FFD700;">Item | Anodized...
common-pile/stackexchange_filtered
MVVM for SfChat Control in Xamarin Forms Does the SfChat control for Xamarin Forms require specific properties for Messages? In my model, I do have the ObservableCollection<MessageModel> messages property to handle messages but the properties of my MessageModel are different than what's in the getting started documenta...
common-pile/stackexchange_filtered
C# Session State Sql Server error catching We have a web application use sessions InProc to store large amount of data like datasets etc. We are thinking about changing sessions state from InProc to Sql Server, but we are using Sessions at so many places in the code and it is very hard to find. (application is too big)...
common-pile/stackexchange_filtered
Why is The Matrix tinted green? It's very noticeable that the world of The Matrix is tinted green, whereas scenes that occur outside of The Matrix have a much more realistic tone. Why was a green filter chosen to portray The Matrix? Related: Why the greenish tint in the Matrix trilogy? Probably because they're in ...
common-pile/stackexchange_filtered
R histogram range error: some 'x' not counted; maybe 'breaks' do not span range of 'x I have a dataset that I'd like to plot with hist in R. There are a number of rows in the dataset whose values are beyond a value that I care about. Specifically, my R script is: library(ggplot2) data = read.table("input.txt", sep=...
common-pile/stackexchange_filtered
Adding Firebase Post Overwrites All Other Posts Swift I have written code that correctly writes a single post to my Firebase database. The issue is that when I add another post it overwrites the post that was there previously. How can I add the posts to the existing array without overwriting? func postToFirebase(imgU...
common-pile/stackexchange_filtered
Environment specific configuration property files in servlet application I want to implement code in servlet application in such manner that will have environment specific property files like spring boot application-dev.properties, application-stage.properties and so on. So based on environment name configured, respect...
common-pile/stackexchange_filtered
If $T_nx\to Tx$ and $x_n\to x$ then $T_nx_n\to Tx$ Let $X,Y$ be Banach spaces, $T_n:X\to Y$ linear and bounded with $\lim_{n\to\infty}T_nx=Tx$ for every $x\in X$. If $x_n\to x$ in $X$ then we have $T_nx_n\to Tx$ in $Y$. What I'm trying to do is to check for triangle inequalities like $$\left\|{T_nx_n-Tx}\right\|\le \...
common-pile/stackexchange_filtered
access, how to access a value of combo box I have a combo box in ms access 2010. Combo box has 3 values. for example: admin, user, super_user; and are stored in table type. In another table/view I input users. and one field is combo box where I can select 1 or more user types. My Requirement: I want to create macro-> ...
common-pile/stackexchange_filtered
Postgres - Get the count of each genre when the genre column has comma seperated values 'Action, Comedy,....Thriller...' I have the following table and the fourth Column contains the genres of each movie. What I want to achieve is to find the count of each genre. "C6523" 1894 "f" "Documentary,Short" "C4532" 1892 ...
common-pile/stackexchange_filtered
Pinterest images on page are not showing I am trying to add a Pin it button on a blog page. AddThis widgets are being used for this. But when I try to use the PIN functionality then it is not choosing all the images on my page. The image tags are as below -- Getting Pinned <img src="images/blog/123_3710961211.jpg" cl...
common-pile/stackexchange_filtered
How do I update my /etc/network/interfaces file so the box comes up with ONLY IPv6 self-assigned address? I apologize for this blatantly newbie-ish question, but I'd like to do this "the right way" and not just muck about until it seems to work, and the documentation I have doesn't seem to address this case. Currently,...
common-pile/stackexchange_filtered
How to create association in Entity Framework in .NET 3.5? I have no problem to creates in Entity Framework 4 with Visual Studio 2010.... I have setup 1 to 1 association, but I have no idea how should setup the mapping detail... I have an employee table, compensation table(imported from database). Compensation table's ...
common-pile/stackexchange_filtered