วันพฤหัสบดีที่ 9 มีนาคม พ.ศ. 2566

How to solve an error "Location Is Not Available in Windows Server/Windows".

 How to solve an error "Location Is Not Available in Windows Server/Windows".

Location Is Not Available

C:\Users\User\Documents is unavailable. if the location is on this PC, make sure the device or drive is connected or the disc is inserted, and then try again. If he location is on a network, make sure you’re connected to the network or Internet, and then try again. If the location still can’t be found, it might have been moved or deleted.


Last week, my customer asked me about an error "Location Is Not Available" when click in folder "Download".

I found the way to resolve this errors in website in quickly step, please follow:

Step 1: Click Right in Folder -> Proproties


Step 2: Go to "Locations" tab and Click "Restore Default".



Summary: "Restore Default" is quickly step to solve "Location Is Not Available".


วันจันทร์ที่ 10 มกราคม พ.ศ. 2565

[Oracle] SQL DEV : Data is not compatible with column definition or is not available for a not nullable column

 [Oracle] SQL DEV 
How to solve
"Data is not compatible with column definition or is not available for a not nullable column"

SQL DEV

         "Data is not compatible with column definition or is not available for a not nullable column" is a commom error when you import data(.csv, .xlxs, .xls etc.) in [Oracle]SQL Dev.

        How to solve this error is extremately easy!!!!
        
        First, Look at "Format" in Tab "Column Definition". 

        You need to change Format from DD MON RRRR to DD MON RRRR hh24:mi:ss.

        You can copy DD MON RRRR -> DD MON RRRR hh24:mi:ss  and paste to Format.



       Finally, Import comitted and Task successfully.





วันอาทิตย์ที่ 10 ตุลาคม พ.ศ. 2564

[DJANGO] Web Dev - How to solve "csrf verification failed. request aborted."

 [DJANGO] Web Development  
How to solve "csrf verification failed. request aborted."

csrf verification failed

For past 5 week(1 September 2021), I come back to learn Python Django Web Development for Beginner by Uncle Engineer in Thailand.

I learned about Creating Form and insert to Database(SQL Lite). But when I inserted info in Textbox and click Submit info. I saw errors "Forbidden (403) - CSRF verification failed. request aborted".

         The way to solve this Errors that is easy.
        

        First, Go to HTML tag Form.
        Next, Insert "
{% csrf_token %}" below  HTML tag Form.
        Finally, Save and Refresh website again. Clear!!!
        

csrf verification failed

วันศุกร์ที่ 19 พฤษภาคม พ.ศ. 2560

The way to protect 'Wanna Decryptor' Malware | ป้องกัน Wannacry มัลแวร์ก่อนจะสาย ...

The way to protect 'Wanna Decryptor' Malware | ป้องกัน Wannacry มัลแวร์ก่อนจะสาย ...


  • Disable SMB 1.0/cifs file sharing support

1. Go to "Server Manager" -> Dashboard's Tab -> Manage -> "Remove Roles and Features "

2. Look at "Remove Roles and Features Wizards's pop-up".
    Next, Clicks Features's Tab -> Disable "SMB 1.0/CIFS File Sharing Support" (Untick) and clicks Next.


3. Confirm removal selections  -> Ticks "Restart the destination server automatically if required". Then "Next >"  button is enabled and Clicks Next. 
For this step you must restart server to update Features.


4. Ultimately, when you restart the server successfully , Removal progress is shown results and then  clicks "close".




  • Update patch windows server
          Nowadays, that is the important solution to protect all of Malwares (WaanCry) in your computer server. There are a lot of patches is improved to fix bugs on Windows server.

1. Download Security Update for Microsoft Windows SMB Server (4013389). Follow link :  https://technet.microsoft.com/en-us/library/security/ms17-010.aspx
2. Create folder Temp in C:\Temp or others folder's name. Next, copy Patch file(Microsoft Update Standalone Package (.msu) ) into folder Temp.  


3. You need to extract the  Microsoft Update Standalone Package (.msu) file to .cap file.
   Next, create folder "kb4012213" (C:\Temp\kb4012213)  to put extracting file.
   Next, open command line -> Typing : cd c:\  
   Typing : Expand -F:* c:\Tempp\windows8.1-kb4012213- x64_5b24b9ca5a123a844ed793e0f2be974148520349.msu C:\Tempp\kb4012213
   Next, Look at folder kb4012213. Extracting file (.cab) is shown in folder.
  Next, run .cab file with DISM installation.
  Typing : dism.exe /Online /Add-Package /PackagePath:C:\Tempp\kb4012213\Windows8.1-KB4012213-x64.cab
   

4. Check  update patch in Control Panel\Programs\Programs and Features -> Views Installed Updates.

วันพุธที่ 27 เมษายน พ.ศ. 2559

Vmware : Installation Windows Server 2012 R2 in Vmware workstation

Vmware : Installation Windows Server 2012 R2 in Vmware workstation

Step 1 : Open Vmware Workstation program > File -> New Virtual Machine...(Ctrl+N).
 Next, Program shows Welcome's window before install. I always choose  "Typical (recommended)"  that is easy step to install all of OS when you want to install.Then click "Next".

Step 2 : Program show  Guest Operating System Install's window -> Look at "Install Form :" and choose Installer disc image file(.iso) -> Click "Browse.." to choose ISO Image(.iso) file and click "Next".


