text
stringlengths
15
59.8k
meta
dict
Q: How to read Json in Google Data Studio, Big Query, Json I am using Big Query for as a cloud data warehouse and DataStudio for vizualisation. In Big Query I have a table with a column named data written in JSON. I only want to extract what is inside the field "city". This formula below that someone gave me worked to...
{ "language": "en", "url": "https://stackoverflow.com/questions/70605501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: apply "nopin" to "og:image" I'm not a coder but I was able to build my site from nonstop searching for "how to do xxxx" on this site. Thank you all so much for the posts and info! I want to know how I can apply the "nopin" tag for pinterest to my "og:image" Here is a link to a sample page http://jamesngart.com/harve...
{ "language": "en", "url": "https://stackoverflow.com/questions/33451638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: assign array value to element using loop How can I give li the value of a,b,c? currently with my below code I got all c. arr = ['a','b','c']; arr.forEach(function(obj){ var x = obj; $('li').each(function () { $(this).text(x); }); }); Something is wrong with my code? A: That is because you are ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/29715709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use Binder to perform dynamic bindings in my C# Function? I need to bind to an output blob, but the blob path needs to be computed dynamically in my function. How do I do it? A: Have consolidated all of the information from this an other posts along with comments and created a blog post that demonstrates h...
{ "language": "en", "url": "https://stackoverflow.com/questions/39855409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Android - Open new activity on item clicked in RecyclerView I'm creating a simple app for newbies, but I'm stuck at the main part. I created RecyclerView list. I want to know how to open a new Activity clicking on the first item in the ListView (see in screenshot). Here is my MainActivity file: public class MainActi...
{ "language": "en", "url": "https://stackoverflow.com/questions/45905492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Different behaviour of self referential model. Is it a bug? It seems that I found a bug. I have two similar models that behave differently. I have a Post model that belongs_to an Author. I have a Task model that is self-referencing. Model code: app/models/author.rb: class Author < ActiveRecord::Base has_many :p...
{ "language": "en", "url": "https://stackoverflow.com/questions/26544986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return String Generated by PHP Webpage I have a url like the following: http://www.test.co.uk/Requests.php?accessToken=01XJSK Depending on wether or not the access token is valid, either a 1 or 'invalidAT' is returned. However when I try to return that value, I end up returning HTML and not the string. This is what...
{ "language": "en", "url": "https://stackoverflow.com/questions/16786924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to install NetBeans IDE 8.0.2 (php version) without losing data preference I have NetBeans IDE 8.0.2 installed with all supported technologies like C, C++, Java etc which is approximately 205Mb and that hampers my PC's performance as it load very slowly. So I just want to install the PHP module which is only 64M...
{ "language": "en", "url": "https://stackoverflow.com/questions/30779055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficiently preventing duplicate accesses I have a statement computing a multiply-accumulate operation that looks something like this: return A->set(A->get() + B->get() * C->get()); Now, A, B, and C may not be unique, and I want to minimize redundant get()s. The only way I can think of optimizing this is with if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55822500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React useEffect infinite loop despite empty array I have a react hook. This hook has sub-hooks, that when generated, generate for themselves an ID. This ID is always unique, as it is simply increased by 1 each time a new sub-hook is created. const App = () => { const [ idCounter, setIdCounter ] = React.useState(0)...
{ "language": "en", "url": "https://stackoverflow.com/questions/65163988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to change even list links css? So here's what I was trying to do CSS: li:nth-child(2n) { background-color:gray; } HTML: <ul> <li><a></a></li> <li><a></a></li> <li><a></a></li> <li><a></a></li> </ul> This works well. But when I try li>a:nth-child(2n) { color:white; } This doesn't work ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61250647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Navigation not working in react-bootstrap suddenly My react app used to work with react-bootstrap and now suddenly the navigation is not working. Here is my package.json. At the moment, it only shows the "Roommates" brand but not other items like sign in or contact or about and there is a small button next to it, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/49165305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I use a ScrollView within a ColumnLayout? I have a ScrollView around a ListView. But when I put this in a ColumnLayout, the ListView disappears. My actual code is larger and more complicated, but I've reduced the problem down to this small example. import QtQuick 2.11 import QtQuick.Window 2.11 import QtQu...
{ "language": "en", "url": "https://stackoverflow.com/questions/57714139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Driver.current_url not reflecting the opening of a link- selenium After using Selenium to log in to LinkedIn, I'm trying to navigate to the jobs page using the following: jobs = driver.find_element( By.XPATH, '//*[@id="global-nav"]/div/nav/ul/li[3]/a') jobs.click() job_src = driver.page_source print(driver.cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/73529261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grouping rows from a single day into a count - MYSQL I've been trying to work through this problem for a bit, and clearly I'm missing something (probably something obvious). I'm trying to group rows from a single day into a count. So the output should look like this: Date Count 2009-09-12 2 2009-09-13 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17454879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering permutations of strings What I'm trying to do is create a set of permutations of a string which contains a '[' and ']' in the string. Then, add only the strings that were created by the create_perm which contains an '[' as the first and ']' as the last to a new set and return that set. What I've done: def ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22517945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ConnectionPoolTimeoutException: Timeout waiting for connection from pool putObject () s3Client Java I'm uploading image files to s3 using the s3 aws client in my java application, but sometimes I've been getting the error ERROR 9 --- [io-8080-exec-27] b.c.i.h.e.handler.HttpExceptionHandler : com.amazonaws.SdkClien...
{ "language": "en", "url": "https://stackoverflow.com/questions/67235034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to load Html page which is outside application context using JSP include or c:import or symlink I need to load some html pages created dynamically by some other application into my application jsp page using jsp include tag <jsp:include page="${Htmlpath}" /> OR <jsp:include page="D:\MySharedHTML\test.html" />. M...
{ "language": "en", "url": "https://stackoverflow.com/questions/19162111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ValueError: need more than 1 value to unpack, split a line I have a file with questions and answers on the same line, I want to seperate them and append them to their own empty list but keep getting this error: builtins.ValueError: need more than 1 value to unpack questions_list = [] answers_list = [] questions_fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/20270871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to use wrapper functions in .so library? If not, is there anything that can provide the same functionality? In a binary foo, it calls function pthread_mutex_lock(). I do not have access to its source code, so I cannot recompile it. But I want to make it use my own implementation of locks. To use my ow...
{ "language": "en", "url": "https://stackoverflow.com/questions/67700629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disnake: delete ephemeral interaction response I have a bot that allows users to play games with slash commands. The bot responds with ephemeral messages. To keep it tidy, it would like to remove some responses (e.g. if the user doesn't react after a few minutes). However, I'm struggling to remove ephemeral messages...
{ "language": "en", "url": "https://stackoverflow.com/questions/73106659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to increase Animation Duration on every click in JS? CSS #plus{ animation-duration: 5s;} I want to increase it on every click using JavaScript... JS Code var increasePlus = document.getElementById("plus"); increasePlus.addEventListener('click', () => { var sec= 5 + "s"; if(sec=="5s"){ sec = 6 + "s"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66877038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Spring data mongo can't save GeoData b/c of No property type found When trying to update an object with geoData spring data mongo throws the ff exception org.springframework.data.mapping.context.InvalidPersistentPropertyPath: No property type found on org.springframework.data.mongodb.core.geo.GeoJsonGeometryCollecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/44262737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony2 DoctrineFixturesBundle namespace error I have a big problem with the fixtures bundle which I can't resolve. I follow the steps as they are meant to be followed, adding the lines to the deps file, installing them, registering them in the autoload and appkernel. When I try to run even only app/console, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/9657036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to save my javascript array to a file? My phonegap/iOS application has a file named data.js which contains an array. The application works with this array and some changes are stored into it. Now when the user quits my application I want it to save the changes to the data.js file. Is there any way to do this? UP...
{ "language": "en", "url": "https://stackoverflow.com/questions/8717439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: adding an EventListener to an Enter_Frame event function I was just curious if I add an a EventListener such as addEventListener(MouseEvent.CLICK, onClick); Inside an ENTER_FRAME event function will it add an instance of that MouseEvent Listener every frame? Here is my code now just wondering if this is bad practi...
{ "language": "en", "url": "https://stackoverflow.com/questions/57503337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: To send an image every 50 ms., should I use TCP or UDP? I am building a C# application, using the server-client model, where the server is sending an image (100kb) to the client through a socket every 50ms... I was using TCP, but besides the overhead of this protocol, sometimes the client ended up with more than on...
{ "language": "en", "url": "https://stackoverflow.com/questions/754104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Prevent "mv" command from raising error if no file matches the glob. eg" mv *.json /dir/ I want to move all JSON files created within a jenkins job to a different folder. It is possible that the job does not create any json file. In that case the mv command is raising an error and so that job is failing. How do I pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63670916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refer to an object initialized Asynchronously with an HTTP service I have a class that contains an array of an object called LearningElementDTO , which is being initialized on the ngOnInit() method Asynchronously with observable . the problem i have is when i try to refer to this array at the loading of the compone...
{ "language": "en", "url": "https://stackoverflow.com/questions/58533649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using construtors with Integer I'm newbe in Java and I've got some questions about using constructors. In what situations I should use new Integer() statement? Look at the code: Integer a = 129;//1 Integer b = new Integer(129);//2 List<Integer> list= new ArrayList<Integer>(); list.add(new Integer(1))...
{ "language": "en", "url": "https://stackoverflow.com/questions/19037640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Java Web Start be configured to update the current server version instead of the latest? Summarizing my research so far it seems as if Java Web Start will use the timestamp provided via a web server to determine whether a certain jar has been updated or not. The update behaviour can be influenced by the jnlp ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/24575403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with foreach Laravel This Question is continuation of My first question So I have an array Illuminate\Support\Collection Object ( [items:protected] => Array ( [0] => stdClass Object ( [id] => 79 [name] => shelin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52158811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel: How to format a 10 digit number into date time I have a number like so 2016031802 and I want it to show up as 2016/03/18 2:00 so that I can use it in a graph of something/time where time is incremented hourly. How can I go about formatting this number so that it shows up in date time format? I am using Excel...
{ "language": "en", "url": "https://stackoverflow.com/questions/36092310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AVR SBI for SPI Ports H+ atmega2560 I'm am not that strong in avr/assembly and I'm having problems selecting "CS" from PORTH on atmega2560 ... can you help me? the code: #define DDR_CS _SFR_IO_ADDR(DDRH), 5 // MMC CS pin (DDR, PORT) #define PORT_CS _SFR_IO_ADDR(PORTH), 5 #define DDR_CK _SFR_IO_ADDR(DDRB), 1 /...
{ "language": "en", "url": "https://stackoverflow.com/questions/40807274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to implement background services in react native? How to implement background service in my app? I want to run the app in the background always without user interaction
{ "language": "en", "url": "https://stackoverflow.com/questions/75262208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wallet style with multiple cells border Swift How do I make only the last cell with round corner and black border color? and the rest of the cell will only have left and right border? This is the design of the cell. The pink part is the section header, the white part is the cell. In the image I have 6 cells and I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/63146929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I change the directory that "cd \" goes to in git? When I enter cd \ git goes into a different directory than I would like to. How can I change it so that cd \ takes me to C:\Users\J P\Dropbox\Git Bash A: cd \ takes you to the root directory of the current drive. That is a function of Windows, not a funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/28294426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gorilla WebSocket WriteMessage errors - Go Lang I am currently experimenting with Gorilla WebSocket package. When sending a message using WriteMessage, if an error is returned, what should I do? Should I start the Closing Handshake or assume that if there is a problem it will be caught using the ReadMessage method a...
{ "language": "en", "url": "https://stackoverflow.com/questions/35350101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xamarin forms Scrollview VerticalScrollBarVisibility does not visible for android only its working in IOS I have tried Xamarin forms Scrollview VerticalScrollBarVisibility="always", but it does not visible for android,Its Showing in IOS devices.I need Scrollbar visible in android device also.Can anybody help me? Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/70800485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Browser Issue/Difference for pdfs defined within The following html code has been used to experiment with how different browsers handle a pdf created through the html control. Below is a very basic html page. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <body> <object data="http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/6497134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Appcelerator tableView font color How can you set the color of the font for the rows in tableView? I DO NOT want to set it row by row like this: var table_data = [ {title:'Row 1', color: 'black'}, ]; I have tried adding font:{colour:'black'} to the table var but it does not seem to work. Like this: var table1 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/18052165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scripts not running in FF and Chrome I am using javascript alert message to show validation messages. In Firefox and Chrome first time working fine,second time for same alert same its asking message like "Prevent this page from creating additional dialogs" with check box. After select that check box, Next time butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/23076084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: renaming a file while creating zip file through Maven-assembly plugin i am using maven-assembly plugin to create the zip , how can i rename some files while zipping using the same plugin?? Update: This is the profile in pom <profile> <id>D1</id> <activation> <property> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16542433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: CMake not finding boost_python lib with brew (macOS) I think I'm going crazy. For some weird reason, I cannot get cmake to find boost_python. I've always used the same CMakeList and the same steps for installing Boost with Boost-Python support on macOS. On GNU/Linux and Windows I usually just build the library manua...
{ "language": "en", "url": "https://stackoverflow.com/questions/50919160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MLFlow creates a new experiment run when logging manually along with autolog I am using MLFlow to log metrics and artefacts in the AzureML workspace. With autolog, tensorflow training metrics are available in the experiment run in the AzureML workspace. Along with auto-logging of metrics - I want to log extra metric...
{ "language": "en", "url": "https://stackoverflow.com/questions/71409262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my SVG sprite id reference not loading the corresponding svg? I am using the SVG Sprite system in vanilla JS to load two SVGs on to my page. I have contained both SVGs in one icons.svg file using https://svgsprit.es/ service: <svg width="0" height="0" class="hidden"> <symbol viewBox="0 0 0 0" id="delete">...
{ "language": "en", "url": "https://stackoverflow.com/questions/69634962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reorder Time/Location data to list point to point trips I have a df that the first and last recorded time at a particular location. Example raw data linked in code below. df <- read.csv('https://raw.githubusercontent.com/smitty1788/Personal-Website/master/example.csv', header = T) address ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44119246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle SQL - Define the year element of a date dependent on the current month I am trying to create a view in SQL Developer based on this statement: SELECT * FROM ORDERS WHERE START_DATE > '01-JUL-2020' The year element of the date needs to set to the year of the current date if the current month is between July and...
{ "language": "en", "url": "https://stackoverflow.com/questions/66367298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Attempt to index field (a nil value) I am trying to make simple object container in Lua ( to practice a language a little) Container = {} Container.__index = Container function Container.create( maxNumber ) local c = {} -- our new object setmetatable(c, Container) c.maxNumberOfRecords = maxNumb...
{ "language": "en", "url": "https://stackoverflow.com/questions/24478922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Explanation for why allocating a second time changes performance I was testing some micro benchmarks on dense matrix multiplication (as a curiosity), and I noticed some very strange performance results. Here is a minimal working example: #include <benchmark/benchmark.h> #include <random> constexpr long long n = 12...
{ "language": "en", "url": "https://stackoverflow.com/questions/51829128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript Apexchart title of x axis always in the wrong position I'm having some issues with the positioning of the title of the x axis in my column chart. Depending on the range of the y values, the title is always in a different position, like in the examples: Example 1 Example 2 Here's my code: var options = {...
{ "language": "en", "url": "https://stackoverflow.com/questions/74626354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery event on change() I have a simple form: <div class="class_a"> <fieldset> <label><input type="radio" id="radio10" name="color" value="1" />Red</label><br /> <label><input type="radio" name="color" value="2" />Yellow</label><br /> <label><input type="radio" name="color" val...
{ "language": "en", "url": "https://stackoverflow.com/questions/4143258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a reliable way to know if libcurl finished downloading a file? I have written this basic class: class SteamHTTP { public: SteamHTTP(); virtual ~SteamHTTP(); void DownloadAllGames(const wxString& username, wxGauge* progress); private: CURL* m_curl; std::stringstream m_currentRequestStri...
{ "language": "en", "url": "https://stackoverflow.com/questions/20923417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to view metaspace area in heap dump? I got the OutOfMemoryError : Metaspace in my tomcat. And I got heap dump file of jvm. (I use java8) So I want to view only metaspace area in heap dump(hprof format), but I can't know how to do that. I use MAT(Eclipse Memory Analyzer) to analyze the heap dump file. Can I view ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62206793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A lisp function refinement I've done the Graham Common Lisp Chapter 5 Exercise 5, which requires a function that takes an object X and a vector V, and returns a list of all the objects that immediately precede X in V. It works like: > (preceders #\a "abracadabra") (#\c #\d #r) I have done the recursive version: (de...
{ "language": "en", "url": "https://stackoverflow.com/questions/1822382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: im making a golf scorecard program in php but want to use javascript for counting the hits now i have programmed in php to hit a button after every hit you make but thats in php so after hit the button the program takes contact with the server. i would like to know if it is possible to make the hit calculation via j...
{ "language": "en", "url": "https://stackoverflow.com/questions/32185105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to avoid splitting float numbers while using Wordninja? I am working on cleaning textual data. I have a column that shows description of products. Some words are adjacent. I used wordninja for splitting words. It worked well but it split the float numbers. I want to use these numbers as it is. Is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74804599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing contents of two files at the same time - UNIX I have two files called "fileA.txt" and "fileB.txt". fileA.txt has the following contents : 1 Arizona ABDJAQ 224 2 Ohio AKOGFR 458 3 Wisconsin EFGTAP 871 4 Colorado NAHBAX 991 The four columns above are "ID", "State", "Pattern", "Number"...
{ "language": "en", "url": "https://stackoverflow.com/questions/12610471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JQuery + Fullcalendar - large number of iteration with jquery object I'm trying to render large number of events (about 50, and it's might be more). for (var eventIndex = 0; eventIndex < resp.select_events.length; eventIndex++){ var event = resp.select_events[eventIndex]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20260777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining two MS Access queries I have this query: SELECT "I1" & "," & "I2" AS Item_set, Round(Sum([T1].Fuzzy_Value)/Count(*),15) AS Support FROM (SELECT * FROM Prune AS t WHERE t.Trans_ID IN (SELECT t1.Trans_ID FROM ( SELECT *FROM Prune WHERE [Nama]="I1") AS t1 INNER JOI...
{ "language": "en", "url": "https://stackoverflow.com/questions/4439369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Controlling the PTZ function of IP camera using C++ I am working on a project that requires the control of the PTZ function of my IP camera through the UI. I am currently using a D-Link DCS-5020L cloud camera, Microsoft Visual Studio 2017 and OpenCV 3.3 for my setup. I am still new to c++ and OpenCV but my project ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46557735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Template function that calls itself results in "instantiation depth exceeds maximum of 900" I am trying to create a function that accepts a lambda function callback and some candidate_primes that can be a set or a vector, but it gives the error: template instantiation depth exceeds maximum of 900 template<class Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63245234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (CSS) Ways to bind element to bottom? Is there a other way to put an HTML element to the bottom except : position: absolute; bottom: 0; and at the parent element: position: relative ...or setting the margin so that the element fits exactly at the bottom? A: Well, you can also use position: fixed; bottom: 0;, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/31461406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Basic file IO in C I am working through the excellent The C Programming Language at the moment, and have got stuck while trying to open and read a file. The program compiles, but seg faults on execution: $ ./a.out Segmentation fault Here is the code: #include <stdio.h> main() { FILE *fp; fp=fopen("/home/c-sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/8804299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Condensing Wide Data Based on Column Name Is there an elegant way to do what I'm trying to do in Pandas? My data looks something like: df = pd.DataFrame({ 'alpha': [1, np.nan, np.nan, np.nan], 'bravo': [np.nan, np.nan, np.nan, -1], 'charlie': [np.nan, np.nan, np.nan, np.nan], 'delta': [np.nan, 1, np....
{ "language": "en", "url": "https://stackoverflow.com/questions/64850612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PDF link in HTML opens up blank page I'm sharing links to PDF files that reside in an external server. Here is how the links look like: <a href="http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en//help/hc/pdfs/mobile/AndroidUsersGuide-40-en.pdf">link 1</a> <a href="http://mywindows...
{ "language": "en", "url": "https://stackoverflow.com/questions/14107838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: progressdialog bar not working im uploading files and im trying to use progressbar while its uploading frist of all i start the upload with this code: @Override public void onClick(View v) { if(v== ivAttachment){ //on attachment icon click showFileChooser(); } if(v== bUpload){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46557071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i call the whole html page to a request handler JavaScript file? I have an html page with a simple form with a post method and a text area field. I want to call the whole of this html page to with a local variable and use http write method to return it to the browser. This is the code snippet of the html. <...
{ "language": "en", "url": "https://stackoverflow.com/questions/63125655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which http request method should I use in Laravel routes? I'm developing a rest api in Laravel 5.7. I know how to make api controllers and how to define appropriate api resource routes referring to corresponding methods in the controller like below: Route::apiResource('platforms', 'PlatformController'); However, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/54643849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Diff Files Directly from the Linux Kernel GIT Repository? I'd like to be able to diff files / directories directly from the Linux Kernel GIT repository without having to download full source. Specifically, I'm interested in two potential solutions: * *The ability to do diff's via a web browser ( firefox ) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1737306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Converting PuTTY's svn repository to mercurial repository I'm going to manage a Korean localized version of PuTTY in mercurial. The requirements for the mercurial repository: * *We should be able to keep track of the latest revisions from the PuTTY svn repository. *No pushing is required. My plan is to have th...
{ "language": "en", "url": "https://stackoverflow.com/questions/8625727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting an in-memory representation of the JPEG rendering of an Image I need to know how to get an array of bytes from a loaded image, in java. BufferedImage seems not to supply any methods that produce an array of bytes, so what do I use? A: BufferedImage bufferedImage; //assumed that you have created it already B...
{ "language": "en", "url": "https://stackoverflow.com/questions/1352229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sed only replaces first leading white space match for only a particular file - dealing with CR-only line endings Editor's note: The title was amended later with the benefit of hindsight; there were two distinct problems: (a) it turned out that the input file had \r-only (CR-only) line endings (classic Mac OS-style)...
{ "language": "en", "url": "https://stackoverflow.com/questions/35327981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: keep rows that start with certain text strings Background I have the following df import pandas as pd df = pd.DataFrame({'Text' : ['\n[SPORTS FAN]\nHere', 'Nothing here', '\n[BASEBALL]\nTHIS SOUNDS right', '\n[SPOR...
{ "language": "en", "url": "https://stackoverflow.com/questions/57498726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scala Mongo driver getting results using Future I am intending to fetch all records that match a criteria from Mongo using Scala Mongo Driver. Using Observables, you can access the stream by creating a subscription: val MaxBuffer: Long = 100 var docs: Queue[Document] = Queue.empty var sub: Option[Subscription] = Non...
{ "language": "en", "url": "https://stackoverflow.com/questions/47753955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overload bracket access and assignment C++ I'm writing a hash table for my data structs class, and I'd like to add a little syntactic sugar to my implementation. template <typename HashedObj, typename Object> Object & Dictionary<HashedObj, Object>::operator[](HashedObj & key) { return items.lookup(key); } That w...
{ "language": "en", "url": "https://stackoverflow.com/questions/1618524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Convert varchar column to datetime2 without affecting column data? I need to change column datatype without affecting data in that column. I have table structure below: CREATE TABLE [dbo].[PROJECT_LOG]( [ID] [int] IDENTITY(1,1) NOT NULL, [UNIT] [int] NULL, [NAME] [nvarchar](100) NULL, [STATUS] [numer...
{ "language": "en", "url": "https://stackoverflow.com/questions/67981177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web page auto dimming when hover on main menu I have a webpage running magento and it is using vmegamenu. Now my customer wants to dim the page when someone is hovering on the main menu or the dropdown box. Example : http://jsfiddle.net/rkLL6yd8/3/ CSS .link { z-index: 700; list-style-type: none; padding: 0.5e...
{ "language": "en", "url": "https://stackoverflow.com/questions/38279492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call Range.Find method with MatchCase parameter I have some Powershell code that is trying to find a particular string in a range of an Excel sheet. It uses the Find method from the excel libraries. Here is the code: $default = [Type]::Missing $objRange.find($Search,$default,$default,$xlLookAt::xlPart,$xlSearchOrder...
{ "language": "en", "url": "https://stackoverflow.com/questions/21321436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authentication failing for Modulr API - Python The API docs are here The only code example is in Java, here Every time I try to authenticate I get: { "error": "Authorization field missing, malformed or invalid" } I have been through the auth docs many times over and still no luck. Here is my code: import reque...
{ "language": "en", "url": "https://stackoverflow.com/questions/56805662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Duplicate function name in Class View when defined in a namespace I'm using Visual Studio Professional 2013 Update 4. I've defined a couple functions in my header file: class CFileReader; class CFileWriter; namespace FileFixer { bool makeFixedFileName ( const wchar_t* inFile , wchar_t* outFile , size_t maxLen )...
{ "language": "en", "url": "https://stackoverflow.com/questions/30138272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Invoking std::thread with pointer to freestanding function I tried to invoke std::thread perfect forwarding constructor (template< class Function, class... Args > explicit thread( Function&& f, Args&&... args );) with a pointer to function (NOT a pointer to member function), as shown in the following M(N)WE: #includ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47070592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: App crashes on higher versions of android I have been creating an app, built on target sdk version 15 and with minimum sdk version of 8. Every thing is running perfect when I run it on a devices running version 8. But when I try it on anything higher than version 10 it crashes with a NullPointerException. The logca...
{ "language": "en", "url": "https://stackoverflow.com/questions/12763126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android charting library with inbuilt support to plot graph for days, weeks, months and years break down from input data Is there any charting library in Android that has built-in support to plot graph for days, weeks, months and years break down of input data. How to develop a graph which looks like this ? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72426937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Byte buffer transfer via UDP Can you provide an example of a byte buffer transferred between two java classes via UDP datagram? A: Hows' this ? import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetSocketAddress; public class Server { public static v...
{ "language": "en", "url": "https://stackoverflow.com/questions/80042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Query takes almost two seconds but matches only two rows - why isn't the index helping? Table: CREATE TABLE `Alarms` ( `AlarmId` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `DeviceId` BINARY(16) NOT NULL, `Code` BIGINT(20) UNSIGNED NOT NULL, `Ended` TINYINT(1) NOT NULL DEFAULT '0', `NaturalEnd` TINYINT(1) NO...
{ "language": "en", "url": "https://stackoverflow.com/questions/48890660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ajax post works on localhost, but not on nginx server I was experimenting with building a small CMS for a project. Part of it was, that when you click on the save-button your current edits will be saved. $('.save-button').click(function() { var speisekarte_content = $(".speisekarte-content").html(); console.lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/30980101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uncaught RangeError: noUiSlider I'm trying to add few sliders on website and I got stucked. I've downloaded nouislider script directly from their website and before that, I added jQuery 1.8.0 to my website. This is what I produced: index.html <head> ... <link rel="stylesheet" href="Content/noUiSlider/jquery.no...
{ "language": "en", "url": "https://stackoverflow.com/questions/22906791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Settings Array in C++ My aim is to set up a data structure to store the settings of my application. In PHP I would just write... $settings = array( "Fullscreen" => true, "Width" => 1680, "Height" => 1050, "Title" => "My Application", ); Now I tried to create a similar structure in C++ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12116549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to loop in reactJS in table cell How should I loop roles for each project in a row? I want to set roles in each cell for each project. I currently have a problem with syntax as this is my first time developing in reactJS. render() { ... <Table resourceName="projects" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55594136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Total number of Subsets I am getting curious about this question.. How many ways can you choose a subset from the set P = {1, 2, 3, .. n}? The subset S should meet the following condition: When you choose x (x ∈ P, x is an element of the set P) to create S, you cannot choose a * x and b * x for S. Constraints : 1 <=...
{ "language": "en", "url": "https://stackoverflow.com/questions/15455034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Do I Get the Instantiated DataTemplate object for an item displayed in a ContentControl? I have a ContentControl whose content is being set in a ViewModel through binding. I have a couple things that I would like to programatically set on the view/template that is being applied to the data object. If I underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7422735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory Leak VBA - Arrays with Dictionaries of Dictionaries I'm running out of memory (I have 16GB) in a script I am running. Here is a little background: I am generating an array that is ~150k rows by 8 column as the basis for my calculations. Then, for each "row" of values (nothing is ever written to the worksheet)...
{ "language": "en", "url": "https://stackoverflow.com/questions/29843103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI List based on @FetchedRequest and filtering computed properties crashes I have such code that has @FetchRequest loading Contacts then I have computed properties doing filter based on @State variable @FetchRequest var fetchRequest: FetchedResults<Contact> private var contacts : Array<Contact> { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59263830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extra build/missing object files with header-tracking Makefile I have written a (GNU make) Makefile designed to perform automatic dependency tracking in header includes. Everything works great except that upon typing make a second time, the entire code base rebuilds. Only typing make the third time and successive ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/16385498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show only one category from the start jquery I don't know a lot of jQuery, I only know CSS and HTML but I'm guessing that what I need to do is pretty simple. I grabbed a code somewhere and modified it to make a category filter. Here's an image of what I've done. Everything works fine. The only thing I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/43219496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to solve "Socket read timed out" when using hikari connection pool I am developing an application using play framework (version 2.8.0), java(version 1.8) with an oracle database(version 12C). There is only zero or one hit to the database in a day, I am getting below error. java.sql.SQLRecoverableException: IO Er...
{ "language": "en", "url": "https://stackoverflow.com/questions/62632709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting the width of columns with an array as parameter I have the following function: function LoadColWidth(thewidtharray) { for (i = 0; i < thewidtharray.length; i++) { $('#MyGrid .tr:first').eq(i).width(thewidtharray[i]); } }; var NarrowWidth = new Array(70, 72, 97, 72, 97, 72, 96, 76, 76, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5070757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xamarin Community Toolkit CameraView video file location supplied becomes invalid IOS and Android I'm using the CameraView to capture a series of short videos. I want these videos to be viewable at a later time from within the app. I'm using the MediaCaptured event to get the path of captured videos and saving these...
{ "language": "en", "url": "https://stackoverflow.com/questions/72778941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java and 2 threads I am trying to learn Java's threads in order to do an assignment, but I do not understand how I can make each thread to do its own code. I also get an error: Program.java:1: error: Program is not abstract and does not override abstract me thod run() in Runnable public class Program implements Runn...
{ "language": "en", "url": "https://stackoverflow.com/questions/9909216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }