Tuesday, December 26, 2023

How to Install Torch With Cuda in GPU Windows

How to install Torch With Cuda in GPU Windows

To know previous version of pytorch = https://pytorch.org/get-started/previous-versions/ 

(jupyter) F:\PYTHON\jupyter>pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu121

Looking in indexes: https://download.pytorch.org/whl/cu121

Collecting torch==2.1.1

  Downloading https://download.pytorch.org/whl/cu121/torch-2.1.1%2Bcu121-cp311-cp311-win_amd64.whl (2473.9 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 GB 1.2 MB/s eta 0:00:00

Collecting torchvision==0.16.1

  Downloading https://download.pytorch.org/whl/cu121/torchvision-0.16.1%2Bcu121-cp311-cp311-win_amd64.whl (5.6 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 2.4 MB/s eta 0:00:00

Collecting torchaudio==2.1.1

  Downloading https://download.pytorch.org/whl/cu121/torchaudio-2.1.1%2Bcu121-cp311-cp311-win_amd64.whl (4.0 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 4.4 MB/s eta 0:00:00

Requirement already satisfied: filelock in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (3.13.1)

Requirement already satisfied: typing-extensions in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (4.5.0)

Requirement already satisfied: sympy in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (1.12)

Requirement already satisfied: networkx in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (3.2.1)

Requirement already satisfied: jinja2 in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (3.1.2)

Requirement already satisfied: fsspec in f:\python\jupyter\lib\site-packages (from torch==2.1.1) (2023.12.2)

Requirement already satisfied: numpy in f:\python\jupyter\lib\site-packages (from torchvision==0.16.1) (1.23.5)

Requirement already satisfied: requests in f:\python\jupyter\lib\site-packages (from torchvision==0.16.1) (2.31.0)

Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in f:\python\jupyter\lib\site-packages (from torchvision==0.16.1) (10.1.0)

Requirement already satisfied: MarkupSafe>=2.0 in f:\python\jupyter\lib\site-packages (from jinja2->torch==2.1.1) (2.1.3)

Requirement already satisfied: charset-normalizer<4,>=2 in f:\python\jupyter\lib\site-packages (from requests->torchvision==0.16.1) (3.3.2)

Requirement already satisfied: idna<4,>=2.5 in f:\python\jupyter\lib\site-packages (from requests->torchvision==0.16.1) (3.6)

Requirement already satisfied: urllib3<3,>=1.21.1 in f:\python\jupyter\lib\site-packages (from requests->torchvision==0.16.1) (2.1.0)

Requirement already satisfied: certifi>=2017.4.17 in f:\python\jupyter\lib\site-packages (from requests->torchvision==0.16.1) (2023.11.17)

Requirement already satisfied: mpmath>=0.19 in f:\python\jupyter\lib\site-packages (from sympy->torch==2.1.1) (1.3.0)

Installing collected packages: torch, torchvision, torchaudio

  Attempting uninstall: torch

    Found existing installation: torch 2.1.2

    Uninstalling torch-2.1.2:

      Successfully uninstalled torch-2.1.2

Successfully installed torch-2.1.1+cu121 torchaudio-2.1.1+cu121 torchvision-0.16.1+cu121

(jupyter) F:\PYTHON\jupyter>python -c "import torch; print(torch.rand(2,3).cuda())"

tensor([[0.2774, 0.4768, 0.9545],

        [0.7738, 0.6247, 0.4539]], device='cuda:0')

(jupyter) F:\PYTHON\jupyter>python -c "import torch; print(torch.cuda.device_count())"


Saturday, December 23, 2023

How to Install Jupyter Notebook on Windows 11 2024

How to Install Jupyter Notebook on Windows 11 2024

Microsoft Windows [Version 10.0.22621.2861]
(c) Microsoft Corporation. All rights reserved.
F:\>cd PYTHON/jupyter
F:\PYTHON\jupyter>python --version
Python 3.11.3
F:\PYTHON\jupyter>python -m venv ./
(jupyter) F:\PYTHON\jupyter>python -m pip install --upgrade pip
Requirement already satisfied: pip in f:\python\jupyter\lib\site-packages (22.3.1)
Collecting pip
  Downloading pip-23.3.2-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 4.5 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
Successfully installed pip-23.3.2
(jupyter) F:\PYTHON\jupyter>pip install jupyter
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook (from jupyter)
  Downloading notebook-7.0.6-py3-none-any.whl.metadata (10 kB)
Collecting qtconsole (from jupyter)
  Downloading qtconsole-5.5.1-py3-none-any.whl.metadata (5.1 kB)
Collecting jupyter-console (from jupyter)
  Downloading jupyter_console-6.6.3-py3-none-any.whl (24 kB)
Collecting nbconvert (from jupyter)
  Downloading nbconvert-7.13.1-py3-none-any.whl.metadata (7.7 kB)
Collecting ipykernel (from jupyter)
  Downloading ipykernel-6.27.1-py3-none-any.whl.metadata (6.3 kB)
Collecting ipywidgets (from jupyter)
  Downloading ipywidgets-8.1.1-py3-none-any.whl.metadata (2.4 kB)
Collecting comm>=0.1.1 (from ipykernel->jupyter)
  Downloading comm-0.2.0-py3-none-any.whl.metadata (3.7 kB)
Collecting debugpy>=1.6.5 (from ipykernel->jupyter)
  Downloading debugpy-1.8.0-cp311-cp311-win_amd64.whl.metadata (1.1 kB)
Collecting ipython>=7.23.1 (from ipykernel->jupyter)
  Downloading ipython-8.19.0-py3-none-any.whl.metadata (5.9 kB)
Collecting jupyter-client>=6.1.12 (from ipykernel->jupyter)
  Downloading jupyter_client-8.6.0-py3-none-any.whl.metadata (8.3 kB)
Collecting jupyter-core!=5.0.*,>=4.12 (from ipykernel->jupyter)
  Downloading jupyter_core-5.5.1-py3-none-any.whl.metadata (3.4 kB)
