PlantUML: emphasizing the text using creole
Programming for beginners
by
19h ago
Following example demonstrate how can we emphasize the text using creole. emphasizeText.txt @startuml scale 1.5 skinparam NoteBackgroundColor Wheat skinparam NoteBorderColor red skinparam NoteBorderThickness 3 skinparam NoteFontColor black skinparam NoteFontName Papyrus skinparam NoteFontSize 12 ' skinparam NoteFontStyle bold skinparam NoteShadowing true skinparam NoteTextAlignment right Client -> LoginServer: Enter user name Client -> LoginServer: Enter password Client -> LoginServer: Submit the form LoginServer -> ADServer: Check the credentials ADServer -> LoginServer: L ..read more
Visit website
PlantUML: customize legend font, color using skinparam command
Programming for beginners
by
19h ago
Following skinparam commands customize legend font, color. skinparam LegendBackgroundColor palegreen skinparam LegendBorderColor aqua skinparam LegendBorderThickness 5 skinparam LegendFontColor red skinparam LegendFontName Papyrus skinparam LegendFontSize 18 skinparam LegendFontStyle italic   legendCustomizationViaSkinparam.txt @startuml skinparam LegendBackgroundColor palegreen skinparam LegendBorderColor aqua skinparam LegendBorderThickness 5 skinparam LegendFontColor red skinparam LegendFontName Papyrus skinparam LegendFontSize 18 skinparam LegendFontStyle italic legend top center ..read more
Visit website
PlantUML: Customize color, font of legend using style tag
Programming for beginners
by
19h ago
Following snippet customize the legend color, font. <style> legend{ FontColor #red FontName Papyrus FontSize 24 FontStyle italic } </style>   legendColorAndFont.txt @startuml <style> legend{ FontColor #red FontName Papyrus FontSize 24 FontStyle italic } </style> legend top center short legend on center end legend Client -> LoginServer: Enter user name Client -> LoginServer: Enter password Client -> LoginServer: Submit the form LoginServer -> ADServer: Check the credentials ADServer -> LoginServer: Logi ..read more
Visit website
Pandas: Compute the sum of values within each group
Programming for beginners
by
2d ago
Using ‘sum’ method of DataFrameGroupBy object, we can compute the sum of values within each group. Example data = { 'Name': ['Krishna', 'Chamu', 'Joel', 'Gopi', 'Sravya', "Raj"], 'Age': [34, 25, 29, 41, 52, 23], 'City': ['Bangalore', 'Chennai', 'Hyderabad', 'Hyderabad', 'Bangalore', 'Chennai'], 'Gender': ['Male', 'Female', 'Male', 'Male', 'Female', 'Male'], 'Weight': [74, 58, 85, 87, 63, 79]} df = pd.DataFrame(data) group_by_city = df.groupby('City') sum_of_age_and_weight_group_by_city = group_by_city[['Age', 'Weight']].sum()   In the above example, I ..read more
Visit website
Pandas: Get the minimum value for each group
Programming for beginners
by
2d ago
Using 'DataFrameGroupBy.max()' method, we can get the maximum value for each group. Example data = { 'Age': [34, 25, 29, 41, 52, 23], 'Name': ['Krishna', 'Chamu', 'Joel', 'Gopi', 'Sravya', "Raj"], 'City': ['Bangalore', 'Chennai', 'Hyderabad', 'Hyderabad', 'Bangalore', 'Chennai'], 'Gender': ['Male', 'Female', 'Male', 'Male', 'Female', 'Male']} df = pd.DataFrame(data) group_by_city = df.groupby('City') min_ele_in_each_group = group_by_city.min() In the example above, I defined a DataFrame df with columns "Age", "Name", "City" and "Gender", grouped the DataFrame by the ..read more
Visit website
Pandas: Get the maximum value for each group
Programming for beginners
by
2d ago
Using 'DataFrameGroupBy.max()' method, we can get the maximum value for each group. Example data = { 'Age': [34, 25, 29, 41, 52, 23], 'Name': ['Krishna', 'Chamu', 'Joel', 'Gopi', 'Sravya', "Raj"], 'City': ['Bangalore', 'Chennai', 'Hyderabad', 'Hyderabad', 'Bangalore', 'Chennai'], 'Gender': ['Male', 'Female', 'Male', 'Male', 'Female', 'Male']} df = pd.DataFrame(data) group_by_city = df.groupby('City') max_ele_in_each_group = group_by_city.max()   In the example above, I defined a DataFrame df with columns "Age", "Name", "City" and "Gender", grouped the DataFrame ..read more
Visit website
Developing RESTful APIs with Java Records and Spring Boot 3
Programming for beginners
by
3d ago
In this blog post, we'll explore the ins and outs of Java records, a feature introduced in Java 14 aimed at simplifying the creation of immutable data classes. We'll cover what records are, provide examples, compare them with traditional classes, address common questions, and explore their usage in Spring applications.   What is a Record Java records are a special kind of class introduced in Java 14. They are designed to be lightweight, immutable data carriers, providing a concise way to declare classes that solely hold data without any additional behaviour. Records are immutable by defau ..read more
Visit website
PlantUML: Add legend to the diagram
Programming for beginners
by
3d ago
‘legend’ and ‘end legend’ keywords are used to put a legend to the diagram. A legend location can be specified using below keywords combination. a.   left b.   right c.    top d.   botto e.   center   legend.txt @startuml legend top center short legend on center end legend Client -> LoginServer: Enter user name Client -> LoginServer: Enter password Client -> LoginServer: Submit the form LoginServer -> ADServer: Check the credentials ADServer -> LoginServer: Login Successful LoginServer -> Client ..read more
Visit website
PlantUML: Customize caption color, font using style tag
Programming for beginners
by
3d ago
captionColorFont.txt @startuml <style> caption { FontColor #red FontName Papyrus FontSize 24 FontStyle italic } </style> caption figure 1 : Login Server Client -> LoginServer: Enter user name Client -> LoginServer: Enter password Client -> LoginServer: Submit the form LoginServer -> ADServer: Check the credentials ADServer -> LoginServer: Login Successful LoginServer -> Client: Login Successful @enduml   Above snippet generate below diagram.     Previous             &n ..read more
Visit website
PlantUML: Add caption under the diagram
Programming for beginners
by
3d ago
Using ‘caption’ keyword, you can add a caption under the diagram. caption.txt @startuml caption figure 1 : Login Server Client -> LoginServer: Enter user name Client -> LoginServer: Enter password Client -> LoginServer: Submit the form LoginServer -> ADServer: Check the credentials ADServer -> LoginServer: Login Successful LoginServer -> Client: Login Successful @enduml   Above snippet generate below diagram.      Previous                     &n ..read more
Visit website

Follow Programming for beginners on FeedSpot

Continue with Google
Continue with Apple
OR