Mofei LogoBig Data & Python

How to Install GraphFrames for PySpark - Complete Guide

Interested in graph analysis with PySpark and GraphFrames? This guide will help you set up and analyze a simple social network using GraphFrames. We'll go through initializing Spark, defining graph components, and running basic analyses like triangle counting. It's straightforward and practical—perfect for getting a quick start!

Apr 12, 2024 2:44 PM
184
Mofei LogoOthers

Sailing for Finland - after 15 years away from home

On the eve of my flight to Finland, I sit in this quiet moment, attempting to articulate the swirling emotions and the paradoxical calm within me. Perhaps it's the nearing of a goal set decades ago that stirs an indescribable excitement in my heart, creating ripples across my being, making everything feel so surreal, yet here I am, outwardly serene.

Aug 21, 2023 12:36 AM
970
Mofei LogoFront-end

Magic CSS property: box-decoration-break

How to prevent the rounded corners and background color of highlighted text from breaking when wrapping? This can be solved by using the box-decoration-break: clone; property. This property allows the background, border, and padding of a split box model to be cloned to each split part, thus ensuring consistency of style.

May 10, 2023 10:25 PM
1252
Mofei LogoFront-end

CSS position: sticky

This article currently has no summary

May 1, 2023 6:07 PM
1496
Mofei LogoOthers

Be a shepherd and look for the white reindeer in the forest - a 5-day tour of Hulunbuir

Before this, the northernmost place I have been to in China is Kanas, Xinjiang. After this, my northernmost refresh to Moerdaoga, and the vertical distance from the northernmost point of China is only more than 200 kilometers. In the early autumn of 2022, we flew over about 2,500 kilometers from Shanghai via Beijing and came to the best grassland in the world Hulunbuir grassland

Sep 27, 2022 6:38 PM
2931
Mofei LogoOthers

The missing Shanghai Stunt City Park

Visited the site of the once-popular Shanghai Stunt City amusement park on Changxing Island, now mostly demolished and forgotten. Only remnants and statues remain of this 1990s park, hinting at its past glory. A quick detour for those nearby, but perhaps not worth a special trip.

Aug 29, 2022 6:33 PM
2176
Mofei LogoFront-end

Notes of CSS Variable Secrets - CSS Day 2022

I accidentally watched the video about CSS Variable introduced by Lea Verou on CSS Day 2022, and I have to feel that CSS has almost become something I do

Aug 23, 2022 8:14 AM
4378
Mofei LogoOthers

An unplanned trip to Liyang

I went to Liyang with my family in early August. Originally planned to go to Changsha, but the nucleic acid report on hand had just passed 48 hours, and the latest test 7 hours ago had not yet come out with results, and China Southern Airlines refused to board the plane...

Aug 15, 2022 11:38 PM
2911
Mofei LogoJavaScript

JS API Intersection Observer and lazy loading

Mapbox recently released Global View, which can run smoothly and smoothly on both Web and Mobile. So I changed the map on my blog. Since this map is not on the first screen on my blog, I decided to lazy load it, and found this very useful API

Jul 14, 2022 12:40 AM
4499
Mofei LogoOthers

Force Docker to use AMD64 in Apple Silicon ( Apple M1 ) chips

Using Docker images built on Apple M1 chips (or other ARM64 builds) on Linux or Window AMD64 machines (AWS EC2, ECS, AliCloud Functional Computing, etc.) can cause some problems. Therefore, in order to deploy images built on Apple chips on the above platforms, we need to specify images built on AMD64 architecture.

Apr 14, 2022 10:38 AM
2269
Mofei LogoOthers

Alibaba Cloud Function Custom Container Timeout - Macbook M1 Chip

I have nothing to do over the weekend, I want to toss my AliCloud function computing from a custom runtime environment to migrate to a custom container, the results of the deployment and found that it can not be accessed, and returned a timeout error, a variety of tawdry operations found after the two solutions

Feb 14, 2022 5:26 PM
2590
Mofei LogoJavaScript

Why is it better not to use the index of the array as the key in React?

When you're writing or reading someone else's React code that renders a list, it's easy to see the use of index as a Key, which looks good and avoids React's Key Warning; however, doing so is one of the most common React mistakes, or at least it's dangerous

Apr 15, 2021 6:52 PM
4416
HI, THERE!I AM MOFEI

(C) 2010-2024 Code & Design by Mofei

Powered by Dufing (2010-2020) & Express

IPC证:沪ICP备2022019571号-1