Borussia Dortmund Youth Academy: A Legacy of Excellence
The Borussia Dortmund youth academy stands as one of Germany’s most prestigious institutions for nurturing football talent. Renowned for its rigorous training programs and emphasis on holistic development, Dortmund consistently produces players who excel at both national and international levels. Key figures like Jürgen Klopp have played instrumental roles in shaping this legacy by instilling discipline and tactical awareness among young athletes.
- Finn Dahmen - Goalkeeper
Elmahdim/elmahdim.github.io<|file_sep|>/_posts/2018-05-01-how-to-deploy-jekyll-blog-to-github-pages.md --- layout: post title: How To Deploy Jekyll Blog To Github Pages tags: [Jekyll] --- ### Step One: Create A New Github Repository The first thing you need is create a new repository named `.github.io` where ` ` should be replaced with your github username. ### Step Two: Install Jekyll You can easily install jekyll using ruby gem gem install jekyll bundler ### Step Three: Create New Blog Locally Run this command jekyll new myblog Then go inside your blog directory cd myblog ### Step Four: Edit `_config.yml` File The file `_config.yml` contains all configuration setting needed by jekyll blog. You need edit this file according your needs. ### Step Five: Build Your Blog Locally Build your blog locally using following command: jekyll serve --watch Now you can see your blog at `http://localhost:4000` ### Step Six: Deploy Your Blog To Github Pages Before deploying your blog you should add your remote repository. git remote add origin https://github.com/ / .github.io.git Then push your changes. git push -u origin master Your blog should be live at `https:// .github.io`<|file_sep|># elmahdim.github.io This repo contains my personal website using jekyll. <|repo_name|>Elmahdim/elmahdim.github.io<|file_sep|>/_posts/2018-05-06-how-to-enable-file-upload-in-web-api.md --- layout: post title: How To Enable File Upload In Web Api tags: [Web Api] --- In this post I am going to show you how you can enable file upload feature in Web API. ## Step One Add following line inside `WebApiConfig.cs` file which located at `App_Start` folder. csharp config.Formatters.Add(new FileUploadMediaTypeFormatter()); ## Step Two Create `FileUploadMediaTypeFormatter` class inside `MediaTypeFormatter` folder which doesn't exist so you should create it. csharp public class FileUploadMediaTypeFormatter : MediaTypeFormatter { public FileUploadMediaTypeFormatter() { SupportedMediaTypes.Add(new MediaTypeHeaderValue("multipart/form-data")); } public override bool CanReadType(Type type) { return false; } public override bool CanWriteType(Type type) { return true; } public override async Task WriteToStreamAsync(Type type, object value, Stream writeStream, HttpContent content, ITransportContext transportContext) { MemoryStream ms = new MemoryStream(); await content.CopyToAsync(ms); await ms.WriteToStreamAsync(type, value, writeStream, content, transportContext); } } ## Step Three Create `WriteToStreamAsync` method inside `FileUploadMediaTypeFormatter` class which will handle file upload. csharp private async Task WriteToStreamAsync(Type type, object value, Stream writeStream, HttpContent content, ITransportContext transportContext) { MemoryStream ms = new MemoryStream(); await content.CopyToAsync(ms); using (var reader = new BinaryReader(ms)) { var buffer = reader.ReadBytes((int)ms.Length); await writeStream.WriteAsync(buffer.AsMemory(), default(CancellationToken)); } } ## Step Four Create Web API controller named `FileController`. csharp public class FileController : ApiController { private readonly IFileService _fileService; public FileController(IFileService fileService) { this._fileService = fileService; } [HttpPost] public async Task UploadFile() { if (!Request.Content.IsMimeMultipartContent()) { return BadRequest(); } var provider = new MultipartMemoryStreamProvider(); await Request.Content.ReadAsMultipartAsync(provider); foreach (var file in provider.Contents) { var filename = file.Headers.ContentDisposition.FileName.Trim('"'); using (var stream = await file.ReadAsStreamAsync()) { var result = await _fileService.UploadFile(filename, stream); if (!result.Success) return BadRequest(); } return Ok(result.FilePath); } return BadRequest(); } } In above code we are using `IFileService` interface which defined below: csharp public interface IFileService { Task > UploadFile(string fileName, MemoryStream memoryStream); } The implementation looks like below: csharp public class FileService : IFileService { private readonly string _uploadFolderPath; public FileService(string uploadFolderPath) { this._uploadFolderPath = uploadFolderPath; if (!Directory.Exists(_uploadFolderPath)) throw new DirectoryNotFoundException( string.Format("The folder '{0}' does not exist", this._uploadFolderPath)); } public async Task > UploadFile(string fileName, MemoryStream memoryStream) { string filePath = Path.Combine(this._uploadFolderPath, fileName); try { using (var file = new FileStream(filePath, FileMode.CreateNew)) { await memoryStream.WriteToAsync(file); memoryStream.Close(); file.Close(); return new FileResultModel (filePath); } return new FileResultModel (""); } catch (Exception ex) { return new FileResultModel (ex.Message); throw ex; } } <|repo_name|>Elmahdim/elmahdim.github.io<|file_sep|>/_posts/2018-05-08-how-to-add-some-css-style-to-your-markdown.md --- layout: post title: How To Add Some CSS Style To Your Markdown? tags: [Markdown] --- By default markdown doesn't support any css style but we can use html tags with css classes inside markdown files. For example if you want add some style to text you can use html tags like below: Some Text Here! Some Text Here! Some Text Here! Some Text Here! Some Text Here! Some Text Here! Some Text