text
stringlengths
70
452k
dataset
stringclasses
2 values
My faith in a Senior role has vanished I joined a company a month ago and we were just two: My manager with me as a Designer. Prior to joining, I asked for a Senior role and I was told that, "We will discuss this when we will expand the team." Today, a new designer joined as a Senior - but I wasn't told that he'd be j...
common-pile/stackexchange_filtered
Which temperature belongs to which sensor? I am using lm sensor in my embedded linux. It is working fine. When I am executing the sensors command I am getting following data. lm75-i2c-0-48 Adapter: 21a0000.i2c ...
common-pile/stackexchange_filtered
Pipe between python scripts I have a simple script that reads values from a device and outputs them via print, and another script, which listens on stdin and interprets each number. The device outputs one number each second. Surprisingly, piping the scripts on my ubuntu box does not work. However, if the first script i...
common-pile/stackexchange_filtered
Term for bad press release A press release is a written or recorded communication directed at members of the news media for the purpose of announcing something newsworthy. However, is there a term for bad press release? Something, which an organization would use for communicating something gone wrong? A press release...
common-pile/stackexchange_filtered
Vertical Table in a web page I want to switch between vertical and horizontal table layout for same data. Although it is possible to do it by making applying the same CSS for the first column for the vertical layout as the css applied for the header row for the Horizontal layout. Is there is any way where we can make t...
common-pile/stackexchange_filtered
What am I supposed to look at Android ANRs? I have an React Native app and sometimes it crashes giving me the option to send the feedback. When I access ANRs & crashes from Google Play Console I got a bunch of logs, but I'm not sure what that means. In resume, the topics are "main" tid=1 Native "Jit thread pool worker ...
common-pile/stackexchange_filtered
What's the Ember.js controller naming convention? I'm just getting started with Ember.js and trying to understand some conventions used amongst its projects and I wanna know if, for example, the proper nomenclature for controllers is App.ApplicationController or App.applicationController? I've seen code examples of bot...
common-pile/stackexchange_filtered
prevent OS X sleep whilst running specific launchd plist I have a global launchd plist file that runs a backup script periodically. The script is a pretty simple bash script that sets up some variables and calls duply. However the plist doesn't seem to be preventing the system from going into sleep mode. Is there a wa...
common-pile/stackexchange_filtered
Transfer data of phone with partially broken touchscreen I recently dropped my S7 edge and the bottom half of the screen is now unresponsive (It still displays the image but the touchscreen doesn't work) I'm getting a new phone for christmas so I'm not bothered about repairing the screen. However, I would like to get s...
common-pile/stackexchange_filtered
reduce xml markup for wcf dictionary type I am developing a WCF method that returns object data, including a Dictionary property. The XML contains a large amount of markup and I was wondering if there was means of reducing the markup. Below is an example of the current XML output for the Dictionary: <gases> <a:KeyVal...
common-pile/stackexchange_filtered
Object.defineProperty, get "this" from within the class, not the "window" In a nutshell, I'm trying to define a variable in the window which stays in sync with myValue within the class. So window.myGlobalVarName should always equal myValue within the class. I'm using Object.defineProperty to try to prevent the variable...
common-pile/stackexchange_filtered
Background of the ListItem is not completele hidden when scrolling up In my ListView the edge of the ListItem background is still visible, when scrolling to the top. It still looks up a little from the top edge. Is there a solution for this problem? The ListItem background is added via android:listSelector <ListView ...
common-pile/stackexchange_filtered
Multithreading inside Tomcat - Create a Thread Pool I have a servlet which is used for a long process which takes minutes to complete. Upon receiving a request to this servlet, the long process is executed inside a thread in order to send the response back to the client immediately due to timeout issues: public class T...
common-pile/stackexchange_filtered
Is a priori and a posteriori knowledge objective or subjective? In a description of David Hume, examples of a priori and a posteriori are given: a posteriori: "Dogs are carnivores" a priori: "Bachelors are unmarried" I am having trouble differentiating between the two statements. "Bachelors are unmarried" is a priori b...
common-pile/stackexchange_filtered
Pi Zero - GPIO Lag Summary: I have been trying to write a robot tank using a Raspberry Pi Zero W in Python and am running into an issue wrt to lag. The left motor moves 100-500ms before the right motor (or vice versa), and the gap is long enough to make the motor spin 10-45 degrees to the right before moving ahead. Thi...
common-pile/stackexchange_filtered
How to strip commas from float input? I have a field - :Revenue and it should accept values like 10,000.00, but if I input such value it stores 10 into database instead of 10000.00 What should I do to strip of commas before I save? I've tried to find a few solutions online but wasn't able to implement them as I found ...
common-pile/stackexchange_filtered
Javascript - function return variable before the function even finishes? I always thought that javascript is a single threaded language (for the most part at least). As you can see in my code: <html> <body> <a onclick="test();">test</a> </body> <script> var text = "test"; function show() { console.log("show(): ...
common-pile/stackexchange_filtered
Disable inputs during ajax call without fade I have lots of inputs that call Ajax when clicked. Each as a JavaScript function assigned. These inputs need to be disabled when Ajax is executing. This is what I have so far: $("html").bind("ajaxStart", function(){ $("input").attr("disabled", "disabled"); $(th...
common-pile/stackexchange_filtered
Play! Framework Form/HTML Helpers: Separation of Concerns? I just started playing around with Play 2.1.1 using Scala. Going through some tutorials/sample apps, I came across the helper methods that can be used to create forms, e.g.: @(myForm: Form[User]) @helper.form(action = routes.Application.submit) { @helper....
common-pile/stackexchange_filtered
Can't sign in with corporate account when acquiring authentication token with PublicClientApplication I have a custom UWP application which I have registered in portal.azure.com. The app has been configured to support all account types ("Accounts in any organizational directory (Any Azure AD directory - Multitenant) an...
common-pile/stackexchange_filtered
View Holder Pattern for ViewPager? I have a ViewPager, and FragmentPagerAdpater and 3 Fragments to implement an tab swipe view. Is the ViewPager supposed to "remember" the 3 views after first time rendering? My problem is that after some time, the layouts of the 3 views are "forgotten". That means I need to update them...
common-pile/stackexchange_filtered
Did British measures cause starvation in Norway during WWI? The description of the movie "Hamsun" at IMDB states: Knut Hamsun is Norway's most famous and admired author. Ever since he was young he has hated the English for the starvation they caused Norway during WWI. Based on an internet search, I have been unab...
common-pile/stackexchange_filtered
Change base64 encoded Docker ENV variable during build process to decoded value For our GitLab runner we have some variables saved on GitLab. One of them is a base64 encoded USER_DB_PASSWORD_ENCODED variable. I pass the variable to the Docker build command used for our tests and can access it like this in the Dockerfil...
common-pile/stackexchange_filtered
Why is the wrong row being copied and pasted New to VBA I am trying to loop through a table and copy the row containing a name. When I run the code, the output is the row below the one I want. Sub tblcopypast() Dim Name As String Dim tbl As ListObject Dim i As Integer Dim lastrow As Integer Set tbl = ActiveSheet.L...
common-pile/stackexchange_filtered
rails - efficiently selecting one object with id not in a known set I am building a group blog that is moderated by the community. When a user visits the moderate page, he is served up a random post that he has not yet moderated, and asked whether or not the post should appear. So, the relevant objects are Post, User,...
common-pile/stackexchange_filtered
Python: decorate __call__ and ordinary function with the same decorator? Is it possible in Python 2.6-2.7 to use the same decorator for the following task: class ComplextCallableObject(object): @wrap_me def __call__(self, a1, a2): pass @wrap_me def simple_function(a1, a2): pass Both ComplextCallab...
common-pile/stackexchange_filtered
VoltDB - Renaming a segment? Are you able to rename a segment in VoltDB? I have come across a recent issue where a segment has disappeared and below it, it looks like a command to rename the segment, I am very new to voltdb and would like to know if this command is legal? What is a segment in regards to VoltDB? What c...
common-pile/stackexchange_filtered
Get JSON Results with POST Request with Parameters How can I use a POST request with parameters to get JSON? I know how to do it with a simple GET request. The request url is http://gyminyapp.azurewebsites.net/api/Gym and the parameter query is { "SearchCircle": { "Center": { "Latitude": 0, "Longitud...
common-pile/stackexchange_filtered
Flutter ImagePicker + saving this file on phone or firebase Storage and show it permanently I'm stuck. I am using image_picker package and it is working perfectly - here is the code: File? image; Future pickImage(ImageSource source) async { try { final image = await ImagePicker().pickImage...
common-pile/stackexchange_filtered
Handling filenames that contains a hyphen, within a script I have few files that was incorrectly encoded, during extraction, file names now become something similar to -a -b, Now I'm trying to fix this issue with: convmv -f ENCODING -t utf8 --notest * But got: Unknown option: a Unknown option: b So what's the right wa...
common-pile/stackexchange_filtered
Get Date from Timestamp not working - javascript _.each(reduced[i].data, function(timerevenueObj) { var timestamp = timerevenueObj[0]; for(var j = 0; j < days.length; j++) { var current = new Date(timestamp); var previous = days[i]; console.log(current); ...
common-pile/stackexchange_filtered
R Code: csv file data incorrectly breaking across lines I have some csv data that I'm trying to read in, where lines are breaking across rows weirdly. An example of the file (the files are the same but the date varies) is here: http://nemweb.com.au/Reports/Archive/DispatchIS_Reports/PUBLIC_DISPATCHIS_20211118.zip The c...
common-pile/stackexchange_filtered
Visual Studio 2022 comment shortcuts Just starting out with C++ and was wondering if anyone can help - in Visual Studio 2022 I can add a comment with the shortcut ctrl+k, c or toggle with ctrl+/ however this just gives me line comments. Is there a shortcut for multi-line like this /* */ ? I have had a look through the ...
common-pile/stackexchange_filtered
How to read and edit CSV file using Java Swing? I want to read a CSV file in Java Swing and then modify it; for instance I want to add some extra columns, a column that contains the ip address of the computer on which I am working and some more columns. Can anyone help me? I am working on a project which reads the CSV...
common-pile/stackexchange_filtered
Can Facebook's LASER be used like BERT? Can Facebook's LASER be fine-tuned like BERT for Question Answering tasks or Sentiment Analysis? From my understanding, they created an embedding that allows for similar words in different languages to be close to each other. I just don't understand if this can be used for fine-t...
common-pile/stackexchange_filtered
Arch linux : how to keep wifi connected while sleep/hibernate mode arch linux? I have a automated nodejs script that requires my local machine to stay connected to wifi, but when my machine goes into sleep/hibernate mode the wifi disconnect and cause failing of the service, solutions? if the computer is asleep the ser...
common-pile/stackexchange_filtered
How do i send JsonObject with nested values as Post request in REST assured I am using rest assured -https://code.google.com/p/rest-assured/wiki/Usage My JsonObject looks like this { "id": "12", "employeeInfo": null, "employerInfo": null, "checkDate":<PHONE_NUMBER>218, "netAmount": { "amount": 70, "currency": "USD" }, ...
common-pile/stackexchange_filtered
asp.net core routing (attribute routing) I was wondering what is the best way to go about routing? I have a Index method like: public IActionResult Index(int parentId = -1, int page = 0){ ... return(model); } so since this action has default values, I would like the user be able to get to this action using con...
common-pile/stackexchange_filtered
can't convert string to datetime python how to convert '2020-08-26T12:09:14+0000' to datetime using python from datetime import datetime s = '2020-08-26T12:09:14+0000' f = '%Y-%m-%dT%H:%M:%S.%f%z' date_time_obj = datetime.strptime(s, f) but I got this error: time data '2020-08-26T12:09:14+0000' does not match format '...
common-pile/stackexchange_filtered
How to get the IP address from the Domain Name in Java? I am writing an application where I need the IP address. I have a domain name and I would like to know how to get the IP address from it. For example, "www.girionjava.com". How could I get the IP address of this website by programming in Java? Thanks. InetAddress...
common-pile/stackexchange_filtered
Autosys scheduling I have an autosys job which should be triggered after its dependency job is success and after a particular time. Is there a way that both the job and time can be given as dependency condition? As I am new to autosys, I haven't tried anything
common-pile/stackexchange_filtered
trigger to allow multiple updates I have this trigger I want to make it allow multiple row updates, currently it handling only single row update.when i update record, it says sub query returning more then 1 value.. GO ALTER TRIGGER [dbo].[OnReceiptUpdate] ON [dbo].[paymentReceipt] AFTER UPDATE AS ...
common-pile/stackexchange_filtered
Grid on reconfiguring the columns with locked and flex configs wont work When I tried to reconfigure my grid in afterender with one of the columns having locked:true and flex:1, the view did not render. I am facing this issue where I am trying to create(reconfigure) my grid dynamically based on the store's metadata ch...
common-pile/stackexchange_filtered
Jupyter notebook will not import matplotlib although it appears to be installed in: import matplotlib.pyplot as plt %matplotlib inline df.plot() Gives: ImportError: matplotlib is required for plotting. I installed matplotlib through pip, and showing it gives: Location: c:\users\miscs\appdata\local\programs\python\p...
common-pile/stackexchange_filtered
using levenshtein distance to generate excerpt ok, im building a search engine. and the search module able to extract the relevant words. and now i have a list of words and their offset in original source text.is it a bad idea to use levenshtein distance to compute difference between the query string and the portion of...
common-pile/stackexchange_filtered
How to get <tr> count in HTML table - using Jquery? I am using Jquery Datatables to achieve search and sort functionality on HTML table <table>. I have more then 100 rows in <table> and I used iDisplayLength=6 attribute to display on 6 records at the same time and enabled paging functionality for more records. The prob...
common-pile/stackexchange_filtered
regex remove digits after a dot I'm trying to remove numbers after the dot so that 711.50 becomes 711 without changing the rest of the string. I have some code but it isn't working properly. str <- "1,300 711.50 1300" gsub("\\.\\d+$", "", str) Desired output: "1,300 711 1300" The $ in "\\.\\d+$" requires the repeate...
common-pile/stackexchange_filtered
Closing an SWF File using AS3 How do I close an SWF file using AS3? I want to include the close in an event listener, so when the user clicks a button the application will close. I tried: fscommand("quit"); which doesn't work. I simply want to unload an SWF running from an FLA file. well that's not that easy. You can...
common-pile/stackexchange_filtered
Working precision problem in Complex integrand I'm trying to plot 2d numeric integral of a complex function which is actually real. First problem - small non zero complex part, I was forced to plot RE of it. Second - I'm using only exact numbers but got General::precw warning and can't tune WorkingPrecision! The outpu...
common-pile/stackexchange_filtered
presentedViewController changes orientation of presenting view controller, breaks layout I have a ViewController A that presents an MPMoviePlayerViewController. I want to force the video player to landscape, so I use this: In the AppDelegate, supportedInterfaceOrientationsForWindow if let viewController = self.window!....
common-pile/stackexchange_filtered
Problem with the て form in this sentence 下の方は努力して見ようとしないと、見えないのだ。 (From line 4: https://www.docdroid.net/847v2dg/img-20170413-0001-new.pdf.html) According to my understanding of the sentence, it says: "Concerning the lower area, ...if you don't want to see it with effort... or ...if you don't make an effort while mak...
common-pile/stackexchange_filtered
creating or naming dataframes from list and performing "delta" measurements i have a dataframe that has this kind of format: [timestamp][location code] [feature code][measurement] meaning i can have something like: TS LOC FEAT MEAS 2015-01-24 03:45:00 agb feat1 26 2015-01-25 04:00:00 agb feat1 27 2015...
common-pile/stackexchange_filtered
Controversial view that Convolutions of a PDF might not be a PDF There is this thread which says the convulution formula which integrates a $f(x) \cdot f(s-x)\,dx,$ again returns a PDF. I kinda agree with this. But then, I came across this youtube video. I am providing the links to them below. At 00:15:30 in the video ...
common-pile/stackexchange_filtered
Refer to the cells above I would like help with mysql query that refers to the cell above. for example, in the following table: primary key(id) day count percentage change 1 monday 1 0 2 tuesday 2 (1-0)*100...
common-pile/stackexchange_filtered
Multiple Inheritance on Python how are you, people? I am facing this problem: I want to get all methods and attributes of 2 classes like the example below class Person1: def __init__(self) -> None: self.john_name = "John" self.john_age = 36 def get_name_john(self) -> str: re...
common-pile/stackexchange_filtered
Effective way to carry a sleeping mattress with rucksack? I am going for four day hike in Western Ghats. The terrain is rocky humid and It is one of the eight "hottest hotspots" of biological diversity in the world. I am trying to pack my rucksack as per the terrain and found that sleeping mattress is a most impo...
common-pile/stackexchange_filtered
Provide node name to kubeadm init using config file I need to provide a specific node name to my master node in kuberenetes. I am using kubeadm to setup my cluster and I know there is an option --node-name master which you can provide to kubeadm init and it works fine. Now, the issue is I am using the config file to in...
common-pile/stackexchange_filtered
JAR file that reads .cfg file and produces a text file I developed a small program that takes as input some configuration parameters from a .cfg file and produces an output .txt file based on the values taken from the .cfg file. While the program runs perfectly in eclipse, I receive a NullPointerException error when I ...
common-pile/stackexchange_filtered
Spring AMQP RabbitMQ - Error Handling for Direct reply-to I am trying to handle exceptions that are resulting from a amq.rabbitmq.reply-to queue specificially things like: "org.springframework.amqp.AmqpRejectAndDontRequeueException: Reply received after timeout". How can I configure something so I can handle these exc...
common-pile/stackexchange_filtered
Write an IP with Netmask (sed) I have a problem. I want to write an IP into a file with sed newsource=<IP_ADDRESS>/24 sed -i 's/.*#source*/&\n'"$newsource"'/' file $newsource is an IP, which CAN contain a net-mask /24 or not. Right now the sed writes the full IP but not the /24. How can I change that? This is because...
common-pile/stackexchange_filtered
Loading a custom view in a UITabBarController I'm new to ios here and porting over an Android app. The existing app is the equivalent of iOS UITabBarController with four related UIViewController objects. The first time the app is installed, the user is presented with a "credential" view consisting of two editable text ...
common-pile/stackexchange_filtered
Is it worth upgrading to 28mm tyres from 25 for a 250 mile ride? Next month I'm embarking on a 250 mile ride over one day - I've done plenty of training and I'm ready. Currently my bike has 25mm tyres and some of the 100 - 175mile training rides I've done have proved by the end fairly uncomfortable. I'm wondering what ...
common-pile/stackexchange_filtered
PHP variable like $myvar-test is not valid? I need to create a var like $myvar-test; but thats not valid or? No, it's not valid. The reason is the minus sign (-). In PHP, variables can contain 0-9a-zA-Z_ with the exception that it must not begin with a number and Unicode letters are allowed. See: http://www.php.net/m...
common-pile/stackexchange_filtered
Definition of the conditional pdf I was wondering how the definition of the conditional pdf came about where, $$f_{(X,Y)}(x|y) = \frac{f_{(X,Y)}(x,y)}{f_Y(y)}$$ I'm trying to understand this by thinking of the conditional CDF of $x$ given $y\in (y-\epsilon,y+\epsilon)$ then taking the derivative and the limit as $\eps...
common-pile/stackexchange_filtered
Intel i7 Core CPU numbers on the front side What is the numer at the fourth row on the front side of Intel i7 CPU? (pictured) I saw two Intel CPUs in the store described as "Core i7-6700" but have slightly different prices (both OEMs). Only the difference I found is the numbers on the front side. P.S. I'm already gues...
common-pile/stackexchange_filtered
Change button background image when click in Windows Phone using XAML only? So basically I want to have a button with a certain background image. For example, when the app is loaded you would see a button with it's background image as image1.png and then when it is clicked you see image2.png as the background image. T...
common-pile/stackexchange_filtered
Reading 2D array from file Im working on a simulation project in Python and encountered a problem. I need to save a 2D array to a file, so I can use data from it later. The initial list looks like this: int_array3 = [[14,5], [9,3], [25,5]] #writing to file: with open('data.txt', 'w') as f: for num in int_array3: f....
common-pile/stackexchange_filtered
Can 'why' act as a relative pronoun? Please consider the following two main clauses. Both variables have the same range of values. Therefore, a 4:3 aspect ratio has been chosen. I would like to combine these two main clauses into one sentence containing a main clause and a relative subclause like this: Both variable...
common-pile/stackexchange_filtered
How to render mesh that's inside another mesh? I'm looking for a way to render a mesh that resides inside another mesh, here is an image of what I mean: I want the part of the monkey that is inside the cube to be rendered, so the result would look like this: I know, I could achieve this using boolean operators, b...
common-pile/stackexchange_filtered
How to get the mean of a variable by group, and produce a new variable in the data_table taking that value I have found so many solutions to other questions about the dplyr group_by() function in R, like the one below which suggests the summarize_each() function to simply print the mean of all variable observations for...
common-pile/stackexchange_filtered
How to override default right-click menu in Gtk FileChooserWidget The gtk FileChooserWidget shows a context menu on right-click with "add to bookmarks", "show hidden files", and "show size column" options. I would like to override this menu with a custom menu. Creating a menu on right-click from other gtk widgets (w...
common-pile/stackexchange_filtered
Maven: compile aspectj project containing Java 1.6 source Primary Question What I want to do is fairly easy. Or so you would think. However, nothing is working properly. Requirement: Using maven, compile Java 1.6 project using AspectJ compiler. Note: Our code cannot compile with javac. That is, it fails compilation ...
common-pile/stackexchange_filtered
How to search with non utf chars in mysql and php I need to search from table, like select * from geo where state='Grästorp' But it does not give me any results. but when I run this query with phpmyadmin it gives me right result. How to search with in MySQL with non utf-8 chars? this may help http://stackoverflow.co...
common-pile/stackexchange_filtered
How to remap keyboard function keys to be reached directly? Today most keyboards have function keys (F1, F2, …, F1) are mapped on the keys to be reached with the simultaneous fn/kbd> key. As a developer, I use much more frequently function keys than other functions mapped (luminosity +/-, volume +/-, ...), so I ask: On...
common-pile/stackexchange_filtered
Extract ID from Tapestry URLs I have a tapestry url that looks like http://localhost:8888/forwardtask/88 how do i get the 88 bit? thanks. Tapestry is such a pain to use There are plenty alternatives to Tapestry, you know, and most of them are easier to use i'm inheriting some other guy's code and i'm not really a j...
common-pile/stackexchange_filtered
Azure ARM - Baseline resources with ARM template I have created an ARM template for deploying resources into an Azure Resource Group. Is there any way I could use the same ARM template to perform automated "Baseline-Checks" in order to check if the resources have been changed in any way? Are you just trying to determi...
common-pile/stackexchange_filtered
Correct options for keeping open a reverse SSH-tunnel using autossh I have a set-up with a LDAP-sever (ldapserver) behind a strict firewall, and a webapplication running on a sever (appserver) outside that firewall that needs to authenticate using that LDAP-sever. I have successfully used a third server (tunnelserver) ...
common-pile/stackexchange_filtered
Installed Flask in a virtualenv yet "command not found" Installed virtualenv, activated it, pip installed flask, and yet, when i try to run a script or see if it recognised, i get command not found. (project)gabriel@debian:~/project$ pip list Flask (0.10.1) itsdangerous (0.24) Jinja2 (2.7.3) MarkupSafe (0.23) pip (1.5....
common-pile/stackexchange_filtered
Get .htaccess from root directory to apply on all directories? i have a .htaccess file in my root directory (public_html/) that looks like this: (XXX.XX.XX.XX stands for an IP) RewriteCond %{HTTP_HOST} ^XXX.XX.XX.XX$ [NC] RewriteRule ^(.*)$ http://www.justadomain.tld [R=301,L] There are also .htaccess files in subfold...
common-pile/stackexchange_filtered
How to calculate $\phi$ (phi) - a first order autocorrelation coefficient I have a dataset of historical quarterly earnings per share for 8 years. I am trying to use the following formula for the purpose of estimating earnings: $E(Q_t) =Q_{t-4} + \phi_1(Q_{t-1} - Q_{t-5}) + δ$; where $\phi_1$ is given by the first or...
common-pile/stackexchange_filtered
Categories in which there is a mono $A \to B$ iff there is an epi $B \to A$ Consider the property $P$ of a category $\mathcal{C}$ that for two objects $A$, $B$ in $\mathcal{C}$ there exists a monomorphism $A \to B$ iff there exists an epimorphism $B \to A$. Does the property $P$ have a common name? Can you give any ref...
common-pile/stackexchange_filtered
How to map values from Backend Nest JS to Frontend Angular? Backend Nest JS Service Code: async show(): Promise<any> { var response: dto = new dto(); var data = await this.sequelize.query('Exec API_Select', { type: sequelize.QueryTypes.SELECT }); if(data.length>0){ data.map((item:any) => {...
common-pile/stackexchange_filtered
Zooming to WMS layer after CQL filter in OpenLayers? I created a layer that contains points and I added it to a map as WMS layer in OpenLayers. I did a CQL filter and it works but I'd like to zoom to the selected point when I worked with getextent or getdataextent it doesn't zoom to the right place. It missed with a fe...
common-pile/stackexchange_filtered
header inline with selectizeInput I would like to add selectizeInput() in one line with the header in my shiny app. Moreover I would like to align the header to the left and selectizeInput() to the right. I tried this: shinyUI(fluidPage( theme = shinytheme("simplex"), titlePanel(title = div(div(style = "display: in...
common-pile/stackexchange_filtered
MS project - tentative task date and followup New to MS project. Maybe I am not using it entirely to manage project, but resources. I wanted to plan installation dates of our technician. I know the tentative/estimated date. I can enter a task in MSP 2010, but how to differentiate it from confirmed dates. For example, ...
common-pile/stackexchange_filtered
Unit testing controller method property I'm working through Pro ASP.NET MVC 4 by Apress and am trying to understand the syntax used in unit testing a particular controller method. Given a controller method for a class SomeController: public ViewResult List(int someInt) { ViewModel model = new ViewModel { ModelOb...
common-pile/stackexchange_filtered
DNS leak for non-existent domains when using OpenVPN on a Windows client I have a Windows client connected to a Wi-Fi hotspot: Wireless LAN adapter Wireless Network Connection 2: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Atheros Wireless Network Adapter DHCP Enabled. . . . . . . ....
common-pile/stackexchange_filtered
Render an ActionResult to a String, Return it as ContentResult I have some code that is almost working to convert an actionresult to a string. After I execute the method EditableItem, it outputs the html stream response to a stringwriter, and then I get the html and modify it, and then I have the html in a string (with...
common-pile/stackexchange_filtered
UITableViewCell weird behavior when table is scrolling out of view I have a class which extends UITableViewCell. For the purpose of this exercise, let's call it "CustomCell". In CustomCell, I have a UIImageView IBOutlet setup. The image instance name in this case is myImage. I wish to display this image based on certai...
common-pile/stackexchange_filtered
Switch Over Value Determined at Runtime in c# I've got a case statement in c#. I would like to chose the values for the cases from a configuration file at run time. Is this possible? Not with a switch statement, no. The case labels have to be compile-time constants. Marc Gravell has a switch-like construct you could u...
common-pile/stackexchange_filtered
pd.to_datetime errors = 'ignore' strange behavior I have a dataframe called 'result' that contains a column called "Action". This column contains lots of strings, some of which are dates. I'm trying to convert the strings that contain dates into datetimes, ignoring the rows that don't contain dates because they will er...
common-pile/stackexchange_filtered
Proving that an alternating sequence does not converge I have the sequence $$(a_n)_{n \in {\mathbb{N}}} = \lim_{n\to\infty} \frac{\frac{n!}{n^n}+1}{\frac{n!}{n^n}+(-1)^n}$$ I can see intuitively why this doesn't converge as it acts like $(-1)^n$ for large $n$, which doesn't converge, but I'm unsure how to show formally...
common-pile/stackexchange_filtered
How-to extract a region from a ListContourPlot? Question How could I extract a surface from the ListContourPlot and use it to sample data? Below is the plot, and the code used to generate it. The GridLines define the surface of interest. Please note, the Outer function used to generate the data is a bit slow. Plot Cod...
common-pile/stackexchange_filtered
Algorithm used to prevent a player from getting their same card I have a game I am coding in Tabletop Simulator where all players (P) is given a card (C). Once memorized all players put the card back into the deck (D), shuffled, and then all players are dealt one of the cards from the same deck (D). I am trying to code...
common-pile/stackexchange_filtered
runtime exception in converting uiswitch value to string I am getting a runtime exception here, i think it's with converting switch boolean value to string [care_checkin_data setObject:[NSString stringWithFormat:@"%@",switch.on] forKey:@"ispresentable"]; The specifier %@ is for an Objective-C object, instead switch....
common-pile/stackexchange_filtered
How are I/O operations handled on a computer? What does the computer do when an I/O operation needs to be done during the process? Does the message that we need to do some I/O operation directly reaches the device controller or device driver? What does the operating system have to do with this? A user-process requests...
common-pile/stackexchange_filtered
How to specify another class to hidden input wrapper? I update the project from bootstrap v.3 to bootstrap v.4. I update simple_form and now, when I specify simple_form input tag as 'hidden': = f.input :id, as: :hidden, input_html: { value: nil } It creates an input with wrapper: <div class="form-group hidden integer ...
common-pile/stackexchange_filtered
Inductor potential difference direction If you have increasing current going down an inductor, the inductor will produce a potential difference to produce a counter current in the opposite direction, or up. The lower potential is then on the top of the inductor. However, the net current is still going down, which is hi...
common-pile/stackexchange_filtered
gRPC and etcd client This question involves etcd specific stuff, but I think the question more related to work with gRPC in general. I'm trying to create etcd Watch for some keys, since the documentation is sparse I had a look at Nokia implementation It was easy to adapt code to my needs and I came up with first versio...
common-pile/stackexchange_filtered
Excel vba userform crashes excel when opened I have a userform on my spreadsheet which crashes excel and shows an Excel "System error &h8000ffff (-2147418113)" error message if I open the uf after copying and pasting data to several sheets. However if I open the uf immediately after opening the file it doesn't crash Ex...
common-pile/stackexchange_filtered