text
stringlengths
15
59.8k
meta
dict
Q: how to take more than one photo in QML? I have to take 4 continues pictures using the webcamera in QML i can take only one picture after that I get an error from the QML debugger which states "Camera not ready for capture" how do i get the camera to be in ready state after the first capture this is the code i have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/58705505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: History.js bookmark support for HTML5 (pushState) and HTML4 (#) I've have the back and foward buttons working via History.js in both HTML5 and HTML4 browsers. I'm now attempting to add bookmark support by parsing the url, and loading the content in the querystring. The code I normally use to do this is: var urlPara...
{ "language": "en", "url": "https://stackoverflow.com/questions/13477739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I search, display, and retrieve file using C manually by inputing the value first? #include <stdio.h> #include <stdbool.h> #define HASH_SIZE 10 int hash(int value); void dfs(FILE *file, int value); int main() { FILE *file = fopen("DATA_FILE.csv", "r"); if (file == NULL) { perror("Err...
{ "language": "en", "url": "https://stackoverflow.com/questions/74753331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add Google login to OpenIddict Authorization Server - who provides the client_id and how? Starting with the Zirku Sample of OpenIddict, I wanted to add Google Accounts as login provider (nuget: Microsoft.AspNetCore.Authentication.Google). My changes include adding the google auth provider after AddOpenIddict(...): s...
{ "language": "en", "url": "https://stackoverflow.com/questions/67169047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core animation (size change) with autolayout challenge I have a piece of core animation by use of 2 methods in order to give appearance that the object is growing in size from the centre-outwards from the existing location... (1) viewDidLayoutSubviews() self.imageView.frame = CGRectMake(187, 249, 0, 0) which is in...
{ "language": "en", "url": "https://stackoverflow.com/questions/37499946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integrating Lucene Index and Amazon AWS I have a an existing index of lucene index files and the java code to perform search functions on it. What I would like to do is perform the same thing on a server so users of an app could simply pass a query that will be taken as an input parameter by the java program and run...
{ "language": "en", "url": "https://stackoverflow.com/questions/38817050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sequelize validation throwing error I'm trying to check that a username is unique, and I gather that I'd need a custom validation for that. I've written the following code, but instead of returning the error in the array returned by .validate(), it just throws the error, which isn't the behaviour described in the do...
{ "language": "en", "url": "https://stackoverflow.com/questions/22932447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: matplotlib says libpng16.so.16: cannot open shared object file: No such file or directory I am trying to install matplotlib version 2.0.0. I don't have root access, hence can't use sudo/apt-get When I tried installing matplotlib, it showed dependencies on freetype and libpng. So, I executed the following steps: wget...
{ "language": "en", "url": "https://stackoverflow.com/questions/50632550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to ensure that UINavigationController has finished animating before poping up another one? I make a program that push uinavigationcontroller. Once done it pop things back and then do something. One of the thing it wanna do is wait until it finishes poping up before doing that something. That's because one of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/15969171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: http_negotiate_language issue Perhaps I missed something but when I call $result=''; $langs = array( 'en-US', 'fr', ); var_dump(http_negotiate_language($langs,$result)); I have an 500 error message. Should I add some extensions, should I parametrize something on my php.ini ? A: It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13762333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: xcode How to show $ value in a Label and a Text Box. Example 125000 as 125,000.00 I need to show $value on a Label. currently it appears as 125000 but i need it to be 125,000.00 thanks in advance to all supporters. A: Drag the Number Formatter (found in the object library) object onto the field/label. Change the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/14168232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sending mail with embedded image in Ruby I want to send a mail with an attached image and embed this image in html. As a source for tag , What should I write and is there any missing header parts such a content_type ? When I am doing real test, I send to a mail to my gmail account. I can see there is an attachment...
{ "language": "en", "url": "https://stackoverflow.com/questions/40998085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: delete a DataTable row bound to a datagridview I have a DataTable bound to a dataGridView using the following code : dataGridView1.DataSource = ReducedColTable; At some point i would like to move the selected rows into another Table. So here is the loop : List<DataGridViewRow> rows = (from DataGridVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/62823269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome on Windows triggers d3.zoom behavior on click I'm creating an interactive map using dc.js and d3.js. The map should support zooming and panning, so I'm using the d3.zoom behavior. I also want a function to run when I click areas on the map. The code works as expected in Firefox (Linux and Windows), IE, and Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/34560616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is get_current_user_id() returning 0 when used in woocommerce_login_redirect hook I was searching now for a while to find a solution for my problem, where the function get_current_user_id() returns 0 when hooked to woocommerce_login_redirect. Right after the login-redirect there should always be an user-id, or a...
{ "language": "en", "url": "https://stackoverflow.com/questions/62154776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Calendar API Sharing Example I am looking for examples of share calendar and share event using google calendar API in any programming language java, .net, java script. Thanks, Aqeel A: I'm not sure how much this will help, but I have an example here using scala with the ical4j library to read a shared/publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/2014453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I DeserializeWithLengthPrefix a c# class into a Python class? I have a lot of data Serialized with ProtoBuf in c#. A colleague would like read these files with Python. Can this be achieved as Python classes not same as c#. Here is the c# class: [ProtoContract] public class TickRecord { [ProtoM...
{ "language": "en", "url": "https://stackoverflow.com/questions/38147223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use JavaScript create a damping function? I'm writing a scrollbar plugin. When dragging, I want to simulate the function of Safari(IOS), that is, overflow is allowed after dragging to the edge. In fact, Safari (IOS) has an edge decreasing effect when dragging, that is, it will become more and more immobile. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/72031440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I can print 'process status' in Django? In one of my views I have several steps and they use 5 or 7 minutes to finish totally, so I was wondering if there is a way to print the status of the view in the browser, like: "Calculating models..." "Post processing models..." "Making DB..." "Cleaning old tables..." Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12472789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I either post or pass data from website to object element inside it? I'm trying to pass data somehow from website to an object element which is contained inside it. A brief example: This is a test1.html example which is in https://domain.tld/folder1/test1.html <!DOCTYPE html> <html> <head> <script type="tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/42491824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LinkedIn API OAuth issue This is my first time using the LinkedIn API. I am using Python. I am exactly following the steps listed here: https://developer.linkedin.com/documents/getting-oauth-token-python Everything goes well until I try to get the PIN for the access token. I type into my browser: "https://www.linked...
{ "language": "en", "url": "https://stackoverflow.com/questions/8015934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.Data.SqlClient.SqlException: Incorrect syntax near ')' I am getting an error in my SQL command with which I am trying to retrieve values from a SQL Server database. It is showing a error in browser as mentioned in title. If I remove the brackets it shows error in AND operator string jdate = (string)Session["j...
{ "language": "en", "url": "https://stackoverflow.com/questions/22731593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count cells by their color in Excel This question is simple: How can I update a total number count in Excel that decreases based on how many red X's there are in a given column. Where this becomes too complicated for me: I have made macros to sort cells based on numbers or color. There are five different colors, eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/31027679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Deferred object chains be used on event handlers? I'm somewhat new to Javascript / jQuery (but not to programming), so please excuse any ignorance on this matter. I've already looked at this question and this one, but neither one solved my problem. My scenario: I have a slideshow written in Javascript / jQuery. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16500820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Link binary with static library in xcconfig I have an Xcode project that is essentially a single app that gets built into several almost identical targets. I have moved nearly all build configuration settings in central places, but I cannot figure out how to move linking against a static library (libMantle.a) to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/19102565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Indentation after chain of method calls Even though I should have the same setup as the rest of my team, Eclipse's formatter has one small anomaly in my setup. You can see the difference in the attached picture. On the left is my formatting. On the right is the rest of the team's formatting. I want to have the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50097881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to print messages on console in Laravel? How do laravel print out some string on console when running php artisan serve? I tried Log::info but it isn't working. A: It's very simple. You can call it from anywhere in APP. $out = new \Symfony\Component\Console\Output\ConsoleOutput(); $out->writeln("Hello from Ter...
{ "language": "en", "url": "https://stackoverflow.com/questions/42324438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What does 'G' do with sed command? I have tried two different sed commands against a text file called "file1.txt". I have received the same result or output. What I don't understand is the meaning or use of "G" option! I have searched online, but I couldn't find a good answer! Here are two commands: sed 'G' file1.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/29435598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: TypeError: Cannot read property 'uid' of undefined This is my first javascript function for firebase. TypeError: Cannot read property 'uid' of undefined I got this error in firebase cloud function.How to resolve it? const functions = require('firebase-functions'); const admin = require('firebase-admin'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50085894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# .net serial port receive buffer always emtpy I am trying to receive some data from a microcontroller connected to a windows PC through USB. I am doing this with the .net SerialPort functionality as you can see in my code below. I know the sleep is not very elegant but this is just my test code since I cannot get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69429287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript function calling syntax (function($,window,undefined) { $.fn.simplyScroll = function(options) { return this.each(function() { new $.simplyScroll(this,options); }); }; var defaults = { customClass: 'simply-scroll', frameRate: 30, //No of movements p...
{ "language": "en", "url": "https://stackoverflow.com/questions/25018080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot get websocket connection working with ec2 + application load balancer I am having trouble establishing a websocket connection. I have an aws ec2 instance that is running an SSL websocket server on a subdomain: api.example.com, on port 9999. My client application is running at www.example.com, the client sets ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51034212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web API, API Controller and how to update a model? I'm trying out the API controller in MVC 4 and have a question about best practice when using put, updating an object. I'm using RavenDB as data storage and I have created a custom MediaTypeFormatter that has a converter of type JsonDynamicConverter that can seriali...
{ "language": "en", "url": "https://stackoverflow.com/questions/9486745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Route generator for 'item' was not included in parameters error Screenshot of error: plunker (currently not working): plnkr.co/edit/ft9Z4mq8C1llpAxA0Z1v?p=catalogue Link to full project: https://www.dropbox.com/s/0579y250pq5eti5/Project33.zip?dl=0 Full code of wiki.component.ts (code of page that causes error): imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/37449851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set size 'gridcolumn' by content in ExtJS I have a gridview with columns. Here example : { xtype: 'gridcolumn', header: '№', dataIndex: 'number' }, Is there any way to autosize column by content? Thanks! A: Yes just use the flex property. Example: column1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12639073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make Graph like below image in angular As I am New To Angular i am facing issue in Graph , I don't now how to make this in angular Tried with Chart.js and Canvasjs In both i am facing problem 1. With Chart.js i was able to create static graph like below image, but i am not getting how to get data from API fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/55378595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting component of stock market index from YQL Currently, I can get stock quote by returning xml and json using YQL console like select symbol, price from csv where url='http://download.finance.yahoo.com/d/quotes.csv?s=IBM,YHOO,GOOG,MSFT&f=sl1d1t1c1ohgv&e=.csv' and columns='symbol,price,date,time,change,col1,high,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7303445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Angular2 CLI Socket.io (3rd Party Library import) angular-cli: 0.0.39 node: 6.2.2 os: win32 x64 I tried to import socket.io-client into an angular2 app generated with the angular-cli but i can't get it to work. chat.component.ts import * as io from "socket.io-client"; @Component({ ... }) export class ChatAppCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/38191549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: RSA decrypt incorrect parameter For our program we do some preprocessing to validate the integrity of some data files. We do this by calculating a hash encrypted with a private key and on runtime decrypt the hash using the public key and check it against the hash of the data files. We have created a precompiler that...
{ "language": "en", "url": "https://stackoverflow.com/questions/21801975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flutter semantic label does not work with VoiceOver on iOS This is an app specifically for blind and partially sighted users and rely heavily on VoiceOver who mainly use the iPhone. Upgraded to Flutter 3.0.2 did a flutter clean, pub upgrade and pub get but the issue still persists. Running on an iPhone SE 2nd Gen wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/72656555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a proper way to inject an object that needs parameter inside servlets in java ee? I'm making a java application using jsp and servlets. I want to store some data in HTTP session but I want to use the session only inside a RepositoryImpl class. I also have an interface called Repository with methods like addI...
{ "language": "en", "url": "https://stackoverflow.com/questions/73868478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: facebook login issue in ios9 In my app i integrated facebook login , and put all the settings required. But when i was trying to login , i get this error -canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" But i have put the <key>LSApplicationQueriesSchemes</key> <array> <string>fbapi</string> <str...
{ "language": "en", "url": "https://stackoverflow.com/questions/38749463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: display hierarchy in django I am using Django to store and display the hierarchy of an organisation. I am struck with displaying the hierarchy of an organisation. For example: * * Priya (CEO) * * Harry (Manager) * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42447603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can a Tridion command extension find out the command it extends? Tridion's user interface allows you to extend specific commands, which is a great way to modify the behavior of certain existing commands. In the configuration file of the editor this is done with a section like this: <ext:commands> <ext:command ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12410599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AWS DynamoDB SDK 2.x - can I reuse DynamoDbMapper's annotations? We have quite a few entities written for AWS DynamoDbMapper. I have found that 2.x offers "DynamoDbEnhancedClient". However that does not seem to have some features, for instance, automatic table creation from a class, like generateCreateTableRequest(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/63803022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Subquery becomes column in Mysql query in Magento I have a query in Magento ($Collection) in which I joined a table to have the result I wanted. This is my $Collection protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $stmp = "(SELECT GROUP_CONCAT(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/47119430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Abstract class properites does not work in typescript I have this abstract class: export abstract class Builder { static data: MyClass = {}; get data(): MyClass { return Builder.data; } set data(value: MyClass) { Builder.data = value; } static member1() {} static member2() {} ... } I consu...
{ "language": "en", "url": "https://stackoverflow.com/questions/69568244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Save instance layout in activities How I can implement part of layout which will beuse in three or four activities, but I want to save look this layout. I mean In first layout I add button to my part, In second Activity I will see my part with button. In second activity I add second button and in third activity I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/14643299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my dynamically allocated array not work? I have recently moved from Linux to Windows 10 for my OpenGL C++ projects, and the first time I do something with arrays on Windows, they suddenly don't seem to work anymore. Every time I try to create an array from a non-const variable that represents a size, the ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/66940299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add new line for the following string I am new to regex and I am trying to add new line for the following string pattern. (request-target): put /api/v1/9e7336e2-ee96-406d-bba8-e75cf14b2a94/account/e15be91a-b63c-4b4b-ae3f-a0426ae98bcd/address/73844762-8305-4528-ac44-1f1024297abd/payment/041c5e65-0556-4df1-a504...
{ "language": "en", "url": "https://stackoverflow.com/questions/48670452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animated material colors not working in three.js when exported from blender with collada I am trying to simulate a blinking light on an object, so I am animating the material color. I then export the blender model into three.js via the collada exporter. To demonstrate the problem, I have created a model with a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/42993444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing data in previous row using shift() function I am working with monthly Citi bike trip data that looks like this: > head(data) tripduration starttime stoptime start.station.id start.station.name end.station.id 1 732 2015-07-01 00:00:03 2015-07-01 00:12:16 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34485362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uncaught ReferenceError: describe is not defined cors I am building a phonegap app which has a cors.js with the following code: describe('cors', function () { it('passes control to next middleware', function (done) { // arrange var req, res, next; req = fakeRequest(); res = fakeResponse(); next = function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30773468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tableau Filtering on ocurence of a String I have a Field in my Column that is filed with a String that can have a multiple occurence of the same word. Now what i want to do is to Filter this Column so that a certain Word mus occure and that only the rows show up where another word don't ocure more than one time. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/46171322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the difference between the pair of functions floor()/ceil() and min()/max()? I would say all programming languages have functions with these names to choose the lesser or greater of two values: * *min() & max() *floor() & ceil() / ceiling() And some languages have both. JavaScript I believe is one example...
{ "language": "en", "url": "https://stackoverflow.com/questions/9724960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Unexpected token "(" JavaScript I've checked all of my parentheses and it looks okay to me, what's the deal? (I'm doing the Javascript course at Codecademy) [random text here because stackoverflow wants me to have a better ratio between text and code] function StaffMember(name,discountPercent){ this.name = name;...
{ "language": "en", "url": "https://stackoverflow.com/questions/23274674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Twig doesn't extend template My problem is next: I have base.html.twig placed in view folder (root) {# app/Resources/views/base.html.twig #} <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>{% block title %}Test Application{% endblock %}</title> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/19328423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wrong moving speed for sprite animation I'm using Math.atan2 method to detect two different points from point a to point b. But my sprite animation will be moving at a super fast speed when it detect the other point. Is it possible to reduce the moving speed of my sprite animation? So after you press on the add fish...
{ "language": "en", "url": "https://stackoverflow.com/questions/25113110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it mandatory to use the isAuthorized() method in Cakephp? I am using cakephp 2.6.9. and I'm trying to log in using auth, but it shows: $controller does not implement an isAuthorized() method Is it mandatory to use the isAuthorized() method in cakephp? A: If you're using the Auth component with the ControllerAut...
{ "language": "en", "url": "https://stackoverflow.com/questions/31147695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could not load file or assembly 'System.Data.Entity 4.0.0.0 in azure function referencing a class library Getting this error: System.IO.FileNotFoundException HResult=0x80070002 Message=Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/63351139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automated CRUD in Java using Swing JTable I used this code for displaying a database table in a JTable but when I change a value it is not saved to database. I'm using IntelliJIdea. I want to know if there is a general package to implement this kind of binding with database table? I've seen that netbeans can do sth ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20830453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Media contents, Woocommerce Login Forms becomes unavailable when a certain line of code is included in functions.php Happy to be here and elated to have interactions with you. I have a challenge I need help with to determine the causative issue. I am creating a wordpress theme for a woocommerce store, as a first tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/75276658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SVG Symbol animate not working with Safari I'm currently struggling with a SVG. Right now, I'm trying to display an animated SVG in my webpage. In order to do it, I just put the svg code at the end of the body, and used the html tag "use" to embed my SVG (which contains a symbol). Here is my SVG code : <svg version=...
{ "language": "en", "url": "https://stackoverflow.com/questions/46655103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: APK which I developed used to work fine earlier, but suddenly stopped working with "App not installed" error I was working on an android app to push FCM notifications. Now this debug app was getting installed on my mobile properly, however since am using my office laptop with intel-vt (HAXM) disabled I could not use...
{ "language": "en", "url": "https://stackoverflow.com/questions/53768480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send text to an input element within a webpage using Selenium Python I'm trying to learn selenium and I want to fill out a form and copying some tutorial . In this form there a text input with this code : <input required="" autocomplete="off" placeholder="First Name" type="text" id="firstName" class=" mr-sm-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/73008411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can we add extra hidden tag in the surefire report Currently generating surefire report with below details in output.xml <testcase name="ExchangeHostInformation" classname="adm.exchange.PreUpgradeExchangeTest" time="0.716"> Is it possible to add one more extra proeprties in the same tag. My requirement is add one m...
{ "language": "en", "url": "https://stackoverflow.com/questions/74472626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Helicon ISAPI rewrite I'd like to add cache and expires headers for all my .js files because I'm not able to do it on my server. I'm using IIS. How might I do this? A: Consider using Helicon Ape mod_headers module. But note that it works only for IIS7 and higher. A: Are you saying you don't have access to administ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8083177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Verify MenuItem title in test In my activity test I need to verify that a menu item has certain title. I can get it by ID but it returns a view. final View menuItem = (View) mActivity.findViewById(R.id.do_it); But how can I get the title from this view then? Note: I need to do it in ActivityInstrumentationTestCase2...
{ "language": "en", "url": "https://stackoverflow.com/questions/23452766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RubyGem Environment incorrect (gem env) So I'm following a book and installed GIT, CURL, rvm, RubyGems, and ruby. When I run gem env, the variables incorrect... my home is "/home/wegener" NOT "/home/wegejos" ... I have no clue where or how it got the incorrect home world... I used rvm to install RubyGems and Ruby. [...
{ "language": "en", "url": "https://stackoverflow.com/questions/10667369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Basic RegExp examples in Javascript Can any one give the perfect regular expression for 1. US date format (mm/dd/yyyy). 2. Alpha Numerics. 3. Alpha Numerics with spaces. 4. age betwenn 15-100. in java script. i have this Regex. /^[0-9a-zA-Z]+$/ (alphanumeric that doesnot allow spaces) /^[0-9]+$/ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7158307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Object being freed but dealloc not called At some point in my app I remove a view controller (let's call it A) from its parent view controller (let's call it B). And even though A is not referenced anymore, its dealloc method is not called. I checked with instruments, A is really being freed. The number of living ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/25408225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Store canvas coordinates to local storage using angular.js I want to store drawing canvas coordinates to local storage using angular.js i got the coordinates but can"t able to push values to local storage. getting values from this draw(lastX, lastY, currentX, currentY); and to store value to local storage app.con...
{ "language": "en", "url": "https://stackoverflow.com/questions/34992724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate number of years individuals exceeded a value and display said years I have the following dataset: ## ID cumulative sector meters DOB ## 1 20100 41.75948 H38 6400 1979-08-24 ## 2 20101 35.16874 B01 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71195516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii ActiveRecord delete doesn't work I ran into strange situation with Yii ActiveRecord. I have model User (there are some relations, but no foreign keys). When I try to delete some rows from action: $cr = new CDbCriteria(); $cr->addColumnCondition(array( 'status' => User::USER_STATUS_DELETED ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22167164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: javascript - function call in conditional not working I'm fairly new to JavaScript, and trying to build a Snake style game. I have a conditional statement inside an interval update function checking which direction the snake is moving, which calls movement methods in the Snake object to keep it going. Originally, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/48448513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: youtube api video search using php restrict adult videos I'm using YouTube API to search videos from my website and I want to restrict users to search adult videos from my site. Is there any option? Thanks. A: You could use the safeSearch parameter, set it to "strict" to avoid mature content. E.g.: https://gdata.yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/26177170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does @RequestMapping annotation accept String parameter in java but not in scala? Reading the @RequestMapping documentation : http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/bind/annotation/RequestMapping.html It accepts a String array parameter for its path mapping. So this works us...
{ "language": "en", "url": "https://stackoverflow.com/questions/14323732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: node.js url with square bracket In express.js i am trying to add a router for url /xxx/xxx/items[5] . the url have Square Bracket. Router works fine without Square Bracket, but fails with Square Bracket. Have any one faced this before if so, what is the way to make it work. var buildingDeviceCount = require("../m...
{ "language": "en", "url": "https://stackoverflow.com/questions/23900750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merging values attached to like keys in dictionary What i am trying to do is take a text file and return a dictionary of the anagrams (words that make a new word when rearranged alphabetically) in the file. So if the file contained the words dub and bud, then the code should create a key bdu and attach the strings d...
{ "language": "en", "url": "https://stackoverflow.com/questions/19395007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Security Bad Credentials Error for Password I am using spring authentication. I have hit a problem when attempting to use the following password. !"£$%^&*()_+{}:@~|<>?A1 The error gives 'Bad credentials'. After doing some debugging I notice in the method 'additionalAuthenticationChecks' of the DaoAuthenticat...
{ "language": "en", "url": "https://stackoverflow.com/questions/29827315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Orchard get Taxonomy term name of a particular Content Item Is it possible to get the taxonomy term name of a content item in orchard? I use the Designer tools module and i cannot find it in there. A: Solved, 'Category' is the name of my taxonomy: @{ var categoryName = ""; foreach (dynamic term in Model....
{ "language": "en", "url": "https://stackoverflow.com/questions/17342780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Laravel - Relation not push in the second time I trying to save the record with relation by using push() it work well for the first save but I click save it in the second time it doesn't push the relation Laravel 5.5. public function store(Request $request) { if (Session::has('_leave-generation')) { $ids...
{ "language": "en", "url": "https://stackoverflow.com/questions/49896893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JDK1.8 in Production but JDK 1.7 in Testing Environment What will Happen If I have JDK 1.8 in my Production Environment but on Testing Environment JDK 1.7 ? A: You shouldn't have any significant issues between Java 1.7 for testing and Java 1.8 for production. Problems exist beyond the 1.9 transition, but 1.7 and 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/62607257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: SQLite Query decimal places I have a SQLite database, and I need to extract some values from DB. I use next query to do it: SELECT date, code, model, price, SUM(Units),SUM(Total) FROM VTA_VTAdetalle where code = '07' GROUP BY date, code, price ORDER BY date ASC All i...
{ "language": "en", "url": "https://stackoverflow.com/questions/51860424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Request scoped field in a Singleton bean I know it's possible to inject a request scoped bean into a singleton bean in Spring so I know what I'm trying to do will work, I'm just wondering if there is a way to express it more concisely without so many extra unnecessary class definitions. I'm new to Spring annotations...
{ "language": "en", "url": "https://stackoverflow.com/questions/17455324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jquery loop interval I have a series of animation co-ordinates stacked inside a loop. I want to run ALL co-ordinates over a certain period and when it finishes going through all it must start from the top and run through them again. The loop works, but it doesn't start from the first co-ordinates ('top':'+=50' and '...
{ "language": "en", "url": "https://stackoverflow.com/questions/14807489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Program gets hung up when I use "delete" function I'm trying to write a program where it'll take in info from a user, and the user will have options on what to do. The options are to add, modify, delete, display certain info, find the average, and exit. I have written code for all of them but I can't get my delete f...
{ "language": "en", "url": "https://stackoverflow.com/questions/19671060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is warning for variable being uninitialized supressed when kernel is compiled with size optimization config enabled? trying to optimize kernel boot time, I disabled the CONFIG_CC_OPTIMIZE_FOR_SIZE flag in config. This resulted in a lot of may-be uninitialized warning (which was treated as error). Trying to debu...
{ "language": "en", "url": "https://stackoverflow.com/questions/55489421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Install Sonata Dashboard bundle I want to install Sonata Dashboard bundle, so I follow these steps. After installing and configuring I get an error: Compile Error: Declaration of Application\Sonata\DashboardBundle\Entity\Dashboard::getId() must be compatible with Sonata\DashboardBundle\Model\Dashboard::getId(): ?int...
{ "language": "en", "url": "https://stackoverflow.com/questions/50337910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert multiple files from tsv to csv using pandas and glob While trying to convert the tab separated files (.tsv extension) to comma separated files (.csv extension) from local folder, it converted first two files to .csv but the last 2 files are not converted to .csv. Here is list of files format : dir-- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71342975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup Webpack to change a specific config file for dev or production? I have 2 files, config_local.js and config_prod.js. How would you pass in a variable into webpack to basically generate a new file named config_api.js from either the local one or the production one. config_local.js "api": { "login": "htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/44336649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference between :focus and :active? What is the difference between the :focus and :active pseudo-classes? A: :active Adds a style to an element that is activated :focus Adds a style to an element that has keyboard input focus :hover Adds a style to an element when you mouse over i...
{ "language": "en", "url": "https://stackoverflow.com/questions/1677990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "360" }
Q: SDL2 SDL_SetEventFilter vs SDL_WaitEvent I had a typical SDL event loop calling SDL_WaitEvent, and ran into a much-discussed issue (see here and here) where my application was not able to re-draw during a resize because SDL_WaitEvent doesn't return until a resize is finished on certain platforms (Win32 & Mac OS). In...
{ "language": "en", "url": "https://stackoverflow.com/questions/46869687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to have different text in each pop-up I'm very new to coding and am trying to create a portfolio website. I have used a pop-up code sourced from W3 Schools. The idea is that when you click on each small illustration, a full-screen pop-up appears with text. I have been able to do it successfully for one pop-up wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/63968610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace " by ' with awk I have a file call xxxx.txt and I want in a var the line start with Sentencia, but " replaced by '. $ cat xxxx.txt >Ejecutor: Ezequiel >Jira: 13226 >Origen (PROD/CUA/ACE/PROD6/DEV): PROD >Destino (PROD/CUA/ACE/PROD6/DEV): CUA >Sentencia: select * from pricing_user.prc_promotions where fec_baj...
{ "language": "en", "url": "https://stackoverflow.com/questions/59158251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does not this RPC server scale? package main import ( "fmt" "net" "net/rpc" "sync" ) type SumInput struct { UpTo int } type SumOutput struct { Result int } type RpcServer struct { } func (s *RpcServer) Calculate(in *SumInput, out *SumOutput) error { for i := 0; i < in.UpTo; i++ { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21362099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Display date or time on the values axis (y-axis) of a chart in Excel I have a process that produces widgets at a variable rate. The number of widgets produced every 5 minutes is reported to a log. Knowing how many widgets must be produced in total, I can use the number of widgets produced in any timeframe to compu...
{ "language": "en", "url": "https://stackoverflow.com/questions/58208678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java ArrayLists not equal even though they are Hi I have two ArrayList which has HashMap stored in it. For e.g expectedList = [ { id = 1, key = X, rowid = 1, id = 1, timeofday = 12: 12: 00, stream = A }, { id = 999999999, key = Y, rowid = 2, id = 1, timeofday = 16: 12: 00, stream = A }] tableList = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18117871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP-Calendar Saturday will not show My problem is very simple to say. In the graphical calendar which I called for in one of my pages. Despite setting the parameters and reading the documentation, I can get every day of the week to show up in the calendar except for Saturday. I wouldn't care so much except I run a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10024362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make all users within the domain a member of a security group Using either Powershell or VBS, how can I make all of the users within my domain who have an email address a member of a specific security group? A: import ActiveDirectory $Group = Get-ADGroup -filter {Name -eq "GroupName"} Get-ADUser -filter {EmailAd...
{ "language": "en", "url": "https://stackoverflow.com/questions/5269413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }