Posts

Original url from twitter short url -

i need base url or original url short url obtained twitter in form http://t.co ... is way original base url this...please suggest any kind of appreciated.. look @ link, https://dev.twitter.com/docs/tweet-entities especially "the media entity" part one of these api should solve problem. media_url url of media file (see sizes attribute available sizes) media_url_https ssl url of media file (see sizes attribute available sizes) url media url extracted display_url not url string display instead of media url expanded_url resolved media url

sql server 2008 r2 - How to modify this SQL Query to show the percentage of participation in the last sending quiz in each division in the company? -

i have following query shows number of participants in last sending quiz in each division. want keep instead of showing number of participants, want show percentage of participation in last sending quiz. for information, have following database design: employee table: username, name, job, divisioncode division table: sapcode, divisionname quiz table: quizid, title, description, issent userquiz table: userquizid, score, datetimecomplete, quizid, username note: first attribute in each table primary key. issent flag used determine quiz sent users , 1 not. so how modify query show percentage of participation? sql query: select dbo.divisions.divisionshortcut, count(distinct dbo.userquiz.username) [number of participants], dbo.quiz.quizid dbo.divisions inner join dbo.employee on dbo.divisions.sapcode = dbo.employee.divisioncode inner join dbo.userquiz on dbo.employee.username = dbo.userquiz.username inner join dbo.quiz on dbo....

Where is the "Store" menu in the Visual Studio 11 Beta? -

where "store" menu in visual studio 11 beta? downloaded , installed ultimate version , there's no "store" menu see in video tutorials . what see in installation what expect see open metro project. you'll find menu in project | store

.net - Where to run a duplicate check for an entity -

i'm looking advice on "best" place put validation logic, such duplicate check entity, when using entity framework code-first, in mvc application. to use simple example: public class jobrole { public int id { get; set; } public string name { get; set; } } the rule "name" field must unique. when add new jobrole, easy run check in job role repository name doesn't exist. but if user edits existing jobrole, , accidentally sets name 1 exists, how can check this? the issue there doesn't need "update" method on repository, job role entity automatically detect changes, there isn't logical place check before attempting save. i have considered 2 options far: override validateentry method on dbcontext, , when jobrole entity being saved entitystate.modified, run duplicate check then. create sort of duplicate-checking service, called controller, before attempting save. neither seems ideal. using validateentry seem...

RTF number of pages Page x of y -

not sure if possible trying save text via plain text output rtf special coding. i have working except total number of pages. i want "page x of y", bottom of each page "page 1 of 3" example, can't find correct code total page number. some people said use \nofpages source says use of \nofpagesn specify number of pages in document. there formula or can use or maybe way put last page number? here example of code, if put rtf file via notepad save , open in wordpad or word see mean: {\rtf1\pagestart1 {\header\brdrt\brdrth\ql\b name: \b0last, first \par\b dob: \b0 1979/11/03 \par\b service date/time: \b0 2012/03/06 00:49:00 \par\b mrn: \b0 xxxxxx \par\b order date/time: \b0 2012/03/05 01:14:00 \par\b study id: \b0 } \par{\footer\pard\brdrt\brdrs\qc\fs16\b\ul confidentiality notice \par\par\pard\brdrt\brdrs\keepn\ql\fs20 date: \chdate\par\keepn\qc\fs20 page \chpgn of \nofpages\par}\b study id: \b0 000000000000 \par\pard\brdrb\brdrth bunch of ...

linux - How to redirect all internet traffic to local proxy in the same workstation -

i'm trying find way redirect internet traffic catch ip packets , work them. for example, webbrowser try connect www.google.com generates http request, ip packet. want packet in machine , it. is there way it? (i'm working linux os) thanks. if want capture network traffic on own machine, try tcpdump . dumps ip packets file (with -w flag). see http://linux.die.net/man/8/tcpdump

cordova - iFrame Changes window.innerHeight / window.innerWidth on Android + PhoneGap -

i'm creating app using phonegap android. 1 of pages in app contains iframe (with local content) larger rest of pages (this single-page app). the problem i've run once iframe page viewed, window.innerheight , window.innerwidth javascript objects change values match iframe's width/height causing rest of 'pages' display incorrectly not same size. this persists after remove iframe dom. has run or has idea of workaround? first, sure there bug here ! i had same issue , resolved, here how. changed iframes & images width 100% or less wider window.innerwidth. here corresponding haxejs code: resizenodechildrentag(_contentcontainer,"iframe"); resizenodechildrentag(_contentcontainer,"img"); private function resizenodechildrentag(node:htmldom, tagname:string):void { var tagnodes:htmlcollection<htmldom> = node.getelementsbytagname(tagname); // nodes given tag name (i in 0...tagnodes.length) { ...