text
stringlengths
15
59.8k
meta
dict
Q: How to assign a tf.keras.layers.layer to a class without initializing it? I work on a class to create all sorts of symmetric AE's. I now port this class to TF 2.0 and it is more complicated than I thought. However, I use subclassing of layers and models to achieve this. Therefore I want to group several keras layers...
{ "language": "en", "url": "https://stackoverflow.com/questions/55965135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extract user input to python from a table created in browser? I want to create a table in a browser that's been created with python. That part can be done by using DataTable of the bokeh library. The problem is that I want to extract data from the table when a user gives his/her input in the table itself. Any libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/45540638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: (python) how can i split tuple variables? from text file, i could import the result with this code: with open('filename.txt') as file: information = [tuple(line) for line in csv.reader(file)] print(information) result: (' 1.1 4.4 7.5 8.9 11.7 15.0 15.3 15.6 13.3 11.1 7.5 5.8 ',) I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/64844522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Click facebook like button and be taken to another url Is something like this possible? I have a client launching an online magazine for his business. He wants to add a facebook like button (for the magazine fanpage) on his current corporate site and ask users to 'like it' in order to be taken to the magazine websi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7919403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Instantiating objects This may be a dumb question although due to my poor wording i'm having a hard time getting a good understanding from searching up on it. When instantiating an object why is the declared like so. Object @object = new Object(); // rather than just Object @object; Is this simply just to call the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50810977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Google Assistant test app unavailable in my country I've been following this tutorial on using Dialogflow and Firebase so I can control a simple website, but when trying to Talk to <app name> I receive the response <app name> isn't available on devices set up for your language or country. Sorry about that. I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/53189325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use the Raycaster with a CombinedCamera? I try to use a Raycaster (for selection) that works fine with a PerspectiveCamera but doesn't work with a CombinedCamera. First it seems that CombinedCamera is not supported by the Raycaster, so among those line of three.js I add this : if ( camera instanceof THREE.Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/34244134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB hidden node still receiving connections I'm not sure if this question been asked before or if the following behavior of MongoDB is normal. Searching online output no results to this scenario. Initially, we had a 3 node deployment, 1 Primary, 1 Secondary, and 1 Arbiter. We wanted to add a ReadOnly replica to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49186717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom cordova plugin - Get path to file I've created a Cordova plugin for Android, and I've put a file in the src folder: Plugin.xml <source-file src="myfile.ext" target-dir="src/com/example"/> I also can see (in Android Studio) that the file was succesfully added in the src folder: android |-- /src |-- com...
{ "language": "en", "url": "https://stackoverflow.com/questions/44044714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect tap touches on CALayer My setup is as follows - UIView - CALayer (container) -CAShapeLayer -CAShapeLayer -.. And i want to detect tap touches on every shapelayer to change its color I have put a UITapGestureRecognizer on my UIView and have the following code CGPoint point = [self...
{ "language": "en", "url": "https://stackoverflow.com/questions/15024177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do you need License for OS (Windows) inside Docker I am looking at creating a Docker (set) for applications that run on Windows. So, I need the Docker to have Windows OS. What license do I need for it? Or if I run the Docker on a Windows VM, does it make use of the same license from the Host? A: The container image...
{ "language": "en", "url": "https://stackoverflow.com/questions/42574038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Using stream_with_context as async I want to stream a file in telegram using pyrogram, but I can't do it because stream_with_context is not working asynchronously, what can I do? How can I send a file (bytes) to the user asynchronously via flask? No matter how hard I searched, I could not find the answer to this que...
{ "language": "en", "url": "https://stackoverflow.com/questions/73949570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update a View without Postback in MVC3 How can I update a dropdownlist in MVC3. I want to refill it with latest data filled by some other view, but I do not want to postback the view and want to achieve it with jquery. I have a dropdownlist like: @Html.DropDownListFor(m => m.Department, Model.Departments) @H...
{ "language": "en", "url": "https://stackoverflow.com/questions/14515703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Messed up username and permission on raspberry pi, but still logged in as root through ssh I've gotten myself into a pickle, but perhaps there is still hope. I've commented out the user "pi" while acting as root after typing the following: nano etc/passwd Saved and exited. Next I literally exit terminal. Now upon...
{ "language": "en", "url": "https://stackoverflow.com/questions/20963992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Radian Console adds random Characters as executed I am facing a problem on a Windows PC using a Radian console for R. When I execute a line, random characters are added to the end of the line in the console. As you can see in the image attached, there is a ") added at the end of the line when I try to execute it. Ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/73517367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to sort structure C# I've got this structure: struct kluczyk { int id; char litera; } Making a list: List<kluczyk> posortuj = new List<kluczyk>(); for (int i = 0; i < 10; i++) { kluczyk temp = new kluczyk(some char here, i); posortuj.Add(temp); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26682080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to get local language in IE-11 I am trying to get the local language in Angular in IE-11. I set the local language in the IE-11 browser as french and then trying to get the local language from IE-11 as follows. this.lang = window.navigator.languages ? window.navigator.languages[0] : null; this.lang = this.la...
{ "language": "en", "url": "https://stackoverflow.com/questions/62173691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to make Google Analytics filter work I wish to create a custom filter on Google Analytics (GA), that would allow me to block all views except the genuine ones onto my webpage. I want to do this because the google-analytics ID associated with my property (UA-XXXXXXXX-X) is public. Hence in theory, my analytics...
{ "language": "en", "url": "https://stackoverflow.com/questions/62128540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Doubts with Python I have a question. Here you have part of my code for a better understanding: def client (): A=[] B = open("clientes.txt", "r") user = input("To begin, enter your ID number: ") for line in B: C = line.split("$") A.append(C) for i in range (len(A)): if A[i...
{ "language": "en", "url": "https://stackoverflow.com/questions/9958087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why is full-laziness a default optimization? Full laziness has been repeatedly demonstrated to cause space leaks. Why is full laziness on from -O onwards? I find myself unconvinced by the reasoning in SPJ's The Implementation of Functional Programming Languages. The claim is that in f = \y -> y + sqrt 4 sqrt 4 is...
{ "language": "en", "url": "https://stackoverflow.com/questions/35115172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: pip install pods command failed in jupyter with FileNotFoundError: [Errno 2] No such file or directory: 'C:\\tmp\\sods.log' I tried installing the pods package in jupyter notebook using the below commands: pip install pods import pods Installation failed with the following error ---------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/67963850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android/XML: RelativeLayout design basically, I don't understand how to use RelativeLayout. I don't know how to design it. I always use LinearLayout with Table inside of it. Now I use RelativeLayout for my design. I want to know, how to add text "Sorry, no list available" Below is my current code of XML <LinearLayou...
{ "language": "en", "url": "https://stackoverflow.com/questions/56229996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use of function inside a for loop I am trying to call functions inside a for loop, but I am not successful. Is it possible to call functions in Python 3.x like you call subroutines in Excel? Here is the code I tried but I do not get any output. def my_fun1(i): x=+i return x def my_func2(x1) print(x1) te...
{ "language": "en", "url": "https://stackoverflow.com/questions/60302452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find columns of the partition of a master table in postgresql 9.4? In postgresql I have created a master table CREATE TABLE IF NOT EXISTS table_master( column_1 text NOT NULL, column_2 text NOT NULL, column_3 text NOT NULL ); and a partition table based on columns: column_1, column_2 CREATE TABLE table_col1_...
{ "language": "en", "url": "https://stackoverflow.com/questions/51965487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replacing the value of XML attribute I'm trying to replace the "Visible" attribute value of a Field ID=29 that is duplicated across the xml document. An example of the xml is found below: <Types> <Type ID="4"> <Fields> <Field ID="29" Visible="false"/> </Fields> </Type> <Type I...
{ "language": "en", "url": "https://stackoverflow.com/questions/21402458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Filter array of objects based on a field inside one object? I have an array of this form: [ { username: '', id: '', moreInfo: { infoDate: '' } } ] And I need to filter based on the infoDate, whether it's in between two specific dates. I have a function that accepts the object, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51430982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I start and stop quartz schedular from my class method? Scheduling in spring I am new to spring. I implemented schedular which invokes a method after every 10 sec. which looks like, <bean id="bidApprovalJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name...
{ "language": "en", "url": "https://stackoverflow.com/questions/4592029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to select element with single class name in Jquery? I have below html and want to get the element based on 'natural' class. The reason is I get t dynamic classes after 'natural' <coral-checkbox class="natural coral-Form-field coral3-Checkbox" ></coral-checkbox> I am trying below code to get hide the element bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/68415233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error in the following code near throw IOException import java.io.*; import java.lang.*; public class Propogate1 { String reverse(String name) { if(name.length()==0) throw IOException("name"); String reverseStr=""; for(int i=name.length()-1;i>0;--i) { reverseStr+=name.charAt(i); } return reverseStr; } pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/3956828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome message extension : From injected script to background /* My Background */ console.log("Init BackGround ! "); chrome.runtime.onMessageExternal.addListener( (request, sender, sendResponse) => { console.log("J'ai bien reçu un truc"); console.log(request); console.log(sender); } )...
{ "language": "en", "url": "https://stackoverflow.com/questions/38273428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: casting elements of uint8 vector to stringstream I'm havig some trouble figuring out how to conver my uint8 vector to stringstream. On input im getting vector of uint8, first 9 bytes are flags which i dont need in my string stream, next 2 bytes are some data i need as string, let's call them "name1", next 2 bytes ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/32266003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Httpclient throws Timeout waiting for connection from pool exception Now am working on an exception for our uploading image service, the scenario below: We have a web page, user from all over the world can upload their images to our server, the image normally keep about 3MB. Now we held a promotion, so the images nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/47130057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TableView sort by distance from current location (parsing locations from JSON) Within xCode, I am trying to sort objects within a TableView so that they appear in order of how close they are to the user. I have seen this question asked, but I can't seem to figure out how to implement it into my project as I am parsi...
{ "language": "en", "url": "https://stackoverflow.com/questions/45627533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing a variable list through a class instance object I currently develop an SDK and I want to know how to access a list of variables through a class instance object as follow: MyClass * myObject = [[MyClass alloc] init]; [myObject changeShape : myObject.FORM_SQUARE]; [myObject changeShape : myObject.FORM_CIRCL...
{ "language": "en", "url": "https://stackoverflow.com/questions/36462634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error after importing progect from eclipse to android studio I'm getting this error in Android Studio after i've imported a project from eclipse C:\Users\admn.gradle\caches\transforms-1\files-1.1\actionbarsherlock-4.4.0.aar\9642e2c79c11b0f8f68064f6cbc64e8e\res\values\values.xml Error:(5, 5) error: resource previous...
{ "language": "en", "url": "https://stackoverflow.com/questions/48895261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I recover files using git? I committed 2 days ago. Then, I made changes to some of the files. However, inside one specific directory, I didn't make any changes to it recently. Today, I deleted those files using rm * inside that directory. How can I restore files to that directory using git? A: Simply use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18556996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not play recorded audio file from android in iOS 5+ I am working on android app which also supports iOS. I want to record the audio & play it in Android as well as in iOS devices. I am recording audio in android using following settings MediaRecorder audioRecorder = new MediaRecorder(); audioRecorder.setAudioSo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14645735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: undefined method `belongs_to' for ActiveRecord:Module I am getting the following error "undefined method `belongs_to' for ActiveRecord:Module" it is showing the following code for my error in line 1. class Posting < ActiveRecord:: belongs_to :user validates :content, length: { maximum: 1000 } end Also showing...
{ "language": "en", "url": "https://stackoverflow.com/questions/22118493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Autocomplete: Uncaught TypeError: Cannot read property 'length' of null My first time using JQuery. Trying to use Autocomplete, and keep getting the error above. I've tested the MySQL queries and they all work. If I use the same code below but called from a webpage without the Autocomplete code, the JSON loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/17176939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core data issue I am starting with iphone development and am facing an issue with core data. I have a model gathering several entities such as employee, project, project type, etc. On startup, I create several entities that I persist through the core data framework. No problem. The issue raises when I want to displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/3954701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: YouTube channelid, channel title and googlePlusUserId relatedness In v3 API each logged user may have a number of channels each one with a specific channelId. Moreover, I know that the channel title is not unique. My goal is the group the channels that belong to specific YouTube users if that possible. So: * *Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/25816840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to check the username exist in database or not This is my code I don't know what's my fault but it is not checking whether the username exist in database or not. String connectionString = @"Data Source=localhost; Database=pramod; User ID=itesuser; password=ites; Port=3309;"; MySqlConnection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70002885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why do we have a Main() method (entry method) in the ASP.NET Core Web Application ? What's the reason behind this approach? Program class contains a public static void Main() method. As we already know, when we create a console application in .net then by default the .NET Framework creates a class (i.e. Program clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/63181465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Implementing logout function I am working on my final year project which is an web based application. I want to implement logout function in that project. But don't know how to do that. Also I want to implement auto logout functionality i.e. after a particular time period say after 20 minutes a user will be automati...
{ "language": "en", "url": "https://stackoverflow.com/questions/2553378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: managing data access / user permissions I am building a data structure designed for users to share information with friends based on permissions lists (friends or friend-list). What is most best/efficient method for keeping access permissions for user data up-to-date for access by friends (or friend-list)? A: You'...
{ "language": "en", "url": "https://stackoverflow.com/questions/8979947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extract lined table from scanned document opencv python I want to extract the information from a scanned table and store it a csv. Right now my table extraction algorithm does the following steps. * *Apply skew correction *Apply a gaussian filter for denoising. *Do a binarization using Otsu thresholding *Do a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55276042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: XQuery : OBJECT_VALUE invalid identifier I've created a table Movie ( title varchar2(40), review XMLTYPE) And review has: ` <review> <reviewer>...</reviewer> <title> ....</title> <rating>.....</rating> </Review> </reviewer> When I try to access : SELECT X.reviewername FROM movie m, XMLTABLE ('for $d in /reviews/r...
{ "language": "en", "url": "https://stackoverflow.com/questions/16150791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git Inconsistent behavior of "checkout"? Consider these commands: # create file myfile.txt git add myfile.txt git commit myfile.txt # sha = SHA1 # modify myfile.txt git status # shows myfile.txt modified git branch branch2 git checkout branch2 # myfile is not replaced git status ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47499339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculator not functioning properly Hey I'm trying to make a small calculator for a project, however I'm struggling to get the code to work. import time a = 100 b = 1 while a > b: print("Please select an operation. ") print("1. Multiply") print("2. Divide") print("3. Subtract") print("4. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/73835516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve latest row for each distinct url_id I have this structure for tables Reviews table: id - grade - url_id 1 2 1 2 4 2 3 5 3 4 3 4 5 4 1 6 5 2 7 2 3 Urls table id - url 1 www.google.com 2 www.apple.com 3 www.bing.com I want to retrie...
{ "language": "en", "url": "https://stackoverflow.com/questions/41003856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query BigQuery table partitioned by Day on a timestamp field I have a BigQuery table partitioned by Day on a timestamp field as below: Data Sample: Row _time dummy_column 1 2020-06-15 23:57:00 UTC a 2 2020-06-15 23:58:00 UTC b 3 2020-06-15 23:59:00 UTC c 4 2020-06-16 00:00:00 UTC d 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62388473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening a modal using a partial view I'm trying to open a modal whenever a button is pressed. The button and modal are in an cshtml file that is ran as a partial view. LoginModal.cshtml: <head> <link rel="stylesheet" href="~/Content/loginmodal.css"> <script src="~/Scripts/loginmodal.js"></script> </head> <d...
{ "language": "en", "url": "https://stackoverflow.com/questions/49932362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: APN authentication detection method I am working on a project involving GPRS. In particular I use u-blox Lisa-U200 GPRS/GSM chip. Ran into a problem with the PDP contexts when I started testing it out with different carriers. And after spending days on Google I don't seem to find the answer anywhere. Why do some pho...
{ "language": "en", "url": "https://stackoverflow.com/questions/24068719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to capture key events All of the examples for key listeners I have been able to find deal with components other than the main panel such as a text box or Menu. I know how to use setMnemonic to program Menu hotkeys but this method does not seem to be available and the link to the oracle keylistener tutorial is br...
{ "language": "en", "url": "https://stackoverflow.com/questions/8944466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using save() in Django model produces TypeError *****Working with Django 1.11.x and Python 3.6***** I'm trying to learn how to use the save() method in a Django model (models.py). There are two fields here that I want to become custom, 'calculated' fields (unique_id and age). First I initiate the field variables, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/44831911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django Send emails to all users in the database table I have started django building my first app tutorials, i have to send email to all my users store in the database table on some special Ocations. i have searched on google and found many apis but found it very hard to configure with my app. here is my model.py c...
{ "language": "en", "url": "https://stackoverflow.com/questions/27664175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to run VS 2012 codedUI project solution remotely from command line? We have a simple codedUI test project solution of Visual Studio 2012. VS 2012 has the Test - Run - All Tests option on its GUI. We like to invoke that from command line for automation purpose. Is there a way to do it and not using Test Manager a...
{ "language": "en", "url": "https://stackoverflow.com/questions/27727062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I close the navbar clicking on the body? My navbar looks like this: <div id="mySidenav" class="sidenav"> <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a> <span class="d-flex mx-3"> <img src="{{ asset('images/logo-small.png') }}" width="30" height="30" a...
{ "language": "en", "url": "https://stackoverflow.com/questions/70038489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get id or pass id to datatables from serverside in Codeigniter? I am working on datatables server-side Processing in codeigniter. Everything is working fine, but I want to pass the id from the controller inside some columns. I've tried this code, but the id is not being received: MyController foreach($fetch_d...
{ "language": "en", "url": "https://stackoverflow.com/questions/59303268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Meta Viewport Dynamic Change on Android Default Browser (not Chrome) I'm trying to dynamically change <meta name="viewport">. I have it set by default like: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> And when the screen resolution goes below 768px I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/21165681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using TypeScript decorators and promises with proper typing? I wrote a buffered decorator, which works as expected by returning a Promise (during the execution). However, to make the tsc transpiler happy, I'm forced to cast the decorated function with any and then (in the example below) with Promise<number>. How can...
{ "language": "en", "url": "https://stackoverflow.com/questions/51730805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i parse results from a combine publisher I am new to the combine world and have written a query that returns the results I need correctly. It's multi-step, but basically makes an api call over the network, parses the returned json and creates an array of records I need. let results2: Publishers.Map<Publishers...
{ "language": "en", "url": "https://stackoverflow.com/questions/71756471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ADF: table was unable to show in page I have an ADF table defined in a .jsff file, in which the partialTrigger is bound to the id of the component containing class B: <af:table value="#{pageFlowScope.ManagedBeanName.nameList}" ... partialTriggers="::::it5"> ... </af:table> In the Manag...
{ "language": "en", "url": "https://stackoverflow.com/questions/48376230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to limit the number of records for a user using Prisma? The simplest example I can give, is a User that can create multiple Posts. A one-to-many relationship where multiple posts can be tied to a single user. But what if I want the User to only be able to have a max of 10 Posts? Ideally there'd be som...
{ "language": "en", "url": "https://stackoverflow.com/questions/74288790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call remote method in Invoke-command for a local variable in script block I am working on a PowerShell script that remotely gets veeam Backup reporting data from a backup server. I know we can pass variables usually with $Using: $object = Invoke-command -ComputerName serverName -ScriptBlock { Get-VBRBackup | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71417209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing css background image property by jquery setTimeout I want to change my header image (which I gave it's source in the css, not in HTML) every 10 seconds Using jQuery. I may have up to 15 16 images so the code I wrote may be too long for my js file. I wrote the code below , but I'm looking for much compact co...
{ "language": "en", "url": "https://stackoverflow.com/questions/44359189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Use 'new' When Using AsyncTask When using AsyncTask in android, I have to use like this, new MyAsyncTask().execute() I have to make new instance If I want to use AsyncTask. But I wonder why I have to do. I just want to use it like, private MyAsyncTask task; ... private void foo() { ... task.excute(); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22034571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to save an blob in database - typeorm Generaly: can someone just give an example how to save a Blob object like in my example Blob {size:1996683, type: "image/png"} size: 1996683 type: "image/png" proto: Blob in a cordova typeorm database (with the data content)? Inital if i get the Blob i can work wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/57199241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Table shows headers in a column not as a row I'm a little puzzled with this one. I've got my code to display how ever it will not display it in the format I wish, I want it to be: section serial bike time info1 info2 info3 info4 info1 info2 info3 info4 info1 info2 info3 info...
{ "language": "en", "url": "https://stackoverflow.com/questions/21751510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Switch user from adaptive to desktop version of site I have a desktop and adaptive (with media query in css) design of site. How can I show desktop version of my site if user come to it from mobile gadget? There is only idea in my head: * *Set up cookie (for example siteVersion = mobile) previously. *If user cho...
{ "language": "en", "url": "https://stackoverflow.com/questions/19824896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) during mysql installation I have tried almost all related problems to this problem, but they all weren't working for me. It's my first time installing mysql onto my arch linux and it keeps asking me for root password as I don't have o...
{ "language": "en", "url": "https://stackoverflow.com/questions/72682333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: microsoft sql server 2005 restoring .bak file I have a database hosted however the hosting expired. Need to restore my .bak file. Does the .bak file include the tables/procedures or only the data? How do I restore .bak file? Thanks A: The .bak file should have everything of the database it was made from - tables, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6039669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Netty server memory usage keep increasing and eventually crashes with io.netty.util.internal.OutOfDirectMemoryError Below is the code of my netty server. It is configured to release reference count on channelRead i.e wont be processing anything just drop the incoming data. Client is also netty based. Which starts 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/51572490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python read file and write in another format I am trying to read a txt-file with many values of pairs in two colmns (X-Y values) and I wand them to be writen in another txt-file with 4 pairs X-Y at each row (8 values per row). So, from that: 0,038043 0,74061 0,038045 0,73962 0,038047 0,73865 0,038048 0,7...
{ "language": "en", "url": "https://stackoverflow.com/questions/62213917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Seaborn Plot doesn't show up I am creating a bar chart with seaborn, and it's not generating any sort of error, but nothing happens either. This is the code I have: import pandas import numpy import matplotlib.pyplot as plt import seaborn data = pandas.read_csv('fy15crime.csv', low_memory = False) seaborn.countpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/33620940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logger level change for multi-tenant application as well as Package/Class logger level here we have a use cases, we are working on a web application that will host multiple companies (tenant). Currently, we have added company-specific log separation using MDC. It will separate the log files per company. We want the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74992625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separate the elements I extracted from a web page by columns and print them in csv with python I am starting to learn Python, I have this code which works fine for web scraping, I already have the info that I want and I am sending that data to a CSV but it prints all the text in just one cell. Can you help me to fix...
{ "language": "en", "url": "https://stackoverflow.com/questions/63802047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create regexp which select digits between ()? I have a lot of string which can contain a digit sequence between () like: Some text 123 (some text in brackets, may contain digits) (12345678) Some text 123 - is required part (some text in brackets, may contain digits) - is not required (12345678) - is not requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63303163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Handling the layout dynamically Below is the code I tried: <script type="text/javascript"> Ext.require(['*']); Ext.onReady(function() { Ext.Loader.setConfig({ enabled: true }); var totalScreenWidth = screen.availWidth; var totalScreenHeight = screen.availHeight; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12540640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove duplicate spaces from string except new line character (\n) in Python I have a string and I want to remove duplicate spaces from that. But my string has a new line character \n and after doing this, this character also is deleted. Output of this: s = 'A B C D \n EF G' print(s) s = " ".join(s.split()) p...
{ "language": "en", "url": "https://stackoverflow.com/questions/64243383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot read file in uploaded path(used by another process) I upload a csv file to AppData folder in project solution and read the content with the code below: using (var fs = new FileStream(Path.Combine(uploadPath, name), chunk == 0 ? FileMode.Create : FileMode.Append)) { var buffer = new byte[fileUpload.InputSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/38202592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing duplicates from DataFrame in R I have this data UserID Quiz_answers Quiz_Date 1 `a1,a2,a3`Positive 26-01-2017 1 `a1,a4,a3`Positive 26-01-2017 1 `a1,a2,a4`Negative 28-02-2017 1 `a1,a2,a3`Neutral 30-10-2017 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46959590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Finding dictionaries in a list that have some keys of another list of dictionaries I have two list of dictionaries that are quite long. I want to find dictionaries in second list that have the keys in the first list of dictionaries and separate them based on another key. Some of the keys in the list one are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43567159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to check the format of a string in c# I have a string that needs to be the following format: XX999900. XX has to be only character no decimal followed by 6 digits. So I thought of using regex in the following way: string sPattern = @"^\\[A-z]{2}\\d{6}$"; indexNumber = "ab9999.00"; if (Regex.IsMatch(indexNumber,...
{ "language": "en", "url": "https://stackoverflow.com/questions/11870610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django NoReverseMatch I can't understand what's wrong? I tried to make a detail page of one item, like in example on http://tutorial.djangogirls.org/en/extend_your_application/index.html and It doesn't work in my project, but In exercises everything was good. Error message: NoReverseMatch at / Reverse for 'events.v...
{ "language": "en", "url": "https://stackoverflow.com/questions/31523791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can an AWS EventBridge Rule target a Kinesis Firehose Delivery Stream in another account? Imagine that there are two AWS accounts - Account-A and Account-B. Account-A has an EventBridge Event Bus and Account-B has a Kinesis Data Firehose. Is it possible for the event bus in Account-A to have a rule that targets the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69442280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compilation vs Execution in SAS This question was discussed on SAS forum, and participants finally agreed to disagree . The issue is simple : SAS assign a missing value to all variables at compile time UNLESS a variable shows up in a sum statement (in this case SAS assigns a value of 0 at compile time ) . Here is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24318484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Crashing in a for loop I'm trying to write to a text file. I can write fine when I don't use my for loop, but when I implement it to write all of my array to the file it crashes. Here's my code: void writeFile(void) { char *fileName[30]; cout << "enter a filename"; cin >> *fileName; ofstream myfile; myfile...
{ "language": "en", "url": "https://stackoverflow.com/questions/10474741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS 2012 breaks on wrong thread I have a program which is multi-threaded, and in which I've set a number of breakpoints. Frequently, when the program hits a breakpoint, I see a line of code highlighted in green, indicating that it is the next line of code to be executed when the program returns from the current func...
{ "language": "en", "url": "https://stackoverflow.com/questions/13691458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Start Spotify Radio with Android intent I know that you can start a specific song using the following: String uri = "spotify:track:308p4aUi2JKGC0i750B2JM"; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); startActivity(intent); And I know that you can start a radio channel on the desktop app by searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/14328048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 'Permission' instance expected, got ... Permission instance? I try to write data migration code for custom user type but when I try to apply migration I get this: TypeError: 'Permission' instance expected, got <Permission: my_app | Some Text | Can add some_model> Looks weird to me. Isn't that a Permission instance?...
{ "language": "en", "url": "https://stackoverflow.com/questions/21232978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Position items below each other in one anchor item How do you position items below each other in a single<a></a> using angular material toolbar? I want the icon above the user name and both items need to be centered in the middle and not next to each other as in the stackblitz below: https://stackblitz.com/edit/angu...
{ "language": "en", "url": "https://stackoverflow.com/questions/52914957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: itunes file share restore deleted files My app uses iTunes File Share. I used the code to delete a single file: It worked the first time. On the second try, however, iTunes showed a empty share directory. It turns out all data files are gone. Can I recover those data files from the iPad? Thanks - (void) deleteFileF...
{ "language": "en", "url": "https://stackoverflow.com/questions/30181626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Getting "Expected 2 arguments but found 1" when getting the intExtra on the Activity result. Not sure what's wrong here I am doing the homework exercise from googles "Android fundamentals codelab" here -> https://codelabs.developers.google.com/codelabs/android-training-create-an-activity/index.html?index=..%2F..andr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63871435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to form two sql insert statements from the JSON array I have got a JSON Array as shown below [{ "link_video": "123" }, { "link_video": "456" }] By parsing i want to create two insert sql as Insert into mytable values (123,456); Insert into mytable values (456,123);. I have started as shown below , co...
{ "language": "en", "url": "https://stackoverflow.com/questions/42643369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: PyCharm console keeps "Getting Documentation from Python Runtime" I'm working (with pandas) in a Python Console in PyCharm, and while I'm typing commands it keeps hanging for 10-20 seconds while "Getting Documentation from Python Runtime." How do I prevent it from doing this?
{ "language": "en", "url": "https://stackoverflow.com/questions/75176820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AJAX and Javascript: program leaves main page at form submission I'm just learning AJAX, so bear with me. I'm putting together a small program using AJAX that adds and retrieves information to and from a database using an HTML/Javascript file and a PHP file. I've tried several renditions but am not having any luck...
{ "language": "en", "url": "https://stackoverflow.com/questions/14967262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# How to read a binary file into int[] without a BinaryReader loop? As far as I know, the BinaryReader loop performance is poor. Another method I can think of is to first ReadAllBytes and then Buffer.BlockCopy into int[], but that would result in an additional copy. Is it possible to read a huge binary file directl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75155160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get an alias icon WITHOUT the arrow? Using [[NSWorkspace sharedWorkspace] iconForFile:path] for an alias file returns an icon image with an arrow. How can I instead get the icon without the arrow? I don't want this arrow:
{ "language": "en", "url": "https://stackoverflow.com/questions/56087484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using boost to generate random numbers between 1 and 9999 How can i used boost library in C++ to generate random numbers between 1 and 9999 A: Did you try googling for "boost random number" first? Here's the relevant part of their documentation generating boost random numbers in a range You want something like this...
{ "language": "en", "url": "https://stackoverflow.com/questions/9156186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }