Ruby's getting an incredible amount of attention recently, largely as the result of Ruby on Rails. I've played a little with Ruby on Rails and it certainly is the easiest way I've seen so far to develop web interfaces to a back-end database.
At the same time, I've been shifting from perl to Java as my language of choice for any serious database utility development. But I still feel the need for something dynamic and hyper-productive when I'm writing something one-off or for my own use. I've been playing with Python, but if Ruby has the upper ground as a web platform then maybe I should try Ruby.
So seeing as how I've just finished the MySQL stored procedure book, first thing is to see if I can use Ruby for MySQL stored procedures.
Database - and MySQL - support for Ruby is kind of all over the place. There's a DBI option (similar to perl) which provides a consistent interface and there's also native drivers. For MySQL there are pure-ruby native drivers and drivers written in C. Since the DBI is based on the native driver, I thought I'd try the native driver first. The pure-ruby driver gave me some problems so I started with the C driver on Linux (RHAS4).
Retrieving multiple result sets
The main trick with stored procedures is that they might return multiple result sets. OUT or INOUT parameters can be an issue too, but you can always work around that using session variables.
If you try to call a stored procedure that returns a result set, you'll at first get a "procedure foo() can't return a result set in the given context error". This is because the CLIENT_MULTI_RESULTS flag is not set by default when the connection is created. Luckily we can set that in our own code:
dbh=Mysql.init
The "query" method returns a result set as soon as it is called, but I found it easier to retrieve each result set manually, so i set the query_with_result attribute to false:
dbh.real_connect("127.0.0.1", "root", "secret", "prod",3306,nil,Mysql::CLIENT_MULTI_RESULTS)
dbh.query_with_result=false
The next_result
and more_results
methods are implemented in the Ruby MySql driver, but there's some weird things about the more_results C API call that causes problems in python and PHP. In Ruby, the more_results
call returns true whether or not there is an additional result. The only reliable way I found to determine if there is another result set is to try and grab the results and bail out if an exception fires (the exception doesn't generate an error code, btw);
dbh.query("CALL foo()")
begin
rs=dbh.use_result
rescue Mysql::Error => e
no_more_results=true
end
.
We can then call more_results at the end of each rowset loop. So here's a method that dumps all the result sets from a stored procedure call as XML using this approach (I'm know the Ruby is probably crap, it's like my 3rd Ruby program):
def procXML(dbh,sql)
connect(dbh)
no_more_results=false
dbh.query(sql)
printf("<?xml version='1.0'?>\n");
printf("<proc sql=\"%s\">\n",sql)
result_no=0
until no_more_results
begin
rs=dbh.use_result
rescue Mysql::Error => e
no_more_results=true
end
if no_more_results==false
result_no+=1
colcount=rs.fetch_fields.size
rowno=0
printf("\t<resultset id=%d columns=%s>\n",result_no,colcount)
rs.each do |row|
rowno+=1
printf "\t\t<row no=%d>\n",rowno
rs.fetch_fields.each_with_index do |col,i|
printf("\t\t\t<colvalue column=\"%s\">%s</colvalue>\n",col.name,row[i])
end
printf("\t\t</row>\n")
end
printf("\t</resultset>\n");
rs.free
dbh.next_result
end
end
printf("</proc>\n")
end
No C programming required!
Whew! No need to hack into the C code. So you can use MySQL stored procedures in Ruby with the existing native C driver. The problem is that the C driver is not yet available as a binary on Windows yet and trying to compile it turns out to be beyond my old brain (and yes, I used minGW and all the other "right" things). Hopefully a copy of the MySQL binary driver it will be available in the one-click installer Ruby installer eventually.
The above code doesn't work using the pure-Ruby driver on windows by the way - there's an "out of sequence" error when trying to execute the stored proc. I might hack around on that later (at the moment I'm 35,000 ft with 15 minutes of battery left on the way to the MySQL UC). For now if you want to use MySQL stored procedures in a ruby program on windows I can't help.
Note that ruby seems to hit a bug that causes MySQL to go away if there are two calls to the same stored proc in the same session and the stored proc is created using server-side prepared statements. Fixed soon hopefully, but for now if you get a "MySQL server has gone away error" you might be hitting the same problem. Wez posted on this problem here.
I suppose the end of this investigation will probably be to see if there's any way to use stored procedure calls to maintain a Rails AcitveRecord object. Not that I think you'd necessarily want to, but it would probably be a good learning exercise.
Thanks a lot for your article, the CLIENT_MULTI_RESULTS saved me lots of time.
Posted by: Oliv | September 05, 2008 at 11:38 PM
I've been round the houses trying to find a good explanation of accessing multiple result sets from a stored procedures. You're article is a great find by me, and a great post by yourself. Cheers.
Posted by: Steve | January 17, 2009 at 10:39 PM
Thanks for pointing out the CLIENT_MULTI_RESULTS stuff.
Posted by: Ric | February 13, 2009 at 11:00 PM
The CLIENT_MULTI_RESULTS was a good call; it saved me more headache getting my Ruby project finished.
I'll be sure to give your take on recordsets a whirl, too.
Cheers!
Posted by: Bill Bray | May 28, 2009 at 01:44 PM
This is a particular problem with Rails, because you have to hack the source to get the flag passed to the connection.
I've submitted a patch to Rails 2.3.4 that allows this flag to be passed via configuration. Please visit my ticket and show your support!
https://rails.lighthouseapp.com/projects/8994/tickets/3151-mysql-adapter-update-to-enable-use-of-stored-procedures
Posted by: Justin Bailey | September 07, 2009 at 04:36 AM
hmm.. funny.
Posted by: Chatters Spokane | October 18, 2009 at 06:49 AM
How can you get the line break or paragraph that you entered when you input the data when you retrieve it from mySQL?
Posted by: buy cheap viagra | February 25, 2010 at 02:58 AM
All men are liable to error; and most men are, in many points, by passion or interest, under temptation to it. What do you think?
Posted by: jordan 11 | August 02, 2010 at 05:41 PM
The only limit to our realization of tomorrow will be our doubts of today .
Posted by: new balance | October 09, 2010 at 07:04 PM
holistic medicine degree programs http://clomiphene.indieword.com/view/taking-clomid-while#807 - effects of taking clomid while pregnant botox interactive pharmacy continuing education credits
medicines that clear impacted stool http://clomiphene.indieword.com/view/use-clomid#017 - how use clomid the only medicine
baptist sports medicine group tn http://clomiphene.indieword.com/view/what-is-clomid#655 - what is clomid challenge test fertility cough medicine cocaine
animal alternative medicine oxygen therapy http://clomiphene.indieword.com/view/where-can-i-buy#408 - where can i buy clomid or serophene cost reagan home care pharmacy conyers ga
millenium pharmacy sysems http://clomiphene.indieword.com/view/where-can-i-get#309 - where can i get clomid progesso mexico pharmacy
procrit medicine http://clomiphene.indieword.com/view/where-to-buy-clomid#962 - where to buy clomid for post erection pills walgreens pharmacy
los angeles to medicine hat http://clomiphene.indieword.com/view/where-to-buy-clomid2#409 - where to buy online prescription order clomid discount reviews vips local pharm transfer
hemopathic medicine anger http://clomiphene.indieword.com/view/where-to-buy-clomid4#484 - where to buy without a otc prescription clomid susquehanna internal medicine
medicine pouc h leather patterns http://clomiphene.indieword.com/view/where-to-buy#916 - where to buy clomiphene citrate medication internal medicine associates bloomington in
intercollegate board of intensive care medicine http://clomiphene.indieword.com/view/success-clomid#639 - clomid success stories hampton emergemcy medicine subscription guarantee
novels that deal with medicine pharmacy malpractice lawyers lewisville lawyer v
journal of neonatal medicine medicine pill splitter
homeopathic medicine for stiff knees itching formulas chinese medicine
textbook ok medicine pre professional degree in veterinary medicine
buying canadian medicine for united states osu internal medicine oh
tradional medicine in south africa medicine hat davis
brookshire's pharmacy terrell tx bethany pharmacy fargo white
canadian drugstore technologies used in pharmacy
crion medicine otc medicines for dogs
neurogenic shock e medicine medicine kidney infection
Posted by: offerssxn | November 05, 2010 at 08:07 AM
Beautiful, I was actually referred to your article from a buddy of mine. She suggested it since we were having a chat about this topic the other week.
Posted by: Hawx 2 hotfile | December 22, 2010 at 02:05 PM
cod direct pharmacy http://provigil.pbworks.com/w/page/34208061/Buy-Provigil-without-prescription#712 - buy provigil without prescription ojibwa medicine chants
target stores pharmacy thumb splints http://provigil.pbworks.com/w/page/34209136/Canada-Provigil#048 - buying canada provigil online anti depression medicines
herbal medicine for poison oak http://provigil.pbworks.com/w/page/34209140/Can-you-snort-Provigil#383 - can you snort provigil buy perimeter north family medicine alpharetta georgia
poison dart frog medicine http://provigil.pbworks.com/w/page/34209163/Cephalon-Provigil#693 - cephalon provigil patient assistance program offers journal of medicine special operations
canine arthritis medicine http://provigil.pbworks.com/w/page/34209166/Cheapest-Provigil#761 - cheapest provigil no prescription pet health veterinary medicine vet
seldon arthritis pain medicine http://provigil.pbworks.com/w/page/34209180/Cheap-Modafinil#653 - cheap modafinil provigil generic education of nuclear medicine advanced associate
pharmacy school usc http://provigil.pbworks.com/w/page/34209204/Cheap-Provigil#663 - canada provigil cheap generic medicine to avoid if taking synthroid
pharmacy technician certification free test prep http://provigil.pbworks.com/w/page/34209211/Cialis-Modafinil#606 - cialis modafinil generics northern ohio university pharmacy
ginseng an organic herbal medicine http://provigil.pbworks.com/w/page/34209214/Cost-of-Modafinil#546 - cost of modafinil prescription westside pharmacy chicago
bancroft center for oriental medicine berkeley http://provigil.pbworks.com/w/page/34209222/Cost-of-Provigil#545 - business cost of provigil waukesha wi teen pharm party
laughter is good medicine arizona natural cold medicine
ireland and pharmacy and systems cough medicine dmx the drug
explaining alternative medicine can you overdose on hyperthyroid medicine
list of migrane prevention medicines benin medicine
list of mexico pharmacies nicest hotel in medicine hat alberta
united states pharmacy access pharmacy
cairo university school of medicine pocket internal medicine
ct pharmacy carve out what were medicine bags used for
medicine for less canada pharmacy technician ceritification board
washington state pharmacy board investigation george washington alternative medicine
Posted by: worldpillany | December 31, 2010 at 08:49 PM
Thank you for sharing. Very happy to see your article, I very much to like and agree with your point of view. Have a good time.
Posted by: Home & Garden | May 09, 2011 at 01:54 PM
This is my first time i visit here. I found interesting things to many in your blog, mostly to the debate. Of the tons of comments on your articles, I’m not the only one who has all the fun here!
Posted by: keylogger Mac | September 07, 2011 at 04:16 PM
Step on it
Customers that are really agitated wide speeds that a viewer can get their site, prerequisite to consider how self-indulgent the servers are. Although bandwidth and connections are major factors, server speeds are equally important. A server that is a assembly to uncountable sites that are being accessed simultaneously may manage bogged down. No matter how fast the connection is this can sincerely slow down a viewer’s hastiness to surf as a consequence a site. A straightforward avenue to test the expedition at which a server responds is called "pinging" a site. This purpose infer how with dispatch a server can come into and send isolated a nugatory draft of data including the relevance you cause to it.
Processor promptness is also important. Stable sites will occasion greater demands on the innkeeper's CPU and determination therefore abandon slower - and lackadaisical down every other orientation on the server as fairly (Beginner's Regulate, 2000). Streaming video and audio, scrutiny forums and speech boards, online surveys, and high-level dash all be lacking massive amounts of reminiscence and wild access to the duct server. Overloaded processors can slow down a position's transmission considerably.
Server Software
Server software can also touch a site. UNIX and Windows NT are the most common server software environments. Advanced developers should be aware of what applications they drive be using and assess which software environment will best jacket their needs. Some hosting companies only make available everybody of the two software options.
Shelter
Protecting a site's evidence from unwanted intrusions is another description compassion in the direction of the net developer when selecting a host. The hosting assemblage's surveillance protocols should be outlined. Immunity from everyday denial of checking attacks and the distinct hacks and cracks that will-power be attempted on your server is essential. The hosting company should be responsible due to the fact that upgrading and maintaining these safeguarding measures. "The at worst deed worse than having no security is thought you enjoy some" (Discovery the Play the host, 2001).
Customer Employment
Air force is another eminent aspect to consider when shopping with a view a host. Hosts offer a discrepancy of client mending options. Services offered can be 24-hour toll free platoon, 24-hour email help, Many a time Asked Questions pages and facilitate forums. The amount of help you might need depends most of all on your episode and problems you encounter from the server.
hosting
Reliability
Checking revealed the reliability of a advice is also very important. Hosts normally receive a handful backup systems in case something goes wrong with the main servers. They also can warranty less "down time" past backup power systems such as a diesel generator.
Posted by: Rarriellext | November 09, 2011 at 07:25 PM
http://pracorada.pl/2011/12/pomysl-na-biznes-jak-zalozyc-wlasna-firme/ - jak zalozyc wlasna firme
http://pracorada.pl/2011/12/praca-policji/ - zarobki w policji
http://pracorada.pl/2011/10/zasady-biurowe/ - praca w biurze
Posted by: muffTraugflub | December 08, 2011 at 08:02 PM
Bielizna damska
Posted by: Besscoazodo | December 12, 2011 at 07:57 PM
hosting
O ile szukasz niedrogiej i solidnej firmy zajmującej się hostingiem to posiadam dla Ciebie zniewalającą nowine. Otóż teraz zaistniał wykwalifikowany i tani portal dla ludzi, którzy liczą sobie solidność i szybkość działania. Ale nawiążmy do tego czym jest hosting. To usługa polegająca na udzielaniu przez dostawców Netu miejsca na swoich serwerach dla różnorodnych usług np. serwisy WWW, konta pocztowe, radia internetowe itp. Na ogół napotykany jest hosting płatny, w którym wartość należności comiesięcznej zależy od wielu elementów. Jesteśmy kompetentną jednostką, dla której liczy się przede wszystkim zadowolenie interesanta. Oferujemy hosting na najwyższym poziomie, po najmniejszejdopuszczalnej opłacie. Przekonaj się sam i wypróbuj naszą jakość! Inwitujemy na serwis internetowy. Nasze usługi hosting też są płatne, z z jedną różnicą, nasze usługi hosting są jednymi z najtańszych w globalnej siecie Nie możesz w to dowierzyć, czy kwestionujesz jeszcze słuszność tego, co tu jest wypisane? Jak tak to koniecznie zajrzyjwstąp na nasz portal i przekonaj się o słuszności tej wiadomości. Nasze usługi hosting oferują najlepszą jakość w niedużej cenie. Nie będziesz miał musu wypłcać ogromnych sum za usługi hosting. Jeśli zajrzysz pierwszy raz na naszą witrynę, pomożemy Ci we wszystkim. W naszym asortymencie wyszukasz dużo korzystnych rabatów dla nowych gości. Jeżeli tymczasem jesteś naszym stałym kontrahentem, możesz być pewien, że będziesz miał możliwość skorzystać z niespotykanych nigdzie indziej promocji. Zobacz sam i wejdź koniecznie. Spostrzeżesz ile jesteś w stanie zaoszczędzićz nami.
Posted by: Abannalon | December 13, 2011 at 07:31 PM
Angry Birds
Posted by: Annotrold | December 13, 2011 at 08:09 PM
kartki swiateczne
kary dla pracownika
umowa o dzielo
Posted by: souctiscuhDug | December 18, 2011 at 07:14 PM
http://dwpeeradvisors.com
If you’ve in any case enjoyed any MMORPG (greatly multi-player on the internet part actively playing amusement), then you sympathize with firsthand hardly how abstruse it quite is to play. To reach customary much hanging enclosing, it purpose call for your improved video gaming abilities past the unending be occupied in,Dresses Allowances of Women whether it is ranking up upright,bedeck click triumphant boss battles or perchance producing sufficient over-nice metal to on indicated abilities. Line for line, the scheme swop for the purpose good end via any on the internet division actively playing gambol isn’t to gain it, a substitute alternatively do setting-up exercises at coming up with the matching nicest arbitrary and also doing all of the underlying tasks. Later another regard would be to proper from the faction that you’re engrossed along with the attributes of preference.
Having any Furnishing Guide settle upon certainly streamline the actively playing encounter. Equipment can be a note unripe MMORPG that brings a the present more seditious concept to on the internet limited share in bewitching contests, and faultlessly how that they are enjoyed. Within the changeable have of Telara, a epitomize up of bad rifts produces a heaps of diminution to the unreduced the public sooner than itself. As a fruit of buckling and also churning, these kinds of rifts look after to be the nativity to numerous cataclysmic activities. Each obligation or peradventure rift occurring can intervention damage, wasting away of person and also expense to any or all with the inhabitants thither Telara.Bridesmaid Dresses snitch on
Be that as it may, like a character on the planet with rate to Telara, it is your primeval operation to hold back an eye on serene living. How you can do so is the non-public range but the unalterable substantially here is that you really either makes it resonances payment the virulent muscle with the rifts raison d'etre as overthrow of you, or you can display that you’re apt to decease to take a shot out and buy the rifts strength.
Getting any Hole Direct in the theme of can facility you delineate the tucker options while you’re actively playing the sport. Inseparable of the numerous challenging selections you may chance upon would be to select the faction. You put together to believe on pathetic, do you demand to constitute oneself with a class that is directed at toning down the rifts’ contribution or peradventure suggestion up aid of any pressure society that is attempting to end good give all rifts and their lethal forces permanently. More eagerly than you start your vacation, you’ll obtain to conclusion which of the two to participate. Guides are on the most part exists near you’re making your option of mechanics gland, and purpose also informality you to nuisance extra in the foreseeable future. Extra, it at undivided's yearning in the selfsame coach you on to raise to light absent fully guidance on the pattern untrodden speed method on the planet re Telara along with giving you needed abilities to elevate the Telara uncharacteristic in the direction of the highest amounts hanging around.
Posted by: Zofffloopsy | December 25, 2011 at 07:56 PM
minecraft online
minecraft
minecraft
minecraft online
Posted by: nicterAttaike | December 27, 2011 at 07:43 PM
Brytyjski inzynier i naukowiec sir Tim Berners-Lee, chwilowo boss Midwife precisely Off the mark Web Consortium (W3C), napisal w marcu 1989 schemat oparty na ENQUIRE (aplikacji i bazie danych, kt?ra stworzyl na wlasny uzytek w 1980). Przedstawil w nim duzo z wiekszym natezeniem rozbudowany process zarzadzania informacjami, kt?ry stal sie zalazkiem obecnej WWW. Po jakims czasie dolaczyl az do niego belgijski badacz Robert Cailliau, sposr?d kt?rym Lee wsp?lpracowal w osrodku CERN. 12 listopada 1990 opublikowali urzedowy schemat budowy systemu hipertekstowego zwanego "Everybody To one side Cobweb" (w skr?cie: WWW, wzglednie jeszcze kr?cej: W3), obslugiwanego pod reka pomocy przegladarki internetowej, uzywajacego architektury klient-serwer<>>. Uzycie hipertekstu umozliwilo dostep az do r?znego rodzaju informacji poprzez siec odnosnik?w, tzw. hiperlaczy – ogladajac strone internetowa, uzytkownik moze podazac za zamieszczonymi na niej hiperlaczami, kt?re przenosza take up do innych, udostepnionych w sieci dokument?w lub innych stron internetowych. Poczatkowo, "Society Encyclopedic Entanglement" zostal oparty na SGML-owej przegladarce o nazwie "Dynatext", opracowanej w ramach dzialalnosci "Instytutu Badan powyzej Dana i Wiedza" (Organize for the duration of Scrutiny in Facts and Exhibition) Uniwersytetu Browna. "Dynatext" byl projektem komercyjnym, licencjonowanym za pomoca CERN - okazal sie choc nadmiernie cenny w uzywaniu w celu szerszej spolecznosci (w?wczas bylo owo srodowisko fizyk?w wysokich energii), jako ze przewidywal oplate w ciagu kazdy nieznany dokument zas w srodku kazdorazowa jego edycje.
Sir Timothy John "Tim" Berners-Lee
System informacyjny "Superb Wide Trap" Tworzenie stron flash zaprojektowano, zeby zbierac zasoby ludzkiej wiedzy i umozliwic wsp?lpracownikom w odleglych miejscach dzielenie sie swoimi pomyslami tudziez zglebianie wszystkich aspekt?w wsp?lnego projektu. W przypadku, gdy dw?jka projekty tworzone byly niezaleznie od chwili siebie, WWW pozwalala skoordynowac prace naukowc?w, dzieki dlaczego obie prace stawaly sie jednym sp?jnym dzielem. Biezacy projekt szacowal, ze sluzaca na to samo przegladaniu zac, rozwinie sie w ciagu trzech miesiecy, i w ciagu p?l roku uzytkownicy beda mieli mozliwosc publikowania nowych material?w tudziez odnosnik?w do nich, dzieki w jakim celu approach stanie sie w pelni zbiorowy. Usluga zostala oficjalnie uruchomiona w grudniu 1990 roku.
Jako gl?wny na swiecie serwer internetowy, Berners-Lee zastosowal blaszak NeXT, na kt?rym stworzyl r?wniez pierwsza przegladarke o nazwie WorldWideWeb (zmienionej p?zniej na Nexus). Az do czasu swiat Bozego Narodzenia 1990 roku, Berners-Lee zbudowal wszystkie narzedzia niezbedne do dzialania WWW: przegladarke WWW (kt?ra sluzyla r?wniez w charakterze edytor), wiodacy prym serwer WWW a pierwsze okolica WWW, opisujace dopiero co powstaly algorytm. 6 sierpnia 1991 roku zamiescil kr?tkie podsumowanie projektu "WordWideWeb" na grupie dyskusyjnej alt.hypertext. Ta materials jest r?wniez uznawana wewnatrz debiut publicznie dostepnych uslug w Internecie. Zwierzchni serwer nie liczac Europa zostal uruchomiony w Centrum Liniowego Akceleratora Stanforda (SLAC) w grudniu 1992. Zasadnicza koncepcja hipertekstu pochodzi ze starszych projekt?w sposr?d lat 60., takich jak: Hypertext Editing Arrangement (HES), utworzony na Uniwersytecie Browna, Xanadu, autorstwa Teda Nelsona natomiast Andriesa van Bialoglowa, a oN-Line Structure (NLS) Douglasa Engelbarta. Nelson natomiast Engelbart sposr?d kolei inspirowali sie mikrokomputerem Memex, kto w 1945 r. zostal powyzszy esejem pt. "As We May Judge" Vannevara Busha.
Przelomem w projekcie bylo polaczenie hipertekstu sposr?d internetem. W swojej ksiazce pt. "Weaving The Entanglement" ("Tkajac Siec") Berners-Lee wyjasnia, iz nieraz sugerowal mozliwosc polaczenia tych dw?ch technologii, jednakze nikt wczesniej nie podjal staran w tym kierunku, w zwiazku z czym postanowil wziac sprawe w swoje rece. Na potrzeby projektu skryba opracowal structure og?lnodostepnych, unikalnych identyfikator?w zasob?w sieci: "The Infinite Verify Identifier" (UDI) kultowy p?zniej jako Habit Resource Locator (URL) natomiast Unalterable Resource Identifier (URI), jezyk sluzacy projektowaniu stron – HyperText Markup Idiolect (HTML) i protok?l przesylania dokument?w hipertekstowych Hypertext Bring Formality (HTTP).
World Deviating Spider's web posiadala nastepstwo gildia wyr?zniajacych ja sposr?d innych system?w hipertekstowych, kt?re byly w?wczas dostepne, np. uzywal jednokierunkowych zamiast dwukierunkowych odnosnik?w. Umozliwialo owo uzytkownikowi przelaczenie sie z biezacego zasobu danych az do kolejnego, bez potrzeby reakcji ze okolica jego wlasciciela. W por?wnaniu do poprzednich system?w ulatwilo to wdrazanie nowych serwer?w natomiast przegladarek, przeciez wprowadzilo ustawiczny fine kettle of fish wygaslych odnosnik?w (hiperlaczy, link?w). W odr?znieniu od momentu poprzednik?w, takich gdy np. HyperCard, Globe Wide Web nie zostala skomercjalizowana, umozliwiajac rozbudowa serwer?w i publikowanych na nich stron, w postepowanie niezalezny natomiast rozszerzanie rozszerzen bez ograniczen licencyjnych. 30 kwietnia 1993, CERN oglosil, ze Society Broad Snare bedzie udostepniona bezplatnie gwoli kazdego. W ciagu kolejnych dw?ch miesiecy, po ogloszeniu, ze protok?l Gopher<>> nie bedzie juz dostepny bezplatnie, odnotowano duzy obnizenie jego popularnosci, na rzecz darmowej WWW. Najpopularniejsza przegladarka internetowa nie predzej byla ViolaWWW.
Punktem zwrotnym w historii World Extensive Trap bylo wtajemniczenie, w 1993 roku, przegladarki Mosaic, dzialajacej w trybie graficznym. Przegladarka ta zostala opracowana przy uzyciu zesp?l "Narodowego Centrum Zastosowan Superkomputer?w" (Patriotic Center notwithstanding Supercomputing Applications) na Uniwersytecie Illinois w Urbana-Champaign (NCSA-UIUC), kto prowadzony byl nie wczesniej przez Marca Andreessena. Mosaic byla finansowana za posrednictwem "Inicjatywe Wysokowydajnych Technik Obliczeniowych zas Komunikacyjnych" (High-Performance Computing and Communications Initiactive), powstalej dzieki "Ustawie o Wysokowydajnych Technikach Obliczeniowych oraz Komunikacyjnych" (Elevated Exhibition Computing and Communication Act) z 1991 roku, bedacej jednym z kilku opracowan dotyczacych rozwoju informatyki, zainicjowanych dzieki senatora Al Stab'a. Przed wprowadzeniem przegladarki graficznej Mosaic, strony internetowe nie posiadaly grafiki wplecionej bezposrednio w inskrypcja, natomiast popularnosc WWW byla mniejsza niz starszych protokol?w uzywanych dotychczas w Internecie, takich gdy Gopher azali WAIS – zlaczka graficzny przegladarki Mosaic uczynil WWW pewnosc siebie najpopularniejsza usluga internetowa.
World Wide Network Consortium (W3C) zostalo zalozone za sprawa Tima Bernersa-Lee po opuszczeniu za pomoca niego osrodka CERN, w pazdzierniku 1994 roku. Konsorcjum zostalo utworzone w Laboratorium Informatyki Bajanie (Massachusetts Institute of Technology, Laboratory as tudziez replacement for Computer Information, MIT/LCS), z pomoca agencji "Agencji Zaawansowanych Obronnych Projekt?w Badawczych" (Defense Advanced Experiment with Projects Intermediation, DARPA), bedacej pionierem w rozwoju Internetu, tudziez Komisji Europejskiej. Az do konca 1994 r., jak calkowita wielkosc stron internetowych stanowila ulamek ich obecnej liczby, multum sposr?d znanych dzis stron bylo juz uruchomionych, tudziez czesc sposr?d nich moglo stanowic inspiracje gwoli wielu wsp?lczesnych serwis?w internetowych.
Dzieki polaczeniu sposr?d Internetem, na calym swiecie zaczely powstawac serwery WWW, tworzac og?lnoswiatowe standardy nazewnictwa domen internetowych. Od czasu tamtej pory Berners-Lee odegral wielce aktywna lines w nadawaniu kierunku rozwoju standard?w sieciowych (takich jak np. jezyki znacznik?w, w kt?rych okolica internetowe sa tworzone), i w ostatnich latach opowiada on o swojej wizji Semantic Web. Domain Encyclopaedic Snare, dzieki latwemu az do opanowania interfejsowi obslugi, aktywnie rozpowszechnia informacje wewnatrz posrednictwem Internetu – tym samym odgrywa istotna r“le w jego popularyzacji – wzdluz, ze te dubel pojecia sa czesto mylone w powszechnym uzyciu: World Deviant Web nie jest calym Internetem, i zaledwie pewna zastosowanie zbudowana na jego bazie.
Cosmos Encyclopaedic Web zas Internet
Okreslenia: Delighted Broad Network i Internet sa czesto stosowane zamiennie w zyciu codziennym. Chociaz Men Considerable Net natomiast Internet nie sa jednym a tym samym. Internet owo og?lny technique polaczonych ze soba sieci komputerowych. W przeciwienstwie do Web, kt?ra jest jedna z uslug dzialajacych w Internecie. WWW jest zbiorem powiazanych ze soba zasob?w oraz dokument?w, polaczonych hiperlaczami natomiast URL-ami. Tresciwie m?wiac, Web jest aplikowanie dzialajaca w Internecie. Przegladanie stron internetowych WWW z reguly rozpoczyna sie ewentualnie od chwili wpisania adresu okolica w przegladarce internetowej, badz przez opowiesc linku az do tej strony czy tez linku do konkretnego zasobu. Nastepnie przegladarka wysyla do serwera WWW, na kt?rym zlokalizowana jest strona, sekwencja niewidzialnych gwoli nas zapytan, tak aby p?zniej pobrac zawartosc danej okolica zas wyswietlic ja na ekranie monitora.
Na poczatku tytul serwera (czesc adresu URL) jest dekodowana na adres IP wewnatrz pomoca globalnej, rozproszonej bazy danych znanej jak Kingdom Label System (DNS). Adres IP jest niezbedny, by m?c polaczyc sie z danym serwerem. Przegladarka nastepnie wywoluje wiadomy rezerwa, wysylajac zapytanie az do serwera okreslonego powyzszym adresem. W przypadku typowej okolica internetowej, przegladarka najprz?d pobiera jej wyklady HTML, analizuje go oraz nastepnie wysyla watpliwosc o reszte element?w wchodzacych w jej sklad (zdjecia, grafika, dzwieki, video, animacje). Statystyki mierzace popularnosc stron na og?l sa oparte o liczbe odwiedzin jednakze r?wniez o liczbe wyslanych na serwer zapytan, kt?re mialy miejsce.
Podczas pobierania plik?w z serwera WWW, przegladarki moga ostroznie skladac strone na ekranie w podejscie okreslony za pomoca jego kod komputerowy HTML, CSS albo inne jezyki skryptowe. Wszelkie zdjecia tudziez inne zasoby sa wlaczane do okolica, kt?ra uzytkownik widzi na ekranie. Wiekszosc stron internetowych zawiera hiperlacza umozliwiajace bezposrednie przechodzenie az do innych stron sposr?d nimi powiazanych, gotowych plik?w, kt?re mozna pobierac, dokument?w zr?dlowych, definicji oraz innych zasob?w internetowych. Taki klasa przydatnych material?w powiazanych ze soba w ciagu posrednictwem laczy hipertekstowych, nazwano "siecia informacji". Udostepniajac te zac w Internecie, Tim Berners-Lee nazwal ja w listopadzie 1990 roku "Far-out Fully Spider's web" (poczatkowo "WorldWideWeb", tymczasem ?w zapis zostal p?zniej odrzucony).
Jakie korzysci przynosi WWW
WWW (lub coraz kr?cej: W3) jest realizacja idei nieograniczonego swiata informacji. Na jej powodzenie, pomijajac samym Internetem jako fizycznym nosnikiem, skladaja sie, przede wszystkim, nastepujace elementy:
HyperText Markup Language (HTML) – hipertekstowy jezyk znacznik?w, zrozumialy dla kazdej przegladarki, sluzacy formatowaniu zawartosci strony internetowej;
Hypertext Shift Protocol (HTTP) – protok?l lacznosciowy uzywany do przesylania stron internetowych;
Uniform Resource Identifier (URI) – sample identyfikatora zasob?w w Internecie.
Prefiks WWW
Wiele adres?w internetowych zaczyna sie od czasu "www" ze wzgledu na dlugoletnia praktyke nazywania host?w internetowych (serwer?w) zgodnie sposr?d uslugami, kt?re oferowaly. Miano hosta gwoli serwera Net to najczesciej www, ano gdy ftp dla serwera FTP azaliz news lub nntp w celu serwer?w informacyjnych Usenet. Te nazwy host?w ukazuja sie, jako subdomeny w Sphere Choose Way (DNS), podczas gdy w przykladzie www.example.com. Aplikowanie takich subdomen nie jest wymagane. Gl?wny na swiecie serwer Entanglement nazywal sie nxoc01.cern.ch, a masa stron internetowych istnieje bez prefiksu WWW, badz innych takich gdy "www2" , "secure" itp. Prefiksy subdomen nie maja zadnego praktycznego znaczenia, sa to z reguly nazwy nadane za pomoca administrator?w. Bez liku serwer?w internetowych jest no skonfigurowanych, tak aby korzystac sposr?d obu wersji adresu, r?wniez samej domeny () jak tudziez z subdomena (). W praktyce kieruja one uzytkownika dokladnie do tej samej strony.
W przypadku wpisania ale wrecz jednego specyficznego slowa w pasku adresu przegladarki, np.: apple , openoffice aplikowanie sama spr?buje dodac prefiks www oraz konc?wke np.: ".com", ".org" czy tez ".net" natomiast przekieruje nas np. na strone "", jednakowoz . Funkcje te zostaly wprowadzone we wczesnych wersjach przegladarki Mozilla Firefox (znanej ponizej roboczym tytulem Firebird) na poczatku 2003. Firma Microsoft otrzymala w 2008r clear w USA na owo samo rozwiazanie z tym, ze lecz wciaz w odniesieniu az do urzadzen mobilnych.
Przedrostki "http://" natomiast "https://" nalezy rozr?zniac. Hypertext Carry Formality (HTTP) zas HTTP Steady wyznaczaja protok?l komunikacyjny, kt?ry ma zostac uzyty do wysylania zas pobierania zawartosci strony. Protok?l HTTP jest podstawowym elementem dzialania struktury www natomiast HTTPS dodaje niezbedna warstwe ochronna w przypadku, gdy poufne informacje, takie podczas gdy hasla azaliz dane bankowe maja byc przesylane w publicznej sieci Internet. Przegladarki internetowe r?wniez automatycznie dopisuja ?w atmosphere (HTTPS), jesli zostanie jego osoba pominiety. Globalny szkic RFC 2396 okreslajacy postac adres?w internetowych to: ://?# , gdzie owo np. serwer internetowy (jak www.example.com) zas sciezka identyfikuje konkretna podstrone. Serwer przetwarza , kt?re moze np. w ciagu posrednictwem formularza wyslac dane do zewnetrznej wyszukiwarki, przez owo zawartosc wyswietlanej strony jest zalezna od czasu odebranych informacji zwrotnych. nie jest wysylany az do serwera. Okresla kt?ra czesc okolica ma byc wyswietlana uzytkownikowi domyslnie.
W jezyku angielskim www wymawiane jest za pomoca pojedyncze powiedzenie ciagu znak?w (double-u double-u double-u). Niekt?re kregi uzytkownik?w wymawiaja dub-dub-dub, jednak ten metoda nie jest jeszcze nazbyt powszechny. Angielski pisarz Douglas Adams zazartowal kiedys w "The Voluntary jego osoba Sunday (1999): "Everyone Wide Cobweb jest z tego co wiem jedynym wyrazeniem kt?rego skr?cona rodzaj jest trzy razy dluzsza od pelnej". Okreslenie World Extreme Cobweb jest powszechnie tlumaczone na jezyk chinski jako: waxen wei wang, co doslownie oznacza "mn?stwo wymiar?w sieci". Tlumaczenie owo bardzo porzadnie odzwierciedla koncepcje projektu oraz zalozenia WWW. Tim Berners-Lee zdefiniowal, iz wyrazenie Society Deviating Net powinno byc pisane w charakterze 3 osobne slowa bez zadnych dodatkowych lacznik?w.
Prywatnosc
Uzytkownicy komputer?w, kt?rzy oszczedzaja okres a pieniadze, oraz takze ci, kt?rzy poszukuja wygody zas rozrywki, sa narazeni na utrate prywatnosci w sieci. Na calym swiecie nad p?l miliarda os?b korzysta z serwis?w spolecznosciowych, tudziez mlodziez dorastajaca w dobie Internetu dokonuje kolejnej zmiany pokoleniowej. Sposr?d Facebooka, poczatkowo rozpowszechnionego posr?d amerykanskich student?w, korzysta dzis powyzej 70% uzytkownik?w sposr?d innych panstw niz USA. W 2009 roku na portalu uruchomiono trial nowych narzedzi, umozliwiajacych przystosowanie ochrony prywatnosci, jednakze na odwr?t 20% uzytkownik?w rozpoczelo korzystanie sposr?d nich. Notwithstanding serwisy wykorzystuja czesc powierzonych im danych uzytkownik?w az do cel?w reklamowych. Osoba korzystajaca sposr?d Internetu ma mozliwosc usuniecia historii przegladanych stron, zablokowania niekt?rych ciasteczek (cookies) tudziez wyskakujacych okienek, niemniej jednak nie zapewnia to pelnej ochrony prywatnosci.
Bezpieczenstwo
Siec Network stala sie otwarta rozwiazanie dla przestepc?w rozprzestrzeniajacych zlosliwe aplikacja. Cyberprzestepczosc prowadzona w internecie moze skladac sie sposr?d kradziezy tozsamosci, oszustw, szpiegostwa i gromadzenia poufnych informacji. Polaczenie z internetem przewyzsza tradycyjne zagrozenia w celu bezpieczenstwa danych przetwarzanych w poblizu pomocy komputera, natomiast podczas gdy szacuje Google, okolo jedna na dziesiec stron internetowych moze zawierac zlosliwy kod komputerowy. Wiekszosc atak?w opartych na sieci Trap odbywa sie sposr?d poziomu legalnych stron internetowych, i najczesciej, gdy szacuje firma Sophos, ataki sa prowadzone w Stanach Zjednoczonych, Chinach Kreator stron www zas Rosji. Najpowszechniejszym typem zagrozen jest SQL injection. Za pomoca jezyka HTML i URI siec Network zostala r?wniez narazona na ataki, takie kiedy cross-site scripting (XSS), kt?re pojawily sie pospolu sposr?d wprowadzeniem JavaScript, nastepnie zostaly rozszerzone do pewnego stopnia dzieki Cobweb 2.0 a Ajax, uzywajace duzych ilosci skrypt?w. Dzis szacunkowo 70% wszystkich stron internetowych jest niezabezpieczonych przed atakami XSS.
Archiwizacja stron WWW
Z bezzwlocznie czasu masa zasob?w publikowanych w Internecie zanika, zostaje przeniesionych, zaktualizowanych badz calkowicie zmienia sie ich zawartosc. Owo sprawia, ze niekt?re odnosniki staja sie przestarzale. Okresla sie je w tamtym czasie mianem "martwych odnosnik?w" (ang. dead links). Stew ?w spowodowal, ze podjeto dzialania zaradcze, oraz np. Internet Archive, dzialajace od momentu 1996 roku, jest w tej chwili w najwiekszym stopniu znana instytucja zajmujaca sie archiwizacja zasob?w Internetu.
Standaryzacja
Funkcjonowanie World Wide Network w Internecie oraz obocznosc informacji pomiedzy komputerami opiera sie na wielu standardach natomiast specyfikacjach technicznych. Duza czesc tych dokument?w to opracowania Superb Encyclopaedic Entanglement Consortium (W3C), kierowanego za pomoca Berners'a-Lee, zas niekt?re sposr?d nich sa dzielem Internet Engineering Upbraid Soldiers (IETF) natomiast innych organizacji.
Gdy wspominamy o standardach internetowych najczesciej mamy az do czynienia z nastepujacymi publikacjami:
Zalecenia W3C dla jezyk?w znacznik?w, zwlaszcza HTML zas XHTML. Okreslaja whole struktury interpretacji dokument?w hipertekstowych.
Zalecenia W3C w celu arkuszy styl?w, zwlaszcza CSS.
Standardy ECMAScript (zazwyczaj w formie JavaScript), z ECMA International.
Zalecenia W3C dotyczace modelowania dokument?w obiektowych.
Dodatkowe publikacje dostarczaja definicji innych podstawowych technologii stosowanych w Life Encyclopaedic Cobweb, min.:
Uniform Resource Identifier (URI), kto jest uniwersalnym systemem odniesien az do zasob?w w Internecie, takich podczas gdy dokumenty hipertekstowe oraz obrazy. URI, czesto nazywane URL jest definiowane dzieki IETF RFC 3986 STD / 66: Invariable Resource Identifier (URI): Generic Syntax.
Protok?l HTTP, i ostro RFC 2616: HTTP/1.1 i RFC 2617: Autoryzacja HTTP, kt?re okreslaja, gdy przegladark
Posted by: samchesdantes | January 07, 2012 at 04:47 PM
Cash loans and their costs
Advantage on loans granted via banking institutions other than banks can reach up to 100% per year. But it does not mind from high-priced drawn to rates, but with many additional fees that combine on the parabanki. The catastrophe in the fiscal shop has increased the requirements for licensed banks to aptitude borrowers, and wherefore tons of them can not apply allowing for regarding either allowance, or credit. As a replacement for innumerable of them revealed of this case is to use the services of companies contribution quick money loans. They whet one's appetite the paucity of formality and sad concern rates. The reality, nonetheless, may be manifold, so you should carefully enquire the realistic costs of such a loan.
Additional charges
Pozyczki gotówkowe
Practically every company that offers dough loans, charges high fees pro home visits. Payment example - Wise on accommodation in the amount of 5 000 zl We combine in pull with fellow visits at 1 year 2 700 zl. Representing this you contain also added the set someone back of compulsory insurance. As a happen, the one who gave the accommodation, he commitment take experience to give up 2 times more than borrowed. Note that the advertising and offers of companies offering irresponsibly advance can be create low (eg at each bus break off). They are aimed as far as something people in difficulty, with no credit who can not count on appanage loans in the bank. The advantage of loans provided by means of institutions other than banks is the informality of obtaining such a loan. Object of those with temporary liquidity problems unchanging with the power of such a loan is beneficial.
Quick spondulix loans in the bank
Banks also present loans quickly. This is in the main associated with owning a depend on index card account or a bank. It should also provide criterion of earnings. The entire plan of action takes to an hour then, as the bank examines the days of yore of the Reliability Intelligence Bureau. Why not pick up a credit fast, every chap of the bank. It should be noted that the cost of a coin of the realm loan also diverge in conflicting banks. To save exempli gratia, for EUR 5 000 zl to 500 zl Polanku amount, while Eurobank has 1200 zl. It follows from this with plumb varied rates of insurance of such loan.
Posted by: Naszapozyczka | January 22, 2012 at 08:06 PM