text
stringlengths
15
59.8k
meta
dict
Q: Build parent pom and run specific integration test in Jenkins through maven? Executing mvn clean install on my parent pom builds all the sub-modules and runs the related junit tests. It doesn't run the integration tests. After building and running the junits, I want to run a specific integration test in a particular...
{ "language": "en", "url": "https://stackoverflow.com/questions/36341830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to 'undraw' an Image? I am trying to make a simple game in Java, All i need to do is draw an im onto the screen and then wait for 5 seconds then 'undraw it'. Code (this class draws the image on the screen): package com.mainwindow.draw; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/22398145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass Ionic2 popover ngModel value to and call function in parent Page component? Here's what I am trying to do. * *Putting group radio buttons in the Ionic2 popover menu. *The options are actually controling which JSON file the content is going to load. *User select an option, close the popover, content will up...
{ "language": "en", "url": "https://stackoverflow.com/questions/38489737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do i add an image to an element using javascript I basically have this link, where when i click it, i want an image to show over it. Using javascript how can i do this? <a> click me </a> css: a.clicked { /*what goes here?*/ } A: Adding a new image element is pretty easy: // Append an image with source s...
{ "language": "en", "url": "https://stackoverflow.com/questions/6119315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filtering file in unix using grep/sed/awk other? I have gigantic error log files that show errors encountered on a dataload. I need to report errors that are NOT unique constrain violations, but searching through the files manually are impractical due to their size. The log file: Record 1: Rejected - Error on table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17986185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does the MessagePack error extension (0x03) have top-level MP_MAP? In Tarantool 2.4.1, a new MessagePack extension was introduced to serialize errors. At the very top level of the extension body there is a map with only one element, an error stack (an array consisting of error maps). I wonder if this top-level m...
{ "language": "en", "url": "https://stackoverflow.com/questions/62052725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a limit to displaying columns for results in HUE? I only get the first 10 columns displayed in results in HUE, and the next columns greyed out. Is this an expected behavior in HUE interface ? If so, is there a configuration to override this ? Thanks, Parag Checked hue.ini configuration file to see if there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57516454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you overload an operator in swift? Say you have a class C. It has two instance variables, number and vector. vector is just an array of either ints or doubles. I would like to do the following: c1 = C() c1.number = 2 c1.vector = [1,2,3] c2 = C() c2.number = 3 c2.vector = [4,6,7] println(c1.number + c2.numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/28552379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Matlab, how to iterate over a multi dimentional array I am trying this code arr = [[400, 200], [100, 50]] for a = arr a(2) % Should display the 2nd element of the sub-array end but I get: Index exceeds the number of array elements (1) Any idea ? A: Solution is to define arr differently, i.e.: arr = [400...
{ "language": "en", "url": "https://stackoverflow.com/questions/67619618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I deny access to a symmetric key alias in SQL Server? I have a table with some encrypted data: select * from Test1; that yields some rows with garbage data that I created... two rows, both with a name and ciphertext, created by the following command, issued twice with slight variation: insert into Test1 valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/30489709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using 3rd party script in html So actually i am not much familiar with javascript that's why i am going to post it to know something that i am going to know, So here it is, Suppose i have html page and hosted on some where on internet and its coding is, <html> <head> <title>Title of the document</title> </head> <bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/18179025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BeautifulSoup and Selenium won't retrieve full html from website This is the site I'm trying to retrieve information from: https://www.baseball-reference.com/boxes/CLE/CLE202108120.shtml I want to get the box score data so like the Oakland A's total batting average in the game, at bats in the game, etc. However, whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/71167677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ionic 2 Crosswalk for Android: this.platform.height()/width() inconsistent result on this.platform.ready() event I use Crosswalk plugin for Android with Ionic 2 and I've noticed, when running on a real device, that this gives an inconsistent result: this.platform.ready().then(() => { console.log("this.platf...
{ "language": "en", "url": "https://stackoverflow.com/questions/40718494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: call local .asmx webservice from phonegap android app to get data? i m creating one phonegap test application, for that i want data from database through webservice (.asmx). i m just newer for this technology. i have spent 2 days for this call posible bt couldnt. function test() { jQuery.support.cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/13305715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set react createtableselect to prevent creating element not in options? I was trying to have a create select option that limit users from adding their own option to the predefine option list, Sample code for setting options in create table select. Unfortunately this this doesn't solve the problem. please help...
{ "language": "en", "url": "https://stackoverflow.com/questions/66881285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqaure brackets & asterisk sign as WildCards chars in Redis keys or scan with match We query redis using SCAN command along with MATCH, in following manner: scan 0 MATCH "S*" this will find anything starting with S then there is a square brackets syntax is also supported([]) which OR scan 0 MATCH "[ef]*" this will...
{ "language": "en", "url": "https://stackoverflow.com/questions/26700337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in converting images in Imagemagick I use Imagemagick convert to convert pdf file to png as follows: Magick convert -density 300 PointOnLine.pdf -quality 90 PointOnLine.png It gives me the following warning: convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `PointOnLine.png' @ war...
{ "language": "en", "url": "https://stackoverflow.com/questions/48628878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Lifetime of std::initializer_list when used recursively I am trying to use std::initializer_list in order to define and output recursive data-structures. In the example below I am dealing with a list where each element can either be an integer or another instance of this same type of list. I do this with an intermed...
{ "language": "en", "url": "https://stackoverflow.com/questions/72103800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Keycloak user resource - return user representation with roles and groups instead querying rest api for roles and groups I have to search users by text, groups and roles and it takes 6 seconds to query for users, groups and roles for each user, it is about 15 HTTP requests to Keycloak REST API. Such slow searching i...
{ "language": "en", "url": "https://stackoverflow.com/questions/62213682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AOSP build both x86 and x64 for aosp_x86_64-eng When building Android 9.0.0_r30, I lunch "aosp_x86_64-eng", but it builts both x86 and x64 targets, i.e. there are two clang invokes for each C/C++ source in the build log: ...clang...-target i686-linux-android... ...clang...-target x86_64-linux-android... which gener...
{ "language": "en", "url": "https://stackoverflow.com/questions/57863059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect Woocommerce to a specific page? I use "Woocommerce User Email Verification" which after the user registers, it redirects user to the main page. It doesn't have built in option to redirect users to a page where I can tell them that they should check their email and confirm it to access my-account sect...
{ "language": "en", "url": "https://stackoverflow.com/questions/50811013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm having trouble rounding decimals while encoding in python import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import StratifiedShuffleSplit from sklearn.preprocessing import OrdinalEncoder df = pd.read_csv("mushrooms.csv",index_col=False,header=None) def n(target...
{ "language": "en", "url": "https://stackoverflow.com/questions/59348335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Error: A "url" property or function must be specified, except url is specified I have a Conversation model and a view that displays this model. This model is fetched from the server without any problem (the url property works fine then), and the view is rendered. However, when I attempt to destroy the model in a fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/26400601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handler from Looper.getMainLooper didn't receive message I have an activity and a handler created inside its onCreate function which looks like this: private Handler mHandler; private Button helloBtn; private TextView helloText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
{ "language": "en", "url": "https://stackoverflow.com/questions/27225510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there way to position border with css (IMAGE EXAMPLE)? Below are a couple of examples of what I want: Example 1: Example 2: I tried by using background but I don't know how to make the background smaller than its container, so I decided to try with border-bottom and to position it with sth like 10px-top. I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57286458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bootstrap Button Collapse in navbar While following "Bootstrap 3 Tutorials - #2 - Responsive Collapsing Navbar [1080p]", I got stuck w/ this button; https://www.youtube.com/watch?v=qpWlaOeGZ_4 When button is cliked, home link is supposed to show in mobile size of the page. But nothing happens, can anyone help me wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/38675593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conditional validations in angular2 I want to use same template for guest and customer registration forms but validations may varies as follows Let us assume it is a Register form for Guests - firstName is required <form #f="ngForm" novalidate (ngSubmit)="save()"> <label>First Name:</label> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44024833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 'Project.API.Hubs.ChatHub.OnDisconnected()': no suitable method found to override public override Task OnDisconnected() { var name = dic.FirstOrDefault(x => x.Value == Context.ConnectionId.ToString()); string s; dic.TryRemove(name.Key, out s); return Clients.All.disconnected(name.Key); } I don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29818866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting empty string on h:selectOneMenu I do not know why it is empty because I have the same piece of code in my system for a user register. This is mu xhtml page <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmln...
{ "language": "en", "url": "https://stackoverflow.com/questions/44096866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WHILE loop script I am trying to write a script that will continue to prompt a user to enter a grade, until the user enters 999. If the user enters 90 or more, echo A. If the user enters 80 or more, echo B. If the user enters 70 or more, echo C. Otherwise echo Failed. I am thinking this needs a WHILE script. Bel...
{ "language": "en", "url": "https://stackoverflow.com/questions/49664993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String concatenation of algebric term I would like to add two integers and concatenate their result to a string, that is: Add 1 to $i, and concatenate that result to the string 'icon'. I thought the following syntax would work: $x = 'icon'.$i+1; However it doesn't do what I want - it keeps returning the value 'ic...
{ "language": "en", "url": "https://stackoverflow.com/questions/15472456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: distributed associative domains in Chapel Are there any working examples of distributed domain maps for associative and/or opaque domains in Chapel, or any hints on how one would distribute a non-rectangular structure such as a graph over multiple locales? I know about distributed sparse arrays, but I am looking at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55050943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to download files from a FTP using PhantomJS I have a file on a FTP Server. I´m trying to download it using PhantomJS. I´ve tried using the following code: var page = require('webpage').create(); page.open('ftp://USERNAME:PASSWORD@www.mywebsite.com/exempleFIle.xlsx'); phantom.exit(); It runs without throwing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/34923943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony 3 - Form with OneToMany association in database I work on a OneToMany association in my database. This association work perfectly when I try to add data from fixtures and when I try to return data from database. The problem is with my FormType CommandType which does'nt work. Symfony and Doctrine return this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51086012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Signalr: firsttime user, cannot get 'server button event' to 'hub' to 'client' to work hey guys I am trying out siqnalr for the first time and am having some issues getting it to work. I can get the client to call the hub method with no issues. I can get the hub to call the client with no issues. But I want to call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17350751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Returning Video file to a view on laravel 5.4 I am encountering a problem rendering video to my view in Laravel 5.4. I have a view as follows: <main class="video-player"> @if(!empty($video)) <video id="my-video" class="video-js vjs-big-play-centered" controls data-setup="{}"> <source src="{{url('vid...
{ "language": "en", "url": "https://stackoverflow.com/questions/45168094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show the custom user control(s) in flow layout panel dragging and at the same with a move icon mouse cursor in Winform in c#? How to show the custom user control(s) in flow layout panel dragging and at the same with a move icon mouse cursor in Winforms in c#? I have been working on a Winforms Application and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58445776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get output of a php file in separate html form at the middle of screen of lesser size How to get output of a php file in separate html form at the middle of screen of lesser size. See tyhe below part. It is not working. Help pl. <html> <head> <script type="text/javascript"> //This function auto-fills ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19973369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: LCC-- How to stop debugger from breaking at the start of the application? I'm not sure of how many users there are out there that use the LCC C compiler and the WEdit GUI for Windows but it has a "feature" that is can get to be quite annoying. When you start an application with the debugger, it breaks the applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7012999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: SCNShadable protocol gives internal error during fragment function compilation on newer devices We have written a shader modifier based on the SCNShadable protocol which works well until the number of uniform variables is rather slow (say 5-10). Later we needed to extend the shader modifier and use new uniforms, a t...
{ "language": "en", "url": "https://stackoverflow.com/questions/60262881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get an array of files to upload I am running into a scenario that I cannot get more than one file to upload. If I add more than one file, only the last one will send through. I know this means I need to put the files into an array, but when I try I get an error from the fileUpload class. IF I change the input...
{ "language": "en", "url": "https://stackoverflow.com/questions/57328909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure spark runner for apache beam pipeline for java I'm new to Apache Beam and Apace spark, i want to configure the beam pipeline for spark runner. what is mentioned in the documentation is not clear to me. A: You can pass argument --runner SparkRunner to the pipeline launcher to use spark as the underl...
{ "language": "en", "url": "https://stackoverflow.com/questions/61276715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LLVM segmentation fault with opt command when i am trying to run the very simple (Hello world) pass given in llvm (my file is pass Hello.cpp) on a file XX.c (X64 OS) the opt command opt -load ../../../Release+Asserts/lib/Hello.so -hello vv.bc > vv.txt gives this error 0 libLLVM-3.2svn.so 0x00007f314b0f1e52 1 li...
{ "language": "en", "url": "https://stackoverflow.com/questions/25230681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to create fluent interface that can nest generic types many times in C# I'm trying to create a Fluent API that describes a nested structure and as a result I would like to use generics to type the resulting object. I would like to do something like: var test = new Query<Entity>().Select(x => x.UniqueV...
{ "language": "en", "url": "https://stackoverflow.com/questions/49764089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can declaring POD types throw an exception? When I declare a condition_variable, it may throw std::system_error. But how about when I declare a POD type (e.g. int, double or float)? Like the code below: int main() { //do something int i; //will here throw exception? } If declaring a POD type may throw ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/34892423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL query to replace multiple occurrences with the most frequent ones I have a products table, which has the product description in two languages, one in English and one in an alternate language. Let's say: Product_Desc Product_Desc_Alt A A1 A A2 A A1 A A3 B B1 B B2 B B2 C C1 If I do a GROU...
{ "language": "en", "url": "https://stackoverflow.com/questions/71842667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get text wrapped with I wanted to get the text inside break html but this it's not wrap with paragraph just a text inside break. Division is my only identifier for this which is "Msg". How can I get one of each element? <div name="Msg"style="display:block"> <b> HI! </b> 2017-11-30...
{ "language": "en", "url": "https://stackoverflow.com/questions/47568514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to save media file in app specific folder using Media Store API - Scoped Storage Android I am trying to use scoped storage for Android 10 and above to save images taken from the camera in the app specific folder. I know how to do it using File API but I am looking for to do it with Media store API. Here is the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/64330009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Auto dial out issue in asterisk I am applying an auto dial in asterisk using .call file My a.call Channel: DAHDI/g0/09********* MaxRetries: 1 RetryTime: 600 WaitTime: 30 Context: outgoing Extension: 10 Priority: 1 My problem is that every time above number is called by same number means even if i change the dialle...
{ "language": "en", "url": "https://stackoverflow.com/questions/24210322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fetching cached image not working I was trying to load and cache images in my app for showing on UITableView. The original concepts looks like: if (image in cache){ show cached image; }else{ if (image in file){ show filed image; }else{ load image from web asynchronously; if (finished){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30590943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP stream_context_create with proxy I'm currently developing an web application which uses an XML Interface located on a different server, that I have to access via a proxy. So I tried to set the proxy in a stream_context_create array, but it doesn't seem to work. $set = array( 'http' => array( 'method'...
{ "language": "en", "url": "https://stackoverflow.com/questions/11502416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Want to multiply, not repeat variable I want to input a command-line variable and then multiply it, but when I print the variable it repeats by the number I want to multiply it by. eg: #!/usr/bin/env python3 import sys st_run_time_1 = sys.argv[1]*60 print ("Station 1 : %s" % st_run_time_1) When I run the script I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20401871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NotificationHub Push Notification returns : The Token obtained from the Token Provider is wrong I have Wp8.1 Silverlight app that receives push notification (WNS) from Mobileservice (the old azure service). I therefore wanted to update to the new service because of the new features. I have now created/upgraded a ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/37011339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to turn users input into a list in Python? Here is my code so far. def pfunc(): portList = [] user_choice_port = userPort.get() portList.append(user_choice_port) the userPort is basically a text variable for what the user will enter into an entry box (which will be ports). The user will enter the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/24093487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Leads to implement cart in shopping cart using Spring I have implemented shopping cart up to product. But have no idea on how to implement separate cart for each user. Please share your ideas A: Please share your effort / code along with your question always. According to me this can go with many scenarios One of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43173237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Format to Currency using DisplayFor Html Helper I have page that will show some currency data. I want to format the data with currency format but only using Display Template. I have the following code: @foreach (var item in Model.Data) { <tr class="@(item.Group%2==0? "odd-colore": "even-colore")"> <td>@Html...
{ "language": "en", "url": "https://stackoverflow.com/questions/42773268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring's CachingConnectionFactory. Why do we need to close sessions although they are to be cached? I am trying to get my head around the Spring CachingConnectionFactory. ActiveMQ documentation recommends when using JmsTemplate that a Spring CachingConnectionFactory or an ActiveMQ PooledConnectionFactory is used as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67641252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC With MEF integration I am following the same approach used in this link in my ASP.NET MVC 2 project and it is working fine. All my pages are partial views (ascx). So I have created a class library in my solution as a plugin the same way done in the link sample and put a new partial view and a controller ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17566983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: datetime field won't update in MySQL Database Hi I am having an issue with updating a users last login time in my database, if I set it to update a different column it works perfectly, but it just does not work when i try to update the specific column "lastlogin". My code: @mysql_query("UPDATE my_users SET lastl...
{ "language": "en", "url": "https://stackoverflow.com/questions/44092365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I model association between two polymorphic classes without using an enumeration I am using an enum to label two different classes of products - a SensorDevice and a [data]CaptureDevice. They are intended to be used physically plugged to one another, but not every sensor model can be used by each receiver mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/39898585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List.Remove(T item) removing item from original List I have the following code foreach (var d in dots) { var _tempPointList = new List<Point>(); _tempPointList = _pointList; foreach (var point in _tempPointList) { if (d >= point.X && d <= point.Y) { _tempPointList.Remove(...
{ "language": "en", "url": "https://stackoverflow.com/questions/30454526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C0209: Formatting a regular string which could be a f-string (consider-using-f-string) For the below line, I am getting pylint issue: " C0209: Formatting a regular string which could be a f-string (consider-using-f-string)" auth = str(base64.b64encode(bytes("%s:%s" % (self.user, self.password), "utf-8")), "ascii").s...
{ "language": "en", "url": "https://stackoverflow.com/questions/73325378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Encoding Issue with PHP and MySQL In MySQL with phpmyadmin my text looks like: & eacute; <-- no space, added to see. When I read it into PHP and print it to the error_log it looks like: \xe9 When I try to look at it in a web browser it looks like: � It should look like this in the web browser: é Does anyone know wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/22738422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move a WordPress website to my computer for development? I was just hired to work in web design with WordPress and I'm struggling because I'm not experienced with the platform. My job is, basically, take the design made in Adobe Illustrator and build the layout in HTML and CSS. Today I was assigned a site tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/38840598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: accessors in class extending JPanel I'm writing a clone of Risk in Java, and am having some trouble with my code. When I create a new game, I create a JPanel with a JTextField (for the player name) and a JComboBox(for the player color), one panel for each player the user wants to create. Instances of this panel are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12732048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Two RigidBodies - How Do I Make One Immobile? In a 2D shooter, I have one RigidBody that is a rotating wall. My player (ship) is another RigidBody. Both have gravity of 0 and are non-kinematic. I want the ship to not be able to move the wall, but to halt up against it. Currently, the ship hits it and both are af...
{ "language": "en", "url": "https://stackoverflow.com/questions/32084105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do restructure the trip data to prepare a link data using spread and gather functions in R? I have a trip data set as follows: df <- data.frame(user =c("P001", "P001", "P002"), tripID = c("tid1", "tid2", "tid3"), mode =c("bus", "train", "taxi"), Origin = c("Westmead", "Redfan", "Westmead"), Destination = c("Redf...
{ "language": "en", "url": "https://stackoverflow.com/questions/61636854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Workflow Foundation Threading and WCF OperationContext I am using the WorkFlowServiceHost(in .net 3.5) to host a State Machine Workflow. I use the WCF receive activities to handle calls into the workflow. I am using a WCF authorization policy to attach claims to the incoming requests based on info in the message h...
{ "language": "en", "url": "https://stackoverflow.com/questions/541039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: App delegate methods aren't being called in iOS 13 I am using Xcode 11 and building an app for iOS 13. In a new project I created in Xcode some of the UIApplicationDelegate methods were missing so I added them back into the app delegate file. The new template for a "Single View App" project was missing the methods. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56508764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: How to get a C# Custom TextBox to change cursor location on mouse click I have a custom textbox, which is just a standard textbox with a couple additional small features, and it all works as expected. The problem I am having is that clicking in the field to change the cursor location does not actually change the lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/25638211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating Link to Specific Page through Table field I'm pretty new to HTML, PHP, JavaScript, etc. I have a table that will be uploaded by a Database, with fields such as name, id,email etc. I would like to show a page with all people in the table, with a link to a details page that will show all the attributes (field...
{ "language": "en", "url": "https://stackoverflow.com/questions/29493454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EmberJS and web components: extend an existing HTML tag within an initializer (is it possible?) Edit: this issue only seems to be in the .hbs rendering as this code does work when the extended web component is inserted in the top level index.html of the EmberJS project Edit 2: However, when I put it in a minimal .hb...
{ "language": "en", "url": "https://stackoverflow.com/questions/58529308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sequelize get created record's autoincrement id I have an autoincrement id int column. I am trying to retrieve id of a created record during save but I am of course sending DEFAULT within the insert. Is it possible to retrieve the id without an additional query? My attempt is below however, auditWithAssignedId's id ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75577551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using ModelAndView object properties inside javascript I am returning a list from my Controller as list to view and I am passing this list object to my javascript function like this window.onload = function() { showDirectory("$(S3DirectoryList)"); }; S3DirectoryList is the object that is returned from controller....
{ "language": "en", "url": "https://stackoverflow.com/questions/24382770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: primefaces message not working I am implementing a login form with primefaces but my messages are not displayed, what can be? I've tried using the id field or passing null in method addMessage (). my xhtml code: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16243699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the default filter operator in kendo ui grid mvc I have managed to change the default filter order for the Kendo Grid using: .Filterable(filterable => filterable .Extra(true) .Operators(ops => ops.ForString(str => str.Clear() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18997638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: MySQL SELECT with data from another table Probably it's easier than what i think, but i am loosing my mind about it, i have a table with product with thousand of entry, something like ID|NAME 0 |first product 1 |second product ... N |nth product every time someone click a product i save and update a table called cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/62542113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure automation, PowerShell to fetch a file in private blob container I have an azure blob container set to private. I want to download files in this container using PowerShell. This is what I put, however it is giving me ResourceNotFound error every time. Even when I put -Credential and my user name/access key. Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/34903180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: area chart with d3 is not rendering on jsp page but working fine with html i sucessfully rendered d3js area chart in a html page here is the code which is rendering sucessfully in chrome or mozilla.The name of the file is say temp.html.Here is the code <!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/14500380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extracting highlighted content in pdf automatically as images I have a pdf file in which some text and images are highlighted using highlight text(U) tool. Is there a way to automatically extract all the highlighted content as separate images and save it to a folder? I dont want readable text. I just want all the hi...
{ "language": "en", "url": "https://stackoverflow.com/questions/8930622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Foxx dependencies import by name, not by mounting point As far as I understand from reading this snippet in this documentation regarding 'Defining dependencies': will allow using any app to be used to meet the dependency. sessions or sessions@* will match any app with the name sessions (such as the sessions app i...
{ "language": "en", "url": "https://stackoverflow.com/questions/31112997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to set validation rules in foreach loop in codeigniter I need to set rules dynamically I don't know what will be the name of input type. For example I have input type<input type="text" name="first_name"> I can set rule for it like $this->form_validation->set_rules("first_name", "First Name", "required"); But I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52706354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to create query to export data as csv I have a Postgresql table I wish to export as CSV on demand using a query, without superuser. I tried: COPY myapp_currencyprice to STDOUT WITH (DELIMITER ',', FORMAT CSV, HEADER) \g /tmp/prices.csv But I get a syntax error at "\g" So I tried: \copy myapp_currencyprice to...
{ "language": "en", "url": "https://stackoverflow.com/questions/73322162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hamburger menu styling doesn't appear the same on phone I have created a mobile hamburger menu with several items in it. The thing is, when I try to edit the CSS and make changes they appear fine in my inspect preview, but when I actually check the website on the mobile I don't exactly see the styling I was trying t...
{ "language": "en", "url": "https://stackoverflow.com/questions/50978718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to CountIf items in ListView VB.Net i have a form that has two listviews, lv = listview lv1 from textbox lv2 countif items from lv1. my question, how i can count the items in lv1 and show it in lv2. thank you very much. :) Best regards, HMZ A: You can try this: ListView1.Items.Add("Buah").SubItems.Add("Apel") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46125019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can't bind to Service I have an aidl file defined as follows: package com.erbedo.callalert; interface RemoteCallAlert { void notifyCallEnded(); } The service is: package com.erbedo.callalert; public class CallAlert extends Service { Filter callListener; private final RemoteCallAlert.Stub mBinder = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/2484286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add buttons over an image using the netbeans IDE? I am using netbeans as an IDE to make my desktop application. I have to add 3 buttons over an image. How do I do that? I have been unable to do this using the drag and drop features of netbeans. A: Put the buttons in a custom panel with an image background ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18608142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RuntimeError: ERROR Mrelation "tablename" does not exist Rails - 2.3.8 Database - Postgres(9.2) Active record query is not able to generate tablename in double quotes ie # this ran fine Table.find_by_sql('Select * from "Table" Limit 1') Sql generated - Select * from "Table" Limit 1 But issue come...
{ "language": "en", "url": "https://stackoverflow.com/questions/17924818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git commit command is not working properly with atom editor When I give the command "$git commit" to git bash, then $ git commit hint: Waiting for your editor to close the file... atom --wait: atom: command not found error: There was a problem with the editor 'atom --wait'. Please supply the message using either -...
{ "language": "en", "url": "https://stackoverflow.com/questions/58218086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Yahoo Currency Exchange Rates in Android 4 In my application, I need to get the current exchange rates for different currencies. As it has been suggested by this, this and this question a nice way to do it, is to use the Yahoo Finance service. So, when I want to find, for example, the rate between USD and Canadian d...
{ "language": "en", "url": "https://stackoverflow.com/questions/13928436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Hadoop: ERROR conf.Configuration: error parsing conf core-site.xml Trying to set up a single-node system and am getting this error when running hadoop jar HadoopWordCount.jar HadoopWordCount input.txt output from the command line. and getting the following error. Input, output, and jar file are all in the same dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/52100010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to display the Navigation item title in IOS 7? I'm using this code.suggest me. UINavigationItem *navigationItem = [[UINavigationItem alloc] init]; [self.navigationController.navigationBar setBarTintColor:[UIColor redColor]]; [self.navigationController.navigationBar setTranslucent:NO]; self.navigation...
{ "language": "en", "url": "https://stackoverflow.com/questions/26780703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF6 Many to Many Relationship: SqlException: Invalid column name 'SubAccount_SubAccountID' I'm getting an error while loading my data from Entity Framework EF6 with: SqlException: Invalid column name 'SubAccount_SubAccountID'. This is my query to EF6: var subAccounts = Context .SubAccount .In...
{ "language": "en", "url": "https://stackoverflow.com/questions/63712004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is having a active MySQL Connection for long periods of time bad? I'm developing an MMORPG, it's pretty far along. However, I'm noticing now that the MySQL Server has a automatic connection terminate time limit. So after x time, a connection is terminated. So what's happening with my server is after about 8 hours of...
{ "language": "en", "url": "https://stackoverflow.com/questions/26426906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Textarea startswith function not working I am trying to apply starts with function on textarea, but obviously I am doing something wrong. I don't understand javascript, so I am sorry for obvious mistakes or problems. At least I tried what seemed logical to me... Fiddle here: http://jsfiddle.net/SVxbW/235/ HTML: $(...
{ "language": "en", "url": "https://stackoverflow.com/questions/40992147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nested object JSON sorting JavaScript I'm not sure I am asking the right question or not. I get a JSON response like this from my server request { "20150917": { "Daily01sec": { "TG01152600000": "\/20150917\/Daily01sec\/TG0115260.bin", "TG01152600600": "\/2015...
{ "language": "en", "url": "https://stackoverflow.com/questions/32956649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails 4 - ActiveModel::ForbiddenAttributesError with has_many and accepts_nested_attributes_for I have a problem with accepts_nested_attributes_for.. Here's my Zone model class Zone < ActiveRecord::Base has_many :zones_users, inverse_of: :zone, dependent: :delete_all has_many :users, through: :zones_users acce...
{ "language": "en", "url": "https://stackoverflow.com/questions/36604909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create Interface All Optional Fields from class I have a constructor that takes as a parameter an object containing properties of the object. class MyObj { a = 0; b = 0; c = 0; d = 0; constructor(params){ for(var i in params) this[i] = params[i]; } } My goal is to have au...
{ "language": "en", "url": "https://stackoverflow.com/questions/37505791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collision detection between ImageViews I need help getting two ImageViews to collide, I looked around on this website and many youtube videos and think I have found one solution to my problem. I found some code from another person post, how to detect when a ImageView is in collision with another ImageView? and I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49289120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find probability of drawing ball from a given container? A container having 2 balls, one is red and second one is black. One ball is drawn each time and placed again in the container.Drawing of ball is done ntimes where 1<=n<=10^6.I want to find out the probability of drawing red ball at least rwhere 0<=r<=n....
{ "language": "en", "url": "https://stackoverflow.com/questions/42197785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }