text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Make keyboard NOT dismiss when opening a ModalViewController
Possible Duplicate:
How can I keep the keyboard present even when presenting a modal view controller?
I have an opened keyboard on one viewcontroller and I want to show another one. But when I show it, keyboard goes down. But I don't want it to go down.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12315978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where to get a pre-built Chromium to easily do modifications? Chromium takes too long to get compiled, like 7 hours on a regular powerful desktop. I'm thinking of some where to get a pre-built Chromium, with which I will be able to compile again only some files to re-link to make a new Chromium binary.
Possible to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61995913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pandas: How to pivot rows into columns I am looking for a way to pivot around 600 columns into rows. Here's a sample with only 4 of those columns (good, bad, ok, Horrible):
df:
RecordID good bad ok Horrible
A 0 0 1 0
B 1 0 0 1
desired output:
RecordID Colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66992652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run kubectl exec on scripts that never end I have a mssql pod that I need to use the sql_exporter to export its metrics.
I was able to set up this whole thing manually fine:
*
*download the binary
*install the package
*run ./sql_exporter on the pod to start listening on port for metrics
I tried to automa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73086332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to put a link on the bottom right hand side of a page I am currently using the following code to do it.
<span style="position: absolute; bottom: 0pt; right: 0pt;">
Load time: 1.1920928955078E-5 seconds</span>
The problem I am having is that if the page is scrollable then it is midway through the page. I am su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6381412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is this a valid regular language expression for a binary string? Can it be condensed into something more concise? The regular expression is:
(10) U ((10(0 U 1))*10)
The language I am trying to write is this:(q2 is the accept state and {0,1} is the langauge)
(q0,0)=q3
(q0,1)=q1
(q1,0)=q2 — accept state
(q1,1)=q3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62976958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL check if next row doesn't exist I have an MsSQL server and what I am doing is selecting rows from the table. Currently I have two rows so I was wondering how would I check if there are no other rows after second one without making another query?
For example
table users
id name pass
1 joe 123
2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10216645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get MouseOver trigger event alter child items I have a MouseOver event for a border. Within that border (further down) I have a couple of Borders with RotateTransforms... How can I, within the top level Border hover event alter their transform? (i.e. change their rotation?)
<Border.Style>
<Style>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16422439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pass data (retrieved from server) from parent route to its child route My Angular application have parent and child route. I am using (ui-router)
I what to build that parent route data (which are retrieved from server using $resource) are passed to its child route.
Here will be my application code. When I debugged ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18933097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xpath selector does not work I'm quite new in XPath and I can't figure out what's wrong with this selector:
'//div[@id="records"].//div[@class="record"]'
The structure html:
The thing is that I want to get all <div class="record"> elements.
What's wrong please?
EDIT: Elaborated snippet:
A: your xpath
wrong syntax... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33733326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the Dojo Equivalent to Button Click In JavaScript - If I want to fire a button I do this -
<button type = 'button' id='myButton'>HiddenButton</button>
<script>
function callAutoClick(){
document.getElementById('myButton').click();
}
</script>
When I want to fire this button click, say, onC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26880977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Expand one card on click Currently using Material-UI-React for the first time to build out cards that expand, the issue I'm running into is when I click on one card to expand, they all expand.How can I refactor my code to only allow the card that is clicked on to expand not affecting the others?
const useStyles = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57699182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Contact Form 7 allow in HTML tag area How can I enable contact form 7 shortcode in HTML area( Where only allow html tag ) .
[contact-form-7 id="2358" title="Contact Form 1"]
Actually, I would like to allow 3rd slide of my web site.
http://vistabrand.com/
A: You can output it in php like this
<?php echo do_shortcode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23215157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I control visibility of generated protobuf-classes in Java? I found an answer for .NET, but can't find a way for Java. I'd like to set the visibility of the generated protobuf-classes automatically to private.
Currently, when I compile my .proto-Files, everything is set to public.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75373473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Only a part of data ca be inserted into csv I want to insert all data which I scrape from web into csv, but only a part of info can be inserted!
why this happen
should I use MySQL database instead of csv
And I want to connect this csv file to web browser by using flask.
plus when I insert many import text like "imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55665130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement Google's DoubleClick Ads in an android application? How do we implement google's double click for displaying ads in our android application?
Can someone provide me steps that needs to be followed to implement the same.
Thanks in advance
A: Check this link - http://code.google.com/mobile/afma_ads/d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5468775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Chrome Packaged App: Open Website in New Tab I'm updating one of my chrome apps to just launch the web app (why? I don't have the time to continue updating the chrome app, alone with the desktop apps for offline use)
Here's what the manifests starts with...
"app": {
"background": {
"scripts": [ "background.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36526684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Other Users Cannot Connect to SQL Data Connection I have been banging my head for hours now trying to figure out this issue. Currently, I have an Excel 2013 file that I created with a few pivot charts. The pivot charts are connected to SQL Server 2012. I personally can refresh the data without any issues on my en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44423068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: objective c setter method memory management I have question about allocating and releasing objects:
if I have code like this:
MyObject *object = [[MyObject alloc] init];
NSMutableString *string = [[NSMutableString alloc]initWithString:@"bla"];
object.myString = string;
NSLog(@"retain count: %d",[object.myString reta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3538610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# anonymous method/block? I cannot understand this piece of code what is the "ViewDissapearing"? And what about "add" and "remove" blocks?
public event EventHandler ViewDisappearing;
public event EventHandler ViewDissapearing {
add {
ViewDisappearing += value;
}
remove {
ViewDisappearin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10982292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I convert quaternion values to specific angles I'm getting quaternion values, and I want to convert these values to 2 angles.
One of the angles is between the "ground plane" (please correct me if this is an incorrect name for it) and the fictional vector between the origin and the quaternion point ( the comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54204844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Navigation based application without a uitableview error I do this:
First create navigation based application.
Then delete UITableView from rootViewController.xib, add a UIView connect it to File's Owner.
Change UITableView to UIViewController in RootViewcontroller.h
Finally clean all methods of UITableView in Roo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7725011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Datepicker Javafx I am facing difficulty in date picker implementation (JAVAFX). I need these characters in my date picker I want to restrict only numeric input and a specific length of input in the date picker.It should have fixed / / in it which cannot be removed by user.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/71780468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: best way(9 patch or gradient shape in xml) to draw two gradients(see screenshot)
I need to add background to a textview, the background has two parts: top half is a gradent from color A to B, bottom part is a gradient from color C to D and B does not equal to C, it is actually a semi-transparent shadow, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6400987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: yii active record join models Using Yii framework.
I have 3 models.
Articles - table articles(id, name)
ArticlesToAuthors - table articles_to_authors (id, article_id, author_id, type)
Authors - table authors (id, name)
I need to get authors.*, article_to_authors.type for specific article_id.
I was trying to make re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11878810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pyqt add 9 elements in layout and then lot of layout in group box I want to make elements in row in one layout and a lot of layouts will be in GroupBox, it must be like this.
Result Interface
I try to release this
formLayout = QFormLayout()
for i in range(50):
formLayout.addRow(QLabel(i), QPushButton("Start"))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70205317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Header android 9patch I would like to create a full screen header for Android.
I created the image that is 70 * 480 px (& 9patch).
how can I do?
I tried using the galaxy tab .. but it does not fill the screen horizontally.
This is the code:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10634541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add picture to JLabel? How to add a picture to JLabelin Java?
A: You can use ImageIcon
JLabel l = new JLabel(new ImageIcon("path-to-file"));
A: Try this code:
ImageIcon imageIcon = new ImageIcon("yourFilepth");
JLabel label = new JLabel(imageIcon);
For more Info
A: jLabel1 = new javax.swing.JLabel();
jL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35480659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PowerShell: Difference between (ConvertTo-* | Set-Content) and (Export-*)? I'm new to PowerShell, and trying to learn things the write way, I noticed in this case that I can export data in many different manners, what I want to ask about is this case,
Get-Process | ConvertTo-Csv | Set-Content -Path .\Process.txt
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24975679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test mp3 upload in Django DRF, via PUT? I try to test mp3 modification (hence PUT). I have the following so far:
client = Client()
with open('my_modified_audio.mp3', 'rb') as fp:
response = client.put(
f"/resource/{resource_id}/",
data={'audio': fp})
However, I get response.status... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67035864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change element tag name Mootools I am at the end , sooo many posts and Fiddle examples on how to change tag name of all elements on page with Jquery but NONE with mootools. Is there any way to do it? I need to convert all tr to div, not able to change the actual page html, must do it with Moo. Please help.
i have 15... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7736970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing data from bootstrap model I am trying to pass the data from bootstrap model and display it on a table. However, the problem here is I am unable to pass the data and the column only display null values. I am a newbie, so I need some help on how to pass the data Day and Session?
<table class="table order-list"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38767998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass null arguments to native module in React-Native android I have a react-native NativeModule with a single method
@ReactMethod
public void sendEvent(String message, Integer code) {
...
}
I want to be able to pass null for the code argument in js, but when I do e.g.
TestModule.sendEvent('this is a test', null);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45731730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Heroku nodejs Procfile never picked up It seems that my nodejs application is never deploying on Heroku. While my build successfully completes with the following message:
[154] ./server.ts 2.1 kB {0} [built]
[238] ./src 160 bytes {0} [built]
[244] (webpack)/buildin/module.js 517 bytes {0} [built]
[259] ./dist/server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49572544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: solr: Adding content-disposition to SolrQueryResponse I have a custom request handler that is extending RequestHandlerBase.
The purpose of this handler is to search the index for the given user query. Instead of omitting the results on the browser at client side, the response data should be downloaded as a file. He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9210177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to understand packets captured with tcpdump So I have intercepted a packet being sent from my android device to an apps server. I want to understand what my phone is sending to the server.
I have rooted the phone, and install tcpdump on it. I have used adb shell to run:
tcpdump -n -i wlan0 -w OUTPUT_FILE src ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41499543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keras TensorFlow Hub: Getting started with simple ELMO network I'm trying to get a simple ELMO model working from TensorFlow hub but, it's turning out to be a challenge.
When I run the my code, I'm getting the error: "Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'input_6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69684502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where is defined the TgtOutFormat type in PDFtoolkit VCL library? I have a problem to set watermark image format in the TgtImageWatermarkTemplate component (which is part of the Gnostice PDFtoolkit VCL library). I have the following code:
var
Watermark: TgtImageWatermarkTemplate;
begin
...
// create and set wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28655260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add custom header to AFNetworking on a JSONRequestOperation Hi, I have the following code accessing a URL:
NSString * stringURL = [NSString stringWithFormat:@"%@/%@/someAPI", kSERVICE_URL, kSERVICE_VERSION];
NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:stringURL]];
AFJSONRequest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15141115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Making a android button’s background translucent, Is there a way to make an android button’s background translucent within xml code,
So the button has no background drawable?
A: android:background="@android:color/transparent"
You can also set your own colors:
android:background="#80000000"
The first two hex char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21294782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AppDelegate.swift line 0 type metadata accessor for _ContiguousArrayStorage crash There is a strange crash happening in my code when I try upgrade the app version.
Here is the crash report for the crash :-
Crashed: com.apple.root.user-initiated-qos
0 libswiftCore.dylib 0x102f6f95c specialized _asse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53633104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems after Importing an android project from github into Eclipse I'm trying to tinker with this project and am having some issues importing it.
https://github.com/HoloAddict/FeedEx
I'm a beginner still, and have made a couple of test projects from scratch, but I think I'd learn a little faster by going through ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20613458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RES_NOT_FOUND after login using JAAS I am using JAAS to authenticate users accessing the protected area of my web application. The login page looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25244465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using font-awesome in fnCreatedCell Recently learned a new way to use data-attributes within a datatable.
Previously, I would code the columns in this manner (please note the font-awesome tags):
"columns": [{
"data": "",
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol)
{
$(nTd).html("<a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54812815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Decrypting a string to Byte array I was doing encrypting a array of string containing only 0s and 1s like this :
public String[] binaryToText1(String[] binary1, int lengthofshares) {
String[] encrptedfinally = new String[lengthofshares];
for(int tt = 0; tt < lengthofshares; tt++) {
String ss2 = "";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23017996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: click returns only the first item value in jQuery I have many products with the same class name and I want a user click on the item to return only the clicked item values but my code is returning the value of the first product only.one more thing i want when user click on images the record stores in the cart but her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22657952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: comparing extended objects private List<Fruit> myFruit = new Vector<Fruit>();
ok so if I have a list of different types of fruit objects how could I go through the list and compare the different objects.
public class Fruit{
String type;
String color;
}
public class Grape extends Fruit{
int seedCount;
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14990790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redux dispatch inside Meteor.call or get Meteor.call value My project works with Meteor and react-redux
For redux to work, one must be able to access the dispatch function in the this.props of the component.
However when I use Meteor.call the callback's this property does not contain the redux function dispatch as i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48370233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tabulator getElement is not a function I currently have a tabulator table of 100 elements in the array. When I call the function to grab the specific cell, it manages to grab the first 25 rows and change the color of the specific cell that I want.
The problem is that the ones after isn't changing color when everythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65222088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No equivalent of Yes yes command in linux prints y infinitely on the console. This is helpful to respond to few interactive commands with y. For e.g. yes | cp A/*.txt B automatically overwrites all files in destination directory.
Is there an equivalent command in linux that prints n infinitely?
A: yes accepts an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45912081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cmd type without printing filenames I have a makefile that concatenates two files to create a small kernel.
I am using the following command:
type boot_sect.bin kernel.bin > os-image
Unfortunately, type still shows something on the cmd:
boot_sect.bin
kernel.bin
Is there a way to not show the filenames with type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18170531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: :dependent => :destroy isn't calling the destroy method before the deletion? I have a note model, with the following association
note.rb
has_many :note_categories, :dependent => :destroy
has_many :categories, :through => :note_categories
The NoteCategory model was created to function as a join table between notes a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3547616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Navbar contents, icons, and card body? (HTML, bootstrap) So I have 3 issues:
*
*The contents of my navbar after the navbar-brand area will not show up for some reason. I am trying to add a home button, about section with a drop-down menu containing: 'Our mission', 'our team', 'faq;' a contact button, etc. (see pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61859875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: connect to Apple Watch through node.js I am looking to try to connect a workout from my Apple Watch to my node.js application. I am not using react or anything, I just specifically want to connect to the Apple Watch through node.js and grab the data.
Is it possible through an Api, without using swift?
A: You can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70137720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't add compiler options for nvcc in nsight eclipse How do I add options to my nvcc using nsight eclipse. I tried to modify the command option Under Project->Properties->Build->Settings->Tool Settings-> NVCC Compiler. I changed it from "nvcc" to "nvcc --someoption". However when it compiles I see this output "/usr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32021303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: runtime error : return value gets lost I'm working on this project : https://github.com/zsteve/zebra-zmachine-interpreter
which is supposed to be an interpreter for z-machine story files, but I'm still working on it.
Anyway, the error I'm having is within ztext.cpp and ZDictionary's unit test main.cpp.
zChartoDictio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19310728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java array casting? How can it be that i get a class cast exception when i try to do:
PrioritetArraySorteret<String> p = new PrioritetArraySorteret<String>();
the error is in the constructor?
public class PrioritetArraySorteret<E> implements PrioritetADT<E> {
private int capacity = 5;
private Entry S[];
private int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7986374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make it so my code displays a cerrtain amount of lines (like it does) but backwards So when I enter 4, instead of say 4 bottles of beer etc, It will start with 100 and go to 96 and then stop (ending with the final line)
import java.util.Scanner;
public class ThreeDotNine {
public static void main(String ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40391733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deserialize derived class with other derived class as property I have 2 projects. One is a WPF application and second is my "toolkit" with predefined WPF control, XML deserialization and some base configuration classes.
In my toolkit I have a ConfigurationBase class:
public class ConfigurationBase : XmlDeseri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58025541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Capture time difference between values of two regular expression reference names in Jmeter I defined regular expressions in my JMeter test plan and I'm able to capture the values in simple variables in user.variables. But I'm trying to calculate the time difference between two variables as follows in Beanshell post ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38300505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic response in retrofit I have 2 calls using retrofit, because the API is poorly design I get difference structure of JSON so I have two different model objects.
what I want to achieve is smaller fetch method and to avoid the duplicate code. I'm trying to use generic class for the pojo but without success.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40914926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Positioning 2 elements (countdown timer and button) in row, side by side - they are not centered I have a problem with one of sections in my HTML code.
My idea is simply: one section made by 1 row, who is divided on 2 columns.
In left column i tried to put countodwn timer, and "submit" button in right column. They ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54318825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regex to filter php array by conditional existence of value I have have a php array
$arr[0] = "something/somethingelse/anotherval";
$arr[1] = "something/!somevar/anotherval";
$arr[3] = "something/!notcorrect/anotherval";
$arr[4] = "something/somethingelse/_MyVal";
$arr[5] = "something/_MyVal/anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25517717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ssis 2008, delete contents from excel im using SSIS for SQL Server 2008.
My SSIS package grabs data from sql and exports it to an excel file. But everytime it does this I want new data on the excel.
The problem right now is, If i execute the package more than one time I will have the old data plus the new one on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13916232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: google script detect empty cell after edit -- Take 2 This is related to onEdit functionality and a question with the same title found here .
I am not getting the responses they are indicating I might or should when cells go from having values to empty, and those work around solutions did not work as a result. It's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58477852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt font renders weird on OS X I just started using Qt (using Qt 5 beta 1), and I found that the fonts rendered in OS X 10.6.8 are messed up. I've tried using different fonts, but they all look like the image I've posted below (very thin, pixelated). How can I get the fonts to render correctly?
The code I'm using is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12939540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MATLAB Fit a line to a histogram I am just wondering, how would I go about fitting a line to histogram, using the z-counts as weights? An example of this is shown below (although this post just discusses overlaying multiple plots), taken from Scatter plot with density in Matlab).
My initial thought is to make an ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27336771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom image shuffler not working? Basically, what I'm trying to do is shuffle through images using some JavaScript code. All it does is change the display style of the current image to block, and at the same time change the previous one to none.
The HTML code:
<body>
<img src="http://bit.ly/yOqqbg" id="image1" styl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10201412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cant open a doc file from the browser I have a link using tag and it is linked to a .doc file in the server. When I click on the link, instead of giving the open, save box, it opens the file in the browser in the binary format. Has anyone encountered this problem? I am using a Weblogic server.
A: As Russ said, som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1101010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Microsoft.PythonTools.Attacher.exe blocking Visual Studio 2010? At least two or three times a day Visual Studio gets stuck (in a deadlock I suspect) and displays the spinning-toilet-bowl-of-death cursor and pops up the dreaded "Microsoft Visual Studio is Busy" notification in the notification area:
It used t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10740000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to trigger fresh install instead of update? I'm an android developer and I'll be releasing a new update of my application in the coming days. But the new update is a complete redesign of the app's entire architecture, so I'd like the user to uninstall the previous version of the app before he installs the new ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72327105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tutorial to create phone book contact in Android SDK Although there are sites out there to help me create a contact, I am still not able to understand how to do it, Can someone give me a pointer/link/suggestion, that teaches me from scratch how to create a phone contact that will eventually show up in phone contacts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7324394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Mongoose Connection I read the quick start from the Mongoose website and I almost copy the code, but I cannot connect the MongoDB using Node.js.
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
exports.test = function(req, res) {
var db = mongoose.connection;
db.on('error', cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20360531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Android TV :Show Row Title always How do I get the title of the individual rows to always appear instead of only when it is selected? Like the example here in Youtube app, "Uploads" and "Popular Uploads" should always be seen.
A: I just answered this question here, but the general gist is:
I was able to achieve t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39401447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best data structure to store playing cards held in a player's hand? I'm beginner in java and I'm currently creating a card game like gin rummy for Android. I want to know what's the best implementation for creating Hand class? What's the best way where to store the card returned by Deck.dealt()?
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9128486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using nonce or hash values in content-security-policy for inline styles I am adding content-security-policy settings for my web app and would like to be strict about inline scripts and inline styles. I have inline scripts working properly but am having trouble with inline styles. For background, my web app uses El... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51793793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SELECT UPDATE SQL Not Working I have 2 forms
First Form has
Public Class frmMain
Friend strBillIDNumber As String
Friend strBillPassword As String
Friend ds As New DataSet
Friend cnn As OleDbConnection
Friend sql As String
Friend adptr As OleDbDataAdapter
Dim attempt As Integer = 1
Private Sub btnSign_Click(send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19217893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gatsby Dynamic Image I have a problem: this is my Heroes component
const Hero = styled.div`
display: flex;
flex-direction: column;
justify-content: flex-end;
background: linear-gradient(to top, #1f1f21 1%, #1f1f21 1%,rgba(25, 26, 27, 0) 100%) , url(${props => props.bgdesktop}) no-repeat top center;
height: 100vh;
ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55044068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursion time complexity I am looking for help in understanding what the Time/Space complexity of my solution, for finding permutations of an array, is. I know that because I am using an Array.forEach method that my time complexity includes O(n), however since I am also using recursion I do not know how the time co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73878792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need to delete an element in an array everytime a user press , but when is being output after deletion I got long number like ; 124352919 int main ()
{
int a[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71068134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Python MultiProcessing I'm using Python Python Multiprocessing for a RabbitMQ Consumers.
On Application Start I create 4 WorkerProcesses.
def start_workers(num=4):
for i in xrange(num):
process = WorkerProcess()
process.start()
Below you find my WorkerClass.
The Logic works so far, I create 4 pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37612535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OutputDebugString error I use:
OutputDebugString(L"My error");
in Visual Studio 2010, but instead of displaying "My error", I get just an "ERROR" in the window.
How do I fix this issue?
A: Since you're explicitly passing an UNICODE string, I'd suggest you also explicitly call OutputDebugStringW().
Otherwise, if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6800521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does FPS go down if canvas is larger than 255x220? I've found a wierd phenomenon with HTML5 canvas. I was getting a lower than expected framerate, but only in Firefox, and only on one computer (but not on another I tested). The wierd thing is, if I reduce the canvas size to be 255x250 or less, Firefox performs s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14366155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: React Actions using RxJS for parallel async calls I am having an existing action that calls the api with list of IDs as querystring parameter and fetches the thumbnail response for the passed IDs. In some cases, count of IDs can be 150-200 records. Hence, I am working on making this APIs call batch based and run in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66565527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stream compaction and transform based on the index in CUDA I have an array of float that I would like to perform a stram compaction operation on, like what is presented here: Parallel Prefix Sum (Scan) with CUDA, and then apply a transform based on the value and the address or the original element.
For example, I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34790307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB and Spring Data performance Issue I am using MongoDB with Spring Data for creating our prototype application. The save operation is very fast but for listing the results the performance is very poor even when their are just 3 to 4 records persisted. Another amazing part is the the performance deteriorates wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37642572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get data from website's dd tag via VBA I am trying to get data from a website, but I cannot get this part of my VBA code to work.
I have tried to look here, e.g. Excel VBA to find dd & dt tag but I could not find the answer.
This is the HTML code I am trying to get data from:
<div @*id="show7" class="collapse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56579667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XSSFCell Style seems to be slow I'm currently using apache POI to automatically tranfers data from xls file to xlsm file after some process. I have strong executing time constraint and the setters on XSSFCellStyle is very time consuming.
In fact i have files with thousands of cell to transfert and method on boder (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21940768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Iterating through my fonts list to display them more efficiently Answer located here: Setting multiple different Typefaces to the TextViews in a ListView
I have 20 fonts in a list that changes a TextView based on the user's selection. I want to keep adding more custom fonts, but it's getting very tedious doing this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34347631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compute a least common ancestor algorithm's time complexity? I came into an article which talking about the LCA algorithms, the code is simple
http://leetcode.com/2011/07/lowest-common-ancestor-of-a-binary-tree-part-i.html
// Return #nodes that matches P or Q in the subtree.
int countMatchesPQ(Node *root, Nod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24097107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to show only color coding in the legend of my plotly scatterplot in python I'm plotting some PCAs with plotly.express scatterplot function, and coding the samples by region (color) and breed (symbol). When I plot it, the legend show me all 67 different breeds in their combinations of symbols and colors. Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71615678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React state not being updated in Jest while working in the application When I click the button it increments the value by the amount written in the input, it works when I do that in the app but when I try to use Jest and first fireEvent.change() the value of an input to 10 and then fireEvent.click() on the button it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67211422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is the btmgmt command used to set PHY? When I run the command: btmgmt phy LE2MTX LE2MRX
It returns:
Could not set PHY Configuration with status 0x0d (Invalid Parameters)
btmon shows:
@ MGMT Open: btmgmt
@ MGMT Command: Set PHY Configuration (0x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74279636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: find nth fibonacci number where n can vary till 10^9 // i was trying to find (n^n)%1000000007 where n is the nth fibonacci term of the series.
example : n=3 ans 4 (2^2)
public class Sol_Big {
public static void main(String args[])
{
int n =10000000;
BigInteger a = BigInteger.ZERO;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58053151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring XD stream status failed After creating stream in Spring XD using the below command
*stream create foo --definition "jdbc --fixedDelay=1 --split=1 --url=jdbc:mysql://localhost:3306/test --query='select * from test_tutorials_tbl'|log" --deploy*
we have got the status as 'Created and deployed new stream 'foo'.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37435518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why don't Spring actuator requests display in log? I have 6 Springboot apps. Each one is slightly different from another. All of them include Actuator (so I can hit /health, /env, etc). The problem is that in 3 of the apps I can see in the logs where the request was processed for each endpoint (see example below). I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41172465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connections, edges, node: how to use a subtype of a node I'm following the Connection, Edges, Node, concept of relay in Apollo.
I use a Node { id: ID! } interface. I have a collection of entities that are all kind of 'groups', with small differences. I would like to model these as a single Connection, but not really... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55030554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Executing server side code (node.js) on click of a button from within an HTML page generated through Jade I am trying to develop a web application and I am stuck at a point where I need some server side code to be executed on click of a button (through the onClick event handler and not the Submit button. I learnt ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33985552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can dynamic import of @mdi/js icon work with tree-shaking in a vue template? I have the following component to dynamically import an icon from mdi/js. The only problem with this is that it doesn't do tree-shaking. Does anyone know how to make tree-shaking work with this kind of setup? I can use this anywhere like
<I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68785341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I configure my Route config to get a URL Pattern like localhost/Product (Controller)/List (Action)/Category (Id)? As the title says all about what I want but to be kind of specific I would like to have a URL pattern like localhost/Product/List/Category/Page but I couldn't succeed finding a solution for it. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35116865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.