Step 3 :    Program show Easy Install Information's window. 
There are 3 menus : Windows product key , Version of Windows to install , Personalize Windows.
First of all, Type Window's key into Windows product key's Textbox.
Next, Choose version of Windows to install. For this example , I recommend to choose "Windows server 2012 R2 Standard" because It has GUI and comfortable to manage server.
Next, Type Full name , password , confirm into Textboxes. 
Then, Click "Next".



Step 5 :    Program show Name the Virtual Machine's window.
There are two textboxes  for input name and path destination of virtual machine  : Virtual machine name , Location.
  


Step 4 : Program show Specify Disk Capacity's window.
For this step, Installers must calculate storage of Harddisk.  Don't worry! for calculate storage of Harddisk because Vmware program is brilliant tools. Program can calculate approximate storage for Harddisk and Installers can config comfortable storage. This step I always use "Split virtual disk mutiple files"  


Step 5 : Program show Ready to Create Virtual Machine's window.
This step, show description of virtual machine. For example : Location,Version, Operating System,Hard disk,Memory,Network Adapter,Other Devices. Moreover,installers can customize hardware such as Memory,Processors,CD/DVD,Network Adapter,USB Controller,Sound Card,Printer and Display.


Step 6 : This step installers who want to enable Removable Devices click "OK"


Step 7 :  Virtual machine was installing.





วันจันทร์ที่ 11 เมษายน พ.ศ. 2559

Vmware Issue : Error message of "The virtual machine appears to be in use".

Vmware Issue : Error message of
"The virtual machine appears to be in use"

I usually use Vmware to create OS virtual Machine  for my jobs every weeks. 
Unfortunately!  I found  error message of  "The virtual machine appears to be in use"
 when I  ran my OS virtual Machine.  That is exactly excited to find the way to solve it. 
Don't  worry !! I have the easier way to solve. Follow me!!

First of all , go to the path of Virtual Machine at Virtual Machine Details in bottom bar menu.
Next, look at file (.lck) in the path and delete to  Recycle Bin.  

Ultimately , run  OS virtual Machine again.

วันพฤหัสบดีที่ 7 เมษายน พ.ศ. 2559

Photoshop : Curves Adjustment (แต่งภาพให้ดูคมเข้มแบบ STRONG! )

Photoshop : Curves  Adjustment (แต่งภาพให้ดู STRONG )



สวัสดีค่ะ วันนี้วันดีดวงอาทิตย์ตั้งฉากบนศรีษะเรา 07/04/2016
วันนี้เราจะนำเสนอวิธีการปรับรูปแสงรูปภาพให้ดู Strong!! Stronger!!
จริงๆ ทุกครั้งที่ถ่ายภาพแบบมือกากๆอย่างเรา บางทีตั้งค่า f ไว้เยอะไปค่ะ ส่วนตัวชอบให้คนในภาพขาวไง แต่แกคือเขาขาวไปค่ะ!!! เลยมีวิธีการแก้ปัญหาง่ายๆด้วย Photoshop โดย Curves tool ค่ะ ปล.เราเคยใช้วิธีการนี้ในการนำภาพจากมือถือหรือกล้องดิจิตอลธรรมดามาแต่งให้ได้ภาพคมเข้มแบบกล้อง DSLR ด้วยน่ะ 

1. เปิดภาพมา ถ้าไม่เปิดภาพมาจะปรับแสงได้ไงล่ะ (File->Open..) เลือกรูปมาเลยค่ะ

2. Image -> Adjustments -> Auto Levels (Shift+Ctrl+L)
    Image -> Adjustments -> Auto Contrast (Alt+Shift+Ctrl+L)
   สองขั้นตอนนี้เราจะปรับแสงก่อนค่ะ

3. Image -> Adjustments -> Curves (Ctrl+M)  
   จะปรากฎหน้าต่าง Curves ตามภาพเลยค่ะ ทีนี้ได้กราฟมาเราจะปรับยังไง เราต้อง plot กราฟเพื่อหา x,y ไหม? ก็คงไม่ถึงขนาดนั้นค่ะ เราทิ่งวิชานี้ไปตอนเรียน linear algebra แล้ว ถ้าต้องการให้แสงเข้มเราจะปรับส่วนเส้นข้างล่างของกราฟ แต่!!! สำหรับท่านที่ชอบภาพสีเพี้ยนๆแบบกล้องโลโม่ เราก็จะ Curves ให้เป็นรูปตัว (S) ไปตามเส้นตรงกลางกราฟเลยค่ะ   สีของภาพก็จะเข้มมาตามที่เราปรับ

4. เพื่อความคมเข้มแบบ strong ตาม topic เราจะใช้ tool Brightness/Contrast ปรับให้สีเข้มเด่นขึ้นอีกนิด ก็ไปที่  Image -> Adjustments -> Brightness/Contrast  ปรับค่าตามชอบเลยค่ะ 

5. เสร็จแล้ว หาาาาา!! เสร็จแล้วหรอแก เสร็จแล้วค่ะ Ctrl+s : saveงาน ไปเลยค่ะ ด้านล่างคือความแตกต่าง เราชอบใช้ tools Curves ค่ะ ทั้ง Photoshop และ Light room คือใช้สะดวกและง่ายมากๆ