Questions tagged [user-data]

513 questions
7
votes
2 answers

Terraform EC2 User Data Changes Not Replacing The EC2

I've noticed recently Terraform or AWS has made a change EC2 userdata so that changes don't trigger a 'replace' in terraform. Quote Terraform aws_instance docs: Updates to this field will trigger a stop/start of the EC2 instance. We have automated…
7
votes
1 answer

cloud-init execution order doesn't respect /etc/cloud/cloud.cfg?

This is the content of /etc/cloud/cloud.cfg of Ubuntu cloud 16.04 image: # The top level settings are used as module # and system configuration. # A set of users which may be applied and/or used by various modules # when a 'default' entry is found…
dvnguyen
  • 2,954
  • 17
  • 24
7
votes
3 answers

algorithm for checking addresses for matches?

I'm working on a survey program where people will be given promotional considerations the first time they fill out a survey. In a lot of scenarios, the only way we can stop people from cheating the system and getting a promotion they don't deserve…
user151841
  • 17,377
  • 29
  • 109
  • 171
7
votes
2 answers

Grails: Best approach for storing data for the duration of the users session

Which of the following methods is considered the recommended way of storing data in grails for the duration of a users session? Store a bunch of individual variables in the actual session. Store a domain model class object in the session. Use a…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
7
votes
1 answer

Sprite Kit iOS7 - SKNode UserData property not storing values

I would think this work work easily, however I cannot understand why my NSMutableDictionary property is not working as I would have expected. [self.testSprite.userData setValue:@"CAT" forKey:@"key"]; NSLog(@"%@", [self.testSprite.userData…
DogCoffee
  • 19,820
  • 10
  • 87
  • 120
6
votes
1 answer

unsetting some session data in codeigniter

I am saving some data in a session, and certain points in my websites, I am giving the user the option to removes certain parts of the session based on the array key, the array I get when I do, print_r($this->session->userdata('shortlist'); this…
Udders
  • 6,914
  • 24
  • 102
  • 194
6
votes
1 answer

The right way to provide a Premium update to a free Android App

I have been developing a free game (with ads) on the Android Market. Now quite a few people are requesting me to do a paid version without ads. I have no experience in keeping multiple versions of a single app. I have already factored out the app on…
Phil
  • 5,595
  • 5
  • 35
  • 55
6
votes
1 answer

Specifying the type for Threejs Object3D.userData in TypeScript

In Three.js there is a field on Object3D class called userData, which in the type declaration file node_modules/three/src/core/Object3D.d.ts is defined as /** * Base class for scene graph objects */ export class Object3D extends EventDispatcher…
GedasFX
  • 81
  • 5
6
votes
3 answers

iPhone: Save user data in plist, SQLite or cookie?

My app (like most) is going to be leveraging many remote services... so when a user authenticates themselves, I need to store their username and password (or some kind of flag) so that they don't have to authenticate all over the app. Where is the…
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
6
votes
4 answers

EC2 User Data not working via python boto command

I am trying to launch an instance, have a script run the first time it launches as part of userdata. The following code was used (python boto3 library): import boto3 ec2 = boto3.resource('ec2') instance = ec2.create_instances(DryRun=False,…
johannesgiorgis
  • 83
  • 1
  • 1
  • 6
6
votes
2 answers

How to read userData in jqgrid?

I need to pass userData to jqgrid, but can't find any examples of how to do this. Here's my attempt: Sent from the server: { total: 25, page: currentpage, userData: {foo: 'bar'}, rows: myRows } and in jqgrid: var data =…
royco
  • 5,409
  • 13
  • 60
  • 84
6
votes
1 answer

How to check whether an item exists in the dynamodb table?

I am making an android app with login via facebook and custom signup. I am using AWS dynamodb to store the user data. I am able to store the data from facebook and custom signup but unable to scan that data. Actually I want whenever a user come…
User0706
  • 1,067
  • 1
  • 18
  • 34
6
votes
1 answer

Persisting/caching data between requests - common approach

I'm developing an Asp.net (MVC but this doesn't really matter) application. I have a custom IHttpModule that's responsible for the PostAuthenticateRequest to change user principal & identity. I'm storing UserID and UserName in authentication cookie…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
5
votes
1 answer

How to get the total amount spent by a user (customer) in WooCommerce?

With the following shortcode I am trying to get user total spent amount, but it is slowing page load (6 seconds). Is it possible to optimize this code to shorten the loading time? add_shortcode('woo-total-completed',…
5
votes
2 answers

How ro run a shell script on aws elastic beanstalk environment instance launch

I am using Terraform script to create aws elastic beanstalk environment, I need to launch a shell script on instance launch I have already tried the following resource "aws_elastic_beanstalk_environment" "Environment" { name =…
Bikesh M
  • 8,163
  • 6
  • 40
  • 52
1
2
3
34 35