How to put user authentication into a mobile application

How to put user authentication into a mobile application

I'm interested in the best way to do user auth in a mobile app. At the moment the set up is quite simple. I'm storing the username and password on the app and sending it to the api each time I need to run a restricted query.This I feel is p

Replace UITextViews text with attributed string

Replace UITextViews text with attributed string

I have a UITextView and when the user is entering text into it, I want to format the text on the fly. Something like syntax highlighting...For that I'd like to use UITextView...Everything works fine expect one problem: I take the text from

Parts of page as subviews in Angular

Parts of page as subviews in Angular

I have the following problem to solve:From within local menu (menu on the left) I can choose sub pages. Typical scenario. And now I would like to relaod content associated with local menu item. In pure Angular I don't know a standard easy w

Using lapply to apply a function over list of data frames and saving output to files with different

Using lapply to apply a function over list of data frames and saving output to files with different

I have a list of data frames and have given each element in the list (e.g. each data frame) a name:e.g.df1 I have a function that I want to apply to each data frame; In this function, I want to include a line to write the results to file (e

Are there any good R object browsers?

Are there any good R object browsers?

S-Plus has a great object explorer and data editor built into its GUI. It allows you to easily see all the objects in the workspace at a glance, and sort them by name, size, or date. As far as I'm aware, the only equivalent for R is the o

How do I generate text matching a regular expression from a regular expression? [closed]

How do I generate text matching a regular expression from a regular expression? [closed]

Yup, you read that right. I needs something that is capable of generating random text from a regular expression. So the text should be random, but be matched by the regular expression. It seems it doesn't exist, but I could be wrong.Just a

Is there a colored REPL for Clojure?

Is there a colored REPL for Clojure?

I'd like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby.Are there any libraries or settings for user.clj that provide automatic coloring of the REPL?Example IRB: 1:I do not know of any way to have th

How do I run a batch script from within a batch script?

How do I run a batch script from within a batch script?

How do I call another batch script from within a batch script?I want it to execute in an if statement. 1:Use CALL as inCALL nameOfOtherFile.batThis will block (pause) the execution of the current batch file, and it will wait until the CA

How can I erase the old data from logcat?

How can I erase the old data from logcat?

When I execute the command adb logcat while running the android emulator, all of the old logs blow past and so I figure they are stored in a file somewhere. Is there a command I can run to clear the logs and start fresh? If not, is there so

Problems with compiling apache2 on Mac OS X Mountain Lion

Problems with compiling apache2 on Mac OS X Mountain Lion

While trying to compile the latest version of the apache web server(2.4.3) on my Mac (10.8) I run into a problem. When I run the ./configure command I got the following output:checking for chosen layout... Apachechecking for working mkdir -

Choosing between .NET Service Bus Queues vs Azure Queue Service

Choosing between .NET Service Bus Queues vs Azure Queue Service

Just a quick question regarding an Azure application. If I have a number of Web and Worker roles that need to communicate, documentation says to use the Azure Queue Service. However, I've just read that the new .NET Service Bus now also off

How to change port for jenkins window service when 8080 is being used

How to change port for jenkins window service when 8080 is being used

I installed Jenkins on a windows virtual server and want to run it as window service. Since the port 8080 is being used by other service, I changed the http port to 8081 in jenkins.xml file. However, I am not able to launch localhost:8081/j

How to copy a directory and its contents to an existing location using Python?

How to copy a directory and its contents to an existing location using Python?

I'm trying to copy a directory and all its contents to a path that already exists. The problem is, between the os module and the shutil module, there doesn't seem to be a way to do this. the shutil.copytree() function expects that the des

bonitasoft bpm vs jBPM vs Activiti

bonitasoft bpm vs jBPM vs Activiti

I am evaluating BPM offerings to be used within our application. I wanted to find outthe differences between Bonitasoft / jBPM and ActivitiSome of these products provide forms generation capabilities - are they any good? Would you use it in

Xcode will run app on simulator but not on device

Xcode will run app on simulator but not on device

I receive the following error when trying to run the app on my device.error: failed to launch '/Users/michael/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/Word Processor.app/Word Processor' -- No such file or directory

Pass multiple optional parameters to a C# function

Pass multiple optional parameters to a C# function

Is there a way to set up a C# function to accept any number of parameters? For example, could you set up a function such that the following all work - x = AddUp(2, 3)x = AddUp(5, 7, 8, 2)x = AddUp(43, 545, 23, 656, 23, 64, 234, 44) 1:Use

JSON.stringify output to div in pretty print way

JSON.stringify output to div in pretty print way

I JSON.stringify a json object by result = JSON.stringify(message, my_json, 2)The 2 in the argument above is supposed to pretty print the result. It does this if i do something like alert(result). However, I want to output this to the use

Distance to the object using stereo camera

Distance to the object using stereo camera

Is there a way to calculate the distance to specific object using stereo camera? Is there an equation or something to get distance using disparity or angle? 1:NOTE: Everything described here can be found in the Learning OpenCV book in th

How do i get out of the habit of procedural programming and into object oriented programming?

How do i get out of the habit of procedural programming and into object oriented programming?

I'm hoping to get some tips to kinda help me break out of what i consider after all these years a bad habit of procedural programming. Every time i attempt to do a project in OOP i end up eventually reverting to procedural. I guess i'm no

How can I implement my own basic unix shell in C?

How can I implement my own basic unix shell in C?

I'm a newbie to process and thread management. My Shell should understand PATH environment variable. It can be set and modified. It runs in two ways -interactive & batch mode. Shell is capable of taking more than one job like ls;ps;wc file;

Introduction to Erlang/OTP production applications deployment

Introduction to Erlang/OTP production applications deployment

I would like to develop and deploy an Erlang/OTP application into production on a VPS.I am pretty familiar with developing Erlang code on a local machine and my question is about deployment.Basically, I would like to know what steps I shoul

Creating the ServerSocket in a separate thread?

Creating the ServerSocket in a separate thread?

I have a problem with using a ServerSocket in my application.I'm creating the ServerSocket in the constructor of my application. The constructor of the socket calls the accept() method to wait for a client to connect.The problem is that the

JavaFX ComboBox not responding on Windows 10

JavaFX ComboBox not responding on Windows 10

I recently upgraded to Windows 10 and JavaFX code which worked in Windows 8.1 appears to freeze up in 10. I've tracked the issue down to opening a ComboBox within a dialog. This appears to freeze any JavaFX program. Does anyone else have th

How to create Categories in Rails

How to create Categories in Rails

i'm trying to Add Categories to my Rails app, but don't quite know how to do this.I have many Pins(Images) and want the user to be able to assign a category on those Pins.ASSIGN not create, edit, or delete a Category, just selecting one for

How can I export DAE files for use in Scene Kit without seeing “untitled-animations”?

How can I export DAE files for use in Scene Kit without seeing “untitled-animations”?

I am trying to load animations created in Cheetah 3D and Blender 3D into Scene Kit, but all I get is a bunch of "untitled-animations" with each one being the same animation. Does anyone know how to properly export these from Blender or Chee