text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to return List> using Hibernate I want to return a List of maps from my createNativeQuery().getResultList(), where each map is a pair key - value representing column name - value. I already tried to use direct in the method like this:
public List<Map<String, Object>> execQuery(String nativeQuery) {
return en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38533488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Laravel 5 public folder asset management I have a file stored in public/files/sample.pdf. When I want to download the file using <a href="/public/files/sample.pdf">Download</a>. It says not found. What will be the correct path. Thank you.
A: /files/sample.pdf
You can always use
href="{{asset('files/sample.pdf')}}"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30473006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: W3C Font-Family Parse error 'Open Sans', Helvetica, Arial, sans-serif; Why do I get an Parse error ( line 24 ) on this line of CSS?
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
the full Code where I get this error is:
.btn {
display: inline-block;
*display: inline;
/* IE7 inline-block hack */
*z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46867358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL WHERE IN no result with error I'm writing this little import/export class, and whenever I run it, the query fails, stating:
You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near ')' at line 1
This is the query I wrote:
SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12834897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parse Hello World warning - A long-running operation is being executed on the main thread I get the following error:
Warning: A long-running operation is being executed on the main
thread. Break on warnBlockingOperationOnMainThread() to debug.
Code as follows:
- (IBAction)createButtonClicked:(id)sender {
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29763462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send a GET request in html Is this possible? If not what are some alternatives..
Simply I want to send a GET request to
//steamgaug.es/api/v2
"ISteamClient": {
"online": 1
},
and have it respond to this i.e
if ISteamClient online:1
then make it do something
A: It's not possible with HTML. Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33453435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .append() in Python is very slow. Is there a way to improve it? Consider:
i = 2
feature_vector_set = []
while i < 2405 - 2:
j = 2
while j < 1200 - 2:
block = diff_image[i-2:i+3, j-2:j+3]
feature = block.flatten()
feature_vector_set.append(feature)
j = j+1
i = i+1
diff_image i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58741519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to rotate NSButton in clockwise direction from its center point in Cocoa? I want to set animation for NSButton in my mac application.
I followed the below link for the same, but below code is working for iOS, not for Mac.
How to rotate a flat object around its center in perspective view?
What I want to achieve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51113571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swift - Parse Query whereKey contains I have a parse object that i have saved to the LDS and i want to search for it via 1 key and an entry under another key.
Key: This is fine.
checkQuery.whereKeyExists("File-rZVgZNpNuB")
Key that contains: This does not work.
checkQuery.whereKey("seachKey", contains: "myItem00000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42589092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mailgun Attachments with PHP cURL - No SDK Catch Up Quickly: Due to the nature of what I've most recently found. I have recreated this question in a different category because this does not seem to be a Mailgun issue. That question can be found here:
PHP 7.2 CURLFile Gives "Invalid Filename" Warning
I'm aware of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54678804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Yii - echo the last query I have used Codeigniter before and it has a feature that will echo the last database query - really useful for debugging.
eg...
$this->getSomeData->findAll();
Yii command to output this single query e.g SELECT * FROM TABLE...
Does Yii have a similar feature to simply show the very last que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21231729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the risk of updating Registry settings programatically? I am trying to change the proxy settings to Enabled/Disabled for Internet Explorer programatically using C#. This to toggele between web sites that would require proxy or not.
My Code:
string key = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13833669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SCM Poll in jenkins multibranch pipeline Wanted to accommodate scheduled build starting 12AM every 3 hrs till 3PM on every weekday(mon-fri). It should be triggered build only if anything is committed into github repository.
Please provide the exact code as few code is working for multi-branch but not for above sched... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53388927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Error on ConfigureAwait(false) I am trying to retrieve some data from an API, the following is my piece of code that makes the request after authenticating and assigning the completed URL.
public async Task<T> GetAPIData<T>(string url)
{
using (var client = HttpClientSetup())
{
var response = await c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36083050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get google recaptcha Public key from drupal API? I need to render the recaptcha manually and therefore I need a way to get the google recaptcha "Public key" from dupal 7 API.
It is currently in this path in the admin panel:
admin/config/spam_protection/google_recaptcha
A: For anyone come across this problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35407027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get all table names in android sqlite database? I have tried this code
Cursor c=db.rawQuery("SELECT name FROM sqlite_master WHERE type = 'table'",null);
c.moveToFirst();
while(!c.isAfterLast()){
Toast.makeText(activityName.this, "Table Name=> "+c.getString(0),
Toast.LENGTH_LONG).show();
}
But it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15383847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Passing data to a controller with $.ajax (MVC 4) I have the following editor template:
DropDownListEditorTemplate
@model DropDownListViewModel
<script type="text/javascript">
$(function() {
$("select").on("change", function () {
$.ajax({
type: "POST",
url: '@U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29475585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error: Module administration/tfasettings not found I'm busy working on developing some plugins and apps, and when i am running c8y server locally and i try to enter Administration, i keep getting the following error:
Error: Module administration/tfasettings not found
Any ideas?
A: We have already fixed the issue ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49155214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iTextSharp table layout problems I'm having problems creating a particular layout in iTextSharp using tables.
I begin the document by creating a table that splits the page in two, and in each of these columns I then insert an additional table with x rows and 1 column each.
The reason I want to do it like this is bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19251316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Datagridview Data Population from the database where one cell is a combobox c# I have a datagrid view that I need to populate with content from the database.
My database content is in a datatable that typically looks like this :
Prod id ProdName Version
1 abc 1.1
1 abc 2.1
1 abc 3.1
2 def 3.1
2 def 3.2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27281660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simultaneous multiple key press release delay I am developing 2D game and faced problem with simultaneous multiple key press / release detection needed, for instance, for character diagonal movement.
Problem is when I "simultaneous" (it has nothing to do with my reaction I press / release very quickly) press / rele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22392683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to Install Tensorflow2-GPU in Google Colab for good? Is there a way I can Install Tensorflow 2- GPU in Google Colab without Installing it every time new after the Runtime ran out?
Right now I have:
!pip install -U tensorflow-gpu==2.0.0-alpha0
in my Setup, so it always Installs Tf 2. But it's kind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57400352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attempt to present UINavigationController whose view AppDelegate
initialViewController = storyboard.instantiateViewControllerWithIdentifier("LoginViewController")as! UIViewController
}
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()
Takes me to LoginViewCont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32594473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to perform multiple related calls to AsyncTasks without overlapping? I have an application which needs to make repeated calls to a web API. Effectively, it iterates over records in a SQL table and makes a unique call out to the web server with the appropriate data. It's a kind of data synchronization.
As I unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23255992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access $scope outside foreach function Angular js Firebase Here is the code: I'm looping through the data to get the value that I need, and I got it.
The questions is how can I access the value outside of this loop in other functions within the controller. The correct value have been assigned to $scope.theModel.
var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44776410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: edgeNGram_analyzer not found for field I have created a synonym analyser on an index it works on elasticsearch 1 but not for 2.4:
here is my mapping:
{
"product": {
"_all": {
"enabled": true,
"auto_boost": true,
"index_analyzer":... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41641694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: It is possible to assign an Int value to an Array inside a Function in C++? It's possible to do the following code with C++:
myFunction(myArray, positionInsideMyArray) = myValue.
cout << myFunction[positionInsideMyArray] << endl; // Display muValue
How can I do that with C++?
To make my question more clear, With on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33723708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: hide scrollbar shape in android textview i have a text view in my activity that populate from database . but when it's big Scrollbar shape show override the text . this is screenshot from it :
This is the textView xml :
<TextView
android:id="@+id/txtMatn"
android:layout_width="wrap_content"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35293274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Jasmine HTML output I am testing a project in rails with Jasmine which is all going great.
The only issue I now have is that I'm not a huge fan of the way the tests are being displayed. Currently I view my test suite at http://localhost:8000/jasmine and Jasmine is pulling in my styles along with it's own and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13364653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Query how to summarize students record by date? I have a following table Students
Id StudentId Subject Date Grade
1 001 Math 02/20/2013 A
2 001 Literature 03/02/2013 B
3 002 Biology 01/01/2013 A
4 003 Biology 04/08/2013 A
5 001 Biolog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16343294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Updating data in MySQL table with PHP I was following an online tutorial lesson about login system with PHP. Everything works fine as far as lesson is concerned.
Now I added a new data column named "time" of type INT. And I want to update it with the time as soon as user has logged in. In the below code, I tried to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58743431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doctrine2 incorrectly cascading oneToMany relationship I have 2 doctrine entities:
Commessa
/**
* @ORM\Id
* @ORM\Column(type = "bigint")
* @ORM\GeneratedValue(strategy = "AUTO")
*/
private $id;
/* ... */
/*
* @ORM\OneToMany(targetEntity = "AppBundle\Entity\Pipeline\pipeline", mappedBy = "commessa", cascade = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41631835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Copy and Resize Image in Windows 10 UWP I have used the code from http://www.codeproject.com/Tips/552141/Csharp-Image-resize-convert-and-save to resize images programmatically. However, that project uses the System.Drawing libraries, which are not available to Windows 10 applications.
I have tried using the B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36019595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Getting tighter segmentation results of Deeplab for small/underbalanced classes I have trained the official Tensorflow deeplab model (https://github.com/tensorflow/models/tree/master/research/deeplab) on the CelebAMask-HQ dataset (https://github.com/switchablenorms/CelebAMask-HQ), to have a model that can semantical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65682975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Receiving contiinuous output from python spawn child process not working I am attempting to stream output from a weighing scale that is written in python. This program (scale.py) runs continuously and prints the raw value every half second.
import RPi.GPIO as GPIO
import time
import sys
from hx711 import HX711
def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49947402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Link to files in VSCode .ipynb notebooks I'm trying to put a link to a file in a markdown cell in a notebook, for example:
See [feature scaling notes](feature_scaling_notes.md)
The file feature_scaling_notes.md is in the same folder as the .ipynb file.
A link is created, yet when I click on it, instead of opening t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68879467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Default android application for a Tablet In my application i have done all the process and they are working very well. Now my device needs only one application or other application must not come front to the user's view..
Can I make my Application as Default application or the only application viewable by the user?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13926016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can you create anonymous inner classes in Swift? I'm tired of declaring entire classes as having the ability to handle UIAlertView clicks by making them extend UIAlertViewDelegate. It starts to feel messy and wrong when I have multiple possible UIAlertViews, and have to distinguish which was clicked in the handler.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25247209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: My api post request is working in postman tool but it is showing error in the console of a browser? This is postman tool and here post method is working fine hereI have attached here the screenshot of postman
[In the console, it's showing error. Please help me to resolve this issue.][2This is browser console screens... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65059439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement constraints for 2 labels between 2 images for xib file Edit: PLEASE LEAVE A COMMENT IF YOU'RE GOING TO DISLIKE SO I CAN IMPROVE MY QUESTION
I'm trying to recreate a custom table view cell in my xib file as shown below. The company's square image is on the left. The company's name and company's booth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41541322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to get Unique Device ID for Amazon Kindle Fire To get the Unique Device ID on Android phones/tablets, we use the following:
((TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId()
But for Kindle Fire, we can't get one.
A: You should try using the following line:
deviceId = Secure.get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8323326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Shared Preferences to persist DataMap android wear I had a question related to the FORM Watch Face. I see that SharedPreferences have been used to persist DataMap. Why was it necessary to persist the data when we can fetch the DataMap from the Wearable.DataApi anytime? The developer.android wearable documentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31403307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to resolve dependencies react native google fit After adding the package I can't build the project. Error:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-google-fit'.
> Cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49785233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Send email with log file as attachment I am using Hadoop (CDH 5.4.8) to process the unstructured data and after successful processing I want to send a mail notification to the concerned team with log file as attachment.
CDH 5.4.8 Oozie does not support attachment feature in email action. So I want to do this using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36370975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is WKWebView not opening links with target=“_blank”? What is wrong with my code? Why is WKWebView not opening links with target=“_blank”? I want to open links that are opening in the new tab with the default browser. How Can this be achieved?
import UIKit
import WebKit
class ViewController: UIViewController, WK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58810014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Combinations of Characters in an n by n Character Array: First a note: Sorry that my images aren't separated. I'm a new member, so I don't have enough reputation points to post more than a single hyperlink.
Let M be an n by n array (mathematically square matrix) of characters.
In M, I need to be able to find all per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4858420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How I can use mouse events with Jquery I'm tryng to configure the list of users in a chat adding the function slide
something like this
http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_slide_down
Similar facebook, when mouse is over focus, the chat container is slowly hidden
I'm using jquery-1.8.1.min.js... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30601659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: changing the background colour of a recaptcha form that is placed in a DIV So i have a recaptcha form in a DIV. Currently the DIV has the background colour of white and the rest of my webpage is grey.
Where the recaptcha form is the white background is not displaying, but showing the grey colour instead.
The code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20995150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with displaying an .bmp image using mfc dialog I am trying to display a bitmap image using MFC application.
I am using a browse button to select file which is working properly. But when I try to load an image by double clicking on the file, the application is launched, but the image is not displayed.
Here is m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20701561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: Attribute on collection element In C# can attribute be applied to element, which will be packed in collection?
I have Dictionary<string,Func<int,int,int>> and add elements in that way
Dictionary<string,Func<int,int,int>> dict = new Dictionary<string,Func<int,int,int>>();
dict.Add("SUM", (a,b) => {return a+b;}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33308104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot locate pygubu-designer.exe after instalation I'm trying to install pygubu-designer, but the 'pygubu-designer.exe' never shows up in any of the folders after the installation process.
https://github.com/alejandroautalan/pygubu
https://github.com/alejandroautalan/pygubu-designer
I did:
pip install pygubu
cmd
pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74533716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Call AIR Application method from Javascript I have an Adoboe AIR (ActionScript) application that embeds an HTML page using the AIR HTML component. I would like to add communication between the two: E.g. I would like to call a method within the AIR Application from the Javascript within the HTML page in the HTML comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11954439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get "who" invited using Facebook App Invite SDK for iOS? I've been trying to get the "who" invited someone on my app without success... Looked around FB docs and nothing.
What I mean is: "User??" invites "Friend", "Friend" taps install on the FB dialog which takes him to App Store, where s/he installs my app.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33195655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Trying to send a friend request I am trying to send a friend request with my code. I followed an easy tutorial on youtube. The code does not have any errors but its not working. Here the important part:
fAuth = FirebaseAuth.getInstance();
fStore = FirebaseFirestore.getInstance();
userId = getIntent().getStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59938134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass variable with subvariable from JQuery to Flask app I have a Flask that uses WTForms and Jquery to take from the user "input" fields in a form and shows "select" fields to the user. Jquery is used to filter the select fields shown to the user based on what they enter in the input fields. In order to filter the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67481988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to count the advertisement hits and stores it in database We put our website advertisement in 2 other websites. We need to count the hits we are getting form those advertisement and like to store it in my database. Please give me an idea to do that.
A: The links to your website should have a parameter with some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2857468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Yup Validation isn't working with React JS I want a YUP validation to check if the user id already exists in the database or not.
I have written it like this :-
userName: Yup.string()
.required("You must enter the User ID")
.test(
"Unique User ID",
(value, {createError}) => {
axios
.ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73134349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Submit buttons and Enter key issues I'm trying to prevent form submit if users has focus on any submit button or input type text (as in a filtering datagrid).
I'm considering 2 options
*
*replace submit button with some kind of <p onclick='submitform¶meters'>Add</p>
*block the enter key on buttons and some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8141675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does FaceAlpha affect ZData of different object? working with matlab 2015a in linux.
trying this code (with the slice grid ,x and y in the mat file attached)
FaveAlpha.mat
load('FaceAlpha.mat'); % Loading SliceGrid and X,Y parametrs
hold on; xlabel('X'), ylabel('Y'), zlabel('Z'); axis equal;
axis image;
plot(S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31802621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help searching for a value in firestore I'm new to firestore and I'm making a register page with vue.
Before a new user is made, it has to check if the given username already exists or not and if not, make a new user.
I can add a new user to the database, but I don't know how to check if the username already ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60341540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Repast Simphony Model Library Is there any model library for Repast Simphony? I'm looking for something similar to the Computational Model Library of OpenABM. Unfortunatelly, there are only models for NetLogo but not for Repast in this library. (In particular, I'm searching for a scientific paper using agent based s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49840373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create reports page in Directus I want to create report page in Directus, I am programming in JS and PHP but I can not figure out how to embed some code into Directus in order to create reports page from which I could do a query to multiple tables in database and then show results.
A: You will need to create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58324875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Script stops running due to heavy load I have two while loops which is diplaying data from database,but due to heavy load its stops working.
please let me know how to destroy/clear previous load on each while loop.
**Code Example: this is not an exact code, but take it as example**
for ($aw = 1; $aw <= 150000; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11497402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: TCL 0 not equal to FALSE I tried
expr 0==false
but it returns 0 instead of 1.
According to http://wiki.tcl.tk/16295, False values are the case-insensitive words no, off, false, their unique abbrevations, and 0.
It is weird, or my understanding are wrong?
A: While specifying operands for expr command, to validate a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35261293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: fitting a tanh curve and estimating parameters I have two sets of data (say x and y). I want to fit a tanh curve (hyperbolic tangent) for y=x-a-btanh[(x-a)/b)] and return a and b parameters. I tried the follwing code, but get an error, TypeError: 'numpy.ufunc' object is not subscriptable. Also, I want to know if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74269928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to decode a .c2z? Is it possible to decode a .c2z file and retrieve the code inside? if so How would I go about doing that?
I can't find any programs that will open it.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/74327001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use vert.x shell to monitor message traffic I have a simple verticle, which receives a string as input and replies with another string. I was planning to use vert.x shell (telnet) to send and publish messages using bus-send and bus-publish. However these methods does not seem to interact with the local bus. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37858188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Airflow DAG for backfill I am a newbie to Apache Airflow and trying to explore things on that tool. I am not sure how can I use the dates in SQL Queries while bringing the data with Airflow where it is quite simple in Oozie like below:
"SELECT * FROM Table_Name WHERE datetm BETWEEN '${DATE_START}' AND '${DATE_STOP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50671008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drag and Drop files uploading error php i watched many links on internet and also reffered to each and every question related to this topic but none helped! so plz any1 check this code and tell me where i'm doing wrong?
html code:
<div class="drop_zone">
<p>Drop Here</p>
</div>
<form enctype="multipart/form-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19337390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Layout does not exist in the current context I'm trying to include the layout in one of my views and it's saying it doesn't exist in current context along with viewbag.
@{
ViewBag.Title = "About Me";
Layout = "~/Views/Shared/_Layout.cshtml";}
I've looked at other solutions saying I need this or that in the web.conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61248639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add Facebook App 2 Times to fanpage i have created an app, which u can see online:
http://www.facebook.com/pages/Hotel-Des-Balances/302383665689?sk=app_102064213296864
But there i have created tabs inside the iframe, i want to create them directly in facebook, so that i have Tab1 for the Game1, Tab2 for game2 withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14367520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WP Upload Image Through Ajax Response Issue I am facing an issue when I am trying to upload the image through WP ajax from front side. I can see the Ajax triggering fine. I can successfully upload the image to the server as well. But when I try to read the response, it does not do anything.
Here is my Ajax request.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60831543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: optional parameter based off boolean template parameter I'm trying to declare a template function that...
*
*has 3 parameters if template boolean is true
*has only 2 parameters if template boolean is false
Is this possible?
The code below compiles, however both versions require 3 parameters. I need it to only nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66366410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Different types of login in Laravel I have 2 login types on my application:
protected function attemptLogin(Request $request)
{
if (!$uuid = $request->input('uuid')) {
$user = User::query()->firstWhere($this->username(), $request->input($this->username()));
return $this->guard()->attempt(
$this-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71593911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Out of Memory Exception in C# i am new to C#.
Thus, i am not so sure what the problem is with my program.
The program works with small image but it shows "Out of memory exeception" when it works with a large image which is about A4 size.
However, the program would be useless if it cannot work with large image.
How c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11556683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I change Button color via a trigger in the button? Whats wrong with this trigger? I found it here: http://www.wpf-tutorial.com/styles/trigger-datatrigger-event-trigger/ and ive seen similar setups on SO
<Button x:Name="ColorPickerButton" Background="{Binding SelectedColor}">
<Button.Style>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49560331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Add Zeros to Second Dimension of Array in Python? I have a latitude array with the shape (1111,) and am attempting to use matplotlib pcolormesh, but I'm getting an error since my array is not 2D so I am getting the error not enough values to unpack (expected 2, got 1). Is there a way I can add 1111 zeros to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63636553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Practices for Organizing Android Code I have been coding an Android app that has a lot of code dedicated to it. As you can imagine, there's lots of case-driven code in there. Because most of Android callback functionality is based on integers and ItemIDs and requestCodes, there is a lot of functionality built... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16302739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use the user_passes_test decorator in class based views? I am trying to check certain conditions before the user is allowed to see a particular user settings page. I am trying to achieve this using the user_passes_test decorator. The function sits in a class based view as follows. I am using method decorator ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29682704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Appstore navigation bar functionality I wanted to implement a feature that is present in the Appstore app in iOS 11. As is visible from the gif, when the detail screen loads, the navigation bar is fully transparent and becomes visible when the view scrolls to the top.
I was under the impression that the navigation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46817285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create Temporary Table Populated with Dates and LEFT JOIN to `created_at` Column - MySQL Original Query:
// Doesn't return dates with zero value
SELECT UNIX_TIMESTAMP( created_at ) AS DATE, COUNT( tweet_id ) AS count
FROM `tweets`
WHERE DATE( created_at ) > '2012-11-01'
AND DATE( created_at ) <= DATE( NOW( ) )
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21293742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access other project forms in solution explorer for VS2008 C#? Image http://img43.imageshack.us/img43/1720/28264117.png
Here is the image for my solution Explorer. What i want is to use HR Management forms to b loaded through button click on a form of Classic Steel HR. So can anyone tell me how
A: I can't se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2871849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Maps: Shade city I searched a lot, but I could not find how to shade city area on google maps. This can be done using Google Charts but it is not interactive. I want it to be exactly like google maps but with borders.
E.g Search Dallas on Google Maps and see it draws boundries. I want exactly like this to sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31804345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Run an SQL script only if a selection over a table before it gives a result. If it doesn't give a result the SQL script should not run I would like an SQL script to run only if a SQL command selection over a table give a result.
If it doesn't give a result the SQL script should not run.
Will this be possible to do?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15219173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I was given an OOP project using SDL. I haven't used inheritance. What reason can i give to my evaluators I took a course OOP. We were supposed to create a game in a group of 3. I worked on the menu part. Unfortunately, i didnt use inheritance and other OOP concepts. I DID use classes. What is the possible reason th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47699067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Pygame in python My game was working before I added lines 7 and 8.
what happened in the game was the red sprites that fall down the screen would hit the main character sprite which is green and the game would stop just as I need it to.
import pygame
import random
from os import path
img_dir = path.join(path.dirname... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70832093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Symfony2 + Doctrine2 SQL Integrity Violation: Nullable field can't be null? So this project is moving some straight PDO SQL queries (with MySQL) to Doctrine. The tables already existed and had data in them. I set up the entities, and everything seemed golden. All the queries were rewritten with the Entity Manager in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18966968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: bitmap size exceed VM budget in second level I'm developing a game in which I am trying to move from 1st stage to 2nd stage.
When I start the 2nd stage directly it runs perfectly, but when I play the 1st stage and unlock the 2nd stage, and then start the second stage then it shows an error:
02-25 14:07:09.923: ERROR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22008832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What informations leaks during send mail programatically from google account Imagine if you are sending an email by the gmail.com using web online interface so entering the website of google, then compose mail and send it. In this case your ip address is not revealed to the receiver of mail. In details of mail heade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34750408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Display User Input of a HTML Form I've written the code below (part of my code) and I can't figure out why it won't show the user input in the form of table on the web page.
<form>
<label for="img_tag"> What is the above picture? </label><br>
<input type="text" name="What is the above picture?" id="inpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73926531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using mysql to get a list of inserted records Inserting multiple records to a table in MYSQL returns me last inserted ID.
Is there a way I can get the list of all inserted records ?
One way would be to insert each record and then fetch that record using last inserted ID. But obviously that will raise performance iss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63390305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is learning rate automatically decreased between passes when vw LDA is run with `--save_resume` vowpal wabbit (vw) supports out-of-core learning with --save_resume. This is what the --help options tells the end user about the --save_resume option:
--save_resume save extra state so learning ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65542064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue rendering dark mode - ReactJS I'm new and trying a project to make a switch that toggles between two themes;
Here is what I have so far and I'm struggling to understand why it's not toggling between my themes.
theme.js
import { createContext } from "react";
export const themes = {
dark: "dark-mode",
light... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71563042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TX-row lock contention : Inserting Duplicate values for Unique Key We are getting a TX-row lock contention error while trying to insert data
It happens while running a job which processes an xml with almost 10000 records, inserting the data into a table
We are having a unique key constraint on one of the columns in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21290438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: eclipse shortcut publish everywhere I would like to change the publish shortcut behaviour to apply to every window i work.
This would remove the need to be in the server view to use this shortcut (CTRL+ALT+P)
So far I followed this post: eclipse key bindings everywhere
Setting "when" to "in windows" did not work. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23359920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails model design: propose and counter-propose a time I have a model that allows user A to propose a time for an appointment to user B. If B accepts, then event is set. But if B proposes another time, then A must accept or propose another time, and so on. Until one user accept the other's counter-proposal, the appo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7830382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to serialize canonical/normalized JSON in PHP The order of keys in JSON is not relevant, so PHP's json_encode uses the internal order of keys when serializing JSON format. I'd like to make sure that equivalent JSON is always serialized the same form. For instance $a and $b in the following example
$a = ["foo" =>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35435937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What directives and other features are available for inputs with a ControlValueAccessor? I have a custom component. It has a ControlValueAccessor injected into it as a provider. This is the generic standard way to make custom components represent form inputs.
For a more precise example the component actually impleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46491237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I don't know why this is happened and i don't know how to ask this question I'm using termux app, then i try to install npm packages in the different directory in my phone.
The first one "/storage/shared/coding"
.../0/Coding $ npm i node-session
npm WARN deprecated [email protected]: Package no longer supported. Contact ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72004841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Numbers from textboxes are add next to each other instead of adding them together I have 3 textboxes in which I write numbers and last one in which is the result. If I write numbers in TextBoxA and TextBoxB instead of adding them together after I press equal button then it put them next to each other.
[]
I tried thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74411052",
"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.