<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amin ASLAMI on Medium]]></title>
        <description><![CDATA[Stories by Amin ASLAMI on Medium]]></description>
        <link>https://medium.com/@aminaslami?source=rss-2fba3e6b289b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m25WILifpBCVMTqUX8I7Lw.png</url>
            <title>Stories by Amin ASLAMI on Medium</title>
            <link>https://medium.com/@aminaslami?source=rss-2fba3e6b289b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:06:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aminaslami/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why CUDA Python?]]></title>
            <link>https://medium.com/@aminaslami/why-cuda-python-5f2e92edfa8c?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f2e92edfa8c</guid>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cuda-python]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 16:05:11 GMT</pubDate>
            <atom:updated>2025-02-09T16:05:11.680Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3oYUdZ3G62S6CKpAdvhfw.jpeg" /><figcaption>Python programming</figcaption></figure><p>CUDA Python combines the ease of Python with the computational power of NVIDIA GPUs, offering several key advantages:</p><p>1. <strong>Performance Acceleration</strong>:</p><p>o <strong>GPU Parallelism</strong>: Enables massive parallel processing for tasks like matrix operations, simulations, and machine learning, significantly speeding up computations compared to CPU-only execution.</p><p>o <strong>Efficient Workload Handling</strong>: Ideal for data-intensive applications (e.g., deep learning, scientific modeling) where GPUs outperform CPUs.</p><p>2. <strong>Accessibility and Productivity</strong>:</p><p>o <strong>Ease of Use</strong>: Python’s simplicity lowers the barrier to GPU programming, making it accessible to non-experts in low-level languages like C/C++.</p><p>o <strong>Rapid Prototyping</strong>: Accelerates development cycles, allowing quick iteration and testing of ideas without sacrificing performance.</p><p>3. <strong>Seamless Integration with Python Ecosystem</strong>:</p><p>o <strong>NumPy-like Libraries</strong>: Tools like CuPy and RAPIDS provide GPU-accelerated alternatives to popular Python libraries (e.g., NumPy, pandas), enabling code reuse with minimal changes.</p><p>o <strong>Machine Learning Frameworks</strong>: Integrates with PyTorch and TensorFlow, which already leverage GPUs, while allowing customization for specialized needs.</p><p>4. <strong>Libraries and Tools</strong>:</p><p>o <strong>Numba</strong>: Simplifies GPU kernel creation via decorators (e.g., @cuda.jit).</p><p>o <strong>PyCUDA</strong>: Offers direct CUDA API access for fine-grained control.</p><p>o <strong>CuPy</strong>: Provides a NumPy-like interface for GPU arrays, enabling easy migration of existing code.</p><p>5. <strong>Community and Resources</strong>:</p><p>o <strong>Vibrant Ecosystem</strong>: Leverage Python’s extensive community for support, tutorials, and pre-built solutions.</p><p>o <strong>Cross-Domain Adoption</strong>: Widely used in academia, data science, and AI research for collaborative projects.</p><p>6. <strong>Flexibility and Control</strong>:</p><p>o <strong>Custom Kernels</strong>: Enables developers to write tailored GPU kernels for niche applications.</p><p>o <strong>Heterogeneous Computing</strong>: Python acts as a “glue” language, orchestrating tasks across CPUs/GPUs within a single workflow.</p><p><strong>Use Cases</strong>:</p><p>· Deep learning training/inference.</p><p>· Scientific simulations (e.g., climate modeling, fluid dynamics).</p><p>· Real-time data processing (e.g., financial analytics, image/video processing).</p><p><strong>Trade-offs</strong>:</p><p>· Slight overhead compared to native CUDA C++, but often offset by productivity gains.</p><p>· Best suited for scenarios where development speed and ease of integration outweigh absolute performance optimization.</p><p>In summary, CUDA Python democratizes GPU computing, allowing Python developers to harness GPU power without leaving their preferred ecosystem, balancing performance, productivity, and accessibility.</p><p>Source: <a href="https://chat.deepseek.com/a/chat/s/54a70816-6a0e-4fb3-a086-0dec12115311">https://chat.deepseek.com/a/chat/s/54a70816-6a0e-4fb3-a086-0dec12115311</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f2e92edfa8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deepseek V3 how many GB require for run locally for pc laptop. 2025]]></title>
            <link>https://medium.com/@aminaslami/deepseek-v3-how-many-gb-require-for-run-locally-for-pc-laptop-2025-cf06081457a5?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf06081457a5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deepseek-v3]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deepseek]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 15:29:21 GMT</pubDate>
            <atom:updated>2025-02-09T15:43:56.743Z</atom:updated>
            <content:encoded><![CDATA[<p>The amount of storage (GB) required to run DeepSeek-V3 locally on a PC or laptop depends on several factors, including the model size, dependencies, and additional data or resources needed. Here’s a general breakdown:</p><blockquote><strong>1. Model Size:</strong><br>If DeepSeek-V3 is a large language model (LLM), the size could range from several GB to hundreds of GB, depending on the number of parameters (e.g., 7B, 13B, 70B, etc.).<br>Smaller models (e.g., 7B parameters) might require 10–20 GB of storage.<br>Larger models (e.g., 70B parameters) could require 100+ GB.</blockquote><blockquote><strong>2. Dependencies:</strong><br>Frameworks like PyTorch, TensorFlow, or Hugging Face Transformers may require additional storage (typically 1–5 GB).</blockquote><blockquote><strong>3. Additional Data:</strong><br>If the model requires datasets, tokenizers, or other resources, this could add several GB to the storage requirement.</blockquote><blockquote><strong>4. System Requirements:</strong><br>Running the model locally also requires sufficient RAM and GPU VRAM, but these are separate from storage requirements.</blockquote><h4>Estimated Storage Requirements:<br>Small Model (e.g., 7B parameters): ~15–30 GB.<br>Medium Model (e.g., 13B parameters): ~30–60 GB.<br>Large Model (e.g., 70B parameters): ~100–200 GB.</h4><p>Recommendations:<br>Ensure your PC/laptop has enough free storage to accommodate the model and its dependencies.<br>If storage is limited, consider using cloud-based solutions or smaller versions of the model.</p><p>For exact requirements, check the documentation or repository for DeepSeek-V3. Let me know if you need further clarification!</p><p>Run Locally Deepseek V3: <a href="https://github.com/deepseek-ai/DeepSeek-V3?tab=readme-ov-file#6-how-to-run-locally">https://github.com/deepseek-ai/DeepSeek-V3?tab=readme-ov-file#6-how-to-run-locally</a></p><p>Deepseek Website: <a href="https://github.com/deepseek-ai/DeepSeek-V3">https://github.com/deepseek-ai/DeepSeek-V3</a></p><p>Source: <a href="https://chat.deepseek.com/a/chat/s/1868caf3-cb56-4676-85dc-f01ba663fb7d">https://chat.deepseek.com/a/chat/s/1868caf3-cb56-4676-85dc-f01ba663fb7d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf06081457a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis (EDA) Machine Learning]]></title>
            <link>https://medium.com/@aminaslami/exploratory-data-analysis-eda-machine-learning-e4e77164bc88?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4e77164bc88</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sat, 18 May 2024 12:21:02 GMT</pubDate>
            <atom:updated>2024-05-18T12:21:02.825Z</atom:updated>
            <content:encoded><![CDATA[<p>EDA stands for Exploratory Data Analysis. It’s an approach to analyzing datasets to summarize their main characteristics, often with visual methods. EDA is used primarily to understand what data can tell us beyond the formal modeling or hypothesis testing task. It helps in understanding the data, identifying patterns, relationships, anomalies, and to formulate hypotheses for additional analysis.</p><p>Why EDA is essential in machine learning:</p><ol><li><strong>Data Understanding</strong>: EDA helps you to understand the structure and composition of your dataset. You can explore the types of features, their distributions, and how they relate to the target variable (if it’s a supervised learning problem).</li><li><strong>Data Cleaning</strong>: During EDA, you often discover missing values, outliers, or inconsistent data. Identifying and addressing these issues is crucial for building reliable models.</li><li><strong>Feature Engineering</strong>: EDA can inspire feature engineering ideas. By understanding the relationships between features and the target variable, you can create new features or transform existing ones to improve model performance.</li><li><strong>Model Selection</strong>: EDA can provide insights into which machine learning algorithms are suitable for the dataset. For example, if you notice non-linear relationships between features and the target variable, you might consider using tree-based models instead of linear models.</li><li><strong>Assumptions Checking</strong>: EDA allows you to check assumptions made by your models. For instance, if you’re building a linear regression model, you can use EDA to assess whether the assumptions of linearity, homoscedasticity, and normality hold true for your data.</li><li><strong>Communication</strong>: EDA provides a way to communicate insights about the dataset to stakeholders or team members effectively. Visualizations created during EDA can be powerful tools for conveying complex information in a clear and intuitive manner.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*6ArU-JNmJe9j3Ty97lBCOQ.png" /><figcaption>eda.py</figcaption></figure><p>In this code:</p><ul><li>We load the Iris dataset and create a pandas DataFrame to work with the data.</li><li>We display the first few rows of the dataset to get a sense of its structure.</li><li>We calculate summary statistics (mean, standard deviation, min, max, etc.) of the numerical features.</li><li>We examine the distribution of the target variable (species) to understand the class distribution.</li><li>We create a pairplot to visualize pairwise relationships between features, colored by the target variable (species).</li><li>We create a boxplot to compare the distributions of features across different target classes.</li><li>We generate a correlation heatmap to visualize the correlation between features.</li></ul><p>These visualizations and summaries provide valuable insights into the dataset’s structure, relationships between variables, and potential patterns, which are essential for subsequent steps in the machine learning pipeline.</p><p>Overall, EDA is a critical first step in the machine learning pipeline, helping you to understand your data better and make informed decisions throughout the modeling process.</p><p><strong>Author: </strong>Amin ASLAMI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4e77164bc88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supervised & Unsupervised Learning Machine Learning Techniques.]]></title>
            <link>https://medium.com/@aminaslami/supervised-unsupervised-learning-machine-learning-techniques-a211002b5f55?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a211002b5f55</guid>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sat, 18 May 2024 12:15:11 GMT</pubDate>
            <atom:updated>2024-05-18T12:15:11.927Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Supervised Learning</strong>:</p><ul><li>In supervised learning, the algorithm learns from labeled data, meaning the data is already tagged with the correct answer. The algorithm uses this labeled data to learn the mapping function from the input variables to the output variable.</li><li>It’s like having a teacher supervising the learning process. The algorithm is given a dataset where the correct answers are provided, and it adjusts its parameters until it makes accurate predictions.</li><li>Examples:</li><li><strong><em>Classification</em></strong><em>: Predicting whether an email is spam or not.</em></li><li><strong><em>Regression</em></strong><em>: Predicting house prices based on features like size, location, etc.</em></li></ul><p><strong>Unsupervised Learning</strong>:</p><ul><li>In unsupervised learning, the algorithm tries to find patterns or intrinsic structures in the data without any labeled responses.</li><li>It’s like letting the algorithm explore on its own without a teacher; it tries to learn the patterns and the structure of the data by itself.</li><li>Examples:</li><li><strong><em>Clustering</em></strong><em>: Grouping similar documents together in a text corpus.</em></li><li><strong><em>Dimensionality Reduction</em></strong><em>: Techniques like Principal Component Analysis (PCA) where the algorithm reduces the number of features while retaining most of the information.</em></li></ul><p>For example, let’s say you want to teach a computer to recognize different types of fruits:</p><ul><li>In supervised learning, you’d show the computer pictures of fruits along with labels (e.g., “apple”, “banana”, “orange”). The computer would learn to associate features of the images with their corresponding labels.</li><li>In unsupervised learning, you might provide the computer with a large dataset of images without any labels. The computer would then try to find similarities or patterns among the images and group them accordingly, perhaps clustering images that look similar together.</li></ul><p>Example of supervised learning using Python and scikit-learn library for a classification task:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZJ43jFvR5jVDXKnps1U0w.png" /><figcaption>supervised.py</figcaption></figure><p>In this code:</p><ul><li>We load the Iris dataset, which contains features (sepal length, sepal width, petal length, petal width) of iris flowers and their corresponding species (setosa, versicolor, virginica).</li><li>We split the dataset into training and testing sets to evaluate the performance of the model.</li><li>We initialize a K-Nearest Neighbors (KNN) classifier with n_neighbors=3.</li><li>We train the classifier on the training data.</li><li>We make predictions on the testing data.</li><li>Finally, we calculate the accuracy of the model by comparing the predicted labels with the true labels of the testing data.</li></ul><p>Example of unsupervised learning using Python and scikit-learn library for clustering:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-52SiJwdCdJZVSF3KHY9g.png" /><figcaption>unsupervised.py</figcaption></figure><p>In this code:</p><ul><li>We load the Iris dataset, which contains features (sepal length, sepal width, petal length, petal width) of iris flowers. Note that in unsupervised learning, we don’t use the target variable.</li><li>We standardize the features using StandardScaler, which scales each feature to have a mean of 0 and a standard deviation of 1.</li><li>We initialize a KMeans clustering algorithm with n_clusters=3, specifying that we want to cluster the data into three groups.</li><li>We fit the KMeans model to the standardized data.</li><li>We get cluster labels assigned by KMeans to each data point.</li><li>Finally, we visualize the clusters in a scatter plot using only the first two features for simplicity. Each point is colored according to its cluster label.</li></ul><p><strong>Author:</strong> Amin ASLAMI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a211002b5f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adaptive Resonance Theory (ART) -AI]]></title>
            <link>https://medium.com/@aminaslami/adaptive-resonance-theory-art-ai-7c213aaaaf61?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c213aaaaf61</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[adaptive-resonance-theory]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sun, 12 May 2024 10:46:05 GMT</pubDate>
            <atom:updated>2024-05-12T10:46:05.757Z</atom:updated>
            <content:encoded><![CDATA[<p>Adaptive Resonance Theory (ART) is a neural network model developed by Stephen Grossberg and Gail Carpenter. It’s designed to address the stability-plasticity dilemma in learning, meaning it aims to balance the stability of learned representations with the ability to adapt to new information.</p><p>ART networks consist of two main types: ART1 and ART2. ART1 is primarily used for clustering tasks, while ART2 is more suitable for pattern recognition and classification tasks.</p><p>Here’s a basic overview of an ART1 network:</p><ol><li>Input Layer: Receives input patterns.</li><li>Recognition Layer (F1): Computes the degree of match between input patterns and stored patterns. It consists of binary units.</li><li>Comparison Layer (F2): Represents the prototype of the input patterns. It uses competitive learning to adjust its weights.</li><li>Reset Signals: These signals regulate learning and control the vigilance level, which determines how similar an input pattern must be to an existing prototype to be recognized.</li></ol><p>Here’s a simple Python code snippet to implement an ART1 network using the artlearn package:</p><p><strong>Python Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_XTKU0g_ollpeZUBOCQ8Xw.png" /><figcaption><strong><em>art.python</em></strong></figcaption></figure><p>As for integrating ART networks into AI applications, you can use them for various tasks such as clustering, pattern recognition, and classification. They can be particularly useful in situations where you need online learning capabilities and the ability to adapt to changing environments. You can integrate ART networks into larger AI systems alongside other neural network architectures or as standalone components depending on your specific requirements.</p><p><strong>Author:</strong> Amin Aslami</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c213aaaaf61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CNN and Neural Network]]></title>
            <link>https://medium.com/@aminaslami/cnn-and-neural-network-2025d7d479e0?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2025d7d479e0</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[cnn]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Mon, 06 May 2024 09:05:06 GMT</pubDate>
            <atom:updated>2024-05-06T09:05:06.763Z</atom:updated>
            <content:encoded><![CDATA[<p>A Convolutional Neural Network (CNN) is a type of artificial neural network that is primarily used for image recognition and processing1. It is a powerful tool that requires millions of labeled data points for training. A CNN is a regularized type of feed-forward neural network that learns feature engineering by itself via filters (or kernel).</p><h3>Architecture</h3><p>A CNN consists of an input layer, hidden layers, and an output layer. The hidden layers include one or more layers that perform convolutions, which is a dot product of the convolution kernel with the layer’s input matrix. This product is usually the Frobenius inner product, and its activation function is commonly ReLU. As the convolution kernel slides along the input matrix for the layer, the convolution operation generates a feature map, which in turn contributes to the input of the next layer.</p><h3>Convolutional Layers</h3><p>In a CNN, the input is a tensor with shape (number of inputs) × (input height) × (input width) × (input channels). After passing through a convolutional layer, the image becomes abstracted to a feature map, also called an activation map, with shape (number of inputs) × (feature map height) × (feature map width) × (feature map channels). Convolutional layers convolve the input and pass its result to the next layer. This is similar to the response of a neuron in the visual cortex to a specific stimulus. Each convolutional neuron processes data only for its receptive field.</p><h3>Weights</h3><p>Each neuron in a neural network computes an output value by applying a specific function to the input values received from the receptive field in the previous layer. The function that is applied to the input values is determined by a vector of weights and a bias (typically real numbers). Learning consists of iteratively adjusting these biases and weights. The vectors of weights and biases are called filters and represent particular features of the input (e.g., a particular shape). A distinguishing feature of CNNs is that many neurons can share the same filter. This reduces the memory footprint because a single bias and a single vector of weights are used across all receptive fields that share that filter, as opposed to each receptive field having its own bias and vector weighting.</p><h3>Distinguishing Features</h3><p>CNNs are distinguished from other neural networks by their superior performance with image, speech, or audio signal inputs. They have three main types of layers, which are convolutional layers, pooling layers, and fully connected layers. The convolutional layer is the first layer of a convolutional network. While convolutional layers can be followed by additional convolutional layers or pooling layers, the fully-connected layer is the final layer. With each layer, the CNN increases in its complexity, identifying greater portions of the image. Earlier layers focus on simple features, such as colors and edges. As the image data progresses through the layers of the CNN, it starts to recognize larger elements or shapes of the object until it finally identifies the intended object.</p><h3>Applications</h3><p>CNNs power image recognition and computer vision tasks. Computer vision is a field of artificial intelligence (AI) that enables computers and systems to derive meaningful information from digital images, videos, and other visual inputs, and based on those inputs, it can take action. This ability to provide recommendations distinguishes it from image recognition tasks. Some common applications of this computer vision today can be seen in.</p><h3>Conclusion</h3><p>In conclusion, CNNs are a type of neural network that specializes in processing data that has a grid-like topology, such as an image. They are comprised of node layers, containing an input layer, one or more hidden layers, and an output layer. Each node connects to another and has an associated weight and threshold. If the output of any individual node is above the specified threshold value, that node is activated, sending data to the next layer of the network. Otherwise, no data is passed along to the next layer of the network.</p><p>Source: <a href="https://labs.perplexity.ai/">https://labs.perplexity.ai</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2025d7d479e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips and Shortcuts to Enhance your Productivity While using Jupyter Notebook]]></title>
            <link>https://medium.com/@aminaslami/tips-and-shortcuts-to-enhance-your-productivity-while-using-jupyter-notebook-e14057260046?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e14057260046</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 09:21:08 GMT</pubDate>
            <atom:updated>2024-04-07T09:23:58.659Z</atom:updated>
            <content:encoded><![CDATA[<p>Jupyter Notebook is a powerful tool for interactive computing, data analysis, and visualization. Here are some tips and shortcuts to enhance your productivity while using Jupyter Notebook:</p><h3>Navigation Shortcuts:</h3><ul><li><strong>Esc + H:</strong> Display keyboard shortcuts.</li><li><strong>Esc:</strong> Enter command mode.</li><li><strong>Enter:</strong> Enter edit mode.</li><li><strong>Arrow Keys:</strong> Navigate cells.</li><li><strong>Shift + Enter: </strong>Run the current cell and select the next cell.</li><li><strong>Ctrl + Enter:</strong> Run selected cells.</li><li><strong>A:</strong> Insert a new cell above the current cell.</li><li><strong>B:</strong> Insert a new cell below the current cell.</li><li><strong>D, D (press D twice): </strong>Delete the current cell.</li><li><strong>Z: </strong>Undo cell deletion.</li></ul><h3>Cell Editing Shortcuts:</h3><ul><li><strong>Tab: </strong>Code completion or indent.</li><li><strong>Shift + Tab: </strong>Tooltip with docstring.</li><li><strong>Ctrl + /: </strong>Comment/uncomment selected lines.</li><li><strong>Ctrl + Shift + -: </strong>Split the cell at the cursor.</li><li><strong>Ctrl + Shift + -: </strong>Merge selected cells.</li><li><strong>Ctrl + Shift + P:</strong> Open the command palette.</li></ul><h3>Magic Commands:</h3><ul><li><strong>%: </strong>Line magic.</li><li><strong>%%: </strong>Cell magic.</li><li><strong>%time: </strong>Measure the execution time of a Python statement or expression.</li><li><strong>%timeit: </strong>Run a statement multiple times to get the average execution time.</li><li><strong>%matplotlib inline:</strong> Display plots inline within the notebook.</li><li><strong>%load_ext autoreload: </strong>Automatically reload modules before executing code.</li></ul><h3>Other Useful Tips:</h3><ul><li><strong>Kernel Restart &amp; Clear Output: </strong>Kernel -&gt; Restart &amp; Clear Output.</li><li><strong>Convert to Markdown: </strong>Cell -&gt; Cell Type -&gt; Markdown.</li><li><strong>Save the Notebook: </strong>Ctrl + S.</li><li><strong>Restart the Kernel:</strong> Kernel -&gt; Restart.</li></ul><h3>Markdown Tips:</h3><ul><li><strong>Headers: </strong>Use # for headers.</li><li><strong>Lists: </strong>Use * or — for bullet points, and 1. for numbered lists.</li><li><strong>Code Blocks: </strong>Indent code with four spaces or use triple backticks.</li><li><strong>Links: </strong>Text for hyperlinks.</li></ul><p><strong>Thanks:</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e14057260046" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium Test -ID Name, tagName, ClassName, LinkTExt, PartialLinkText, With JAVA programing…]]></title>
            <link>https://medium.com/@aminaslami/selenium-test-id-name-tagname-classname-linktext-partiallinktext-with-java-programing-676c70a18c66?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/676c70a18c66</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-engineer]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Sat, 21 Oct 2023 05:56:56 GMT</pubDate>
            <atom:updated>2023-10-21T05:56:56.844Z</atom:updated>
            <content:encoded><![CDATA[<h3>Selenium Test -ID Name, tagName, ClassName, LinkTExt, PartialLinkText, With JAVA programing language</h3><p>Below is an example of a simple test using the Java programming language, specifically using the Selenium WebDriver for web automation. This test script will open a web page and perform some basic actions on it.</p><p>First, ensure you have the necessary libraries in your project. You can include the following dependencies in your pom.xml if you are using Maven:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ceymnywMDXAbpAf9XWd2ug.png" /><figcaption>pom.xml</figcaption></figure><p>Then, you can use the following code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VY1k8xle04kk-94qAcMQA.png" /><figcaption>java</figcaption></figure><p>Make sure to replace the “path_to_chromedriver/chromedriver” with the actual path to your chromedriver. Also, update the values for the element locators as per your requirement.</p><p>Ensure you have the correct ChromeDriver version compatible with your Chrome browser version. You can download the ChromeDriver from here: <a href="https://sites.google.com/a/chromium.org/chromedriver/downloads">https://sites.google.com/a/chromium.org/chromedriver/downloads</a></p><p>Once you have set up the project correctly, you can run this script to test the basic functionalities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=676c70a18c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why We Use Cucumber Software?]]></title>
            <link>https://medium.com/@aminaslami/why-we-use-cucumber-software-0b2d3bd95648?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b2d3bd95648</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[softwaretest]]></category>
            <category><![CDATA[software-test-automation]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Thu, 19 Oct 2023 07:10:34 GMT</pubDate>
            <atom:updated>2023-10-19T07:10:34.428Z</atom:updated>
            <content:encoded><![CDATA[<p>Cucumber is a software tool that supports behavior-driven development (BDD). It allows you to define application behavior in plain meaningful English text using a simple grammar defined by a domain-specific language (DSL). Cucumber allows automation of functional validation in easily readable and understandable format, allowing non-technical people to understand what is being tested. Here are some reasons why Cucumber is widely used:</p><p>1. <strong>BDD Approach:</strong> Cucumber supports the BDD approach, which encourages collaboration between developers, QA, and non-technical or business participants in a software project.</p><p>2. <strong>Readable and Understandable Format:</strong> The plain text written in Gherkin (Cucumber’s DSL) is easy to understand and can be used by stakeholders who are not familiar with programming languages.</p><p>3. <strong>Documentation and Testing:</strong> Cucumber can serve as live documentation, as the Cucumber tests written in Gherkin serve as an easily readable documentation of the system’s behavior. These tests can also serve as a regression suite to ensure that new features do not break existing functionality.</p><p>4. <strong>Automation:</strong> Cucumber allows for automated testing of software to verify that it performs according to the specifications outlined in the Gherkin feature files. This allows for quicker feedback on the application’s behavior compared to manual testing.</p><p>5. <strong>Integration with Various Technologies:</strong> Cucumber can be integrated with various technologies and programming languages, making it a versatile choice for a range of software projects.</p><p>6. <strong>Collaboration and Communication:</strong> With its focus on common understanding and shared language, Cucumber promotes better collaboration and communication among team members, helping to align business and technical goals.</p><p>7. <strong>Parallel Execution:</strong> Cucumber allows for parallel execution of tests, which can significantly reduce the time required for regression testing in large projects.</p><p>Overall, Cucumber helps bridge the gap between technical and non-technical team members, enabling effective communication and collaboration, leading to the development of high-quality software that meets business requirements.</p><h3><strong>Code:</strong></h3><p>An example of a basic <strong>Cucumber </strong>test written in <strong>Java</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*ZIhfQaDLF2IHDM3VZGbqlQ.png" /><figcaption>Gherkin</figcaption></figure><ol><li>Step definitions (CalculatorSteps.java):</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*qF2vF2KhifK-Q97xv2g4VA.png" /><figcaption>Java</figcaption></figure><p>Make sure you have the necessary dependencies for Cucumber and JUnit set up in your project. This code sets up the step definitions for the feature file. When the steps in the feature file are executed, they will match with the corresponding methods in the <strong>CalculatorSteps</strong> class. The steps will perform actions such as entering numbers into the calculator and adding them. The assertions in the <strong>the_result_should_be_on_the_screen</strong> method ensure that the expected and actual results match.</p><p>You’ll need to set up the necessary Cucumber and JUnit dependencies in your <strong>pom.xml</strong> if you are using Maven, or in your build.gradle if you are using Gradle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b2d3bd95648" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python 1 - QR Code Scanner]]></title>
            <link>https://medium.com/@aminaslami/python-1-qr-code-scanner-15f35d15587a?source=rss-2fba3e6b289b------2</link>
            <guid isPermaLink="false">https://medium.com/p/15f35d15587a</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[qr-code]]></category>
            <category><![CDATA[qr-scanner]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Amin ASLAMI]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 20:23:39 GMT</pubDate>
            <atom:updated>2023-07-19T20:23:39.333Z</atom:updated>
            <content:encoded><![CDATA[<p>Sure! I can help you with that. To create a QR scanner in Python, we can use the pyzbar library, which is a wrapper around the zbar barcode reader.</p><p>First, you need to install the required libraries. Open your terminal or command prompt and run the following command:</p><pre>pip install pyzbar opencv-python</pre><p>Once you have installed the necessary libraries, you can use the following code to create a basic QR scanner:</p><pre>import cv2<br>from pyzbar import pyzbar<br><br>def scan_qr_code(image_path):<br>    # Load the image<br>    image = cv2.imread(image_path)<br><br>    # Convert the image to grayscale<br>    gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)<br><br>    # Create a QR code scanner<br>    scanner = pyzbar.Scanner()<br><br>    # Scan the image for QR codes<br>    results = scanner.scan(gray)<br><br>    # Process the results<br>    for result in results:<br>        # Extract the bounding box coordinates<br>        x, y, w, h = result.rect<br><br>        # Draw a rectangle around the QR code<br>        cv2.rectangle(image, (x, y), (x + w, y + h), (0, 255, 0), 2)<br><br>        # Extract the QR code data<br>        qr_code_data = result.data.decode(&quot;utf-8&quot;)<br>        qr_code_type = result.type<br><br>        # Print the QR code data and type<br>        print(&quot;QR Code Data:&quot;, qr_code_data)<br>        print(&quot;QR Code Type:&quot;, qr_code_type)<br><br>    # Display the image<br>    cv2.imshow(&quot;QR Code Scanner&quot;, image)<br>    cv2.waitKey(0)<br>    cv2.destroyAllWindows()<br><br># Provide the path to the image containing the QR code<br>image_path = &quot;path/to/your/image.png&quot;<br><br># Call the function to scan the QR code<br>scan_qr_code(image_path)</pre><p>In the above code, replace &quot;path/to/your/image.png&quot; with the actual path to the image file you want to scan. The code will load the image, convert it to grayscale, and scan for QR codes using the pyzbar library. It will then draw rectangles around the detected QR codes and print their data and type. Finally, it will display the image with the detected QR codes highlighted.</p><p>Make sure to have an image with a QR code available and update the image_path variable accordingly. Run the code, and it will scan the QR code in the image and display the result. If multiple QR codes are present in the image, it will process each one individually.</p><p>I hope this helps you get started with creating a QR scanner in Python! Let me know if you have any further questions.</p><p>Author: Amin ASLAMI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15f35d15587a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>