Collecting matplotlib-inline>=0.1 (from ipykernel->jupyter)
  Downloading matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting nest-asyncio (from ipykernel->jupyter)
  Downloading nest_asyncio-1.5.8-py3-none-any.whl.metadata (2.8 kB)
Collecting packaging (from ipykernel->jupyter)
  Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting psutil (from ipykernel->jupyter)
  Downloading psutil-5.9.7-cp37-abi3-win_amd64.whl.metadata (22 kB)
Collecting pyzmq>=20 (from ipykernel->jupyter)
  Downloading pyzmq-25.1.2-cp311-cp311-win_amd64.whl.metadata (5.1 kB)
Collecting tornado>=6.1 (from ipykernel->jupyter)
  Downloading tornado-6.4-cp38-abi3-win_amd64.whl.metadata (2.6 kB)
Collecting traitlets>=5.4.0 (from ipykernel->jupyter)
  Downloading traitlets-5.14.0-py3-none-any.whl.metadata (10 kB)
Collecting widgetsnbextension~=4.0.9 (from ipywidgets->jupyter)
  Downloading widgetsnbextension-4.0.9-py3-none-any.whl.metadata (1.6 kB)
Collecting jupyterlab-widgets~=3.0.9 (from ipywidgets->jupyter)
  Downloading jupyterlab_widgets-3.0.9-py3-none-any.whl.metadata (4.1 kB)
Collecting prompt-toolkit>=3.0.30 (from jupyter-console->jupyter)
  Downloading prompt_toolkit-3.0.43-py3-none-any.whl.metadata (6.5 kB)
Collecting pygments (from jupyter-console->jupyter)
  Downloading pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)
Collecting beautifulsoup4 (from nbconvert->jupyter)
  Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 2.1 MB/s eta 0:00:00
Collecting bleach!=5.0.0 (from nbconvert->jupyter)
  Downloading bleach-6.1.0-py3-none-any.whl.metadata (30 kB)
Collecting defusedxml (from nbconvert->jupyter)
  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting jinja2>=3.0 (from nbconvert->jupyter)
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 7.7 MB/s eta 0:00:00
Collecting jupyterlab-pygments (from nbconvert->jupyter)
  Downloading jupyterlab_pygments-0.3.0-py3-none-any.whl.metadata (4.4 kB)
Collecting markupsafe>=2.0 (from nbconvert->jupyter)
  Downloading MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
Collecting mistune<4,>=2.0.3 (from nbconvert->jupyter)
  Downloading mistune-3.0.2-py3-none-any.whl.metadata (1.7 kB)
Collecting nbclient>=0.5.0 (from nbconvert->jupyter)
  Downloading nbclient-0.9.0-py3-none-any.whl.metadata (7.8 kB)
Collecting nbformat>=5.7 (from nbconvert->jupyter)
  Downloading nbformat-5.9.2-py3-none-any.whl.metadata (3.4 kB)
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
  Downloading pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting tinycss2 (from nbconvert->jupyter)
  Downloading tinycss2-1.2.1-py3-none-any.whl (21 kB)
Collecting jupyter-server<3,>=2.4.0 (from notebook->jupyter)
  Downloading jupyter_server-2.12.1-py3-none-any.whl.metadata (8.4 kB)
Collecting jupyterlab-server<3,>=2.22.1 (from notebook->jupyter)
  Downloading jupyterlab_server-2.25.2-py3-none-any.whl.metadata (5.9 kB)
Collecting jupyterlab<5,>=4.0.2 (from notebook->jupyter)
  Downloading jupyterlab-4.0.9-py3-none-any.whl.metadata (15 kB)
Collecting notebook-shim<0.3,>=0.2 (from notebook->jupyter)
  Downloading notebook_shim-0.2.3-py3-none-any.whl (13 kB)
Collecting qtpy>=2.4.0 (from qtconsole->jupyter)
  Downloading QtPy-2.4.1-py3-none-any.whl.metadata (12 kB)
Collecting six>=1.9.0 (from bleach!=5.0.0->nbconvert->jupyter)
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings (from bleach!=5.0.0->nbconvert->jupyter)
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting decorator (from ipython>=7.23.1->ipykernel->jupyter)
  Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting jedi>=0.16 (from ipython>=7.23.1->ipykernel->jupyter)
  Downloading jedi-0.19.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting stack-data (from ipython>=7.23.1->ipykernel->jupyter)
  Downloading stack_data-0.6.3-py3-none-any.whl.metadata (18 kB)
Collecting colorama (from ipython>=7.23.1->ipykernel->jupyter)
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting python-dateutil>=2.8.2 (from jupyter-client>=6.1.12->ipykernel->jupyter)
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 633.2 kB/s eta 0:00:00
Collecting platformdirs>=2.5 (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter)
  Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)
Collecting pywin32>=300 (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter)
  Downloading pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 3.6 MB/s eta 0:00:00
