text
stringlengths
15
59.8k
meta
dict
Q: Asynchronous transactions in MySQL InnoDB? I want to implement parallel processing of multiple DB transactions which lock only a few rows for short periods of time. For Example we have this query executed every time an user opens the page: START TRANSACTION; SELECT * FROM table_1 WHERE worktime < UNIX_TIMESTAMP() FO...
{ "language": "en", "url": "https://stackoverflow.com/questions/24311206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a Two argument python function? Is anyone able to help me on the below, I am struggling to understand what the question means by "where {person} is replaced by the first name in the visitors to be identified as a member." The below code is my attempt but I am not sure how to incorporate visitors into t...
{ "language": "en", "url": "https://stackoverflow.com/questions/68190876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: modify url by clicking a div I have a page in php, and I'm trying to add an ?id=variable_value extension to it's url when I click on a div, but when I click it gives me an undefined url error with the extension Here is the script: <script language="javascript" type="text/javascript"> var Pokemon_ID = 1; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49959525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it safe to use integers as hash keys? Is it safe to use integers as hash keys? my %hash; my $str = ... for $str.NFC { %hash{$_} = ... } A: A normal Hash coerces all its keys to strings: my %a = '1' => 'foo', 2 => 'bar'; say %a.pairs.perl; # ("1" => "foo", "2" => "bar").Seq Note how the second key becam...
{ "language": "en", "url": "https://stackoverflow.com/questions/44955867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Save Visual Studio Build Configuration Currently I use Visual Studio 2013 and I want to use my own build configuration (like Debug or Release for example) which I've created in project A, in project B. Is there a possibility to save and import a build config in general and to use it in other projects? Jonas A: To m...
{ "language": "en", "url": "https://stackoverflow.com/questions/30421967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android camera doesn't work after cordova compile I just compiled my cordova project to a .apk for android. You can open the (android) camera with a button. When I was debugging my project the camera opened when you clicked on said button, but after compiling the project and installing it on my android smartphone, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/29609379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): initialization failed Goal: Run a GPT-2 model instance. I am using the latest Tensorflow and Hugging Face Transformers. * *Tensorflow - 2.9.1 *Transformers - 4.21.1 Notebook: pip install tensorfl...
{ "language": "en", "url": "https://stackoverflow.com/questions/73247922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing references to components created at runtime Given the following Blazor component: @foreach (var col in columns) { @foreach (row in rows) { <MyInput @onkeydown="KeyDown" @ref="NewInput"></MyInput> } } @code { private List<MyInput> inputs = new List<MyInput>(); private MyInput New...
{ "language": "en", "url": "https://stackoverflow.com/questions/66861129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Life cycle of an iphone app? I am confused of how an iphone app goes when it start running. I mean when I am trying to write a app, I get confused and lost of terms like "viewDidLoad", "viewDidUnload", "dealloc", "applicationDidLoad" etc. I have no idea when one comes first, which one comes later when an app runs. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7261449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: serializing separate address string into one in javascript you may already know how to parse an address into separate sections such as unit number / street number / street name / town / state and etc... Almost similar issue here. I want to serialize those separately entered data into one. For example, I have Level ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18175026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tachograph Card Authentication I am trying to remote authentication for tachograph. I have a problem between tachograph and can bus communication. i am successful open session 10 7E and send company card ATR. But when i passed to authentication of company card. i send : 0x31,0x01,0x01,0x80,0x03. tacho respond: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71719495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between static_cast and Implicit_cast? What is implicit_cast? when should I prefer implicit_cast rather than static_cast? A: Prefer implcit_cast if it is enough in your situation. implicit_cast is less powerful and safer than static_cast. For example, downcasting from a base pointer to a deri...
{ "language": "en", "url": "https://stackoverflow.com/questions/868306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Build vim with --remote-tab on OSX I built vim using: ./configure --with-x --enable-pythoninterp --with-features=huge but don't have access to vim --remote-tab. I'm using OSX version 10.11.2. I'm hoping to use Vim and not MacVim since I'm using tmux too. Here's the output of vim --version if it's helpful: vim --vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/36432158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: awesomewm remap tag display I'm trying to remap my the tag display feature thats traditionally mapped to modkey, "Control", "#" .. i + 9. I have removed any other instance of {modkey, "Tab"} mappings in my rc.lua, and attempted to replace the word Control with the word Tab. However, despite the rc compiling it the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/68708320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: hbase for storing gamers' last 1000 key hits So for my use case, I need to save only the last 1000 key hits of each gamer. and there will be only 2 fields --> gamerId (all numeric) and keyId (also all numeric). so, lets say, gamer 1123 already has 999 keyIds stored, when the 1000th keyId comes in for that gamer, nor...
{ "language": "en", "url": "https://stackoverflow.com/questions/67796121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i am not able to remove grayscale via jquery my css code .content-img { -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; -ms-transition: all 1s ease; transition: all 1s ease; -webkit-filter:grayscale(100%); } my jquery $('.content...
{ "language": "en", "url": "https://stackoverflow.com/questions/23931234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use spring boot datasource to get connection object so as to use it with conn.executeQuery() manually? I am working on spring boot application with Mysql backend and trying to use springboots datasource Bean to get connection object so as to use it with the following stmts: stmt =conn.createStatement() stmt.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/39037011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do channel ids for guide categories (like music) change in the YouTube Data API? After fetching the list of channels from the guide with the guideCategories endpoint, a list of kind youtube#guideCategory is returned. These IDs can be used to get a list of channels from the channels endpoint for the given category. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32697350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: set readonly property to false for an html text input on clicking on Edit I need to set readonly false when i click on Edit and when i click on edit button should change to save button. i made two input box type="submit". i need to make all the fields editable when i click on edit. please help me to find out the ans...
{ "language": "en", "url": "https://stackoverflow.com/questions/36468817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Bitnami GitLab 5.2.0: gitlab_sidekiq not running and could not be started We are using Bitnami GitLab 5.2.0. We stumbled upon that we can't push into new repository, like git@192.168.133.10:sandbox/testgit2.git, but we can work with old ones. Closer investigation showed that gitlab_sidekiq is not running. /opt/bitna...
{ "language": "en", "url": "https://stackoverflow.com/questions/17690321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Group by and foreach I want to print only once the title and all related images id_post table IMAGES id_images | dir_image | post_id 1 image1.jpg 1 2 image2.jpg 1 3 image3.jpg 1 4 image4.jpg 1 5 image5.jpg 2 6 image6.jpg 2 7 image7.jpg...
{ "language": "en", "url": "https://stackoverflow.com/questions/36168046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: threading: function seems to run as a blocking loop although i am using threading I am trying to speed up web scraping by running my http requests in a ThreadPoolExecutor from the concurrent.futures library. Here is the code: import concurrent.futures import requests from bs4 import BeautifulSoup urls = [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65206486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mysql query show only 1 result i want to output the result based on todays date. the problem is, the output only show 1 result? database report table: id | r_amount | id_therapist | date | time | t_tanning | t_deep // this query works fine echoing all the result if i use while loop $today = date('Y-m-d'); (1) $...
{ "language": "en", "url": "https://stackoverflow.com/questions/5638014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UISearchBar stays when seguing to another view controller via push I followed this guide: http://www.jhof.me/simple-uisearchcontroller-implementation/ The only difference in my code is instead of self.tableView.tableHeaderView = self.searchController.searchBar; I have self.navigationItem.titleView = self.searchContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/37758849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fix "Error Connection Timed Out Error" of a codeigniter website on a godaddy server? I have uploaded a basic codeigniter website on godaddy server without any database connection. In the config file base url is set to the domain name, index_page is blank & uri_protocol is set to request_uri. I also have the ....
{ "language": "en", "url": "https://stackoverflow.com/questions/54004299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i format a string as currency in a data bound DataGrid in WPF C#? I have some data being shown in a DataGrid. The data comes from SQL, where a "money" type can be null. When i display this data, all is OK when i format the data in a double column format as currency. ie: internal void FillGrid() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13272144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ag grid not retrieving data when mounted with vue using axios I have this strange case when trying to retrieve data from mongoDB using axios not showing on grid. It should be already successful given the data can already loaded into the view (already tested it), but it's nowhere inside beforeMount, mounted, or ready...
{ "language": "en", "url": "https://stackoverflow.com/questions/46011034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unexpected character '?' express When I run my server.js file I get a syntax error with something along the lines like the following: Unexpected character ? in the file @babel\core\lib\transformation\normalize-file.js:209 When I try to execute my server.js with following code: import path from 'path'; import e...
{ "language": "en", "url": "https://stackoverflow.com/questions/52357650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested ALOGD statement I have situation where: #define DBG_ALOGD(a) ALOGD("%s:%d: ", __FUNCTION__, __LINE__); ALOGD a #define DBG_MSG(a) do { if (debuggable) {DBG_ALOGD(a);} } while (0) DBG_MSG(a) used by the applications to print the logs. DBG_MSG("Hi %d", 2); will print as LOG_TAG: function_name:121 LOG_T...
{ "language": "en", "url": "https://stackoverflow.com/questions/48740108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony3 - Validation of an embedded form I have an embedded form like this: -> Parent (class) |---> Attribute 1 (collection) : children (class) : required .......|-----> Attribute 1 : child_name (string) : required .......|-----> Attribute 2 : child_description (string) : required I want, when I send the form: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48143175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Link one model more than once I have a function where a user can request a project. The request has 2 fields for other employees to be added. It's got a field for a person who is responsible for the project (person_responsible) and the employee who is supposed to attend the opening meeting (person_attending). What I...
{ "language": "en", "url": "https://stackoverflow.com/questions/21875907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why xpath cannot get the target element? I am quite new in scraping with xpath. I am trying to scrape product information on Target. I use selenium and xpath successfully get the price and name. But xpath cannot return any value when scraping for product sizeproduct size and sales locationsales location. For example...
{ "language": "en", "url": "https://stackoverflow.com/questions/72568845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IOS image sizes for buttons I've read the human interface guidelines provided by apple. Navigation Bar and Toolbar Icon Size: Target size : 72px × 72px (24pt × 24pt @3x) 48px × 48px (24pt × 24pt @2x) Max size: 84px × 84px (28pt × 28pt @3x) 56px × 56px (28p...
{ "language": "en", "url": "https://stackoverflow.com/questions/47973544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which namespace (IBM.WMQ vs. IBM.WMQAX) should be used in the .NET library for IBM MQ WebSphere (amqmdnet.dll) I am writing an application that gets data from IBM WebSphere MQ. IBM supplies a DLL with classes to interact with MQ. However, there appear to be two main namespaces; IBM.WMQ and IBM.WMQAX. The latter s...
{ "language": "en", "url": "https://stackoverflow.com/questions/27908311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get array element containing '/' in the string array I have a string array which I have split based on the white space. Now, as per my requirements, I have to get the array element which contains '/' in its contents, but I am not able to get it. I don't understand how to achieve it. Here is the code that I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/25519739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how do i invoke 32 bit gdb installed on Centos 64 I have Centos7 and I see both 32 and 64 bit version of gdb are installed however /usr/bin/gdb is the 64bit version. How can I invoke 32bit gdb version since i need to debug application compiled with -m32 compiler option A: The 64-bit GDB is perfectly capable of debu...
{ "language": "en", "url": "https://stackoverflow.com/questions/44928596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Npm - fetch vs node-fetch? These package names are pretty confusing, they seem like they do the same thing yet 'fetch' looks to be abandoned yet not marked as deprecated (last commit 3 years ago). Judging from the download counts people are probably downloading 'fetch' when they should get the supported and maintain...
{ "language": "en", "url": "https://stackoverflow.com/questions/62135839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Javascript ternary operator -- what is the condition? I read a handful of SOF posts on ternary operators but I'm still confused with this example: var str = "I want to count"; var counts = {}; var ch, index, len, count; for (index = 0; index < str.length; ++index) { ch = str.charAt(index); count = counts[c...
{ "language": "en", "url": "https://stackoverflow.com/questions/72608528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: My 3D racing game has some problems like wheels turning y axis and car not going anywhere My car's tires spin but the car doesn't move an inch and the wheels turn into y axis instead of left and right. Here is my code, i added rigidbody and boxcollider onto my car aswell maybe that's a problem causing the car not to...
{ "language": "en", "url": "https://stackoverflow.com/questions/74970425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Embedded database in Java EE application Good day. I'm confused about storing the embedded database in a Java EE application. I've just resolved the problem with the .properties file which can be accessed via getResource method, but where should I put my database to support portability? A: For portability, the appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/10736528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Incorrect string value: '\xCC_a' for column when inserting I am attempting to run a sql query but get the following error: Incorrect string value: '\xCC_a' for column CSV File line that breaks mysql query: Juan Gordon,GarcÃ_a,noman@gmail.com,,,,,,,,,,y, SQL Error: <p>Error Number: 1366</p><p>Incorrect string value...
{ "language": "en", "url": "https://stackoverflow.com/questions/14183314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: If WPF Richtextbox Highlight word contains hyphen,thin line shown in the word? I am working in WPF RichTextBox.I have highlighted each word,using the below code.its works fine.But the word contains hyphen means,the highlighted word has some thin lines between the hyphen. string SelectHighlightWord(RichTextBox rtb, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/34544153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS add seperator after *-Tag I'm tring to edit the Wordpress homepage of my friend. He uses a free Template and want to add an seperator "|" after each of his menu items. I tried it with this one. #menu-mainmenu li + li:before { content: " | "; padding: 0 15px; } Format looks like this <ul id="menu-mainme...
{ "language": "en", "url": "https://stackoverflow.com/questions/47206910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: importing converted data using pandas I have a csv file that looks like this: patient_id age_in_years CENSUS_REGION URBAN_RURAL_STATUS YEAR MONTH DAY_NUMBER_IN_MONTH race 11511 7 Northeast Urban 2011 6 20 Other 9882613 73 South Urban 2011 7 25 Unknown 32190339 49 West Urba...
{ "language": "en", "url": "https://stackoverflow.com/questions/31926454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Incorrect path to S3 flysystem adapter in Laravel 5 I'm having an issue with Laravel 5's filesystem when uploading files to an S3 bucket. The line that is running to the filesystem is: Storage::disk('s3')->put($slug, $img); It works as it should for: Storage::disk('local')->put($slug, $img); But when I change the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31167688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Excel CountIF on date AND time I see lots of examples of how to work with times OR dates, but not a lot seems to be done with date AND time values. I have the following data: And would like the sum of some weights between specific date and times (shift patterns): So * *I need all the weights between "17/07/2014 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24825091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List to varargs with pre-difined size or without size What is the better way to convert List to varargs to call below 'builder( String... s )' method. builder( stringList.toArray( new String[stringList.size()] ) );//with pre-difined array size or builder( stringList.toArray( new String[0] ) );//without predifined s...
{ "language": "en", "url": "https://stackoverflow.com/questions/51766615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Console Application - How to access the properties in JSON? I need to access the json properties so that I will be able to filter the result based on registers devices (either AEVL2020 or AEVL2021) but, I can't figure out how to access it. It seems like the RootObject can't access anything. I'm doing this for about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60648274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BizTalk | Issue with Logical Existence functoid | source node doesn’t exist, still need output in the target I have a requirement to populate the output field in the destination schema though the source field does not exist in the input XML. If it does not exist, I have different logic to populate the target field. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72878305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interthread communication between producer and consumer threads? I am trying to learn inter thread communication where I am using BlockingQueue. I have written a producer which generate TaskId and insert it into BlockingQueue. Now I have 2 consumers threads (name "1" and "0"). If taskId is odd, it is consumed by Thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/58196336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Charm Down PicturesService not working I'm still having problems getting the Charm Down PicturesService to work. (I already posted a question regarding the issue). Now I created a very simple test application and updated the build.gradle file with the latest library versions. However, the PicturesService is still...
{ "language": "en", "url": "https://stackoverflow.com/questions/43954431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Error calling Driver#connect" using Hibernate This is my cfg.xml file: <!-- Database connection settings --> <property name="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property> <property name="connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=hiber;</property> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22441076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Preloading entities with EF4 I have a bunch of classificators which will be used quite often. I wan't to preload those entities when my program starts so that I wouldn't have to do it later when any object references them. How can this be done in EF4? A: There's a long-ish walkthrough here: How to Cache Entity Fra...
{ "language": "en", "url": "https://stackoverflow.com/questions/3610427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Redirecting requests over 8443 to 443 One of our applications was previously configured to serve SSL from tomcat over port 8443. We're migrating this application to a new environment and switching to using nginx to handle SSL termination rather than tomcat (which will operate over 8080). I would like the ability for...
{ "language": "en", "url": "https://stackoverflow.com/questions/20989018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python hashlib: TypeError: object supporting the buffer API required I am writing a client/server program for class which allows the client to send messages to the server using a variety of different encryption techniques. Right now, I'm in the middle of implementing symmetric encryption, and the server is throwing...
{ "language": "en", "url": "https://stackoverflow.com/questions/66177717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.Net Core Web APi and Azure AD auth I have to create a web app with these kinds of requirements: * *SPA (Angular 9) *SPA call to Web API (Asp.net core 3.1) *I have to use the Azure AD for the authentication (I created the tenant) *I have to use Microsoft Graph API I read different guides and studied the...
{ "language": "en", "url": "https://stackoverflow.com/questions/61212676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: When to use lib.es2015.d.ts vs @types/core-js? It seems lib.es2015.d.ts that ships with the Typescript compiler conflicts with the @types/core-js package if they are both being referenced. This post indicates that the solution is either: * *Change es6 to es5 in compilerOptions's lib property. This way TypeScript ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40965590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do EDMFunction work? We had a developer who attempted to filter on a numeric ID property using a string: var student = (from s in dbStudents where s.StudentId.ToString() == "2" select s).FirstOrDefault(); This won't work, as ToString() cannot be translated into SQL by the EF Provider. One solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/28864569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: unable to itherate through the array perl I have this perl script: my %perMpPerMercHash; foreach my $sheet () { #proper ranges specified foreach my $row ( ) { #proper ranges specified #required variables declared. push(@{$perMpPerMercHash{join("-", $mercId, $mpId)}}, $mSku); } } #Fina...
{ "language": "en", "url": "https://stackoverflow.com/questions/19682906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mootools accordion styling problem I just built my first mootools accordion, but it is adding a lot of inline styles which is just ruining my UI. I can set up a inline style with !important keyword but it will just make my css maintenance a nightmare. any ideas how to get rid of the inline styles It is just this <sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/2477819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating the Jpanel of a class After some advice on using jpanel - I'm new to java and playing around with the GUI elements. Bascially what I'm curious about is if I can set up a Jpanel in one class, then somehow add labels etc to the that container, but from another class. Is this possible ? or do i have to set the...
{ "language": "en", "url": "https://stackoverflow.com/questions/2541574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: F# Split list into sublists based on comparison of adjacent elements I've found this question on hubFS, but that handles a splitting criteria based on individual elements. I'd like to split based on a comparison of adjacent elements, so the type would look like this: val split = ('T -> 'T -> bool) -> 'T list -> 'T l...
{ "language": "en", "url": "https://stackoverflow.com/questions/2279095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: invoking functions defined by flet in another function I have a collection of functions defined in foo that I want to also want to use in bar. I have these functions defined in foo because I want foo to be self-contained -- otherwise I know that I can define these functions externally (globally) to be accessible to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6887903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does HashSet not implement ICollection? I am going to write a library to traverse an object graph (like some kind of serialization). You will need to judge if an object is a collection in the traverse, so the ICollection came out of my mind. (string has also implemented IEnumerable) But it is really weird that a...
{ "language": "en", "url": "https://stackoverflow.com/questions/31273003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why mangled names found within an exe? I have an MS C/C++ statically linked release exe (no debug info on it), that does not export any symbol, but when browsing it with a hex viewer I see things like .?AVElxInterface@@ .?AV?$CBufferRefT@H@@ .?AV?$CBufferT@H@@ .?AV?$CBufferRefT@PAVElxInterface@@@@ of course they a...
{ "language": "en", "url": "https://stackoverflow.com/questions/15359696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EF Core: Column with ValueGeneratedOnAdd trows "Cannot insert explicit value for identity column..." I have ASP.NET MVC 5 application that uses Entity Framework 6.2. This app creates some records in MS SQL server. I have to process this records in AWS lambda function. For this purpose, I created c# .NET Core v2.0 la...
{ "language": "en", "url": "https://stackoverflow.com/questions/49264548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Win32 ToolTip disappears never to re-appear with Commctl 6 I'm creating a ToolTip window and adding tools to it using the flags TTF_IDISHWND | TTF_SUBCLASS. (c++, win32) I have a manifest file such that my program uses the new WindowsXP themes (comctrl32 version 6). When I hover over a registered tool, the tip appea...
{ "language": "en", "url": "https://stackoverflow.com/questions/51146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can't import modules I've searched for this problem and tried different solutions but can't fix it. In my Django project I have different apps and a non-app directory called 'testing_utils' with modules which serve for a testing purposes. In particular I want to import all available models to file dummy_factory.py. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72714734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call specific method of portlet.java class rather then overide serveResource method? I want some help in liferay with ajax. Right now I am calling the ajax method from my view.jsp page to submit some data. Here is sample code I am using in view.jsp: <%@ include file="/init.jsp"%> <portlet:actionURL name="Add...
{ "language": "en", "url": "https://stackoverflow.com/questions/13246870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vue Material - Triggering MdTableAlternateHeader visibility I'm looking for a way to trigger the MdAlternateHeader visibility - or maybe to reset its count state. The app in question has this multi-selection MdTable in which I implemented a delete function per row. But on data erasing, the alternate header still hol...
{ "language": "en", "url": "https://stackoverflow.com/questions/51321156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Item not showing in list view after added to database After I add the items in database they show only after I restart the app. How to fix this? I have tried using notifyDataSetChanged() but not sure if i did good. Fragment showing ListView and Button which calls Add Item Activity: @Override public View onCreat...
{ "language": "en", "url": "https://stackoverflow.com/questions/32353478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django App - Ajax Auto-complete After 2 Characters and 1s Delay I have this piece of code in my Django app to create simple auto-complete search suggestion box. How do I limit the Ajax to at least 2 characters and how can I add lets say 1sec delay for the Ajax to execute the search query? $(function(){ $('#search')...
{ "language": "en", "url": "https://stackoverflow.com/questions/30314000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: $.each is looping over each character in my json and displaying undefined i need to loop over the below json but the below code is looping over each character in my json and displaying "undefined": (is there anything wrong with the below json??? Any help is appreciated) {"news_id":"1","news_title":"News Title One","...
{ "language": "en", "url": "https://stackoverflow.com/questions/10143269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF Site Blocked by McAfee, how to unblock without turning off firewall McAfee's firewall was blocking me from using a WCF client I made in C# .NET over a local network until I disabled it. How can I keep the firewall up and add an exception or something for my stie hosted in IIS? Like when the firewall is up, nav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7127437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Xamarin.Forms navigation stack flow I'm trying to work out the correct way of structuring the navigation for my Xamarin.Forms application. Please note the LoginPage is currently set as the application's MainPage. The intended (visual) structure is as follows: CheckPermissionsPage ➜ LoginPage ➜ HomePage I am followin...
{ "language": "en", "url": "https://stackoverflow.com/questions/65799114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delaying events in a game loop with Android? If you have a game loop thread in Android that draws to a surfaceview and you require a couple of seconds delay to perform animation, how do you go about doing this?
{ "language": "en", "url": "https://stackoverflow.com/questions/21362461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Control the iterations of triple nested loop in list comprehension, Python I have 2 lists which I need to iterate through: hits_idx2 = [ 0, 1, 2] common_b = [ [835,1234,2345] , [223,544] , [423,1234] ] in order to produce the following output: 0, 835 0, 1234 0, 2345 1, 223 1, 544 2, 423 2, 1234 I cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/53997698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I run a single test in Scala? I'm going through the scala labs and I can't seem to figure out how to run a single test. I run test in sbt and I get 23 failing tests for me to fix. I want to run just the HelloWorldExercise.scala. How would I do this? A: sbt "testOnly HelloWorldExercise"
{ "language": "en", "url": "https://stackoverflow.com/questions/23462593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular2 input data getting lost on button click I have created Angular2 code like this to get the data on button click <div class="field-panel"> <div> <span> <input #newData [(ngModel)]="data.id" type="text" > <select #newCategory [(ngModel)]="i.index" class="input-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/40406409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reading lines of text in a nonblocking way In a C program I want to read text lines from stdin. At the same time I want to handle data coming from another file descriptor. I tried to use poll to wait for any of the two source to become readable and handle them accordingly. However poll needs bare file descriptors an...
{ "language": "en", "url": "https://stackoverflow.com/questions/38240602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Decimal Module in Python Why does this code output 25 although I used the decimal module. I tried it on the calculator and it outputted 26.28. from decimal import * getcontext().prec = 2 targetPrice = 40 currentPrice = 56.5 winChance = 0.9 stopLoss = 23 lossChance = 0.1 expectancy =100 * abs(((Decimal(targetPrice)...
{ "language": "en", "url": "https://stackoverflow.com/questions/69469363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to build c++ application using nw-gyp build. Error: error MSB6006: "CL.exe" exited with code -1073741515 I have tried to set up nw-gyp on Windows 8.1 x64 by following the following link: nw-gyp installation guide For this I installed: * *Python v2.7 *Node v4.2.2 (Setted its path too in environment variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/33841221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting text after URL in asp.net / URL Rewriting (sort of!) My app is a very simple "one page" type app- It has Default.aspx I'm basically trying to get, for example: www.myappurl.com/this is my text I want to get hold of "this is my text" from the above example. This will be displayed on the page (for now) I did...
{ "language": "en", "url": "https://stackoverflow.com/questions/2997372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: docker push to nexus 3 - invalid checksum digest format Though I am able to successfully push a newly pulled docker image to Nexus 3 docker hosted repo, an error like "invalid checksum digest format" is thrown at the end. I pulled "jenkins:latest" from dockerhub, then tagged it and then pushed it to a nexus docker h...
{ "language": "en", "url": "https://stackoverflow.com/questions/35399864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iPhone didreceivememorywarning strategy If i have a array of employees for example in my viewcontroller. Then I get the notification of low memory and the app is also not the active one. At this point I should save the list of employees in a DB right ? so that when the user reactivate the app again, it will go thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/12874596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eigen::SparseTriangularView I am trying to switch some code from Eigen 3.2.10 to 3.3. I am running into compile errors with this method declaration /// \brief Returns template expression for the lower triangular part of A. Eigen::SparseTriangularView < SystemMatrixType, Eigen::Lower > getLowerTriangular() const;...
{ "language": "en", "url": "https://stackoverflow.com/questions/43125221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I get the body in a SOAP response when I have a ClientTransportException In SoapUI/Postman I am sending this request Notice how I am getting a 401 Unauthorized, but I am getting a response body. The 401 is expected. Now I am trying to send this message with jax-ws. I intercept the messageresponse with a hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/61763119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Write to MySQL on mouseover After months of testing, I'm not succeeding to create a script that writes a logtext to the MySQL when a div gets a mouseover. I think I have to use $.ajax, the only problem is, is that ajax (still) is the language which I'm not very good at. One of the 100 things i've tried: <? echo "<di...
{ "language": "en", "url": "https://stackoverflow.com/questions/49787278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Basic Javascript Variable Scoping So I'm trying to make an app that would return whether each of these twich users ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"] is streaming. This is my code: var users= ["ESL_SC2", "OgamingSC2", "cretetion", "fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/37478688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to properly plot a ratio I am trying to plot a ratio but my problem is that when the dividend is larger than the divisor my quotient can be as high as possible. When the divisor is larger than the dividend the quotient is between 0 and 1. That is fine, but when I plot out the results the ratios with the larger...
{ "language": "en", "url": "https://stackoverflow.com/questions/9233784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting False with my Def, What is wrong with my code? def richNumber(n): nb = [] n = int(n) sum1 = 0 for i in range(n, n+1): if n % i ==0: nb.append(i) sum1 = sum(nb) - nb[-1] if sum1 > n: return True else: return False n = int(input("n:")) print(ric...
{ "language": "en", "url": "https://stackoverflow.com/questions/73762313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make display to console text I am beginner at C# and I am trying like welcome message like as Console.WriteLine(" Enter Your Name:"); Console.Write(new string(' ', Console.WindowWidth)); Console.Write("first name:"); string name = Console.ReadLine(); I need after entering the first name to clear the wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/32650108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Match and replace string in text using regular expressions I have a large string and it might have the following: <div id="Specs" class="plinks"> <div id="Specs" class="plinks2"> <div id="Specs" class="sdfsf"> <div id="Specs" class="ANY-OTHER_NAME"> How can I replace values in the string from anything above to: <di...
{ "language": "en", "url": "https://stackoverflow.com/questions/9780470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing Exceptions in Nunit 3.0 and above I am trying to test an exception, NUnit 3.11 is giving me the error, and the unit test is failing. I want Nunit to green pass if it receives this exception, not error out. How would I resolve this? Feel free to improve code if you want, just started learning programming few ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53255946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count number of records in lmdb databse with python I open a lmdb database using this code: lmdb_env = lmdb.open(source_path, readonly=True) How can I count the number of records in this database? A: I think it should be like this: lmdb_env = lmdb.open(lmdb_file_name, readonly=True) print lmdb_env.stat() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34420375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why am I getting Interceptor attempted to ‘Proceed’ for a method without a target error? In my case I have main project and test project. I was getting proper results on the test project where I have only one Installer class and register everything in one place. In my main project I had several installers (one for s...
{ "language": "en", "url": "https://stackoverflow.com/questions/19000466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Generic class factory or method of hierarchy objects I have hierarchy class and generic class: public class Form { public string Name { get; set; } public string Producer { get; set; } } public class Book : Form { public string Topic { get; set; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/60103509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Varnish VCL "Symbol not found: std.querysort" I am copying some VCL rules from this handy template and running on the latest stable Varnish4. However this section of the VCL: vcl 4.0; sub vcl_init { # ... # Normalize query arguments set req.url = std.querysort(req.url); } ^ Returns t...
{ "language": "en", "url": "https://stackoverflow.com/questions/36012266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Declare Variable Character Length My table is shown below: Name Depth IsFile GMES9604U 1.10 770 CFM-2135.csv 1 1 When I declare my variable, only part of the Name is stored: declare @filename222 varchar(max) SET @filename222 = CAST(( SELECT Top 1 Name FROM #MyFiles ) AS Varchar) print(@filena...
{ "language": "en", "url": "https://stackoverflow.com/questions/66002193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Vue component Data not working in bootstrap modal I have a Vue Component which I reuse on the same page. I use a bootstrap 4 modal in the component. My problem is when I update the component data in the bootstrap modal, the data bind is not working properly when I reuse the same component in the view page. Here is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/68589220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }