text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Apple Watch on react-native I want to get react-native working for the Apple Watch, but I'm not sure where to start
I started reading the code for the iOS implementation to figure out how they did it there.
My question is: are there any resources or guidelines for help to actually implement react-native (do they eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36867628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to disable all actions of hyperlink and submit form but can drag these elements I use JavaFx WebView to show a web page but I don't want to have any interaction(location change) on web page and web engine disabled Javascript also. Because of that reason, I tried to disable all actions of hyperlink and submit for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26396417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CAShapeLayer strokeColor get mix with fillColor I have made a hexagonal View with border. The problem I am facing now is I am not able to set the desired color for border which I have made using strokeWidth (not borderWidth) and now my layer's strokeColor get mix with fill color of the layer.
Here is the code:
CASha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25446892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The following code works in my IDE but fails to work in the online editor provided at hackerrank.com
Input Format
Every line of input will contain a String followed by an integer. Each String will have a maximum of 10 alphabetic characters, and each
integer will be in the inclusive range from 0 to 999.
Output For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35931665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Java 8 thenApply() and thenAccept() I'm creating a demonstration example for chaining CompleteableFuture operations and I think I'm close but there's something I'm missing. Everything compiles except for the final "Build cakes in parallel" clause in main():
import java.util.*;
import java.util.concurrent.*;
import j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36377769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding slide effect by anchor tag I want to open another searchpage.html html page with slide effects for which i used anchor tag.
<a id="add" href="searchpage.html" class="show_hide">Click</a>
And js:
$(document).ready(function () {
$('.show_hide').click(function (e) {
e.preventDefault(); //to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30255637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: React Native - Sending text messages by phone i use fire base service. after wake up the app i need to send text message to users number by use device messaging, i install react-native-S M S but just work when on app and need to push user send button, can help me to send text message in background, thanks
| {
"language": "en",
"url": "https://stackoverflow.com/questions/62152090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to combine JSF togglePanel to trigger visibility of some other div/element/? I was looking through a number of websites, but i couldn't find out how to use a toggle panel to change the visibility of another element. Please see the example..
<rich:togglePanel switchType="client"
stateOrder="panelOneOff, panel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3258162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL delete multiple criteria duplicate records I have a table with duplicate records in all but one field (col4 for ex). I just need to delete the duplicate entries where the t1.col4 field is blank.
ID Col1 Col2 Col3 Col4
1 Joe 1 2 Yes
2 Sue 1 2
3 Joe 2 3
4 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50030938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: updating a notification service from activity I have a notification service that starts when application is started
and there are 2 buttons in main activity, I want to update notification by clicking on each buttons, foreample if I touch start button, the text view in notification service should show: you touched st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50549376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Writing C# SDKs with dynamic responses and casting to a model For example;
I have a class called "User";
public class User
{
public string Name { get; set; }
public List<Job> Jobs { get; set; }
}
Awesome! Now, lets make a request to our REST API;
GET: api.com/users/123
RESPONSE:
{
name : "Erik",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24124255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maven build not exporting dependent library's for packaging type jar I need to create a runnable jar file that will be operated in Batch mode.
During development I need to use following api/frameworks apache-poi,hibernate,Spring etc.
So,I prefer to go with maven:
Please find below my maven file:
<project xmlns="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53407728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A class rewritten with templates makes a program slower (in run-time) I have a class for a serial-memory 2D array that was initially an array of ints. Now that I need a similar array with another type, I've rewritten the class with templates; the only difference is in the type of stored objects:
template <class T>
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11058431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why this functions duplicate data when scroll down to bottom page? Why this functions duplicate data when scroll down to bottom page ?
when scroll to bottom page sometime duplicate data.
<script type="text/javascript">
$(document).ready(function(){
$(window).scroll(function(){
var height = $('#d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25830332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSRS - 404 page not found I have a windows 2008 server running SSRS on SQL 2008. It is also a web server with Plesk installed.
I have been developing reports for this server for some time now on a development server. Everything is working fine on the development server. But I tried to move the reports to the live se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6343534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bypassing Controller in Rails Im using Rails 2.3.5 and I have a model, let's call it Post. I used named scopes to apply different kinds of sorts on Post. For example, in the Post model I have possibility to rank posts by its scores:
named_scope :order_by_acception_rate_desc,
Proc.new { |limit| { :limit => limit, :or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6713719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Reporting Services 2008 R2 Express Edition "Report Builder" Button How do I enable the "Report Builder" button on SQL Server Reporting Services (Report Manager Web View).
I am using the 2008 R2 Express Edition.
Is this available in this edition ??
Thanks.
A: I don't believe that it's possible. If you com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7916243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Formula Language to return column values I'm trying to return all values stored in the tNames variable.
Values exists in the field. The show multivalues as separate entries have been selected already but none of the names is returned.
Below is the sample code:
tNames := "";
@For(n := 0; n <= QuestionCount - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47360865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala: expression's type is not compatible with formal parameter type trait Ingredient{}
case class Papperoni() extends Ingredient{}
case class Mushroom() extends Ingredient{}
trait ToppingDef[T] {
}
object PepperoniDef extends Serializable with ToppingDef[Papperoni] {
}
object MushroomDef extends Serializable w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45462849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pass string array to PHP script as POST I am trying to pass a string array to a PHP script as POST data in an Android app but i have an issue.
this is my client side code:
ArrayList<NameValuePair> querySend = new ArrayList<NameValuePair>();
for (Stop s : stops) {
querySend.add(new BasicNameValuePair(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20031940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a .htaccess file with the code for clean url I want to create clean url, so I tried many configurations. I also created an .htaccess file but it does not work. Anyone can help me?
My .htaccess code
Options +FollowSymLinks
RewriteEngine on
RewriteRule single-post/id/(.*)/title/(.*)/ single-post.php?id=$1&ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51835322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modify path name when saving with PIL I am extracting RGB channels from images and saving them as grayscale png files, but I have trouble saving them. Here is my code:
listing = os.listdir(path1)
for f in listing:
im = Image.open(path1 + f)
red, green, blue = im.split()
red = red.convert('LA')
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42646343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Putting $scope in Cytoscape click event I have created a network graph using Cytoscapejs. I am trying to unhide a div, and load more things after the user click on edge of the graph.
I have the following in my controller:
CytoscapeService.getGraph().on('tap', 'edge[id = "123"]', function (event) {
console.log("Hi")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38673700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flex how to format a date string when it could be two different formats I have a date field in flex and have the format set to YYYY-MM-DD. As long as the user clicks the calendar pop-up it set's it that way.
However, I need to allow the field to be human enter-able so they can type in a date.
The problem is, most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6230123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to use for loop in a JButton public void init(GUI gui){
// the class extends Jframe
gui.setSize(1024, 700);
gui.setPreferredSize(new Dimension(1024, 700));
gui.setResizable(false);
gui.setLocationRelativeTo(null);
gui.setTitle("Student Management System");
gui.setDefaultCloseOperation(E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43526367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: System.Net.WebException on YoutubeExtractor when downloading a video Environment
*
*Windows 8.1
*Visual Studio 2017 Community
*C#
*WPF application
Issue
*
*YoutubeExtractor throws System.Net.WebException when downloading a video.
I got YoutubeExtractor by Nuget and it doesn't work. The VideoInfo object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46502734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: kotlin whereNotEqualTo doesn't work for a field that has null value in firestore
BJ document has a null value of the capital field which should have not taken by whereNotEqualTo
val citiesRef = db.collection("cities").whereNotEqualTo("capital", true)
try {
val documents = citiesRef.get().await()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71310643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create mobile, tablet, desktop viewable web template I want to create same category two templates. First one for tablet, laptop and desktop viewable to any screen size and second one for mobile viewable to any screen size.
How can I create all device (mobile, tablet, laptop and desktop any screen size) viewab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16457986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Get all changed files in a changest I want to get all the changed file in a changeset but without having the letter that specify the change type.
I know this command
hg status --change changeset
However, this return result like,
A /path/to/file
M /path/to/file
I want the result to be
/path/to/file
without "A" o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32148545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: App closes upon using BACKSPACE or SHIFT button in an EditText view When using the BACKSPACE or SHIFT of the onscreen keyboard to edit text in EditText views, my app closes (didn't have this problem before). It is possible to type in text, but as soon as I use BACKSPACE or SHIFT, the app closes.
Logcat gives the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57856122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Default Value Containing Special Characters in HTML Form I was trying to get a symbol like ® to be a default value for a text field,
I am trying to set the default by a javascript , but all i get is ® or &® in the text box, i am doing this from script as i am using drupal , so i dont have html files , i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3726130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make a table in ebook file I wanna make a book with parallel translation. It supposed to have table with to columns - one have text on source language, the other on target language.
I found, that I can do it easy with fb2, just write a xml code by python script. But my ebook read it ugly - the first column much wide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69232810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Java Enumeration vs Iterator Enumeration doesn't throw ConcurrentModificationException , why?
See below code .
public static void main(String[] args) {
Vector<String> v=new Vector<String>();
v.add("Amit");
v.add("Raj");
v.add("Pathak");
v.add("Sumit");
v.add("Aron");
v.add("Trek");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10880137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Access DataGridTemplateColumn content I have a WPF DataGrid templatecolumn that has a DataTemplate for an AutoCompleteBox from the wpf toolkit. During RowEditEnding event and validation procedures, I am not able to see the content in the templatecolumn.
<DataGridTemplateColumn Header="Account Type" >
<DataGri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8483509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wait for nested async calls to finish I have a series of nested async calls that need to finish before my code continues. Function save_part1 calls the sqlite database and returns the rows of interest. For each of those rows, I make an ajax call to a save them remotely.
From what I have read about promises and defe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35368640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find the list of indices of NaN values of a given column of a dataframe in python Say I have the following dataframe and I want to get the indices of NaN values in Column 'b'.
Input:
df = pd.DataFrame(np.array([[1, 2, 3 ], [ np.nan, 5, 6], [7, np.nan, 9], [7, np.nan, 9]]),
columns=['a', 'b'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66039584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show ActionBar with Centred Logo In ListActivity Trying to show an ActionBar with the app logo to the left, title of the screen centred and menu icons to the right. The class below extends a ListActivity how can i go about doing this:
The method i have created was centerlogo(); See code extract below:
public class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28213996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prove device enrollment with MDM from an iOS App We want to make an iOS enterprise app that communicates with a server A - we also have our own MDM server as a separate solution which could communicate with the A server if needed. Q: How can the app securely prove to its server, with every request, that it is coming... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48458892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I split compressed sql file using split linux command? If not, then any other method to do? I have a 30 GB compressed sql file (with extension .sql.bz2) and if I unzip it will become 300 GB. However due to disk space issue, I can't do the same.
Could I split the compressed sql file something like using split li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40486961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: how to switch image on slidepanellayout in android how to use image to show more & less in slidepanellayout in android.i am using demo application from this link,check this layout.xml
https://github.com/umano/AndroidSlidingUpPanel/blob/master/demo/res/layout/activity_demo.xml
if data hidden it has to show down ico... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23221805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a base class for DRY in this situation without DI in Kotlin? I got 2 cases for a class, one is like this:
class User {
private val name:Name = NameGenerator()
fun sayName() {
println(this.name.fakeName)
}
}
The other one is:
class User(suggestion:String) {
private val name:Name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49397687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Class library project build error, broken references The class library project in Visual Studio is throwing an error when I try building it. The error says:
"Your project is not referencing the ".NETFramework,Version=v4.5.2" framework. Add a reference to ".NETFramework,Version=v4.5.2" in the "frameworks" section o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36875205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add link to this JavaScript code I have the following javascript code for a rotating image. Those images are in a separate folder from the javascript. I want to link the rotation itself to another page. All images will go to the same link. The current code works great but I just don't know where I add the a href cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20247055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A question on text classification with more than one level of category I am trying to produce a series of product classifiers based on the text description that each product has. The data frame I have is similar to the following but is more complicated. Python and the sklearn library are used.
data = {'description':... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70382013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Respect negative conditions for advanced collection associations I was trying to use this functionality introduced in #645 with conditional 2nd degree has_many ... through relationships with little success.
In my case:
*
*a Course has_many :user_assigned_content_skills, -> { where(source: 'user') }, class_name: "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41717007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error: Call to a possibly undefined method I have the simplest code ever. Main class:
package
{
import field.Field;
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28237588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading specific number of bytes from a buffered reader in golang I am aware of the specific function in golang from the bufio package.
func (b *Reader) Peek(n int) ([]byte, error)
Peek returns the next n bytes without advancing the reader. The bytes
stop being valid at the next read call. If Peek returns fewer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13660864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Determining bar width, with a 3d matrix I have my data as follows:
var data = [[-5,7,10],[10,15,25],[-18,-14,-6]];
var margin = {top: 0, right: 30, bottom: 80, left: 30},
width = 180 - margin.left - margin.right,
height = 295 - margin.top - margin.bottom;
var x0 = Math.max(-d3.min(data[0]), d3.max(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12379226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting Gameobjects under Linerenderer I have made a LineRenderer and I added an EdgeCollider2D to it.
Now I am trying to detect all GameObjects below my LineRenderer.
The objects below have Colliders as well.
*
*LineRenderer starts with first mouse position and ends with last mouse position
*LineRenderer has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71326052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can session be maintained if we turn off javascript in the browser? So recently i was asked this question in an interview that "Can you manage session in MVC .NET if javascript is turned off in the browser"?
I replied "Yes we can" but I am not very sure and I need some assistance on this topic.
A: Sessions, Session... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56166639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: reliable way to get line / column number from javascript Error? I have a little embedded JS editor on my site and when the code inside it throws an error I'd like to underline where the error is happening. The error stack trace looks like this:
err ReferenceError: a is not defined
at isNumber (eval at handle_mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72051481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ggplot - add title based on the variable in the dataframe used for plotting This is a follow-up to my previous question where I asked how to use ggplot inside of purr::map.
I have a dataframe that looks like this:
I have a dataframe named data which looks like this:
Country Year Incidence
USA 1995 20000
USA ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60671725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: masstransit handle/consume messages in batches I have a clear understanding of consuming messages: http://docs.masstransit-project.com/en/latest/usage/consumer.html
these implementations only handle ONE message at a time.
I need to handle multiple messages at a time, in bulk, in batches.
A: Mass Transit now has an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40923409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hacked, Extension Stolen - How To Recover Quickly? My Google account was hacked, and my popular (~200k users) extension was stolen and transferred to a malicious account. The extension was updated with new code and my users are being automatically updated.
I've tried to contact Google 3 different ways, but no respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44891134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop one specific user to delete his account in Ruby on Rails? I have this code in /views/devise/registrations/edit.html.erb
<b>Cancel my account</b>
<%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.
which allows the logged in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17090904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling a fun with reified type parameter if you just have a KClass object? One can only use reified type parameters with inline functions. So if I want such a parameter for a class I need a trick like this:
class Foo<T : Any>(private val clazz: KClass<T>) {
companion object {
inline fun <reified T: Any>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55399737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SUM without duplicated row with GROUP BY SELECT SUM(man+woman) AS over65,
a.cod,
a.city,
b.cod2
FROM a LEFT JOIN
b ON b.cod2 = a.cod
GROUP BY cod
--
table a
cod city
28001 rome
28001 rome
28002 milan
28002 milan
table b
cod2 age man woman
28001 65 156 220
2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48014940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is readxl so much faster than xlsx package? We used the two packages xlsx and readxl and now it seems, readxl is much faster. Why? As long-term stability is important to us, I would then always use the readxl package.
Reproducible example:
path <- "C:/Temp/"
name <- "myexcel.xlsx"
filename <- paste0(path, name)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68345179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Automation Credentials using Azure Key Vault secrets Is there a way to create an Azure Automation Credential asset which links to an Azure Key Vault secret? Similar question for a Certificate in Azure Automation.
I want to be able to store my passwords and such all in one place, the Key Vault, so that when I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45746366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Camera access in WebView in Java 8 I have a WebView in my JavaFX application that loads an HTML5 file that accesses the webcam of the local computer. It runs perfectly in Chrome and Mozilla but not in JavaFX's WebView. Is there a configuration that I need to set in order to run it in WebView? Im using Java 8u60.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32623307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Array combining 2 or more values together I am curious know if and how it is possible to combine 2 values of an array together instead of overriding the other. I will show you an example:
I have a form that is mapping fields to a database from a CSV file. The problem I am running into is say for example there ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4560000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NHibernate : QueryOver in generic method I have this test method, I have a problem on the "List" method. I'd like use several class (all inplement IAdminDecimal). On the QueryOver, I have this error :
The type 'T' must be a reference type in order to use it as parameter 'T' in the generic type or method 'NHibernate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6368931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Airfoil plottin by data file without court line in Spyder by python I use the AeroPython codes by Barba Group's;
#import libraries and modules needed
import os
import numpy
from scipy import integrate, linalg
from matplotlib import pyplot
# load geometry from data file
naca_filepath = os.path.join('resources', 'na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59871036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Facebook Async Display Kit in Swift I want to use facebook async display kit in my project for smooth loading in tableview. I read them GitHub page but it's not clear for me. Can anyone help me to understand it?
(ASDK can also be used as a regular static library: Copy the project to your codebase manually, ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30273136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can i get my container to go from starting -> healthy Background: My Docker container has a very long startup time, and it is hard to predict when it is done. And when the health check kicks in, it first may show 'unhealthy' since the startup is sometimes not finished. This may cause a restart or container remov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63480418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Scriptable way to create flat .pkg files with custom resources and scripts I have created a flat .pkg file with following options on 10.7 using PackageMaker 3.0.6:
/Applications/PackageMaker.app/Contents/MacOS/Package --root ./myroot \
--id com.myroot.pkg --title "My Root" --scripts ./scripts --target 10.5 \
--ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11803972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MapReduce/Aggregate operations in SpringBatch Is it possible to do MapReduce style operations in SpringBatch?
I have two steps in my batch job. The first step calculates average. The second step compares each value with average to determine another value.
For example, Lets say i have a huge database of Student score... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6120654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: React view not updating even if the state is changing I'm trying to create a HackerNews with reddit.json
I'm fetching the data that's returining an array and i'm storing it in a variable
For the moment in my view i can only acess a fake json data:
results= [
{'author' : Mister1,'url':'http://url1.com','score':40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53602870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: correct method to Use sub string in where clause mysql query I have a table in mysql with column called type. contents are below
Type
Test 12
Test abc
start 1
start abcd
end 123
Now I want to select records where type starts with Test
Expected result:
Test 12
Test abc
But I am getting either
Test 12
or empty r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46411733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort the list by the field of another table There are two tables:
Table1
Id
Name
Table2
Id
Table1ID(foreign key Table1 ID)
Date
With EntityFramework I use:
var list = db.Table1.Where(some selection).ToList();
How can I sort "list" by "Date" field in Table2?
A: Using OrderBy on Table2.Date
var list = db.Tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31502993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to resolve java result 1 errors How to resolve 1 particular flavor of 'java result 1' in the context of using JVMTI agents?
A: Here's how I resolved an issue in my context:
The server is run through an ANT script with jvm configured with an agent (the property name 'agentfile' below is associated with a value p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4230940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to filter arrays in json based on specific value using jq I am trying to make a filter using jq to filter the arrays in this json to get only the arrays that have "policy_id": 199383 and exclude the arrays that contain different policy_id value.
{
"links": {
"policy_id": 199383,
"violations": [
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48956030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change php variable depending on what selected in dropdown I want to create a page on my website which will be used to view users profiles. When the user first visits the page I want it show their own profile. But I want to put in a drop-down menu or something which will give them the ability to view other users pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18374491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory Leak: Issues with releasing NSArray in iPhone app I have a code which shows leaks in Instruments. It shows leaks where I initialize the arrayDetPerformance with the contents of arrayDetail
If I release my arrayDetail then my app crashes.
What could be wrong?
Here is the code:
NSDictionary *finalResult = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5675481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check if current user is owner of GitHub remote in zsh I'm trying to write a git pre-push hook that performs some actions prior to pushing to origin if the person pushing is the repo's owner. Is there a way to check this in bash/zsh?
A: You can do this if the user is using HTTPS. You'd need to use the authenticate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58665382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF Datatable link to another page I've got this table:
<p:dataTable value="#{requestBean.requestsList}" var="requestClass" style="width:50px;" id="requestList">
<p:column>
<f:facet name="header">
<h:outputText value="ID" />
</f:facet>
<h:outputText value="#{requestC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8551706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change stream update and array of sub document update need help on writing some proper aggregation for change stream
I am getting data some thing like
{
"_id": {
"$oid": "6285ee2b91c6e50012a76e0b"
},
"status": "new",
"lastUpdatedData": {
"timestamp": {
"$date": {
"$numberLong": "1670602... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74768143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript package or plugin to create network diagrams with IPs Is there a plugin or a package where I can create visual network diagrams like in cisco packet tracer, so that our technicians can request their network schedule per customer.
I have already seen protovis and infovis go by, but it can not do what I rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54130817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: recursion of objects and methods in python I wanna create a class which consist of parents and children and a recursion method to call the last child :
class MyClass:
def __init__(self,val,child =None):
self.val = val
self.child = child
def findLastChildVal(self):
if self.child ==Non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56820302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Constructing objects from data in multiple arrays: copy or reference the data? I have a data source that constructs multiple arrays of data. Each array are associated to each other by their offsets (all arrays are the same length). I am using a library that works on singular objects of this data through a public int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32382152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use linearGradient in react-native-svg I have some SVG graphics that I would like to apply conditional styling on (e.g. linearGradient when it's active). How would I go about achieving this? I'd rather not (if there's another way) have to go in a manually add a defs tag with linearGradients in there, and I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70369360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to click outside button and keep active style? - AlpineJS & TailwindCSS I'm using TailwindCSS and AlpineJS on this project. There are two buttons that switch tabs and the first one have autofocus. When a tab is switched, the other button becomes active:
I want the button to become inactive only when the other b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64702779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't os.system ignore SIGINT? I am reading Linux System Programming.
When introducing the system(command) function, the book states that during execution of the command, SIGINT is ignored.
So, assuming that os.system is just a wrapper of the underlying system function, I try the following:
loop.py
while Tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18426975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perfect minimal hash for mathematical combinations First, define two integers N and K, where N >= K, both known at compile time. For example: N = 8 and K = 3.
Next, define a set of integers [0, N) (or [1, N] if that makes the answer simpler) and call it S. For example: {0, 1, 2, 3, 4, 5, 6, 7}
The number of subsets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14160942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the equivalent SOAP API call to the command *S? We have an agent desktop application that runs against the current PNR/session in Sabre Red. We're using Native API to interact with Sabre Red and we have a Sabre Red App.
If an agent begins to build a reservation/PNR and has NOT ended the current PNR, the dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73887796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need assistance with below query I'm getting this error:
Error tokenizing data. C error: Expected 2 fields in line 11, saw 3
Code: import webbrowser
website = 'https://en.wikipedia.org/wiki/Winning_percentage'
webbrowser.open(website)
league_frame = pd.read_clipboard()
And the above mentioned comes next.
A: I b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55561151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement Transactions with Generic Repository Pattern? I am developing a .NET Core application where I leverage the Generic Repository pattern and I would like to know how can I implement a transaction:
IGenericRepository
public interface IGenericRepository<T>
{
Task InsertAsync(T insert);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59625929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Inner HTML - PHP I have the following code:
$data = file_get_contents('http://www.robotevents.com/robot-competitions/vex-robotics-competition?limit=all');
echo "Downloaded";
$dom = new domDocument;
@$dom->loadHTML($data);
$dom->preserveWhiteSpace = false;
$tables = $dom->getElementsByTagName('table');
$rows = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20725068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I apply CSS stylesheets to a specific component? I'm working on Android app & web app in the same Next.js project and I want the recommended Ionic global stylesheets to not apply on web layout.
I have a client component imported in server component app/layout.tsx that looks like this:
<>
<WindowContextProv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75043229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reach UIPopoverController from its content view controller? I have a problem with iOS UIPopoverController. I have a UIPopoverController cleated like this:
- (UIPopoverController *)popover
{
if (!_popover)
{
_popover = [[UIPopoverController alloc] initWithContentViewController:self.viewControll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28854605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: insert UTF-8 characters into sql server 2008 table I'm inserting an email content text as UTF-8 string using php into an SQL server 2008 database table and it is working fine except one specific email.
The INSERT command fails with this error:
An error occurred translating the query string to UTF-16: No mapping for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15926196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DateTime failed to open I have a problem with my DateTime function.
I'm using a function form different places
function newDateFormat($date, $format) {
$newdate = new DateTime($date);
if($format == '1')
{
$newdate = $newdate->format('Y-m-d H:i:s');
}elseif($format == '2'){
$newdate = $newdate->f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17821487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Injecting (implicit) value of abstract type into subtypes of trait Here is a simplification of my scenario that I am trying to make it work
// the UnrelatedN are mostly used as tag traits, for type-checking purposes
trait Unrelated1
trait Unrelated2
trait HasUnrelatedSupertrait {
type Unrelated // abstract type
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35442977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git won't add file I am changing and there is no gitignore I have this file inside my project, and no matter how many changes I make to it, git won't add the change.
There is no .gitignore file. And the file is inside the project. I did try --force and I tried git add --all. Nothing helps. I do remember using git a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47438224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Line numbers in jtextpane in Netbeans I am using Netbeans 7.1. are there any option for displaying line numbers in jtextpane?
A: You can try using Text Component Line Number.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/8995431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Writing a wrapper to malloc with void as return type I have a requirement to write a wrapper to malloc with return type as void . the exact signature of the function would be
void mymalloc_wrapper(size_t size).
Any suggestion as to how this can be achieved/is it possible at all ?.
A: With your signature, the only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31512047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to access mongoDB atlas from google cloud function using serverless VPC I have a google cloud function which needs to access the MongoDB hosted on Atlas (GCP).
This cloud function needs to access a specific API hosted outside GCP. For security reasons they need to allow the cloud functions IP address on their fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60969161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving Project folder within solution in VSS I have a solution in VSS with this structure (simplified):
Solution1
|-Project1
|-Project2
|--Project2
|-Project3
You see the second Project2 folder?
Somehow it got inside that wrapping project2 folder.
How can I move painlessly all content of Project2 one level up,
so t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25493493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with WCF and WAS with web site and web service in separate application pools None of the members of my team has ever been able to get a particular WCF service in our solution to work on our local machines. We've inherited it in legacy code and are trying to replace it, but it's very difficult to tell what it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36772508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twilio MessagingResponse() after Flask redirect As in the Twilio Docs, I can make a MessagingResponse() object for sending a response text to my phone. However, what if I want to first redirect to an internal page? I am not able to simply make a MessagingResponse() in the redirected function, like I want to:
@app.ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56204381",
"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.