Collecting anyio>=3.1.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading anyio-4.2.0-py3-none-any.whl.metadata (4.6 kB)
Collecting argon2-cffi (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB)
Collecting jupyter-events>=0.9.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading jupyter_events-0.9.0-py3-none-any.whl.metadata (5.7 kB)
Collecting jupyter-server-terminals (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading jupyter_server_terminals-0.5.0-py3-none-any.whl.metadata (5.6 kB)
Collecting overrides (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading overrides-7.4.0-py3-none-any.whl.metadata (5.7 kB)
Collecting prometheus-client (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading prometheus_client-0.19.0-py3-none-any.whl.metadata (1.8 kB)
Collecting pywinpty (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading pywinpty-2.0.12-cp311-none-win_amd64.whl.metadata (5.2 kB)
Collecting send2trash>=1.8.2 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading Send2Trash-1.8.2-py3-none-any.whl (18 kB)
Collecting terminado>=0.8.3 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading terminado-0.18.0-py3-none-any.whl.metadata (5.8 kB)
Collecting websocket-client (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading websocket_client-1.7.0-py3-none-any.whl.metadata (7.9 kB)
Collecting async-lru>=1.0.0 (from jupyterlab<5,>=4.0.2->notebook->jupyter)
  Downloading async_lru-2.0.4-py3-none-any.whl.metadata (4.5 kB)
Collecting jupyter-lsp>=2.0.0 (from jupyterlab<5,>=4.0.2->notebook->jupyter)
  Downloading jupyter_lsp-2.2.1-py3-none-any.whl.metadata (1.8 kB)
Collecting babel>=2.10 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading Babel-2.14.0-py3-none-any.whl.metadata (1.6 kB)
Collecting json5>=0.9.0 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading json5-0.9.14-py2.py3-none-any.whl.metadata (10 kB)
Collecting jsonschema>=4.18.0 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading jsonschema-4.20.0-py3-none-any.whl.metadata (8.1 kB)
Collecting requests>=2.31 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting fastjsonschema (from nbformat>=5.7->nbconvert->jupyter)
  Downloading fastjsonschema-2.19.0-py3-none-any.whl.metadata (2.0 kB)
Collecting wcwidth (from prompt-toolkit>=3.0.30->jupyter-console->jupyter)
  Downloading wcwidth-0.2.12-py2.py3-none-any.whl.metadata (14 kB)
Collecting soupsieve>1.2 (from beautifulsoup4->nbconvert->jupyter)
  Downloading soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)
Collecting idna>=2.8 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting sniffio>=1.1 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting parso<0.9.0,>=0.8.3 (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter)
  Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 kB 6.0 MB/s eta 0:00:00
Collecting attrs>=22.2.0 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 3.2 MB/s eta 0:00:00
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading jsonschema_specifications-2023.11.2-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading referencing-0.32.0-py3-none-any.whl.metadata (2.7 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading rpds_py-0.15.2-cp311-none-win_amd64.whl.metadata (4.2 kB)
Collecting python-json-logger>=2.0.4 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading python_json_logger-2.0.7-py3-none-any.whl (8.1 kB)
Collecting pyyaml>=5.3 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading PyYAML-6.0.1-cp311-cp311-win_amd64.whl.metadata (2.1 kB)
Collecting rfc3339-validator (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Collecting rfc3986-validator>=0.1.1 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting urllib3<3,>=1.21.1 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
Collecting argon2-cffi-bindings (from argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading argon2_cffi_bindings-21.2.0-cp36-abi3-win_amd64.whl (30 kB)
Collecting executing>=1.2.0 (from stack-data->ipython>=7.23.1->ipykernel->jupyter)
  Downloading executing-2.0.1-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting asttokens>=2.1.0 (from stack-data->ipython>=7.23.1->ipykernel->jupyter)
  Downloading asttokens-2.4.1-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting pure-eval (from stack-data->ipython>=7.23.1->ipykernel->jupyter)
  Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB)
Collecting fqdn (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading fqdn-1.5.1-py3-none-any.whl (9.1 kB)
Collecting isoduration (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading isoduration-20.11.0-py3-none-any.whl (11 kB)
Collecting jsonpointer>1.13 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading jsonpointer-2.4-py2.py3-none-any.whl.metadata (2.5 kB)
Collecting uri-template (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading uri_template-1.3.0-py3-none-any.whl.metadata (8.8 kB)
Collecting webcolors>=1.11 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading webcolors-1.13-py3-none-any.whl (14 kB)
Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading cffi-1.16.0-cp311-cp311-win_amd64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 3.5 MB/s eta 0:00:00
Collecting arrow>=0.15.0 (from isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading arrow-1.3.0-py3-none-any.whl.metadata (7.5 kB)
Collecting types-python-dateutil>=2.8.10 (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading types_python_dateutil- (1.6 kB)
Downloading ipykernel-6.27.1-py3-none-any.whl (114 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.6/114.6 kB 6.5 MB/s eta 0:00:00
Downloading ipywidgets-8.1.1-py3-none-any.whl (139 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.4/139.4 kB 8.6 MB/s eta 0:00:00
Downloading nbconvert-7.13.1-py3-none-any.whl (256 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 256.6/256.6 kB 5.2 MB/s eta 0:00:00
Downloading notebook-7.0.6-py3-none-any.whl (4.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 4.2 MB/s eta 0:00:00
Downloading qtconsole-5.5.1-py3-none-any.whl (123 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.4/123.4 kB 7.1 MB/s eta 0:00:00
Downloading bleach-6.1.0-py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.8/162.8 kB 4.9 MB/s eta 0:00:00
Downloading comm-0.2.0-py3-none-any.whl (7.0 kB)
Downloading debugpy-1.8.0-cp311-cp311-win_amd64.whl (4.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 4.0 MB/s eta 0:00:00
Downloading ipython-8.19.0-py3-none-any.whl (808 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 808.9/808.9 kB 3.6 MB/s eta 0:00:00
Downloading jupyter_client-8.6.0-py3-none-any.whl (105 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.9/105.9 kB 3.1 MB/s eta 0:00:00
Downloading jupyter_core-5.5.1-py3-none-any.whl (28 kB)
Downloading jupyter_server-2.12.1-py3-none-any.whl (380 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 380.2/380.2 kB 4.7 MB/s eta 0:00:00
Downloading jupyterlab-4.0.9-py3-none-any.whl (9.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 3.9 MB/s eta 0:00:00
Downloading jupyterlab_server-2.25.2-py3-none-any.whl (58 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 kB 3.0 MB/s eta 0:00:00
Downloading jupyterlab_widgets-3.0.9-py3-none-any.whl (214 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.9/214.9 kB 4.4 MB/s eta 0:00:00
Downloading MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl (17 kB)
Downloading mistune-3.0.2-py3-none-any.whl (47 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.0/48.0 kB 2.4 MB/s eta 0:00:00
Downloading nbclient-0.9.0-py3-none-any.whl (24 kB)
Downloading nbformat-5.9.2-py3-none-any.whl (77 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.6/77.6 kB 4.5 MB/s eta 0:00:00
Downloading packaging-23.2-py3-none-any.whl (53 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 2.7 MB/s eta 0:00:00
Downloading prompt_toolkit-3.0.43-py3-none-any.whl (386 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.1/386.1 kB 8.0 MB/s eta 0:00:00
Downloading pygments-2.17.2-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 4.4 MB/s eta 0:00:00
Downloading pyzmq-25.1.2-cp311-cp311-win_amd64.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.3 MB/s eta 0:00:00
Downloading QtPy-2.4.1-py3-none-any.whl (93 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.5/93.5 kB 5.6 MB/s eta 0:00:00
Downloading tornado-6.4-cp38-abi3-win_amd64.whl (436 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 437.0/437.0 kB 5.5 MB/s eta 0:00:00
Downloading traitlets-5.14.0-py3-none-any.whl (85 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.2/85.2 kB 4.7 MB/s eta 0:00:00
Downloading widgetsnbextension-4.0.9-py3-none-any.whl (2.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 4.2 MB/s eta 0:00:00
Downloading jupyterlab_pygments-0.3.0-py3-none-any.whl (15 kB)
Downloading nest_asyncio-1.5.8-py3-none-any.whl (5.3 kB)
Downloading psutil-5.9.7-cp37-abi3-win_amd64.whl (252 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 252.2/252.2 kB 3.8 MB/s eta 0:00:00
Downloading anyio-4.2.0-py3-none-any.whl (85 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.5/85.5 kB 4.7 MB/s eta 0:00:00
Downloading async_lru-2.0.4-py3-none-any.whl (6.1 kB)
Downloading Babel-2.14.0-py3-none-any.whl (11.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 MB 3.7 MB/s eta 0:00:00
Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 3.7 MB/s eta 0:00:00
Downloading json5-0.9.14-py2.py3-none-any.whl (19 kB)
Downloading jsonschema-4.20.0-py3-none-any.whl (84 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.7/84.7 kB 4.7 MB/s eta 0:00:00
Downloading jupyter_events-0.9.0-py3-none-any.whl (18 kB)
Downloading jupyter_lsp-2.2.1-py3-none-any.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.0/66.0 kB 3.7 MB/s eta 0:00:00
Downloading platformdirs-4.1.0-py3-none-any.whl (17 kB)
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB ? eta 0:00:00
Downloading soupsieve-2.5-py3-none-any.whl (36 kB)
Downloading terminado-0.18.0-py3-none-any.whl (14 kB)
Downloading pywinpty-2.0.12-cp311-none-win_amd64.whl (1.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 4.5 MB/s eta 0:00:00
Downloading argon2_cffi-23.1.0-py3-none-any.whl (15 kB)
Downloading fastjsonschema-2.19.0-py3-none-any.whl (23 kB)
Downloading jupyter_server_terminals-0.5.0-py3-none-any.whl (13 kB)
Downloading overrides-7.4.0-py3-none-any.whl (17 kB)
Downloading prometheus_client-0.19.0-py3-none-any.whl (54 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.2/54.2 kB 2.9 MB/s eta 0:00:00
Downloading stack_data-0.6.3-py3-none-any.whl (24 kB)
Downloading wcwidth-0.2.12-py2.py3-none-any.whl (34 kB)
Downloading websocket_client-1.7.0-py3-none-any.whl (58 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.5/58.5 kB 3.0 MB/s eta 0:00:00
Downloading asttokens-2.4.1-py2.py3-none-any.whl (27 kB)
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 4.9 MB/s eta 0:00:00
Downloading charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.9/99.9 kB 5.6 MB/s eta 0:00:00
Downloading executing-2.0.1-py2.py3-none-any.whl (24 kB)
Downloading idna-3.6-py3-none-any.whl (61 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 3.2 MB/s eta 0:00:00
Downloading jsonschema_specifications-2023.11.2-py3-none-any.whl (17 kB)
Downloading PyYAML-6.0.1-cp311-cp311-win_amd64.whl (144 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.7/144.7 kB 8.4 MB/s eta 0:00:00
Downloading referencing-0.32.0-py3-none-any.whl (26 kB)
Downloading rpds_py-0.15.2-cp311-none-win_amd64.whl (194 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.7/194.7 kB 6.0 MB/s eta 0:00:00
Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 5.9 MB/s eta 0:00:00
Downloading cffi-1.16.0-cp311-cp311-win_amd64.whl (181 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.5/181.5 kB 5.4 MB/s eta 0:00:00
Downloading jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Downloading uri_template-1.3.0-py3-none-any.whl (11 kB)
Downloading arrow-1.3.0-py3-none-any.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.4/66.4 kB ? eta 0:00:00
Downloading types_python_dateutil- (9.4 kB)
Installing collected packages: webencodings, wcwidth, types-python-dateutil, pywin32, pure-eval, json5, fastjsonschema, widgetsnbextension, websocket-client, webcolors, urllib3, uri-template, traitlets, tornado, tinycss2, soupsieve, sniffio, six, send2trash, rpds-py, rfc3986-validator, pyzmq, pyyaml, pywinpty, python-json-logger, pygments, pycparser, psutil, prompt-toolkit, prometheus-client, platformdirs, parso, pandocfilters, packaging, overrides, nest-asyncio, mistune, markupsafe, jupyterlab-widgets, jupyterlab-pygments, jsonpointer, idna, fqdn, executing, defusedxml, decorator, debugpy, colorama, charset-normalizer, certifi, babel, attrs, async-lru, terminado, rfc3339-validator, requests, referencing, qtpy, python-dateutil, matplotlib-inline, jupyter-core, jinja2, jedi, comm, cffi, bleach, beautifulsoup4, asttokens, anyio, stack-data, jupyter-server-terminals, jupyter-client, jsonschema-specifications, arrow, argon2-cffi-bindings, jsonschema, isoduration, ipython, argon2-cffi, nbformat, ipywidgets, ipykernel, qtconsole, nbclient, jupyter-events, jupyter-console, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab, notebook, jupyter
Successfully installed anyio-4.2.0 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.3.0 asttokens-2.4.1 async-lru-2.0.4 attrs-23.1.0 babel-2.14.0 beautifulsoup4-4.12.2 bleach-6.1.0 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 colorama-0.4.6 comm-0.2.0 debugpy-1.8.0 decorator-5.1.1 defusedxml-0.7.1 executing-2.0.1 fastjsonschema-2.19.0 fqdn-1.5.1 idna-3.6 ipykernel-6.27.1 ipython-8.19.0 ipywidgets-8.1.1 isoduration-20.11.0 jedi-0.19.1 jinja2-3.1.2 json5-0.9.14 jsonpointer-2.4 jsonschema-4.20.0 jsonschema-specifications-2023.11.2 jupyter-1.0.0 jupyter-client-8.6.0 jupyter-console-6.6.3 jupyter-core-5.5.1 jupyter-events-0.9.0 jupyter-lsp-2.2.1 jupyter-server-2.12.1 jupyter-server-terminals-0.5.0 jupyterlab-4.0.9 jupyterlab-pygments-0.3.0 jupyterlab-server-2.25.2 jupyterlab-widgets-3.0.9 markupsafe-2.1.3 matplotlib-inline-0.1.6 mistune-3.0.2 nbclient-0.9.0 nbconvert-7.13.1 nbformat-5.9.2 nest-asyncio-1.5.8 notebook-7.0.6 notebook-shim-0.2.3 overrides-7.4.0 packaging-23.2 pandocfilters-1.5.0 parso-0.8.3 platformdirs-4.1.0 prometheus-client-0.19.0 prompt-toolkit-3.0.43 psutil-5.9.7 pure-eval-0.2.2 pycparser-2.21 pygments-2.17.2 python-dateutil-2.8.2 python-json-logger-2.0.7 pywin32-306 pywinpty-2.0.12 pyyaml-6.0.1 pyzmq-25.1.2 qtconsole-5.5.1 qtpy-2.4.1 referencing-0.32.0 requests-2.31.0 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.15.2 send2trash-1.8.2 six-1.16.0 sniffio-1.3.0 soupsieve-2.5 stack-data-0.6.3 terminado-0.18.0 tinycss2-1.2.1 tornado-6.4 traitlets-5.14.0 types-python-dateutil- uri-template-1.3.0 urllib3-2.1.0 wcwidth-0.2.12 webcolors-1.13 webencodings-0.5.1 websocket-client-1.7.0 widgetsnbextension-4.0.9
(jupyter) F:\PYTHON\jupyter>jupyter notebook
[I 2023-12-24 05:39:29.958 ServerApp] Extension package jupyter_lsp took 0.2852s to import
[W 2023-12-24 05:39:29.958 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-24 05:39:30.177 ServerApp] Extension package jupyter_server_terminals took 0.2166s to import
[W 2023-12-24 05:39:30.628 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-12-24 05:39:30.628 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-12-24 05:39:30.642 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-12-24 05:39:30.669 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-12-24 05:39:30.689 ServerApp] notebook | extension was successfully linked.
[I 2023-12-24 05:39:30.702 ServerApp] Writing Jupyter server cookie secret to C:\Users\dell\AppData\Roaming\jupyter\runtime\jupyter_cookie_secret
[I 2023-12-24 05:39:31.706 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-12-24 05:39:31.776 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-12-24 05:39:31.780 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-12-24 05:39:31.784 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-12-24 05:39:31.788 LabApp] JupyterLab extension loaded from F:\PYTHON\jupyter\Lib\site-packages\jupyterlab
[I 2023-12-24 05:39:31.788 LabApp] JupyterLab application directory is F:\PYTHON\jupyter\share\jupyter\lab
[I 2023-12-24 05:39:31.792 LabApp] Extension Manager is 'pypi'.
[I 2023-12-24 05:39:31.797 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-12-24 05:39:31.808 ServerApp] notebook | extension was successfully loaded.
[I 2023-12-24 05:39:31.812 ServerApp] Serving notebooks from local directory: F:\PYTHON\jupyter
[I 2023-12-24 05:39:31.812 ServerApp] Jupyter Server 2.12.1 is running at:
[I 2023-12-24 05:39:31.812 ServerApp] http://localhost:8888/tree?token=f3937ea4392f0bb833dea086303f57fc1551a9ae645c02a8
[I 2023-12-24 05:39:31.812 ServerApp]
[I 2023-12-24 05:39:31.812 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-12-24 05:39:31.962 ServerApp]
    To access the server, open this file in a browser:
    Or copy and paste one of these URLs:
[I 2023-12-24 05:39:32.045 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2023-12-24 05:40:22.529 ServerApp] Creating new notebook in
[I 2023-12-24 05:40:22.670 ServerApp] Writing notebook-signing key to C:\Users\dell\AppData\Roaming\jupyter\notebook_secret
[I 2023-12-24 05:40:36.427 ServerApp] Kernel started: 8613a08b-be38-4888-9cbf-2cd149f0f508
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2023-12-24 05:40:38.047 ServerApp] Connecting to kernel 8613a08b-be38-4888-9cbf-2cd149f0f508.

How to Install Jupyter Notebook on Windows 11 2024

- create env
- pip install jupyter
- start "jupyter notebook"

Sunday, September 24, 2023

Bahasa Pemrograman Java - Belajar 3

 Bahasa pemrograman Java mendefinisikan delapan tipe data primitif. Mereka diantaranya adalah boolean (untuk bentuk logika), char (untuk bentuk tekstual), byte, short, int, long (integral), double and float (floating point).

Variabel adalah item yang digunakan data untuk menyimpan pernyataan objek. Variabel memiliki tipe data dan nama. Tipe data menandakan tipe nilai yang dapat dibentuk oleh variabel itu sendiri. Nama variabel harus mengikuti aturan untuk identifier.

Dalam Java, ada beberapa tipe operator. Ada operator aritmatika, operator relasi, operator logika, dan operator kondisi. Operator ini mengikuti bermacam-macam prioritas yang pasti sehingga kompilernya akan tahu yang mana operator untuk dijalankan lebih dulu dalam kasus beberapa operator yang dipakai bersama-sama dalam satu pernyataan. Tipe operator antara lain Operator Aritmatika, Operator Increment dan Decrement, Operator Relasi, Operator logika, Operator Kondisi(?:), Operator Precedence.

Komentar adalah catatan yang ditulis pada kode dengan tujuan sebagai bahan dokumentasi. Teks tersebut bukan bagian dari program dan tidak mempengaruhi jalannya program. Java mendukung tiga jenis komentar: C++ style komentar satu baris, C style beberapa baris, dan komentar javadoc khusus.

Pernyataan adalah satu atau lebih baris kode yang diakhiri dengan semicolon. Sebagai contoh untuk pernyataan tunggal adalah
System.out.println(“Hello world”);

Blok adalah satu atau lebih pernyataan yang terbentang antara kurung kurawal buka dan kurung kurawal tutup yaitu sekumpulan pernyataan sebagai satu unit kesatuan. Blok pernyataan dapat dikumpulkan akan tetapi tidak secara pasti mempunyai keterkaitan fungsi. Beberapa jumlah spasi kosong diijinkan terdapat di dalamnya, sebagai contoh dari suatu blok adalah:
public static void main( String[] args ){
    System.out.println("Hello ");

Java Identifier adalah suatu tanda yang mewakili nama-nama variabel, method, class, dsb. Contoh dari Identifier adalah: Hello, main, System, out.

Kata kunci (keyword) adalah identifier yang telah dipesan untuk didefinisikan sebelumnya oleh Java untuk tujuan tertentu. Anda tidak dapat menggunakan keyword sebagai nama variabel, class, method Anda, dsb.

Source code:
public class truthtable {  
  public static void main(String[] args) {  
    boolean a, b;
    System.out.println( "a\tb\tNOT a\ta AND b\ta OR b\ta XOR b" );
    a = true; b = true;
    System.out.print(a + "\t" + b + "\t");
    System.out.println((!a) + "\t" + (a&b) + "\t" + (a|b) + "\t" + (a^b));
    a = true; b = false;
    System.out.print(a + "\t" + b + "\t");
    System.out.println((!a) + "\t" + (a&b) + "\t" + (a|b) + "\t" + (a^b));
    a = false; b = true;
    System.out.print(a + "\t" + b + "\t");
    System.out.println((!a) + "\t" + (a&b) + "\t" + (a|b) + "\t" + (a^b));
    a = false; b = false;
    System.out.print(a + "\t" + b + "\t");
    System.out.println((!a) + "\t" + (a&b) + "\t" + (a|b) + "\t" + (a^b));

Monday, September 11, 2023

Bahasa Pemrograman Java - Belajar 2

Apache NetBeans merupakan Integrated Development Environment atau IDE. Suatu IDE adalah lingkup pemrograman yang diintegrasikan ke dalam suatu aplikasi perangkat lunak yang menyediakan pembangun GUI, suatu text atau kode editor, suatu compiler atau interpreter dan suatu debugger. Ada 3 java builder tools yang sering digunakan saat ini dan sudah ada di dalam Apache Netbeans. Build tools adalah program yang mengotomatiskan proses eksekusi aplikasi dari suatu source code.

Ant adalah java builder legendaris bawaan hampir semua IDE java seperti netbeans dan eclipse. Namun ketika butuh library seperti pengolahan data berbasis tabular (table saw) yang menggunakan Maven dan Gradle untuk repository, ini jadi kesulitan di Ant.

 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
package javaapplication1;

 * @author dell
public class JavaApplication1 {

     * @param args the command line arguments
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Hello, World!");

Maven menggunakan XML untuk melakukan pengaturan dependencies-nya tidak sepraktis gradle. Namun ketika kita akan buat package *.jar memang agak susah, tidak seperti di Ant dengan klik Build saja. 

 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license

package com.webiotid.mavenproject1;

 * @author dell
public class Mavenproject1 {

    public static void main(String[] args) {
        System.out.println("Hello World!");

Gradle juga digunakan pada android bila kalian buat aplikasi berbasis android, maka tools builder ini yang digunakan. Gradle adalah build tools yang tidak spesifik terhadap satu bahasa pemrograman tertentu, sedangkan Maven spesifik untuk membantu membuat project yang kita buat menggunakan Java. Gradle sering disebut sebagai build-tool, secara umum menggunakan bahasa pemrograman Groovy.

 * This Java source file was generated by the Gradle 'init' task.
package gradleproject1;

public class App {
    public String getGreeting() {
        return "Hello World!";

    public static void main(String[] args) {
        System.out.println(new App().getGreeting());

Sunday, September 10, 2023

Bahasa Pemrograman Java - Belajar1

Java adalah bahasa pemrograman tujuan umum yang kuat. Ini digunakan untuk mengembangkan aplikasi desktop dan seluler, pemrosesan data besar, sistem tertanam, dan sebagainya. Menurut Oracle, perusahaan pemilik Java, Java berjalan di 3 miliar perangkat di seluruh dunia, menjadikan Java salah satu bahasa pemrograman paling populer.

Java adalah bahasa pemrograman yang populer.

Java digunakan untuk mengembangkan aplikasi seluler, aplikasi web, aplikasi desktop, game, dan banyak lagi.

Java adalah bahasa pemrograman dan platform komputasi yang pertama kali dirilis oleh Sun Microsystems pada tahun 1995. Java telah berevolusi dari awal yang sederhana hingga memberdayakan sebagian besar dunia digital saat ini, dengan menyediakan platform yang andal di mana banyak layanan dan aplikasi dibangun. Produk-produk baru dan inovatif serta layanan digital yang dirancang untuk masa depan juga terus mengandalkan Java.

Langkah pertama dalam pembuatan sebuah program berbasis Java adalah menuliskan kode program pada text editor. Contoh text editor yang dapat digunakan antara lain: notepad, vi, emacs dan lain sebagainya. Kode program yang dibuat kemudian tersimpan dalam sebuah berkas berekstensi .java.

Setelah membuat dan menyimpan kode program, kompilasi file yang berisi kode program tersebut dengan menggunakan Java Compiler. Hasil dari kompilasi berupa berkas bytecode dengan ekstensi .class.

Berkas yang mengandung bytecode tersebut kemudian akan dikonversikan oleh Java Interpreter menjadi bahasa mesin sesuai dengan jenis dan platform yang digunakan.


public class helloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");

Friday, June 23, 2023

Resolve problem of MySQL on XAMPP

7:47:48 PM  [mysql] Error: MySQL shutdown unexpectedly.

7:47:48 PM  [mysql] This may be due to a blocked port, missing dependencies, 

7:47:48 PM  [mysql] improper privileges, a crash, or a shutdown by another method.

7:47:48 PM  [mysql] Press the Logs button to view error logs and check

7:47:48 PM  [mysql] the Windows Event Viewer for more clues

7:47:48 PM  [mysql] If you need more help, copy and post this

7:47:48 PM  [mysql] entire log window on the forums


2023-06-23 19:47:48 0 [Note] Starting MariaDB 10.4.28-MariaDB source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 17424
2023-06-23 19:47:48 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2023-06-23 19:47:48 0 [Note] InnoDB: Uses event mutexes
2023-06-23 19:47:48 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2023-06-23 19:47:48 0 [Note] InnoDB: Number of pools: 1
2023-06-23 19:47:48 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-06-23 19:47:48 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2023-06-23 19:47:48 0 [Note] InnoDB: Completed initialization of buffer pool
2023-06-23 19:47:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-06-23 19:47:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-06-23 19:47:48 0 [Note] InnoDB: Setting file 'D:\xampp8\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-06-23 19:47:48 0 [Note] InnoDB: File 'D:\xampp8\mysql\data\ibtmp1' size is now 12 MB.
2023-06-23 19:47:48 0 [Note] InnoDB: Waiting for purge to start
2023-06-23 19:47:49 0 [Note] InnoDB: 10.4.28 started; log sequence number 4909603; transaction id 5570
2023-06-23 19:47:49 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp8\mysql\data\ib_buffer_pool
2023-06-23 19:47:49 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-06-23 19:47:49 0 [Note] InnoDB: Buffer pool(s) load completed at 230623 19:47:49
2023-06-23 19:47:49 0 [Note] Server socket created on IP: '::'.

AND How to resolve this problem is:
Go to xampp/mysql directory
Rename the /data folder to /data_old
Copy the /backup folder and paste in same place
Rename the /backup_copy folder to /data
Go to /data_old folder and copy all your database folder expect phpmyadmin, mysql, performance_schema
Go to /data folder and paste all database folder copied from /data_old
Go to /data_old folder again and copy ibdata1 file
Go to /data folder again and paste ibdata1 file here
Restart MySQL button server again. twice in my case to make it work.

Saturday, May 27, 2023

How to copy files fast over network or LAN using cmd robocopy on Windows

Before run robocopy, you must know source and destination network or LAN

open CMD and run

ex copy 

from D:\

to \\YOUR-PC\D\

robocopy D:\ \\YOUR-PC\D\ /E /Z /ZB /XO /R:5 /W:5 /TBD /NP /V /MT:16


/E — Copy Subdirectories, including empty ones.

/Z — Copy files in restart-able mode.

/ZB — Uses restart-able mode. If access is denied, use backup mode.

/XO — Exclude files that are older than those they're being copied over (skip for existing files)

/R:5 — Retry 5 times (you can specify a different number, the default is 1 million).

/W:5 — Wait 5 seconds before retrying (you can specify a different number, the default is 30 seconds).

/TBD — Wait for share names To Be Defined (retry error 67).

/NP — No Progress – don’t display percentage copied.

/V — Produce verbose output, showing skipped files.

/MT:16 — Do multithreaded copies with n threads (default is 8).

/compress — Enables SMB compression to speed up transfers over the network.

Wednesday, May 17, 2023

Modul dan Sistem informasi aplikasi Berbasis web full source code framework Codeigniter

 7 Paket dan 3 Paket Modul dan Sistem informasi aplikasi Berbasis web full source code framework Codeigniter versi 3

Kami menyediakan sistem aplikasi berbasis web dengan framework codeigniter. 3 modul masuk dalam 7 folder controller, model dan view.

Kami akan kirimkan link contoh aplikasi via chat.

Jika ada pengiriman, itu hanya amplop link coding. Namun jika sudah ACC tanpa pengiriman, maka segera untuk klik Selesaikan pesanan dan kami harapkan bintang 5

kunjungi dan chat kami untuk informasi lebih lanjut. jangan lupa nantikan versi 9 Paket CI.

Welcome to CodeIgniter!

The page you are looking at is being generated dynamically by CodeIgniter.

If you would like to edit this page you'll find it located at:


The corresponding controller for this page is found at:



- Aplikasi Hak Akses

- Aplikasi Log Activity

- Aplikasi Ajax dan SSP(Server Side Processing)


- Aplikasi User/ Pengguna

- Aplikasi Hak Akses

- Aplikasi Log Activity

- Aplikasi Ajax dan SSP(Server Side Processing)

- Aplikasi Laporan Document (Upload Excel - Print Pdf)

- Aplikasi Wisuda

- Aplikasi Inventory (Purchasing, Gudang, Produksi, Finish Good)

* Ubah application/config/routes -> $route['default_controller'] = 'welcome'; sesuai dengan aplikasi yang akan anda tuju menjadi indeks

try it

Full source code

free and bayar


defined('BASEPATH') or exit('No direct script access allowed');

| -------------------------------------------------------------------------
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|   example.com/class/method/id/
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
| Please see the user guide for complete details:
|   http://codeigniter.com/user_guide/general/routing.html
| -------------------------------------------------------------------------
| -------------------------------------------------------------------------
| There are three reserved routes:
|   $route['default_controller'] = 'welcome';
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|   $route['404_override'] = 'errors/page_missing';
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|   $route['translate_uri_dashes'] = FALSE;
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
| Examples: my-controller/index -> my_controller/index
|       my-controller/my-method -> my_controller/my_method
$route['default_controller'] = 'welcome';
$route['akses'] = 'akses/home';
$route['users'] = 'users/home';
$route['log'] = 'log/home';
$route['ssp'] = 'ssp/home';
$route['doc'] = 'doc/home';
$route['wisuda'] = 'wisuda/home';
$route['inventory'] = 'inventory/home';
$route['404_override'] = 'My404';
$route['translate_uri_dashes'] = TRUE;

Saturday, April 8, 2023

Aneka Aplikasi dengan Bahasa Pemrograman C++ (cpp/ c plus plus)

 C++ adalah salah satu bahasa pemrograman yang populer dan dibuat oleh Bjarne Stroustrup. C++ telah mendukung konsep Pemrograman Berorientasi Objek (Object Oriented Programming) inilah yang membedakan C++ dengan bahasa C.

Bahasa pemrograman C adalah bahasa pemrograman komputer yang bertujuan secara umum untuk Sistem Operasi Unix di Bell Telephone Laboratories yang dibuat pada tahun 1972 oleh Dennis Ritchie. Secara desainnya, fitur C jelas memiilki target yang mencerminkan kemampuan CPU.

C++ pada awalnya disebut sebagai "C dengan Kelas" (C With Classes) dan diciptakan untuk memiliki fitur pemrograman berorientasi objek. Karena C++ berdasarkan dari C, maka kebanyakan kode C bisa dirakit di kompilator C++ dengan mudah. Perbedaan keduanya seperti kata "new" dan "delete" terdapat di kode C dan tidak bisa dirakit di C++ karena kata-kata ini adalah bentuk (message) C++. Pustaka C biasanya bisa diimpor ke pustaka C++, tapi karena kompilator C dan C++ memiliki "name mangling" yang berbeda, maka perubahan kecil di kode C perlu dilakukan.

Kompilasi di C++ merupakan proses mengubah code menjadi bahasa komputer sebagaimana komputer hanya mengerti instruksi 1 dan 0. Standarisasi C++ telah dikeluarkan mulai tahun 1998 hingga yang terbaru pada tanggal 12 Agustus 2011 yang diterbitkan sebagai C++. 

Berikut compiler yang telah menggunakan C++:

IDE Platform Command

GCC Linux g++ -std=c++0x example.cpp -o example_program

Clang OS X clang++ -std=c++11 -stdlib=libc++ example.cpp -o example_program

Untuk memudahkan pengguna mengkompilasi program C++ dengan menggunakan Integrated Development Environment (IDE). Berikut beberapa IDE yang mendukung bahasa C++:

IDE Platform

Code::Blocks Windows, Linux, macOS

Dev-C++ Windows

Visual Studio Code Windows, Linux, macOS

Visual Studio Windows

There are good free C++ compilers available for all major OS platforms:

Gnu Compiler Collection: Includes g++, a popular C++ compiler. A build for Windows is available here, builds for other platforms are likely available via your platform’s package manager, or you can build it yourself using instructions here.

Clang: A new open-source C++ compiler for various platforms.

Visual C++ 2017 Community: A free Windows C++ compiler by Microsoft.

Embarcadero: A free Clang-based C++ compiler by Embarcadero.

Oracle Solaris Studio C++ Compiler: A C++ compiler for Solaris and some distributions of Linux, free for all commercial and non-commercial use.

IBM XL C/C++ Compiler: A Clang-based Community Edition is available for Linux on Power, free for production use.

Struktur Dasar Struktur adalah susunan, dasar adalah bagian paling bawah, dapat disimpulkan bahwa struktur dasar adalah yang paling mendasar dari C++. Input Output Proses input dan output merupakan hal yang penting agar kita dapat berinteraksi dengan program. Di dalam C++ terdapat beberapa fungsi untuk melakukan input dan output. Tipe Data Setiap tipe data digunakan untuk menampung konten yang berbeda. Tipe data yang menentukan jenis dari konten yang akan diisikan ke dalam variabel.


Operator meliputi operasi aritmatika dasar seperti penambahan, pengurangan, perkalian, dan pembagian. Selain aritmatika dasar, terdapat juga operator-operator lainnya yaitu assignment, unary, equality and relational, dan condition.


Jalannya suatu program pasti akan bergantung pada kondisi yang dipilih. Untuk itu kita memerlukan percabangan yang berfungsi sebagai control flow statement atau statement yang dapat mengontrol alur jalan suatu kode berdasarkan kondisinya.


Perulangan adalah kode yang bisa kita gunakan untuk mengulang beberapa instruksi kode, seperti for, while, dan do-while.


Array adalah kumpulan data yang dimasukkan ke dalam satu objek.


Fungsi adalah kumpulan dari beberapa statement yang melakukan tugas tertentu dan dapat dipanggil di dalam fungsi lainnya.


Header adalah file yang berisi kumpulan fungsi dan variabel yang digunakan ke dalam program C++.

CodeBlocks C++ program not running
go to "Compiler Settings" ("Settings" -> "Compiler" -> Global compiler settings), and Click "Reset Defaults". Ini akan mencari lokasi minGW yang sudah ada di komputer. Pastikan MinGW sudah terinstall sebelumnya.