http___blog.nediko.info_2019_01_1.xml
https___www.autospeedmarket.com_tag_mercedes-2.xml
1.1 1.2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.1 3.2 4.1 4.2 6.1 8.1 9.1 10.1 11.1 12.1 14.1 16.1 16.2 17.1 17.2 18.1 19.1 20.1 23.1 24.1 25.1 26.1 27.1 28.1 29.1 31.1 32.1 34.1 36.1 39.1 40.1 41.1 42.1 43.1 47.1 48.1 49.1 51.1 52.1 53.1 54.1 55.1 58.1 59.1 60.1 61.1 63.1 64.1 65.1 66.1 69.1 70.1 70.2 70.3 71.1 72.1 72.2 72.3 72.4 72.5 72.6 73.1 74.1 75.1 76.1 76.2 77.1 77.2 77.3 78.1 79.1 79.2 80.1 80.2 81.1 82.1 82.2 83.1 84.1 85.1 85.2 85.3 85.4 85.5 85.6 86.1 86.2 86.3 87.1 87.2
Ще се опитам да опиша простичко, как се разработва прост extension add-on за Chrome. Понякога е много полезно да се работи с подобни скриптове, особено при скрапване на web-съдържание, когато конвенционалните методи не работят или изискват прекалено много усилия. За да се създаде подобен скрипт с потребителски интерфейс ще са ни необходими няколко файла: manifest.json – всяка добавка (extension) за Chrome (а и за другите браузери) съдържа подобен скрипт, който предоставя важна информация на браузера. Повече тук: Manifest File Format popup.html – стандартно наименование на файла с потребителския интерфейс, който се появява при клик с мишката върху добавката. Разбира се, можем да създадем добавка, която няма нужда от потребителски интерфейс, но в случая аз искам да имам. Името на този файл се посочва в manifest.json. popup.js – файл, който се зарежда чрез popup.html. Можем и да нямаме подобен файл и да поместим javascript кода направо в popup.html. Но тенденциите в модерното програмиране съветват да се диференцира всичко – стилове, скриптове, html. В моя случай popup.js е двигателя на Chrome добавката. Той посочва какво, кога и къде да се активира. getPagesSource.js – файл за инжектиране в web-страницата и извлича информацията от нея. Този файл се зарежда от popup.js. icon.png – някаква иконка, която да се показва в листата с добавките на Chrome. Нека създадем скрипт, който извлиза съдържанието на определени тагове, като използваме javascript функцията querySelectorAll(). Много приятна функция, която заменя в известна степен нуждата от XPath при web-скрапинга. Да започваме! Първо създаваме manifest.json, като описваме какво прави тая добавка: "name": "Simple web scraper", "manifest_version": 2, "description": "Get content from tags through querySelector", "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" "permissions": ["tabs", " "] След това си правим потребителския интерфейс popup.html – бутончета, поленца, форми, стилове, каквото ни е кеф. В случая ще се огранича на минимума за моите нужди – текстово поле, бутон, слой за резултата: В по-горния скрипт се вижда, че зареждам popup.js. Неговото съдържание е следното: chrome.runtime.onMessage.addListener(function(request, sender) { if (request.action == "getSlectedContent") { message.innerHTML = request.source; document.querySelector('#getselector').addEventListener('click', winLoad); function winLoad() { var message = document.querySelector('#message'); var inputSel = document.querySelector('#selector').value; var queryInfo = { active: true, currentWindow: true chrome.tabs.query(queryInfo, function(tabs) { chrome.tabs.sendMessage( customSelector: inputSel function(response) { chrome.tabs.executeScript(null, { file: "getPageContent.js" }, function() { if (chrome.runtime.lastError) { message.innerText = 'There was an error injecting script : \n' + chrome.runtime.lastError.message; Чрез popup.js зарежда javascripta, който се инжектира в страницата – getPageContent.js: chrome.runtime.onMessage.addListener(function(request, sender) { selElements(document, request.customSelector); function selElements(document_root, s){ // Tova go dobaviam zaradi kefa da polzvam foreach() v JavaScript var forEach = function (array, callback, scope) { for (var i = 0; i < array.length; i++) { callback.call(scope, i, array[i]); var myNodeList = document.querySelectorAll(s); var concatenateall = ''; forEach(myNodeList, function (index, value) { concatenateall = concatenateall + value.innerHTML + " "; // return concatenateall; chrome.runtime.sendMessage({ action: "getSlectedContent", source: concatenateall Това е. Сега остава да заредим добавката в Chrome. Това става като отворим More Tools -> Extensions. След това кликаме на бутона Load unpacked и избираме директорията с файловете на нашата добавка. На базата на тази добавка могат да се направят много други, тъй като съдържа базата за писане на добавки за Chrome. Хрумна ми една идея за разтегателно легло и реших да я запиша. Някой ден може да реализирам или да направя нещо друго на базата на тази идея. Точно такова разтегателно легло не съм виждал, а мисля, че има смисъл в подобна конструкция. Може да се ползва в ограничени пространства или като легло за гости. Боунус е възможността за монтиране на голямо чекмедже. Ренднах в Blender няколко картинки, които показват, каква точно ми е идеята за разтегателно легло. Това е свития, компактен вариант на леглото: Разтягането става, като се издърпа лявата страница: Скарата на леглото е изградена от летвички 950x40x20mm, а материал примерно липа: Летвичките са разположени шахматно. На плъзгащата част е монтирана ограничаваща летвичка. Матрака може да е двойно сгъваем с размери на отделните части 820x950x100mm. При разпъване се получава матрак 1900x820x100mm. За по-голямо удобство, след разтягане може да се метне отгоре един топ-матрак, примерно от тук: Летвичките профил 4x2cm могат да се вземат от тук: Корпуса на леглото е проектиран от ЛПДЧ 18mm. Страниците и дъното на чекмеджето са проектирани от суров МДФ 12mm. Има какво още да се помисли, като например при компактния вариант на леглото има луфт от страни между матраците и страницата. Като ми дойде музата, ще помисля, как мога да го подобря. Ето и кратко видео, което показва цялата ми идея за разтегателно легло: This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More Privacy & Cookies Policy Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience. Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information. Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
1.1 2.1 2.2 3.1 4.1 4.2 5.1 6.1 6.2 7.1 7.2 8.1 8.2 9.1 10.1 10.2 11.1 12.1 12.2 12.3 13.1 13.2 13.3 14.1 15.1 15.2 16.1 16.2 17.1 17.2 18.1 19.1 19.2 20.1 21.1 22.1 22.2 22.3 22.4 22.5 22.6 23.1 23.2 23.3 24.1 24.2 25.1 25.2 25.3
See the new models and concept cars shown off at the 2014 Paris Motor Show The Paris Motor Show 2014 kicked off on 2 October, and within hours we had floods of news, pictures and information direct from the show. We were expecting countless new car debuts, and a first look at some of 2015’s hottest cars – and we weren’t disappointed, as the wraps came off everything from the Jaguar XE and Mercedes AMG GT, to the new Volvo XC90 and facelifted Honda CR-V. See the new models and concept cars shown off at the 2014 Paris Motor Show via the following photo gallery All-New Mercedes-Benz B-Class Electric Drive The new B-Class Electric Drive has a surprise in store with its very special dynamic driving experience: it really accelerates powerfully and glides over the road with hardly a sound. The driver and passengers in the B-Class Electric Drive can enjoy accustomed high driving comfort... The Mercedes-Benz G63 AMG 6×6 near-series show vehicle brings together the best of three worlds. The latest, revised G-Class series-production models lend the superior off-roader the effortless superiority and refinement of a vehicle which has dominated the off-road scene for 34 years. They are also the source of the up-to-date interior concept with the contemporary dashboard featuring impressive new instruments and a large, central colour display. The New Mercedes CLA not only features a breathtaking design. Its Cd value of 0,23 makes it also one of the most aerodynamically efficient vehicles – within the Mercedes-Benz model range and among all production cars. The CLA 180 BlueEFFICIENCY Edition is even more aerodynamically efficient, it overcomes aerodynamic resistance with a Cd value of 0,22. Fuel consumption (combined): 7,1-4.2 l/100km and CO2 emissions (combined): 165-109 g/km. Click Play to discover this new amazing presentation made by Mercedes-Benz TV. Unveiling the Concept GLA, the brand demonstrates just how a compact, sporty SUV could look. The Mercedes GLA concept SUV makes its world premiere on April 20, 2013 at the Shanghai International Automobile Industry Exhibition 2013. In Shanghai, Mercedes-Benz Reporter Torie not only attended the premiere but also had a chance to see the vehicle and speak to experts the evening before. Federal safety regulators are checking reports of fuel leaks in about 250,000 Mercedes Benz cars. US road safety regulators are checking fuel leaks on Mercedes Benz E Class cars after hundreds of complaints from owners of the vehicles. The US National Highway Traffic Safety Administration said it would conduct an... The new 2013 Mercedes-Benz GL is a seven passenger luxury family hauler that’s built in the United States. It is one of Mercedes-Benz most popular models in the US because it combines off-road ruggedness with room for seven passengers. You can also have the new 2013 Mercedes-Benz GL with four... In a new frontier for the ultimate luxury SUV, Mercedes-Benz will build up to 30 copies of a six-wheeled military transport converted into a swank civilian ride, now known as the G63AMG 6×6 Under the hood is the same 5.5-liter V8 as the stock G63AMG, with 536 horsepower and 560 pound-feet of torque. It’s hooked up to Mercedes’ 7G-tronic seven-speed automatic transmission. The G63AMG 6×6 also has plenty of off-road hardware, including low-range gearing and five differential locks that can keep all six wheels turning at the same speed with the push of a button. There’s also a tire pressure control system for the huge 37-inch wheels. The most insane aspect of this behemoth, though, is the fact that it’s not a custom one-off. Mercedes really does plan to put the G63AMG 6×6 into production alongside four-wheeled G-Classes at the Magna Steyr plant in Graz Austria. It will be topped only by the SLS AMG Electric Drive, which has a new official price of $457,000. This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.OKRead More Privacy & Cookies Policy Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience. Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information. Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website. Auto Speed Market is a car blog with the latest automotive, F1 and car news. Auto Speed Market is trying to provide extra information to car enthusiasts, will be presenting new cars and concepts, prices and statistics of the automotive world. Auto Speed Market also offer tips for buying a new car or second hand vehicle.