Posts

android - how to send extras to an activity with Intents? -

i have broadcastreceiver listens incoming sms messages. while new sms arrives, displays notification user can click on , open app. want pass message text activity. inside receiver: notification notifacation = new notification(); notifacation.icon = icon; notifacation.tickertext = tickertext; notifacation.when = system.currenttimemillis(); bundle bundle = new bundle(); bundle.putstring("sms_parameters", smsparameters); intent notificationintent = new intent(context, myactivity.class); notificationintent.putextra("sms_parameters", bundle); pendingintent contentintent = pendingintent.getactivity(context, 0, notificationintent, 0); notifacation.setlatesteventinfo(context, tickertext, message, contentintent); notificationmanager.notify(1, notifacation); inside activity: @override public void onresume() { bundle bundle = this.getintent().getextras(); if( bundle != null) { string smsparameters = bundle.getstring("sms_parameters"); ...

ASP.NET MVC 4 and ContextDependentView -

i have started playing beta , discovered bit of black magic in there. when @ _loginpartial.cshtml line builds register link says: @html.actionlink("register", "register", "account", routevalues: null, htmlattributes: new { id = "registerlink", data_dialog_title = "registration" }) the link rendered on browser says /account/register . however, form in register view renders action /account/jsonregister based on viewbag.formaction value. value set? have suspicion it's contextdependentview returned register action can't quite figure out how or why. any ideas please? the real magic in ajaxlogin.js file, modifies link add content=1 querystring parameter used in contextdependentview decide whether send json form or regular form. this jquery stuff people don't bother at.

What bytes to emit for an ARM equivalent of EBFE? -

in x86, if want cause infinite loop, can emit ebfe , jump current instruction. what's arm equivalent of ebfe? that 0xeafffffe -- unconditional branch itself

RSS Failed to Fetch Wordpress Embed Videos -

before go on i'd clarify use google reader test site's rss feed. ok, if title doesn't explain enough, wordpress using custom made theme bought site, provide support haven't gotten actual answer far, hope can answer here. basically site's rss feed not fetching videos embed directly post. have troubleshoot using wordpress default theme, , embed videos fetched right in google reader. think problem lies in custom theme i'm using. but don't know how troubleshoot , move on point. has got clue might problem? first of all, authors of bought theme should offer solutions that. try source view of rss feed , check if videos included. if so, maybe there reason why google reader not fetch these. add videos rss feed. find out, how theme stores videos. write custom function manipulate rss-feed , put functions.php (be updates, afterwards). see discussion: http://wordpress.org/support/topic/custom-fields-on-rss-feed-how-to plugin additional rss fie...

jQuery Lite Accordion Image Positioning -

Image
i looking @ jquery liteaccordion v2. use default set can downloaded from: https://github.com/nikki/liteaccordion , images. kind of learning plug in. however, have encountered problem image not sitting @ right place. please take @ below screen shot: i using firefox. element inspector, can see image going little bit bottom , right. not change settings. still same. have followed guide provided in website. i did try @ css file, not find 1 control image position. please, thoughts helpful me. thank in advance help. edit - code: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>lite accordion test lab</title> <link href="css/liteaccordion.css" rel=...

c# - Download an Excel file -

i have read past posts here on how download excel file website. so, have setup below code: string path = mappath(fname); string name = path.getfilename(path); string ext = path.getextension(path); string type = "application/vnd.ms-excel"; if (forcedownload) { response.appendheader("content-disposition", "attachment; filename=" + name); } if (type != "") { response.contenttype = type; response.writefile(path); response.end(); } however, no download dialog box. i try both in ie 8 , firefox 10.0.2. file there, it's not locked, , it's not set read only. i'm not sure went wrong. according this link , need add line: strfilename = path.getfilename(path); response.transmitfile( server.mappath(strfilename) ); this cause open / save dialog box pop filename of sailbig.jpg default filename preset. this of course assumes you're feeding file exists. if need feed dynamically generated...

linux - Which Hypervisor should I use? -

this more of advisory question. virtualization project , need software that. desktop virtualization allows run multiple operating systems on same physical hardware. cannot afford buy developer apis of vmware, have moved on linux. i did research on same , learnt xen can't installed on fedora 16. true? because doubtful of same. my questions : which operating system should install? fedora 16 /ubuntu 11.10 /any other? which software same? xen/any other? i want advise because using first time , post-installation problems hurt me bad. i newbie in linux... can please me out on this? p.s. : no offence, not asking best! asking suit purpose. if looking apis interested in libvirt simple esx style api interfacing locally virtualization hypervisor on system. libvirt works qemu, kvm, , xen , more. http://libvirt.org/ redhat has traditionally had better virtualization support in enterprise offerings. fedora not that. i'd suggest ubuntu oneiric. if looki...