text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Counting online users using asp.net I'm to create a website for which I need to count the online users and show it on the home page all the time. I'm not interested to apply ready-to-use modules for it. Here is what I have already done:
Adding a Global.asax file to my project
Writing the following code snippet in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10481351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Iteration results in fixed-size groups I can iterate over a list or string in fixed-size slices like this:
for n in range(0, len(somelongstring), 10):
print(somelongstring[n:n+10])
But how do I iterate over 10-line slices from an open file, or over some other iterable, without reading the whole thing into a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74165798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keras Conv2D get_weights clones a copy? Does get_weights make a deep clone copy or something?
The changes I make to the convolution kernels have no effect on the model until I call set_weights.
In the keras source get_weights is calling batch_get_values but the internals of that ore rather hard to understand.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/51390238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to build a Static SPA with Next.js that has dynamic routes? I'm looking to build a static Next.js Single Page App that has dynamic routes, for example: /posts/123. I'd like to do this to:
*
*Be able to host the site anywhere (e.g. S3)
*Not need to know the routes at build time (so our APIs can chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66231900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hive: Whenever it fires a map reduce it gives me this error "Can not create a Path from an empty string", how do I debug? I am using hive 0.10 and when I do
hive -e "show tables", hive -e "desc table_name" it works!
but when I do something like hive -e "select count(*) table_name I am getting the exception below. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24564357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to remove all PLMNs in EF FPLMN? When I want to remove a specific PLMN from EF FPLMN, I just replace it with FFFFFF according to Ts-131102 section 4.2.16. so for example if I want to remove 32f856 from EF FPLMN with the content 32f85632f857 in it, I just replace the desired PLMN with FFFFFF with the Update Binar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65576260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using AJAX, and retrieving the ready states I am using the code behind for the retrieving the ready states and it's works good for me. May I please ask how can I add a else statemen in this content. Like if the url is not available I would like to print a message to user. Like
document.getElementById("div p").innerH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40534080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select one way without return Working with the professional mobility of insee on more than 1m of entities, i seek to add up a field called ipondi only on the journeys from commune of residence to commune of work, and not of commune of work to residential commune.
Let us assume a simple example, with the column of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60822400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MYSQL SELECT random on large table ORDER BY SCORE I have a large mysql table with about 25000 rows. There are 5 table fields: ID, NAME, SCORE, AGE,SEX
I need to select random 5 MALES order BY SCORE DESC
For instance, if there are 100 men that score 60 each and another 100 that score 45 each, the script should return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25361158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Not able to upload/pick images and file attachments in Android 11 device from external storage and other folders except from downloads Hello there,
*
*I have a custom android app that allows uploading of files
(pdf,excel,doc,images).
*I'm able to upload such files from any path on the device until I
was using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68962247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PIXI Check if DisplayObject is added to or removed from stage In PIXI is there a way to know if a DisplayObject is added to or removed from stage. I'm aware of the 'added' and 'removed' events, but they only trigger if the immediate DisplayObject is added to or removed from its parent but not recursively for all its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55965843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android webview jquery mobile pageshow not firing on navigating back A strange peculiar thing is happening in Android WebView.The page show is firing only once when the page is first loaded.Then if i navigate to another jquery mobile page and then navigate back.The page show is not invoked.
Desktop version of Firefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13340718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compilation error with QueryOver and multiple SubQueries I'm getting the following compilation error when I'm using QueryOver with a list of sub queries:
"The type arguments for method 'xxxx' cannot be inferred from the usage. Try specifying the type arguments explicitly."
Here is the code but not sure how I can cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26381750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extracting unsigned char from array of numpy.uint8 I have code to extract a numeric value from a python sequence, and it works well in most cases, but not for a numpy array.
When I try to extract an unsigned char, I do the following
unsigned char val = boost::python::extract<unsigned char>(sequence[n]);
where seque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26595350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Need to combine all element values I want to combine the tag element values into single value
Xml I'm having:
<h1>aaa</h1>
<h1>bbb</h1>
<h1>ccc</h1>
XSL I used:
<xsl:template match="h1[h1]">
<h1><xsl:value-of select="h1"/></h1>
</xsl:template>
But I'm currently getting like
<h1>aaa</h1>
<h1>bbb</h1>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45500380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass CollectionView photo to Email Attachment iOS swift I've choose some photo from the photo library and populated into the collectionView. Then my collection view will have some photos inside.
Here is my code for getting the photos into collection view.
func collectionView(collectionView: UICollectionView, cellFor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34171854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can i get the current dom after javascripts made changes to the html source with selenium in java? i've read many posts about this, but so far i couldn't find a solution. maybe i am too dumb, in that case, please point it out while beeing nice to me :D
this is my first question i post here, so be nice anyways :D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26739630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataDog metrics aren't working for my python application running on lambda I referred to a few docs on DataDog's website and it's still not collecting any metrics and sending them to DataDog. The function executes perfectly and I thought I configured everything correctly but it's not working.
Here's my application c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71866970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add a timestamp for each row inserted using SSIS? I inherited an SSIS project that downloads some files via FTP, unzips them into some weird proprietary format then inserts them into a small datawarehouse. I now need to add a timestamp for each record. I am pretty new to SSIS - but have seen many people use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37321511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Security considerations when creating a mobile app using PhoneGap I'm a beginner in creating mobile apps with phonegap. I have some doubts on security aspects, when creating a mobile app with phonegap.
*
*I want to create an app that accesses a Web service, e.g. a REST service created using Jersey. Now, am I corr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10466154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Creating and extending objects in javascript overwrites base object's variables I have a basic wrapper for Object.create to be used for our application. Basically the process is to use Object.create on a parent object, then .extend({}) to add new functionality to it. If we need to call a method on the parent class, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21068234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have problem with the comment font in android studio I want to write a comment with my code in android studio but the font style is not clear,
who can I change it?
pic for the problem
https://imgur.com/Oj8hDro
A: You should be able to change the font in settings
*
*On Windows: File -> Settings
*On Mac: Andro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55564411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does not image cleanup policy work in Gitlab? I have following GitLab cleanup policy
I assumed that the images would be cleared. And If would send a get query like
headers = {"PRIVATE-TOKEN": TOKEN}
url = "https://.../api/v4/projects/" + PROJECT_ID + "/registry/repositories"
I had to get something like
"clean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64658793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Symfony2 and Doctrine2: High memory usage when querying for object I have two (for this question relevant) Entities which are in a many (certificates) to one (policy) relationship:
*
*Certificate
*Policy
...which basically look like this:
class Policy {
/**
* @ORM\Id
* @ORM\Column(type="integer")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19499046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Laravel: Unknown column 'ìtem_size_id' in hasManyThrough relationship I'm trying to build my own e-commerce shop as training with laravel, I set up a hasManyThrough relationship with models Item, ItemOption,ItemSize and ItemColor. Isssue arises when I seed my database with dummy data, I get the following error:
SQLS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60387711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do we use static with array of pointers? Why do we use static with array of pointers? What is the relation between static and array of pointers?
For example:
int main()
{
int a[]={1,2,3};
int *p[]={a,a+1,a+2};
......
return 0;
}
This code shows illegal initialization - why? Whereas the following code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2657493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XAML touch events don't work I'm developing windows8.1 game with c++ (DirectX and XAML App). And I have discovered few problems with handling touches in my game. I'm using these event handlers to detect user touches/clicks.
// The CoreIndependentInputSource will raise pointer events for the specified device types on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28109714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a slide switch using jetpack compose? I want to create this type of slid switch using jetpack compose but I don't know how to do it can anyone help me with it? it will toggle between this 2 option
A: You can use TabRow like this:
val items = (0..1)
var activeTabIndex by remember { mutableStateOf(0) }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71428563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uploading metadata to IPFS using Pinata API for NFTs I'm having an issue uploading my metadata to Pinata via their API. I've tried it in a test file and it works perfectly, but in my larger file, it's throwing an error. This is my Upload function below. I think the issue is when upload(metadata) calls createFile(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70249699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is there an additional copy of a DLL when deploying a BizTalk application? If I deploy a BizTalk application from within Visual Studio using the "Deploy Solution" menu option, the DLL goes into the GAC.
But if I create a MSI by using the BizTalk admin console, remove all traces of the application and DLL, and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23388133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace all values in a data.frame using forcats::fct_explicit_na()? I have a data frame with 19 variables, 17 of which are factors. Some of these factors contain missing values, coded as NA. I would like to recode missings as a separate factor level "to_impute" using forcats::fct_explicit_na() for all facto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49338118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Update PWA icon on android I created a React PWA app and I thought how would my icon update on the home screen if I already added a first version ?
I tried to update the manifest but nothing changed.
Any idea?
A: Changes aren't reflected immediately. In most cases, changes should be reflected within a day or two of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50628962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What can I do when avoiding overdrawing conflicted with batch rendering in OpenGL? Say, I have some render units sorted in distance from camera order.
Such as ru0, ru1, ru2, ru3, ru4, ru5....The purpose of doing this is to avoid overdrawing by z depth test.
But, in batch rendering view, this is a kind of wast.
Assum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44405539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP request isn't get value I have a slider which one is in a tag. I want to put the slider's to a database.
In the "index.php":
<form class="" action="insert.php" method="$_POST">
<input type="range" min="1" max="10" value="5" class="slider" id="myRange" name="myrange">
<p>Value: <span id="demo"></span></p>
<b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66651650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Alternatives for PHP / cURL Cookies? Are there any alternatives with PHP / cURL without cookies cache on the server like using a .txt file in the cURL Options CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE?
I tried to read the cookies from the HTTP header of the CURL session and to set them manually to avoid a server-side... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30980235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should we prevent XSS attacks that *only* break page rendering? Suppose we have a form that allows entering a piece of markdown as a message body. That text is then render in HTML as JSON on another page:
<html>
<body>
<script type="text/javascript">
loadMessage({
name: 'John Doe',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16026755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Query to count the number of each element in an object I have a database table like this:
Room Name || Animal
----------------------------
Room1 || Cat
Room1 || Dog
Room1 || Dog
Room2 || Cat
Room2 || Cat
Room2 || Dog
Room2 || Dog
I want to read this table with a SQL query and as result I want to count t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7496097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reflection.Emit.ILGenerator Exception Handling "Leave" instruction First, some background info:
I am making a compiler for a school project. It is already working, and I'm expending a lot of effort to bug fix and/or optimize it. I've recently run into a problem with is that I discovered that the ILGenerator object g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9642512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a reason behind this weird noise in GAN generated images? When training a GAN to generate images of faces (with the celebrity faces dataset from keggle), I keep on getting ok-ish looking faces, but this very weird noise that looks like fire (and makes the generated faces look unnervingly demonic). An exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60762541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: clean html a string by element id using php as you can see by the subject am looking for a tool for cleaning up a HTML string in php using a HTML id property, example:
According to the following PHP string I wish to clean the HTML erasing the black11
$test = '
<div id="block1">
<div id="block11">Hello1 <span>mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2723964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Ionic (angular).Unable to access Hardware back button of mobile devices which have buttons inside the display/screen I am facing a problem when I trying to access hardware back button so that I can produce an alert message to the user before the app get closed.
Initially I was unable to do , so I raised a ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59623019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maya ASCII Filepath Replace My first post here but I've spent the last few weeks basically living on S.O., looking for answers and solutions. Unfortunately I have not found an answer to my current problem on here, or anywhere else, so I am hoping one of you lovely people can help me.
I am trying to batch process Au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49859115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stored Procedure to Insert data from a particular timestamp into a temp table and truncate the main table I have a set of tables (_del tables) that keep track of all the deleted data. I want to copy the records with a timestamp of today and later from these tables into temporary tables. After that I want to truncate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11195742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: stringByReplacingCharactersInRange does not work? I am attempting to replace a character with another one. For some reason stringByReplacingCharactersInRange does not work. I have not found a simple explanation on how to resolve this issue.
var binaryColor: String = "000"
(binaryColor as NSString).stringByReplacingC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30671680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define spark submit configuration correctly? I run my spark program on 6 PCs (1 master and 5 workers) connected by LAN. Each of them is equipped with 6 CPU cores and 8GB RAM. Below is my spark submit configuration. Based on my configuration, I have 5 partitions and I hope that each executor will take 1 partit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68515654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to correctly order an ArrayList containing Strings and numbers? I am currently trying to order an ArrayList of String elements (called myarraylist) according to the numbers found after the word "Item". Here is a snippet of what is in myarraylist:
Item 1
Item 2
Item 3
...
Item 9
Item 10
I would like to order mya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24329658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Will using "delete" here actually delete the object? I was implementing a LinkedList using C++, and I seem to have forgotten a few things when dealing with dynamically allocated memory.
I have a node class:
class Node {
public:
Node(int d) {
data = d;
next = NULL;
}
Node(int d, Node* n) {
da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33432806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explore the Sharepoint WebServices to integrate with iPhone I want to integrate sharepoint services with my iPhone app. I do want to explore the web services provided by microsoft share point. From where can i get those services?
Thanks in Advance.
A: I am not sure but you can get the list of services for sharepoin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16056363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a HTML Title Box via JS Is there a way to display a title box without creating a html element with title="something" attribute and moving the mouse over it?
Something like: document.tooltip = "Google";
that would display http://puu.sh/67Fub.jpg without having to move the mouse over the Google image nor needi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20896562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check if ng content is empty in Angular I have a component that has two TemplateRefs
@ViewChild('optionContent') optionContent: TemplateRef<unknown>; @ViewChild('selectContent') selectContent: TemplateRef<unknown>;
with template:
<ng-template #optionContent>
<ng-content select="[option]"></ng-content>
</n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75146836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to hook data from S3 to RoR driven website? I am ding some processing on business data using EMR and my output is stored in S3. I need to setup a reporting dashboard to surface up this processed data. I was looking into various options and seems Ruby on Rails is good framework to start with.
Is it pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8265867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Core - Bind IEnumerable to a ViewModel field on POST I have a web application for registering teams to a competition, where each team can select a number of technologies that they will use for their project. The technologies are saved in a Label class.
I am using a view model to bind the information from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54555548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python argparse - passing "argument" to argument I'd like to pass an "argument" to argument.
I.e., in the following code:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-a")
print parser.parse_args(['-a', 'hi'])
print parser.parse_args(['-a', '-hi'])
The output is:
Namespace(a='hi')
usage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48322986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change MaxInactiveIntervalInSeconds value in spring session java based configuration? I have implemented spring session in spring MVC application. It is creating session tables in my database and storing the session ids. But i am not able to change the 'MaxInactiveIntervalInSeconds' value. In XML based config... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60616219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Override GET or any default method on strongloop I need to override the GET on strongloop. So when I GET foo/ it returns something different as the default one.
I tried using remoteMethod with http: {path: '/', verb: 'get'} without success.
How can I override any default method on strongloop?
A: Finally I found it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35326873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Bootstrap User Input in Modal I have set up my page with the help of bootstrap.
Visit: hubb.tekkkz.com
I have the problem that if you click on login/register on the right, the modal appears. BUT! the user input elements aren't as wide as the parent container is, so the free space to the left between element and moda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30923967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: AJAX Image Upload to Wordpress So I'm trying to allow users to upload an image from the front end of a Wordpress site. I don't want them to have to sign up for an account or anything. I'm using the jQuery plugin AJAXUpload to handle everything on the front end and it's working perfectly. However whenever I call i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14393524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make aspectj work with scala model I have a domain made in Scala and some classes made in Java. I need to make some aspects with Aspectj that I know that work because with a Java class and it works.
The problem is that when the Scala class is annotated it does not work. Other annotations like hibernate's work well ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43402698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date variable doesn't change after exiting while loop I have a range of dates
ie 2020/6/7 - 2020/6/10 and then do the following
*
*Add 20 calendar days
*Checks whether it is a weekend or a public holiday
*If it fall on a weekend or public holiday, add days until it falls
on the next nearest business day
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62246478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Summing a total from different functions - Javascript I need to be able to create a seperate function which creates a total figure from variables within 2 different functions.
function addToy1()
{
var i = document.getElementById("qty_toy1");
var qtytoy1 = i.options[i.selectedIndex].text;
var qtytoy1tot = qtytoy1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10021711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove lines that contain non-english (Ascii) characters from a file I have a text file with characters from different languages like (chinese, latin etc)
I want to remove all lines that contain these non-English characters. I want to include all English characters (a-b), numbers (0-9) and all punctuations.
How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11577720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is Test coverage going down with JRebel? it's good practice to write Unittests to
*
*be independed of the whole spring application context
*automate the test you are doing for continuous integration
*avoid dependency on the Servlet Container
I guess with JRebel there's a temptation to test everything in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1683640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Insert CSS from Chrome Extension I'm working on a chrome extension that allows the user to change the CSS of a page. I've attempted using the insertCSS method in the chrome.tabs api, and simply trying to append a style tag to the HTML, but i have not been successful. Can anyone tell me how either the insertCSS metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19783009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems adding UIViewController to UINavigationController My RootViewController is a UITableViewController. A UINavigationController is added programmatically:
_navigationController = [[[UINavigationController alloc] initWithRootViewController:_rootViewController] autorelease];
[self.window addSubview:_navigationCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6309907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can use itertools to generate all character permutations in a unicode string(Python) I am trying to generate all possible character permutation in a unicode string
How can I use
import itertools
itertools.permutation
for that purpose ?
Any suggestions?
A: If you want a list of the permutations, you can do
l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21364871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook app like button shows like count but insights doesn't show any I'm using the standard like button code on our Facebook app. This shows likes when you click it and increments as you would expect.
The page has all the correct meta data, app_id etc.
But in insights the 'likes' are always zero.
Anyone know if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17681653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with sso-login in Django, Error GET /authorize/?token= HTTP/1.1"404 250 I am trying to run simple Django application.
I have already installed simple-sso module in my local app.
I tried but not solved.
Following images tell us that error is occured when i run localserver.
enter image description here
enter i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75146472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SwiftUI button in navigation bar only works once Moving a button up into the navigation bar only triggers once when it has a sheet attached. The button is used to show a search window but once the popup is closed the button remains inactive.
The attached code is a simplified version of what I tried. At first I used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57162633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Microsoft SQL Server 2014 Express Size Limit I am transferring all of my projects to a newly owned VPS server. I have successfully configured the server and everything works perfect. However, I've learned Express version only have 10 gigs of database limit. Now I am a bit confused in that. 10 Gigabytes of limit is f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28009657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving information about an Image Good day,
Anybody knows of a good java library for retrieving mime type and dimension of a jpeg, gif, and png image file in java?
I tried javax.imageio.ImageIO but it seems that there are some image files that it can't handle (i.e. images created with adobe photoshop).
Thanks,
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1292744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JMeter Regular Expression to extract number I want to extract letters-number from response data and tried few regex but none are working.
E.g. the response data (json) will contain something like:
"sessionId":"WC-123"
And I want to extract value of sessionId i.e. WC-123 and store it in variable so that it can be u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15697287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Store date and time in sql server 2012 using c# i want to store date and time in SQL Server 2012 using asp.net but generate some error "Conversion failed when converting date and/or time from character string."
protected void btn Submit_Click(object sender, EventArgs e)
{
lbldate.Text = Convert.ToDateTim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49767682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Filter on http get response- angularjs <div ng-repeat="dat in details | filter : { dat.product_name : textname}">
<hr/>
<p style="color:#4C97C8;" class="lead"><strong>{{dat.product_name}}</strong></p>
</div>
is i am doing any mistake?
A: Just remove the .dat prefix in filter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41243180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Integration of a 3D matrix over one direction Want to integrate a 3D matrix of size n*m*p (n rows, m columns and p slices) numerically using the Trapez rule over the third dimension, i.e., over the slices direction, in MATLAB without using any loops.
Following is my attempt, for an integrand function f(i,j,x) = cos(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70899135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to append custom td to table generated from two-dimensional array? I am working on the following code. I am trying to work out why I am not able to append all <td> in one row? What I want to do is appending a custom <td> at begging of each rows in a way to look like:
<tr>
<td>Defult TD</td>
<td>52</td>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55192470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Boot, JPA, OrderForm I want to make an orderform with spring boot where I can Save the order with more order items.
I dont't know how to implement the Service, Class and even the thymeleaf page for this.
Any hint would be great!
Here's a picture what I want to make
An here's my two entity class(no getters an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65436023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to download LLVM for redhat 32 bits I want to download LLVM for red hat 32-bit. Have searcher for it on official site of LLVM but can't find it. Can any one help?
A: Step by step:
Install gcc
sudo yum install gcc
Install LLVM & Clang
sudo yum install clang
Check the installed versions, and see their locations... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34726461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: onTabSelected not refreshing the fragment Hi i am trying to develop an action bar navigation screen in which i m displaying two tabs.I am activating the fragments in onTabselected listener. But until i call fragementtransaction.commit() changes are not reflecting.It works only one time, i mean, if i switch to tab2 a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15401267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django - Admin custom field display & behavior Let's imagine this model:
class ScribPart(models.Model):
name = models.CharField(max_length=50, unique=True)
text = models.TextField()
I'd like to attach a specific class to the field text and call a specific js file. So that the admin page would be like:
...
<scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7027752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to fix input issue in CodeMirror I'm trying to get code mirror to read and display the contents of a file into the textarea, but everytime I load a file, it prints the contents as one line, ignoring all line breaks, and if I try to manually enter text into the text field, it automatically tabs every line after t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55942309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save the text-index encoding mapping So I am able to train a text classifier with Keras and I can save the model too. My question is when I load the model for predicting unknown texts, I have to encode my input text same way as it was encoded during the training process. How am I able to save the mapping during the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44072716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass $BUILD_NUMBER in jenkins on remote host I am trying to execute shell script on remote host but I am not sure how to pass Jenkins Environment Variable for Ex: BUILD_NUMBER
Execute shell script on remote host using ssh
SSH site
Could some one let me know how to do it?
Thanks
praveen
A: Just pass $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8347893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jPlayer video not playing in iOs - iPad and iPhone My video is playing in all browsers for both PC and Mac - Chrome, Firefox, IE and Safari as well as Android tablets and phones. However, it will not play on an iPad or iPhone. I am testing on an iPad mini2 with iOS 9.2.
But when I sync the iPad with my computer and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35454088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Issue installing python 3.7.0 on win7 I am on windows 7 integral version, and can't install python 3.7.0 and I already updated it with SP1.
This is the log file of the failed setup:
[0BAC:07F4][2018-08-30T08:29:19]i001: Burn v3.11.1.2318, Windows v6.1 (Build 7600: Service Pack 0), path: C:\Users\me\AppData\Local\Tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52091532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Julia: How to save a figure without plotting/displaying it in PyPlot? I am using the PyPlot package in Julia to generate and save several figures. My current approach is to display the figure and then save it using savefig.
using PyPlot
a = rand(50,40)
imshow(a)
savefig("a.png")
Is there a way to save the figure wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39562515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Keeping track of more than one level of page referrers The scenario (all happening within the administration area/backend):
*
*From the listing page, the user clicks a link to view an article (on the backend).
*From the article view page, the user clicks a link to edit that article.
*In the article edit page, f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10527649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: STM32- RTOS -Task Notify From ISR I want to notify my task to run from an ISR. I red the RTOS docs but I could not do it. I would really appreciate if you tell me what I am supposed to do and give an example if it is possible. I used cmsis-V2.
Inside the ISR which I am sure the ISR works correctly I wrote:
void HA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73765264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Misunderstood code example I was reading this book http://publications.gbdirect.co.uk/c_book/chapter8/const_and_volatile.html and I stopped at one of the examples. In my opinion it is incorrect. I think, that there is no undefined behaviour. Am I wrong? Here it is:
Taking the address of a data object of a type whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29996692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does Memcached add() always succeed, regardless of expire time? I'm adding a key using Memcached like so:
$valueToStore = time(); // some number
$success = $memcached->add( 'test_key', $valueToStore, 20 ); // cache for 20 seconds
But it's always succeeding when I call it in a different session, even before 20 s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25276034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding JQuery events JQuery events are annoying me. The thing is that I very often use
javascript (after ajax requests, etc.) to draw up new elements
(buttons, divs, etc.). I've got a list of elements
which you can press on an edit button so you can manipulate the one
linked to the selected edit button.
Now if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1449550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to initialize karma config file using "karma init". but not working
I have installed the above packages of npm . Even reinstalled nodejs to its latest version. Still when I am giving command "karma init , its not executing anything that is it's not opening the karma config file set-up. Please help..
A: If y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36952456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to declare and use a function in jQuery I am wondering how I should declare a function in a jQuery script.
What I've got now:
function adjust_menu() {
alert("test test");
};
but when I call it like this:
("#first_link").click(function() {
adjust_menu();
});
it doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4092229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding Sharepoint user remotely PowerShell script Running EnsureUser on an existing domain account give an error that the user could not be found. Same command(s) works fine in PowerShell on SharePoint server locally. I am able to create a SharePoint group remotely, just can't add a user to that group.
$site = new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57130160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'ld' cannot link symbols, although they are in library I have a problem while trying to compile and link my program with "dmalloc".
bin
+--dmalloc
include
+--dmalloc.h
lib
+--libdmalloc.a
+--libdmallocth.a
main.c
I have the following directory structure
Now I try to compile my program with the following command:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9736589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fast Report displaying incorrect data from ADOQuery I have a problem with Fast Report displaying incorrect data from an ADOquery. I use the following sql.text
SELECT * FROM JOB_DATA
INNER JOIN CUSTOMER ON JOB_DATA.CUST_CODE = CUSTOMER.CUST_CODE
WHERE JOB_DATA.SHIP_DATE Between [Date1] And [Date2]
ORDER by SHIP_D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18114360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Polymorphism in SignalR Having problem getting this to work.
I want my hub to handle a generic in the argument. So the parameter type is an abstract class which'll be implemented by a concrete generic type - since I can't possibly create a generic method. Like this:
public void Process(MyAbstractClass arg)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19129875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best practice to order message working process with JMS I have a task: I want to parallelize message receiving process. The task has thin place: special marked messages must be processed in special order - in order of receiving by my service. I'm trying to solve the task with JMS.
Messages are placing in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43406493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Appengine search index and namespaces I am writing a multi-tenant application using appengine namespaces. We need a separate index per tenant for searching employees (to avoid the 10GB limit of a search index).
If I create a search index "employees" (in golang search.Open("employees") ) and index the following docs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47823778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting single column with strings with separator ('|') to multiple columns with binary values based on the string value I have one million records of data frame with a column, which contains multiple combined strings with a delimiter as a separator .
In the required data frame ,I need to retain the column and h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64255275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matplotlib and datetime error date2num function AttributeError I'm trying to plot a graph with a list of datetime objects as one axis. I searched online and it seems I should call the date2num function. However, when I call it I get an Attribute error.
Here's the code I wrote:
listOfDates
[datetime.date(2013, 8, 20)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18357618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.