Regular Expression for Network Engineer Part-1

A regular expression is set of pattern used to define certain amount of text. An powerful  tool in any scripting language to match any pattern.

Lets have a look , how regular expression can be used in Python to solves the problem. Module “re’ is imported in python to support regular expression .

<< import re >>

[  ] – its for specifying character class, individual char or range of character can be mached .

 

  • [123] will match any of the character ‘1’,’2′,’3′
  • [1-3] will match any of the character  ‘1’,’2′,’3′
  • [a-d] will match any of the character a,b,c,d
  • [a-z] will match lowercase
  • [A-Z] will match uppercase
  • [^6] will match any character except 6
  • [a-zA-Z0-9] will match any alphanumeric character
  • [^a-zA-Z0-9] will not match any alphanumeric character
  •  [a-zA-Z0-9] is equivalent to \w
  •  [^a-zA-Z0-9] is equivalent to \W
  • [0-9] is equivalent to \d
  • [^0-9] is equivalent to \D
  • [  \t\n\r\f\v] is equivalent to \s
  • [ ^ \t\n\r\f\v] is equivalent to \S

 

. – Period character ,use for matching any single charcter

  • EXAMPLE :

 

[code language=”python”]

In [225]: ip =’10.20.30.40′
In [226]: re.search(r”.”,ip)
Out[226]:&lt;_sre.SRE_Match object; span=(0, 1), match=’1’_>
In [227]: re.search(r”.”,ip).group(0)
Out[227]: ‘1’

Continue reading

Regular Expression for Network Engineer Part-1

A regular expression is set of pattern used to define certain amount of text. An powerful  tool in any scripting language to match any pattern. Lets have a look , how regular expression can be used in Python to solves the problem. Module “re’ is imported in python to support regular expression . << import […]

Introducing: The Cloudflare All-Stars Fantasy League

Introducing: The Cloudflare All-Stars Fantasy League

Introducing: The Cloudflare All-Stars Fantasy League

Baseball season is well underway, and to celebrate, we're excited to introduce the Cloudflare All-Stars Fantasy League: a group of fictitious sports teams that revolve around some of Cloudflare’s most championed products and services. Their mission? To help build a better Internet.

Cloudflare HQ is located just a block away from the San Francisco Giants Stadium. Each time there's a home game, crowds of people walk past Cloudflare's large 2nd street windows and peer in to the office space. The looks in their eyes scream: "Cloudflare! Teach me about your products while giving me something visually stimulating to look at!"

They asked. We listened.

The design team saw a creative opportunity, seized it, and hit it out of the park. Inspired by the highly stylized sports badges and emblems of some real-life sports teams, we applied this visual style to our own team badges. We had a lot of fun coming up with the team names, as well as figuring out which visuals to use for each.

Introducing: The Cloudflare All-Stars Fantasy League

For the next few months, the Cloudflare All-Stars teams will be showcased within the large Cloudflare HQ windows facing 2nd street and en route to Giants Stadium. Feel free to Continue reading

Weather Forecasting Gets A Big Lift In Japan

It has been a long time since the Japan Meteorological Agency has deployed the kind of supercomputing oomph for weather forecasting that the island nation would seem to need to improve its forecasts. But JMA, like its peers in the United States, Europe, and India, is investing heavily in new supercomputers to get caught up, and specifically, has just done a deal with Cray to get a pair of XC50 systems that will have 18.2 petaflops of aggregate performance.

This is a lot more compute capacity than JMA has had available to do generic weather forecasting as well as do

Weather Forecasting Gets A Big Lift In Japan was written by Timothy Prickett Morgan at The Next Platform.

The Network Collective: State of the Podcast

In this edition of the Network Collective, Eyvonne, Jordan, and I talk about where the ‘cast has been, and share some thoughts on where it is going. While we like technology as much as anyone else, the NC is really all about community.

