Akama Aka
Akama Aka
Explore posts from servers
CC#
Created by Akama Aka on 10/1/2024 in #help
No secure hashing method?
Hello, I got an assignment from school to save plain text passwords as a encrypted password in C#. I have looked at the following pages: https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/consumer-apis/password-hashing?view=aspnetcore-8.0 https://andrewlock.net/exploring-the-asp-net-core-identity-passwordhasher/ And I'm rn so fuqing impressed what a piece of shiq language C# is. Is there fr no by default implemented method to securely hash Passwords?
84 replies
CC#
Created by Akama Aka on 2/19/2024 in #help
Windows Worker Service times out
Hello. Everytime I want to start my Worker Service I get the message that it doesnt reacted in time and I dont know why I get this error. because everytime I run the exe noremally the whole thing works. Program.cs
using My_Service;

HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHostedService<Worker>();
IHost host = builder.Build();
await host.RunAsync();
using My_Service;

HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHostedService<Worker>();
IHost host = builder.Build();
await host.RunAsync();
Worker.cs
using System.Net.Mime;

namespace My_Service;


public class Worker : BackgroundService
{
private readonly ILogger<Worker> _logger;

public Worker(ILogger<Worker> logger)
{
_logger = logger;
}



protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{

while (!stoppingToken.IsCancellationRequested)
{
_logger.LogInformation("My Service running at: {time}", DateTimeOffset.Now);
try
{
myServiceCode.systemcode();
_logger.LogInformation("Started Service Service Code");
//await Task.Delay(1_000, stoppingToken);
}
catch (Exception e)
{
_logger.LogError("Error in Service Code: {e}", e);
}
await Task.Delay(60000, stoppingToken);
}
}
}
using System.Net.Mime;

namespace My_Service;


public class Worker : BackgroundService
{
private readonly ILogger<Worker> _logger;

public Worker(ILogger<Worker> logger)
{
_logger = logger;
}



protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{

while (!stoppingToken.IsCancellationRequested)
{
_logger.LogInformation("My Service running at: {time}", DateTimeOffset.Now);
try
{
myServiceCode.systemcode();
_logger.LogInformation("Started Service Service Code");
//await Task.Delay(1_000, stoppingToken);
}
catch (Exception e)
{
_logger.LogError("Error in Service Code: {e}", e);
}
await Task.Delay(60000, stoppingToken);
}
}
}
144 replies
CDCloudflare Developers
Created by Akama Aka on 2/14/2024 in #general-help
Remove Account Access from Account
Hello, I got access once from someone who wanted that I help him on Cloudflare. And now I want to remove it but he doesnt answere anymore. Do I need then to contact the Cloudflare Support to remove the Account form this person from my Account or how?
7 replies
CDCloudflare Developers
Created by Akama Aka on 2/11/2024 in #general-help
More detailed Question about Cloudflare Image / Video Copyright
I would like to know if it would make a difference how Cloudflare takes action against my account in case of a copyright claim on images, videos or sounds. Is the probability higher that the account will be blocked after a while if you host the images etc. yourself, and if you host it with Cloudflare Images or something like that, is the probability lower?
5 replies
CDCloudflare Developers
Created by Akama Aka on 2/4/2024 in #general-help
Difference between Tunneling Cloudflared and Warp
I've a question. I want to use Cloudflare Tunnels again but now I'm wondering which is better for my use case. I want to Host my Websites by using CF Tunnels and I want to know if Tunnels Warp is just for these people who are in my Warp Network too or if this is also public. Whats really the difference between these two?
2 replies
CDCloudflare Developers
Created by Akama Aka on 1/29/2024 in #general-help
Possibility to delete Inactive Users from Team Users Tab
Hello I want to know how it is possible to delete the Inactive Members from https://one.dash.cloudflare.com/:dashid/team/users?search= Because I have revoked a lot Team Members.
7 replies
CDCloudflare Developers
Created by Akama Aka on 1/19/2024 in #general-help
Cloudflare automatic Domain management / changes
Hello, I have often seen that if you have a third party website such as Google Workspace that if you have your domain on Cloudflare and changes to the DNS records or domain settings have to be made that you then simply click on a button on the Google page where a window appears where you give Google the authorization to automatically add these records to the domain and other things. Is there any documentation on this and is this something that is only available for Enterprise / Business customers?
4 replies
CDCloudflare Developers
Created by Akama Aka on 1/17/2024 in #general-help
Cloudflare Brand Protection Subscription
Hello I've recently found out that Cloudflare have a Brand Protection feature. In the Developer Documentation I can't find the Feature in the Security Center is it a Enterprise or Business thing? Yes or?
2 replies
CDCloudflare Developers
Created by Akama Aka on 1/13/2024 in #general-help
Cloudflare Proxy SSL Full Strict and GitHub Pages
Hello, I've setup rn a GitHub Pages repo and I forgot to turn off Proxy. Its not turned off and after ~10 Minutes waiting I still get Certificate Issues even I disabled auto https rewrite. Can somebody tell me if this will be fixed after a while or is it really a me issue https://docs.siwft.org/
2 replies
CC#
Created by Akama Aka on 12/7/2023 in #help
Update DataGridView in Winforms doesnt work
No description
4 replies
CC#
Created by Akama Aka on 12/6/2023 in #help
Incorrect syntax near '@address_id'
Hello, I'm currently working on a School project and I want to insert something into the Database but I get everytime a error that says that a incorrect syntax was given that doesnt really makes any sense for me. Code:
SqlConnection con = new SqlConnection("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\....\\Database.mdf;Integrated Security=True;Connect Timeout=30");
con.Open();
SqlCommand insertPatient = new SqlCommand("INSERT INTO patients (phone, firstname, lastname, address_ID) VALUES (@phoneNumb, @firstname, @lastname, @address_ID", con);
insertPatient.Parameters.AddWithValue("@phoneNumb", this.phoneTextBox.Text);
insertPatient.Parameters.AddWithValue("@firstname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@lastname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@address_ID", this.comboBox1.SelectedIndex.ToString());
Console.WriteLine(this.comboBox1.SelectedIndex);
int i = insertPatient.ExecuteNonQuery();

