FAQ Database Discussion Community


Vaadin UI does not refresh

hibernate,user-interface,push,vaadin,jpacontainer
I have model which represents an Employee. It has a field(let's say salary) which is also a model. So basically it is a nested property. I use Hibernate, JPAcontainer and MasterDetailEditor to visualize the data. So I extended the FieldFactory to be able to add a value change listener to...

jquery find the value in an array and delete it [duplicate]

jquery,arrays,find,push
This question already has an answer here: How to remove specifc value from array using jQuery 13 answers I have an array [0,1,2,3,4,5] what I want to do is check for a value say 3 and then remove it [0,1,2,4,5] I was trying to check for it using jQuery.inArray(questions[count],...

CALL function in assembly

assembly,push,esp
I have a question about a CALL function in a assembly code. Is it right when I execute a CALL function in assembly that the instruction is pushed onto the stack? When is the instruction popped back when I CALL a function?

how to give a username and a password via a git push

git,push,credentials
I'm trying to use a username and a password for a git push but I cannot find the options to use with the git command. I've tried: http://[email protected]/project Can anyone help? ...

Java array add new value to the first and remove the last

java,arrays,push
I'm trying to update my array so if you add something to the first array tail[0] The whole array updates and moves 1 to the next and at the end the last one tail[49] gets removed. So if I add a value to tail[0] I want tail[1] to get the...

get push stream in response send by server push with OkHttp

android,push,okhttp,http2
I am trying to test the push response from a server which support HTTP2 Server with an android app (Os=Android KitKat) . The server push another ressources(pictures) after a http request for index.html. I don't know how to access to push stream (picture). I have done capture on server and...

jQuery | Unexpected ':' expected ','

jquery,push,semicolon
I'm having this error in Javascript which I don't know how to solve it. Unexpected ':' expected ',' in the push statements. $.each(daysCells,function(k,v) { if($(v).hasClass('schoolDay')) { if(parseInt($(v).closest('td').find('span.day_listing').text()) < 10) dd.push({$(v).closest('td').find('span.day_listing').text() : '1'}); else dd.push({$(v).closest('td').find('span.day_listing').text() : '1'}); } else { if(parseInt($(v).closest('td').find('span.day_listing').text()) < 10)...

ios Navigation can't pass value to next Viewcontroller when I popViewController again

ios,navigation,push,pop
I have two ViewController (ViewController, ResultViewController). There have three button in the ViewController,and there have a back button in ResultViewController. In the ResultViewController I want to get the value from the ViewController passing. So I add the below code in the ResultViewController @interface ResultViewController : UIViewController - (IBAction)backEvent:(id)sender; @property (weak,...

Firebase: how to generate a unique numeric ID for key?

push,firebase,unique,identity
I need numeric IDs for human readability. How do I get it in Firebase? UPDATE Well someone voted the question down because he thinks I didn't elaborate. I better work on that. I want numeric ID for keys, e.g. "000000001", "000000002","00000003","00000004". The reason I need it is because these IDs...

Push Array in Array with split function

javascript,arrays,function,split,push
I'm wondering why I'm having the result and undefined at the same time... var arrayFrases = []; var numeroCasos; var arrayFrasesCambiadas = []; function alCargar(){ numeroCasos = parseInt(prompt("Ingrese cuantos casos desea probar")); document.write("<h2>Casos:</h2>"); for(var i=0;i<numeroCasos;i++){ document.write((i +1) + '<input id="caso'+ (i +1) +'" name="nCasos" type="text"> <br>'); } document.write('<button onclick="voltear()">Voltear</button><br>'); }...

GIT: How to insert only a modification in two branch not allowing the two projects are equal

git,branch,push,commit
I have the master branch that from it I created two applications, I made a commit in application A, however realized that this modification is common in both branch. How do I enter just this change in the two branch not allowing the two projects are equal.

Parse PUSH - Json Open webpage in webview

java,android,json,parse.com,push
I am looking for help figuring out how to set this up for Android (Java) with Parse Push. While sending a push with: { "alert": "Read this", "articleId": "2" } The app will open: myCoolAdress.com/articles/2 EDIT: Added code. public class ParseBroadcastReceiver extends BroadcastReceiver { public static final String ACTION =...

When not to use APNS in an IOS app?

ios,notifications,push,pusher
I am adding push notification services to my iOS app. I understand that I can either use APNS or another party like "Pusher". At this stage I only have an iOS model of the app. Why is it advantageous to use Pusher over APNS? Does it relate to the type...

Configuration file change - Should mobile app poll or is there a way to push/notify client?

android,notifications,push
I have developed an Android mobile app that uses the information stored in a configuration file to upload files. This configuration file initially resides on a server and the mobile app upon it's first use will download this file from the server. Now subsequently what may happen is that the...

Displaying multiple variables on single line?

java,stack,push,is-empty
So I'm doing a program which reads in a message up to 80 characters long and displays it back to the user using the push, pop, and isempty methods. The only problem is, a single variable will be printed on the line, so the backwards message goes vertically down the...

Pushing only the last commit in Visual Studio 2013

git,visual-studio-2013,version-control,push
After making several local commits in VS2013, is there a way to only push the last one and discard the rest? I like to commit after making small changes but would like to push to remote server only after finishing everything.

Unable to access Push service dashboard on Bluemix

push-notification,push,bluemix
When trying to access the Push service dashboard I got this error: Exception thrown by application class 'com.ibm.mbaas.ui.BackendUtility.getJSONResponse:-1' javax.servlet.ServletException: UIBACK108E: Got unsuccessful response from 'https://mccp.ng.bluemix.net/login/rolecheck'. The response status was 400 Bad Request. The response body was: "{"error":"bad_request","error_description":"Parameters role and space_guid are required"}". at com.ibm.mbaas.ui.BackendUtility.getJSONResponse(Unknown Source) at...

How to send silent push to iOS via Google Cloud Messaging

ios,apple-push-notifications,push,google-cloud-messaging
How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any...

Aerogear Unified Push not filtering by alias

java,android,push,aerogear
I´m using Aerogear 1.0.3 server and unifiedpush-java-client-1.1.0-alpha.1. I send a message using this code: pushSender.send( UnifiedMessage.withCriteria() .aliases("IDOREALLYPUTHEREASINGLEALIASWITHASINGLEROW") .message() .userData("payload", newMsg) .build()); The message is received by the two installations registered even when filtered by alias. Am I doing something wrong? How to fix this?...

What is the point of phonegap-build/PushPlugin? Doesn't the device OS handle receipt from GCM/APNs?

cordova,drupal,android-gcm,push,apn
What is the point of phonegap-build/PushPlugin? Doesn't the device OS handle receipt from GCM/APNs? I'm looking to use Drupal w/Push-Notifications Module to handle storing ids and forming requests to the GCM/APNs servers....

Add Eclipse Refactor History to Git Repository

eclipse,git,repository,push,automated-refactoring
I'm refactoring my Java code in Eclipse, and they are saved in Refactor History. But I need push my project to Bitbucket, and I want that Refactor History push too. How can I do it?...

Git push not creating remote branch, pushing to master

git,push,git-push
I'm having an issue where I'm trying to push a local branch to a remote branch so that I can then create a pull request into master. I'm using: git push origin brachname This seems to fail, and instead is pushing to the master remote branch (which isn't great). If...

Relaying all Android Push Notifications

android,notifications,push
I'm building an application that's interested in all push notification data from every app on the phone at the time the notifications are in fact pushed. Is this possible currently within Android?...

git fatal error when pushing md file to Github

github,push,fatal-error
This is driving me crazy. I'm running git on mac osx 10.10.3 I keep getting "does not appear to be a git repository" message when trying to upload an MD file to github, here's what I get: git push origin master fatal: 'github.com/bbenavides/datasciencecoursera.git' does not appear to be a git...

Cannot push to remote repository (git)

git,key,push,master
I don't know if it's just me, but I find the process of interacting with remote repositories of Git via command line utterly frustrating. I have generated my own SSH key, added it to my GitLab account. And I have the same key saved, just checked to be sure. And...

Push / append Angular array data into an HTML element?

arrays,angularjs,append,push
var nameApp = angular.module('nameApp', []); nameApp.controller('NameCtrl', function($scope){ $scope.names = ['do the laundry','buy bananas','do the dishes','mow the lawn']; $scope.addName = function() { // also need to get new date and time stamp it on item $scope.date = new Date(); $scope.names.unshift($scope.enteredName); $scope.enteredName = ""; }; $scope.removeName = function(name){ var i = $scope.names.indexOf(name);...

How to commit & push selected files but not all in Git

git,push,commit,git-merge,smartgit
I have a git repo with two branches: develop and master. I work mostly at develop and when files are ready (sometimes not so sticky to this affirmation) I merge them to master branch to put them on production. Take a look to this pic: All that files comes from...

Avoid memory leak in subscription for baconjs

javascript,push,observable,bacon.js
I have a store in my application that uses the baconjs library. This store listens for changes of my authentication token. As the logged in user changes I then want to update listeners on other events to depend this new token. However, each time i log in with a new...

GitHub won't let me push

git,github,push
Here is what I have done: Jaspernetwork:~ Jasper$ cd ~/GitHubHelloWorld Jaspernetwork:GitHubHelloWorld Jasper$ ls README.md Readme.txt Jaspernetwork:GitHubHelloWorld Jasper$ cat < Readme.txt Jaspernetwork:GitHubHelloWorld Jasper$ git push warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple'. To squelch this message and maintain the current behavior after...

Perl - How to push an element into a particular position in a multidimensional array in Perl?

perl,multidimensional-array,push,elements
How do I push an element into a particular position in a multidimensional array in Perl? Currently I am using the '=' sign to assign an element "apple" into the array but I think it's wrong. my @matrix; $matX = 0; $matY = 0; $matrix[0][0] = $h; $matrix[$matX][$matY] = "apple";...

Git/Gitlab Push RPC failed; result=22, HTTP code = 411

git,nginx,push,gitlab
i got a problem with Git, i get an rpc error when pushing a large Commit over http (RPC failed; result=22, HTTP code = 411) Since ssh is really slow (about 250 - 300 kb/s) and the commit is about 7 gb i REALLY want to use http for this....

Update badge number when app is closed

ios,notifications,push-notification,push,badge
I am developing an iOS app that aims to receive push notifications as does whatsapp. But I do not know how to make the app when closed (idle, I do not mean in background), this update the badge counter. I can only send payload from a static number, but I...

Is there an option in SourceTree / Git to review another persons code before pushing?

git,version-control,push,verify
We use SourceTree for a project at work. Because all team members are inexperienced juniors, we see a lot of code that isn't exactly high quality. Therefore, we want to include a step that forces you to let your code check by another team member before you can push your...

primefaces push not working in Safari using AWS Tomcat7

tomcat,primefaces,safari,websocket,push
I am using PrimeFaces 5.1, JSF 2.1 and tomcat 7 and my application is in AWS. atmosphere version 2.2.2. I am not able to use push functionality in Safari 5.1.7. We have configured the AWS to enable push based on Primeface push with AWS , Websocket with Tomcat 7 on...

What does (extra requests) mean in Parse.com services?

parse.com,notifications,push-notification,cloud,push
In Parse's pricing FAQ it is mentioned that "If your app hits its request limit, your extra requests will begin to fail with error code 155 (RequestLimitExceeded)". What does (extra requests) mean? Are they the requests made within the same minute? day? month? or all other requests made until the...

Query or save incoming push notifications from Parse.com

parse.com,push-notification,push
I am looking to display incoming push notifications in a table view within my app. I am using the parse framework for push notifications which are triggered via scripts within an existing CRM product. I have setup separate channels for each user for advanced targeting purposes. What i am looking...

How to push elements of an object into another object?

javascript,object,push
Like in arrays we can add new elements by using array.push(item). How to do the same with objects? And can it be done inside the object? Like: var myObject={apple: "a", orange: "o"}; var anothObject = {lemon: "l", myObject}; ...

jquery array to list without comma

jquery,arrays,push
So i have a list of locations and this is being stored it the following: var locations; When i console.log this i get the following: CA,CH,LA How could i do this so i get a list of the locations and without the commas. I was thinking a foreach loop but...

APNS + PHP “stream_socket_client(): Failed to enable crypto”

php,ios,apple-push-notifications,push,apns-php
I'm having trouble with using APNS with PHP and getting the following message: stream_socket_client(): Failed to enable crypto The problem only happens sometimes, and other times it would actually send the push. Since I have the test script on a loop of 10 iterations, I would sometimes get this: stream_socket_client():...

Angularjs array push not working

arrays,angularjs,push
I am trying to push a shuffled string array to my scope variable, but some how its throwing error for duplicate array values. This never happened before. Below is my code snippet. You can check the console for error: var app = angular.module('ABCD', []); app.controller('ABCDController', ['$scope', function($scope) { $scope.start_word =...

Shell Scripts Renaming based on upload location

bash,shell,terminal,push
Ok So here's my question, I have a zip file that is currently pushing itself onto an SUV in two different locations I now want to use arguments to rename the zip file base on where its going for example if it is going to folder_1 I want to call...

After GIT commit, I did GIT push but the message said everything up-to-date

linux,git,push,commit
I'm new to Git. We're in Linux, and I just inherited someone's project family. I recently did: git add Bom.xml Bom.csv N.cpp makefile ../mm git commit -a (said On branch Bom, your branch is ahead of master by 2 commits. use git push to publish your local commits. Untracked files:...

SourceTree - remove waiting pushes

git,push,commit,git-commit,atlassian-sourcetree
How do I remove commits, waiting to be pushed to remote? My situation is, that those queued commits (changes) been already pushed (more bellow) and now the server refuses to accept those as they are behind the HEAD. I tried resetting to another commit, but when I go back to...

Push remote specific branches with different names

git,version-control,push
Lets say we have origin with a branch called master which would be checked out by; >> git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master' Now I add the remote fork also with a branch called master which would be checked out by; >> git...

Created GitHub repository, cannot push new files

git,github,push
I initialized github directory, added files, and pushed. However, the files do not appear. I tried adding files individually, commiting, then pushing, entering in credentials and now I get error [email protected] ~/MoveClient (master) $ git pull warning: no common commits remote: Counting objects: 3, done. remote: Total 3 (delta 0),...

Parse.com Cloud Code Failing

parse.com,push-notification,push
I am trying to use the following cloud code Parse.Cloud.job("sendAlert", function(sendAlert, status) { Parse.Push.send({ data: { "content-available": 1, } }, { success: function() { status.success("Push Worked!!!"); }, error: function(error) { status.error("Uh oh, something went wrong."); } }); }); to send a silent push alert. It fails and calls the error...

Push to an array from get:method

arrays,angularjs,push,factory
EDIT: Solved the question thanks to you. list() instead of list. Such a stupid question. Why pushing to array in a factory like this doesn't work? It works only if I make a push function inside the factory. var app = angular.module('app', []); app.factory('registeredUsersService', function() { var registeredUsers = [];...

Parse Push Channel - user can suscribe/unsusribe

android,parse.com,push
Is it possible to add a subscribe/unsubscribe to channel(s) from a menu or navigation drawer in Android? The user can check or turn off which channels they want messages from, and then the system would update. Are there any tutorials that Parse has provided? My app will have two different...

Git pull --rebase when push

git,push,rebase,pull
I'd like to know if it would be possible with git to auto pull --rebase when doing git push ? I mean if git push is rejected, automatically do a git pull --rebase and then git push again so I don't need to do that manually each time someone push...

How can I create a angular app that can subscribe to push notifications from a drupal CMS?

android,ios,angularjs,drupal,push
I'm using phonegap and angular to develop the native app. There are no user accounts. This is using local storage on the phone only. The app lets you subscribe to several different push notifications. The admin server that sends out these push notifications is a drupal site. Is a third...

Never pushing merged changes in git

git,merge,push
Let's say I have two branches in git: A and B. Say that I make a change in A and merge it into B. Then I push the latest version of B up to the remote but I never push the changes from A up to the remote. In fact...

Push in my javascript array

javascript,arrays,push,jslink
I need some help for my JSlink code. I used this code, it work well: var Fields = { "Continent": { "NewForm": FieldTemplate, "EditForm": FieldTemplate }, "Country": { "NewForm": FieldTemplate, "EditForm": FieldTemplate }, "City": { "NewForm": FieldTemplate, "EditForm": FieldTemplate } }; But I would like to make it dynamic so...

Orion Context Broker - Push array element in entities

arrays,push,entities,fiware-orion
I made entity { "contextElements": [ { "type": "T1", "isPattern": "false", "id": "E1", "attributes": [ { "name": "A", "type": "T", "value": [ "22" , { "x": [ "x1", "x2"], "y": "3" }, [ "z1", "z2" ] ] }, { "name": "B", "type": "T", "value": { "x": { "x1": "a", "x2":...

Git pushing to new remote error

git,github,push
I have a local git repository with an existing remote on my harddrive. Now I wanted to move the repository to github and following the documentation I did the following: git remote set-url origin https://github.com/xxx/xxx.git git push -u origin master but I am getting errors. [[email protected] folder]$ git push -u...

How to retrieve key/value array from Bundle on Android

android,bundle,push
I'm trying to retrieve data from "extra" key: Bundle[ {from=1058706545539, extra={ "ty":"msg", "d":"sec":1425242647,"usec":763000}, "iL":"86777e87a574c3f068f6525e", "tU":"7e0a9dbbd1d6ee1795d64fdf", "iP":"4f26e5f78d042e2224688ed7", "iM":"dd83db95e764b103b4fec99e"}, message=Oi , android.support.content.wakelockid=1, collapse_key=do_not_collapse }] If it was JSon I'd use JSONObject, I don't know how to retrieve the the whole "extra" on a HashMap structure. So that I can use something like...

Does cf push respect the use of .gitignore?

git,push,bluemix
I'm using the .gitignore file below with the hope that when I push my application, the tmp directory and swap files will be ignored. That isn't happening though and now I am wondering if cf push even considers .gitignore? *.swp tmp/ Does anyone know if cf push takes a .gitignore...

Embjers store.createRecord or store.push not updating view

ember.js,view,ember-data,push
I'm trying to create a new record and push it into the store. I can persist it just fine (and i'll push to the store after successfully persisting, once i figure this out), but the view/template isn't being refreshed. I know persistence works because, if I refresh the entire page,...

Send push message to apple sandbox

ios,push
I'm currently working on push notification workflow developed by another developer of my company. I have a question about the sandbox for push notification. I have generated a .pem for my production environment. I have tested id with openssl as describe in this tutorial. When i make the test to...

How to push a particular file to github without pushing all other files?

git,github,push
If I have two different files in local git repository, and i Want to push a single file to cloud repository., How do I do it.?

Why do I see 'NOTICE' messages when I push my application using the PHP buildpack?

php,push,bluemix
Every time I deploy my PHP application I see lots of these 'NOTICE' messages in my logs. For example, when I run 'cf logs APPNAME' I see: 2015-04-10T15:00:59.70+0100 [App/0] ERR [10-Apr-2015 14:00:59] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root 2015-04-10T15:01:00.63+0100 [App/0] ERR [10-Apr-2015...