text stringlengths 181 35.5k | meta dict |
|---|---|
Q:
Add the values of a text field into an array
I need to add the values typed into the textfield into an array list.
I implemented it as follows:
public class MainActivity extends ActionBarActivity {
Spinner spinner1,spinner2,spinner3;
Button add;
EditText subject;
@Override
protected void onCreate(Bundle savedI... | {
"pile_set_name": "StackExchange"
} |
Q:
I am trying to direct print my report
I am using Visual studio 2015. and trying to print my report. my Preview report its working good. but when i am trying to Direct print then its default print of crystal report. i think my function is wrong.
somebody please help me. thanks you.
This is my Preview Code (its Wor... | {
"pile_set_name": "StackExchange"
} |
Q:
Multiple sed replace with back reference (parse SQL for joined tables)
I'm trying to parse through some massive SQL query logs using sed and want to extract the names of all the tables that are joined in each query. Here's what I'm trying:
echo '[SQL_STMT="SELECT A FROM TABLEA JOIN TABLEB ON SOMETHING JOIN TABLEC... | {
"pile_set_name": "StackExchange"
} |
Q:
Repeated column in mapping for entity: Hiv_AnswerForEntities column: variant_id (should be mapped with insert="false" update="false")
I have problem with inheritance in ORM.
I use JPA/hibernate. I am getting an error that I do not understand. I have declared once column, but error tell me that I've done this twice... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS dropdown menu - 3rd level issue
Ive got a 3 leve dropdown menu and the 3rd level sub-menu displays next to the 2nd level menu item like it should, except for a gap.
The 2nd level is set to a width of 100px so I've absolutely positioned the 3rd level to top:0, left:100px so it displays to the right of the 2nd l... | {
"pile_set_name": "StackExchange"
} |
Q:
Failed to send direct email message via aws Pinpoint
I am trying to send email message to a specific email address via the aws pinpoint. My from email address is verified. However, whenever I try to send the email it gives me an error "Failed to submit email message to ". I don't understand where am I going wrong ... | {
"pile_set_name": "StackExchange"
} |
Q:
Get data from XML file Python
<Fruits>
<Fruit>
<Family>Citrus</Family>
<Explanation>this is a Citrus fruit.</Explanation>
<Type>Orange</Type>
<Type>Lemon</Type>
</Fruit>
</Fruits>
I want to extract the Explanation of this XML code and assign it to both fruits(Type) next to ... | {
"pile_set_name": "StackExchange"
} |
Q:
Java retainAll() not working?
Let's say I have two Arraylists.
a.add("Isabella");
a.add("Angelina");
a.add("Pille");
a.add("Hazem");
b.add("Isabella");
b.add("Angelina");
b.add("Bianca");
a.retainAll(b);
This should give me Arraylist a with the following elements: Isabella, Angel... | {
"pile_set_name": "StackExchange"
} |
Q:
Fixing "unknown runtime error" in IE8
I don't see anyone else really trying to accomplish what I am...
LOADS of people want to replace some node via innerHTML property however, I not only want to do this but I ALSO want to replace it with javascript.
Here is my example script which is working fine in all versions... | {
"pile_set_name": "StackExchange"
} |
Q:
Filtering xts objects in Shiny apps
I'd like to display a basic Shiny dygraph in my Rmarkdown that toggles between networks. Here is a sample of the data:
> head(df)
nightTrips dayTrips network
2014-05-03 0 16 1
2014-05-04 0 5 1
2014-05-05 0 8 ... | {
"pile_set_name": "StackExchange"
} |
Q:
Convert following code from C to VB.NET
Hey guys,
Can you please give me a hand to convert the following C code into VB.NET. I have a feeling it would be pretty simple... but my C knowledge is very very limited!
Any help would be great!
Thanks
buf[0] = (num1 & 0xff000000) >> 24;
buf[1] = (num1 & 0xff0000) >> 16;... | {
"pile_set_name": "StackExchange"
} |
Q:
Como movimentar animação em sentido horário?
Bom galera, estou desenvolvendo um projetinho que visa simular o ambiente controlado de trilhos de trem, onde tenho 3 trens circulando em sentido horário, onde os três passam pelo mesmo local em determinados trechos. Minha dúvida primeiramente é, como fazer a movimentaç... | {
"pile_set_name": "StackExchange"
} |
Q:
Multi-Step Image Submission To Load Balanced Server Problem
We have two apache/php web servers load balanced with squid page caching proxy. The squid caching is not active on image submission pages. We have a form where users can submit images.
It's a two step process. They first upload the images. The second step... | {
"pile_set_name": "StackExchange"
} |
Q:
div resized according to the number of divs in a row
I'm currently building an online editor, and I was wondering if it is possible to resize a <div> according to the number of divs that are not in a display:none state.
For example, I have a row with three div columns, each of them are 32% large, I want that if on... | {
"pile_set_name": "StackExchange"
} |
Q:
Re-sizing the partition after installing Ubuntu
So I just finished installing Ubuntu (13.10) alongside Windows 7 (on the same hard drive). However, I ran into a small problem when I was installing that had to do with the partition sizes. I wanted my partitions to look like this:
/dev/sda
/dev/sda1 (Windows Res... | {
"pile_set_name": "StackExchange"
} |
Q:
Existence of a parallel vector field
I came across the following sentence in a comment on this
question: Local existence of parallel vector field
"the existence of a parallel vector field is equivalent to the condition that the metric splits locally into a Riemannian product of a one-dimensional manifold and an (... | {
"pile_set_name": "StackExchange"
} |
Q:
Using Travis-CI for Node.js project
I'm trying to set up travis-ci for my node.js project hosted on github. For some reason travis keeps using ruby worker for building/testing the project.
My .travis.yml looks like:
language: node_js
node_js:
- 0.6
script:
- "make test"
What am I missing?
A:
OK got ... | {
"pile_set_name": "StackExchange"
} |
Q:
Mapping the most gentle route for my single speed
I commute to work on a single-speed road bike, so it's a lot easier if I avoid any steep hills (preferring to cover the same gradient gradually). Taking a look at a map, there are seemingly 3-4 sensible routes to get from point A to point B. Short of trying them al... | {
"pile_set_name": "StackExchange"
} |
Q:
in Rails, database call works in development but stalls in test
I am running a test for a controller method as shown below:
it "should assigns an instance var @items including my item" do
@item = FactoryGirl.create(:item)
get :index
response.should include(@item)
end
The controller method is:
def index
@I... | {
"pile_set_name": "StackExchange"
} |
Q:
Search keyword highlight in ASP.Net
I am outputting a list of search results for a given string of keywords, and I want any matching keywords in my search results to be highlighted. Each word should be wrapped in a span or similar. I am looking for an efficient function to do this.
E.g.
Keywords: "lorem ipsum"
Res... | {
"pile_set_name": "StackExchange"
} |
Q:
Count elements in recursive list
How can I count elements in recursive list?
Here is data, but it could be bigger list.
data <- list(list(list("a"), list("b"), list("c","d","e")), list("f"))
> str(data)
List of 2
$ :List of 3
..$ :List of 1
.. ..$ : chr "a"
..$ :List of 1
.. ..$ : chr "b"
..$ :List of ... | {
"pile_set_name": "StackExchange"
} |
Q:
Arduino IDE get stuck while uploading sketch
I was trying to use my L293D motor driver module. But when I upload the following sketch to try and run my motor, but it would get stuck on "Uploading". This happens with this sketch only, and happens randomly, with odds of happening being 3 in 5 times. After a bit fidd... | {
"pile_set_name": "StackExchange"
} |
Q:
Can I use a different graphical driver while booting, and the proprietery NVIDIA driver once my computer has started?
I have a bit of a problem in that as I am booting my PC, the boot screen isn't exactly pretty because I am using the proprietary NVIDIA drivers.
I am wondering if there is a method to use the VESA... | {
"pile_set_name": "StackExchange"
} |
Q:
Issue getting distinct values from column into array from mySQL via PHP
I'm trying to get the unique values in a specific column into an array, so I can validate what's being sent to my PHP to avoid mySQL injection. Here's what I have:
$dbh = new PDO("mysql:host=$hostname;dbname=$database", $username, $password);
... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a performance hit for using EXTERNAL working storage variables
This question is regarding IBM Enterprise COBOL 4.2.
I have a program that requires a change and an increase to a working storage buffer. Unfortunately, this increase in buffer size has put me over the 128M max for the working storage section.... | {
"pile_set_name": "StackExchange"
} |
Q:
Is servlet just like httpHandler in .Net?
Anone can compare those two? Any similarity and difference?
A:
Not Exactly, but you can achieve more and less the same functionality as sync HTTPHandler.
| {
"pile_set_name": "StackExchange"
} |
Q:
Resolving a question that has answers that don't cover the entire question
This is the question that I am referring to if needed.
I asked a question regarding media queries and the detection of mobile devices. The answers that were relevant focused on the detection of devices and orientation using JavaScript, but ... | {
"pile_set_name": "StackExchange"
} |
Q:
Check to see if user has their microphone plugged in
I have a function that checks to see if a browser supports speech recognition or not, and it alerts whether it supports or not, and it works well, except that it does not alert anything when the user is using Google Chrome, but DOES NOT have the microphone plugg... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery .after with effect
i would like to ask, if is it possible to use .after function in correlation with some effect like fadeIn or so.
The whole flow should work like this:
get some AJAX content depend on user action (.click or so)
render response html right after current element
I already try to mix .get,... | {
"pile_set_name": "StackExchange"
} |
Q:
Are there guidelines in the peer reviewing process on assessing methodology?
Usually an article goes through a peer-review process before it is published, and from what I here it is quite common that the reviewers "demand" some changes.
Are there guidelines for peer- reviewers, especially as the methodological si... | {
"pile_set_name": "StackExchange"
} |
Q:
Objects, boolean logic, and boxing nil in Objective-C
I would like to return an NSDictionary which might contain an NSError value for one key, and if not, should contain a null value. I know that I cannot actually set a value to nil because it is not an object, but why can I not use the || operator to return NSNul... | {
"pile_set_name": "StackExchange"
} |
Q:
AJAX request not working in IE8 and IE9
This AJAX code is working in IE10+ and Chrome and another browser, but it is not working in IE8 and IE9.
<table id="table" border="1">
<tbody style="display: table-row-group"></tbody>
</table>
jQuery(document).ready(function(){
$.support.cors = true;
var url =... | {
"pile_set_name": "StackExchange"
} |
Q:
c# MSMQ between 2 local apps not receiving all messages sent
I have created my own MSMQ wrapper class like this:
public class MsgQueue
{
private MessageQueue messageQueue;
public delegate void ReadMessageDelegate(string message);
public event ReadMessageDelegate NewMessageAvailable;
public MsgQue... | {
"pile_set_name": "StackExchange"
} |
Q:
OS Error file path and name being changed without user interference
I am trying to read a midi file in the following manner using an in-built function from the library - mido to read such files.
mid = mido.MidiFile('..\Datasets\abel.mid')
Error:
OSError Traceback (most recent ca... | {
"pile_set_name": "StackExchange"
} |
Q:
Where is "navigate to" in Visual Studio 2010 Express C#
Is "Navigate to" one of the "missing" features from Visual Studio Express 2010?
A:
that is indeed missing in the express edition.
| {
"pile_set_name": "StackExchange"
} |
Q:
SOQL - UserLogin relationship from User
I am trying to check if a user is frozen but i can't figure out the relationship query. It seems like one doesn't exist even though there is a lookup. This older post hints at it but I can't figure out how to form my query.
SOQL error with relationship
Tried all of these:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Difference between tomcat and resin?
I like to know what are the differences between Tomcat container and Resin container
A:
Tomcat is a stand alone web server supporting the J2EE web technologies (eg. Servlets, JSP) and Resin is a full blown J2EE Application server which includes a web server plus the rest of t... | {
"pile_set_name": "StackExchange"
} |
Q:
Animate.css not working on hover
Why doesn't this hover Animate.css animation work after the initial page load animation?
$(document).ready(function(){
$("h1").addClass("animated zoomInDown")
$("h1").hover(function(){
$(this).addClass('animated shake');
});
A:
If you're using hover() make sure you have handle... | {
"pile_set_name": "StackExchange"
} |
Q:
jQuery unable to find same div if i remove and add it back?
I'm attempting to load different content into a div, the refresh code I have is quite similar to this: http://jsfiddle.net/TbJQ3/6/ but is more complex, it takes padding and magin etc into account.
The difference is that in my actual code, I used .load() ... | {
"pile_set_name": "StackExchange"
} |
Q:
Graphs of different orders( at different powers)
Given a connected graph $G =(V,E)$ and a positive integer $k$,
the k-th power of $G$, denoted $G^k$ , is the graph whose set of
nodes is $V$ and where vertices $u$ and $v$ are adjacent in $G_k$ if
and only if $d(u,v) \le k$ in $G$.
$P_8$ is a path graph with 8... | {
"pile_set_name": "StackExchange"
} |
Q:
How can i represent multiple m:n relations from two tables?
My tables:
medic->id_medic, name
patient->id_patient, name
I have the following situacion:
A medic can have many patients and a patient can have many medics
A medic can send many messages to a patient and a patient can send many messages to a medic.
how... | {
"pile_set_name": "StackExchange"
} |
Q:
Sidekiq stopped processing jobs in queue
Sidekiq had been processing jobs just fine (finished 30 jobs overnight). This morning, it completely shut off processing the queue (now up to 28 jobs).
Running on Heroku (1 Standard-2x Web Dyno, 1 Standard-1x Worker Dyno).
Procfile (where I have had the most trouble finding... | {
"pile_set_name": "StackExchange"
} |
Q:
The category of posets
I am trying to teach myself category theory and, as a beginner, I am looking for
examples that I have a hands-on experience with.
Almost every introductory text in category theory contains following facts.
The class of all posets with isotone maps is a category (called $Pos$).
Every individ... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I control error level of NSLog messages on iOS?
I observed the NSLog() does log all my messages with error level Warning but when I look to the console I see other messages with different error levels like Info, or `Error.
How can I control the error level of my messages?
A:
I don't believe you can alter... | {
"pile_set_name": "StackExchange"
} |
Q:
¿Transformacion de punteros?
Tengo una duda sobre los punteros.
Al declarar un puntero sea short, int, float, etc este lo podemos pasar a un puntero void ¿porque?. Y ¿como se testea para hacer lo opuesto?. Gracias
A:
Un puntero a void* es un puntero genérico, es decir, puede apuntar a cualquier tipo de dato.
Por... | {
"pile_set_name": "StackExchange"
} |
Q:
Split a string into multiple elements
I need to split a string into multiple elements so that they can be inserted into an array. Below is an idea of what'd i'd like this to look like. The number of users is dynamic, but the string format never changes.
string Usernames = "User1, User2, User3, User4";
String[] U... | {
"pile_set_name": "StackExchange"
} |
Q:
C++ return by value - what happens with the pointer inside?
So I'm having a bit of SegFaults and was wondering if someone can explain me in higher depth how does this work.
I have a wrapper class around a numeric variable, and I'm trying to build a compute tree of the expression. Here is a sample code:
class Doub... | {
"pile_set_name": "StackExchange"
} |
Q:
Longest shortest path between any two nodes of a graph
I am trying to find two nodes that are furthest from each other in my Neo4j Database. For the purposes of my analysis, I am considering shortest distance between the two nodes as the distance between them. Therefore, the two nodes that are furthest will have l... | {
"pile_set_name": "StackExchange"
} |
Q:
How do I use parallel processing for a function acting on a numpy array, when part of the function is to add rows to the array and keep updating it?
The code I have below functions perfectly fine.
But what I want to change is: if the "variable" I have is greater than 0, I want to add a row, for example [0,1,0,0],... | {
"pile_set_name": "StackExchange"
} |
Q:
hash code of different objects are the same
I am facing a bizarre outcome in a java application (Spring batch job) after one of the internal custom dependencies -a library we have developed in my company- has been upgraded.
After the upgrade in the code two new different objects of the same type show to have the ... | {
"pile_set_name": "StackExchange"
} |
Q:
how to merge 2 database results in one column
I have 2 columns as follow:
A | B
---|---
7 | 1
7 | 2
3 | 7
4 | 5
-------
I want to get 1 column containing (1,2,3).
Currently i'm quering this:
SELECT `A` , `B`
FROM `mytable`
WHERE `A` =7
OR `B` =7
but I'm getting 2 columns containing the number 7... | {
"pile_set_name": "StackExchange"
} |
Q:
Is the Three-Eyed Raven incapable of emotion?
(Game of Thrones, S07E03–E04)
When Meera leaves Bran at Winterfell and is unsatisfied with his lack of gratitude for all of her help (which you would be after all they went through), she concludes that 'Bran' died in the cave, leaving only the Three-Eyed Raven.
Bran te... | {
"pile_set_name": "StackExchange"
} |
Q:
Converting a text file to a CSV file
I'm attempting to learn more about Java and have created a method that takes a text file with stdout (space separated file) and converts it to a CSV file.
I was attempting to use standard Java SE version 8.
Is there a better, more efficient, way of doing this?
The logic is:
Op... | {
"pile_set_name": "StackExchange"
} |
Q:
NHibernate QueryOver and string.format
I am working with QueryOver in NHibernate and I want to customize one property of my projected DTO using the following syntax:
IEnumerable<PersonResponseMessage> persons =
session.QueryOver<PersonEntity>()
.SelectList(list => list
.Select(p => p.Active... | {
"pile_set_name": "StackExchange"
} |
Q:
Where is $page['sidebar_second'] rendered? I want to edit the style of the listing of the recent comments
The comments in the block recent comments is styled with an unordered list. I want the points of the list beginn exactly under the N of New Comments.
Google Chrome tells me that there is a padding-left: 40px... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any API to fetch both rear and front camera view at the same time?
I have a requirement to show both rear and front camera in a single display. Is it possible to show both simultaneously. Is there any api to fetch both views at the same time?
A:
Same as a single camera... Just double.
Two SurfaceHolder... | {
"pile_set_name": "StackExchange"
} |
Q:
High-pitched noise from boost converter. Need your help
I'm experiencing some high-pitched squealing noise from my boost converter, I'm getting some resonating frequency when I start increasing the load current.The inductor is a 47uH inductor. The part number for the diode is MBRD640CTT4G.
This is my schematic:
... | {
"pile_set_name": "StackExchange"
} |
Q:
Git gets confused with ä in file name
I'm in a bad git situation because of a filename with an ä. It's an old file that probably has been there for ages:
So it's marked as untracked with \303\244 but then if I remove it, it's instead marked as deleted, but with \314\210. Very confusing. I don't really care about t... | {
"pile_set_name": "StackExchange"
} |
Q:
Changing the toolbar in Emacs Lisp
I'm trying to customize the Emacs toolbar with my own images and commands. I have two images for each button, a "disabled" and an "enabled" image. Unfortunately, elisp only provides tool-bar-add-item, which allows you to specify a single image. However, the extended menu item syn... | {
"pile_set_name": "StackExchange"
} |
Q:
Authorization error on gdata Spreadsheet
Was using gdata to update a spreadsheet file on my drive using python on appengine. Everything works fine until recently, the code started encountering error.
import webapp2
import gdata.spreadsheet.text_db
from google.appengine.api import mail
client = gdata.spreadshe... | {
"pile_set_name": "StackExchange"
} |
Q:
error: `itoa` was not declared in this scope
I have a sample c file called itoa.cpp as below:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int i;
char buffer [33];
printf ("Enter a number: ");
scanf ("%d",&i);
itoa (i,buffer,10);
printf ("decimal: %s\n",buffer);
return 0;
}
When i compile t... | {
"pile_set_name": "StackExchange"
} |
Q:
Does Slick handle a collection like List/Set etc?
My question is:
My Scala's case class has parameters where a collection(i.e., List) is a part of its constructor parameters, and I wonder how to map my case class into Slick style database table or tables if necessary?
In other words, I would like to "Join tables i... | {
"pile_set_name": "StackExchange"
} |
Q:
Saving java file in maven project fails
when I try to save a java file in my project the following error occurs.
Failed to (re)build the JAX-RS metamodel for projet TestApp
java.lang.NullPointerException
It only occurs when I create the default constructor so
public class Account {
public Account () {}
}
... | {
"pile_set_name": "StackExchange"
} |
Q:
How response.end and response.send differs?
Hi I am trying to build a simple application using express js. I am new to node and express js. Can somebody explain the difference in response.end and response.send
I tried this command and both sent the request(message) to the Server.
res.send('Send the message');
res.... | {
"pile_set_name": "StackExchange"
} |
Q:
How good is current tsunami prediction?
We all know that predicting tsunami and earthquake is difficult, with too many variables involved.
But with the advent in data collection and computing power and better models, one should be able to predict tsunami better than in the past. How accurate is current tsunami pre... | {
"pile_set_name": "StackExchange"
} |
Q:
Multiple passes with awk and execution order
Two part question:
Part One:
First I have a sequence AATTCCGG which I want to change to TAAGGCC. I used gsub to change A to T, C to G, G to C and T to A. Unfortunetly awk executes these orders sequentially, so I ended up with AAACCCC. I got around this by using upp... | {
"pile_set_name": "StackExchange"
} |
Q:
how to solve orientation issue?
I want to make 480x800, 600x800, 600x1024 and 800x1280 resolution layouts.
i have to show both orientation(portrait and landscape) with resolution 600x800, 600x1024 and 800x1280 and resolution 480x800 show only landscape mode.
Right now it is showing both orientation mode.
<?xml ver... | {
"pile_set_name": "StackExchange"
} |
Q:
The set $\{1,2,3,\ldots,n\}$, where $n \geq 5$, can be divided into two subsets so that the sum of the first is equal to the product of the second
A peer of mine showed me earlier today this problem, taken from a 7th grade math contest :
Let $A=\{1,2,3,\ldots,n\}$; (where $n \geq 5$) prove that $A$ can be divide... | {
"pile_set_name": "StackExchange"
} |
Q:
Rails - All tests fail - ' ... ConstraintException: UNIQUE constraint failed: admins.email ... '
When I run this: rails test, then all my (10) tests fail, with the same error (Unique constraint failed). Here's the error-message:
E
Error:
WelcomeControllerTest#test_the_truth:
ActiveRecord::RecordNotUnique: SQLite3... | {
"pile_set_name": "StackExchange"
} |
Q:
Employee and Customer = People Table?
Is it bad to store information such as: name, phone number, address etc. in one table? That would result in the Employee and Customer Table having a foreign key referencing to the "People" Table.
If we don't store such information in one table, we would have the Employee and C... | {
"pile_set_name": "StackExchange"
} |
Q:
Why are there many different ways to pronounce a phoneme?
A phoneme may be pronounced in different ways, depending on its position in the utterance, and still remain the same phoneme. Why?
A:
People don't produce phonemes.
Instead, they produce phones.
A listener then maps phone to phoneme.
So, if two speakers p... | {
"pile_set_name": "StackExchange"
} |
Q:
WatchKit issue retaining data between classes
I have two classes named InterfaceController and LoadInterfaceController.
I'm fetching information in the LoadInterfaceController that I wish to pass-on to a variable in my InterfaceController class.
LoadInterfaceController:
- (void)fetchData {
NSArray *database = ... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there a makefile for OpenEdge ABL?
I'm desperately looking for a way to make a makefile for Progress OpenEdge ABL, and let it compile only a subset of the application, based on what source file has changed.
Has anyone set up anything like this? I've used makefiles before in C applications, but never under Windo... | {
"pile_set_name": "StackExchange"
} |
Q:
SSMS 2014 Addin ServiceCache Error
I'm trying to get the current connection using sql server 2014 (visual studio 2013), but I keep getting ServiceCache The type 'Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache' exists in both 'SqlPackageBase.dll' and 'Microsoft.SqlServer.SqlTools.VSIntegrat... | {
"pile_set_name": "StackExchange"
} |
Q:
How to display child elements of at 100% height?
I am having an issue trying to make a specific element inside my <li> tag to take up 100% of the <li> height. Specifically I want an icon I added with a border on its right to fill the entire height of the <li> element.
as you can see from the last item in the lis... | {
"pile_set_name": "StackExchange"
} |
Q:
Symfony3 : choice type field filled with array of objects
I have an entity Product. My product can have multiple names in different languages. A name in french, a name in english, etc. I don't want to use an automatic translation.
The user will have to write the names in the Product form and select the correspondi... | {
"pile_set_name": "StackExchange"
} |
Q:
React-Select : How to rotate dropdown indicator when menu open
in example : https://codesandbox.io/s/jz33xx66q9?module=/example.js
i want to rotate emoji to up size down when menu open
how to do that
A:
react-select provides a styling api which offers such customization. Each attribute in the object given to the... | {
"pile_set_name": "StackExchange"
} |
Q:
how to work with jprogress bar in Java Swing
i have a desktop GUI in swing , i want to show status of user storage used in the GUI using jProgressBar, Please suggest some attractive way to do.
A:
I suggest you read this tutorial. I think it is the most attractive way to learn how to use JProgressBar.
To elabora... | {
"pile_set_name": "StackExchange"
} |
Q:
How to iterate through a list of Data frames and drop all data if a specific string isnt found
I am using the python library Camelot to parse through multiple PDFs and pull out all tables within those PDF files. The first line of code yields back all of the tables that were scraped from the pdf in list format. I ... | {
"pile_set_name": "StackExchange"
} |
Q:
Conversion Error
can someone please tell me why i am getting the following error, when i run through my code, im not to sure if its a problem with my sql statement as this seems to be ok, but i added it below so that i can get a second opinion
"Conversion failed when converting date/time from character string"
pub... | {
"pile_set_name": "StackExchange"
} |
Q:
For the long-term evolution of atmosphere/orbit, when is perihelion more important than mean distance?
When we want to figure out the long-term evolution of a planet's atmosphere/orbit, when is perihelion more important than mean distance?
E.g. some processes (like Jeans Escape and escape of atmospheres) are dispr... | {
"pile_set_name": "StackExchange"
} |
Q:
How to iterate over a nested TreeMap without creating temporary Objects
I'm working on a nGrams, and I'm using a nested TreeMap kind of datastructure to store the ngrams. The template for Quadgrams looks like this.
public TreeMap<String, TreeMap<String, TreeMap<String, TreeMap<String, Integer>>>> ngramWordCounter;... | {
"pile_set_name": "StackExchange"
} |
Q:
Sharepoint or MS Project?
We currently use a web based project management system (less than 30 users) that we pay way too much for. I'm trying to decide if we want to move to a Project or Sharepoint environment.
I understand what MS Project is and how it works, but I've never really understood what Sharepoint doe... | {
"pile_set_name": "StackExchange"
} |
Q:
Adopt a consistent policy on what "Requires Editing" means in the review queues
In the review queues (and the triage queue in particular), there are three options for a post. One of those options is labeled "Requires Editing". In the description of what those options mean, it says:
Requires Editing for questions ... | {
"pile_set_name": "StackExchange"
} |
Q:
how to time an arbitrary function in f#
here's the problem. I need to time a function in f# using another function. I have this piece of code
let time f a =
let start = System.DateTime.Now in
let res = (fun f a -> f(a)) in
let finish = System.DateTime.Now in
(res, finish - start)
which I'm trying to call ... | {
"pile_set_name": "StackExchange"
} |
Q:
Covariant derivative of second fundamental form
Picture below is from 1706th page of Zhao Liang's The first eigenvalue of Laplace operator under powers of mean curvature flow.
$g_{ij}$ is Riemannian metric, $h_{ij}$ is second fundamental form, and $H=g^{ij}h_{ij}$. $\nabla$ is Riemannian connect, and $\nabla^pH=g... | {
"pile_set_name": "StackExchange"
} |
Q:
PHP Repairing Bad Text
This is something I'm working on and I'd like input from the intelligent people here on StackOverflow.
What I'm attempting is a function to repair text based on combining various bad versions of the same text page. Basically this can be used to combine different OCR results into one with gre... | {
"pile_set_name": "StackExchange"
} |
Q:
QueryDSL - order by count as alias
I'm using queryDSL to get users with some additional data from base:
public List<Tuple> getUsersWithData (final SomeParam someParam) {
QUser user = QUser.user;
QRecord record = QRecord.record;
JPQLQuery = query = new JPAQuery(getEntityManager());
NumberPath<Long> cAlias ... | {
"pile_set_name": "StackExchange"
} |
Q:
ASP.NET MVC Core DateTime format using jQuery DateTimePicker
I have an ASP.NET Core MVC application with a view model which has a DateTime property for "Date of Birth":
[Required]
public DateTime DateOfBirth { get; set; }
I want to let the user to pick/enter date in dd/mm/yyyy format.
In the view originally I was... | {
"pile_set_name": "StackExchange"
} |
Q:
print out the position of vertices after rotation
i drawn a cube and i can rotate it. I would want to print out the position of vertices after rotation.
in some tutorials i found that i can use QMatrix4x4 to rotate my cube and the to get the new position of vertices. the i changed mu code:
void MyWidget::paintGL(... | {
"pile_set_name": "StackExchange"
} |
Q:
Sed find and delete single word
I would like to remove a username from a .htaccess file.
Example .htaccess:
RewriteEngine On
RewriteBase /~usern/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~usern/index.php [L]
I want to us a sort of dynami... | {
"pile_set_name": "StackExchange"
} |
Q:
Swift: implement a protocol variable as a lazy var?
It seems that it's not possible to implement a variable that's required by a protocol, with a lazy variable. For example:
protocol Foo {
var foo: String { get }
}
struct Bar: Foo {
lazy var foo: String = "Hello World"
}
Compiler complains that Type 'Bar' do... | {
"pile_set_name": "StackExchange"
} |
Q:
How to improve swimming performance in the gym?
Question is quite simple. I'm looking for gym-specific bunch of exercises which can help me to build up swimming performance/endurance/speed.
So, when I'm not in the water I can still be continuously improving my swimming. Of course I know that I need to go into wate... | {
"pile_set_name": "StackExchange"
} |
Q:
ServiceMix config change for a bundle in scripting mode using `client` binary
I have a ServiceMix 5.1.4 instance (localhost) and I want to script some property change with the provided client (smx_home/bin/client).
If I test manually my commands in the smx console (without using client)
config:edit org.myspace.tes... | {
"pile_set_name": "StackExchange"
} |
Q:
Compare two tables in different databases and change one table
I have two databases in the same sql instance. One is backup2 which is a restored backup of my original database.
Database Table
Original.Payments
Backup2.Payments
I have two fields in each that I need to compare:
PaymentsId - guid
IsProcessed - bit
... | {
"pile_set_name": "StackExchange"
} |
Q:
Check multiple tables in one single query
I want to SELECT data from my MySQL using PHP but the WHERE clause can be kind of confusing.
Basically i want to select the appointments that are coming up, then checking if the business is wanting to send out reminders, then checking if the user wants to receive reminders... | {
"pile_set_name": "StackExchange"
} |
Q:
What are the best practices in adding custom header fields for a .net web api call on Swagger?
I can see a lot of ways to do it online but most of them are messy, for me I was using these two ways
Using scopes, I did one for mobile and another one for the website
var webScope = apiDescription.ActionDescriptor.Ge... | {
"pile_set_name": "StackExchange"
} |
Q:
Integrating Gluon Scene Builder into Eclipse?
I've been figuring out how to integrate Gluon Scene Builder into my IDE of choice and decided it would be a good share with the Stack Overflow community for those of you who have had trouble with this in the past. Keep in mind this is for those who have had prior exper... | {
"pile_set_name": "StackExchange"
} |
Q:
level shifting 5V pulse to 12V pulse
When I search for level shifting 5V pulse to 12V, I came to know about the circuit given below.
It is simply based on a push-pull amplifier configuration as you all know. And what I have understood is, when the input reaches 5V (high) level, then Q1 conducts and since it is an... | {
"pile_set_name": "StackExchange"
} |
Q:
Objective-C and C interoperability
We're going to have to write a C library and this library has to be accessible from Objective-C. Now I don't know anything about Objective-C so I wonder how simple Objective-C <-> C interoperability is. Is that as simple as including the C header in the Objective-C code and linki... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.