In particular, we discuss the upcoming subscription service. We have a lot of new, exciting, material being recorded around the skills needed to be a better engineer exclusively for the subscription service. For instance, we’ve started a series on communication that does not take the standard line, but looks at how to communicate from the perspective of our experience in living on every possible side of the network engineering world, and developing and delivering every possible kind of content. And we have our first Q&A guest lined up, as well as a lot of fantastic material from Rachel Traylor already being recorded. This is going to be fantastic material, designed to push your career forward in a way that includes technology, but goes beyond technical skills, as well.

Plan Your DockerCon 2018 Conference Experience: Everything an Enterprise Architect Needs to Know

DockerConSan Francisco 2018 is just around the corner and we’re here to help Enterprise Architects learn what Docker can do for them. DockerCon isn’t just for developers and we want to help you find the sessions and experiences that we’ve created that are developed with this role in mind:

In 2015, I attended DockerCon for the first time. I was sitting in a chair and listening to the amazing stories and ideas presented by speakers at the conference, which set off a chain of events that led to today. I feel privileged, and am really looking forward to being on stage and sharing our transformational journey to inspire the people who would sit in that chair. 
Alex Iankoulski, Principal Software Architect, Baker Hughes GE

The first thing to notice is that as you build your DockerCon agenda this year, we have a “Journey” theme that will help guide you during the conference. Whether you’re just “Getting Started” in your learning about containerization or you want to hear about “Innovation” using the Docker container platform for data sciences, AI, machine learning, and IoT, we have sessions that will be just right for you.

You can will also find content we’ve Continue reading

SSDs get bigger, while prices get smaller

With so much going on in the enterprise storage world, two bits of good news have come out — and it’s only Tuesday. Capacity is going up, and prices are coming down.According to the report from DRAMeXchange, the enterprise SSD market has been growing fast. It projects enterprise SSD sales to top 30 million units this year, up from fewer than 20 million units in 2016, and that rate of growth is expected to continue in the next three years.That’s despite tight supply for memory chips in the first quarter resulting in high average selling prices. For the second quarter, which we are in the midst of, DRAMeXchange expects a rebound in demand due to increased supply.To read this article in full, please click here

IDG Contributor Network: Build your technology layers on a cloud data foundation

The modern enterprise is comprised of a complex set of application stacks that span a disparate variety of virtual machines, physical servers, and proprietary storage hardware. Tentacles reach from headquarters, branch and remote offices, and offshore facilities around the world to technology stacks, SaaS providers and a multitude of applications.Over the years layer after layer of technology has accumulated, but rather than replace what came before, we simply built on top through a long series of incremental decisions and implementations. For many, mainframes were bolstered by a client-server layer that moved into data centers. Web technology added SaaS beyond our data centers before virtualization and server consolidation reorganized everything into more manageable chunks.To read this article in full, please click here

US Senate Makes Moves to Reinstate Net Neutrality, But Sustainable Rules Are Still Necessary

On May 16, the Senate passed a Congressional Review Act (CRA) to overturn the Federal Communication Commission’s (FCC) repeal of the 2015 Open Internet Order. A CRA allows Congress to review regulations issued by government agencies and overrule them with a majority vote. This vote, led by Senator Ed Markey (D-MA), is a step towards reinstating the FCC’s 2015 net neutrality rules.

The CRA will now move to the House, where it will require a majority vote in order to pass before heading to President Trump’s desk for his signature. If the CRA passes the House and gets the President’s signature, the 2015 Order will be reinstated.

Despite the CRA’s success in the Senate, it is unlikely that it will pass the House. In the Senate, every Democrat, two Independents, and three Republicans were needed to pass the CRA. In the House, Democrats hold just 193 of 435 seats and would need to be joined by 25 Republican or Independent Representatives to move the CRA to the President’s desk. Even then, the bill would face another major hurdle, as President Trump has previously expressed support for overturning the FCC’s Open Internet Order.

This is not to mention the court cases Continue reading