text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Android ViewPager2 FragmentStateAdapter shows Menu from every Fragment i have an activity with bottom navigation view with 3 Fragments associated.
One of them is a Fragment with a ViewPager2 that uses a FragmentStateAdapter.
Inside the createfragment(int position) method of the Adapter I return a couple Instances o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62153744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Riverpod: How to read provider after async gap I am trying to build a simple login screen. For this I have set up a StateProvider to indicate whether to show a loading indicator:
final loginIsLoadingProvider = StateProvider<bool>((ref) => false);
When a button is pressed I call the following function:
void logInUse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73802238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Calculate statistics PDR, Delay ,Broadcast Success rate For Protocol works in Phy Layer ,Link Layer using OMNET 5.0,VEINS 4.4? What are The Programming instructions that can be written in omnet.ini file or .ned file for calculating the statistics Packet Delivery Ratio, Delay ,Broadcast Success rate For Protoc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72877124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Printing a generator in python tensor flow I am trying to follow the tensor flow tutorial as described in this link
I am trying to print the predicted result as described :
print ("Predicted %d, Label: %d" % (classifier.predict(test_data[0]), test_labels[0]))
But I am not able to print the result. I am getting the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41611518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: task shedule, sharing form label variable I am writting some easy program in Java FX. I am begginer in Java.
I would like make,
You fill textbox (time in minutes) and run it.
And than it run timer.schedule that it will every minute refresh label with time. Something like stopwatch.
(You set time whitch you want rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52448890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Different themes for different languages in Visual Studio Code I've tried searching for the answer to this but am coming up blank.
In sublime text, it's possible to have different themes for different file types as specified in the preferences file. For example, you can have a light coloured theme for Markdown/Plai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40263971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Spring Data Rest: Null Pointer If-Modified-Since Header Present and Resource Not Auditable If a Client makes a request for a Resource and specifies the If-Modified-Since header when the mapped Entity does not have any of the Spring Data JPA auditing annotations (@CreatedBy, @LastModifiedBy, @CreatedDate, @LastModifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40025685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: hide the name of app in windows task manager
Possible Duplicate:
Hide a C# program from the task manager?
Hi.
I write WinForms app and i want to hide my app name in this place windows Task Manager>>Applications .how can hide when i run my app??
thanks.
A: The application name that Task Manager shows is the Windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5273983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.Net Listview Groups I am new here and come up with my first question:
I have a listview with some groups, every groups has some items.
I added a ContextMenuStrip to the Listview, and when I rightclick on the selected item, I like to get the Name of the Group which it belongs to.
Can someone help me how to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23969976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where are SKNode positioned in the responder chain? SKNode inherits from NSResponder but I'm having trouble understanding how nodes are included in the responder chain and where they are inserted.
For example, how does a SKNode receive the mouseDown: message?
When a view is clicked, a hit testing process occurs to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29318501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django: query filter I have two models that are related: one is a list of participants. The other is a list of times they have checked in or out of an office.
The table (Checkin) has one record for every checkin/checkout pair. So, there can be many records for any participant.
How can I retrieve only the very last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73031666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to show an Android dialog without graying out the back drop? I want to pop open a DatePickerDialog in a certain screen, but I am required to not grey out the rest of the screen (the view behind the dialog) when the DatePickerDialog window opens. Is there a way to achieve this?
A: You probably would w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25799144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: format JSON object into array like structure I am quite new to Python but trying to do some machine learning with it.
My problem is to format a received JSON object into an array like structure to submit this to my predictor function of the ML model.
JSON object looks like when I do a print of it
{u'CRIM': 0.62739, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33681858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Query to match a subset of data I have a table that looks like:
CLASS VALUE
1 A
1 B
1 C
2 A
2 C
3 B
3 D
4 A
5 C
5 A
I have a user-submitted data-set of values that I want to find any classes whose values are a subset of the user-submitted data-set.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39757285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can python read this type of config file? good morning. I want you help. I'm making a project using python but i want know if python2 can read this type of config file. Example:
[SETTINGS]
{
"Name": "SKY",
"SuggestedBots": 50,
"MaxCPM": 3000,
"LastModified": "2019-11-03T23:24:24.0854425-03:00",
"Additiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60044151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pymodm can't find an object, while pymongo successfully finds it I have a problem getting an object from the mongodb instance. If I search for this object with pymongo interface, everything is fine - object can be found. If try to do the very same thing with pymodm - it fails with error.
Here is what I'm doing:
from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54239030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Elasticbeanstalk: Cannot access static files when Debug = False My static files are served with no issue when Debug = True. I have read the documentation on https://docs.djangoproject.com/en/1.8/howto/static-files/deployment/ but still cannot get it to work when Debug = False. These are my settings (works f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33140147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: running load testing on selenium and api tests in Visual studio Team Services I am trying to run load tests on my existing selenium web tests and my api(unit) tests. The tests run in Visual studio using load test editor but does not collect all the metrics like response time and requests per seconds. Are there any a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40142206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: git remote /home/username/www/lorem.git
How can I use /home/username/www/example.git with remote add command?
if I use this:
git remote add origin user@example.com:/home/user/www/example.git
git push origin master
I got this error:
error: src refspec master does not match any.
error: failed to push some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5218573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No runtime warning when content compression/hugging constraints conflict with specific width/height constraints Example
A UIButton that has:
*
*1000 priority width constraint (say width = 20)
*1000 priority horizontal compression resistance priority
*wide content that is bigger than 20
I don't get any runtime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38720953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can you write a generic function that will compare any numeric type (e.g. int, float, double) against zero? We're trying to write a simple gain/loss function to return a color based on a value relative to zero. If it's positive, we return green. If negative, we return red. If zero, we return gray.
The current funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50066206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SQL Query Return Entries with no Occurences in Other Table I have two tables, orders and customers, and I am trying to return the customerID and name of customers with no orders.
customers
customerID: integer
name: string
orders
orderID: integer
itemID: integer
customerID: integer
date: date
What I currently have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42542460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nearby Messages using an IntentService Initially I setup a BroadcastReceiver to receive intents from the Nearby Messages API.
class BeaconMessageReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
Nearby.getMessagesClient(context).handleIntent(intent, object : Mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53637194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Scanf doesn't work with fork in a loop after the second iteration I don't understand why scanf won't wait for input the second time in the loop. it only works in the first iteration. Also somewhat wait(&Status) won't print the correct Status.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54134093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: undefined reference yaml-cpp I'm on Manjaro Linux using gcc and codelite to compile my code.
It's a project with sfml and yaml-cpp in C++.
My GCC version is 4.9.2 (20150304)
GCC compiler flags are -pg;-g;-O0;-O2;-Wall;-std=c++14
My yaml-cpp version is 0.5.1-1
When I compile I have the followings errors:
/bin/sh -c '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29196832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# MySQL Connection problems I'm trying to connect a C# application (using Visual C# 2008 Express Edition) to a remote MySQL server. I have the drivers for this, but when I followed the tutorials (including adding the pooling and connection reset properties), I get an error that: Object reference not set to an insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/403398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: g:submitButton- onclick doesn't work I have the following g:submitButton:
<g:submitButton name="next" class="signup-button skyblue-btn pull-right pl-pr-36" value="${message(code:"buttons.ok")}" onclick="return showSpinnerSignUp()"/>
I define the showSpinnerSignUp() in the JS file:
$(function() {
function showS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33151056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone/iPod Touch: application executable contains unsupported architeture(s): armv7s i'im seeing a problem releasing on AppStore my App!
The validation process say: "iPhone/iPod Touch: application executable contains unsupported architeture(s): armv7s"
this is my library linked:
CoreLocation (required)
Twitter (o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13148083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Values from checkbox group are correct in querystring, but are not arrays in the $_GET variable I have a form, with a checkbox group which looks like this:
<label><input type="checkbox" name="countries" value="US" class="chkcountries" checked="checked" /> United States</label><br />
<label><input type="checkbox" nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40205062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Import SQL File into existing DB-Table (phpmyadmin) I have an SQL-File defining a table with 2 columns - product-id and product-reference. I need to import that file into an existing table that has the same structure (plus some extra columns), where product-id corresponds to the product-id from the backup file. Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27331719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ gdb breakpooint in second thread causing core dump I have a C++ program I'm trying to debug in a new docker instance that is causing the program to crash when I try to hit a breakpoint in a created thread (but not the launch thread). Another version of the program run on a separate computer (different g++, gdb v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72287460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Azure giving subscription level resource group access to application I created a application in active directory and gave access to it at the resource group level and I am able to access the resources inside the resource group. But I don't see any option in preview portal to give access to the application at the sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33382836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CentOS 6 not displaying I installed CentOS on Oracle VirtualBox and it run perfectly fine on command line but then I installed desktop environment by typing the following command:
yum groupinstall "X windows system" "KDE Desktop", edit the initdefault id from 3 (command line) to 5 (GUI), save the file and reboot the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25088274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select sub element based on classes it has Below is the HTML that I have
<ul id="QBS">
<li>
<a class="qb_mode starting Rodgers" href="#">See Stats</a>
</li>
<li>
<a class="qb_mode Manning" href="#">See Stats</a>
</li>
<li>
<a class="qb_mode Brady" href="#">See Stats</a>
</li>
</ul>
I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17458856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fetch with method GET And Type script I'm true beginner with type script
can you help me with this simple fetch
this is function
export async function askForList(){
return await fetch('http://127.0.0.1:3333/applist').then((res) => res.json())
}
this is expected data
interface RnMcharacter{
id: numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71592960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Akka cluster error Is it mandatory to use sbt for cluster usage in akka. I have tried to add a few jars to the classpath. While the compiling goes well, running the relevant class generates an error.
scala -cp
../akka-2.2.1/lib/akka/akka-cluster_2.10-2.2.1.jar:../akka-2.2.1/lib/akka/netty-3.6.6.Final.jar:../akka-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19131003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: actionscript facebook get url of uploaded image using the latest facebook actionscript library, I upload an image using:
Facebook.api('me/photos', etc...)
it returns an ID, which method would I call to get the url of the uploaded image?
Thanks.
A: Looks like it's a simple REST service call: https://graph.facebook.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7135748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My worker threads are not being picked up I'm implementing worker threads in my Node/Typescript application. Now I've come quite far except for the fact that it seems my worker threads are not being picked up/executed. I've added some loggers inside function which should be executed by the worker thread, but for som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74828363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Issues with validation in rails I have a working validation on my user model. But since we're discovered that users tend to give up during their long registration form, we've split up registration form into steps so that user can give up any time and still use the site.
I'm having issues with the first step of user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20883188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Navigation Drawer does not cover an activity I am writing an organiser app and I am stuck at this problem. Navigation drawer stacks itself with the listview in activity 1 . There is no exception and the app is working, but the listview elements and navigation drawer elements are clicked at the same time.
Here is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72363247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Click “Accept Cookies” popup with Selenium in Python I've been trying to scrape some information of this E-commerce website with selenium. However when I access the website I need to accept cookies to continue. This only happens when the bot accesses the website, not when I do it manually. When I try to find the cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67274590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inverse process of :keys destructuring: construct map from sequence The more I write in Clojure, the more I come across the following sort of pattern:
(defn mapkeys [foo bar baz]
{:foo foo, :bar bar, :baz baz})
In a certain sense, this looks like the inverse process that a destructuring like
(let [{:keys [foo ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66951309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inconsistent date between SSAS Cube and Tabular Model I have a very weird problem. I have built a tabular model which takes data from a SSAS cube. In the data source cube, there is a column called "Process Date" and it is in UK date format (dd/mm/yyyy). When I bring this column into my model, the dates are messed up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55001834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to properly consume a WCF Web Service in a Classic Xamarin Solution? I'm following the documentation on Consuming a WCF Web Service and need clarification on how best to do this in a Classic Xamarin (not Xamarin Forms) solution that uses a .NET Standard library.
Specifically, I need to understand whether separat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52732458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Thread scheduling in .NET regarding blocking calls Suppose I spawn 3 threads in a C# application: T1, T2 and T3 and issue Run calls for each.
Usually, the processor will schedule the threads in a round-robin fashion (single processor and all threads have same priority).
However, suppose Thread T1 issues a Blocking w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8226681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: android : LayoutInflater in static method i want to call LayoutInflater from static method as below :
private static void inflateLayout_keluarga_pp(int counter2, String name) {
LayoutInflater inflater = (LayoutInflater)getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
rowView = inflate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21273387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Create a Mobile Responsive Version of a PowerBI report that is Published to the Web I've recently published a specific PowerBI report and despite creating a 'Phone' View on PowerBI Desktop this didn't show up in the final embed code.
I've looked into PowerBI Embedded Playground and managed to generate the relevant a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62113403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace NULL with SUBTOTAL and TOTAL in a ROLLUP I have tried to use IFNULL to replace the NULL fields returned by ROLLUP for subtotals and totals but it doesn't appear to be working.
Query:
select IFNULL(usergroups.name, 'GROUP') AS DEALER,
IFNULL(users.name, 'TOTAL') AS SERVICE_ADVISOR,
COUNT(DISTINCT vcrs.uid) AS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25443822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Laravel: One relation, multiple models I have a model "User", and each user has "Posts". Now there are different types of posts, like "TextPost", "VideoPost", etc.
I want to get all posts of a user like this:
$user->posts()->get()
This should return an array of objects with the correct class, so e.g. an array like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47081863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenXML excel sheet creation. Formula does not work automatically when I use Indirect to reference a list I am creating an excel template using OpenXML through c# for users to populate and import into our system.
Part of the process is for the user to select options from dropdowns and hidden columns are populated wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56474036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for distance history using google API (or other) I've been searching and i thought i could ask you directly in here.
I'm looking for an API (maybe Google) that does the same work as Google fit history API as of recording every distance you made and the transportation mode. It is not necessary for me to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55840663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: F# Type providers and Sky Biometry Has anyone used the F# type providers with Sky Biometry?
A majority of the calls work great with the type providers. However, when I call the faces/recognize method, I am getting fails using both the Json and the Xml type provider.
Using the Json one, I declare the type like this:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24309686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do WHERE IN with sqlalchemy? Here is what I'm trying to do. The database is Postgres.
numbers is a Python set() or some other iterable.
session.execute(table.update().\
where(func.substring(table.c.number,1 ,5) in numbers).\
values(provider="testprovider")
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64793016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPA 2: mapping a map where the key is an entity, value is Boolean We are trying to map a relation where an entity has a map where the key is another entity and the value is a Boolean:
@Id Long id;
@ElementCollection
@CollectionTable(name = "APPROVALS_PRODUCT_APPROVALS", joinColumns = @JoinColumn(name = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9770836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm getting java.lang.IllegalStateException: sequencer not open. What's the solution? This is the code I'm trying to run but I keep getting IllegalStateException. I'm relatively new to java and I need some help figuring this out. Thanks:)
This is the code:
import javax.sound.midi.*;
public class MiniMusicApp {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72137060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Diff: ignoring lines with just tabs I'm trying to diff files, and determine if they are the same, but ignoring ALL whitespace.
When using diff, the -b tells diff to ignore whitespace on a given line. The -B option tells it to ignore all blank lines. But, if you have a line which contains only spaces, the -B and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12538748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Maps Marker Clusterer: markers never cluster I don't know why the marker clusterer don't show my markers grouped, like here: http://media.svennerberg.com/2009/01/screenshot_clusterereffect.jpg
I am facing a problem in Google map marker clustering. I am using api v3, but due to some reasons, which I am not abl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55074734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to call methods from other class?
I am trying to write a Java program to book hotel rooms. I have written methods in one class and am trying to call it from my main class, but I don't know how to do it.
The program asks the user to input necessary info for the methods, but I just don't know how to execute it. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30524230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I create a proxy object that forwards method calls in c#? I'm trying to use selenium to run tests; seems like there isn't a good way to run the same set of unit tests on multiple browsers.
I read this post about running tests in parallel:
http://slmoloch.blogspot.com/2009/12/design-of-selenium-tests-for-aspne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6327290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails weird result with find and where Can someone point me the reason for following:
JobType.find 17
#=>
#<JobType id: 17, title: "some_title", description: "one description", reward: # <BigDecimal:1009bbb48,'0.1E1',9(18)>, min_payout: 0.019999999552965164, min_skill_score: 0.6000000238418579, max_payout: 1.0, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17669163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: my cloud front URL redirect to S3 URL my cloud front distribution's origin is my S3 bucket . to access a S3 bucket object we put a url in such as like "cloudfront_domainname/object_name" it should be show the object if the object is public . but in my case the cloud front URL in the URL bar redirects a S3 URL, the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47570309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# dependecies aren't being included with publish I'm trying to publish a web API built in .NET Core to a Ubuntu server but am having difficulty with the dependencies. I am new to doing this in C# and haven't found a concise answer to how dependencies are included with the publish command. I was lead to believe that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49848924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Keep receving segmentation fault when using scanf on an array inside a struct I m kind of new at C and i try to learn data structures by doing exercises. This is the code I've written. I don t understand why it dosen't even enter the for loop.
/* Define a structure to store the name, an array
marks[] which stores t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67430520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: q.all for angular2 observables is there something like q.all to resolve all http api requests in angular2?
In angular1, I can do something like this:
var promises = [api.getA(),api.getB()];
$q.all(promises).then(function(response){
// response[0] --> A
// response[1] --> B
})
In angular2, the http module ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37172093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to handle jOOQ depreciation warning on procedure that returns a trigger? I use the following stored procedure to maintain the edit time on a few tables via triggers on those tables:
CREATE OR REPLACE FUNCTION maintain_edit_time()
RETURNS TRIGGER AS $t_edit_time$
BEGIN
NEW.edit_tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58085398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HorizontalAlignment not working for Image inside Button (UWP) I have a button with an Image inside it
<Button BorderThickness="0" Background="Black" Grid.Column="0" Width="400" >
<Image HorizontalAlignment="Right" Height="20" Source="ms-appx:///Assets/LockScreenLogo.scale-200.png" Width="20" />
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61804894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to build a java file through ANT This is my java file.
package test;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class MyTest{
@Test
public void startWebDriver(){
WebDriver driver;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33956907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: while loop to read from file skips first line i have to read data from a file into a struct array line by line, but it skips the first line. i found somewhere else that because of the fgets and the sscanf combo the 2nd line is the first read, but i dont understand why or how i can fix this. any suggestions or pointi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26171987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting csv to xls using Data::Table::Excel? How do you use Data::Table::Excel for converting .csv to .xls file format.
I want to do the conversion with the tables2xls subroutine:
my $t = Data::Table::fromFile("testresults-2013-07-01.csv");
my @arr = $t->csv;
Data::Table::Excel::tables2xls("results.xls", $t ,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17423885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: im using ajax but its not executing asynchronously function send(seat_id, seat, seat_name, seat_price, seat_class){
if(ing_order_yn == "y"){
alert("결제창 이동 중 입니다. 좌석 변경이 불가능합니다.");
return false;
}
var data1_val = "";
var data1_val_f = "";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53551263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serve static files with Node/Express I created a node express app and defined a path for static resources in my express app, app.ts:
app.use(express.static(path.join(__dirname, 'public')));
My static files are well served when I am on a main level, for example localhost:3000/products but I get a 404 return code on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74623791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker run: uwsgi gives permission denied This is so weid… I have a docker image that runs a web app. WHen I run it, nothing shows in containers… no error. Nothing under docker ps -a.
I ran docker events& and tried again, and it reported an error 1… which is apparently an app error, Okay.
So, I re-ran as:
docker ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68808746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add/remove JFXPanel on Swing JFrame I want to add and remove JFXPanel on JFrame container but not able to do that. I am stuck here and get no proper solution on button click I want to add and remove the JFXPanel control.
What is the wrong in this code?
public class abc extends JFrame
{
JFXPanel fxpanel;
Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13738294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove excess whitespace from a string by jQuery and only count the actual number of characters? today I want to design a block text more than 70 characters will hide the extra text and appear show more
But I can't predict if the user will add extra blank lines, which will cause them to be counted as a charac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67834643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Boost::regex_match isn't firing I have some boost Regex code which I think should fire. I'm new to boost but I know a little bit of Regex. Here's the code that I'm using.
re = boost::basic_regex<TCHAR>(_T("-+\\s+Original\\s+Message\\s+-+"), boost::regex_constants::icase);
boost::match_results<TSTRING::const_iterator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11767483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix inconvertible types in Android Studio I am trying to start an application based on google maps in Android Studio. I followed the instructions and started an Google Maps activity.
Then I created according to the instructions an API key and enabled the maps SDK android for android and copied the key into th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57350146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: drupal 6 - can i use one exposed views filter to search/filter several similar cck fields? i have a decent understanding of configuring drupal and using modules for basic stuff, but just getting into module development and overriding functions and stuff due to my very basic understanding of php and mysql.
i have a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1242882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: javascript invalid quantifier breaks my jQuery in asp.net I want to select, Highlight & convert the matching string into a link. So far it works find in jsFiddle.
But same script breaks when i try to use it in asp.net web forms i get following error
SyntaxError: invalid quantifier
[Break On This Error]
var patte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15861925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate constraint violation exception hangs sql server I am trying to save a set of records into db like shown below. I have set unique constraint on 2 columns of the table. I have handled the constraint exception. If I insert new set of records I have no issues. If I try to insert duplicate records, exception is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42924240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: stroke-dasharray can't bind with angular 6 I used this Chart with angular 6 , I faced the some conflict on this chart, i try to bind data , but i cant do that, its not working correctly,
This stroke-dasharray="5, 100" to I replaced this one
stroke-dasharray="{{this.master.locationVsStatusMap.size}}, 100"
stackbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53911327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: String trend-analysis (suggestions for data structure) I want to keep track of strings from text files over time (reading them in). What would be the best method to programmatically keep track? This is the desired end result after 3 entries.
String|frequency|date-Col1|date-Col2|..date-Col N|
====================... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34572672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why I cant access pages of my Classic ASP site? I am setting up a classic ASP site on my computer. I have installed all the necessary DLL's, configured the IIS and enabled ASP on my IIS. All the files of the website are in a folder named ClassicASP.This Folder is in wwwroot Folder of IIS.
Now my problem is that I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38082145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't object-fit affect width or height? I have a 240*240px image inside a 100*300px div (demo values, actual values vary and are unknown). I use object-fit: contain to make the image completely visible inside the div and also keep it's aspect ratio. The problem is that object-fit isn't modifying the width of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36636754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Cannot show notification at lock screen Android Studio I'm using NotificationCompat.Builder to show notification music player mini.
I have been show success notfication but without at lock screen. I tried NotificationCompat.Builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC), NotificationCompat.Builder.setPr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71089241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Applescript for changing filenames I would like to change thousand of filenames with an applescript.
The filenames are all made in this way:
firstPart - secondPart XX.xxx
with the XX a certain number and the .xxx either a jpg or a png extension.
I would like to simply change the parts around so that it would become:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28099452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between setup.py files If I were to develop and distribute a python package, I know I can probably make a setup.py file like this:
from setuptools import setup, find_packages
setup(name='mypackage',
version='0.1',
packages=find_packages()
)
However, when I look at the setup.py in some insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70105069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse plugin - creating a new class I'm trying to write an eclipse plugin to auotmatically generate a java class from a text file. How can I do this in JDT?
The name of the class will be derived from the name of the text file, and I will want to generate some methods based on the contents of the text file.
I can p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7202749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding elements to model space the correct way using .NET API Method One
_AcDb.Line oLine = new _AcDb.Line(ptStart, ptEnd);
AddToModelSpace("PLOT", oLine);
Where AddToModelSpace is:
public static void AddToModelSpace(string strLayer, _AcDb.Entity oEntity)
{
_AcAp.Document acDoc = _AcAp.Application.DocumentManag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56136939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make X-Axis Lables, value labels and other axis and labels bold in Ggplot2 I work inside a research environment and I can't copy paste the code I used there, but I have previously generated this plot, and have been helped by various people in labelling it with the count number. The problem arises when I screenshot t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74564625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL expression in oracle data integrator
I have the following interface in Oracle Data Integrator
http://i44.tinypic.com/2mrsmxt.png
It execute successfully before inserting the following SQL expression
In the mapping I insert the following SQL expression to get the average when the quantity is 0
AVG(
CASE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20298732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compare numbers in NSMutableArray with indexPath.row I have an NSMutableArray that gets edited quite often as a TableView is edited. What I want to do is run a check and see if rows in the TableView match up with any numbers in the NSMutableArray, and if they do, perform an action. So, in the TableView code I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13942004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why getting the `This page isn't working... ERR_TOO_MANY_REDIRECTS`? Generated same script file with multiple times in index.html file, I recently upgraded project to angular 8.0.2 version
After upgrading the angular version, am getting this replication problem in index.html file.
This is JavaDemoProject java proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56929757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error message when trying to read an excel file Hi pretty new to angular2 so apologizes if this is something simple - i'm trying to read an excel file using a lib called ts-xlsx and inject the data into the main app root component - The error i'm getting is
zone.js:355Unhandled Promise rejection: Error in ./AppComp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40240861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert SQL (Left Outer Join's) to LINQ I am having trouble converting a Oracle Sql Query with multiple LEFT OUTER JOIN to LINQ. My attempts don't return the expected results. Could somebody help to convert the SQL Query below to LINQ.
string currentCulture = Culture.GetCulture();
string query = @"SELECT *
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38914184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do exit a while loop with a JOptionPane I am having trouble with my code, I am trying to exit this loop if the user clicks on the CANCEL.OPTION or the CLOSED.OPTION. I handled the exception but can't seem to be able to use the buttons on the window. The program gets the users birthyear from their input of their ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47026099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to send form data as csv file or as pdf in email in android studio i have a form from where i have taken user input and it includes checkbox and edittext field; i need to send this through email i tried using itext for pdf and even csv files but none works below is my csv file it sends email but does not send da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61121769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Missing Character For KeyEvent When using the KeyTyped method for the KeyListener, sometimes I get "missing characters". I'll show the code I use to get them, then ask my question.
public class KeyInput implements KeyListener
{
public void keyTyped(KeyEvent e)
{
System.out.println(e.getKeyChar());... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64083572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ktor modify request on retry not working as expected I have a custom retry policy on receiving 5XX errors from the server. The idea is to retry until I get a non-5XX error with an exponential delay between each retry request also I would like to update the request body on every retry.
Here is my code
import io.ktor.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75219405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Affect Second Spinner Choices based on First Spinner So I can see that there are questions about this, but not in the scope of mine. I am buliding an app for Android that has two spinners. The first has an array of choices. However, I am not sure how to affect what choices the second one has based on the first one. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18648489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I do closures in Emacs Lisp? I'm trying to create a function on the fly that would return one constant value.
In JavaScript and other modern imperative languages I would use closures:
function id(a) {
return function() {return a;};
}
but Emacs lisp doesn't support those.
I can create mix of identity func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/593383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.