text
stringlengths
15
59.8k
meta
dict
Q: R nls exponential curve I have two vectors X and y2, and I wish to fit an exponential curve to the data. I tried many approaches described on Stack Overflow topics but all of them give me just a straight line. e.g. I tried this: model.three <- lm(log(y2) ~ log(X)) plot(X,predict(model.three)) abline(model.three) My...
{ "language": "en", "url": "https://stackoverflow.com/questions/37399316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Overlay numbers from 0000 to 9999 on a picture I have a picture with some white/blank space. My goal is to automatically generate a number from 0000 to 9999 and put it on top of the picture, then export/save it as a png. the result should be mypicture_0000.png mypicture_0001.png ... mypicture_9999.png Has anyone t...
{ "language": "en", "url": "https://stackoverflow.com/questions/8017815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble sniffing for a DNS response in scapy (Python 3) I currently have this piece of code that is proven to sniff for the DNS query which is defined within DNSsniff(pkt). I also have a second definition called DNSsniff2(pkt) that tries to sniff for the DNS response, however, I have had little to no luck in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74602637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recyclerview with multiple view types I created a recyclerview with multiple view types.First problem is that images don't show and second problem is when i scroll recyclerview, values of its items changes and I don't know how can I fix it. my adapter code: public class HeterogenousRecyclerviewAdapter extends Recycl...
{ "language": "en", "url": "https://stackoverflow.com/questions/34469254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel groupBy rank resulting in multiple grouped rows I'm using the groupby() function on my query to get some stats on two groups of athletes. I have a table with my athletes and one with their performance. - athletes table -- id -- name -- group_id -performance table -- id -- DateTime -- athlete_id -- sport_id ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23047259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue: Setting data from binded prop is using the default value When I pass in name as a prop, it works as expected and sets the nameData data field so that I can change it within the component. Parent <child name="charles"></child> Child data() { return { nameData: this.name } }, props: { name: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66346835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android app security test failed! ... Saying, component is not Protected. An intent-filter exists There is security issue reported from our client about some of the Activity and BroadcastReceiver. The security test result was talking about (com.****.*****.Activity / BroadcastReceiver) is not Protected. An intent-fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/44063387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ADF pipeline going into queue state I have a Copy activity where the source and destination are both Blobs. When i tried the copy pipeline previously,it ran successfully. But currently it is going into queue state for a long time i.e. 30 minutes. Can i know the reason behind it? A: This is not an answer/solution t...
{ "language": "en", "url": "https://stackoverflow.com/questions/61456136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating Random Number In Each Row In Oracle Query I want to select all rows of a table followed by a random number between 1 to 9: select t.*, (select dbms_random.value(1,9) num from dual) as RandomNumber from myTable t But the random number is the same from row to row, only different from each run of the query....
{ "language": "en", "url": "https://stackoverflow.com/questions/1568630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: "Possible multiple enumeration of IEnumerable" issue? I'm getting a Possible multiple enumeration of IEnumerable with Resharper and I'm trying to find out if it's really an issue or not. This is my method: public IEnumerable<Contact> GetContacts(IContactManager contactManager, string query) { IEnumerable<Contact...
{ "language": "en", "url": "https://stackoverflow.com/questions/23335853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Filtering with two conditions - Remove duplicates less than a certain value while keeping the original I have a table total type 23 Original 3 Duplicate 11 Duplicate 5 Original 16 Duplicate 4 Duplicate I want to Filter the df['total'] column for only values greater than 10, however, I want to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/72217997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase do not return ascending order as expected by using orderByKey I have some data which stored on Firebase by using timestamp as its key value, but I cannot get all of them by sorting it with orderByKey as expected: returning value do not back in ascending order. My JSON structure looks like: { "1476986154"...
{ "language": "en", "url": "https://stackoverflow.com/questions/46765943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cancancan manage a relationship Rails I am running into an issue with the cancancan gem for rails gem 'cancancan', '~> 1.10' I have four models: User, Company, Locations, Groups User: Belongs to Company Company: Has many Locations Location: Belongs to company Group: Belongs to Location In the abilities model I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/38643866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Celery receives periodic tasks but doesn't execute them I use celery to run periodic tasks in my Django DRF app. Unfortunately, registered tasks are not executed. Project structure: project_name ___ cron_tasks ______ __init__.py ______ celery.py celery.py: app = Celery('cron_tasks', include=['cron_tasks.celery']) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/54706666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: strange behavior when using list of another class objects as class attribute in python I am having some issues with the classes below: class book: def __init__(self,name=None): self.name=name return class bookshelf: def __init__(self,books=[]): self.books=books return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63387054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any good tool/framework to profile performance for C/C++ application I'm new to C/C++ and facing a performance issue that my program is running very slow. I want to find what's the hot spot is to reduce the overall execution time for my code. What's the most popular and the easiest way to profile a C/C++ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14528629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium Unable to select a date from date picker unable to select a date from date picker this is the website working on https://www.phptravels.net/ when i used developer options and Ctrl + F on firebug //div[@style='display: block; top: 390px; left: 680px;']//text()[contains(.,'15')] i am able to find the date on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71346348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP-FPM (7.4.2) doesn't stop gracefully? During updating, we want to stop php-fpm and wait for all running scripts to be finished before we make any file changes. We found out that we needed to set process_control_timeout, so we placed "process_control_timeout = 36000s" in "/etc/php/7.4/fpm/pool.d/zz-00-overrides.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/60673012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can one cast an EnvDTE.Project into a VCProject I have seen two posts so far that concern my question. I am wondering how can one cast an EnvDTE.Project into a VCProject. In this post, fun4jimmy's answer does that exactly in the following line of code (taken from his answer) : VCProject vcProject = project.Object...
{ "language": "en", "url": "https://stackoverflow.com/questions/29951353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to retrieve a Javascript file from a server? In Python, I can retrieve Javascript from an HTML document using the following code. import urllib2, jsbeautifier from bs4 import BeautifulSoup f = urllib2.urlopen("http://www.google.com.ph/") soup = BeautifulSoup(f, "lxml") script_raw = str(soup.script) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40035331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switching Permissions of User Files I am new to Bash and trying to write a find command that finds all files that don't have read, write, or execute permissions for the user, and then changes the mode to enable read access. I've tried a few different ways including: find . ! -perm /u+rwx | -exec chmod u+r {} \; Am I...
{ "language": "en", "url": "https://stackoverflow.com/questions/62964060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get the file sent in xml response in perl? Using the LWP user agent I am sending the request and getting the response. I will get the response in html format and a file attached in it. eg: `<html> <head> <title>Download Files</title> <meta http-equiv=\'Content-Type\' content=\'te...
{ "language": "en", "url": "https://stackoverflow.com/questions/36310346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to use Apache RewriteRule I would like to use Apache RewriteRule to change the URL target page to abc.php. I have set RewriteEngine On but I found this problem. Regexp I used: RewriteRule ^viewthread\.php.tid=12345$ abc.php The URL string to match: viewthread.php?tid=12345 Why it is not successfully matched...
{ "language": "en", "url": "https://stackoverflow.com/questions/8906615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to create sqlite database in Android i have class CreateDB public class CreateDB extends SQLiteOpenHelper{ // SQLiteOpenHelper auto create if db not exists. private static final int DB_VERSION = 1; private static final String DB_NAME = "mydb.db"; public CreateDB(Context ctx) { super(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/19605294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dispatch all methods in class C# Is there any way to dispatch all methods in class in easy way? For example my class is a adapter for UI items and contains static methods. So instead of dispatching all methods separately in class, it could be done like this: Who ever is calling a method from this class, everything i...
{ "language": "en", "url": "https://stackoverflow.com/questions/27637363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AppLocalizations missing reference - Internationalization - Flutter flutter_gen applocalizations missing reference in Visual Studio Code. I already tried * *flutter upgrade *flutter pub cache clean *flutter clean / flutter pub get *Dart: Restart Analysis Server (VS Code) *Developer: Reload Window (VS Code) M...
{ "language": "en", "url": "https://stackoverflow.com/questions/73596775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use actors in akka client side websockets i am using akka client websockets https://doc.akka.io/docs/akka-http/current/client-side/websocket-support.html i have a server which takes requests and respond in json this is the pattern of my request and response request #1 { "janus" : "create", "t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63486992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Property Grid Pass Constructor Variable I'm using the C# property grid to add new objects and change settings of a specific object. I need to know how to pass a a variable to the constructor using the Component Model. Reason why is because a parameter is required to correctly define the initial values of the ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/38418842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML- HREF Tag inside a Button This is my button code, which has a reference tag, and the URL takes me to an index action correctly <button type="submit" class="btn btn-primary"><a style="color:white" href="<?php echo $this->basePath('calendar/details/index').'?month='.$this->previousMonth?>"> Previous </a></button>...
{ "language": "en", "url": "https://stackoverflow.com/questions/42104997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I override a plugin registration in MVVMCross I'm using the WPF Sqlite plugin in MVVMCross, but I want to override the directory that the database is written to. I've written a custom ISQLiteConnectionFactory which currently resides in my WPF bootstrapper project: internal class CustomMvxWpfSqLiteConnectionFa...
{ "language": "en", "url": "https://stackoverflow.com/questions/19939634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set select all data up to data_upload_max_number_fields (example 500) in django admin listing page First of all sorry if is there any question already please let me know that because I am fresh in this community And thanks in advance for your valuable responses In the below screenshot in Django admin, How can...
{ "language": "en", "url": "https://stackoverflow.com/questions/70812708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to Update Global State for Redux Flow in SwiftUI I am trying to implement the Redux state in SwiftUI and I am stuck with updating the global state after the action creator has been executed. I am lost as what to do in the Store dispatch function. // Store.swift typealias ActionCreator = (_ dispatch: @escapi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63783970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Speed of "sum" comprehension in Python I was under the impression that using a sum construction was much faster than running a for loop. However, in the following code, the for loop actually runs faster: import time Score = [[3,4,5,6,7,8] for i in range(40)] a=[0,1,2,3,4,5,4,5,2,1,3,0,5,1,0,3,4,2,2,4,4,5,1,2,5,4,...
{ "language": "en", "url": "https://stackoverflow.com/questions/35191815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Help with Generics in VB Im new to VB. I am coming from a Java background. In the following code Sub PrintList(Of T)(ByVal list As List(Of T)) For Each obj As T In list Console.Write(obj.ToString() + " ") Next Console.WriteLine() End Sub Can someone help me to understand w...
{ "language": "en", "url": "https://stackoverflow.com/questions/6998359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add a border around parts of a region, matplotlib/geopandas I'll have a map showing the municipalities of Stockholm. Displayed below. fig, ax = plt.subplots(1, figsize=(4, 4)) matplotlib.rcParams["figure.dpi"] = 250 ax.axis('off') ax1 = geo_df1.plot(edgecolor='black', column=geo_df1.rel_grp, cmap=my_cmp, linewid...
{ "language": "en", "url": "https://stackoverflow.com/questions/70413099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL insert record I have this SQL query: insert into messages (message, hash, date_add) values ('message', 'hash', NOW()) ON DUPLICATE KEY IGNORE hash is unique, what is wrong with query? i got the error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/5395855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JsonDecode FormatException? Could someone help me find out why, the flutter is saying that my json: =FormatException: Unexpected character: "variable1 : nul " already checked my json file, and it is coming right, however when giving Json decode, this problem is occurring. this its the json example, its a list with...
{ "language": "en", "url": "https://stackoverflow.com/questions/65399389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pattern example for apache index of When reading the following documentation: https://httpd.apache.org/docs/2.2/mod/mod_autoindex.html I see the option: * *P=pattern lists only files matching the given pattern However, I can't find an example anywhere and can get it to work. Does someone know? A: Its quite sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/39248046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: context.GetInput returns base class instead of specified derived class in $Type Using Azure Durable Functions, I am trying to use the context.GetInput<model>() function which returns the specified model. The model being used has a parameter that is another model which is a derived class. The model that is outputted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58752301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make grep print missing queries I'm using grep -f and would like to make grep print also lines in file 1 that are missing in file 2: file1: hello my name is bernardo file 2: hello 1 my 2 name 3 is 4 ideal output: hello 1 my 2 name 3 is 4 bernardo A: This will print the lines in file2 that are not in file1: fgrep...
{ "language": "en", "url": "https://stackoverflow.com/questions/37572449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to livestream webcam server in c++? I am working on a personal project, i want to learn how to create a livestream webcam server. I was trying to upload files and POST them to my server, but the lag results to be too large to be livestream. does anyone have some source code examples for a c++ webcam server? or a...
{ "language": "en", "url": "https://stackoverflow.com/questions/11807463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve the A1-style reference of an Excel worksheet cell in VBA How do I retrieve the A1-style reference of an Excel worksheet cell in VBA? I'm using Access 2007 VBA. So where for example for the cell MyWorksheet.Range("A1").Offset(2, 3) the value "D3" is returned. It seems such a simple question. A: To pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/4451362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to migrate from string column to foreign key pointing to row in other table with same string value in Laravel? I am using Laravel 5.6 and need some help migrating a column from a populated table preserving the content logic. There is a table pages with a column named icon that accepts string values. Ex: Schema::...
{ "language": "en", "url": "https://stackoverflow.com/questions/52829380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web application in Apache cannot access another web application on the same server running on localhost? We have an Angular application running on Apache. This needs to access services from a backend application. This is a Java application running on localhost:9090 The website loads but on pages with backend calls,...
{ "language": "en", "url": "https://stackoverflow.com/questions/61877220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails Functional Tests and OAuth Parameter problem I've been pulling my hair out over an issue with using OAuth signed requests in Rails functional tests. I'd appreciate help, or pointers to working examples. I'm trying to work with the built in ActionController::TestRequest overrides that are in the oauth gem (0.4....
{ "language": "en", "url": "https://stackoverflow.com/questions/6823563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple threads increases wifi speed? Why? I used my laptop to set up a hostednetwork and tested the wifi speed between my laptop and my android phones. The two phones are the same by the way. I first connect my laptop and one of my phone, and transmit a file of 400 Mb from laptop to phone and it took 169.6s on ave...
{ "language": "en", "url": "https://stackoverflow.com/questions/20626026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I apply this function to the strings of a list given this situation? How can I apply the above function to each string of this list?: lis = ['hi how are you', 'pretty good', 'the quick brown fox', 'the is quick brown fox play', 'play the quick brown fox'] I tried to: [ request(x) for x in lis ] I al...
{ "language": "en", "url": "https://stackoverflow.com/questions/42656083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: override ip address or host label in Ansible play On my personal network I have a simple list of hosts: [host1] 192.168.1.2 [host2] 192.168.1.10 When I set up a local host, say 'host2', it has a random (dhcp) IP address. I've changed my hosts.ini and overriden the host IP address, then I use host vars to actually s...
{ "language": "en", "url": "https://stackoverflow.com/questions/50998150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use a third variable to choose color for scatter plot in Matplotlib I have a data set which provides latitude, longitude, and temperature for a time series of oceanographic readings. Right now I am plotting the trajectory through lat/lon space thus: fig = plt.figure() ax = fig.add_subplots(111) ax.plot(lon, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47558863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bind Caliburn Micro to EF Entity Error I'm binding an Entity Framework 6.0 Entity to a Caliburn Micro View: <aura:AuditView Grid.Row="0" x:Name="SelectedAudit" cal:View.Model="{Binding SelectedAudit}" cal:View.Context="SelectedAudit"/> The error produced on screen is: "Cannot find view for System.Data.Entity.Dynam...
{ "language": "en", "url": "https://stackoverflow.com/questions/36693361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Delete row before insert a new one How can I achieve to Delete a row before Insert a new one in the same Table. I tried it with a Trigger but I read that it is not possible because it could cause a deadlock. I also wanted to save the row which should be deleted to another table (example Table B) before delete it and...
{ "language": "en", "url": "https://stackoverflow.com/questions/36937157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pivot table custom aggregation function I have a table like this in an excel spreadshhet: Col1 | Col2 | Col3 -----------+-----------+----------- A | X | 1 A | Y | 2 B | X | 3 B | Y | 4 B | Z ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12204462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to resolve "Dependency convergence error" when using maven enforcer plugin? I am just trying to pickup with maven-enforcer-plugin using a small pom (before I jump in to my project pom which has 100+ dependencies.) After I have added the enforcer plugin, I am seeing Dependency convergence error. The pom.xml file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69852850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct way to implement a connection pool I'm trying to write a multithreading program that connects to a MySQL database and processes the returned set for a query (which has thousands of rows). The problem is that I have implemented the connection pool and I get every thread to open the connection to the database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12192631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What thread calls the delegate when using iPhone CoreLocation framework? If I create CLLocationManager, assign it's delegate, and finally tell it to start updating, exactly which thread is calling the delegate? Some system thread? A: Since the documentation doesn't say anything, you can safely assume that the deleg...
{ "language": "en", "url": "https://stackoverflow.com/questions/1262982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: No value retrieved from dropdown list with python mechanize when scraping a dynamic webpage I'm completely new to web scraping. I'm trying to follow the code snippet found in this question Web Scraper for dynamic forms in python I'm doing similar search with http://www.goodlifefitness.com/fitness-classes/find-a-clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/36228185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - How can I declare a variable in MainForm class of type "Generic Class" without specifing generic type I have the following generic class: internal class AutoRegisterThread<T> where T: AutoRegisterAbstract { field1.... method1... } I have 5 classes that implement AutoRegisterAbstract (abstract class). and in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/54728029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenCV w/ Rapsberry Pi: VideoCapture IP camera not working I'm working on a project that includes running opencv on the raspberry pi 3B in java. I've followed the instructions on its website for installation in linux, and uploaded my code: cap = new VideoCapture(); cap.open("http://192.168.137.1:8000/video.mjpg"); S...
{ "language": "en", "url": "https://stackoverflow.com/questions/41295135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: print the ping status output in tabular column I am a novice to Ansible. I am trying to ping a set of remote hosts and get its status. The ping status I need to print in one neat tabular column format. The below code is not showing the exact output that I am looking for. Could you please share the sample Ansible cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/74455037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create a new file with a simple way in spacemacs? Currently, I know that I can create a new file with the following ways: * *c key in Neotree *SPC ' in shell layer, and use the touch xxx command I am wondering whether there is a simple way (something like SPC f xxx) or not. Thanks. A: Yes, you can u...
{ "language": "en", "url": "https://stackoverflow.com/questions/35531759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Multiple sticky headers Is there another way I can get multiple sticky headers to stack under each other than setting the top offset as the height of the previous sticky headers? In the code snippet if I set top: 50px in .inner-header it works fine but I am looking for some other solution where I don't need to touch...
{ "language": "en", "url": "https://stackoverflow.com/questions/70434354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Missing Template error for json return Rails I have a locations_controller and inside I have #index and #show action. I have a map on index.html.erb and when user pans/moves on the map #show action should send json data to map to show the listings. I am sending json request to #show action. But it returns an error s...
{ "language": "en", "url": "https://stackoverflow.com/questions/30394722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to properly save Common Lisp image using SBCL? If I want to create a Lisp-image of my program, how do I do it properly? Are there any prerequisites? And doesn't it play nicely with QUICKLISP? Right now, if I start SBCL (with just QUICKLISP pre-loaded) and save the image: (save-lisp-and-die "core") And then try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39133421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Removing encoded text from strings read from txt file Here's the problem: I copied and pasted this entire list to a txt file from https://www.cboe.org/mdx/mdi/mdiproducts.aspx Sample of text lines: BFLY - The CBOE S&P 500 Iron Butterfly Index BPVIX - CBOE/CME FX British Pound Volatility Index BPVIX1 - CBOE/CME FX B...
{ "language": "en", "url": "https://stackoverflow.com/questions/38572626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice TDD - Java Object Validation and clean code Suppose a Java class called Car, whose objects are initialized through a static factory: public class Car { private String name; private Car(String name){//...} public static Car createCar(String name){ //mechanism to validate the car a...
{ "language": "en", "url": "https://stackoverflow.com/questions/16388651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I log something in USQL UDO? I have custom extractor, and I'm trying to log some messages from it. I've tried obvious things like Console.WriteLine, but cannot find where output is. However, I found some system logs in adl://<my_DLS>.azuredatalakestore.net/system/jobservice/jobs/Usql/.../<my_job_id>/. How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/46800248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: OrientDB 2.2.13 console.sh: getting "Cannot create a connection to remote server address(es)" I have an embedded database where I start an OServer and trying to connect to it from the console. I've been doing this successfully for many months and upgrading the database as new versions come out. Now, with 2.2.13, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/40812923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vb Table cannot find primary key when using find I am trying to use the Rows find on a dataset column but it comes back saying "Table does not have primary key" It does have a primary key and the keycolumns show that the primary key does exist. Why doesn't this work. Dim dr As DataRow Dim cid As String D...
{ "language": "en", "url": "https://stackoverflow.com/questions/34407245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Open Close Principle decides which instance of interface to use? I am reading the clean architecture chapter - 8 Page number 72, The Open-Closed Principle. The chapter has a thought experiment of a system that displays the Financial data on a web page and there is a requirement to show the data on black-white pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/74763397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angularjs push overwriting scope array Every time someone clicks on an answer and thus executes data-ng-click="addAnswer(questionId, 0)" the $scope.answers array gets overwritten. I am unsure why it is doing this. Is it because every time the new template is loaded into the $scope gets reset? If so, that wasn't the...
{ "language": "en", "url": "https://stackoverflow.com/questions/26277438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Flex-box justify-self / align-self not working I have a component in React using Semanti UI react I am trying to justify a single container to the flex-end but it's not working <Item key={item._id} id={item._id}> <img className="image" src={item.imageURL} alt="Project Canvas"/> <div classN...
{ "language": "en", "url": "https://stackoverflow.com/questions/61767121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating a quiz in Emacs Lisp? Forgive the "duplicate" question. I'd like to see this solved in Emacs Lisp too, and if I just tagged it for both topics, I probably would have only gotten one answer. The Emacs answer should be sufficiently different that it's probably worthwhile to have it. I want to teach myself...
{ "language": "en", "url": "https://stackoverflow.com/questions/2264286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delay curl request I'd like to add sleep to this request so as not to stress the server with too many requests at a go. I've tried adding sleep but I don't get the expected behaviour. The help is appreciated. xargs -I{} curl --location --request POST 'https://g.com' \ --header 'Authorization: Bearer cc' \ --h...
{ "language": "en", "url": "https://stackoverflow.com/questions/74136847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide those .exe and .o created by codeblocks it is kinda annoying to have all those .exe and .o lying around, but i only want to hide the .exe created by codeblocks but not other app, or set the result of the compilation to other folder, is that possible?
{ "language": "en", "url": "https://stackoverflow.com/questions/44225816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What means the "$" behing class name when doing a Dump Java Heap on android studio? Sorry I can't upload an image... So when I do a dump I can see for someone of my classes : myActivity---------------------- 1 (total count)--- 1 (heap count) myActivity$1-------------------- 1 (total count)--- 1 (heap count) myActivi...
{ "language": "en", "url": "https://stackoverflow.com/questions/36000897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting and Storing DIVs on ReactJs I have an App in which you select some products (DIVS) that changes the border color (with state). I would like to know how can I store these onClick actions, so that when people click on another link and comes back, the same DIVs are selected? I know I can use Cookies or Sessio...
{ "language": "en", "url": "https://stackoverflow.com/questions/52953981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open and show windows command prompt to user inside Qt application How would I go about opening the windows command prompt, then sending a command to it and showing it to the user inside my Qt application? I know you can send commands to the command prompt and get output behind the scenes without showing the comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/22610590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to start sonarqube 6.1 Installed the sonarqube 6.1, Set the JAVA_HOME as C:\JDK\jdk1.8.0_92 in StartSonar.bat file and added C:\JDK\jdk1.8.0_92\bin in path variable also When trying to start getting the below error Setting JAVA_HOME PATH: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/41095952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count unsigned integers less than a given unsigned integer with same number of set bits Is there an efficient way to count all unsigned integers less than a given unsigned integer with the same amount of set bits? What I've tried so far Given an unsigned integer represented as a list of set bits in descending order,...
{ "language": "en", "url": "https://stackoverflow.com/questions/35662746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: audit_token_to_pid Undefined symbol trying to use audit_token_to_pid in objective c code . I have included #import <bsm/libbsm.h> but when I build the project i am seeing following build error : Undefined symbol: _audit_token_to_pid may be I require some library but not sure how to resolve this ?? A: #import is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/63315985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: File path in asp.net mvc application with jquery file tree I'm trying to get a grip on the jquery file tree plugin, and I have a problem with file paths. The thing is, the jquery call sets a root directory, and if it is set to "/" I want it to be a path in my server directory. So I set this in the server code that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/3485773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check whether one branch is an ancestor of the other in Git I have to Git branches A and B. How to check whether A is an ancestor of B, or vice versa? git merge-base does give the common ancestor. However I'd like to know whether there are even better solutions. A: git merge-base --is-ancestor A B if [ $? -e...
{ "language": "en", "url": "https://stackoverflow.com/questions/26103673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reorder LINQ result (take 1 row and move it to top) when a condition match I have a LINQ statement that generate an anonymous type, for example: BookID, AuthorID, [Authors]*** Authors return a IEnumerable which also contains many authors, it has 2 columns: AuthorID and AuthorName For example: 1 | 32 | 12, Author 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2061478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I am getting Microsoft jscript runtime error when initialising it on command prompt Being new here i am not allowed to attach image. So here the link to the image for more clarity to my problem. Script code: var http = require('http'); var dt = require('./myfirstmodule'); http.createServer(function (req, res) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49455948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: formula to count how many instances of a row occur with one cell containing a string and the other having its entire content equal to another string I would like to count the number of times that the cell BN in my spreadsheet contains the string "FP_T" AND the cell BO of the same row contains the string "Step3Caller...
{ "language": "en", "url": "https://stackoverflow.com/questions/61754805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: winapi - display int variable value in MessageBox using macros For debugging purposes I am trying to make a short macros to display various types, instead of constant copying all the MessageBox functions' params. For strings I have following macros: #define DEBUG(x) MessageBox(NULL, x,"DEBUG",MB_ICONINFORMATION|MB_O...
{ "language": "en", "url": "https://stackoverflow.com/questions/33829374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Patch (findByIdAndUpdate) in Mongoose I have to do a simple CRUD in Node/Mongoose API. I also have to make put and patch and while doing patch, I'm a bit confused, because I wanted to use findByIdAndUpdate method, but as I see on examples, there is only one record updated, e.g. {name: "newName"}. I was wondering wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/69614196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a regex to parse html to MXML syntax I searched a lot over stackoverflow and found very interesting that's includes: How to create a Regular Expression for a span attribute? And Javascript regex to replace text div and &lt; &gt; But turns out that I couldn't really manage to parse my goal to replace div wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/16641498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subversion upgrade to from 1.6 to 1.7 Im trying to upgrade Subversion from 1.6 to 1.7 and having issues. Im using Linux Redhat 5, Im installing SVN server only and not using Apache. I'm then accessing subversion via Eclipse Kepler. I have used the rpm from CollbaNet to upgrade my version of SVN and all appears to ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/23292167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embed Container View with Navigation Controller Programmatically I want to embed a Navigation controller with the container view and use the same navigation controller to push some other view controller. Here is the workaround with the help of storyboard. Can I embed the navigation controller with Container View pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/50363385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding new Excel files to MS Access database as they come in I am in the situation where I have a questionnaire that is basically just a plain excel spreadsheet with two columns: * *one column with the questions and *a second column next to it where users can fill in their answers. Each respondent has been ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23081112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Portainer compose error failed to deploy a stack volumes must be a string, number, boolean or null I am trying to deploy below stack in Portainer.io. version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - "80:80" - "81:81" - "443:443" environment: D...
{ "language": "en", "url": "https://stackoverflow.com/questions/74087616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replacing integers in a data frame (logic issues) So I am trying to change some values in a df using pandas and, having already tried with df.replace, df.mask, and df.where I got to the conclusion that it must be a logical mistake since it keeps throwing the same mistake: ValueError: The truth value of a Series is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/71084981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS EC2 email sending limit when using third party smtp server Are there any limits on the number of emails I can send from an EC2 instances when I am using a third party SMTP server to send out emails ? I use the EC2 instance to call the client's smtp server. Thanks Santhosh A: Yes, if you are connecting to the th...
{ "language": "en", "url": "https://stackoverflow.com/questions/26311747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Authorized used of goo.gl API to add URLs to user history With Google opening the goo.gl API a few weeks ago, it's quite easy to use it with POST: curl -F "url=LONGURL" http://goo.gl/api/shorten The response is like this: {"short_url":"http://goo.gl/A9MR","added_to_history":false} So, does anyone know how to perfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/4314538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento list associated simple products as configurable product I’m gonna tell my problem with an example. I have a configurable product. Name is: “test” And I created 4 simple products with different size. They are associated. Test-Small Test-Medium Test-Large Test-XLarge I’m getting all products with this co...
{ "language": "en", "url": "https://stackoverflow.com/questions/22914780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retro, Lomo, Vignette filter in C/C++? I am trying to apply image filtering to images, like lomo, retro, vignette. Can anyone show me some sample codes in C / C++? Or is there any ready-to-use libraries implementing image filtering? Thanks A: Opencv is probably the easiest library to get started with, there are som...
{ "language": "en", "url": "https://stackoverflow.com/questions/6944166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to limit the fields returned from Silverlight 4 RIA services query I'm using RIA services with Silverlight 4 and would like to limit the fields that are returned from the service. For example: TableA: ID Field1 Field2 Field3 TableB: ID TableAID (foreign key) Field1 RestrictedField2 In my domai...
{ "language": "en", "url": "https://stackoverflow.com/questions/5813074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: R read.zoo error for incorrect date format I have a data that has one date column and 10 other columns. The date column has the format of 199010. so it's yyyymm. It seems like that zoo/xts requires that the date has days info in it. Is there any way to address this issue? hier ist my data structure(list(Date = 1989...
{ "language": "en", "url": "https://stackoverflow.com/questions/23019197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to write code in the main activity java file in android studio After upgrade to ver 4.1.1, I am not able to write code in the MainActivity.java and the code is not editable in Android Studio. How can I correct it? A: If I am not wrong when you click on any line in the source code, the lines get highlighted b...
{ "language": "en", "url": "https://stackoverflow.com/questions/65092994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }