Posts

code generation - GCC: assembly instruction lifecycle -

did ever meet description (article, tutorial) of how assembly instruction born , transformed in gcc? how (its ir predecessor, correct) appears during expand process, goes through rtl passes, becomes more , more target specific, etc. would grateful links! first, of gcc optimizations happens in middle-end, on gimple intermediate representations (i.e. optimization pass transforms gimple gimple). later, in back-end layer (at rtl level) assembler instructions generated. in fact, you'll better think in terms of gcc internal representations (mostly, gimple) in terms of assembly instruction lifecycle (nearly meaningless). you might compile -fdump-tree-all (and optimization flags, e.g. -o1 ) , might customize gcc melt (note: main author of melt). the indian gcc resource center contains lot of resources related gcc. my gcc melt documentation page contains many links , slides describing gcc internals. see this answer.

html - Bootstrap centering responsive img in container -

i want banner centered , logo above banner. can see both logo , banner , not centered. how can fix this? here live version: http://codepen.io/anon/pen/waybxb the html </head> <body> <!-- ============================== logo header ============================== --> <section> <div class="container"> <div class="row"> <div class="col-md-6"><img src="http://gvsfoundation.org/wp-content/uploads/2013/04/your-logo-here-27.png" class="logo"></div> <div class="col-md-6"></div> </div> </div> </section> <!--============================== sliding banneer ==============================--> <section class="banner "> <div class="container midtext"> <div class="col-md-12 text-cente...

algorithm - segment overlapping regions into disjoint regions -

given set of closed regions [a,b] a , b integers need find set of regions cover same numbers disjoint. i suppose possible naively iterating through set several times, looking recommendation of algorithm this. please help. edit: to clarify, resulting regions cannot larger original ones, have come disjoint regions contained original ones. in other words, need split original regions on boundaries overlap. example: 3,8 1,4 7,9 11,14 result: 1,3 3,4 4,7 7,8 8,9 11,14 (this modification of answer posted earlier today deleted after discovered had logic error. later realized modify vincent van der weele's elegant idea of using parenthesis depth fix bug) on edit: modified able accept intervals of length 0 call interval [a,a] of length 0 essential if doesn't appear endpoint of interval of length > 0. example, in [1,3], [2,2], [3,3], [4,4] 0-length intervals [2,2] , [4,4] essential [3,3] isn't. inessential 0-length intervals redundant need not app...

android - How to parse HTML table using jsoup? -

i trying parse html using jsoup. first time working jsoup , being little hard me. html table trying parse below. html table complicated because of many tr , td , don't know how proceed select name of each column in table 1: "group block" (table 0 topline , don't need it). i need select "bdd, bbgen, bbtest, conn, cpu, disk, files, hobbitd, http, info, memory, msgs, ports, procs, trends" set them in textview tag in xml file. possible using jsoup? i have i'm doing conexión url follows: string username = "user"; string password = "pass"; string login = username + ":" + password; string base64login = new string(android.util.base64.encode(login.getbytes(), android.util.base64.no_wrap)); document document = jsoup.connect("http://example.com").header("authorization", "basic " + base64login).get(); html code: <table summary="topline" width="100%"> <tr><td ...

sql - Run report based on a user's Sort on a Form -

Image
i have several reports populate off form below. add function when user uses column sort drop downs, reports @ visible records. so example report run while viewing window below return files customer named placeholder . is there simple way macro or query without resorting vba? this macro ended working well.

c# - Building a URL in HTML with Text Box Values -

i adding button website take user website , fill in various variables text boxes on site. here markup code html page: <body> <form id="form1" runat="server"> <div> <asp:label id="firstnamelabel" runat="server" text="first name:" width="100px"></asp:label> <asp:textbox id="firstnametxtbox" runat="server" width="150px"></asp:textbox> <br /> <asp:label id="lastnamelabel" runat="server" text="last name:" width="100px"></asp:label> <asp:textbox id="lastnametextbox" runat="server" width="150px"></asp:textbox> <br /> <asp:label id="emaillabel" runat="server" text="e-mail address:" width="100px"></asp:label> <asp:textbox id="emailtextbox" runat="serve...

objective c - Calculate the next event from now given an NSDate in the past and a repeat interval -

how can calculate first date later date in past repeating interval? example: // date in past nsdate *pastdate = [nsdate my_datewithstring:@"11/09/2001"]; // time interval nstimeinterval repeatinterval = 14 * 24 * 60 * 60; // 2 weeks // current date nsdate *now = [nsdate date]; // 23/07/2015 // start calculating next date -> nsdate *nextdate = /* interval added past date */ // result later now? // no? calculate again // abracadabra nslog(@"nexdate = %@",nextdate); // 28/07/2015 i don't want use iterations. i'm concerned calculating case start date 1 year in past , repeat interval of day. here solution, has iterations. nsdatecomponents *twoweeksdatecomponents = [nsdatecomponents new]; twoweeksdatecomponents.weekofmonth = 2; nsdate *date = self.picker.date; nscalendar *calendar = [nscalendar currentcalendar]; nsdate *now = [nsdate date]; nsdate *nextdate = date; nscomparisonresult result = [nextdate compare:now]; while (resu...