Posts

sql - Best method to scrape large number of Wikipedia tables to MySQL database -

what best programmatic way grab html tables of wikipedia main article pages pages' titles match keywords? take column names , table data , put them database. would grab url , page name attribution. i don't need specifics recommended methods or links tutorials perhaps. the easy approach not scrape wikipedia website @ all. of data, metadata, , associated media form wikipedia available in structured formats; preclude need scrape web pages. to data wikipedia database (which may search, slice , dice 'til heart's content): download data files . run sqlize tool of choice run mysqlimport drink coffee. the url of original article should able re-constructed page title pretty easily.

java - Save string path in a database -

java mysql database i'm doing project on saving string path name like, "c:\desktop\" database. had create entity class update path name database, in java eclipse when run program display path store in database in format, "c:\desktop\" in database column path store "c: desktop", without '\' a simple solution replace the "\" before store in database. try: string.replace("\","@"); then slashes @ symbols. when read value again, can other way.

javascript - Mouse over not working -

i have div waiting move on event. places div information it. the problem have getting remove event listener & remove div created... reason cannot find child div made. so script tried: div.addeventlistener('mouseover',bubble_info,false); function bubble_info(e){ var x = e.pagex + 50; //push 50px right var div = document.createelement('div'); div.style.position = 'absolute'; div.style.top = e.pagey; div.style.left = x; div.classname = 'bubble'; div.innerhtml = 'testing div'; this.appendchild(div); //stop firing if mouse moves around on parent still "over" parent this.removeeventlistener('mouseover',bubble_info,false); //when mouse out occurs below should fire this.addeventlistener('mouseout',function(){clear_hover.call(this,div);},false); } function clear_hover(child){ //remove bubble div made child.parentnode.removechild(chil...

c# - How can I force <a> links to files trigger download in the browser (and not open) -

i knowt may repeated question couldn't find solution case. here's doing:i want create page admin of site can upload files , make description each file,and users can download these files.i created admin page fileupload control saves files in downloads/files .then created database 3 columns: 1- downloadtitle 2- downloadmain 3- name .the admin can enter download title , download main(the description of file) each file.and name column filled automatically uploaded file's name. here did download page(after getting data database using code behind): <asp:repeater id="downloadsrepeater" runat="server"> <itemtemplate> <div class="downloadtitle"><%#eval("downloadtitle") %></div> <div class="downloadmain"><%#eval("downloadmain") %> <div class="downloadbuttom" dir="ltr"><a href="/downloads/files/<%#eval(...

Unicode are of different type? what happens there? -

Image
how many types of unicode available ? scenario when submit मनोज display मनोज when submit ÖîjètÅÔe display &#214;&#238;j&#232;t&#197;&#212; in computer. मनोज different type ÖîjètÅÔe in unicode approach? there 1 unicode. unicode doesn't have code pages ansi. but unicode can written in couple of ways, utf-8, utf-16, utf-32. , there's difference between utf-16 little endian , utf-16 big endian well. please read the absolute minimum every software developer absolutely, positively must know unicode , character sets (no excuses!) . it's great explanation of differences between them, , more.

javascript - Creating a nested JSON object dynamically? -

i there cannot seem functionality going planned. i have json 'jsondata' contains formula of different terms "jsondata":{ "a" : "b + c", "b" : "d + e", "d" : "h + i", "c" : "f + g" } what trying have function pass 1 arguments 'mainitem'(ie. 1 of key in 'jsondata' example a in 'jsondata'). within function formula json data(for example 'mainitem' , b + c formula) , check dependency of child component of formula i.e check whether b , c have dependency down line in json data. if has dependency added child component parent example if b have formula in json data. b added 'mainitem' in child component of parent 'mainitem' a . @ end of code, get. { mainitem : "a", formula : "b+c", childcomponent: { mainitem: "b", fo...

animation - Using ScreenSlider from developer.android.com . How to jump to specific page? -

i using screenslider http://developer.android.com/training/animation/screen-slide.html . running using 5 pages . want directly jump 1 page . e.g user @ 2 page , on clicking button jumps 5 page . how implement this. there predefined methods .please help? use setcurrentitem http://developer.android.com/reference/android/support/v4/view/viewpager.html#setcurrentitem(int mviewpager.setcurrentitem(4) // moving 5th page or mviewpager.setcurrentitem(4, true) // move with animation