Posts

How to export Excel spreadsheet to HTML table with INLINE CSS? -

i'd know how table in spreadsheet html format without microsoft specific code. our webpage hosted elsewhere means don't have access <head> part of our pages. can insert content <body> . want table retain same fonts, borders , formatting , css styling included directly in table code not elsewhere. edit: it appears work if put css classes in <body> of document. legal? thought supposed defined in <head> ??? <body> <style type="text/css"> table.mytable { border: 1px solid #ccc; font-family: verdana, verdana, geneva, sans-serif font-size: 12px; } edit: i have found copying in excel , pasting live view in dreamweaver creates cleaner html saving html in spreadsheet. still left bajillion css classes have edit out it's @ least it's step closer. if error message whilst pasting large table in dream weaver see this page . final edit: before export table html editor go through of cells in table format painter...

Select multiple custom objects on KineticJS and Javascript -

good evening everyone. create object on kineticjs has methods: function addcelestial(cb){ this.celestialbody = new kinetic.circle({ id: cb.id, x:cb.x, y:cb.y, fill:cb.color, radius:cb.radius, shadowcolor: cb.glow, shadowblur: cb.glowblur, shadowoffset: 0, shadowopacity: cb.glowopacity }); this.xpos = function(value){ if (typeof value === "undefined") { return this.celestialbody.getx(); } else { this.celestialbody.setx(value); } }; this.ypos = function(value){ if (typeof value === "undefined") { return this.celestialbody.gety(); } else { this.celestialbody.sety(value); } }; this.xvel = function(value){ if (typeof value === "undefined") { return this.xvel_v; } else { this.xvel_v = value; } }; this.yvel = function(value){ if (typeof value === "undefined") { return this.yvel_v; } else { this.yvel_v = v...

sql - Optimize query selecting based on several date ranges -

it seems there should way make more efficient. difficulty arbitrary date ranges , number of said ranges. in query attempting retrieve rows tasks table date (regardless of time) 2013-01-01, 2013-01-03, 2013-01-09 or 2013-02-01 tasks |id | int | |begin_date| datetime | select * tasks (tasks.begin_date >= '2013-01-01' , tasks.begin_date < '2013-01-01') or (tasks.begin_date >= '2013-01-03' , tasks.begin_date < '2013-01-04') or (tasks.begin_date >= '2013-01-09' , tasks.begin_date < '2013-01-10') or (tasks.begin_date >= '2013-02-01' , tasks.begin_date < '2013-02-02') is there "proper" way this? or more efficient way? i'm using sql server 2008. please try this select * tasks convert(varchar,begin_date,103) in ('01/01/2013','04/01/2013','10/01/2013','02/02/2013') or can try also. select * tasks (convert(varcha...

javascript - DOM manipulation during large SVG rendering -

ok, i'm trying finish project setting "loading..." message percentage indicator. easy enough. problem have little on 6,000 of raphael/svg lines of code inject line 2,000+ new nodes dom . real problem comes when i'm trying change % indicator on loading message, browser frozen till raphael finish creating nodes. what i've tried , know: 1) have simple function calculate % of loading increasing count var , spreading function on 6,000 code. way simulate actual loading process. nothing new. 2) know function works magic , through loading process i'm getting 0 100%-hero. 3) inside function, every time new value - i'm trying update % on screen - nothing happens there till full page load when instantly 100%. 4) way can indicator update setting alert() each time i'm trying update it. magic dust changes indicator when alert-popup gets on screen. 5) i've tried settimeout , many others, toggling visibility , changing position , creating chil...

Facebook October 2013 breaking changes affect Feed and send -

we using feed/post api , send dialog box our app in facebook , october 2013 breaking changes removing feed/post so, not able post declined facebook can not share post multiple user privacy moved out, more one-to-one communication. in send dialog description field removed cann't send pre-populated description in messages. i looking workaround hitting major functionality of app, share information between users. please help. if requirement has significance of description, think best option mention tagging . the post published user's wall friends tagged in post. it's open graph concept, if new can start here . else, you'll have use requests dialog - fb.ui or share dialog - user interaction. depends on requirement 1 suits best.

android - How to Open Activity with Notification -

i implementing 1 sdk when user click on notification activity open.i wondering how can pass different -different activity on intent.here sample code:- void firenotification(context _context, string appname, string appdescription) { intent resultintent = new intent(_context, resultactivity.class); try { pendingintent contentintent = pendingintent.getactivity(_context,0, resultintent,pendingintent.flag_update_current); mbuilder = new notificationcompat.builder(_context); } please suggest me how can pass different activity in intent. i assume wanted load activity instead of resultactivity, change resultactivity.class class name of other activity. if looking have ability determine activity load after user taps on notification, can create new activity determine activity load after launches, kinda activity "redirect" screen.

android - Send Json data from listview in one activity to another activity -

i trying send json object data 1 activity other activity. have listview populated json array, click on list item, not responding. no action being performed on item click. saw tutorials did not helped. need send list item's json data activity. appreciated. activity of listview populated json. try{ jarray = new jsonarray(result); listview listview=(listview)findviewbyid(r.id.listtour_cat); listview.setadapter(new listviewadapter(jsonuseactivity.this,jarray)); listview.setonitemclicklistener(new onitemclicklistener() { @override public void onitemclick(adapterview<?> arg0, view arg1, int arg2, long arg3) { // todo auto-generated method stub try{ if(!jarray.isnull(arg2)){ intent intent = new intent(getapplicationcontext(),tourdetailactivity.class); intent.putextra("id"...