id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_23497400
// Get the value from textbox var date1 = $("#f_date").val(); // 2015-01-01 var date2 = $("#t_date").val(); // 2015-03-01 if(date1 < date2) { alert("From date is lesser than To Date"); } else { alert("From date is greater than To Date"); } How can I do that? Please help. Thanks A: You can do just like ...
doc_23497401
NSLog(@"%i", [self tableView:tableView numberOfRowsInSection:0]); // 4 [self updateCardIDArray]; NSLog(@"%i", [self tableView:tableView numberOfRowsInSection:0]); // 5 int indexOfCreatedCard = [cardIDs indexOfObject:newCardID]; NSLog(@"%i", indexOfCreatedCard); // 4 [tableVie...
doc_23497402
A: Static import is a feature introduced in the Java 5 programming language that allows members (fields and methods) defined in a class as public static to be used in Java code; without specifying the class in which the field is defined. The static import feature facilitate the java programmer to access any static mem...
doc_23497403
I wanted to check, at least up to the point that I came, whether I have memory leaks or not. However, firing up valgrind just hangs, valgrind seems to work quite heavily since the cpu loading is high, but no output is generated even if I have been waiting for some time now. I have shuffled through the pages of the manu...
doc_23497404
axios.js import axios from "axios"; const instance = axios.create({ baseURL: "https://abc.domain.com" }); instance.defaults.headers.common["AuthToken"] = "myAuthToken"; export default instance; headers in .java file response.addHeader("Access-Control-Allow-Origin", "*"); response.addHeader("Access-Control-A...
doc_23497405
$^D::clipboard = Send ^c ClipWait, clipboard = %clipboard% StringReplace, tel, clipboard, %A_SPACE%, , All tel := RegExReplace(tel, "\(.*\)", "") Run, tel:%tel% Return When I press Ctrl+D it just make a copy of the text after "clipboard =" on the first line. In this example "Send ^c". A: Give this a shot: ~$^D:: Se...
doc_23497406
I need to filter and sum my scores data by team and period. .length would do this in the view pretty easy if I had data filtered to an expression. My question after reading MANY post on similar challenges is - where is the best place to do this filtering? I am able to do an ng-repeat on the scores and filter by team b...
doc_23497407
Stopwatch watch = new Stopwatch(); watch.elapsed = watch.elapsed + Duration(hours: 01, minutes: 23, seconds: 31); Is there any way of achieving the desired result ? -Thanks for any hint/clue. A: Stopwatch is for measuring intervals - normally used in performance testing. Perhaps you want a Timer. Or subclass st...
doc_23497408
But how to bind it to multiple IPs? Or maybe there is even way to bind Tomcat to all IPs of specific interface? UPD Based on Martin Theiss answer I used such solution (ommited big amount of private fields and small help functions): @Configuration public class EmbeddedTomcatConfiguration { //a list of private fields tha...
doc_23497409
I want to collect some "data" to quantify responsiveness. What can I do? I can run shell commands like top periodically with cron and collect statistics, but I am clueless regarding what is a good statistic to go after. A: You could use the time command to measure how long it takes to execute a simple command (e.g. ls...
doc_23497410
I have cloned the project from this git link here App is running on localhost fine.I am willing to deploy this demo project on windows server where it will run on https://localhost:8443. I have no idea how to deploy this specific demo project, although i have successfully deployed another simple node application on ii...
doc_23497411
I need to create a row in table B (with ForeignKey reference), after I create a new row in table A. For example: class A(db.Model): __tablename__ = 'a' id = Column(BigInteger, primary_key=True) ... class B(db.Model): __tablename__ = 'b' id = Column(BigInteger, primary_key=True) a_id = Column...
doc_23497412
Thank You! A: Although the method MapView.getZoomLevel() isn't aligned with zoom changes animation and multitouche, the methods MapView.getProjection().fromPixels() and MapView.getProjection().fromPixels() are. So you have several option to adress the issue. From the methos above, you can find the direct (x,y) coordin...
doc_23497413
class HouseRegistry{ struct House{ .... } private: vector<House*>HousesbyName; vector<House*>HousesbyNumber bool newHouse(...){ House *somehouse = new House; .... HousesbyName.insert(inserter,somehouse); HousesbyNumber.insert(inserter2,somehouse); return ...
doc_23497414
YOUR_CALLBACK_URL?signature=ofdiwefjojiefwojowefoi # www.websitename.com?signature=ofdiwefjojiefwojowefoi They state that the way they generate the signature is: The signature is generated using an HMAC-SHA-256 base64 digest of the raw HTTP Body of the Webhook post using this Webhook secret. You can generate the sign...
doc_23497415
<INPUT NAME="Name" SIZE="30" value="<?php echo $Name; ?>"> On the page inside the field, it is displaying: <?php echo $Name; ?> What is going on here and how can I fix this issue? Yes, the pages are .php Here is the doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...
doc_23497416
e.g CLIPS> ( / 4 3) 1.33333333333333 How do I get a value rounded off to two decimal places (1.33 in this case) A: CLIPS (6.31 6/12/19) CLIPS> (bind ?n (/ 4 3)) 1.33333333333333 CLIPS> (/ (integer (* ?n 100)) 100) 1.33 CLIPS> (deffunction precision (?num ?digits) (bind ?m (integer (** 10 ?digits))) (/ (...
doc_23497417
def self.tips_by_categories @categories = {} # Build up the possible categories Tip.all.each do |tip| tip.categories.each do |category| @categories[category.name] = [] unless @categories[category.name] @categories[category.name].push(tip) end end @categories end Is i...
doc_23497418
When using a test machine in VirtualBox, everything is working perfectly. My issue is with port redirection on VirtualBox. I want to be redirect directly from my host machine. For the moment when I access https it's fine, but when I try to access the http, I'm redirected to the nginx serv address in Virtualbox. My ssl ...
doc_23497419
8=FIXT.1.1☺9=168☺35=V☺34=2☺49=XXXXX☺52=20160622-09:50:59.240☺56=XXXX☺262=1976060316☺263=1☺264=1☺265=0☺267=1☺269=0☺146=1☺55=ABC☺48=ABC☺22=8☺167=FXNDF☺762=PERIOD☺20000=1M☺10=165☺ In this I followed the order 35=V as follows: 55=ABC|48=ABC|22=8|167=FXNDF|762=PERIOD|20000=1M I want to rearrange my message sequence as thi...
doc_23497420
var Ocr = new AutoOcr(); var Result = Ocr.Read(bmpCrop); string text = Result.Text; return text; But the text trims the space and I couldn't get the exact copy of the text as in the image. Is there way or any other ocr libraries that reads text as an exact copy from the image. Please find the image attached, that I h...
doc_23497421
I am new to android development and I have created a webview app for my social network site. * *But when someone tries to upload a file it doesnt do anything. *Is it possible to open the web with google chrome settings in webview so as to maintain the css settings of my app? Here are my codes main xml <?xml v...
doc_23497422
$(".draggable").on("mouseover", function () { if (!$(this).data("init")) { $(this).data("init", true).draggable(); } }); but the above code is not working. The draggable plugin is not apply on elements. Now if i replace the on event with live then it starts working. ...
doc_23497423
So here is my question. I have a function, that gets the filepath of the last created xml file in a special directory. Now I want to add a button to my program that allows me to view/ execute this file in my webbrowser after I clicked it. Here is a example of what i got so far: import os import glob import tkinter roo...
doc_23497424
foreach (Intent.Types.Message msg in queryResult.FulfillmentMessages) { retorno = msg.Text; Console.WriteLine($"Fulfillment text: {retorno}"); } Do you have any sample using Microsoft Bot Framework and Google.Cloud.Dialogflow.V2 API? A: I created a array of IActivity and used foreach at each messages adding tex...
doc_23497425
I am sure that the problem appears after I install updates in my server. My office work suffers a lot due to this problem. An immediate help will be extremly appreciated. A: The problem held aftermy system automatically updated .Net Framework to version 4.6.01055 which was not compatible with Crystal Report older v...
doc_23497426
I have AD code that searches for users. In our domain, usernames are similar to computernames (the convention is along the lines of first + last + computer name). When I run the following query, I sometimes get a computer, sometimes I get a user: (&(objectClass=user)(anr=username)) When I use SamAccountName instead of...
doc_23497427
GlobalKey popUpButtonKey = GlobalKey(); openPopUpItem() { GestureDetector? detector; searchForGestureDetector(BuildContext element) { element.visitChildElements((element) { if (element.widget != null && element.widget is GestureDetector) { detector = element.widget as GestureDetector;...
doc_23497428
import org.springframework.batch.core.BatchStatus; import org.springframework.batch.core.ExitStatus; import org.springframework.batch.core.StepExecution; import org.springframework.batch.core.StepExecutionListener; import java.util.List; public class StepResultListener implements StepExecutionListener { @Overrid...
doc_23497429
app.component.ts import { Component, Inject, OnInit } from '@angular/core'; import {DOCUMENT} from '@angular/common' export type SessionHandler = ()=> void; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit...
doc_23497430
ERROR -- Specified 'redis' for Action Cable pubsub adapter, but the gem is not loaded. Add `gem 'redis'` to your Gemfile (and ensure its version is at the minimum required by Action Cable).: nil My Gem file is like: group :development do # Access an IRB console on exception pages or by using <%= console %> in views ...
doc_23497431
$firstResults = Model1:all()->sortByDesc('id')->take(1)->toArray(); $secondResults = Model2:all()->where('hash',$firstResults["hash"])->toArray(); The first query works fine. I want to use the results of the first query to search the second table where 'hash' is equal to the 'hash' value from the results of the first ...
doc_23497432
VBA - API call displayed in Excel ...except I need to limit the amount of returned data to only specific currencies (not the entire Ticker). The website requires an API Key (which I have) for these types of calls, but I don't understand how to format the url. The website provides this info: Using Your API Key You may u...
doc_23497433
using Microsoft.AspNetCore.Http; using Serilog; using Serilog.Context; using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HMS.Api { public class SerilogMiddleware { const string MessageTemplate = "HTTP {RequestMethod} {...
doc_23497434
I have simple nodejs backend (based on express and mongoose), which responds to GET request with some JSON (in the form of Object of objects). So after I get the response, I want to render a component, for each elements of said Object of objects. If it was array, I could simply use array.map(), and render a component i...
doc_23497435
I use jquery.form.js (from here) I get the name of the file(C:fakepath/Image.png),but I cant proceed from there.I cant figure our there exactly is this file located on the server. Any help will be appreciated! A: C:fakepath/Image.png is the path generated by browsing on windows when you are uploading the image with a ...
doc_23497436
ffmpeg -i input.mp4 -i image.png -filter_complex "[0:v][1:v]overlay=x='min(-1.5*w+5*w*t,5)':y=H/2-h/2'" -y output.mp4 A: There are two methods to do this. One is to provide a clipped oscillating function, similar to the expression for x used in the drawtext filter here. The other method is use a conditional expressio...
doc_23497437
Packages: Microsoft.AspNet.MVC (version 5.2.4) M.AspNet.Razor (version 3.2.4) M.AspNet.WebPages (version 3.2.4) M.Web.Infrastructure (version 1.0.0.0) Newtonesoft.Json (version 11.0.2) System.Net.Http (version 4.3.3) Packages Screenshot HomeController.cs (Code) public async Task<ActionResult> Index() { Prim...
doc_23497438
I have to keep history of user's consent. Lets say on signup user1 accepted Consent (v1) and some time later user1 accepted Consent (v2), etc. I need the history of all consents accepted/declined by user. Is that possible to retrieve? I have tried the following. * *Added two extension claim along with consent field...
doc_23497439
os.remove(input_path) OSError: [Errno 13] Permission denied: Is there any way to remove a file that already exists, other than doing: subprocess.call(['rm', input_path]) A: Since you're getting a "permission denied" error, it is clear there's a "mismatch" between the permissions of the file (or its parent director...
doc_23497440
Possible Duplicate: Why use getters and setters? I know this is very trivial. But why do we define private and then we use getter and setters. Is this more like for preventing the programmers from making mistakes on using private variables or methods? Or is it for security reasons. If for security reasons then what i...
doc_23497441
I have added the following line in my Nginx file but it didn't work. proxy_cookie_path / "/; secure;"; A: The secure flag for Flask's session cookie can be enabled in the Flask configuration. SESSION_COOKIE_SECURE = True To set it for other cookies, pass the secure flag to response.set_cookie. response = app.make_re...
doc_23497442
This is the WebGL code I use: function render(time) { time *= 0.001; webglUtils.resizeCanvasToDisplaySize(gl.canvas); gl.viewport(0, 0, gl.canvas.width, gl.canvas.height); gl.enable(gl.DEPTH_TEST); const fieldOfViewRadians = degToRad(60); const aspect = gl.canvas.clientWidth / gl.canvas.client...
doc_23497443
I found no Solution for multiple TextViews. I want to change the text every second or 1/2 second on Button click: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_2); Show = (TextView) findViewById(R.id.Show); Start = (...
doc_23497444
I have a three class. the last one included two children class. @Entity @Table(name="A") public class A extends Model { @Id public String idA; @OneToMany(cascade=CascadeType.ALL, mappedBy = "currentA") private List<B> listOfB; } The second class B : @Entity public class B extends Model { @I...
doc_23497445
Below is the server part I've written so far. But i am getting this error : Cannot open include file: 'QtSql': No such file or directory. When i make separate projects and run the database part, it works perfect, but when i put them together, it fails. Anyone has some suggestions to can solve this problem? ServerSocke...
doc_23497446
We were wondering, which approach does Gmail/Outlook use? Does it poll and check email on the client device using a background task, then send a local notification? Or does it poll and check on its servers and send a remote notification via its GCM push notification service to the client?
doc_23497447
2.- I have a parent controller and a child controller for ng-view 3.- For ng-view I have a template with a span bound to property subCtrl.id and another span bound to 'subCtrl.something' with an initial value of something.id=1 and something.name='blondie' 4.-If I call the signalR method through Fiddler and I'm at the ...
doc_23497448
I want to construct an html file, including css and javascript. Parts of the code could come from external users, and prevent it from having any network access whatsoever. This means: no AJAX calls using javascript, no programatic redirects, but even no <img> tags with src= or <a> tags with href=. * *Content Securi...
doc_23497449
I am trying to generate rules of items which were bought together frequently. My small test data is 5 transactions and 10 products. My big test data is 11 million transactions and around 2700 products. Problem: Min-support and Filter non frequent items. Lets imagine we are interested in items which frequency is 60% o...
doc_23497450
A: I solved it with DOJO. I used dijit.dialog. Here is a part of my code: <head> <!-- api's (you can use also google apis: https://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js) --> <link href="<%=Url.Content("~/Scripts/dojo/dijit/themes/tundra/tundra.css")%>" rel="stylesheet" type="text/css" m...
doc_23497451
I have tried all the ways which i found in google, but no luck. Can someone point me where i'm making mistake ? var grid = $("#JobGrid").jqGrid({ datatype: "json", colNames: ['Product Name', 'Product ID', 'ProdTypeAvail', 'Piece/Sheet', 'Type', 'Pages', 'Copies', 'ExtraCharges', '', ''...
doc_23497452
However, i am getting redefinition error coming from line "#define PTW32_LEVEL 1". Q1) Is it that the "#undef PTW32_LEVEL" didn't work at all? That doesn't sound right. I have already looked at this and this "PTW32_LEVEL" isn't predefined by compiler as defined here. Q2) what am i missing here? possible workarounds? #i...
doc_23497453
I am building an app where users can create tasks and based on the selected category the corresponding color should be displayed withing the widget. Currently, I get the error: The body might complete normally, causing 'null' to be returned, but the return type is a potentially non-nullable type. Try adding either a re...
doc_23497454
function[it,xvect,xdif,fx]=bisez(a,b,nmax,toll,fun) it=-1; xvect=[]; xdif=[]; fx=[]; err=toll+1; while(it<nmax && err>toll) x=(b+a)/2; if(fun(x)==0) err=0; else err=abs(b-a)/2; end it=it+1; xvect=[xvect;x]; xdif=[xdif;err]; fx=[fx:fun(x)]; if(fun(x)*fun(a)>0) a=x; else b=x; end; end; if(it<...
doc_23497455
The best way to tackle the problem should be to use the tf.nn.weighted_cross_entropy_with_logits function. However, I get this runtime error: ValueError: Tensor conversion requested dtype uint8 for Tensor with dtype float32 I can't understand what is wrong here. As input to the loss function, I pass the labels tensor,...
doc_23497456
<input onkeyup="testOnKeyUp();" type="text" name="userName" id="userName"> Here is where come my problem, it's suppose that when someone type a Key in this input the following code is activated and should run, but it just does not work. var validateUserNameSpan = $j('#userNameSpan'); function testOnKeyUp(){ validate(...
doc_23497457
Examples: Is there an idea for finding verses ends (which are in semi-circular shapes, containing an Arabic number inside them)? EDIT I need an algorithm with the following specs: * *input: an Uthmani Mushaf image (like above images) *output: a list of points (x, y) denoting the verse-end-circle locations in the ...
doc_23497458
ViewPagerAdapter.kt class ViewPagerAdapter( fragmentManager : FragmentManager, var fragments : MutableList<Fragment>, lifecycle : Lifecycle ) : FragmentStateAdapter(fragmentManager, lifecycle) { override fun getItemCount() : Int { return fragments.size } override fun createFragment(...
doc_23497459
A: Well, looks like the solution is to also include -ljsoncpp flag while compiling towards the shared .so file: $(CC) -shared -o testcode.so testcode.o -ljsoncpp
doc_23497460
{ "name": "HOSTNAME_HTTP", "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: \u003capplication-name\u003e-\u003cproject\u003e.\u003cdefault-domain-suffix\u003e" } when I open the file using: with open('data.txt', 'r') as file: data = file.read() I pass this t...
doc_23497461
exports.stripeConnect = functions.https.onRequest((req, res) => { var code = req.query.code; const ref = admin.database().ref(`/stripe_advisors/testing`); var dataString = `client_secret=sk_test_example&code=${code}&grant_type=authorization_code`; var options = { url: 'https://connect.stripe...
doc_23497462
<!DOCTYPE html> <html lang="en"> <head> <title> tesing hide </title> <style> #ticket, #usernamepassword { margin-top: 20px; width: 960px; color: navy; background-color: pink; border: 2px solid blue; padding: 5px; text-align: center; } </style> </head> <center> <div id="ticke...
doc_23497463
<body> <p> Hello. </p> <? $d="0"; ?> <? if($d=="1"){ echo "D equals 1";} ?> </body> </html> I've put the above code into a file named test.php. However, when I go to sitename.com/test.php?d=1, it won't echo anything. Is my code wrong, or is there something in the php.ini I need to change? How can I fix this? A: There...
doc_23497464
I am using spark 2.0. A: You can use withColumn method to add columns to DataFrame. https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.Dataset@withColumn(colName:String,col:org.apache.spark.sql.Column):org.apache.spark.sql.DataFrame
doc_23497465
A: If you build a site that requires Ajax to see content and perform tasks, you have several major problems. Ajax-only content/functions are invisible/unavailable to: * *search bots *many mobiles *people with Javascript turned off etc etc. However, if you build a site using the progressive enhancement principl...
doc_23497466
The function I have is this and it is working, it returns the results when you select an item from the dropdown: function devtest() { $db = db(); $stmt = $db->prepare('SELECT developer FROM developers'); $result = $stmt->execute(); ?> <select name="Developer"> <?php while ($row = $result->fetchArray()) { $dev = $row['...
doc_23497467
It results in an error: An exception occurred while executing 'UPDATE sys_user SET password = ?, firstname = ?, locations = ?, locale = ?, timezone = ? WHERE id = ?' with params I'm working with ValidationGroups, and setting up only the fristname as you can see below. $userData = $this->get('security.context')->getTok...
doc_23497468
Everything seems OK: Datacenter: us-west-2 ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Owns (effective) Host ID Token Rack UN (public ip) 121.3 KB 100.0% b15c18bf-1689-4308-bbe2...
doc_23497469
#define DeclareSetting(Type, Name) DeclareReadSetting(Type, Name) \ inline void cSet##Name(const Type &Name) { \ g##Name = Name; \ } Could someone please explain what does this mean? I studied macro's but I couldn't understand this syntax. (please don't kill me if it's called something else kindly correct me by ed...
doc_23497470
I wrote this content script: contentscript.js var nodeslist=document.getElementsByClassName("uiStreamSource"); alert(nodeslist.length); Each time a facebook page is loaded, the alert shows me 10 detected classes (i.e., 10 posts). But when I scroll down, new posts show up and this code fails to detect them. Since I n...
doc_23497471
127.0.0.1 mydomain.com I created a website under IIS7 binding to mydomain.com and created a blank index.html in the website folder for test But when I type in browser http://mydomain.com it shows the file for IIS default website. Instead I have to type http://mydomain.com/index.html to get the right page. Same result f...
doc_23497472
I would then run some tests to compare performance, ease of coding etc. Obviously the performance tests would have to favour STM's optimistic locking but can work out the semantics of that later. However, for now, I am just interested in open source library candidates. One that springs to mind is EhCache as it has inte...
doc_23497473
* *Open it in my favorite programming language for Read/Write *Erase everything in the stream *Write exactly 10 MB of random back to the same stream *Save the changes to disk *Delete the file through normal means Can I be certain that the new 10 MB successfully overwrote the old 10 MB on a sector level in the ...
doc_23497474
I find two different options to create React Native offline bundle. There is not much description about this option. bundle [options] builds the javascript bundle for offline use unbundle [options] builds javascript as "unbundle" for offline use I usually create a react-native bundle using "react-native...
doc_23497475
KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); keyGenerator.init(256); SecretKey secretKey = keyGenerator.generateKey(); String encodedKey = Base64.getEncoder().encodeToString(secretKey.getEncoded()); System.out.println("Secret Key == " + encodedKey); return AmazonS3EncryptionClie...
doc_23497476
1. Lock screen appears with some background wall paper. 2. After unlocked there is no icon or widget or anything except the background image. I am very frustrated by this and i am just a beginner of android programming. Please help if some body have solved this problem. A: Please post the screenshot of your AVD settin...
doc_23497477
$('#main').delegate('.slide', 'click', function () { slideshow.next(); }); $('#main').delegate('a', 'click', function (e) { e.stopPropagation(); }); .slide is a large div with content. slideshow.next() is called when .slide is clicked, except when a link is clicked, in which case stopPropagation(), and .slide neve...
doc_23497478
In the Page component I need to do some additional mutations (like the column overflow check, pushing columns content around, etc.). For this reason, I need a way to be notified after all Column components have mounted - also including implicit mutations have been made. My first attempt was useEffect hook, however, it ...
doc_23497479
A: I had a similar problem. End up creating custom auth component, because of need to correct layout (it has email related stuff in it). Login component.ts: import { Component } from '@angular/core'; import { NbLoginComponent } from '@nebular/auth'; @Component({ selector: 'ngx-login', styleUrls: ['./login.component...
doc_23497480
My code follows: Option Explicit Sub ReWriteTableData() Dim tb As Table For Each tb In ThisDocument.Tables tb.Select With Selection Dim rw As row, cl As Column Dim i As Integer .MoveUp Unit:=wdLine, Count:=1 For Each rw In tb.Rows ...
doc_23497481
I was wondering whether there might be a way to generate plots and histograms for all those variables at once without having to write down the code for a boxplot/histogram one by one, and save them in a folder as pns or in a pdf. possibly I'd like to have more than one plot on the same page (i know you can do that usin...
doc_23497482
from typing import Optional, List list1: List[Optional[int]] = [1, None, 3] # This type is an error, filter can't even handle a list with optionals list2: List[int] = list(filter(lambda n: n is not None, list1)) Should I be casting this? Should mypy be able to infer that None is filtered out now? A: Using typing.cas...
doc_23497483
todoApp.value('restTodo', 'api/1/todo/:id'); var todoCtrl = todoApp.controller('TodoCtrl', function($scope, $resource, restTodo) { $scope.src = $resource(restTodo); //add & refresh $scope.src.save({ content: 'hello world', done: false }); $scope.todos = $scope.src.get(); //OR //delete & refresh...
doc_23497484
public class PlayerService extends Service implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnBufferingUpdateListener { public class PlayerBinder extends Binder { PlayerService getService() { return PlayerService.this; } } private final IBinder mBinder = new PlayerBi...
doc_23497485
I'm working on a database of information that needs to be 1) displayed as a table on a webpage and 2) able to be updated by a non-coding person by dropping a csv into a folder. I have gotten the images to display, and I can get links to work, but not combined. Here's the version where I tried to combine them- I was hop...
doc_23497486
To try to improve that and reduce the time to start the app I added all this information as a static list of objects, and that solve the issue. But the problem now is that my app takes a huge amount of time to build. Some of these json file had more than 1MB and these static lists can have up to 15k items. Is there a w...
doc_23497487
for y in range(height): turtle.pendown() for x in range(width): detLand(y, x) # Set the color, works just fine turtle.setx(x) turtle.sety(y) turtle.penup() I figured this would be easy, however, it's still drawing over top of my lines. A: I believe the problem is that you're accidentally drawing on ...
doc_23497488
I want 1 section with cells and both cells need to scroll horizontally simultaneously. But right now I can only get the top cell to show, see the picture below. Here's what I've tried so far: Create Layout func createLayout() -> UICollectionViewLayout { let sectionProvider = { (sectionIndex: Int, layoutEnvir...
doc_23497489
I have few web site in /var/www and i want to add a ftp user for each site. My user1 have a directory in /home/user1 and can read/write to it folder from ftp. (it's the user i use to ssh and almost everything) I made user2 with it's home /var/www/site2 and /bin/nologin (because i want it to be just a ftp user) I can lo...
doc_23497490
The default font i use in my app is Montesserat which you can see in calendar font but the datepicker is using default phone font. Please check the discussion i started in the GitHub for more. https://github.com/henninghall/react-native-date-picker/discussions/297#discussion-3234793 Please help if anyone knows how to d...
doc_23497491
I tried use drawInRect:withAttributes: with NSLineBreakByTruncatingTail paragraph style, but it shows text at single line. It draw multi-line text only with NSLineBreakByWordWrapping and NSLineBreakByCharWrapping break modes. Where is I wrong? Deprecated method drawInRect:withFont:lineBreakMode:alignment: worked correc...
doc_23497492
* *financial_account having columns account_name *financial_transaction having columns transaction_date,transaction_type, transaction_amount I need data as SUM(transaction_amount) where transaction_type='A' under column SUM_A and SUM(transaction_amount) under column SUM_B where transaction_type='B' I took reference...
doc_23497493
char * defangIPaddr(char * address){ char *defangedAddress; defangedAddress = malloc(sizeof(address) + 10); int j = 0; int length = strlen(address); for (int i = 0; i < length; i++) { if(address[i] == '.') { defangedAddress[j] = '['; defangedAddress[j...
doc_23497494
I am practicing with web shells, and have a very simple one that looks like this; <?php system($_GET['cmd']); ?> In my terminal I can view the help file for netcat, like so; nc -h I believe this outputs to stderr. In my terminal, I can redirect the output to a file like so; nc &> blah Then I can cat blah, and see th...
doc_23497495
"void SendDelegateMessage(NSInvocation*): delegate failed to return after waiting 10 seconds. main run loop mode: UITrackingRunLoopMode If you were not using the touch screen for this entire interval (which can prolong this wait), please file a bug.". When I am debugging my code and wait wait for several second before ...
doc_23497496
Now I want to use the tenant.base_color variable to set the Sass variable $base_color in variables.css.scss, so the base color of the app changes according to the logged in tenant. Is this at all possible? I tried to rename the file to variables.css.scss.erb and then use this: $base-color: <%= current_tenant.base_color...
doc_23497497
fully runs through the entire process returning to the prompt. However along the way, all files or directories listed under: set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} are generating the following example errors Running /usr/bin/env [ -L /home/dep/application/releases/2014...
doc_23497498
This works fine on Android and iOS for single line messages. However on iOS if there is a new line character "\n" - the notification fails to trigger. However, if I take the payload (which is a newline message) and output that via a debug statement in my Azure Function and use that content to carry out a test send on t...
doc_23497499
* *parent-pom *lib1 *lib2 *server1 There is also another project, say "server2" which also depends on lib1 and lib2 and inherits the parent pom. I have them set up in Maven and Teamcity, with release and snapshot artifact repos, but I'm trying to work out how to configure my environment in IntelliJ so that it b...