Open in app

Sign In

Write

Sign In

Salil Jain
Salil Jain

155 Followers

Home

About

Published in InfoSec Write-ups

·Jun 15, 2022

Phishing Domain Detection using Neural Networks

Applying neural networks on domain name analysis to detect phishing — Domain Name Analysis StreamingPhish is one of the implementations of domain name analysis. The idea behind domain name analysis is to train curated data of known benign and phishing domains. In StreamingPhish a feature vector of 348 dimensions is derived from the domain name and then trained using LogisticRegression. …

Phishing

4 min read

Phishing Domain Detection using Neural Networks
Phishing Domain Detection using Neural Networks
Phishing

4 min read


Published in InfoSec Write-ups

·Jun 7, 2022

Detecting DNS Tunneling using Spark Structured Streaming

From generating DNS logs to end-to-end implementation of structured streaming — DNS A quick note on DNS before we start describing DNS tunneling and how to detect it using Spark Structured Streaming. DNS stands for Domain Name System and even though you may not have explicitly used it though your machine certainly used it before getting to this page. When you clicked…

Cybersecurity

10 min read

Detecting DNS Tunneling using Spark Structured Streaming
Detecting DNS Tunneling using Spark Structured Streaming
Cybersecurity

10 min read


Published in Towards Data Science

·Sep 20, 2021

Wrapping PySpark DataFrames using The Decorator Pattern in Python

How to wrap a PySpark DataFrame? — In one of my projects, I needed to enhance the existing DataFrame functionality. One way would be to implement utility methods that can take the DataFrame and implement additional functionality as needed. …

Pyspark

3 min read

Wrapping PySpark DataFrames using The Decorator Pattern in Python
Wrapping PySpark DataFrames using The Decorator Pattern in Python
Pyspark

3 min read


Published in Towards Data Science

·Feb 22, 2021

Distributed Hugging Face Tokenizer using PySpark

How to broadcast tokenizer and use it with UDFs — In this short post, I would show how to use Hugging Face Tokenizer. Before going into details on how to apply tokenizer on a DataFrame using PySpark, let us first look at some simple tokenizer code. The above code simply loads a pre-trained tokenizer roberta-base. It prints out a…

NLP

2 min read

Distributed Hugging Face Tokenizer using PySpark
Distributed Hugging Face Tokenizer using PySpark
NLP

2 min read


Published in in-python-i-trust

·Oct 15, 2020

oh my lovely: list comprehension

in python i trust — verse 4 — list comprehension is some snazzy s**t make ma code smaller it’s called pying it in python i trust in python i trust List comprehensions provide a concise way to create lists. Common applications are to make new lists where each element is the result of some operations applied to each…

Python

3 min read

oh my lovely: list comprehension
oh my lovely: list comprehension
Python

3 min read


Published in in-python-i-trust

·Oct 14, 2020

small and anonymous lambda

in python i trust — verse 3 —

Python

1 min read

small and anonymous lambda
small and anonymous lambda
Python

1 min read


Published in in-python-i-trust

·Oct 13, 2020

add ’em tuples

in python i trust — verse 2

Software Development

1 min read

add ’em tuples
add ’em tuples
Software Development

1 min read

add ’em tuples

--

--


Published in in-python-i-trust

·Updated Oct 15, 2020

add list or dictionaries…it’s easy

in python i trust — verse 1 — if you got a list or gotta dictionary add them up now that I call some witchery in python i trust in python i trust This is about a simple list and dictionary addition. Above prints out [1, 2, 3, 4, 5], which is merging two lists together. Starting…

Python

2 min read

add list or dictionaries…it’s easy
add list or dictionaries…it’s easy
Python

2 min read


Published in Towards Data Science

·Oct 12, 2020

Python Decorators with Data Science: Random Sampling

Using python decorator to do random sampling — This post is more educational in terms of learning a few concepts together. I was wondering how can I use python decorators with a specific Data Science concept and the idea for this post was born. Let us first look into the random sampling on how it is done. Random Sampling The…

Python

5 min read

Python Decorators with Data Science: Random Sampling
Python Decorators with Data Science: Random Sampling
Python

5 min read


Published in Better Programming

·Oct 9, 2020

Decorator Pattern and Python Decorators

Why are they not the same? — “The DecoratorPattern is a pattern described in the DesignPatternsBook. It is a way of apparently modifying an object’s behavior, by enclosing it inside a decorating object with a similar interface. This is not to be confused with PythonDecorators, which is a language feature for dynamically modifying a function or class.”…

Programming

5 min read

Decorator Pattern and Python Decorators
Decorator Pattern and Python Decorators
Programming

5 min read

Salil Jain

Salil Jain

155 Followers

Data Science Enthusiast https://www.linkedin.com/in/jainsalil/

Following
  • Rahul Banerjee

    Rahul Banerjee

  • Juan Cruz Martinez

    Juan Cruz Martinez

  • 💡Mike Shakhomirov

    💡Mike Shakhomirov

  • Tony Yiu

    Tony Yiu

  • Darrin Atkins

    Darrin Atkins

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech