text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to repeat an html element n number of times using javascript I'm trying to print an element, in my case an hr tag some number of times according to the length of a word. This code is for a hangman game I'm trying to recreate. I have looked up similar questions and its not quite what I'm lookin for.
This is my ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53766542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML content encoded, started with '' sign I have received an email and the body is formed in HTML format. However, I was wondering how can I decode the encoded content as following:
<a href=3Dhttp://0.gg/DFt2U>
Could anyone tell me how to decode the string? The t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25615053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get my templated function to see other global methods defined later? (Oktalist gave a great answer below, check it out and the comments under it, to help demonstrate everything we've discussed, I've added a full, compiling solution at the bottom of my question that demonstrates everything discussed.)
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22333301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: LiveData Duplicate Observers Concern I won't explain why this code is needed, but my question is whether the following code will lead to duplicate Observers or not:
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
initializeRecyclerView()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66304999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure Redis Cache vs Redis Cloud service on Azure I need to use it in a .NET (webapi) app & using stackexchange.redis nuget package.
Appreciate if someone please point me to appropriate resources for following -
1) Can I choose any of Azure Redis cache or Redis cloud service if I interface through stackexchange.red... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30474763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use Intl.NumberFormat to format square foot units I'm trying to use Intl.NumberFormat to format numbers with units and I have some units of square feet.
When I try
new Intl.NumberFormat('en-US', { useGrouping: true, style: "unit", unit: "square-foot" }).format(56)
Uncaught RangeError: Invalid unit argument for Int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68581299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Awk, Shell Scripting I have a file which has the following form:
#id|firstName|lastName|gender|birthday|creationDate|locationIP|browserUsed
111|Arkas|Sarkas|male|1995-09-11|2010-03-17T13:32:10.447+0000|192.248.2.123|Midori
Every field is separated with "|". I am writing a shell script and my goal is to remove the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36116913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i match the exact text in XML I want to match the exact text "puts" in the (xml file) for a .tmTheme file for sublime text but I've come here as my last resort. I don't really know about regex please help.
i'm trying to match the puts Ruby print keyword. for example:
puts "cat"
output
cat
My main aim is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32477785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Network operation could not be completed - Alamofire I am using Alamofire in a Swift app I am developing. Recently whenever I try to perform a network call in the simulator iPhone5 8.1 (or any simulator 8.1) I am getting:
Optional(Error Domain=NSURLErrorDomain Code=-1005 "The operation couldnβt be completed. (NSURLE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37113341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "sequenced before" and "Every evaluation in the calling function" in c++ Every evaluation in the calling function (including other function calls) that is not otherwise specifically sequenced before or after the execution of the body of the called function is indeterminately sequenced with respect to the execution o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30558980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reverse Indexing in Python? I know that a[end:start:-1] slices a list in a reverse order.
For example
a = range(20)
print a[15:10:-1] # prints [15, ..., 11]
print a[15:0:-1] # prints [15, ..., 1]
but you cannot get to the first element (0 in the example). It seems that -1 is a special value.
print a[15:-1:-1] # pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17610096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to create a XY chart in Java which reads data from two variables? I have difficulties understanding how to add my data to the chart object. I am simulating a supermarket activity in java program. After the simulation time is up. I have two variables
time and customers. What should I use if I want the data to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9836723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery .fadeIn() setup I have a few elements which I want to $('.hidden_item').fadeIn() when the button is clicked.
So in order to do that I need to first hide them. I tried using
$(document).ready(function(){
$('.hidden_item').hide();
});
But sometimes page onload sends heartbeat and my elements hidden_eleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49132561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xpdf (pdftotext) with language pack call from different directory I am experimenting with xpdf (pdftotext) on a macOS Terminal. I use one language package (Japanese). Everything works fine if I call the executable like this (from the lib directory):
lib kelly$ ./p2t -enc UTF-8 jp.pdf
and my data structure
files/l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58681637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scrapy Response Changes After Visiting Page in Web Browser Below is a spider I wrote to crawl an RSS feed and extract the first link and image title, and save them to a text file:
import scrapy
class artSpider(scrapy.Spider):
name = "metart"
start_urls = ['https://www.metmuseum.org/art/artwork-of-the-day?r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50974118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a floating widget hovering other widgets on Windows? Assume we have a wxWebView control in both window hierarchy and sizer hierarchy. How do we create a static text "loading" hovering above the wxWebView on Windows? Thanks.
It's straightforward on Linux. Create a wxStaticText of which the parent/owner ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71391809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Include files in sdist but not wheel I have a Python C extension that contains header files in the include folder.
I am currently trying to build wheels and a source distribution.
Because wheels are pre-compiled, they don't need to contain header files but the sdist does.
According to the Python docs, the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72100311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which class provides implementation for RequestDispatcher forward() and include() method Does RequestDispatcher object exits as it is an interface and as for i know we cant create an object to interface.
So what is happening in following code
RequestDispatcher requestDispatcher = request.getRequestDispatcher('som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22039398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# ValueInjecter : Mapping the whole object Graph I just started using ValueInjecter for my Entity Mappings(DTO <-> Entity).
Heres my DTO :
public class IncidentDTO
{
int ID { get; set; }
string Name { get; set; }
AgencyDTO agencyDTO { get; set; }
}
public class AgencyDTO
{
int ID { get; set; }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11184596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: /bin/bash - Alfred 3 workflow does not detect php So I downloaded this plugin https://github.com/vmitchell85/alfred-vuejs-docs and I got the Powerpack. Here is me trying to execute the workflow but pressing enter at this point does nothing:
After I press space and enter "vue events", I get in the debug:
[2018-09-02... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52141329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to focus to a block when cursor at start of line with Slate JS? I am using Slate JS.
I have some code, which should focus a given block (move the cursor there).
The use case here is: press / to open a modal, then when the modal closes, we want to refocus to the block we were at before.
To do this, we use Transfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74337796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: QObject::connect: no such signal. Also, Qtimer not calling I have a class, myClass:
class myClass : public QObject
{
Q_OBJECT
public:
QQuickWidget* widget;
QString mystring;
myClass (QQuickWidget* quickWidget, QString string);
void myfunction();
public slots:
void slot();
signals:
void ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33609803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to properly get the int for totalEntries in MySQL database using PHP? I'm using PHP and a MySQL database to build a website.
However, I find PHP quite horrible compared to other languages I have learnt previously. Largely because I seem to find a lot of instructions online which are over 5 years old and they jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51114716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does the path in an action of the following action-mapping mean What does the path in an action of the following action-mapping mean .Does it specify the jsp page from which a request is coming (search.jsp)?
<action-mappings>
<action path="/search"
type="SearchAction"
name="searchForm"
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11222859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ReactJS: What's the real world use of Immutability Helpers in React? React's official document provide Immutability Helpers.
What would be some real world usage of such helpers? I think I am missing something really basic here.
A: React assumes that objects set in state are immutable, which means that if you want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28032173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Compatibility of textbox AutoCompleteMode and keyPress event, C# I have a textbox tbx. For it I had an event handler:
public void tbxPress(object sender, KeyPressEventArgs e)
{
MessageBox.Show("message 1");
if (e.KeyChar == 13) // i.e. on Enter
{
MessageBox.Show("message 2");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3247046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RTC value in stm32 Nucleo I'm trying to print RTC date and time on Tera Term. But I'm getting errors mentioned in code. Also nothing is being printed on Tera term. I have used pointer as the declaration for Setdate and Getdate have mentioned.
Also there are few warning such as
1)format '%d' expects a matching 'int' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66780883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get __dirname of a file before webpack bundling I'm making and app that deals with serialization and dynamic imports: I serialize objects of some class with something like this
fs.write('savename.json', JSON.stringify(someObject.getSerializable()), () => console.log('done'))
this way though I don't get to sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58260693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XAML WinRT Chart Remove Axis Label Im Using the Chart library "ModernUI Toolkit" (http://modernuitoolkit.codeplex.com/).
How can I remove the Label in WinRT?
I found some answers but it was for the Silverlight version and this does not work with this library.
Here is my XAML Code:
<Chart:Chart x:Name="LineChart" Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23485200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using angular 1 simple with express js I have used node js with handlebars and now want to move towards the proper MEAN stack. I have learned angular1 and using it with single page node js apps.
But when it comes to express, after doing "express project-name" I start my server by "npm start" and in the "views" lies ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44995451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Applying filter to a dropdown list - ngoptions I have a method that returns the list of custom types, those values are being used in both the dropdown lists, but now I want to remove a subset of them based on the type and then add to first drop down. I am using angular js, asp.net mvc. What is the best way to apply ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38707875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JTextfield not updating when calling `setText()` This is a music player. It works fine, but when I try to create a Jframe around I fail.
I have 3 jTextfields that should present me the playtime and the remaining playtime. But in the program they dont update.
import java.awt.*;
import java.awt.event.*;
import java.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33365806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ClickOnce Deployed to Multiple Network Shares We have several offices around the US and one in India. Our IT department setup a system where we copy files and directories to a specific shared folder on a local server and it will be distributed to another office. In other words, we have a folder on a local server c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8490116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can you set the datasource of a combo and set the text value on load I want to populate combos with the same list of data from the "modules" table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55845857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I group values to an array for the same field value in jq? I have json data that looks like
[
{
"session": "ffe887f3f150",
"src_ip": "81.71.87.156"
},
{
"session": "fff42102e329",
"src_ip": "143.198.224.52"
},
{
"session": "fff9c8ca82be",
"src_ip": "159.203.97.7"
}
]
I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72217255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call file dialog box in access form application I am using access 2000 to write an form application.
I need to open a file dialog box to select a file and extract the file path.
The solution should be compatible to all version of access from 97 and above, and it should not require any extra module to be pre-i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5958911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: selecting columns by colSums and filtering by rowSums in data.table library(data.table)
a <- mtcars
setDT(a)
b <- a[,colSums(.SD)>500,.SDcols=setdiff(names(a),c("vs","am"))]
In this contrived example, IΒ΄d like to select the columns fulfilling the colSums condition, without using the vs and am columns. The code abov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61192887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending objects to another class's ArrayList I have a project for class where I have to send information from a driver class to a class holding an ArrayList, before separating them it worked fine but now I cannot figure out how to send the items to the second class, they are Driver and CardStack respectfully:
impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31307123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Error handling in collection environment I have a macro that copies the content of a input table to an output table using the header names stored in a collection. Code:
Sub Process_Data()
Dim rawSht As Worksheet
Dim procSht As Worksheet
Dim headers As Collection
Dim c As Integer
Dim v As Variant
Set rawSht = ThisW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33475678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySql : How do I generate a query to combine more then 2 tables? I have to generate an SQL query to fetch more than 1 table data with and without matching values and display the results. I used Left Join. However, it is not displaying all the values.
My result needs to get all the questions and their corresponding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40268213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing gcc 7.4.0 on CentOs 7 does not update my version of libstdc++ I am using CentOs7 on VirtualBox. I need the 6.0.20 version of libstdc++ at minimum. I installed gcc 7.4.0 on my system from source using the instructions given here: https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/
gcc --versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57328037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Selecting a period in field based on range Thank you all in advance for any help. I'm Still very new to access and have no idea where to start to find a solution.
What I am trying to do is to auto populate a field in my table called "Period". I would like to have it use the "Activity_Date" to look into a different ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32464474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change width of a lookup column I've created a lookup with two columns, first one containing and integer which works just fine but the second one has a long name and this is where the problem arises. Users should horizontally scroll in order to check the entire string and even in that case, the column's width is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34434080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access an object with automatic storage duration from another thread I stumbled upon this question: Thread access to stack of another thread. Linked question is about plain C, but my main language is C++, so I tried to find if the same rules apply to C++.
I found this section in C11 draft N1570:
6.2.4.5 An object w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55885240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Siri Shortcut integration in Apple watch β¨What i want to achieve is i am developing one app which gives store list located all over the world. I want to implement one feature in which when i say Siri to search near by stores than it redirect me to the my app with filter of near by stores in 10 miles so can you pleas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60703992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a string as an argument to a `do.call` command? How can I pass a string (e.g. "na.rm=TRUE") as an argument to a do.call command?
For example this works as expected:
> do.call(mean, list(1:10, na.rm=TRUE))
[1] 5.5
But what if I get the argument na.rm=TRUE as a string: "na.rm=TRUE"? If I try the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25160165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I match an element with a name such as "data[title]" in a selector? I have an element like this:
<input type="text" name="data[title]" />
Is it possible to match that input element based on it's name? This does not work:
input[name=data[title]] {}
I'm using the latest release of Chrome.
A: You need to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15979162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure DocumentDB and Spring Boot conflict In my spring boot application I run this simple code client.getDatabaseAccount() in two places:
1) In main method. Before spring boot is "booted", DocumentClient works great!!!
public static void main(String[] args) {
// just to test if it can connect to cosmos db before s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61783327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can not access imported accounts in paypal development environment just found that PayPal changed their Sanbox, now I need real PayPal account to develop.
Ok, I went to my real one, imported my test sandbox accounts into it. Then, I go to one of these accounts on developer.paypal.com, and click "sandbox site" link. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15594050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doxygen: C typedef names in description do not become links I am using Doxygen on C header files, and I have trouble getting the occurrences of typedef names in description text to become links to the respective typedef definition. This works nicely with structures, but not with typedefs.
Example:
struct _my_s1;
/*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30804504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accelerated (with HAXM) android mac emulator freezes Situation: I have android x86 accelerated emulator on Mac OS X. It starts normally (and shows HAX is working and emulator runs in fast virt mode line) and I can run programs. After program being launched emulator works some time and freezes, so I cannot interact w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22967573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to use oracle flash recovery option? I an using oracle 10g and I want to use flash recovery option to recover the deleted table by accidently.How to achieve this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/32208447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java.io.FileNotFoundException: null\gallery2.jpg (The system cannot find the path specified)
java.io.IOException: An exception occurred processing JSP page
/upimg.jsp at line 43
String s23=f1.getString();
String fpath=request.getRealPath("files")+"\\"+filename;
43: f1.write(new File(fpath));
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56373229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: Solr SSl self sign certificate I have a problem with solr 8_4 SSL.
I can't connect with https://localhost:8983 ,but http://localhost:8983 is worked.
I am use https://lucene.apache.org/solr/guide/8_4/enabling-ssl.html for configuring SSL with self sign certificate.
Setting made are :
SOLR_SSL_ENABLED=true
SOLR_SSL_K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62796317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AngularJS timer wont stop I'm running the following code, i'm trying to when it gets to 10 seconds, stop the timer basically
var mytimeout;
$scope.startTimer = function() {
$scope.counter = 0;
$scope.onTimeout = function() {
$scope.counter++;
$log.info($scope.counter);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27822669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to automatically create a nested for loop using a list of ranges? I want to create a nested for loop that uses a list of integer numbers for the loops' ranges, just as follows:
a = [5,4,7,2,7,3,8,3,8,9,3,2,1,5]
for i in range(a[0]):
for j in range(a[1]):
for k in range(a[2]):
for l in ran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53815138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: How to remove spaces between editText boxes Hi I have an LinearLayout inside FrameLayout , the linear layout contains few edittext fields but there is a lot of space between each edittext, I want to decrease the space between each editfield. Please help
XML
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7488717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't save a PIL image file after cropping out extra transparent pixels I have this function that takes svg logos, converts them to png (first for loop), removes the extra redundant transparent pixels and saves it to its destination folder (second for loop).
def convert_to_png(source_path, destination_path, output_w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65962663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cURL variable empty I am using charts.js and trying to load data from a JSON API using cURL to pass to the chart. So I am using a PHP variable to pass to JavaScript. I did a test in ajax and it worked, but wanting to use cURL I cannot figure out the issue.
I created an if statement that it will print out nothing on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55800492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scroll away the uiview and have a continuous ui collection view I have a problem with the uiview and a ui collection view in a fixed position. Is there a way to scroll the ui view upwards and have an infinite ui collection view under with content? I want the whole view to be uicollection. Is there something I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29731421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compute stride mean in Pytorch? For example, we have x = [1, 2, 3, 4, 5] with stride = 3, step = 1, then the stride mean would be result = [2, 3, 4]. More specifically, I have a vector with shape = (batch_size, sequence_len, embed_dim), and I want to perform the above operation on dim = 1 (sequence_len). How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65629678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: collapse This tag is deprecated and should not be used. This tag has been deprecated due to lacking discriminating power.
Instead, use a tag related to the library that the collapse function belongs to.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/18385340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to cast COM object of type 'FAXCOMEXLib.FaxServerClass'
Hi All,
I have created a Dotnet Application using Dotnet 4.0 Programming language as VB.Net4.0. I have a Windows Service which sends out Fax Document using FaxComexLib Com Component, i have its Inetrop.FaxComexLib.dll, it works great in Windows 7 and Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11302289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS, different expand and collapsed behavior in Firefox and IE I have an panel which has expand menu and other like:
When I expand panel in IE 10 and Firefox 55.0.3, it seems like this:
But in chrome, it works well
There is two part on .tbl-main.Expandable search panel and result panel(tbl-container). I use f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46419353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Very basic multiprocessing example with pool.apply() never calls function or terminates I am trying to set up the very basic example of multiprocessing below. However, the execution only prints here and <_MainProcess(MainProcess, started)> and pool.apply() never even calls the function cube(). Instead, the execution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55446710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot change text to handwriting using pywhatkit Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Temp\tempCodeRunnerFile.python", line 2, in <module>
pywhatkit.text_to_handwriting("""
File "C:\Users\HP\AppData\Roaming\Python\Python311\site-packages\pywhatkit\handwriting.py", line 22, in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75472489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Calling a Procedure inside a Function PL/SQL I am trying to figure out how to call the following procedure from a function using Oracle 11g 11.2.0.2.0. Does anyone have some ideas? :
-- CREATES or REPLACES insert_into_table_a Procedure.
CREATE OR REPLACE PROCEDURE insert_into_table_a
-- Declares variable to be ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30687269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'python.analysis.typeCheckingMode'. Error: Unable to write to Folder Settings because no resource is provided I get this error when I open vs code. I have everything updated to the latest version. Type checking doesn't work.
I re-installed Python and vs code with all extensions, but the Pylance doesn't seem to work.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74763341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP generate random phrases from text I am trying to build unique random phrases from text for detecting plagiarism. The idea is author will submit an article and then php will build phrases from text which will be used for plagiarism detection
Consider following sentence:
This is a very long and boring article and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8023988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chart kick Timeline using Ruby on Rails and dynamic data I've installed Chartkick within my ROR app and I'm looking to use the timeline feature to display projects to give a simple and quick overview.
<%= @projects.each do |project|
timeline [
['project.hospital', "project.construction_start", "project.construc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37591123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get weights from tensorflow model Hello I would like to finetune VGG model from tensorflow. I have two questions.
How to get the weights from network? The trainable_variables returns empty list for me.
I used existing model from here: https://github.com/ry/tensorflow-vgg16 .
I find the post about getting weights how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36412065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I avoid "line breaking up" with line chart-JasperReport? I am using Jaspersoft Studio version 6.3.0.final with JasperReports Library version 6.3.0 . I'm creating a Line chart with different series and category values. My question is that, when the graph is plotted, I observed that if for one category there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47871437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get an index of a two dimensional array? I have a two-dimensional array like this:
(0|0),(0|1),(0|2)
(1|0),(1|1),(1|2)
I know the width and height of the array. I want to calculate the indexes as a single number like this:
0,1,2
3,4,5
How do I do this?
A: Looks like index = row * width + column to me.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/71284710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: 2 sliding menu with different size I use this sliding menu as a library. I want to have 2 menu with different sizes.
I have a problem : when i push the big one, another one will move with it
I change my main.java like this to have 2 different size menu in lef and right
@Override
public void onCreate(Bundle savedIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25384061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GetObject and VB6 ActiveX exe The VB6 help on GetObject says "You can't use GetObject to obtain a reference to a class created with Visual Basic" (the very last sentence!). My VB6 GUI exposes objects as an ActiveX exe, for other components to manipulate. I want the other components to connect to the GUI that's alrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/914628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: UIImageView with gestures recognizers Xcode Ios I have a UIImageView with gestures recognizers (scale, rotate, translate).
But after using it, the gestures don't work.
And my UIImageview changes the size and position.
How to fix this issue?
A: By default, UIImageViews do not have user interaction enabled. Try sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13316372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Descending not working in query, but it should work? I am making a scoreboard for my internship, for the games we play in the break. I have a really big query to get the results of all games and count the total of wins by players.
SELECT winner, SUM(total) AS total
FROM (SELECT pw.name AS `winner`, COUNT(*) AS tota... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55101431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a tree template in SQL I am working with a database used to store information about entities in the form of a tree of components. For example, it might have a camry object with children air-conditioner and engine. The engine might have pistons as children, and air-con have vents as children.
The idea is tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29761813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return function in another function, please? May someone help me with the following code, please. I try to return a function result in another function: alert("Your email is: " /*+ email of the user*/);
Spiritueux Wines and Liquors
<script>
function check_user_age() {
if (age_of_user() < 18)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60816182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Joomla: Display part of menu I'm trying to make a small left menu in my Joomla articles. Since I use the SP Pagebuilder to display the articles, the module on my page isn't also displayed on my article. With the advanced module manager I was able to put a module in my articles, but there's one problem: I can't displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39142300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PayPal Payment not working any more - Laravel Paypal I recently added PayPal payment to my site (using Laravel in general). Therefore I'm using this plugin.
The complete code I'm using is:
public function getCheckout(Request $request)
{
$userInfo = \App\User::where('id', '=', \Auth::user()->id)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40684154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ efficient way to store and update sorted items I have a operation that continuously generates random solutions (std::vector<float>). I evaluate the solutions against a mathematical function to see their usefulness (float). I would like to store the top 10 solutions all the time. What would be the most efficient ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63552767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Kibana user forbidden error {"statusCode":403,"error":"Forbidden","message":"Forbidden"} I just setup my xpack in elasticsearch 7.1.0
as below in elasticsearch.yml:
xpack.security.enabled: true
discovery.type: single-node
in my elasticsearch.yml
Then, i ran
>elasticsearch-setup-passwords interactive
and changed al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58026128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CakePHP - a code sample seems strange to me, what am i missing? Attached code taken from cakephp bakery, where someone uploaded a sample about custom validation rules.
class Contact extends AppModel
{
var $name = 'Contact';
var $validate = array(
'email' => array(
'identicalFieldValues' =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7265005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete from a Map with JPQL I have these entities:
@Entity
public class ActiveQuest {
@OneToMany(orphanRemoval=true,cascade=CascadeType.ALL,mappedBy="activeQuest")
@MapKey(name="task")
private Map<String, ActiveTask> activeTasks = Maps.createHash();
}
@Entity
public class ActiveTask implements Seriali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13378801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make different lower and upper in mysql select I want to search for a name on database. But I just want select Bill , not biLL or BiLL or ... just "Bill". But when I use this query which shows Bill , BiLL, BILL, bilL and ...
query=`select * from names where name='Bill'`
A: To quote the documentation:
The default ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26692398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I handle this response from YQL In a request to YQL (select * from html where url="...") I got the following response:
callback({
"query":
{"count":"1","created":"2011-05-09T23:29:05Z","lang":"en-US"
}, "results": ["<body>... we\ufffdll call Mr ...</body>"]
}
This is from the YQL console pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5957363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring controller is not being called I am new in spring application. I am trying to create small spring application but I am getting 404 error message. Seems like controller (indexController) is not begin called. I tired to debug but its not going there.
Files location:
/WebContent/WEB-INF/pages/index.html
/WebCon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38945362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Phone: How to retrieve the same photo from media library between application instances How do I retrieve the same photo from the media library between application instances? I launch the photo library for the user to select a photo via:
PhotoChooserTask myPhotoChooser = new PhotoChoo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5740552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to store pointers to structs in variables instead of the struct itself I'm currently learning Go and am following a tutorial about how to use Go with Stripe. There is this example code:
package main
import (
"fmt"
"github.com/stripe/stripe-go"
"github.com/stripe-go/customer"
)
func main() {
sc := &cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67193289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select columns that have name beginning with same prefix? Using PostgreSQL 8.1.11, is there a way to select a set of columns that have name beginning with same prefix.
Suppose we have columns : PREFIX_col1, PREFIX_col2, ...
Is it possible to do a request like :
SELECT 'PREFIX_*' FROM mytable;
Which of cours... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3941156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: logger.debug ["This is", "an", "Array"] Rails Why is my output of
logger.debug ["This is", "an", "Array"]
This isanArray
and not something like
["This is", "an", "Array"]
Is there a way to do this? (I know I could do to_yaml, but that is too verbose for me)
What are some options for a nice clean output of an array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5196240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: D3.js on("drag") called even when I just click a node I've been working with the example on directed graphs here - http://bl.ocks.org/cjrd/6863459.
Here, there is a on drag function in the JS code (graph-creator.js)-
.on("drag", function(args){
thisGraph.state.justDragged = true;
thisGraph.dragmove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34714679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a temporary table to query and update existing table I am still new to using SQL and this query has got me particularly stuck.
I am importing a .CSV file into a temporary table (it is only 1 column wide and it imports fine with the exception of the first row which is for some reason blank) for the purpose of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37796196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: download tool files from web browser of my Liberty server I would like to use my running server as a repository of files that my users can download from a link.
is this possible with liberty?
Is there a configuration that will allow me to do this ?
thanks
Stefania
C:\Program Files\IBM\WebSphere\Liberty\usr\servers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48270096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: what is the IDE for using SPECMAN I have been searching for what IDE to use in order to start studying SPECAMAN.
I would like to know what is the IDE for e/specman and where I can download it ?
Also if there is a good tutoriaal for it.
Thanks in advance.
A: This is a plugin for eclipse which costs money. http://ww... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16669768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display text/banner if AdView cant loaded I try to display a banner / text if the AdView fails to load (because of AdBlock or anything else).
I tried different methods:
*
*Two RelativeLayouts above (both were hidden from AdBlock ...)
*Set a text view in the RelativeLayout which contain my AdView to visible if Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9084260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XSLT 2 character only generate-id I'd like to use generate-id in my xslt stylesheet.
However, this function generates a 8 character long id.
Is there a way to make the id have only two characters ? Of course this makes a limited number of possible id (1296 possibilities), but I will never need to go beyond that limi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10937246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: App Pool Timeout Destroys ASP.NET code behind properties I am maintaining some data in form of a dictionary as an ASP.NET code behind property. When the App Pool timeout is reached, dictionary with data is destroyed (surprisingly other string properties are not).
I am using PageMethods (works like AJAX) to load part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45065361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Controller / leading/trailing whitespaces in URL I've a very simple Spring MVC application, for example:
@Controller
@RequestMapping("/rest")
public class MyController {
@RequestMapping(value = "/endpointA"}
public @ResponseBody ResponseObject endpointA() {
return something;
}
}
The endpo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39169769",
"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.