Posts

timestamp - How to give priorities to Interrupt handlers in a normal linux kernel? -

i working on precise time stamping of packets being captured network. interrupt generated @ every packet reception. interrupt handler registered ethernet driver queues captured packets. have 2 questions who performs time stamping on each packet, interrupt handler or kernel processes packets queue. depending on task (interrupt handler or kernel, both being in kernel space) performs time stamping, how can increase priority in normal kernel (i.e. without using rt kernel)

css3 - Adding a border to an element with border-radius -

funnily enough isn't working me in firefox, ideas why border isn't showing? css .cue-points ul li a{ text-indent:-9999px; -webkit-border-radius: 180px; -moz-border-radius: 180px; border-radius: 180px; border:1px solid #000; display:block; height:15px; width:15px; } html <a href="#one">one</a> check .cue-points ul li a usually missing there thsi wil work fine a{ text-indent:-9999px; -webkit-border-radius: 180px; -moz-border-radius: 180px; border-radius: 180px; border:1px solid #000; display:block; height:15px; width:15px; } and if want use clas can write .cue-points or .cue-points li demo : http://jsfiddle.net/kougiland/qlmh3/

Filter logging raw post data in rails -

i have mobile app posting , receiving json rails app, problem raw json shows in log. there way filter it? you want add filter_parameters . here's default one: $ cat config/initializers/filter_parameter_logging.rb # sure restart server when modify file. # configure sensitive parameters filtered log file. rails.application.config.filter_parameters += [:password]

node.js - Facebook iOS SDK and passport-facebook authentication -

i'm trying implement server facebook authentication using passport-facebook on ios facebook sdk app, , i'm unclear how setup passport authentication on backend. basically ios client authenticates facebook , gets sessiontoken , want pass passport-facebook /auth/facebook/callback verify session token fb, , lookup user our database through node.js. is correct way use passport-facebook, or need call /auth/facebook (and parameters need pass it). this issue mentions building app using facebook ios sdk , authenticating on server, doesn't mention how that. https://github.com/jaredhanson/passport-facebook/issues/7 i write own custom passport strategy passes fb session token , can verify fb graph api on server fb user id , authenticate it's valid session, mentioned here: design facebook authentication in ios app accesses secured web service check out passport-facebook-token , designed authenticate based on issued token (ie, 1 issued ios app). passport-fac...

objective c - #ifdef #else #endif choose iOS sdk version and function? -

i buliding dark themed ios 6 , 7 app. understand can call [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; make ios 7 status bar suit dark color theme application. the problem going submit app app store , xcode 5 not ready that, have use xcode 4.6.x task. xcode 4.6, not able compile new method ios 7. think have ""if ios7"" [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; , reposition application window. i trying #ifdef ... #else ... code [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; inside viewdidload . could understand how use #ifdef ... method in functions. thanks lot!!!! while i'm not 100% sure can answer without breaching nda, i'll best point in right direction. you need use __iphone_* #defines in availability.h #if __iphone_os_version_max_allowed >= __iphone_6_0 // ios 6+ code here #else // pre ios 6 code here ...

android - SearchView getActionView returning null -

this working few days ago, stopped. want use action bar search widget when fragment visible. now i'm unable searchview , getactionview returns null. searchable.xml <?xml version="1.0" encoding="utf-8"?> <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/app_name" android:hint="@string/search_for_places"> </searchable> manifest.xml <activity android:name=".ui.activities.mainactivity" android:launchmode="singletop"> <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.launcher"/> <action android:name="android.intent.action.search"/> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/s...

angularjs - Is there a easier way to include $dialog bootstrap-ui component into our code -

folks, i wondering if there better way include $dialog module in angular code. please @ plunkr : http://plnkr.co/edit/yxf1knmqhado3im8dfby all open modal upon clicking button. setting modal messy have put code in main controller (which testctrl incase of plunkr) does know how make directive can have in template click here open modal thanks, i can't see code, if create directive, can move controller code directive link function , output dom elements through template property of directive. even if don't want mess template replacement, can @ least move code controller directive , have modal html hidden area in main view. have done whenever have used modal. here plunkr did illustrates pulling controller code directive: http://plnkr.co/edit/3esmvm?p=preview