Posts

html - How do I control the spacing of the bottom border? -

i want accomplish 2 thing here: 1) i'd control spacing of bottom border. there way have bottom border show 5 pixels down below type? 2) also, word "enhance" in bold. first word in example should bold. here's jsfiddle: http://jsfiddle.net/m9zlj27j/6/ here's code: h1 { font-family:helvetica, arial; font-size:1.6em; text-transform:uppercase; font-weight:normal; margin-bottom:-5px; } h1.section-title { font-family: helvetica, arial; font-size:32px; font-weight: normal; margin: 50px 0; border-bottom: 1px dotted #f66511; } h1.section-title-bold { font-weight: bold; } .rtecenter { text-align: center; } .blue { color: #2251a4; } <h1 class="section-title rtecenter blue"> <span class="section-title-bold">enhance</span> search</h1> try it, 1) can control spacing using padding. 2) , bold done make space between class h1 .section-title-bold h1...

elisp - Open file from Emacs terminal without find-file -

if i'm in term-mode buffer , there file path displayed, how go making path "clickable", opening file in new buffer? doesn't have mouse-clickable, in fact i'd prefer key binding works when point on file path. other common case of using ls , function used when viewing log file. debug info contains file path , line number. lib/library.rb:34 example. ideally, emacs open new buffer , move cursor line 34 . the short answer is: don't work against emacs. let emacs work you. while can use find-file-at-point or put yourself, better off running make , grep , other stuff prints "dir/file:pos" using m-x compile or m-x grep . if need interact program prints "dir/file:pos" , can pass prefix argument compile , compilation buffer interactive. if have arbitrary program output starts "dir/file:pos" , e.g., rails server , need run (grep "rails server") .

bash - Strange results using Linux find -

i trying set backup shell script shall run once per week on server , keep weekly backups ten weeks , works well, except 1 thing... i have folder contains many rather large files, ten weekly backups of folder take quite large amount of disk space , many of larger files in folder change, thought split backup of folder in two: 1 smaller files included in 'normal' weekly backup (and kept ten weeks) , 1 file larger files updated every week, without older weekly versions being kept. i have used following command larger files: /usr/bin/find /other/projects -size +100m -print0 | /usr/bin/xargs -0 /bin/tar -rvpf /backup/prj-files_large.tar that works expected. tar -v option there debugging. however, when archiving smaller files, use similar command: /usr/bin/find /other/projects -size -100m -print0 | /usr/bin/xargs -0 /bin/tar -rvpf /backup/prj-files_$file_end.tar where $file_end weekly number. line above not work. had script run other day , took hours , produced file 70...

Removing multiple entries from ArrayList in Java by date -

so have arraylist called inpeople, has class stored in named peoplein. data stored in class peoplein( int scannernum, date date, int empnum){ so basically, program system reads through logs of punch clock find out who's in building. problem is, if person punches in number of times, never punches out, end duplicates in list. basically, need keep recent punch in. can done? you can use map<key,value> , if put value same key . previous value replace current value. eg: map<string,string> map=new hashmap<>(); map.put("emp1", "val1"); map.put("emp2","val2"); system.out.println(map); // putting emp1, val3 map.put("emp1","val3"); system.out.println(map); out put: {emp2=val2, emp1=val1} {emp2=val2, emp1=val3}

sql server - Get current user while using SQL Authentication -

we using sql login vehicle issuing permissions, once authenticated through sql, we'd still know active directory name of connected user? we've tried: select suser_name() select suser_sname() select suser_sid() select user_name() select user_id() select system_user select session_user select original_login() is information still available somewhere? it appears not possible . according andrew barber's comment on "get windows user login name sql server" : if logged in sql server user, not logged in windows user; no windows credentials passed @ all; can't information directly

c++ - Linking issue with OpenCV Lib after changing to x64 (Visual Studio 2010) -

i wanted compile c++ program x64. i didn't change else, following error: link : fatal error lnk1181: cannot open input file 'opencv_calib3d249d.lib' win32 still works fine though. (i used http://msdn.microsoft.com/en-us/library/9yb4317s.aspx )

c# - Different URL required when hosting a WCF service on Windows 7 -

i have wcf service defined follows: <service name="myservice"> <host> <baseaddresses> <add baseaddress="http://localhost:8080/servicecontainer" /> </baseaddresses> </host> <endpoint address="service" binding="webhttpbinding" contract="iservice" /> </service> my service implements following contract: [servicecontract] public interface iservice { [operationcontract] [webinvoke(method = "post", uritemplate = "dowork")] void mymethod(); } i host wcf service windows service, using webservicehost . hosting on xp call operation on uri: http://myhost:8080/servicecontainer/dowork (i.e. base address / uri template) hosting on windows 7 , same uri fails (with 404 error). however, following uri succeeds: http://myhost:8080/servicecontainer/service/dowork (i.e. base address / endpoint address / uri template) th...