text stringlengths 15 59.8k | meta dict |
|---|---|
Q: how to create a MySQL / PHP sub query to count the number of records matching a value? I am having trouble querying MySQL. I want to actually get the count of records with the value of the current parent_cat_id. So in this case we want a sub_query that will tell us 4 (because there are 4
id parent_cat_id cat_nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14149871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIDatePicker set minimum and maximum time I've got a UIDatePicker with the time only and I need a possibility to set the minimum and the maximum hour is showed. For example, I need it to start at 6 hours and finish at 15 hrs. Is it possible to perform this with UIDatePicker?
A: 1) Use this function to retrieve the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19863040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detect text source from accessibility service I'm using an accessibility service to receive text from a view of a specific app. The text can be inserted manually or via voice. Is there any way to check the source? I'd like to change my behavior if the text is inserted manually or not.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/30143573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Turning a command line app into a Cocoa GUI app on Mac OS X? Is there any tutorials or references, if such thing is possible, to make GUI applications out of command line apps?
What I mean is, having a command line app, wrap it into an app bundle and create a Cocoa GUI app that would have a simple interface to execu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3134035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Divide one CSS column in 2 rows http://jsfiddle.net/9877/6E2pQ/2/
What I want do is have columncontent1 on the left and columncontent2 and columncontent3 stacked on the right side. see the jsfiddle. How do I fix the css? I am running out of ideas. Is the error in the css or the way the div placed in the body:
<sty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20598741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pathos multiprocessing pool CPickle error When i tried to run the following code:
from pathos.multiprocessing import ProcessingPool as Pool
list1 = [1,2,3,4,5]
list2 = [6,7,8,9,10]
def function1(x,y):
print x
print y
if __name__ == '__main__':
pool = Pool(5)
pool.map(function1, list1, list2)
It gets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44094924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does slice not work directly on arguments? Tested it out on this fiddle after looking at underscore.
This seems like a hack to call slice on arguments when it is not on the prototype chain.
Why is it not on the prototype chain when it obviously works on arguments.
var slice = Array.prototype.slice;
function test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16345747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Watchkit notification programmatically I'm looking to push a notification to the Apple Watch at a specific time. I was able to display a static message on the simulator using an apns file, but I'd like to set the data and time of the notification in the controller.
I heard I might not be able to do this on a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33759489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create an object in a class by passing a token to a constructor? What I am attempting to do is to take a .txt file that has multiple lines of people's information (Last name, First name, phone number, email) and display the information into a listbox so that a user could select a name in the listbox and displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62768590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: array used the same memory space? i have an array in the main program like this: (i am using C# to program in asp.net)
double[][] example= new double[][];
for this example lets imagine is an array of 10*2.
so next thing i will do is send this array to another function like this:
usedarray(example);
public double[][... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13074824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: onRestart() and onRefresh() Act Different with Same Code I have the exact same methods and calls in onRefresh() and onRestart(), but for some reason onRestart() does what I want exactly, yet onRefresh() acts differently. What I want to happen is for app to understand when the location is disabled while running.
onR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34661858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use jdt.ast to resolve polymorphism I'm working to get the override method binding through eclipse-jdt-ast.
Just like when we using eclipse, press Ctrl and click the method ,we can jump to the method implenmentation.
Although it's dynamic binging in java, but the following works well:
public class Father{
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41176592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Close a MSI file handle after being downloaded from a website I have a vsto add-in for outlook. There is a code where I download a MSI file from a website:
Public Sub DownloadMsiFile()
Try
Dim url As String = "https://www.website.com/ol.msi"
Dim wc As New WebClient()
wc.Headers.Add(HttpRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67393101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does this line of code means in javascript? function delay(n){
n = n || 2000
//other stuff
}
what does the first line do?
Thanks.
A: It means that if n, the argument passed to the function, is falsey, 2000 will be assigned to it.
Here, it's probably to allow callers to have the option of either passing an ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65545634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting tensorflow rounding mode I am working with small numbers in tensorflow, which sometimes results in numerical instability.
I would like to increase the precision of my results, or at the very least determine bounds on my result.
The following code shows a specific example of numerical errors (it outputs nan i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48344974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Getting "Error: Invalid or corrupt jarfile corda.jar" while bootstrapping the Corda netwrok While trying to bootstrap the Corda network getting below error.
Error: Invalid or corrupt jarfile corda.jar
Please find more details below.
root@domestic-lc:/home/POC_DomesticLC# java -jar corda-tools-network-bootstrapper-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59247439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to add facebook comment to single page application? i have website news (single page application )
this code woks well in aspx page
<div id="fb-root">
</div>
<script language="javascript" type="text/javascript">
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19975902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Variable "Name" is not readable, how can I fix it? I was inserting some code to make a registration form, but iIfound this
class User {
private String Nama;
private String Kelas;
private int NIM;
public String getNama{
return Nama;
}
public String setNama{
}
}
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71616728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Run a javascript on regex pattern match url (Blogger) I'm trying to load a javascript on several pages but I only on pages which the url matches with a specific pattern.
The following code works for specific pages but it doesn't accept any wildcard or regex
<b:if cond='data:blog.url == "https://mywebsite.com/yy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42323018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split string using SUBSTR or SPLIT? I'm at a loss and hoping to find help here. What I'm trying to accomplish is the following:
I have a .csv file with 8 columns. The third column contains phone numbers formatted like so:
+45 23455678
+45 12314425
+45 43631678
+45 12345678
(goes on for a while)
What I want is:
+45... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11099174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DOM reload after ajax form injection Ive tried similar questions to no avail.
My question is simply how to reload the DOM after an ajax request has been made?
Its not a question regarding event delegation, rather one concerning jquery selectors.
sample:
editUser : function(){
var editItem = $("a.edit");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9270403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not full binding in knockout Knockout doesn't work as expected, im my interface.
I suppose my mistake. But I cannot understand it.
I have an album with genres included tracks with genres:
var initialData = [{
title: 'Danny',
genres: [
{id: 21,
title: 'Noise'},
{id: 22,
title: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13171144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transitioning Between Index Paths in a DetailViewController? Swift So using the code below, I've segued my CollectionViewCell indexPath into the new DetailViewController. now each `DetailViewController displays what is contained in the array of the indexPath selected.
func collectionView(_ collectionView: UICollecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41434270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Colour newly added bar in bar chart automatically when new data is received Following code basically put a colour in my bar graph based on cell D112 value. Now is there a way to automatically put colour as new data is available and new bar is added to my bar chart? For example, Cell D112 is the value for the month o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49498952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a data structure for a list ordered by value? I've got a JTable which shows the top 10 scores of a game. The data structure looks like the following:
// {Position, Name, Score}
Object[][] data = {
{1, "-", 0},
{2, "-", 0},
{3, "-", 0},
{4, "-", 0},
{5, "-", 0},
{6, "-", 0},
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5384093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to validate status code in robot framework i about to make a validation status code in robot framework. i create value in json with wrong password and i want to make validation code 400 bad request with this code.
login_negative_user
${json} Load JSON From File ${CURDIR}/../json/negativeuser.json
# Set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72373112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to rename a similarly named column from two tables when performing a join? I have two tables that I am joining with the following query...
select *
from Partners p
inner join OrganizationMembers om on p.ParID = om.OrganizationId
where om.EmailAddress = 'my_email@address.com'
and om.deleted = 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2418528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: can not read some string from struts.properties I have define variable error in struts.properties as follows:
error=this is an error
Now I can call this error as follows:
ErrorMsg = "<s:property value='getText(\"error\")'/>";
and it works, the result is: ErrorMsg=this is an error
How to get the text of variable in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10020352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'boost/multi_array.hpp' file not found error while building on Mac I am trying to build using Cmake on macOS Big Sur. Following is the makefile.
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
#------------------------------------------------------------------------------#
# Compiler setup
#--------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69711110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Redirecting in react-router-dom v6 in a non-JSX context I'm trying to redirect a user from the route they are currently looking at to another route programatically. In my case, I am not in a JSX environment, and cannot use any kind of React hooks. How would I go about this?
I tried to use the code block below to red... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75024625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does Doctrine generate:entities create getters and setter in symfony I have class User likr this
class user implements UserInterface {
protected id ,
protected username;
Then i have
class student extends user {
protected id ,
protected rollno;
Now when i run this
php app/console doctrine:generate:entities ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11464227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Double buffering with C# has negative effect I have written the following simple program, which draws lines on the screen every 100 milliseconds (triggered by timer1). I noticed that the drawing flickers a bit (that is, the window is not always completely blue, but some gray shines through). So my idea was to use do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2566126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OnNotifyPropertyChanged not firing get I have a class which has an ObservableCollection called Items. That list should fill up a RadGridView. Even though the OC contains data, the list stays empty, and after a bit of debuggingg I noticed it has some odd behavior. I have a breakpoint in the Get and Set of the propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41855741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I color a graph (vertices and edges) with excel data? I'm have an excel file with mostly 0's and 1's and I want to use this information to color the vertices and edges of a graph. So like if a cell is 0, color the edge gray, but if the cell is 1, color it blue. And similarly for vertices.
Can anyone give me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43160006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP sanitization question I was wondering how would you sanitize the $_SERVER['REQUEST_URI'], $_POST['email'] and $url code in the code snippets below using PHP.
I'm using PHP Version 5.2.14
Code Snippets.
<form method="post" action="<?php $_SERVER['REQUEST_URI']; ?>">
</form>
$email = $_POST['email']; //Grabs the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4343825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Nutch's plug-in system work? I am new to Nutch, but I know Nutch uses Lucene for indexing, which only understands text format.
Nutch has many plug-ins that are used for crawling documents with a particular format.
My doubt is: how does actually the Nutch plug-in system?
I seen the Team wiki page for nutch
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1448329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert Raw png data to a usable img src in javascipt Getting raw png data from an api I am using, from the docs it is supposedly base64 png but it does not look like it to me. The data comes back in either of 2 forms
PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00�%00%00%00�%08%06%00%00%00=�%062%00%00%00%09pHYs%00%00%0E�%... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71025374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete file and its folder if there is one, in shell? I have a shell script that is copying some files for a S3 bucket (aws) on local, then it is copying it to another place (it cannot do it directly, because of some authorization), but the idea is that the image may be in some folder and the shell is creatin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32780888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I authenticate using MSXML2.XMLHTTP and VBA? I need to authenticate on the endpoint https://graph.microsoft.com/v1.0/me/drive/root/children using MSXML2.XMLHTTP and VBA.
I have the access token already but I am struggling to find out the string to be used on:
setRequestHeader method.
Thank you,
A: After sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55767687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rapid json, c++, json, modify empty json array I have a json file, which contains two object. The first object is an array of objects. Each of these objects has an element "key" and empty array. I need to fill the array with 4 numbers and I need to save back the json. I am checking the tutorial, but probably I am mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65024226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jpegoptim: error creating temp file: mkstemps() failed jpegoptim gives me this error: error creating temp file: mkstemps() failed
jpegoptim -o *.jpg
image1.jpg 2000x1333 24bit P JFIF [OK] 442829 --> 451511 bytes (-1.96%), skipped.
image2.jpg 1500x1124 24bit P Exif XMP IPTC ICC JFIF [OK] 582748 --> 583528 bytes (-0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42972084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: speeding up (rewriting?) a not in sub select query From a table I'm trying to get
a) users who fulfil certain criteria which is held in a key/value combination in a table
OR
b) users who do not have that key/value combination at all
So, for example, to try and find users who live in France or who have not yet added... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46060494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to generate a QR code and a downloadable link in php I would like to create a program that generates a QR code based on a URL (data from a database).
The QR code will not be stored or saved, but only downloadable via a link on the page displaying the QR code.
All in PHP :)
Could someone help me ?
I haven't found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67456506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a circuit based on this truth table? So this is the truth table
In_1 In_2 In_3 Out
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74844748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Woocommerce - Remove Only one Unit of a product from cart I am working on this woocommerce search function that uses AJAX to fetch products on every keystroke and that gives the possibility to add or remove units of a certain product to cart right from the instant search results modal.
In each search result there is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74874720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing a C++ calling convention in ASM x86 I've written a simple program that obfuscates a string using ASM x86. User must input their desired string, and then choose a key (Ekey) for the string to be obfuscated. (I know you can emulate left and right bit rotations with shift operators or table lookups, I'm ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29729208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: not getting radiobutton 'value' from other function(def) in tkinter, how to achieve this without using class? Not getting radiobutton 'value' from other function(def) in tkinter, how to achieve this without using class?
In this case a=a1.get() is not taking value from command (of sub1 button) in ques1() function.
fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49904137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nhibernate entity with multiple Many-To-Many lists of the same type? Does anybody know how I would map an entity with two many-to-many collections of the same child type.
My database structure is this....
The "normal" relationship will be....
tbl_Parent
col_Parent_ID
tbl_Parent_Child_Xref
col_Parent_ID
col_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1915947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Wrap input with submit tag in one div Let's say I have these fields generated by simple_form_for:
= f.input :amount, label: false, required: true
= f.submit "✓", class: "btn btn-primary"
I want to wrap them in one div and none of them should be nested inside any other div.
(it should look like this):
<form>
<div ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25247120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cordova websocket plugin showing error code 1006 and angular websocket plugin showing isTrusted true error Angular websocket plugin is working in the browser. But after generating apk in the mobile it is not working, it is showing error. Cordova websocket plugin also not working, it is showing error code 1006. Can a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41181539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP / JpGraph - Memory not freed on completion of function My application needs to generate a pdf file with a bunch of graphs in it.
The situation: I'm using FPDF for pdf generation and JpGraph for the graphs. My code gets the graph data from a database and iterates through, calling a function for each graph that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13253185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In bash/sed, how do you match on a lowercase letter followed by the SAME letter in uppercase? I want to delete all instances of "aA", "bB" ... "zZ" from an input string.
e.g.
echo "foObar" |
sed -Ee 's/([a-z])\U\1//'
should output "fbar"
But the \U syntax works in the latter half (replacement part) of the sed expre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53729122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EPPlus next row I am using Epplus to write out a collection into an excel file. Currently I am incrementing rows by manually manipulating the cell number.(ws is an instance of ExcelWorkSheet)
int i = 1;
foreach (var item in items)
{
ws.Cells["A"+i.ToString()].Value =item.Text;
i++;
}
Instead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18744135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine current status of web video (playing | stopped) How can I determine when a user starts or stops playing a video on a web page? For instance, the video on this page:
http://www.novamov.com/video/exm71hcwt1aly
I need to be able to determine this from a separate .NET application running on the client.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11038894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create HTML in angular? I have been working on React for a year. Now, I am writing angular. How can I create a piece of html code in ts.file?
In react, I do it that way:
const example = (item: string): React.ReactNode => {
return <p> something.... {item} </p>
}
I want to do same thing in Angular8+
I know s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68712302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javassist - How to add line number to method I am a newbie to java bytecode and javassist. I created a new class file with using javassist. Although I added fields and methods, I couldn't achieve to add line number to method. Result of my research, I understand that I need to add linenumberattribute to codeattribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21164289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is a function return necessary to be called a Closure Hey i came across this video on youtube http://www.youtube.com/watch?v=KRm-h6vcpxs
which basically explains IIFEs and closures. But what I am not understanding is whether i need to return a function in order to call it a closure.
E.x.
function a() {
var i = 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16586950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# change the first 32bit Int of a GUID I have a GUID which I created with GUID.NewGUID(). Now I want to replace the first 32 bit of it with a specific 32-bit Integer while keeping the rest as they are.
Is there a function to do this?
A: You can use ToByteArray() function and then the Guid constructor.
byte[] buffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42527016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BeautifulSoup doesn't seem to parse anything I've been trying to learn BeautifulSoup by making myself a proxy scraper and I've encountered a problem. BeautifulSoup seems unable to find anything and when printing what it parses, It shows me this :
<html>
<head>
</head>
<body>
<bound 0x7f977c9121d0="" <http.clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47336456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to import a react component without using 'import' statement I'm new to React. Just trying out things.
So far I have been using CDNs for React, React-DOM, and React-Bootstrap. I had no trouble using components of React-Bootstrap using the example code below:
var Alert = ReactBootstrap.Alert;
Now my p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59854647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: Send Longitude and Latitude after 60 seconds to the localhost server(WAMP) I want to send the Longitude, Latitude, TimeStamp and the stonest wifi access point as JSON format to the server (WAMP- localhost) after every 60 seconds what is the best approach to do that? I would use AsyncTask but AsyncTasks shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29804032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "error_description": "Invalid Value" for token google sign in every time using flutter I am new in flutter trying to access auth token from google for my backend server but every time token is invalid.
i am using FirebaseUser user await user.getIdToken() I give me a token but when I am trying to validate that token ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51320271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using SmtpAppender to only send emails when logging an error or fatal I'm using log4net to log different types of messages.
I have added the SmtpAppender to email specific user when logging messages.
However, what I would like to achieve is to be able to only send emails if an error or fatal is logged.
Accroding to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41564833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android make a dialog scrollable I'm showing a dialog when the user clicks a button. When the dialog appears and you click an EditText to enter some text, you can't see the bottom buttons (and the lowest EditText) anymore. So you have to click the keyboard down, then select the button or EditText. I searched for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19109576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hbase Pagination Filter returning more keys I am using Hbase pagination Filter to iterate over all the rows in table using following code
Scan scan=new Scan(Bytes.toBytes(key))
Filter filter=new PageFilter(10000);
scan.setFilter(pageFilter);
scan.setCaching(100000);// 1lakh i know it should be 10K but this should n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26562014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to overwrite User model I don't like models.User, but I like Admin view, and I will keep admin view in my application.
How to overwirte models.User ?
Make it just look like following:
from django.contrib.auth.models import User
class ShugeUser(User)
username = EmailField(uniqute=True, verbose_name='EMail ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1231943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change Bool value within a function in javascript? Based on this tutorial: link
Here is my example code:
function modifyVar(obj, val) {
obj.valueOf = obj.toSource = obj.toString = function(){ return val; };
}
function setToFalse(boolVar) {
modifyVar(boolVar, 'false');
}
var isOpen = true;
setToFalse(isO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26829207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use correctly isalnum function in C? I tried to check if a character of a string is alnum and then if the string contains only alnum characters to print the string. When I run the program nothing happens. I have another program with whom I read from the input the text I want and I send it with FIFO. If i don;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44017907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any web based email clients written in python? I need to integrate a email client in my current python web app.
Anything available?
L.E.: I'm building my app on top of CherryPy
A: For others who might find this thread, check out Mailpile. I haven't used it yet, it is a python-based mail client, and I am s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fast tcp server availability check I want to make an Unity3D app that has a tcp/ip client. It should check regularly if there is an available server, and if there is one, tries to connect to it. I tried this as following
_client = new TcpClient(_tcpAddress, _tcpPort);
if (!_client.Connected)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62143387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to use AWS Cognito's adaptive authentication security heuristics in custom auth lambda trigger? I’m using AWS Cognito Custom Authentication flow. I do not rely on Cognito for MFA. I want to make use of the adaptive authentication security heuristics in Cognito’s advanced security features. Unfortunately, the eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59919373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Equivalent of Nashorn's importPackage in graal.js script engine I am migrating old code from JDK 8 to JDK 12.
In the process, I have noticed importPackage does not exist when using the "graal.js" script engine. It exists when using "javascript" for the script engine.
Is there any way to achieve the same functionalit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57456476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check if product available in Shopify using javascript I have a javascript that handles the product listing on the collection page. Is there a way to ensure that the product is available and not out of stock. I need something similar to {% if product.available %}. But I don't want to change the .liquid file. I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59714654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to know the status of a systemctl process running in the host from a docker container(base image python:3.9)? I am trying to get the status of a systemctl service which is in the host from the docker container.
I tried to volume mount the necessary unit files and made the docker work in privileged mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72829097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular 6.1.2 PWA not working I tried all the solutions on the internet on how to add PWA to an Angular project, but still in Chrome Dev Tools, there are no service worker registered.
I did run ng add @angular/pwa, with ng build --prod and http-server -o and still no service worker registered. It also does not add a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51867392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Count Total Bar codes of Specific Color by fetching values from various fields when they match in SQL I have a situation where I have 4 color columns(Color1, Color2, Color3, Color4) I need to add the values of bar codes present in all color columns when they match. Its bit complicated, I have the graphical represent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51108435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: R - faster alternative to hist(XX, plot=FALSE)$count I am on the lookout for a faster alternative to R's hist(x, breaks=XXX, plot=FALSE)$count function as I don't need any of the other output that is produced (as I want to use it in an sapply call, requiring 1 million iterations in which this function would be calle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38437350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delphi FMX: HTTPClient asynchronous Post works in Windows, Fails in Android I'm using THTTPClient in Delphi 10.3 to perform a POST operation and bring data from a server. Parameters are JSON. Problem is:
*
*When compiled as a Win32 application, it works perfectly for both when performing a asynchronous call or n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54846698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Weird behavior of JFormattedTextField with NumberFormatter and DecimalFormat I'm new here (I've read a lot, nut never posted before).
I'm encountering a weird problem on a JFormattedTextField. I'm trying to limit the input to numbers ranging from 9999.9 to -9999.9, but I can't seem to find a working solution. I trie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75319177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Serialization not as expected I have a c# class like this as a return for my WCF method:
[Serializable]
[XmlRoot("OutputItem")]
public class MyItem
{
[XmlElement("ItemName")]
public string NodeName { get; set; }
[XmlArray("Fields"), XmlArrayItem(ElementName = "Field", Type = typeof(MyItemField))]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12504046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: generic type XMLexception in catel I try to use the properties CATEL who generic type.
And I have XmlException in Model attribute.
[Serializable]
public class TDS : SavableModelBase<TDS>
{
public TestType<bool> Tds
{
get { return GetValue<TestType<bool>>(TdsProperty); }
set { SetValue(T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28711367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursion for matrix in JavaScript I'm using recursion for finding neighbors of neighbors in a matrix (in a minesweeper game). Right now my function is finding and marking neighbors only from left till bottom right. What am I doing wrong?
Javascript:
function openAllZeroCount(elcell, i, j) {
for (var idxi = i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52539935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How should I size my Spinner Image Size in Android app for different screen size/resolutions? I'm trying to develop my first app for the play store which should resize for different screen sizes/resolutions. For some reason the spinner images are showing up extremely small for mdpi virtual device & huawei 9 on fireb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58942110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What causes inhibited conditional statements? There are three options that the user can input in this program. He can choose to login, create an account, or restore an account using his email.
if user_ == 1:
loginf.main()
if user_ == 2:
createnewaccount.main()
if user_ == 3:
restoreaccount.main()
Each o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59938511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cleaning an older swift application project using storyboards I have been assigned a "new" old app project from my company, where there is a mix of older swift code and newer swift code. I am slowly getting comfortable with deleting and refactoring parts of the code, trying to remove the Xcode warnings and making th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73611885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Complex data.table subset and manipulation I am trying to combine a lot of data.table manipulations into a some faster code. I am creating an example with a smaller data.table and I hopeful someone has a better solution than the clunky (embarrassing) code I developed.
For each group, I want to:
1) Verify there is b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34957130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add second data source to xslt / dataview in SharePoint? I'm trying to create a bar chart using dataview formated using xsl. The list to chart contains data about number of hours spend on certain project. The project column is of type lookup, which points to a list on the other subsite (simpler: cross site lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1721813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why return from child is getting undefined in Parent in my Vue application I am building an Vue Application. In my child component I have a function say getName() and I am returning name but when I try to access this function in my parent I am not able to use that getting undefined. But when I emit name in the paren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73148608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Internal Exception: java.sql.SQLSyntaxErrorException: 'EMAIL' is not a column in table I am running a JAVA EE Application using Maven and Netbeans
Apparently my column "email" is not getting detected? what I am doing wrong?
This is in my Entity class Customers
package com.mycompany.carsales;
import java.io.Serializ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38957506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does this typedef statement do? I was going through some code and am not able to understand the following piece of code. What does it do? What does it mean?
typedef void*(*fun)[2];
fun new_array;
A: Following the clockwise/spiral rule, fun is a pointer to an array of two pointers to void.
A: OK, basically, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25499612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to install laravel using composer I installed composer successfully.
Now i am trying to install laravel using this command composer global require "laravel/installer" in command prompt but i can't able to install laravel.
This show me something like below image.
When i use composer create-project --prefer-d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43316695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding html table row with jquery can not set as marked I wrote a HTML file with a table. This table has about 7 entries (rows with data) by default. When the user clicks on one of these row the background color changes and it becomes marked, I did it with the jquery toggle function.
I also have a button which adds ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40579286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pre-populating a form field with HTML I would like to pre-populate this form:
https://npo1.networkforgood.org/Donate/Donate.aspx?npoSubscriptionId=1006493
Specifically one field.
<input name="ctl00$ctl00$body$formControl$stateControl$question_1241326" type="text" maxlength="100" id="ctl00_ctl00_body_formControl_stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16619739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dataframe supported method for transformation I have pandas pandas dataframe like this
+-------+-----------+
| Name | Attribute |
+-------+-----------+
| James | Tall |
| James | Bald |
| Lily | Fat |
| Lily | Tall |
+-------+-----------+
and my expect output is
+------+------+------+-----+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61492761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make New Relic Track only one JBoss web app I currently have 3 web apps running on a single JBoss 7.1 container. I've successfully installed newrelic but it's currently monitoring all 3 web apps. Is there a way to make newrelic only monitor one web app?
A: There's a good deal of customization available to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19171648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I compare two lists in python and return matches I want to take two lists and find the values that appear in both.
a = [1, 2, 3, 4, 5]
b = [9, 8, 7, 6, 5]
returnMatches(a, b)
would return [5], for instance.
A: I prefer the set based answers, but here's one that works anyway
[x for x in a if x in b]
A: N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1388818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "516"
} |
Q: Can I serialize an object if I didn't write the class used to instantiate that object? I've a simple class
[Serializable]
public class MyClass
{
public String FirstName { get; set: }
public String LastName { get; set: }
//Bellow is what I would like to do
//But, it's not working
//I get an exception
Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2646065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C how to handle malloc returning NULL? exit() or abort() When malloc() fails, which would be the best way to handle the error? If it fails, I want to immediately exit the program, which I would normally do with using exit(). But in this special case, I'm not quite sure if exit() would be the way to go here.
A: If m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4287964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PHP readdir while loop don't work cleanly I wrote a short php code that displays an image and the titke to every file in a directory. The problem is that if i run the code many files get the a instead of an image. So for example a .zip file is in front of a .txt file. Now it will display the of the txt file instea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32280494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Use config file in App\Libraries Laravel i have one non-laravel library at the App\Libraries and there i have file providers.php
<?php
return [
'slsp'=> [
'SLSP_SPOROPAY_PU_PREDCISLO'=> '000000',
'SLSP_SPOROPAY_PU_CISLO'=> '0013662162',
'SLSP_SPOROPAY_PU_KBANKY'=> '0900',
'S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35420115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.