con.Close(); SqlConnection con = new SqlConnection("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\...Database.mdf;Integrated Security=True;Connect Timeout=30");
con.Open();
SqlCommand insertPatient = new SqlCommand("INSERT INTO patients (phone, firstname, lastname, address_ID) VALUES (@phoneNumb, @firstname, @lastname, @address_ID", con);
insertPatient.Parameters.AddWithValue("@phoneNumb", this.phoneTextBox.Text);
insertPatient.Parameters.AddWithValue("@firstname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@lastname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@address_ID", this.comboBox1.SelectedIndex.ToString());
Console.WriteLine(this.comboBox1.SelectedIndex);
int i = insertPatient.ExecuteNonQuery();

con.Close();
SqlConnection con = new SqlConnection("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\....\\Database.mdf;Integrated Security=True;Connect Timeout=30");
con.Open();
SqlCommand insertPatient = new SqlCommand("INSERT INTO patients (phone, firstname, lastname, address_ID) VALUES (@phoneNumb, @firstname, @lastname, @address_ID", con);
insertPatient.Parameters.AddWithValue("@phoneNumb", this.phoneTextBox.Text);
insertPatient.Parameters.AddWithValue("@firstname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@lastname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@address_ID", this.comboBox1.SelectedIndex.ToString());
Console.WriteLine(this.comboBox1.SelectedIndex);
int i = insertPatient.ExecuteNonQuery();

con.Close(); SqlConnection con = new SqlConnection("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\...Database.mdf;Integrated Security=True;Connect Timeout=30");
con.Open();
SqlCommand insertPatient = new SqlCommand("INSERT INTO patients (phone, firstname, lastname, address_ID) VALUES (@phoneNumb, @firstname, @lastname, @address_ID", con);
insertPatient.Parameters.AddWithValue("@phoneNumb", this.phoneTextBox.Text);
insertPatient.Parameters.AddWithValue("@firstname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@lastname", this.firstNameBox.Text);
insertPatient.Parameters.AddWithValue("@address_ID", this.comboBox1.SelectedIndex.ToString());
Console.WriteLine(this.comboBox1.SelectedIndex);
int i = insertPatient.ExecuteNonQuery();

con.Close();
11 replies
CC#
Created by Akama Aka on 11/25/2023 in #help
Beginners cross platform UI Framework with Rider
Hello, I want to develop a cross platform Chat Software in C# to improve my C# experience for school and the state exam. Now I dont know what UI Framework and Template is good to start into because the Windows Form things are not compatble with Linux etc and yea. I also use Linux to develop all my projects and yea I've already tried GTK# but I get the whole time errors if I want to start the program and the documentation is like theres not really one
19 replies
CDCloudflare Developers
Created by Akama Aka on 10/4/2023 in #general-help
How to use Cloudflare Fonts
Hello, i've read this blog post but I still dont really understand how to setup or even not understand where to setup it.
5 replies
CDCloudflare Developers
Created by Akama Aka on 9/16/2023 in #general-help
Implementation of Cloudflare Web SSH into another Website
Hello, I want to know if it is possible to implement the Cloudflare Web SSH into a Website Panel with read and write access. Is this possible with a iframe or does Cloudflare block such things?
9 replies
CDCloudflare Developers
Created by Akama Aka on 9/4/2023 in #general-help
Save and Test Button disabled
6 replies
CC#
Created by Akama Aka on 8/30/2023 in #help
❔ Manifest file for Windows Service & winget Integration
Hello, I have a Windows Service project and want to implement winget versioning but I'm very new in this whole language and in the real programming so I dont really know things like that. Does someone know how I can create a good manifest file with all Settings I need and what is recommended with some instructions for what this is? Thanks for the help 9557kannalove I use Rider and Visual Studio so prob. a Visual Studio and Rider Version
28 replies
CDCloudflare Developers
Created by Akama Aka on 7/11/2023 in #general-help
Cloudflare and NGINX Proxy forwarding
nginx configuration
20 replies
CDCloudflare Developers
Created by Akama Aka on 7/5/2023 in #general-help
Cloudflared is changing everytime the route
1 replies
CDCloudflare Developers
Created by Akama Aka on 7/5/2023 in #general-help
Cloudflare Security Zone Activity Log DateTime format?
3 replies
CDCloudflare Developers
Created by Akama Aka on 6/24/2023 in #general-help
Active Directory Access via Cloudflare WARP
Hello I would know if it is possible to connect to a active Directory Server via the Cloudflare Warp Zero Trust because I tried it just so and it doesnt worked are there some settings or so I have to change to get access?
1 replies