text
stringlengths
15
59.8k
meta
dict
Q: Why does ruby define variables even if it never executes the variable assignment code? Given the following code: a = true # let's assign `a` a value # and let's test if calling `b`, an unassigned variable, throws an error begin puts "The value of b is: #{b.inspect}" rescue NameError => e puts "Caught an error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56518433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: scroll-snap-align and scroll-snap-type not enough? I'm trying to use this : https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align Example I want to reproduce: https://codepen.io/mykiwi/pen/xxwPKJr?editors=1100 <div class="scroller"> <div>1</div>...
{ "language": "en", "url": "https://stackoverflow.com/questions/61566412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Moved Xcode project has missing files from other libraries I moved the folder of a project in Xcode to another computer, and I"m having some issues. I'm using NMSSH framework, and the libz.dylib file is missing from the project, and I'm unable to locate it, since the Inspector button for it is grayed out. The file i...
{ "language": "en", "url": "https://stackoverflow.com/questions/17257401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass Button Name from XAML to ViewModel using MVVM In my XAML, I have defined a button as such: <DataTemplate x:Key="ItemTemplate"> <WrapPanel Orientation="Vertical" Width="Auto"> <Button Width="200" Height="300" Click="SelectMovie_Click" > <Button.Template> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/27629624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to scale down Texture in libgdx to fit smaller screens? My app provides two buttons in a table row. Each image has a width of 300 pixel (source). The app shows all parts of both buttons if I provide an initial window width which is greater than 600. Even resizing the window to a smaller size works smoothly. Both...
{ "language": "en", "url": "https://stackoverflow.com/questions/70948200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Extend the response time of the 3rd party URL in netsuite? i.e., to avoid SSS_REQUEST_TIME_EXCEEDED for large requests My POST request to a 3rd party URL is taking about 58 seconds(Checked this by testing it using postman). But netsuite is giving SSS_REQUEST_TIME_EXCEEDED error if the response time exceeds 45...
{ "language": "en", "url": "https://stackoverflow.com/questions/55936418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reverse order of XML using PHP I'm using PHP to output data from an XML file. It's defaulting to chronological order, which I'd like to reverse. Is this possible with PHP? If so, how? Here's my page and code: $file = 'http://www.gostanford.com/data/xml/events/m-baskbl/2010/index.xml'; $xml = simplexml_load_f...
{ "language": "en", "url": "https://stackoverflow.com/questions/5969662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I'm trying to replace Xpath with jQuery Android browser not support XpathEvaluator Object. I'm trying to replace with Xpath with JQuery. For example, 01. oRoot.selectSingleNode("step/person"); -> $(oRoot).find("step person"); 02. oRoot.selectSingleNode("step/person[@color='red' and age='20']"); -> $(oRoot).find...
{ "language": "en", "url": "https://stackoverflow.com/questions/7656798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Menu always hidden to three dots instead of shown in action bar I have an activity with navigation drawer. The activity contain a view pager that hold 3 fragment. I've inflate the menu successfully. But, instead of showing the icon in action bar, it's hidden in three dots. I've menu code below : home_menu.xml <menu ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55510479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: find the average value of each event type on the day immediately after the event If you have two tables: "Events" id int event_type varchar event_date Date ("dd/MM/YYYY") | id | event_type | event_date | |---------------------|------------------|-----------------| | 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67687005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 503 Service Temporarily Unavailable in Openshift Flask Application I've been struggling to deploy a Flask application in Openshift. First of all, I tried to deploy an application I am developing. As I didn't succeed, I decided to create a sample Hello World and deploy it. Here is the code of app.py from flask import...
{ "language": "en", "url": "https://stackoverflow.com/questions/38596033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zooming axes in CorePlot I have an app where I use CorePlot to plot a graph. I have implemented the zooming of the graph itself with pinch gestures, but I still can't make the labels near the axis (which contain numbers like 1, 2 etc.) zoom properly, so instead of 1 the major interval changes to 5 or 0.5 (or any oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/5044509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Capistrano and Git, Ruining my life. "Unable to resolve revision for [HEAD] on repository ..." I searched all of the relevant Capistrano issues, but couldn't find something that even elucidated anything here for me. git version 1.6.4.2 Capistrano v2.5.10 Basically, when I run my cap deploy.rb script, it connects ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1951838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Realm DB - exception thrown for no apparent reason I have a refresh command in a Xamarin page, and for some reason, Realm throws a RealmInvalidTransactionException when it finishes. In their documentation they wrote: An exception, thrown when trying to write data to the Realm outside a Transaction or when trying to...
{ "language": "en", "url": "https://stackoverflow.com/questions/61563228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SDL OpenGL smooth camera movement I am trying to implement a camera motion system into the program I am currently working on. I cant figure out how to move the camera in non-discrete units so when I move the camera it "jumps" to the next position. how can I move the camera smoothly without jumps. CameraControlls Fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/44425539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open a EEG EDF file using mne python I need to use mne python for my master degree project, but i'm new in python programming. So i'm trying to open a single EEG edf file, i have tried several codes and none of them worked. The last code i tried: import mne from google.colab import drive drive.mount ('/gdrive') cd /...
{ "language": "en", "url": "https://stackoverflow.com/questions/72208810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested select from different tables I'm trying to do a nested select but with different tables. Here's my query: SELECT contact_profile.name, main_app.fk_lkp_app, main_app.id as main_id, ( -- if the main_app.fk_lkp_app value is 1 then do this SELECT SUM(translation_app.amount) FROM translation_app WH...
{ "language": "en", "url": "https://stackoverflow.com/questions/38740547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remotely install Linux on Windows xp using TeamViewer Our customer has about 800+ computers running Windows XP distributed across the country. Each computer can be accessed using TeamViewer. The goal is to replace XP by a Linux distribution remotely. Does anybody know if this is possible, and where to start? Thanks...
{ "language": "en", "url": "https://stackoverflow.com/questions/44687189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show Bottom tab navigation in specific screens only I have react native app which I am using react navigation and my navigation stack looks like the following: <AppStack.Navigator screenOptions={{ headerStyle: { backgroundColor: COLORS.primary2, elevation: 0, shadowOpacity: 0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66583184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass an element onclick? Actually i'm trying to pass a td element with which i have to do some operations on a td click or better i have a function where i use the following code var tr = document.getElementById($('#tavolo').val()); $(`td:eq(${inizio})`, tr).css('background-color', 'red') .attr("onclick","...
{ "language": "en", "url": "https://stackoverflow.com/questions/55496796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I regroup 'sublists' in a list with Python? How can I regroup 'sublists' in a list with Python? For example, I want to regroup the following list: [[0, 3], [1, 3], [1, 2], [1, 2], [0, 1], [0, 3]]. I want [0, 1] to be grouped with [2, 3]; [0, 2] with [1, 3]; [0, 3] with [1, 2], and left all the rest "coordina...
{ "language": "en", "url": "https://stackoverflow.com/questions/63350869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make flutter searchDelagate a separate screen that can be navigated to independently? i have a page called searchUsersSCreen which is this: import 'dart:async'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package...
{ "language": "en", "url": "https://stackoverflow.com/questions/66132201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Gradle fails to build after clean (depends on AAR with native libraries) I have an Android library project (projA) that depends on another library project (projB). I also have an internal Maven server (Archiva). projA contains these lines: dependencies { maven { url 'http://company.com/internal/reposit...
{ "language": "en", "url": "https://stackoverflow.com/questions/30654583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2008 creating new classes? I upgraded to Visual Studio 2008 and for some reason when I create new class files, it loads a completely blank file as opposed to giving me the basic using code and the list of the class name (being the file name). So if I create a new code file called Order.cs, it is no lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/1491920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Call to super needs try/catch I am working on an assignment where I am told that I need to create a class (Call it ClassB) that must extend a given class (Call it ClassA). The only problem is that the code inside of the constructor of ClassA may throw an exception, so when I create my constructor for ClassB, I am tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/13481943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: want to stop users entering invalid email addresses into form I would like to be able to run a php validate script to stop users form entering gibberish as their email address. I know we can have the form input type as email but that can be easily bypassed in developer tools and the database integrity damaged. My in...
{ "language": "en", "url": "https://stackoverflow.com/questions/55349091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sort the hashset based on date How can i sort the data inside a hashset based on date I have a program in which i will get the data from mongodb in this format 2015-01-17 and later i will convert it to MMM dd yyyy format and now how can i sort the data here ?? This is my program public class MyObject { public...
{ "language": "en", "url": "https://stackoverflow.com/questions/18891876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Make div stick at the bottom even if scroll it I am implementing a footer which should stick at the bottom of the window even if I scroll. And the scroll bar for the content above footer should be within content itself (not extending to footer). Is there a way of doing this? Thanks. A: Set CSS for your footer ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/37795011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Sheets: Convert Horizontal Transaction Data into Chronological Statement + Combining Columns of Data On a sheet named, "Performance," I have data concerning stock trades in a row like so: A B C D E F G H I J 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75027860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javasript in angular 8 There's a solution on js - codepen.io/skovtun/pen/VwLvXPB Can't make an analog for Angular8+. I need the center block to have a fixed width (1200px), and it is evaluated and compressed by the left, right and both sidebars immediately when they are opened. They should not overlap with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/60297175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Axon Distributed Command Bus on Docker Swarm We use Axon and I am trying to make a distributed command bus for one of our services Deployed on Docker Swarm. Anyone already have experiance/tips for setting this up? We are using: * *Axon *Docker Swarm *Spring-Boot And I want to use JGroups icw DNSPING for the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/46033125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recursive Fibonacci using BigInteger in Java I'm trying to solve a project euler 25 problem in java and since I need something to store numbers with 10000 digits, I'm using BigInteger classes. So I'm working in some recursive fibonacci sequence using BigIntegers and I'm trying to convert this code: public int fibon...
{ "language": "en", "url": "https://stackoverflow.com/questions/41284354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a Send Port through BTS Management API I'm trying to create a Send Port using the BizTalk Management API (from BizTalk 2016, feature pack 2). But I have the following issue: a Send Port has a PrimaryTransport (standard on Send Ports) and a SecondaryTransport (in BizTalk UI: Backup Transport). The SecondaryT...
{ "language": "en", "url": "https://stackoverflow.com/questions/51501639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to prevent a hacker accessing user session from outside? We have a website that use CodeIgniter. We use Facebook SDK to connect and store the token in a session variable. We have controller functions that are called by AJAX code and create entry in our data base. But to create the entry a session variable should...
{ "language": "en", "url": "https://stackoverflow.com/questions/38061589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MIDI Sequencer stop without flushing For a project I am working on I need to pause the midi sequencer and I want all the sounding notes to sustain and thus make those notes endless. The problem I am facing is that sequencer.stop() apparently not only stops the playback, but also sends MIDI note off messages to all s...
{ "language": "en", "url": "https://stackoverflow.com/questions/36454662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DNN9 site expiry date How can I edit site expiry date in a new management panel in DotNetNuke 9? There is a field in the database for it and if it's set to a date passed the site becomes unavailable, as expected. But I haven't found a field to change it in the new interface A: I haven't found it in the Persona Bar,...
{ "language": "en", "url": "https://stackoverflow.com/questions/41299160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.Net Treeview ImageSet Trouble http://www.imageupload.co.uk/5JwE Treeview imageset is broken. Anyone knows how to solve this? I don't want to create entire project from zero. Help me please :(
{ "language": "en", "url": "https://stackoverflow.com/questions/27465790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Columns having nulls are not shown when a row is unpivoted I have come to a rather strange sort of an issue. I have a row as follows in SQL Server: Row number ITEMTYPE LIFECYCLEPHASE DESCRIPTION ITEMCATEGORY size PRODUCTLINES REV REVINCORPDATE REVRELEASEDATE EFFECTIVITYDATE SHIPPABLEITEM EXCLUDEFR...
{ "language": "en", "url": "https://stackoverflow.com/questions/38092742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Studio Firebase Notification Device to Device with Topics Sorry if this post was duplicated, but I could not find an answer in here, so I decided to post a new question. Is there anyway I can do to easily send a notification from a device to other device in a specific topics with a single button ? I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/47357095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 5.2.2 (active record) WITH statement I am using Rails 5.2.2 and have a complex query using a 'WITH' statement that I need to create with a left outer join. How do I do a WITH statement in active record? My TOTAL_PROFILES, is driven with a Query object and will change, while the rest will always be constant. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/55561592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Templates in web.py I try to render a template with web.py and some seconds after another, I'm not too much into Python so I could need a little help :). What I try to achive (return can be returned only once for sure, but I guess you'll get it what I mean) class index: def GET(self): return render.form...
{ "language": "en", "url": "https://stackoverflow.com/questions/25476877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Button Not Redirecting I am trying to make a simple webpage with buttons that redirect to other subpages, all the HTML javascript, and CSS files are in the same folder. When I use the javascript code it just won't redirect when I click the button, anyone knows what is wrong? <!DOCTYPE html> <html lang="e...
{ "language": "en", "url": "https://stackoverflow.com/questions/74554879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aggregate initialization of noncopyable base class I am constructing derived class from non-copyable base class. I would like to aggregate-initialize Base in the initializer: // for convenience, could be any other way to disable copy #include<boost/noncopyable.hpp> struct Base: public boost::noncopyable{ int a; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61863580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQUERY, i need to replace something i need to replace ' / ' from list of genres that i add by clicking checkboxes, the first one is added without ' / ' so when i uncheck them and replace it with nothing but the first one can't be replaced cause it don't have ' / ' in front of it. So how can i do the replace operatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/25833760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Does renaming a project in VS require me to change ALL occurrences of it's old name in the .sln file? I searched already on stackoverflow and on the internet but I couldn't find a similar specific question. When i have to rename a already checked-in (tfs) project in my visual studio (2010-2013) solution, I always us...
{ "language": "en", "url": "https://stackoverflow.com/questions/25502480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parameter filter based on another parameter value selected in tableau I have a parameter region having values APAC,US. I have another parameter department having values D1,D2,D3,D4. Now If I select Region value as APAC ,below that I have to show Department parameter value as D1 and D2 for the user. If I select Regi...
{ "language": "en", "url": "https://stackoverflow.com/questions/57985272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Username/handle system using Python - TCP/IP chat client Here is my server code. # chat_server.py import sys, socket, select HOST = '' SOCKET_LIST = [] RECV_BUFFER = 4096 PORT = 9009 def chat_server(): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsoc...
{ "language": "en", "url": "https://stackoverflow.com/questions/33162096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RequireJS, KendoUI and KnockoutJS any chance in them working together? So I want to use requirejs, kendo ui and knockout JS together. I read Using Kendo with RequireJS and the Knockout JS article Asynchronous Module Definition (AMD) With RequireJs and then I found the Knockout-Kendo library via Knockout.js and Kendo...
{ "language": "en", "url": "https://stackoverflow.com/questions/18485019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is it that i am still not able to create a new directory in sdcard after capturing an image for my app? public class EditUploads extends Activity implements OnClickListener { ImageView ivEditUploads, imgSave; EditText etxtPrice, etxtDescription; Spinner sCategories; PhotoDbAdapter ourHelper; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20537691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove undefined select option after $compile? It appears that when you create a select element inside of a directive, it creates a sort of dummy option (I assume since at this point it doesn't know what to set it to and doesn't want to make assumptions). The top option below is the option I mean: <select ng-model="...
{ "language": "en", "url": "https://stackoverflow.com/questions/52881005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select only certain items from a collection using Streams in Java I am trying to select only names from a collection using streams: These are the entries: Person{id=4, name=E, color=red}] [Person{id=0, name=A, color=blue} Person{id=1, name=B, color=green} Person{id=2, name=D, color=pink} Person{id=0, name=C,...
{ "language": "en", "url": "https://stackoverflow.com/questions/62922643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: I can't see the save button but see the test button only in amazon lambda function everyone! I can't see the save button but see the test button only in amazon lambda function. I can't know what's the reason for it. I searched on goolge, but can't find answer. Save button has been shown before yesterday, but today I...
{ "language": "en", "url": "https://stackoverflow.com/questions/63953949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular expression in HTML - Command OR I have this: <input type="text" name="funkce<%=i %>" value="" size="20" data-toogle="tooltip" title="Vlož hodnoty a-z o maximální délce 3 znaky." style="width: 50px; padding: 2px" required maxlength="3" pattern="([a-z]{1,3})|(([a-z]{1}[\s,]+)*[a-z]{1})" /> It is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44413000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get multiple instances of an object registered via Autofac module registration I have a use case where I need to get two copies of objects registered from Autofac module and pass them to register different types. In the below code sample, * *I want to pass an object of DataProtectionService with config dbConfig to...
{ "language": "en", "url": "https://stackoverflow.com/questions/67265970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Datasource is not bound in context My datasource.xml <?xml version="1.0" encoding="UTF-8"?> <datasource> <local-tx-datasource> <jndi-name>SampleDS</jndi-name> <connection-url>jdbc:mysql://www.mycomp.com:3306/mydb </connection-url> <driver-class>com.mys...
{ "language": "en", "url": "https://stackoverflow.com/questions/6956713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Missing artifact com.google.appengine:appengine-tools-sdk:jar:${appengine.sdk.version} I am getting the below error while creating a maven project in eclipse 3.0 Missing artifact com.google.appengine:appengine-tools-sdk:jar:${appengine.sdk.version} Can someone help me out? A: It looks like your template substitut...
{ "language": "en", "url": "https://stackoverflow.com/questions/51325435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TextView dp does not scale with screen size I am attempting to create a textView that will take up a large portion of the top center part of the screen. Ideally, setting the text size in dp would allow the textView to remain the correct relative size (taking up about 70% of the width of the screen, and maybe 20% of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10773577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Async task with Symfony 4 application I need to import a list of members, when I want to import 1 or 2 members it goes very fast but when I want to import hundreds of them it goes slowly, and my page is loading while it is importing into the members table. My question is how to make this importing in the background ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66545361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trying to select checkboxes which have a specific class Here is my code where i am trying to select the images which only the specific class attached to it $("#allimages").change(function () { $('input:checkbox:not("#checkAll")').prop('checked', $(this).prop('checked',$(this).hasClass('isImage'))); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64849896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: django Download Link(filefield) i am trying to create a Software download website, and each software has some file and download link (mac,windows,linux,..). Can anyone tell me how to use 'filefield' for download links(not one). (Sorry, my English is so weak). A: You just need to put download attribute in the ancho...
{ "language": "en", "url": "https://stackoverflow.com/questions/61556548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meteor Account Credential Assignment I have a Meteor app that works with a Facebook app for user login. On the actual hosted version, the login makes use of the actual Facebook app but in localhost in development, the app uses a Facebook test app. The problem is that when I switch over from development to deploying,...
{ "language": "en", "url": "https://stackoverflow.com/questions/33163296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to display images that I uploaded to my backend with multer I'm using multer to upload images from my react client. All the images are being stored they just aren't showing up. The images are being stored, but aren't showing up in react. The are set in state just not displaying. I can see them in the imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/55769505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Batch - Connecting to Database using JNDI without Spring boot I am working on a spring batch which runs only once in a day. Please note that its not a spring boot Project rather its just Spring core along with Spring batch libraries. I have a question, this jar will be placed in a server where IBM Websphere ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61766078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Script to Move Directory by Combined Size In a main directory, eg /media/date/ There are a bunch of sub folders like so: /media/date/resource1/a-lot-of.files /media/date/resource2/a-lot-of.files /media/date/resource3/a-lot-of.files I want to have a script or a command that scans the sizes of each resource level fold...
{ "language": "en", "url": "https://stackoverflow.com/questions/68943372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: plotting between two curved lines I have data where the X(time), Y1 (Median values), Y2(25th percentile) and Y3(75th percentile). Now i want to plot all these in the same plot, and shade the area between the median curve and upper quartile curve and again shade the area between median curve and lower quartile curve....
{ "language": "en", "url": "https://stackoverflow.com/questions/29387454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript console library I have heard about a JavaScript library that simulates the console from development tools, but I can't find anything on the web. My need is when I deploy my HTML5 + JavaScript application (with Icenium) in a device (tablet or smartphone and Android or iOS). Sometimes some bugs only occurs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18701089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to filter data only in the visible page of the table which is having filter in the header in Tabulator I have a table in which i display 5 rows per page.If searched for a value it is fetching results from complete data table.it has to search only from the displayed page in tabulator. A: It is not possible to fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/59730286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Use spectron with Java and selenium for Electron app My browser-based application has recently switched over to an electron app and now the tests obviously don't seem to work, they can't pick up the windows and the elements correctly. I've read that Spectron is used to test electron apps but is it possible to use it...
{ "language": "en", "url": "https://stackoverflow.com/questions/67002722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Batch File FTP attempt for password/authentication multiple times using ERRORLEVEL loop I can't try to reconnect with a different password after authentication failed. ERRORLEVEL seems to not be working in my code. I have no clue what's going wrong. The code is in batch file on Windows 10. @echo off echo use USERNA...
{ "language": "en", "url": "https://stackoverflow.com/questions/42610174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refactoring empty if-statements I currently working on a project that I need to remove a class that is being used by different other classes. There are cases that I can remove the one line of code that consists of that class where it will never affect the functionality of the program, but also there are cases that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/54069452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find position of a character in a file and store its position bash I need to find all the positions of a specific character ## in a file using Bash script and also store all positions for future use. This is how the file looks like: assert property ( ( req1 == 0 ) ##1 ( req1 == 1 ) ##1 !( req2 == 1 ) || (gnt1 == 0 )...
{ "language": "en", "url": "https://stackoverflow.com/questions/41018841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Hi, I am looking for retaining a state of sorting/pagination while navigating on pages I am using react data grids. Functionality I want to achieve is: I selected page# and sorted in desc order. I click on data grid row and go to details page. I click on back button details page, the page# and sorting order I select...
{ "language": "en", "url": "https://stackoverflow.com/questions/61970190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB2013 & MySQL not talking properly and program freezing I have been working on a small project for a while now - it takes a plain text input from an Ardiuno Board (simple text, only a few characters). It's a simple NFC Card tagging program. The program is supposed to take the input from the SerialPort and check the...
{ "language": "en", "url": "https://stackoverflow.com/questions/26485111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stacktrace arm-linux-gcc I want to dump stacktrace of my program as the example demonstrated at backtrace[3], but I got result below, instead. I am using linux 2.6, and arm-linux-gcc 4.3.2. Running: arm-linux-gcc prog.c -o prog -rdynamic the result is: backtrace() returned 1 addresses /lib/ld-linux.so.3 [0x40025000...
{ "language": "en", "url": "https://stackoverflow.com/questions/10864882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change height of country_picker? I am using country_picker for drop-down-menu. And I need to reduce height of this menu. How can I do this? And how to get border to showCountryPicker? This is what I want And this what I get I tried to add bottomSheetHeight, but it hides my bottom buttons. And without bottomSh...
{ "language": "en", "url": "https://stackoverflow.com/questions/74445514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database state is showing as 'Restoring' for a longtime when I do with NORECOVERY option I have a two backup files (MS SQL SERVER) 1) Demo.bak 2)DemoDiff.bak I want to restore the Base database (Demo.bak) then Differential backup (DemoDiff.bak). As I need to restore the differential database then I have to restore m...
{ "language": "en", "url": "https://stackoverflow.com/questions/46161154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: push multiple Line Text as one message in a kafka topic I want to push a text consisting of multiple lines as one message into a kafka topic. After I enter: kafka-console-producer --broker-list localhost:9092 --topic myTopic and copy my text: My Text consists of: two lines instead of one I get two messages in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/52151816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: access/set object's values by indexing it by property name I have an object called caser and it has the following properties: export interface ICaser { consulter: string; associater: string; typologies: string[]; id:number; } const caser: ICaser = { consulter: "john", associater: "Huns", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73031564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My data shows on one page and not the other on Ember I'm using Ember Data to build a web app, and somehow data shows on one template and not the other. My Ember console shows that the model is correctly hooked up to the route, but I don't know why the data won't show. The data I'm trying to show is {{stackTitle}} in...
{ "language": "en", "url": "https://stackoverflow.com/questions/29550603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return a Map of distinct values and their count for a user in Spring Data JPA? I am working on a Spring application and use Spring Data JPA for database manipulation. I have come across a problem with creating a query. I have a table where users store products. I want to retrieve a Map for a given user, where...
{ "language": "en", "url": "https://stackoverflow.com/questions/53864136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get value from Modal View in Swift iOS i'm trying to start writing Swift and i'm trying to get a value from a modal view controller with no luck. I have two controllers, the ViewController and modalViewController. In ViewController i have a UITableView and with a press of a button i open the modalViewController. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/29462380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data not showing on Firebase I've been following this tutorial on how to use Google Firebase. I've been following the code and because I kept seeing: Error: No resource found that matches the given name (at 'paddingBottom' with value '@dimen/ activity_vertical_margin') I added a few lines to app/srs/main/res/va...
{ "language": "en", "url": "https://stackoverflow.com/questions/45811244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handle import of modules inside of a project I have the following project architecture (simplified): root/ main.py mypackage/ __init__.py module1.py module2.py ci_scripts/ script1.py script2.py doc/ doc where the root is nothing more than a folder. How do I import module1 and module2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75396874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access same file in Native Client and JavaScript Is there a way to open a file in JavaScript and share that same file with a NativeClient module? I need direct file access in Native Client and JavaScript. Is this possible? A: Yes. The HTML5 filesystems (both PERSISTENT and TEMPORARY) are shared between JavaScript ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22541297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to click second time on recycle view and firsr time data is show in android i use a flag but this not work any one can help me @Override public void onBindViewHolder(final MyViewHolder holder, final int position) { final MyportfolioRecycleview_Record record = dataList.get(position); for(int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44320088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I intercept the unbuffered output of a Proc::Async in Raku? With a snippet like # Contents of ./run my $p = Proc::Async.new: @*ARGS; react { whenever Promise.in: 5 { $p.kill } whenever $p.stdout { say "OUT: { .chomp }" } whenever $p.ready { say "PID: $_" } whenev...
{ "language": "en", "url": "https://stackoverflow.com/questions/63486337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Changes not detected in pull requests on Jenkins pipeline plugin I have Jenkins configured to build on pull requests (PR). Our repository is a multi project repository and I have created a script to detect the changes that were made to source code and only run tests that are relevant to the projects that had changes...
{ "language": "en", "url": "https://stackoverflow.com/questions/53537379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: HTML custom form element does not send submit event Created a custom HTML element derived from HTMLFormElement and added listener for "submit" event in constructor. The element is registered properly but the submit handler is never called... class MyForm extends HTMLFormElement { constructor() { super(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57112440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: svg to woff font I have an SVG font file that is exactly how I want it. When I run it through a converter though (http://onlinefontconverter.com/), the output WOFF file displays different in Chome vs IE9. In IE9, the vertical alignment of the font is off (if I set font-size:100px;line-height:100px; it looks fine in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15350654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android or Java class naming with $ symbol I'm reviewing a certain project and I see that there are many classes with the same name, but with a dollar ($) symbol at the end + increasing number. For example Class.java Class$1.java Class$2.java Class$n.java OtherClass.java OtherClass$1.java OtherClass$n.java What doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/5203829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Add Object onStartPage itextPdf except the last Page I am adding a rectangle on top of my page for all pages but I do not want the rectangle on the last page. Here is my code: @Override public void onStartPage(PdfWriter writer, Document output) { Font bold = new Font(Font.FontFamily.HELVETICA, 16, Font....
{ "language": "en", "url": "https://stackoverflow.com/questions/52774562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Performance of the LightSwitch HTML Client's Tables_SingleOrDefault and Tables.filter operations We're working with the Visual Studio 2013 version of LightSwitch, and have a number of areas in our HTML Client screens where we've used the following approach to retrieve an entity with a specific id: - myapp.activeData...
{ "language": "en", "url": "https://stackoverflow.com/questions/30916790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add bar to each group to represent group mean? I am interested in adding a bar to each group (species) to represent each group average. For example, in the below example, I have four separate groups, I would like to add another bar to each group to represent each group average. thank you library(ggplot2) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57377888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to store a list of objects in ASP.Net MVC In my current project, I am building an object list from multiple database tables. I am currently storing them in the user session (Global.asax/Session_Start) as showed below. protected void Session_Start() { Session.Add("listeOF", new ListOf()); } T...
{ "language": "en", "url": "https://stackoverflow.com/questions/44441601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Closing AlertDialog.Builder in Android In the following code, I tried to dismiss the AlertDialog box but to no avail. However, if I remove compareKeys() function, the dismiss will work. So how can I make it dismiss after calling the compareKeys() function? public void promptAdministratorPassword() { AlertDialog....
{ "language": "en", "url": "https://stackoverflow.com/questions/41082391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I map an array in ruby? I have an array of integers a = [3, 4, 5, 6] and I need to POW this numbers, so they can be like this a # => [9, 16, 25, 36] I'm trying to do this with this piece of code: a.map!(&:**2) but Isn't working :( Can anyone help me? A: You can use a lambda with & if you so desire: squa...
{ "language": "en", "url": "https://stackoverflow.com/questions/23718037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Named pipe throws exception after few connections I have 2 applications: 1 dispatcher and second receiver. I'm using Name pipe server and client to send to message from dispatcher to receiver public partial class DispatcherForm : Form { public DispatcherForm() { InitializeComponent(); } pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/74982688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling AllocConsole & FreeConsole multiple times and keep In- & Output functionality of Console object in C# .NET OS: Windows 10 Enterprise 1703 64-bit I cannot allocate and free a console more than once without loosing the Console.ReadKey() functionality in a windows form application. This question is similiar to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58450846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows Live Login API SSL issue - Python I'm writing a program to invite several Windows Live Contacts into a web application, all in Django 1.4. I'm experiencing the following problem. I'm able to log the user in Windows Live using his account credentials through the Windows Live REST API by using this piece of co...
{ "language": "en", "url": "https://stackoverflow.com/questions/10883992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I retrieve the ID number of this text view How do I retrieve the text of a specific textView? BEcause when I click an ID number it displays '1' in the textview of the next class in every text view I click. I used JSON array so it's kind of tricky for me. And yes I'm completely a beginner. DisplayListView ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45232327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }