text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Get Recent App Button Clicked in Launcher App I am writing a launcher application which will launch other apps on its OnCreate method. Following is the code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......
Intent i = PckManager.getLaunchIntentForPackage("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43994971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ throw() optimization According to Optimizing C++,
Use the empty exception specification (that is, append throw() to the declaration) for the functions you are sure will never throw exceptions.
What if I know that 90% of my methods won't throw an exception? It seems unconventional and verbose to append throw(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26789046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does the global keyword inline the global exactly as a local variable declaration in python? So are these two exactly equivalent vis a vis performance (that is, is the generated code exactly equivalent):
class A(object):
const = 'abc'
def lengthy_op(self):
const = self.const
for i in xrange(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36178330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Instantiation of a template for local variable Is a template instantiated if a local automatic variable of that type is defined?
e.g.
template<typename T> class MyClass {
};
int main() {
MyClass<int> var; // Does this cause instantiation?
}
Edit:
the reason why I'm asking this is the following code:
template<typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30666863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tensorflow with Keras: sparse_categorical_crossentropy I'm new on StackOverflow and I also recently started to work with Tensorflow and Keras. Currently I'm developing an architecture using LSTM units. My question was partially discussed here:
What does the implementation of keras.losses.sparse_categorical_crossentr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63527580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enhance Localization performances? (ComponentResourceManager.ApplyResources) After experiencing some performances issues on my client side, we decided to give a try to some of the performance profilers to try to find the bottleneck or identify the guilty parts of the code.
Of course, as many performance investigatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2604720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: CSS problem with divs and inline components Imagine a code like this:
.div {
width: 100%;
height: 100px;
background-color: green;
}
.div1 {
width: 100px;
height: 100px;
background-color: red;
}
.div2 {
width: 100px;
height: 100px;
background-color: blue;
}
.main {
background-color: yellow;
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75364170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress Customizer With External CSS File Is It possible Wordpress Customizer to create Dynamic CSS file and use it as external css file instead of Inlining it in header with function
add_action( 'wp_head', 'custom_css');
I need to make Header More Clean as it contains lots of CSS in header right now..
A: Some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38922350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: drools can't get the data I need for the or condition rule "151"
when
$master:BusinessMaster()
$map:HashMap() from $master.indexMap
$mapads_mst_bas_info:HashMap() from $map.get("ads_mst_bas_info")
$mapads_mst_order_mutl_stat4:HashMap() from $map.get("ads_mst_order_mutl_stat4")
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73403814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix this Node controller function and send data from 2 different models? There are 2 models booking and listing. The point is that for creating a booking we need to use listing details too and send all the details through the Nodemailer after the saving details in DB. here is the code:
Listing model:
const li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58267043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unexpected token '<' when loading coreui.bundle.min.js Every time I load the following:
<script src="~/vendor/@@coreui/coreui-pro/js/coreui.bundle.min.js"></script>
either before or after:
<script type="text/javascript"
src="~/lib/jquery/dist/jquery.min.js"></script>
I got this:
Uncaught SyntaxErro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71996369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax OnFailure function I have an AJAX.RouteLink which has the following AJAXOptions
new AjaxOptions
{
HttpMethod = "POST",
OnFailure = "OnFailure",
OnSuccess = "OnSuccess"
})
My OnFailure method looks like this
function OnFailure(ajaxContext) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21160980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript: using a while loop to repeat a function Let's say I have a collection of divs with the class "Foo" and I want to change the colors of the text incrementally over and over. Each forEach should run this change one time but I need to run the function again to change them again.
If I want to repeat to conti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54192541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Last-Of Type and Last-Of-Child HTML:
<div class="plan-box">
<h3>...</h3>
<p>...</p>
</div>
<div class="plan-box">
<h3>...</h3>
<p>...</p>
</div>
CSS:
.plan-box:last-of-type {
...
}
In the above CSS code if I use last-of-type or last-child css selector on .plan-box will that select the last-chi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34410927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SVG does not fit on Iphone - (.htaccess is the problem) I am getting crazy with the animated SVG of my website ( https://finbizimpactinvesting.com ). On the desktop it works well and the SVG fits in the middle of the monitor (chrome, safari, mac, windows all the combination) as well as android devices, but on Iphone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57469450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TypeError: config.headers.has is not a function Getting errors when executing test cases in Redux Tool Kit query,
*
*Used React Native Testing Library for rendering components.
An unhandled error occurred processing a request for the endpoint "getProducts".
In the case of an unhandled error, no tags will be "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74347687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create multiple links from a single array of strings Rails - Ruby I know it might seem simple but I've tried to create multiple links from this array in Rails
array = ["/uploads/content/attachment/folder/file1.pdf/file2.pdf/file3.pdf"]
What I want to do is create a link for file1 and another for file2 and so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58456941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bitmap 16bpp A1R5G5B5 to 32bpp I need to read the values R, G and B image with a bit mask for 16bpp A1R5G5B5 in PHP, I know you have to understand Bitwise, but I'm not very good in this matter, so does anyone could show me how to do this?
Sorry for the English, is that I am Brazilian and I am using a translator.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8185117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: use tags only body part on Newsletter Email template in PHP I have been sending a Newsletter using Email Template, and it's working fine.
But I have a problem with Body part in my newsletter.
Because I have used strip_tags PHP function for removing <br> tags from Template,
Now I need <br> tags only for body parts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17563986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript - Change page style without showing previous one I have a website that I want to add different styles to. The user may choose any style he wants, I store it in localStorage and display it. I have this code:
<link href="default.css" type="text/css" rel="stylesheet" onload="this.href = window.localStorage['... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46002188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Escaping quotes and html in a data- attribute JSON object Using the HTML5 data- attribute, one can store JSON in HTML as shown in the HTML below. This works great with string key:value pairs but I can't figure out how to make the values include special characters or HTML.
The part of the JSON object that is giving ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13705473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why does this binding display a class name? What might cause the value of a Silverlight 4 DataGridTextColumn.Header to display as System.Windows.Data.Binding rather than the resolved bound value? It seems like a ToString is happening somewhere that displays a class name rather than the formatted value of the class.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3625378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use IF and ELSE statement for MS query
Databasename: PEMS
Table name: AccountInfo
columns: AccountID, SubscriberID, Location,Passwords,AccountStatus
AccountStatus values inside are 'Activated' and 'Deactivated'
Accepts or rejects an accountID based on their AccountStatus.
Example: if an account has an Accou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28667911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My Ajax is trying to render a view that it shouldn't So everything works. But if a user has firebug's console open, they'll see a bug. :D
When my AJAX is sent :
$(".remove_qf").live("click", function(){
$.ajax({type: "POST", url: $(this).attr("href"), data: { '_method': 'delete' }, dataType: "script"});
return f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3495986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: grails JSON binding to LinkedHashSet instead of JSONArray for deeply nested relation I have three levels deep of a hierarchy that I am binding in a JSON request:
Group -> Zone -> Segment
(1) -> (n) -> (n)
In my command object I have:
class GroupCommand {
Long id
Set zones
}
When binding the JSON request ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11513416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Clock not updating every second using moment.js First time using moment.js and I am struggling to implement a clock to show the time in CET and PST. My code is as follows:
function cetClock() {
var cet = moment.tz("Europe/London");
var today = new Date(cet);
var h = today.getHours();
var m = today.ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46367847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to convert the topics into just a list of the top 20 words in each topic in LDA in python I am currently working on LDA logarithm in python. I want to covert the topics into just a list of the top 20 words in each topic. I tried below code but got different output.
I want my output in following format: topic=2,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45711628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make SELECT more faster without NESTED LOOP Hello i'm making a website for webshop for t-shirts. Every product (from all 1400) has own ID (idedro), but every ID has different colors, sometimes one, sometimes twenty.
I need to show every product in own picture with all colors it has below, but i think a loop i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46632011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React firebase doesn't await I want to get data from firebase and map it and render a table with it but the firebase function returns data after the page loads.
const [datas, setData] = useState();
var ref = db.ref("something");
useEffect(() => {
const fetchData = async () => {
await re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72727474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to show numpy array imshow plotly as frames? Create an array and make a picture out of it
xg = np.random.rand(100, 22400)
fig = px.imshow(a,aspect="auto", color_continuous_scale='gray')
out1.show()
The problem is that the array is long and the graph does not work correctly, is it possible to display the array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68589418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent css media types from changing the print version Currently developing a website that uses responsive css to change it's layout for smaller devices / screens etc.
The client has asked to be able to print the website from anywhere how it appears on desktop, so whichever style of print you do then it would alway... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25507497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Groupby multiple row and keep two columns in pandas I have dataframe in format name, actor_link, movie_link and I want to group it by actor link to format name, actor_link, list_of_movies_where_actor_appears
example input
Tom Hanks,https://www.csfd.cz/tvurce/330-tom-hanks/,https://www.csfd.cz/film/10135-forrest-gump... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72623349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# + WPF : text mode equivalent of old DOS libraries or curses The goal: For a personal project, I'd like to simulate an old-fashioned computer interface with full screen command line, hex editor, text editor, etc. All text, no graphics. (For a simulator/emulator of a hypothetical computer.)
The starting point: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5150821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparison method violates its general contract in sorting method I get an error in my sorting method.
Comparison method violates its general contract
This is my sorting object with sort method
public abstract class ComparablePerson extends IDValueItem implements
Comparable<ComparablePerson> {
private... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13763604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web services error trapping(Jquery + asp.net web service) I am on the look out for an accepted solution for trapping errors in the following scenario:
i have an asp.net web services that interacts with the database. I interact with the web service through jquery's $ajax function.
I would like to know what is the ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2141359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access a webelement in other class in POM - Selenium I have 2 pages (landing page and registration page). In landing page, I am storing webelements using @FindBy annotations. I need to use the Webelements oflanding page in the registration page. How can I proceed?
A: You just need to create an object of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45986374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: logstash kv filter, converting strings to integers using dynamic mapping I have a log with a format similar to:
name=johnny amount=30 uuid=2039248934
The problem is I am using this parser on multiple log files with each basically containing numerous kv pairs.
Is there a way to recognize when values are integers an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31031895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dataflow reading using PubSubIO is really slow I'm having some trouble with a Dataflow pipeline that reads from PubSub and writes to BigQuery.
I had to drain it to perform some more complex updates. When I rerun the pipeline it started reading fom PubSub at a normal rate, but then after some minutes it stopped and n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45772189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java.io.IOException: Cannot run program "/bin/bash": error=24, Too many open files I am connecting wmic via terminal for every 5 seconds by using thread. But I got "java.io.IOException: Cannot run program "/bin/bash": error=24, Too many open files"
after 1 day.
Thread program:
public void run() {
try {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25029187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get the layer from namespace? I have a code with namespace like this:
namespace nameFile.Common.otherParameters
{
public interface IEntityManager : **ICommon**
{
}
}
And I want to get the layer name to a property (in C#).
How can I do that?
(see the interface inherit from the layer name + I)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/56846808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add csv row to array in powershell I'm looking to import a csv file. Take the first row(with headers) and add it to an array in powershell.
$csv = Import-CSV "test.csv"
$array = @()
A: Would you need an explicit conversion to array when import-csv is giving you a nice enumerable array of System.Object inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54953266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to calculate the average of the selected attribute in Power BI I am working on the Fifa 19 Kaggle Dataset. I want to create a Gauge chart that compares the Overall stat for a Player compared with the Overall Average of the club(target value) he plays for.
I tried to create a calculated column:
Club Overall = cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56128872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Triggering an output task with NIDAQmx I'm having trouble carrying out what I think should be a pretty straightforward task on a NIDAQ usb6002: I have a low frequency sine wave that I'm measuring at an analog input channel, and when it crosses zero I would like to light an LED for 1 second. I'm trying to use the nid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53356449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# ASP.Net Menu control multiplies when click Static item (Ex. SMS) MenuItem menuTest2 = new MenuItem(); // Main Manu 2
menuTest2.Text = " SMS ";
//menuTest2.NavigateUrl = "something";
//menuTest2.Value = "something";
Menu1.Items.Add(menuTest2);
MenuItem child_SM1 = new MenuItem();
child_SM1.Text = "SMS Subcri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25118337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: insertSubView:belowSubview: for a UIImageView I am woundering if its possible to use the insertSubView:belowSubview: As it stands the below code is throwing this warning error
Incompatible pointer types sending 'UIImage *__strong' to parameter of type 'UIView *'
I am hoping maybe I have done something slightly wron... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10922911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to iterate multidimensional array in node.js/javascript? I am trying to iterate multidimensional array in Node.js. I have array in JSON object like this :
{
"operationalHours": [
[
{
"opens": "11: 15AM",
"closes": "11: 30AM"
},... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33931368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Zap docker - Active scan Is there a way to run active scan through ZAP docker?
I have a web application that requires login and after login I need to record the actions I am doing in UI and need to do active scan against that page. It is a form based web application.
We are using python with selenium for UI automati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66385885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable not showing value in template tag I have the following segment of code in view:
image = [
'register.png',
'checkin.png',
'checkin.png'
]
imagetext = [
'Register Patient',
'Checkin Patient',
'Checkin Patient'
]
link = [
'/clinic/%s/register' % cliniclabel,
'/clinic/%s/checkin'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52867356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript generate square wave sound I want to generate a square wave sound using a signal "1 0 0 0". Each code (0,1) has a pattern as shown in picture.
For example, code 1 will produce a sound for 500µs and than stops for 1000µs.The signals should go from zero to maximum positive amplitude and will not have any ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32630211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find dependency conflict in Gradle I'm trying to add nineoldandroid lib to my project, but I can't find where my dependency problem occurs.
My dependencies:
dependencies {
compile files('src/main/libs/guice-3.0-no_aop.jar')
compile files('src/main/libs/javax.inject-1.jar')
compile files('src/main/li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26489788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting minDate on datepicker in javascript I'm trying to set the minDate of a datepicker using the date that the user picked from another datepicker (i.e. check-in/check-out dates).
Here's my code:
var checkin = document.getElementById('check-in');
var checkout = document.getElementById('check-out');
var dateField... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44593726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Styling echarts - Cannot modify title color Looking to work with the below chart, but cannot get to change the title color to white and the axis and axis numbers to grey (or white). This should go above a dark background. Does anybody knows how to change the title color with echarts ?
<script type="text/javascript">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55627466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: War deployment using puppet in Jboss I have deployed the war in Jboss using puppet command and i checked the /standalone/deployments folder to check my .war file but i don't see any .war file there inside /standalone/deployments folder:
/opt/puppetlabs/bin/puppet apply --basemodulepath=/opt/alu/deploy/puppet/modules... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57459249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I define vocabulary "tuples" in Bixby? I have an enum defining names of altbrains (publications) like so:
enum (AltBrainsNames) {
description (AltBrainsNames)
symbol (Inside the Helmet)
symbol (Impeachment Sage)
symbol (Iran Conflict Tracker)
symbol (Historical Carbon Dioxide Emissions)
symbol (Pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59940672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby on Rails: How to send a specific/chosen record from one table (User) to another with a button from user interface I started off with Ruby one week ago. My project is to make a Restaurant reservation webpage. I made the User table that contains Users name/last name/address/email/password/password confirmation in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36687623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server: ODBC Connection pooling / C API I want to clarify how to do connection pooling with SQL Server from C, using ODBC. I know this question is, like.... sooooo 1998, but... I've never done it in C, so... here goes:
First I think I have to set the attribute to enable pooling:
rc = SQLSetEnvAttr( NULL, // m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2776443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP DOMDocument - Get all elements on the first top-level I would like to find all elements in the $content without children.
With my actual code, I find all elements with child (strong, ahref, ...).
$html = new DOMDocument();
$html->resolveExternals = false;
$html->preserveWhiteSpace = false;
$html->substituteEntit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65953595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing smarty multidimensional array values using jquery I have an array being passed from php which looks like:
$resultsArr[123]['A']='q';
$resultsArr[123]['B']='d';
$resultsArr[113]['C']='s';
$resultsArr[113]['A']='ss';
$resultsArr[113]['B']='sd';
$resultsArr[111]['C']='sds';
$resultsArr[111]['A']='vv'; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11842446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mercurial insert CURRENT revision number in files on hg archive I need the current version (version of the latest file) and it's tag to be included in files when I do hg archive.
When using keywords extension in includes the latest version of each file, not the current version.
Example:
repository contents:
file1 J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17529540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: df.query("'string'") produces ValueError: NumExpr 2 does not support Unicode as a dtype If anyone has a solution for how I can get this to work please let me know. I would prefer not downgrading python to 2.x.
I have tried to remaps some of the columns to different dtypes. I think python 3.x may be storing strings... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74168017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ionic 4, Keyboard moves content I have this html in my ionic project
<ion-header>
<ion-toolbar mode="ios">
<ion-searchbar>
</ion-searchbar>
<ion-title>
</ion-title>
</ion-toolbar>
<ion-list class="m-0-p-0">
<ion-item *ngFor="let user of users">
</ion-item>
</ion-list>
</ion-header... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54784427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use STLPort in my kernel? I am developing a kernel in C++. But I do not want to write a stdlib; for that purpose I have downloaded STLport http://www.stlport.org/, but I don't know how to install and use it.
I am using Linux for building my kernel.
How can I use c++ standard libs in my kernel?
And I do not wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7470346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Duende IdentityServer 6.20 .Net6.0 "AuthenticationScheme: idsrv was not authenticated" I have a fully functioning Duende IS6 solution, servicing an Angular client. However the Seq log output contains a lot of these entries with each request:
{
"@t": "2023-01-08T19:14:58.3783602Z",
"@mt": "AuthenticationSchem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75051049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to copy cell range as table from excel to powerpoint - VBA I cant find any way to do this. What I have now is that it copy the range as an image:
Dim XLApp As Excel.Application
Dim PPSlide As Slide
Set XLApp = GetObject(, "Excel.Application")
XLApp.Range("A1:B17").Select
XLApp.Selection.CopyPicture Appearance:=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3838819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Telosys 3 not generating Identity annotation I am using Telosys to generate my DAL layer from database and it is working smoothly. However I have noticed that it only generates field annotation for Identity fields as AUTO
@GeneratedValue(strategy=GenerationType.AUTO)
I have in my database primary key fields set to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72999104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to watch nb-Model at child? I am using ui-select inside a controller, I need to listen for changes for the ng-model from the controller, here is my HTML:
<div id="countryCtrl" country-selection class="form-inline">
<ui-select ng-model="selectedCountry" theme="selectize" style="{{$cat_style}}">
<ui-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29605175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: selecting element by partial string that was loaded cannot grab value I am currently working on an application that already has an existing functionality of loading information that i need to parse together with ajax calls loading this information in. I am having an issue selecting an element value on the loaded do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18514198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB Object Serialized as JSON I'm attempting to send a JSON encoded MongoDB object back in my HTTP response. I've followed several other similar questions but am still missing something. No exceptions are thrown, but I get a cryptic <api.views.MongoEncoder object at 0x80a0c02c> response in the browser. I'm sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6255387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JQuery Moving 30 boxes from left to right, then right to right I'm learning Jquery right now and I'm stuck on how I move my boxes from left to right, then right to left. They have a delay meter that I can use as well to change the speed. I just don't know what I'm missing to make the boxes move in the two specified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35108716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Get looked up array count for a document i have 2 collections : words and phrases
Each word document has an array of phrases id's. And each phrase can be active or inactive.
For example :
words : {"word" => "hello", phrases => [1,2]}{"word" => "table", phrases => [2]}
phrases :{"id" => 1, "phrase" => "hello world!",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43821447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: r - Overall mean of elements in list by rows and columns I need to take the overall mean in each row and column within a list of data.frames:
set.seed(1)
df_1 = data.frame(a = rnorm(3), b = rnorm(3), c = rnorm(3))
df_2 = data.frame(a = rnorm(3), b = rnorm(3), c = rnorm(3))
df_3 = data.frame(a = rnorm(3), b = rnorm(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56019781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - cz.msebera.android.httpclient.entity.ByteArrayEntity required: org.apache.http.HttpEntity I am using loopj AsyncHttpClient to call web services. I am trying register a user. So I need to send JSON data to Web Service.
ByteArrayEntity entity = new ByteArrayEntity(json.toString().getBytes("UTF-8"));
entity.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49949643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in Sqlite query in android I need to find a string in a column and return another column containing the value. I have the string value "xyx " .. The space is creating unknown characters so I want to look if it has just xyz and I am getting the following error
cursor = sqlDb.query(MYTABLE,
thecolumns, NAM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29497820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have a "TypeError: 'float' object is not iterable" when I want to convert the second number in the float too def pl():
num1=float(ent.get())
ent.delete(0, END)
num2=float(ent.get())
result=sum(num1, num2)
ent.insert(END, result)
When I want to sum both of the numbers this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72355289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems trying to find the root category based on category id I am trying to figure out the root level category_id of a category based on it's parent_id.
In the function below $this->cat_arr is an array of all categories and their parent_id's.
If a parent_id is set to 0 it is assumed to be a root node. I wish to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4941268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make AesEncrypterHandler encrypt the same way as Aes does I am trying to use AesCryptoServiceProvider to achieve the same encryption mechanism as Aes.
Here is my AesCryptoServiceProvider version of it:
public string version1(string plainText, string encryptionKey, string initializationVector)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62293059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are anonymous hashes in perl? $hash = { 'Man' => 'Bill',
'Woman' => 'Mary,
'Dog' => 'Ben'
};
What exactly do Perl's “anonymous hashes” do?
A: It's quite simple. They allow you to write
push @hashes, { ... };
f(config => { ... });
instead of
my %hash = ( ... );
push @hashes, \%has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14175585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why is this regular expression matching so much? I am trying to use http://www.regexr.com/ to create a regular expression.
Basically I am looking to replace something that matches <Openings>any other tags/text</Openings>
<Openings><opening><item><x>3</x><y>3</y><width>10.5</width><height>13.5</height><type>rectangl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24554136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Invalid Root In Registry Key in reading IExplorer VBA I have a code that tries to run an IExplorer that would load a google map. Anyways, It bugs everytime it tries to run the code where it reads the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\" & "App Paths\IEXPLORE.EXE\
with the error: Invalid Root in registry ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70331508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I check multiple ancestors in JavaScript using Element.closest()? I have a verbose condition:
if (
(e.target.parentNode.classList[0] === 'my-class') ||
(e.target.parentNode.parentNode.classList[0] === 'my-class') ||
(e.target.parentNode.parentNode.parentNode.classList[0] === 'my-class')
) {
/* [... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49474956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass React component as regular JS to react-test-renderer I see only examples with components in JSX.
But how to pass a component as regular JS React.createElement() instead of JSX something like
const testRenderer = ReactTestRenderer.create(
React.createElement('div', null, 'Text');
);
Now with this cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70112835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get status of ICommand execute in WPF in order to update text on xaml I have a view model which looks like:
public sealed class MyViewModel: INotifyPropertyChanged
{
public bool ShowSuccess
{
get { return _success; }
set
{
_success = value;
PropertyChanged... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59928357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw a circumference in a graph in Excel (eventually with macro) I´d like to draw a circumference in a graph in Excel based on a radius value written in a cell.
I know how to draw Circle by macro but not in an Excel Graph.
Any help are welcome
Thx so much
M.
A: Your best bet would be to do some off to the si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47448107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cant find imgs:s when React.js project is bundled with webpack2 Everything works in development, all images are found. But when I bundle my the files and upload to webhost, product img:s can't be found and returns error:
This is my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Rewr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44462250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the story of the Observer Design Pattern? I have been investigating about the observer pattern for an assignment. So far, I have come to the conclusion that it first appeared in a book written by a group of people called "The Gang of Four".
But I also read that its first implementation was in a SmallTalk MV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16599899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does the Windows Python Launcher (py.exe) find the python executable(s)? I'm trying to use the Windows Python Launcher (py.exe) for the first time. I run python in a command shell but the launcher, running in the same shell, can't find any version of python.exe to run:
where python ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66824903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hiding .aspx from url in ASP.NET Framework 3.5 I would require to hide .aspx extension and query sting values from complete url. I have tried many solution online but didn't succeeded.
After long search I have found one sample code article (linked below):
http://www.aspsnippets.com/Articles/How-to-hide-remove-ASPX-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27287344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Frameless window shows dark border on linux I created a dialog with shadow effect
Qt::WindowFlags flags = Qt::Dialog| Qt::FramelessWindowHint;
QGraphicsDropShadowEffect* effect = new QGraphicsDropShadowEffect;
effect->setOffset(4);
effect->setBlurRadius(9);
contWdget->setGraphicsEffect(effect);
This works per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46604835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Focus randomly jumps when scrolling I have an activity with many EditText controls and checkboxes near them. By default, most EditTexts are disabled.
When I open the activity, some random EditText control gets focus (a frame around it) and if you tap on it, the on-screen keyboard appears even though the EditText is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6679294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I have a linked table which is linked to a .txt file in my directory itself I have a linked table which is linked to a .txt file in my directory itself. Now I need to create a command button in a Form which helps me to relink the .txt file whenever I require, using VBA code.
Can anyone please help me on this.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40236972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: android searchview setOnActionExpandListener on Honeycomb 3.2 I'm developing an app for Android 3.2 and greater with android-support-v4. I need to implement OnActionExpandListener for "intercept" when SearchView in the actionbar is expanded and when is collapsed. My code for Android 4.0 and higher it's ok, but for 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19918500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Plot a vertical line using matplotlib I would like to draw a vertical line with Matpotlib and I'm using axvline, but it doesn't work.
import sys
import matplotlib
matplotlib.use('Qt4Agg')
from ui_courbe import *
from PyQt4 import QtGui
from matplotlib import pyplot as plt
class Window(QtGui.QMainWindow, Ui_Main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29096948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how to use yii2-bootstrap4 extension with bootstrap 3 in the same app I have tried to install yii2-bootstrap4
but I got this composer error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for yiisoft/yii2-bootstrap4 ^1.0@dev -> satisfiable by yiisoft/yii... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50028312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Traffic Manager Load Balance Options I tried to dig on MSDN but could not get concrete statement for which is the best load balancing method.
could someone please share some light on which of the below are best option for given scenario:
*
*Performance
*Failover
*Round Robin.
Scenario:
x Web Roleshosted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17312183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw a vertical line at specified x value on QHorizontalBarSeries/QChart? I've followed this example to create a horizontal bar chart. I'd like to draw a static vertical line at a specific value along the x-axis. I've tried adding a QLineSeries to the QChart, but nothing is showing up. I'm doing this in Pytho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67591067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to pass cv::mat objects from a python module to a c++ function and give back returned object which is type cv::mat? I try to start a project with Django which a part of that is about showing some images.
As probably you know, c++ is so faster than python. so I wrote a c++ function which receives two Mat type in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57889151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java.lang.SecurityException: Requires VIBRATE permission on Jelly Bean 4.2 Since yesterday I have an issue on Android 4.2 when I receive push notifications it requires the permission even if i don't set it to vibrate
Notification notification = new Notification(icon, notificationItem.message, when);
notification.set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13602190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to select specific div using BeautifulSoup when multiple divs have the same class name no id tag? Please help I don't know how to select specific div using BeautifulSoup when multiple divs have the same class name no id tag.
Web page that I am trying to scrape: https://www.helpmefind.com/rose/l.php?l=2.65689.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62740766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I create a camera including guidelines for the user to snap the picture between? I'm working with OCR using tess-two as my scanner and it works great when taking the photo, and using https://github.com/IsseiAoki/SimpleCropView to crop the image for the right numbers to be read from tess-two.
What I'd like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32958676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: maximum plot points in R? I have come across a number of situations where I want to plot more points than I really ought to be -- the main holdup is that when I share my plots with people or embed them in papers, they occupy too much space. It's very straightforward to randomly sample rows in a dataframe.
if I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1962954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.