เพื่อเริ่มพัฒนาด้วย Flutter เราจำเป็นต้องตั้งค่า Environment บนเครื่องคอมพิวเตอร์ ซึ่งรวมถึงการติดตั้งเครื่องมือที่จำเป็นและกำหนดค่าระบบ โดยทำตามขั้นตอนเหล่านี้:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Translates a string to a Thai slug format. | |
* @param {string} inputString - The string to translate. | |
* @returns {string} The translated string. | |
*/ | |
function toThaiSlug(inputString) { | |
// Replace spaces with hyphens | |
let slug = inputString.replace(/\s+/g, '-'); | |
// Translate some characters to Thai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* What went wrong: | |
A problem occurred configuring project ':app'. | |
> Failed to notify project evaluation listener. | |
> javax/xml/bind/annotation/XmlSchema | |
-- | |
If you got error like above that mean "You are using JDK higher than graddle need eg. You install JDK 9 it should be 8" | |
How to fix: | |
1) Remove JDK version 9 by | |
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @licstart The following is the entire license notice for the | |
* JavaScript code in this page | |
* | |
* Copyright 2023 Mozilla Foundation | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
[Solved] CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink
rm -rf /etc/letsencrypt/live/{yourdomain.com}
rm -rf /etc/archive/{yourdomain.com}
rm -rf /etc/renewal/{yourdomain.com}
and
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
for (var i = 0; i <= 5; i++) { | |
show(i); | |
} | |
} | |
void show(int n) { | |
// กำหนด list ของจุดค่าเริ่มต้น | |
print("Step ที่ " + n.toString() + " : "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
db: | |
image: mariadb | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Models\Post; | |
use Illuminate\Http\Request; | |
class PostController extends Controller | |
{ | |
public function apiIndex() |
NewerOlder