Set NSURLSessionDownloadTask in NSMutableDictionary
Vote count: 0 I set the NSURLSessionDownloadTask in NSMutableDictionary. Than i want to save this dictionary in NSUserDefaults. I know, i can't save custom object in NSUserDefaults. After searched, i found this answer; How to store custom objects in NSUserDefaults. But i couldn't implement to my cod...
Set a session variable for a logged in user
Vote count: 0 I am creating a log in for a patient so they can access information regarding prescriptions etc for a project - (isnt going live) So I have my patients already created with use ame and password and they are linked to their medication through a link table. The log in works and acknowled...
Case classes match on type
Vote count: 0 If I try to match a variable on its type, like in the code below: object CaseClassesApp extends App { sealed trait A{} final case class B() extends A{} final case class C() extends A{} def tryMatch(x: Any): String = x match { case B => "It's a B!" case C => "It's a C!" case _ => "nope"...
big data visualization soical graph
Vote count: 0 me and my partner working on a project involving social graph visualization and analisys. the graph contain approximently ~2,000,000 nodes and ~1,000,000,000 edges. we try to use Gephi but we exceed the limit of memory. can someone recommend on data visualization and analisys that can ...
How to access app.controller $scopes inside app.directive
Vote count: 0 Ok i have the following angular js code. What im trying to do is to set some scopes to null when enter button is pressed inside a form. So far I have div with ng-click event that sets these scopes to null, but i want to make the same with enter key also. App directive: app.directive('n...
Grouping same date JSON data together Using java
Vote count: 0 I have created one json Object Using java and it's values are given below {"result":[{"ID":7252,"Age":52,"Date":"2015-11-25","DAY":"Wednesday","Gender":"M"},{"ID":7252,"Age":52,"Date":"2015-12-05","DAY":"Saturday","Gender":"M"},....],"status":"ok"} I need to group data as per date,requ...
Which is the correct form to create a responsive table?
Vote count: 0 I have been seeking to know in terms of good practices which is the best way to create responsive tables. I always read that to create tabular data we have to use table tags, but I often use div's tag with display:table option because of the responsive design. Also found that is able t...
Jquery - is not a function Issues
Vote count: 0 I am using Jquery https://code.jquery.com/jquery-1.12.2.min.js Then i include my function file,which has this function ;(function($){ $.fn.UPLOAD_IMAGES= function(options) { var defaults = { main_url : mainurl }; var options = $.extend(defaults, options); // retu s the jQuery object to...
Swiping Fragments with button click in xamarin
Vote count: 0 I have 5 fragments and I want to swipe between them back and forward with buttons, I actually made a class to stop swiping with just touching, but I couldn't reach a good sulotion to make a swipe between two fragments with a button, so maybe can someone help me please. This is the frag...
Change font size on traitCollectionDidChange
Vote count: 0 I am attempting to work around the stupid Apple 'no custom fonts with auto-layout' bug but I am ru ing into issues implementing it in a way that will also work with trait collection updates. I originally was ru ing the code on a 0.5 delay from a delay-called function on viewDidLoad and...
Check data deleted in facebook graph api
Vote count: 0 I have a make request: ID/posts?fields=full_picture,source,message I received the results of which have data deleted. How to know what data was deleted? asked 2 mins agoHuong Dinh Thi Let's block ads! (Why?)
Can anyone convert this C++ code to C program?
Vote count: -4 A skyscraper has no more than 100 floors, numbered from 0 to 99. It has n (1 ≤ n ≤ 5) elevators which travel up and down at (possibly) different speeds. For each i in {1, 2, . . . n}, elevator number i takes Ti (1 ≤ Ti ≤ 100) seconds to travel between any two adjacent floors (going up...