Programming for beginners
1,016 FOLLOWERS
Programming Languages ABAP C# Groovy Haskell Java JavaScript Julia Kotlin Prolog Python R Tutorial Esoteric Program...
Programming for beginners
5d 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
Programming for beginners
5d 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
Programming for beginners
5d 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
Programming for beginners
1w 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
Programming for beginners
1w 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
Programming for beginners
1w 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
Programming for beginners
1w 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
Programming for beginners
1w 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
Programming for beginners
1w 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
Programming for beginners
1w 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