freeradius customzied message for ‘radpostauth reply’ table

Uncategorized
Question: I am using freeradius on Ubuntu 12.4 32bit. I can see log entries of success/failed login attempts in RADPOSTAUTH table. currently I can see 'ACCESS-REJECT' & 'ACCESS-ACCEPT' in REPLY column. How can I customize it for more meaningful messages like 'Incorrect Password' or 'Account Expired' or 'Account Disabled' or 'Quota Reached'. Freeradius RadPostAuth Table Showing Success/Failed Login Attempts Answer: Read more
Read More

Prevent multiple DB requests for the Rails Admin custom field

Uncategorized
Question: I have the custom boolean field in rails admin with nested resource usage class Sector has_many :holds, dependent: :destroy, inverse_of: :sector def holden holds.find_by_end_date(nil).present? end end When the system renders Sectors list I see the multiple DB requests to get the holden field value for the each Sector. Hold Load (2.0ms) SELECT "holds".* FROM "holds" WHERE "holds"."sector_id" = $1 AND "holds"."end_date" IS NULL LIMIT $2 [["sector_id", 119], ["LIMIT", 1]] Hold Load (2.0ms) SELECT "holds".* FROM "holds" WHERE "holds"."sector_id" = $1 AND "holds"."end_date" IS NULL LIMIT $2 [["sector_id", 118], ["LIMIT", 1]] Hold Load (4.0ms) SELECT "holds".* FROM "holds" WHERE "holds"."sector_id" = $1 AND "holds"."end_date" IS NULL LIMIT $2 [["sector_id", 117], ["LIMIT", 1]] Hold Load (3.0ms) SELECT "holds".* FROM "holds" WHERE "holds"."sector_id" = $1 AND "holds"."end_date" IS NULL LIMIT $2 [["sector_id",…
Read More

Page View Controller viewDidLoad() Issues

Uncategorized
Question: I'm learning Swift/Xcode and trying to create an app with three pages that you can swipe back and forth using a Page View Controller. The issues I'm having lie in the UIViewController subclass, more specifically the viewDidLoad() function. I'm getting errors like "value of type 'NameOfMyClass' has no member datasource/delegate" and "use of unresolved identifier "setViewControllers". I've followed many tutorials and checked other posts but no one seems to be having these issues. When I attempted to run this I would get a black screen, and now I get a terminated due to signal 15 error. Here's the relevant code where the errors are popping up:import UIKit class RootPageViewController: UIViewController, UIPageViewControllerDataSource, UIPageViewControllerDelegate { lazy var viewControllerList:[UIViewController] = { return [self.VCInstance(name: "MissionOne"), self.VCInstance(name: "MissionTwo"), self.VCInstance(name: "MissionThree")] }() private func VCInstance(name:…
Read More