text
stringlengths
15
59.8k
meta
dict
Q: cudaMemcpy returns cudaErrorInvalidArgument when reading from Device to Host, unclear why first post here. I'm currently working on a project that requires writing a large 2d array (on the order of 1,000,000x7) into my GPU, doing some computation, and returning it to the Host. Since I want to do so quickly and with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45045913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AJAX load more posts script out putting nothing, no warnings, no notices, no data Can anyone tell me why this is outputting nothing.. at all? No errors, no notices. Nada. I really need help with this, theres nothing wrong with the SQL details. The codes purpose is too display Mysql data with an AJAX div that loads ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5413201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I define an ext property from Heap.io with gradle kotlin dsl Im using the heap.io and their Android SDK and they advise you to setup their library like: * *build.gradle: android { defaultConfig { // Add this section to enable Heap event capture. ext { heapEnabled = true ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62580898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add a new line in text field of dropdown in semantic-ui react? Here is the render function render(){ const { members, user } = this.props; let memberOptions = []; members.forEach((member, i) => { memberOptions.push({ key: i, text: member.user.name, value: member.user...
{ "language": "en", "url": "https://stackoverflow.com/questions/50129466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How set set bash variable to file name in Docker I have a Dockerfile in which files in a directory are downloaded: RUN wget https://www.classe.cornell.edu/~cesrulib/downloads/tarballs/ -r -l1 --no-parent -A tgz \ --cut=99 -nH -nv --show-progress --progress=bar:force:noscroll I k...
{ "language": "en", "url": "https://stackoverflow.com/questions/62786274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Test services with real backend in angular I want to test a service, which calls a real backend url and can not find the solution for it. My service has to call data from server and I want to be sure, that the data comes to the service and the service handle it right. So here is just a simple example of my Login Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/46252236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TypeError: _onRequestWithOpts is not a function at Object.httpsProvider._onRequestWithOpts I'm creating an app that uses firebase-functions. I created my app directory and ran firebase init. After that was completed I tried to run the hello world program that it gives you using firebase serve, and I get this error...
{ "language": "en", "url": "https://stackoverflow.com/questions/56947340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQLite query running successfully in version 3.5.2 but giving error in version 3.7.11 - using aggregate functions My query was working fine in Sqlite 3.5.1 version but when I run the same query in 3.7.11 version am getting misuse of aggregate function min() error. Below one is my query. Please help me in this regard...
{ "language": "en", "url": "https://stackoverflow.com/questions/12594607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is PyCharm Community Edition doesn't have Database Tool? I'm using pycharm 2020.3 community edition. but id doesn't showing database tool. it means this edition comes without that option? or any action we have to do for this? *Note: some people saying add plugin data base browser. but that is not built in. I want da...
{ "language": "en", "url": "https://stackoverflow.com/questions/66837584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: solr LowerCaseFilterFactory should not filter number I'm using a query schema which need to let abc match Abc and 400 match 400 (user name match). But I found when I use LowerCaseFilterFactory, It not return any result when I query 400. I digg into the source code, and found LowerCaseTokenizerFactory use LowerCaseTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/16248589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ErrorException: Creating default object from empty value - Laravel I have just got this error all the tries while updating my table data. ErrorException: Creating default object from empty value AdminController.php public function update(Request $r, $post_id) { $post = Post::find($post_id); $post->post_ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/68810878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Communicating between Kernel Threads in Linux I am porting a app/PCI driver from vxWorks to Linux and I would like to keep the same architecture if possible. The current driver has 2 tasks(threads) that communicate with each other using message queues. Is there a mechanism to communicate between kernel threads? T...
{ "language": "en", "url": "https://stackoverflow.com/questions/1442270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django Attribute Error - Form object has no attribute 'is_valid' I am receiving an error, object has no attribute 'is_valid', when trying to insert form data into a form. Below is the structure of my code: Views.py: def add_user(request): form = Car(request.POST) if request.method == 'POST' and form.is_valid...
{ "language": "en", "url": "https://stackoverflow.com/questions/52952348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how do i define props in a function i am new to react and i am trying to use props in a function and i am not sure how to use it. This is the code. import React from 'react'; import './Card.css'; import { connect } from 'react-redux'; import { addBasket } from '../actions/addAction'; function Card({props},{image, ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/65298201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How To get the Check Rule Constraint How can I get the expression of a check constraint? With MSSMS I can easly see that Table Person has a CHECK constraint named CK_Person validating the expression ([DateOfBirth]<[DateOfDeath]). With this query I can get the COLUMN_NAME, CONSTRAINT_NAME and CONSTRAINT_TYPE: SELECT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30226137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom view, onSaveInstanceState is not called I created a custom view, and tried to restore the state automatically on screen rotation (just as EditText restores current input text automatically), but when I see the log, onSaveInstanceState is not called, and only onRestoreInstanceState is called. What is wrong? cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/50555614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MySQL : Updating a table having a 'where' clause with a max value I want to update the last generated row (the max(id) row. I tried this code but it doesn't work update person t1 set t1.age = 25 where t1.id = (select max(t2.id) from person t2 where t2.address = 'LA, California'); MySQL tells me that :...
{ "language": "en", "url": "https://stackoverflow.com/questions/11719346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ClosedXML Copy and Paste Range of formulas as values I have a function ApplyFormulas() that will obviously apply formulas like so detailWs.Range(companyModel.RevenueFormulaRangeDollars).FormulaR1C1 = companyModel.RevenueFormulaDollars; However Now I need to copy that range and paste it in the same spot so the value...
{ "language": "en", "url": "https://stackoverflow.com/questions/53675836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Only the last usercontrol shows contentcontrol I have a weird problem. I've created a usercontrol with a label and a canvas. The canvas references a resource. But the canvas is only shown on the last control in my stackpanel. This is my window <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentat...
{ "language": "en", "url": "https://stackoverflow.com/questions/18658092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problems while running the alexa helloWorldSample I try to deploy the alexa helloworld skill on my own Server using this tutorial I can build the Sample and get 2 jar files in the target directory but when i try to run the Server via mvn exec:java -Dexec.executable=”java” -DdisableRequestSignatureCheck=true i get t...
{ "language": "en", "url": "https://stackoverflow.com/questions/46982459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keep icon bar floated right and wrap text around I have a little header bar in html/css where there are a couple icons floated to the right side. I want them to remain in position and have the title (on the left) just wrap below if the area gets too small on the right side. Right now, my html looks like so (using bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/39153253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Displaying malformed html with twig Assume we have a string $mystring = "<b> Hello" How can I display this string using twig while preventing leaking html tags? Or in other word how can I make twig to close tags automatically if they are still open? I guess {{ mystring | raw }} just prints raw text without verifyin...
{ "language": "en", "url": "https://stackoverflow.com/questions/71459150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compare Checkbox List values for Nothing Checked through LINQ I'm using below code for filtering on the basis of Checkboxlist but, filter is not working if I don't select anything. It has to show all the values if I don't checked any value. Below is the code for that : var selectedIds = chklstDepartment.Items.Cast<L...
{ "language": "en", "url": "https://stackoverflow.com/questions/44922008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I create views with dynamic content in iOS? I' m encountered with a problem because of my lack of knowledge of iOS platform I think.I have a view controller User Profile. The main view has next structure: ScrollView which contains one subview and this UIView has 7 UIViews with UILabels, UItextViews, UIImageV...
{ "language": "en", "url": "https://stackoverflow.com/questions/19595590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: [wso2][APIM 3.2] conditional engagement of handler does not work I try to write my own WSO2 3.2 APIM Handler. My purpose is : * *engage Handler when a dedicated property is set on API *consume the request and use the binary response to decrypt part of it *change the content type of the response after decryption ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72698024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stanford Parser for Python: Output Format I am currently using the Python interface for the Stanford Parser. from nltk.parse.stanford import StanfordParser import os os.environ['STANFORD_PARSER'] ='/Users/au571533/Downloads/stanford-parser-full-2016-10-31' os.environ['STANFORD_MODELS'] = '/Users/au...
{ "language": "en", "url": "https://stackoverflow.com/questions/41522476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML in MySQL Database -- Best Practices I'm beginning to create a system whereby I (as the only user at present) will be loading a dynamically created PHP page which has a <table> in it. I then will be grabbing the HTML of that <table> and saving it to be displayed to other users in a separate area of the website....
{ "language": "en", "url": "https://stackoverflow.com/questions/30696962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: copying a page n number of times with pdfbox I have made a single page pdf template file. I then use pdfbox to create a pdf with "n" number of pages (depending on report size). I want all "n" of these pages to be the page from the template pdf file. What is the best way to get all "n" pages to be a copy of that p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7815613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refresh id_token ADAL: Angular 4 I'm using Angular 4 with ADAL to authenticate users in my web application, using ng2-adal library which is a wrapper for adal.js. The problem I'm facing is the following: So the token expires after a time limit and I have a canActivate route guard that checks if the user is authentic...
{ "language": "en", "url": "https://stackoverflow.com/questions/49949172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Save changes in xlsm Workbook as xlsx without subsequent user confirmation I have an Excel file with a macro (.xlsm). In the macro, I want to make changes in thisworkbook (where macro is) and save the organized workbook in the same folder of thisworkbook with a different name (and if possible as a .xlsx file, since ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72214390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Primitive derived operations and combinators in EDSL:s I recently flunked an exam, mostly because of a EDSL question. I did not grasp these concepts so I think thats why I failed. I think my teachers explanation was to abstract for me to understand, so I wonder if someone could explain it more clearly. I wonder if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25593992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to query on a Mysql cursor? I have fetched data into mysql cursor now i want to sum up a column in the cursor. Is there any BIF or any thing i can do to make it work ? db = cursor.execute("SELECT api_user.id, api_user.udid, api_user.ps, api_user.deid, selldata.lid, api_selldata.sells FROM api_user INNER JOIN ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/24545472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception in create user on ejabberd16.09:Denied by ACL I installed the ejabberd16.09 in the Linux. An when I create a new user in Android , get these codes: <iq from='hsoft.com' to='kfb@hsoft.com/Smack' id='T61DB-59' type='error'> <query xmlns='jabber:iq:register'><username>ddk</username> <password>...
{ "language": "en", "url": "https://stackoverflow.com/questions/40171494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to define where my MDB database is stored in local hard disk (VB.NET) VB.net seem to place my database file into /userprofile/local settings/apps/2.0/data/random/random/appname/data/ folder. Can I define easier location for my published app. I am also worried that when upgrading this database is ignored or some...
{ "language": "en", "url": "https://stackoverflow.com/questions/975454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mongodb connection error in Rails I am getting following error while connecting to mongodb using rails console : Getting Error Mongo::Error::NoServerAvailable: No server is available matching preference: # using server_selection_timeout=30 and local_threshold=0.015 This happens when I switch my rails application. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/48840515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: use rollapply and zoo to calculate rolling average of a column of variables I want to calculate the rolling mean for all variables in column "sp". This is a sample of my data: the_date sp wins 01-06--2012 1 305 02-06--2012 1 276 03-06--2012 1 184 04-06--2012 1 248 05-06--2012 1 243 06-06--2012 1 363 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33769770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to delete a MySQL row that only the logged-in user created I made a website that creates 'awards' and user has to login. I am trying to create a 'delete' button so that the user can delete awards he created. The problem with the code I created, the user can delete ANY award that any user created. I need it so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59188172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I need to iterate an array over columns of my table in a blade file I need a table which I can iterate data of my table over its columns. like <table> <thead> <tr colspan="2">کارکرد</tr> <tr colspan="2">پرداخت</tr> <tr colspan="2">کسور</tr> </thead> <tbody> <tr></tr> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67996759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getElementsByTagName not working in IE when returning XML file? I'm trying to select certain elements from an XML file via JavaScript, I've got it working in Firefox, Chrome and IE9+ but IE8 is proving to be a real stumbling block, I'm using the code below to return the XML file: function httpGet(theUrl) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16194785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate: Exception occurred in target VM: failed to lazily initialize a collection I have User to Cars 1-to-n. mappings: User: <set inverse="true" name="cars" table="CAR"> <key> <column name="UserID" not-null="false"/> </key> <one-to-many class="entity3.Car"/> </set> Car: <many-to-one cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/9277466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gridview empty when SelectedIndexChanged called I have a DataGrid which is being bound dynamically to a database query. The user enters some search text into a text field, clicks search, and the code behind creates the appropriate database query using LINQ (searches a table based on the string and returns a limited ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2599100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multiple undefined Variable I have a problem with an application. Notice: Undefined variable: nombre in C:\wamp\www Notice: Undefined variable: puesto in C:\wamp\www Notice: Undefined variable: area in C:\wamp\www Notice: Undefined variable: id in C:\wamp\www here's the codes: <?php session_start(); header('Con...
{ "language": "es", "url": "https://stackoverflow.com/questions/32145241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Regular Expressions to Parse Facebook API Long Term Access Token I'm using the Facebook API Javascript SDK for website login and to various information from the user's profile. For my server side HTTP request to Facebook for a long term access token I'm using Ruby on Rails with HTTParty Gem. I'm successfully...
{ "language": "en", "url": "https://stackoverflow.com/questions/20592450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QT for beginners everybody, I'm beginner in programming, I've just finished my course on C++, I want to train my skills and try to write some programs on C++ with graphic windows (not console programs, I did it during all my course), I want to start working with QT, is it good idea, or I need to begin with something...
{ "language": "en", "url": "https://stackoverflow.com/questions/3197360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the contents need to add in hteader.html from index.html? I have created simple web page using HTML5, CSS and jQuery. Here is my index.html: <!DOCTYPE HTML> <html> <head> <title>Responsive Design Website</title> <link rel = "stylesheet" type = "text/css" href = "css/style.css" media="screen"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26645344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this a variation of the decorator pattern or a pattern at all? Below is a simplified version of code I've written to override a class method (using composition), in this case method name i'm overriding is addbuttons(); The class "Screen" adds buttons to a screen whereas class "SubScreen" adds custom buttons to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7666972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase re-authenticate using PhoneNumberProvider To delete user the user has to be recently authenticated ... I am using Phone number authentication and looking at the example in the docs: https://firebase.google.com/docs/auth/android/manage-users#re-authenticate_a_user I need to get the credential of the user wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/46139780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AttributeError: 'dict' object has no attribute 'plot' from iexfinance import Stock import matplotlib.pyplot as plt tsla = Stock('TSLA') tsla.get_close() tsla.get_price() from iexfinance import get_historical_data from datetime import datetime import pandas as pd pd.set_option('display.max_rows', 1000) start = date...
{ "language": "en", "url": "https://stackoverflow.com/questions/51816097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure mvc to support binding dd/MM/yyyy date formates for all cultures? I have MVC web application and I am supporting 2 languages(Arabic, English). I have post-action which takes the following model: public class MyModel { public DateTimeOffset StartDate { get; set; } public DateTimeOffset EndDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/63592435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using JavaScript inside a Eclipse plugin It is possible to use JavaScript inside a view of a Eclipse Plugin? A: By default eclipse runs on java in a JVM. But JVMs have more and more support for dynamic scripting languages. You can always use org.mozilla.javascript so your view can implement parts in javascript. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11018009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RegEx to match if the string contains 1 or more sets of 1-10 alphanumerics RegEx to match if the string contains 1 or more sets of 1-10 alphanumerics (separated by 1 space) Right now i have this and that will match the alphanumeric part. var regex = /^[0-9a-zA-Zs]+$/; After it matches i plan to just use var matches...
{ "language": "en", "url": "https://stackoverflow.com/questions/8071445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android bootcamp medical calculator fails to open Whenever I try to run the below calculator app on the emulator, it instantly crashes. Not knowing Java, reading the logcat is a bit overwhelming. The program's purpose is to create a weight conversion app that uses a radio group and converts kilograms to pounds or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35657145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MyBatis do a fetch and based on return value do an update/insert inside the Xxxmapper.xml? Is there a way to embed a select from table inside a Mybatis Insert SQL config, Which checks if the record is existing -> Runs the Update on the same table else just inserts the data. I know it can be done programtically but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/28993805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex input only number and backspace I have a code private void DataGridTypePayments_PreviewTextInput(object sender, TextCompositionEventArgs e) { e.Handled = new Regex("[^0-9]+").IsMatch(e.Text); } I need input number or backspace.How i can disable input symbol space? A: The C-style...
{ "language": "en", "url": "https://stackoverflow.com/questions/32965221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Load local files(CSS or JS) into website of choice I want to load my own coded CSS into a website that I do not own or have server access too. This is for perdonal use only. My problem is I dont know if there is a plugin available to do this; in chrome or firefox. Is there any easy way to do this? How do I do it? An...
{ "language": "en", "url": "https://stackoverflow.com/questions/20729725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Would updating Facebook Android SDK crash my apps on api level below 15? The new Facebook Android SDK requires android min API level 15 but almost all of my apps are at min API level 9. If I integrate new FB Android SDK would that crash my apps on devices with API level below 15? Also would Share images on FB funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/33689058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: why does this make calls javascript Im creating a angular5 application and I have some problems with the services i use to make requests to a simple node backend server. I won't include the backend code because it doesn't matter if it works or not. My idea was to have the Service remember if it already has the data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48809263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I need to optimize my first T-SQL update trigger How do I rewrite this update trigger without using a lot of variables? I wrote my first SQL Server trigger and it works fine, but I think, that there must be an easier solution. If minimum one of 5 columns is changed I write two new rows in another table. row 1 = old ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27828749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I insert hash values in columns with Perl's DBI? I have a hash and I am trying to insert its values into database. Hash is defined as follows: my %hash = ( 1 => 'First Word', 2 => 'Second Word is correct', 0 => 'Third word does not exist', ); I do not...
{ "language": "en", "url": "https://stackoverflow.com/questions/1822109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Feeding Azure Event Hub data to ReactJS I'm trying to read data from the Azure Event Hub and display it on a simple web app using ReactJS. I've used the code sample from Microsoft to read Azure data, and this works fine standalone. I have an IoT temperature sensor and every time the sensor sends I receive the value...
{ "language": "en", "url": "https://stackoverflow.com/questions/68045188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HOW to avoid completely showing data which is in another MySQL table? I am trying to avoid some data which is already in two tables... which means... I used the select statement to get an advertisement which is stored in MySql database using Member Id and I use JOIN tables... there is no problem... all advertisement...
{ "language": "en", "url": "https://stackoverflow.com/questions/70225125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i write a jQuery input string so that it works with Django query string Am working on a name search app but having a challenge getting it to work with Django query string, the challenge which i observed comes from my JavaScript input type with ${input} string when added to Django query string eg. "address/get...
{ "language": "en", "url": "https://stackoverflow.com/questions/70398362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony sfWidgetFormInputFile deleted my file Sorry for the many questions but I'm new to Symfony. I made a form and all it working well. I a few fields for pictures (Picture1, Picture2, Picture3, etc). I used te sfWidgetFormInputFile and all is working well with that as well. It uploads the file where it nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/11378371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I write a function to revalue levels of a factor? I have a column 'lg_with_children' in my data frame that has 5 levels, 'Half and half', 'Mandarin', 'Shanghainese', 'Other', 'N/A', and 'Not important'. I want to condense the 5 levels down to just 2 levels, 'Shanghainese' and 'Other'. In order to do this I used...
{ "language": "en", "url": "https://stackoverflow.com/questions/61317735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert Mysqli results into an array in OO Php I want to retrieve data from a table in database and display the result in an array in the form below. array("1"=>"Value 1", "2"=>"value2") Here is the function I tried using but I get error when I try to display the array. Please I need help on this. I'm new to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11929389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: After uninstalling JPfofiler ( from Ubuntu ) when i run my application in Netbeans,it shows Error I installed JProfiler, after 2 days i uninstall Jprofiler (in Ubuntu) but when i run my application Netbeans IDE shows following Error: Error occurred during initialization of VM Could not find agent library /home/bsoft...
{ "language": "en", "url": "https://stackoverflow.com/questions/12816678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run Gant targets from within a Grails controller? Suppose I have a block of Gant code: target(echo:"test"){ ant.echo(message:"hi") } setDefaultTarget("echo") This is usually run from a command line. How could I place the block in a Grails controller and run it from there? A: You can use AntBuilder fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/3758863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error connect between PostgreSQL and XAMPP Can someone help me to fixing the problem about connecting PostgreSQL with XAMPP? The error is : Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Misc has a deprecated constructor in C:\xampp\phpPgAdmin\classes\Misc...
{ "language": "en", "url": "https://stackoverflow.com/questions/42964654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get the current date in Javascript, using an argument There are loads of questions about the current date in JavaScript in general, but in my scenario, I have to pass in something to the date object, because usually there is a valid date I'm looking for. However, my question is - assuming the argument is un...
{ "language": "en", "url": "https://stackoverflow.com/questions/55302038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React form: loop through event.target to create an object I have a rather long form to submit and would like to create an object containing the name of the input as a key and the value of the input as the value. I tried looping through the event.target and event.target.elements as shown below: handleModify(event) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61008250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Message: Uninitialized string offset: 0 in coideigniter I want to insert multiple rows by one click. I have an add button called add. When I click add button it loads another row. In my case when, I submit a single row it saves to data base and gives an error: A PHP Error was encountered Severity: Notice Message: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32067216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: syntax error near unexpected token `newline' for my simple if statement? #include <stdio.h> int main(void) { char input; printf("Enter a character: "); scanf("%c", &input); if (input == 'a') { printf("A\n"); } else { printf("B\n"); } return (0); } What am I doing wrong? this should be easy. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41782969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: prevent yeoman.io from minifying images So I've been using yeoman.io for my projects and I have a set folder structure for my images. But when I build it changes the file name of my files. I even use: $ yeoman build:text because I want to only minify my css,js and html templates, yet it still minifies the images. N...
{ "language": "en", "url": "https://stackoverflow.com/questions/14262460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Svg icon not working on desktop but work fine on mobile Hello my svg icons are not working on desktop i get only a white space but the icon work fine on mobile devices this is my code : <svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" fill="none"><g clip-path="url(#a)" fill="#000"><path d="M13.079 49...
{ "language": "en", "url": "https://stackoverflow.com/questions/74040288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't return observable of customError in network call I want to use catchError for getting back my error as custom type. At first, I want my network layer return Observable and then in ViewModel I subscribed it for .OnNext, .OnError, .OnCompleted events, But I don't know how should I handle Errors such as 4xx, 5xx ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52815543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a Server using ServerSocket to connect two or more client device via wifi Am trying to connect (using ServerSocket for server) to android device via wifi. But the problems seems to be the ip of the server. what ip can i use, or is there some other way round. -Code Sample //ServerSide WifiManager wmanag...
{ "language": "en", "url": "https://stackoverflow.com/questions/29771308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gcc cross compilation for powerpc7448 I want to cross compile the gcc for powerpc7448, and after this I want to run one simple program and get the elf from the cross compiled gcc for powerpc7448,I am using the linux OS,could anyone please suggest me the steps, cross compilation gcc for powerpc7448(any link) and wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/60389225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble understanding a specific C implementation of Merge Sort I'm trying to follow this code step by step but still I can't understand certain steps it's taking. void merge (int *a, int n, int m) { int i, j, k; int *x = malloc(n * sizeof (int)); for (i = 0, j = m, k = 0; k < n; k++) { x[k] = j ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45782884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling mulltiple methods of the same class In my class Helper() I have 2 methods which look like this: public function is_active_page($page) { $url = explode("/",$_SERVER["REQUEST_URI"]); if (end($url) === $page) { return true; } } public function go_to_dashboard() { if (isset($_SESSION['lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/42332265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I get Symbolic-Name of an Osgi bundle which is using one of my exported packages? Inside one of my implementation libraries I want to know from which user library request is coming from? Bundle A ClientCode -- > ServiceInterface Bundle B ClientCode -- > ServiceInterface Bundle C ServiceInterface Servic...
{ "language": "en", "url": "https://stackoverflow.com/questions/2600900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to restrict input values and save it separately jQuery? I am a jquery beginner working on a input as shown in the picture where the user has to follow proper syntax like "name=value". I want to make validations if the entered data is in the correct format or if there any white spaces on the right or left side of...
{ "language": "en", "url": "https://stackoverflow.com/questions/49524517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the values of the params from a form I need to work with the inputs from a form before storing the records. I'm stuck at simply reading the params. In my create controller, I have def create @document_history = DocumentHistory.new(document_history_params) $temp1 = params[:by] $temp2 = params[...
{ "language": "en", "url": "https://stackoverflow.com/questions/35461528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement Linked list where data is separate In C, can a Linked list be implemented and modified so that rather having the data stored within each node of the list, it is separated from the node. And a pointer within the node points to the data? A: The answer is yes. Just instead of keeping keys in the nodes, you s...
{ "language": "en", "url": "https://stackoverflow.com/questions/19843970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery post to the same PHP page I am creating a jQuery search bar, that will asynchronously send the inputted value from a form from the client side to the same page on the server side (in PHP). Then I can search my database with the value. Unfortunately when I send this value, using $.ajax, and attempt to echo out...
{ "language": "en", "url": "https://stackoverflow.com/questions/73318747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I play an animation, wait, then fade out? (In unity) Basically what the title asks. I want to play my animation, then after the animation is finished playing, I want there to be a small delay before it fades out of the scene in about 2 seconds. After it fades out, it should be disabled and reset. Here's my co...
{ "language": "en", "url": "https://stackoverflow.com/questions/59903159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: REPLACE INTO, does it re-use the PRIMARY KEY? The REPLACE INTO function in MySQL works in such a way that it deletes and inserts the row. In my table, the primary key (id) is auto-incremented, so I was expecting it to delete and then insert a table with id at the tail of the database. However, it does the unexpected...
{ "language": "en", "url": "https://stackoverflow.com/questions/12205158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is role of #!usr/bin/perl -n? What is the role of #!usr/bin/perl -n? I am tried to refer to the books and other sources but i am not get the better idea. It behave like the STDIN, for example my @array = <> many input is store into the @array. -n also behave like this but how to store the input value in data ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/25916529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can LINQ support this simple algorithm? I've been trying to learn LINQ, and I'm wondering if there is a way for LINQ to perform the following: I have a list of objects that consume data from an array in a serial fashion. I am trying to do two things with one loop: * *Use the input array to populate the objects s...
{ "language": "en", "url": "https://stackoverflow.com/questions/24967656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kali Linux update-alternatives --config java I am attempting to use L3MON to build an apk. It requires me to select Java 1.80 OpenJDK as I am currently running, however when I use sudo update-alternatives --config java it does not supply me with the option to select 1.80. See below. I have installed Java 8 OpenJDK a...
{ "language": "en", "url": "https://stackoverflow.com/questions/71716697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What type of behaviour is this? This question is looking for a standardese quote explicitly explaining why this behavior is wrong. The code below including <stdio.h> inside main , int main() { #include <stdio.h> printf("hello , world \n"); return 0; } On gcc -Wall in.c -o in.out It successfully compiles and prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/13678028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update object in List affecting specific fields only. (Merge) I have a List of objects: @Getter @Setter class Cat { int id; int legs; int head; } List<Cat> catsLegs = new ArrayList<>(); I fill this list with some data: for (int i = 0; i < 10; i++) { Cat cat = new Cat(); cat.setId(i); cat....
{ "language": "en", "url": "https://stackoverflow.com/questions/37455889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: p:autocomplete always return null in bean on ItemSelect I'm having some issues with p:autocomplete, Primefaces , the auto complete is ok, but when the user select some value, I force an ajax request to handle the selected item, but the item always return null. How can i solve this? Here's the view: <h:outputLabel v...
{ "language": "en", "url": "https://stackoverflow.com/questions/18541035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery Change all names of div's children elements after clone So, I have the following jquery code that clones an element when the input value in a certain field increases. $(document).ready(function(){ $("#nmovimentos").change(function () { var direction = this.defaultValue < this.value this.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/31677068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: return value from datepickerCallback function I am new to Angular js, and for my application i am using a datePickerCallback function to get the date selected. How can i return the value of this function ? i actually want to get the date selected and pass it in a http request to get the data corresponding to this d...
{ "language": "en", "url": "https://stackoverflow.com/questions/38330732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tutorials for developing facebook applications in android Can any one please suggest me good tutorials (other than official) for learning basics to develop Facebook apps in Android. I am searching in internet but I am failing to get good ones. A: checkout this: http://developers.facebook.com/docs/guides/mobile/#and...
{ "language": "en", "url": "https://stackoverflow.com/questions/6108918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Echo command doesn't do anything I've been started studying PHP in my spare time, and the first code example I was given was this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <body> <?php echo "Hello World"; ?> </body> </html> From what I understand, this s...
{ "language": "en", "url": "https://stackoverflow.com/questions/3078070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: R Markdown - link text to figure in appendix I am using \ref{fig:figure1_appendix} in R Markdown to link the text to the actual figure but instead of linking to Figure A1 in appendix, it links to Figure 1 whose name is not "figure1_appendix" but "figure1". Any ideas? This is the way I am creating figures in appendix...
{ "language": "en", "url": "https://stackoverflow.com/questions/74680864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Collections.unmodifiableCollection allow you to change the collection? Suppose I have to following set: Set<String> fruits = new HashSet<String>() fruits.add("Apple") fruits.add("Grapes") fruits.add("Orange") Set<String> unmodifiableFruits = Collections.unmodifiableSet(new HashSet<String>(fruits)) unmodifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/52103639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Error: unreachable because it has no entry points Using Swift I got the error that my "TableViewController" is unreachable because it has no entry points and no runtime access via [UIStoryboard instantiateViewControllerWithIdentifier]. In my View Controller class there is the suggestion to fix it while changing ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/39847365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: My files aren't read by my java program I have some Java code like this : Map<Map<String,String>,String> map = new HashMap<>(); int i = 0; try (BufferedReader br = new BufferedReader(new FileReader("properties.txt"))) { String sCurrentLine; while ((sCurrentLine = br.readLine()) != null) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12819570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }