text
stringlengths
15
59.8k
meta
dict
Q: Query: table name specified more than once i'm trying to fix a vue filter. I have to change a query, but i can't find it in the laravel directory. SELECT count(*) AS aggregate FROM ( SELECT ST_asGeoJSON(elements.geom) AS geometry FROM "elements" LEFT JOIN subsidies ON elements.subsidy...
{ "language": "en", "url": "https://stackoverflow.com/questions/57002131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xamarin IOS file picker : unable to get selected file from icloud drive I've installed filepicker control from Nuget and added tried adding reference from MonoTouch10 folder and later from github to my xamarin.ios project. FileData file = await CrossFilePicker.Current.PickFile(); if (file != null) { } this is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46946482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a .jar in Android I have a Android project with some classes that I would like to compress to a JAR. I create the JAR by right clicking my project - export - JAR - and the JAR gets created without any warnings. I can access all classes from the JAR in my code but when I try to build the project get this ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/10720885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing focus from one input to the next with a barcode scanner I am using a barcode scanner to enter data into input fields on a webpage. I set up the form and autofocus on the first input field. When the first barcode is entered into the first input field I would like focus to jump to the next input field. Howeve...
{ "language": "en", "url": "https://stackoverflow.com/questions/35614951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Struts 2 token is not working with display tag pagination I have a Struts 2 application, I have created some reports with display tag pagination, it works fine but when I apply CSRF token to that page, only first page displays properly and when I try to navigate other paginated pages application shows invalid.token...
{ "language": "en", "url": "https://stackoverflow.com/questions/38091526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook php ads sdk CurlLogger.php Warning: fwrite() expects parameter 1 to be resource, string given in /var/www/myapp/vendor/facebook/php-ads-sdk/src/FacebookAds/Logger/CurlLogger.php on line 182 I have this error... how fix that ? and this code is in on that line fwrite($this->handle, $buffer.PHP_EOL.PHP_EOL);...
{ "language": "en", "url": "https://stackoverflow.com/questions/46588934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you convert between polar coordinates and cartesian coordinates assuming north is zero radians? I've been trying to make a simple physics engine for games. I am well aware that this is re-inventing the wheel but it's more of a learning exercise than anything else. I never expect it to be as complete as box2d ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49576502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use pair correctly in C++ I am trying to insert an object into a map. You can ignore most of the code here, but I'll include it to help. It's the line mymap.insert(pair(name, myobj(num1, num2))); That is giving me the error. struct ap_pair { ap_pair(float tp, float tm) : total_price(tp), total_amount(tm)...
{ "language": "en", "url": "https://stackoverflow.com/questions/21191698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread Pool of workers in a Window service? I'm creating a Windows service with 2 separate components: 1 component creates jobs and inserts them to the database (1 thread) The 2nd component processes these jobs (multiple FIXED # of threads in a thread pool) These 2 components will always run as long as the service i...
{ "language": "en", "url": "https://stackoverflow.com/questions/20429716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to edit NavItem of Navbar component in Bootstrap Studio? Problem: I am using Stylish Portfolio template to design a quick website in Bootstrap Studio. I am unable to edit the default NavItem (Home, About, Services and so on) from the Navbar component as shown in image below. Other components can be easily edite...
{ "language": "en", "url": "https://stackoverflow.com/questions/70202630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL How to find average of many sums of groups only if the groups follow certain rules Here is my current code: SELECT AVG(famTotal) FROM `OmniHealth.new2015Data`, ( SELECT SUM( TOTEXP15 ) as famTotal FROM `OmniHealth.new2015Data` GROUP BY DUID ) WHERE BMINDX53 BETWEEN 0 AND 25 AND ADSMOK42 = -1 AND FCSZ1231 = 7 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48039288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to restrict the acess to a few users in pyTelegramBotAPI? I'm using telebot (https://github.com/eternnoir/pyTelegramBotAPI) to create a bot to send photos to its users. The point is I didn't see a way to restrict the access to this bot as I intend to share private images through this bot. I read in this forum th...
{ "language": "en", "url": "https://stackoverflow.com/questions/55437732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Compiling 32-bit programs and calling 64-bit programs on 64-bit systems My system is 64 bit. I have a program calls a command "bcdedit.exe" c++ code: ShellExecuteA(NULL, "open", "cmd.exe", "/c bcdedit.exe /?", NULL, SW_SHOWNORMAL); I compiled to 32 bit When I run it back "file not find" When I compiled to 64 bit, r...
{ "language": "en", "url": "https://stackoverflow.com/questions/55896402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generic class instantiation using a bounded wildcard Based on the code snippet listed in my previous question (copied from a Java tutorial on generics by Gilad Bracha), I wrote the following code which tries to populate a custom generic list called history with objects of different types conforming to the bound ? ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/75501494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: custom inputAccessoryView as UIView from nib giving error: returned 0 width, assuming UIViewNoIntrinsicMetric I am using an inputAccessoryView which is loaded from a nib using the following UIView subclass: class CustomInputAccessoryView: UIView { @IBOutlet var containerView: UIView! @IBOutlet var contentVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/50581092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: SwiftUI List color background I can't change background color of a view if i List static items. this my code: NavigationView { ZStack { Color("AppBackgroundColor").edgesIgnoringSafeArea(.all) List { Section(header: Text("Now in theaters")) { ScrollMovies(type: .current...
{ "language": "en", "url": "https://stackoverflow.com/questions/57128547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Error in my c++ code using linkedlist "Stop working" my code stop working in that test case, i think that the error in function Checktables but i'm not sure and i can't fix the error please help me to tun this code correctly. image of a test case and the error this is a cpp file with main .cpp #include"Header.h"...
{ "language": "en", "url": "https://stackoverflow.com/questions/34503439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How to mock other class functions in testing controller in Laravel I am trying to test a controller in Laravel that uses another class as a helper which calls an API and returns the result. To avoid external API calls, I need to mock this helper. I tried to mock the class inside the controller and run the test but I...
{ "language": "en", "url": "https://stackoverflow.com/questions/57097454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changes in the fxml file are not visible Basically when i update my .fxml file, i can't see the new stuff...it's like showing the old version of the .fxml...with the old stuff... and yes i save the file... This is my Main.java package Library.Assistant.Ui.Main; import javafx.application.Application; import javafx.f...
{ "language": "en", "url": "https://stackoverflow.com/questions/65508895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST method in Flask app = Flask(__name__) @app.route('/') def home(): return render_template("home.html") @app.route('/login_page', methods=["GET","POST"]) def login_page(): if request.method == "POST": user=request.form["login"] return redirect(url_for("user",usr=user)) else: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67712557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA Excel code to save picture as PNG to file location I tried different codes but I cant go with the correct output. I want to have a code that I can choose a file location. All working, I just need to save the PNG to file location selected when saving. I only got the following: FName = "C:\Users\Desktop\Nutrifacts...
{ "language": "en", "url": "https://stackoverflow.com/questions/41604629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory leak reported by instrument. Can't understand why Instruments is telling that the following method is leaking memory when creating the mutable string. Can anybody tell me why? I am using ARC on iOS 8 XCode 6.2. - (NSString *)capitalizeFirstLetter { if (self.length == 0) { return self; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29326481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load data in a webpart lifecycle works first time, but in a popup reload it doesnt refresh So, here is the scenarion I have a webpart that loads some data. I have in another place of the page a button, that opens a popup, when the user does something in that page (create action), the popup is closed and the calling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17608604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confused about readlink /usr/lib/libpcre.so I am following http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html to install pcrc (OS: CentOS 6.6). I am confused about this line ln -sfv ../../lib/$(readlink /usr/lib/libpcre.so) /usr/lib/libpcre.so I know it is creating a soft link but not sure why it ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/33044239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Right full approach to convert a Website Theme to an React components I am facing issues in converting AdminLTE theme in React component. As the theme uses third parties js libraries and some custom js function, i am really finding it difficult to implementing. Don't know where to put and how to put. This all works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52327600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++: How can I allow user to retry if they accidentally enter more than one character in char variable? Question: In C++, ow do I make a program throw out an error when a user enters multiple characters for an input requesting a single character? I'd like to have the program re-prompt for a single character, but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32787653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wxPython print string with formatting so I have the following class which prints the text and header you call with it. I also provided the code I am using to call the Print function. I have a string 'outputstring' which contains the text I want to print. My expected output is below and my actual output is below. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24148387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android app with static content/data I am making an android app and trying to figure out the best way to store the data. The data is fully static and will basically be several items with a name, logo and phone number for each. The data will then be shown using a listview. So my question, what is the best way to sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/23771171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an alternative to CGPath which allows to compute points on a path for a given location? For an animation timing algorithm I need to supply a path as the curve. Probably a bezier curve with control points on both ends. The problem is that it seems not possible to calculate points on a CGPath because CGPathRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/20521296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iphone - Programmatically set (System-wide) proxy settings? I am new to iPhone development, so I'm sorry if this is a stupid question. I am developing an application whose purpose will be to route all iPhone activity through my company's proxy. Is there a way to programmatically set system-wide proxy settings in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/543111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP: class.object does not show print_r()? I'm trying to print class object using print_r. This is my index.php code <?php if (isset($_POST['btnLogin'])){ if (isset($_POST['username']) && !empty($_POST['username'])){ $username=$_POST['username']; }else{ $errusername="Enter Username"; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47736042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vim python3 integration on mac I'm trying to work out to integrate Python3 into Vim, I know I need to do it when compiling vim but I cant seem to get it right. I'm using homebrew to install with the following script: brew install vim --override-system-vim --with-python3 It installs vim however when i check the vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/35086949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: QT C++ QRegularExpression multiple matches I want to extract Information from a QString (.html) by using Regular Expressions. I explicitly want to use Regex (no Parser Solutions) and the class QRegularExpression (for several reasons e.g.: Reasons). For simplification aspects here is an problem equivalent task. Cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/22489723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: alertDialog from xml layout im tryin to retrieve radio button value and checkbox value from alertdialog. this alert is created from xml layout here my xml file (ard.xml) <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/23484598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Json Schema example for oneOf objects I am trying to figure out how oneOf works by building a schema which validates two different object types. For example a person (firstname, lastname, sport) and vehicles (type, cost). Here are some sample objects: {"firstName":"John", "lastName":"Doe", "sport": "football"} {"ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/25014650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Android ExoPlayer Playback speed very fast on Android 4.2 version It looks like on Android 4.2 (Jelly bean) has an issue using ExoPlayer Library. When used for Audio purpose to stream live music, the Playback is played at double the speed. I have raised an issue at the Github for ExoPlayer but no positive reply till...
{ "language": "en", "url": "https://stackoverflow.com/questions/25909954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Marshall an array of structs I am calling a C++ function from C#. As arguments it receives a pointer to an array of structs. struct A { int data; } int CFunction (A* pointerToFirstElementOfArray, int NumberOfArrayElements) In C# I have created the same struct (as a class) and I marshall it correctly (the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/4044345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I determine if a char* is a windows line ending? In my C program, I am looking through a file character by character for info. For some reason my data is getting windows line ending characters even though my code looks like it does below. I have tried a couple of things like temp[0]=='\r\n' while((temp = fge...
{ "language": "en", "url": "https://stackoverflow.com/questions/56050349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generic way to initialize a JPA 2 lazy association So, the question at hand is about initializing the lazy collections of an "unknown" entity, as long as these are known at least by name. This is part of a more wide effort of mine to build a generic DataTable -> RecordDetails miniframework in JSF + Primefaces. So, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/25382072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby on Rails - how require is executed in application.js I am reading a book for "Ruby on Rails". In the "application.js", we are including other JavaScript libraries in the following way and more specific - jQuery UI: //= require jquery //= require jquery_ujs //= require jquery-ui As this is ordinary JavaScript f...
{ "language": "en", "url": "https://stackoverflow.com/questions/13218006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to obtain only ALL Undocumented Stored Procs in SQL SERVER 2005 If I write SELECT * FROM sys.all_objects WHERE ([type] = 'P'); I will get all the SQL Stored Procedure. But how to obtain only the Undocumented ones? Thanks A: There isn't any way to query this list, but you can find it here List of Undocumented ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3191947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to calculate two data in one array? I'm a beginner in php, I want to calculate two data from one array, but I still don't understand how. For example, I have one data array $array = (1,2,3,4); and I want the output like this 1x2 = 2 1x3 = 3 1x4 = 4 2x3 = 6 2x4 = 8 3x4 = 12 I try some code but didn't help, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58668869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Old-school SQL DB access versus ORM (NHibernate, EF, et al). Who wins? I've been successful with writing my own SQL access code with a combination of stored procedures and parameterized queries and a little wrapper library I've written to minimize the ADO.NET grunge. This has all worked very well for me in the past ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to restrict Google places api autocomplete for some city names and all state names? <form> <input id="pac-input" value="" class="controls" type="text" placeholder="Search Box"> <input type="button" id="find" value="find" /> </form> <script> function initAutocomplete() { var options = { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33853186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Csv to PDF PDFBOX? I'm new to java, and I'm learning how to create PDF, I was using Itext to create PDF, but because it handles a license I stopped using it, and started using PDFbox. I've searched the internet for how to convert from CSV to PDF, but I can't find an example of how to use margins, or how to align the...
{ "language": "en", "url": "https://stackoverflow.com/questions/70435706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check as CRAN, but do not skip any tests Is there any easy way with devtools::check() to run the extended CRAN checks but also run testhat tests that are marked as skip_on_cran()? Basically, I want to run the most comprehensive tests I can: all of the CRAN checks, plus all of my unit tests A: The current version of...
{ "language": "en", "url": "https://stackoverflow.com/questions/27557150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to make on click once and then toggle and make sure the CSS of the toggle comes after the table being loaded? Hi i would like to ask how to draw the table once and then toggle the table. Besides that, the toggleSetting's css will only load after the table is done drawn/loaded. PS: i'm quite new to javascript and...
{ "language": "en", "url": "https://stackoverflow.com/questions/62893728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JNA / WinAPI. Simulate mouse click without moving the cursor doesn't work correctly EDIT: Sorry, but I am not sure that my questions was closed correcltly. I was suggested this thread but it doesn't answer on my question. I am able to simulate mouse click but it doesn't work correctly as I described in my question. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65316317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Cloud Loadbalancer HTTPS only (or forward http to https) We are running our infrastructure with different content servers in the Google cloud. We are using HTTP load balancing and forward traffic to our instance groups. At the moment we are struggling to accept HTTP but force/forward to HTTPS? What is the bes...
{ "language": "en", "url": "https://stackoverflow.com/questions/33242310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chaining 4 unix commands together and breaking the command to additional lines I used to run a simple line in my .sh file, such as: python myFileA.py && python myFileB.py but i wanted to do it with 4 files. At first, i was thinking yea this is easy. python myFileA.py && python myFileB.py && python myFileC.py && py...
{ "language": "en", "url": "https://stackoverflow.com/questions/26510569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: responsive Navbar issue, with the toggle menu I have been working on a responsive website design with React and react styled components, and I have an issue with the navigation bar responsiveness, it works well for the desktop and tablet and when I made a UseState hook that shows a toggle menu instead of a navigatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/73916490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: apache kafka partition,java Im very new to apache kafka, and i am trying to do kafka partitions while sending my string to kafka, doing exactly same as here public class Producer { public static void main(String[] argv)throws Exception { String topicName = "test"; //Configure the Produce...
{ "language": "en", "url": "https://stackoverflow.com/questions/51154710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: input time value when step is 1 My prob is when I choose 00:05:00 for instance, the seconds part is not displayed, only 00:05 is displayed $('#compute').click(function(){ alert($('#inputTime').val()) }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <input id="inputTi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48150279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bring the answer of this binary multiplication code in binary? int product = 0; String num1 = "11100001"; String num2 = "10110001"; int multiplicand = Integer.parseInt(num1); int multiplier = Integer.parseInt(num2); for(int i=7; i>=0; i--) { if((multiplier & 01) != 0) { product=product+multiplicand; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/35509049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to set pom.xml to run main class in maven project in netbeans May I ask what I should do to run main class in a maven project created in Netbeans IDE? I set the pom.xml like the following, but it doesn't work.Is there any other configuration in Netbeans I should modify? <project xmlns="http://maven.apache.org/PO...
{ "language": "en", "url": "https://stackoverflow.com/questions/35026857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: have integer, need it in byte in 0x00 format I have an integer used to seed my for loop: for(int i = 0; i < value; i++) Within my for loop I am seeding a byte array with byte content values that increment +1. For instance new byte[]{0x00}; But the 0x00 needs to be 0x01 on the next iteration, how can I convert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7781461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Create IDs for each * (including nestings) in a jQuery sortable list I have a sortable list with nested LI items. I'm looking for create an ID for each LI in the group. Example. If I have this: <li class="main"> Cat 0 <ul class="subCat"> <li>Subcat 0 <ul class="subCat"> <li>S...
{ "language": "en", "url": "https://stackoverflow.com/questions/12727064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Printing MySQL table rows matching variable input The query in the following returns the data I want when I provide value I want to find a match for, however, I seem to be having difficulty when returning the data using the echo statements at the end: $conn = mysqli_connect($host,$username,$password, $database) or d...
{ "language": "en", "url": "https://stackoverflow.com/questions/16877776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to specify multiple relationships between models in rails using ActiveRecord associations Say there're two models : User and Post, i want to keep track of who has read which post, and who writes which post, which user favorites which posts etc. Then i come up with the following solution: class User < ActiveReco...
{ "language": "en", "url": "https://stackoverflow.com/questions/1927986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: list single attribute of single post then I'll repeat in loop I am writing a very simple react app that will list the posts in my WordPress site. 1) Fetch the posts and set them to a state variable. 2) Successfully access the posts from render(). 3) Loop through the posts rendering the title and other information a...
{ "language": "en", "url": "https://stackoverflow.com/questions/56944138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: After changing all font-family, font awesome icons show up as squares After applying the below codes, the font awesome icons show up as squares. If I apply it to body tag. It doens't overwrite all font-family, so I had to apply it to *. How can I fix this error? <style> * { font-family: "Open Sans", sans-serif...
{ "language": "en", "url": "https://stackoverflow.com/questions/53074655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Renaming files in folder c# I have over 1000 files in a folder with names like abc_1, abc_2 ... abc_n I want to delete this prefix 'abc_' from all the files. Any chance to not doing this manually because there are over 1000, and it will be a pain. How can do this with c# ? A: You can enumerate the file. using Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/12347881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Why cronjob execute multiple time My cronjob execute multiple time. Is my setting wrong?? Please help me this is the script #!/bin/bash source /home/obe/env/bin/activate cd /home/obe/env/crawl/pjt/pjt scrapy crawl gets this is the crontab I set,I use centos7 * 23 * * * /home/obe/env/crawl/cron_set.sh And I use...
{ "language": "en", "url": "https://stackoverflow.com/questions/33084996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I launch a new form and return to it after the new form is closed? If my user clicks a button, I would like to launch a new Form. Then when the user closes the second form, I would like to return back to the initial form. var appLaunch = new App(); appLaunch.Show(); this.Hide(); Could anyone please help me?...
{ "language": "en", "url": "https://stackoverflow.com/questions/41108467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a replacement for Attribute.IsDefined in UWP apps? It seems that the static method Attribute.IsDefined is missing for UWP apps, I can navigate to the metadata for the Attribute class alright and the method is there, but the project won't compile stating that 'Attribute' does not contain a definition for 'Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/32414954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: React HOC that takes argument instead of component and returns component How do I create a React HOC that takes argument instead of component (let's say the argument is from useParams() of react router dom) and returns a component with the given argument (with hooks) I tried import React from 'react' const ResultsC...
{ "language": "en", "url": "https://stackoverflow.com/questions/68771102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting header values, Status code etc from Jax-Rs Response class in Junit I am using Restful web Service using Dropwizard. And generating response as: Response response = resources.client().resource("/url") .header("CONTENT-TYPE","value") .post(Response.class, jsonRequestString); Now I want to write un...
{ "language": "en", "url": "https://stackoverflow.com/questions/27395114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finding all object indices satisfying testing function, like array.findIndex() but more than first index I have an array of objects: var data = [{"district":"201","date":"Wed Apr 01 2020","paper":671.24,"mgp":36.5}, {"district":"202","date":"Wed Apr 01 2020","paper":421.89,"mgp":44.2}, {"district":"203","date":"Wed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61510275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to view project logs after merging a repository into a monorepo? Suppose I have a monorepo whose directory is named monorepo. In the multirepo, each project has its own directory. Also suppose I have another existing repository named project-a that I wish to place into the monorepo. To place project-a into the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/53393014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read more than 20 byte using pygatt I'm using python's pygatt in order to subscribe to a device's charasteristic. The problem I have is that in the callback, I'm only receiving 20 bytes each time and I need the full 70-100byte answer. Is there a workaround to be able to read more than 20 bytes using python a...
{ "language": "en", "url": "https://stackoverflow.com/questions/53378884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel VBA Error "user-defined type not defined" with Outlook I am using Office 2016 in my computer and I have a VBA code that sends Email to so mail lists in the file. Every time I want to send the Emails automatically with my CommandButton, I get the error massage: "user-defined type not defined". I made some rese...
{ "language": "en", "url": "https://stackoverflow.com/questions/47376978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StructureMap Constructor Injection without Interface? I'm setting up a MVC project. It looks like this EfDbContext : IDbContext { ... } MyStuff : IMyStuff { ... } MyService : IMyService { List<things> GetSomething(IDbContext context, IMyStuff stuff) { ... } } MyController : Controller { ActionResult MyAct...
{ "language": "en", "url": "https://stackoverflow.com/questions/15314968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Profile model is deleted when I fail to validate on Devise Edit form So, I'm a beginner in RoR4 and I thought I'd go on a practice project. I am using Devise for a User model and I went on to add a Profile model to it like so: class User < ActiveRecord::Base has_one :profile, dependent: :destroy before_create :b...
{ "language": "en", "url": "https://stackoverflow.com/questions/22435124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using node as api and static I'm extremely new to web development. I've bought a domain name (let say 'domain.com' and what I want is to have two links: one 'api.domain.com' with MySql database and Node server for API; and second is: 'domain.com' with some client-side app which will call to 'api.domain.com' for data...
{ "language": "en", "url": "https://stackoverflow.com/questions/41174784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reusing parent context with context.WithTimeout in go? Reusing parent context with context.WithTimeout with a new timeout Hi there, I'm new to go. I was wondering if it's possible to reuse a parent context to create multiple context.withTimeout(). The rationale would be where I have to call multiple network requests...
{ "language": "en", "url": "https://stackoverflow.com/questions/61269264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Are there any performance drawbacks to using 'do nothing' default event handlers? Let's say I have a collection of thousands of objects, all of which implement the following: public event EventHandler StatusChanged = (s,e) => {}; private void ChangeStatus() { StatusChanged(this, new EventArgs()); } If no handlers...
{ "language": "en", "url": "https://stackoverflow.com/questions/2183871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Google Genomics API - Internal Server Error + ReferenceIDs I'm pretty new to Google genomics APIs. I'm trying to create an annotation. I used both web version and Python API call: service.annotations().create(body={ 'annotationSetId': '101', 'name': 'TestAnnotation', 'referenceName': 'chrM', 'start': '1', 'end': '1'...
{ "language": "en", "url": "https://stackoverflow.com/questions/37712872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the use of "psycopg2" in Django while connecting to PostgreSQL What is the use of the psycopg2 PostgreSQL database adapter; or what is the difference between using postgresql vs postgresql_psycopg2 while establishing connection in the settings.py file in a Django project? Because either one works fine for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54164283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Snowflake COPY INTO Export Producing Unreadable File Testing export functionality in Snowflake and having a hard time getting a readable file back. Using the below command on: COPY INTO 'azure://my_account.blob.core.windows.net/test-folder/test_file_8.csv' FROM (SELECT * FROM DEMO_DB.INFORMATION_SCHEMA.DATABASES) cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/65939852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Codeigniter Sessions Third Variable Gets Lost I'm trying to save checkbox data using PHP sessions in CodeIgniter. After submitting the form the data is saved in the session variables and can be called upon on the next page. The problem is however that when I then continue to another page the last session variable is...
{ "language": "en", "url": "https://stackoverflow.com/questions/44785558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON creation in android I want to create a json like this in java. { "contacts": [ { "id": "c200", "name": "Ravi Tamada", "email": "ravi@gmail.com", "address": "xx-xx-xxxx,x - street, x - country", "gender" : "male", "phone": { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11856329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Nginx apply sub_filter directive based on response status code I have an Nginx server in which I use the sub_filter directive to inject a script in the HTML response by replacing the </head> closing tag: sub_filter '</head>' '<script src="some-custom-script.js"></script> </head>'; The problem is that I want to cond...
{ "language": "en", "url": "https://stackoverflow.com/questions/63626470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 13 routing: Static with Resolved Data does not work After migration to angular 13, I get this routing errors: error TS2339: Property 'myParam' does not exist on type 'Data'. this.activatedRoute.data.subscribe(({ myParam, operation }) => { const myVariable = myParam; // this does not work }) { path:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75483383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS Cognito - How to set first user as admin, every next as user. Like title, how can I set first registred user as admin and every next as normal user? A: Are you trying to simply identify if a certain user is the first to register? If so, you can use the Post Confirmation lambda trigger. Use a DynamoDB table to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42365687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stop session from expiring when browser closes in MVC I am facing a session issue After I close my browser my session expires, and after re-open browser, I have to log in again. I don't want to expire my session on browser close. I am using this in my web.config file: <authentication> <forms loginUrl="~/acco...
{ "language": "en", "url": "https://stackoverflow.com/questions/59500802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Expression must have pointer-to-object type - What do I do? This problem keeps on bugging me for a very long time, yet I can't quite understand the problem or how to solve it. It says that Expression must have pointer-to-object type for i whenever I am in the for loop. Everything else seems to be fine. int number, n...
{ "language": "en", "url": "https://stackoverflow.com/questions/54816313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python IF Else and For loop workflow I am trying to write a function that returns the number of prime numbers that exist up to and including a given number. Initially this was my code: def count_primes(num): prime = [2] x = 3 if num < 2: return 0 while x <= num: for y in prime: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52124602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: selecting records from hive table where there are duplicates with a given criteria Table 1 has duplicate entries in column A with same frequency values. I need to select one random record out of those .If the duplicate entry contain 'unknown' as a column B value ( like in record "d") select one from other rows . I...
{ "language": "en", "url": "https://stackoverflow.com/questions/54169685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does it matter where the ret instruction is called in a procedure in x86 assembly I am currently learning x86 assembly. Something is not clear to me still however when using the stack for function calls. I understand that the call instruction will involve pushing the return address on the stack and then load the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/46714626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Module commons.math3 not found using jdeps I'm using JDEPS to list the dependencies of libraries to ensure they are satisfied. I've recently upgraded from Apache POI v4.1.1 to v5.0.0, where JigSaw modules were added. Previously, the following command would output the dependencies: jdeps --multi-release 11 poi-scratc...
{ "language": "en", "url": "https://stackoverflow.com/questions/65831117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compilation errors with 12c Trigger statements? First post and it's a biggie. I've been stuck on this for a while and it's holding up the rest of my project - it's been a long time since I've done much in the way of database development. The last time I used Oracle it was on 11g but the syntax I'm trying to reuse fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/23049952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to point to a number that correspond value of this number is selected by user? Suppose i have two table as person and OfficeAccess. In person i'll save the staffs of office and in OfficeAccess i save access of this staffs to office's building. "person" has this field: "IdKnown, name, family, phone, IdAccess and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38010260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: Find the centroid of Clusters generated by the hclust function I need to get the centroid for each cluster computed by the hierarchical method. First, this is a part of my dataset to get reproductible example: > dput(DATABASE[1:20,]) structure(list(TYPE_PEAU = c(2L, 2L, 3L, 2L, 2L, 2L, 2L, 4L, 3L, 2L, 2L, 2L, 2L, 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/51376552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move jquery ui in to the footer to wordperss? I am able to move jquery ui in the footer but i want to move it between the footer scripts (above all js scripts). here is the code i used to load jquery in the footer. if (!is_admin()) add_action("wp_enqueue_scripts", "wpf_CybarMagazine_scripts", 11); function wp...
{ "language": "en", "url": "https://stackoverflow.com/questions/27123472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Attach API: How to set agent properties? The Java Attach API for JDK6 provides a method getAgentProperties() on VirtualMachine: public abstract Properties getAgentProperties() throws IOException Returns the current agent properties in the target virtual machine. The target virtual machine can main...
{ "language": "en", "url": "https://stackoverflow.com/questions/6894920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Set XML values in jTable I've got a jTable and now I want to add the content of a XML-File into it. I dont know how I should browse through the XML-File, I was currently only able to manipulate the data (rewrite, deleting) and to get the Values of a Single tag and not of all. I'm using JDOM my XML-File looks like th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27014038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Objective-C - NSTimer: unrecognized selector sent to class - call method from another class addCloudOne is a method within the Food class. The following code produces a crash with the following error: +[Food addCloudOne]: unrecognized selector sent to class 0x1000ad760 SEL selector = @selector(addCloudOne); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25424354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirect to profile url after login I am new in backend Node.js and till now I am able to complete registration and login with authentication. When login I am getting token in response by using jwt token Now I want to have the registration details to be shown to users after login. After login the details must of be...
{ "language": "en", "url": "https://stackoverflow.com/questions/54070157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Posting a tweet on the Twitter timeline using "TwitterOAuth" I am trying to post a feed on Twitter using TwitterOAuth. I have two PHP scripts, redirect.php, and callback.php that work as follows. redirect.php -> twitter auth -> callback.php Whatever session key/values stored upon calling redirect.php are lost when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35446756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Serialization of ArrayList containing multiple objects, doesn't save object state I can't seem to figure out why serialization saves and restores the list of objects, but not the their state. The list is displayed, but not the title which is contained in the object. The object class implements Serializable. Serializ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19741376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }