Posts

Showing posts from August 20, 2018

How TO - Smooth Scroll

Image
Clash Royale CLAN TAG #URR8PPP googletag.cmd.push(function() googletag.display('div-gpt-ad-1422003450156-2'); ); How TO - Smooth Scroll ❮ Previous Next ❯ Learn how to create a smooth scrolling effect with CSS. Smooth Scrolling Note: This example does not work in Internet Explorer, Edge or Safari. Section 1 Click on the link to see the "smooth" scrolling effect. Click Me to Smooth Scroll to Section 2 Below Note: Remove the scroll-behavior property to remove smooth scrolling. Section 2 Click Me to Smooth Scroll to Section 1 Above Smooth Scrolling Add scroll-behavior: smooth to the <html> element to enable smooth scrolling for the whole page (note: it is also possible to add it to a specific element/scroll container): Example html   scroll-behavior: smooth; Try it Yourself » Browser Support The numbers in the table specify the first browser version that fully supports the scroll-behavior property. Property scroll-behavior 61.0 Not supporte

Kash Qalman-e Pain

Image
Kash Qalman-e Pain From Wikipedia, the free encyclopedia Jump to navigation Jump to search village in Hormozgan, Iran Kash Qalman-e Pain كشقلمان پائين village Kash Qalman-e Pain Coordinates: 27°01′42″N 56°59′35″E  /  27.02833°N 56.99306°E  / 27.02833; 56.99306 Coordinates: 27°01′42″N 56°59′35″E  /  27.02833°N 56.99306°E  / 27.02833; 56.99306 Country   Iran Province Hormozgan County Minab Bakhsh Central Rural District Band-e Zarak Population (2006)  • Total 232 Time zone IRST (UTC+3:30)  • Summer (DST) IRDT (UTC+4:30) Kash Qalman-e Pain (Persian: كشقلمان پائين ‎, also Romanized as Kash Qalmān-e Pā’īn ) [1] is a village in Band-e Zarak Rural District, in the Central District of Minab County, Hormozgan Province, Iran. At the 2006 census, its population was 232, in 40 families. [2] References [ edit ] ^ Kash Qalman-e Pain can be found at GEOnet Names Server, at this link, by opening the Advanced Search box, entering "-3746754&qu

Plotting readable graph with labels in networkx

Image
Plotting readable graph with labels in networkx I want to plot a graph in networkx with 283 nodes and with labels. I don't know if it's even possible to do so, but i try with the following code: def graph(list_edges,i): plt.figure(dpi=3000) plt.tight_layout() plt.title('Siatka nr '.format(i)) edges=list_edges G=nx.Graph() G.add_edges_from(edges) pos = nx.spring_layout(G) nx.draw(G,pos,edge_color='black',width=1,linewidths=1, node_size=5,node_color='pink',alpha=0.9, #labels=node:node for node in G.nodes(), font_size=3) plt.savefig("plot__tr__.png".format(i), dpi=3000) graph(edges,0) I've tried to play with dpi, but i doesn't help. With commented out labels I get: Is it somehow possible to force better distribution of nodes and add labels on one image and keep readbility? Or maybe there is an option to plot whole image in parts (which would also be helpful in my situation)? 1 Answer 1 Hey I am unsure about how to plot

How TO - Notification Buttons

Image
Clash Royale CLAN TAG #URR8PPP <!-- main_leaderboard, all: [728,90][970,90][320,50][468,60] --> How TO - Notification Buttons ❮ Previous Next ❯ Learn how to create notification buttons with CSS. Inbox 3 How To Create a Notification Button Step 1) Add HTML: Example <a href="#" class="notification">   <span>Inbox</span>   <span class="badge">3</span> </a> Step 2) Add CSS: Example .notification   background-color: #555;   color: white;   text-decoration: none;   padding: 15px 26px;   position: relative;   display: inline-block;   border-radius: 2px; .notification:hover   background: red; .notification .badge   position: absolute;   top: -10px;   right: -10px;   padding: 5px 10px;   border-radius: 50%;   background: red;   color: white; Try it Yourself » Go to our CSS Buttons Tutorial to learn more about how to style buttons. ❮ Previous Next ❯

David Adjaye

Image
Clash Royale CLAN TAG #URR8PPP David Adjaye OBE David Adjaye at CAA Conference, Dhaka, 2013 Born September 1966 (age 51) Dar es Salaam, Tanzania Nationality Ghanaian British Occupation Architect Awards RIBA Bronze Medal for Part 1 Students Buildings Skolkovo Moscow School of Management Rivington Place National Museum of African American History and Culture David Frank Adjaye OBE RA (born September 1966) is a Ghanaian British architect. [1] Adjaye is the lead designer of the National Museum of African American History and Culture, located on the National Mall in Washington, DC. Contents 1 Early life 2 Career 2.1 Early projects 2.2 Firm operations 2.3 National Museum of African American History 2.4 Other commissions 2.5 Recent work 3 Personal life 4 Awards 5 References 6 External links Early life David Adjaye was born in Dar es Salaam, Tanzania. The son of a Ghanaian diplomat, David Adjaye lived in Tanzania, Egypt, Yemen and Lebanon [2] before moving to Britain at the a

Kash Qalman-e Bala

Image
Kash Qalman-e Bala From Wikipedia, the free encyclopedia Jump to navigation Jump to search village in Hormozgan, Iran Kash Qalman-e Bala كشقلمان بالا village Kash Qalman-e Bala Coordinates: 27°02′14″N 56°59′48″E  /  27.03722°N 56.99667°E  / 27.03722; 56.99667 Coordinates: 27°02′14″N 56°59′48″E  /  27.03722°N 56.99667°E  / 27.03722; 56.99667 Country   Iran Province Hormozgan County Minab Bakhsh Central Rural District Band-e Zarak Population (2006)  • Total 460 Time zone IRST (UTC+3:30)  • Summer (DST) IRDT (UTC+4:30) Kash Qalman-e Bala (Persian: كشقلمان بالا ‎, also Romanized as Kash Qalmān-e Bālā ) [1] is a village in Band-e Zarak Rural District, in the Central District of Minab County, Hormozgan Province, Iran. At the 2006 census, its population was 460, in 83 families. [2] References [ edit ] ^ Kash Qalman-e Bala can be found at GEOnet Names Server, at this link, by opening the Advanced Search box, entering "-3746755"

MongoDB - query ObjectId nested array

MongoDB - query ObjectId nested array I have a collection named Product on MongoDB with some documents, here is an example: _id: 'xxxxxx', name: 'cellphone', brands: [ 'aaaaaa', 'bbbbbb' ] The 'brands' key makes reference to another collection named Brand, example: [ _id: 'aaaaaa', name: 'Apple', _deprecatedDate: null , _id: 'bbbbbb', name: 'BlackBerry', _deprecatedDate: '2016-07-13T02:27:17.724Z' ] So, with a Product id, I want to get all it's non-deprecated brands. The only way I found to do that is with the following code: let _product = await Product.findOne( _id: 'xxxxxx' ); return Brand.find( _id: $in: _product.brands , _deprecatedDate: null ); Is there a way to do that with one single query? 1 Answer 1 You can use .aggregate() and $lookup to fetch the data from multiple collections. You can either specify custom pipeline (MongoDB 3.6): .aggregate() pipeline Prod