#Geolocation Db
Explore tagged Tumblr posts
Text
Get City By Ip | Ip City Database | DB-IP

Users expect websites to deliver personal and relevant experiences. One effective way to provide this is by using geolocation data to get city by IP. Knowing a user’s city location allows websites to deliver tailored content, optimize service delivery, and improve security. Geolocation database providers make it possible to enhance user experience by understanding where your visitors are coming from and what might interest them based on their city. Offering content that resonates with a user’s location creates a more engaging experience. For example, if you know a visitor’s city, you can show them information specific to their area.
See More:- https://www.trendsmezone.com/get-city-by-ip-8-ways-it-can-improve-your-websites-user-experience/
0 notes
Text
Leveraging ADF for Real-Time Fraud Detection in E-Commerce
Fraud detection is a major challenge for e-commerce platforms, as online transactions generate massive amounts of data that need to be analyzed in real time. Azure Data Factory (ADF), combined with real-time data processing tools, enables e-commerce businesses to detect fraudulent activities swiftly, minimizing financial losses and ensuring customer trust.
Why Fraud Detection is Crucial in E-Commerce
E-commerce fraud comes in various forms, including:
Credit Card Fraud — Unauthorized use of payment details.
Account Takeover — Hackers gain access to user accounts.
Fake Returns and Refunds — Customers exploit return policies.
Promo Abuse — Users create multiple accounts to misuse discount offers.
To mitigate these risks, businesses need a scalable, real-time fraud detection system that processes large volumes of transactional data efficiently.
How Azure Data Factory Powers Real-Time Fraud Detection
Azure Data Factory integrates with real-time streaming services like Azure Stream Analytics, Azure Synapse, and Azure Machine Learning, providing a secure, scalable solution for fraud detection.
1. Ingesting Real-Time Transaction Data
ADF can pull data from multiple sources, such as:
Payment Gateways (Stripe, PayPal, etc.)
E-Commerce Databases (SQL, NoSQL, Cosmos DB, etc.)
User Behavior Logs from website and mobile apps
Third-Party Fraud Intelligence Feeds
2. Processing and Analyzing Transactions for Anomalies
ADF works with Azure Stream Analytics and Azure Databricks to:
Detect suspicious transaction patterns based on AI/ML models.
Compare transactions against historical fraud patterns.
Identify geographical inconsistencies (e.g., sudden logins from different locations).
3. Implementing Machine Learning for Fraud Detection
Using Azure Machine Learning, businesses can:
Train fraud detection models with historical and real-time transaction data.
Deploy models within Azure Synapse Analytics for predictive insights.
Automate anomaly detection alerts for rapid response.
4. Securing Sensitive Payment Data
ADF ensures compliance with PCI DSS, GDPR, and SOC 2 by:
Encrypting data in transit and at rest with Azure Key Vault.
Using role-based access control (RBAC) to limit access to sensitive data.
Leveraging Azure Monitor and Log Analytics for real-time security auditing.
5. Automating Alerts and Fraud Prevention Actions
ADF integrates with Azure Logic Apps and Power Automate to:
Trigger real-time alerts when fraud is detected.
Block suspicious transactions automatically based on predefined rules.
Notify security teams for further investigation.
Use Case: Detecting and Preventing High-Value Fraudulent Transactions
An e-commerce business wants to prevent fraudulent high-value purchases.
Step 1: Data Ingestion
ADF extracts payment details from Stripe and PayPal APIs.
Logs from user sessions and past purchase history are streamed into Azure Data Lake.
Step 2: Anomaly Detection
Azure Machine Learning models analyze the transaction in real time.
If anomalies like mismatched billing and shipping addresses or suspicious geolocation changes are detected, an alert is triggered.
Step 3: Automated Action
ADF triggers Azure Logic Apps, which:
Blocks the transaction.
Sends a two-factor authentication (2FA) request to verify the user.
Notifies the security team for manual review.
Conclusion
By leveraging Azure Data Factory, Azure Machine Learning, and real-time analytics, e-commerce businesses can build a robust fraud detection system that protects against fraudulent activities. Implementing automated alerts, secure data processing, and AI-driven fraud detection ensures faster response times, reducing financial losses and improving customer trust.
WEBSITE: https://www.ficusoft.in/azure-data-factory-training-in-chennai/
0 notes
Text
Laboratory Gas Generators Market Research, Outlook & Forecast till 2033
Laboratory Gas Generators Market size was valued at USD 509.06 Million in 2022 and is projected to reach USD 1910.28 Million by 2033, growing at a CAGR of 14.14% from 2024 to 2033.
The competitive analysis of the Laboratory Gas Generators Market offers a comprehensive examination of key market players. It encompasses detailed company profiles, insights into revenue distribution, innovations within their product portfolios, regional market presence, strategic development plans, pricing strategies, identified target markets, and immediate future initiatives of industry leaders. This section serves as a valuable resource for readers to understand the driving forces behind competition and what strategies can set them apart in capturing new target markets.
Market projections and forecasts are underpinned by extensive primary research, further validated through precise secondary research specific to the Laboratory Gas Generators Market. Our research analysts have dedicated substantial time and effort to curate essential industry insights from key industry participants, including Original Equipment Manufacturers (OEMs), top-tier suppliers, distributors, and relevant government entities.
Key Trends:
Digital Transformation: Technology continues to revolutionize market research. AI, machine learning, big data analytics, and automation are being used to gather, process, and analyze vast amounts of data, enabling deeper insights and more accurate predictions.
Consumer-Centric Approach: Understanding the consumer is fundamental. Personalization, empathy, and the use of psychographics alongside demographics are becoming crucial to grasp consumer preferences and behaviors more accurately.
Real-Time Data and Predictive Analytics: Instant access to data and the ability to predict trends and consumer behavior in real-time is becoming more important. This shift allows companies to react quickly to changes and adapt strategies dynamically.
Ethical Data Collection and Privacy: With increasing concerns about data privacy, market researchers need to be more transparent and ethical in their data collection practices. Compliance with regulations like GDPR and CCPA is vital to maintain trust with consumers.
Rise of Mobile Research: Mobile devices have become an integral part of people's lives. Leveraging mobile platforms for surveys, data collection, and consumer engagement has become essential to reach a wider and more diverse audience.
Emphasis on Qualitative Research: While quantitative data remains crucial, there's a growing emphasis on qualitative research methods like ethnography, focus groups, and in-depth interviews. These methods provide deeper insights into consumer motivations and behaviors.
The Integration of Traditional and Non-Traditional Data Sources: Beyond surveys and focus groups, market researchers are integrating data from social media, geolocation, web scraping, and other unconventional sources to get a more comprehensive understanding of consumer behavior.
AI-Powered Insights: Artificial intelligence and machine learning are increasingly used to derive actionable insights from vast datasets. AI tools can detect patterns, predict trends, and automate certain parts of the research process.
Market Research Automation: Automation is streamlining many research processes, reducing human bias, and enabling researchers to focus on the strategic interpretation of data.
Receive the FREE Sample Report of Laboratory Gas Generators Market Research Insights @ https://stringentdatalytics.com/sample-request/laboratory-gas-generators-market/13364/
Market Segmentations:
Global Laboratory Gas Generators Market: By Company • F-DGSi • VICI DBS • ErrDue s.p.a. • LNI Swissgas S.R.l. • Claind S.R.I • LabTech S.R.I • Parker Hannifin Corporation • Peak Scientific Instruments • Praxair Technology Inc. • Nel ASA Global Laboratory Gas Generators Market: By Type • Oxygen Gas Generators • Nitrogen Gas Generators • Hydrogen Gas generators • Pure gas Generators • Others Global Laboratory Gas Generators Market: By Application • Gas Analyzers • Chromatography & Spectroscopy • Others Global Laboratory Gas Generators Market: By End User • Food & Beverages Companies • Environmental Organizations • Pharmaceutical & Biotechnology Companies Chemical Companies Petrochemical Companies Others • Petrochemical Companies • Others
Regional Analysis of Global Laboratory Gas Generators Market
All the regional segmentation has been studied based on recent and future trends, and the market is forecasted throughout the prediction period. The countries covered in the regional analysis of the Global Laboratory Gas Generators market report are U.S., Canada, and Mexico in North America, Germany, France, U.K., Russia, Italy, Spain, Turkey, Netherlands, Switzerland, Belgium, and Rest of Europe in Europe, Singapore, Malaysia, Australia, Thailand, Indonesia, Philippines, China, Japan, India, South Korea, Rest of Asia-Pacific (APAC) in the Asia-Pacific (APAC), Saudi Arabia, U.A.E, South Africa, Egypt, Israel, Rest of Middle East and Africa (MEA) as a part of Middle East and Africa (MEA), and Argentina, Brazil, and Rest of South America as part of South America.
Click to Purchase Laboratory Gas Generators Market Research Report @ https://stringentdatalytics.com/purchase/laboratory-gas-generators-market/13364/?license=single
Buying a market research report can offer significant value for various individuals and businesses due to the following reasons:
Informed Decision-Making:Market research reports provide comprehensive data, analysis, and insights, enabling businesses to make informed decisions. This could include launching a new product, entering a new market, or adjusting strategies to suit current market trends.
Understanding Market Trends:These reports offer an in-depth analysis of market trends, consumer behavior, and industry developments. This knowledge helps companies stay ahead of the curve and adapt to changing market conditions.
Competitive Intelligence:Reports offer insights into competitors’ strategies, market shares, strengths, and weaknesses. Understanding the competitive landscape is crucial for companies to develop effective strategies and stay competitive.
Risk Mitigation:Market research reports can highlight potential risks and challenges in a particular market, allowing businesses to prepare and strategize accordingly to mitigate these risks.
Market Entry Strategies:For businesses looking to enter new markets, a research report can provide guidance on the best entry strategies, regulatory considerations, consumer behavior, and potential challenges in those markets.
Investment Decisions:Investors can use market research reports to evaluate potential investment opportunities. These reports provide a clear picture of industry trends and growth prospects, assisting in making informed investment decisions.
Product Development:Understanding consumer needs and preferences through market research reports helps in developing products or services that align better with the market demands.
Strategic Planning:Reports assist in strategic planning by providing a comprehensive view of the market, enabling businesses to align their goals and strategies accordingly.
Validation of Business Plans:Startups or businesses looking for funding can use market research reports to validate their business plans and strategies, making them more credible in the eyes of investors and stakeholders.
Saves Time and Resources:Conducting in-depth market research internally can be time-consuming and resource-intensive. Buying a pre-compiled market research report saves time and resources while providing a wealth of valuable information.
Customization of the Report:
This report can be customized to meet the client’s requirements. Please connect with our sales team ([email protected] ), who will ensure that you get a report that suits your needs. You can also get in touch with our executives on +1 346 666 6655 to share your research requirements.
About Stringent Datalytics
Stringent Datalytics offers both custom and syndicated market research reports. Custom market research reports are tailored to a specific client's needs and requirements. These reports provide unique insights into a particular industry or market segment and can help businesses make informed decisions about their strategies and operations.
Syndicated market research reports, on the other hand, are pre-existing reports that are available for purchase by multiple clients. These reports are often produced on a regular basis, such as annually or quarterly, and cover a broad range of industries and market segments. Syndicated reports provide clients with insights into industry trends, market sizes, and competitive landscapes. By offering both custom and syndicated reports, Stringent Datalytics can provide clients with a range of market research solutions that can be customized to their specific needs.
Reach US
Stringent Datalytics
+1 346 666 6655
Social Channels:
Linkedin | Facebook | Twitter | YouTube
0 notes
Text
拿 Cloudflare Workers 跑 Geolocation API
拿 Cloudflare Workers 跑 Geolocation API
在 Hacker News Daily 上看到拿 Cloudflare Workers 跑 Geolocation API:「How to make simple Geolocation service」。
作者想要做一個很簡單的 Geolocation API,一開始的想法是在 AWS Lambda 上用 MaxMind 的資料,但 latency 偏高:
However, I quickly realized that the response time isn’t what I’ve expected – on average the response took somewhere between from 200ms to 500ms. So I started looking for other options.
所以作者就想到是不是有有機會丟到 Cloudflare…
View On WordPress
#api#aws#cdn#cloudflare#database#db#geolite2#geolocation#lambda#maxmind#request#serverless#service#workers
0 notes
Photo
hydralisk98′s web projects tracker:
Core principles=
Fail faster
‘Learn, Tweak, Make’ loop
This is meant to be a quick reference for tracking progress made over my various projects, organized by their “ultimate target” goal:
(START)
(Website)=
Install Firefox
Install Chrome
Install Microsoft newest browser
Install Lynx
Learn about contemporary web browsers
Install a very basic text editor
Install Notepad++
Install Nano
Install Powershell
Install Bash
Install Git
Learn HTML
Elements and attributes
Commenting (single line comment, multi-line comment)
Head (title, meta, charset, language, link, style, description, keywords, author, viewport, script, base, url-encode, )
Hyperlinks (local, external, link titles, relative filepaths, absolute filepaths)
Headings (h1-h6, horizontal rules)
Paragraphs (pre, line breaks)
Text formatting (bold, italic, deleted, inserted, subscript, superscript, marked)
Quotations (quote, blockquote, abbreviations, address, cite, bidirectional override)
Entities & symbols (&entity_name, &entity_number,  , useful HTML character entities, diacritical marks, mathematical symbols, greek letters, currency symbols, )
Id (bookmarks)
Classes (select elements, multiple classes, different tags can share same class, )
Blocks & Inlines (div, span)
Computercode (kbd, samp, code, var)
Lists (ordered, unordered, description lists, control list counting, nesting)
Tables (colspan, rowspan, caption, colgroup, thead, tbody, tfoot, th)
Images (src, alt, width, height, animated, link, map, area, usenmap, , picture, picture for format support)
old fashioned audio
old fashioned video
Iframes (URL src, name, target)
Forms (input types, action, method, GET, POST, name, fieldset, accept-charset, autocomplete, enctype, novalidate, target, form elements, input attributes)
URL encode (scheme, prefix, domain, port, path, filename, ascii-encodings)
Learn about oldest web browsers onwards
Learn early HTML versions (doctypes & permitted elements for each version)
Make a 90s-like web page compatible with as much early web formats as possible, earliest web browsers’ compatibility is best here
Learn how to teach HTML5 features to most if not all older browsers
Install Adobe XD
Register a account at Figma
Learn Adobe XD basics
Learn Figma basics
Install Microsoft’s VS Code
Install my Microsoft’s VS Code favorite extensions
Learn HTML5
Semantic elements
Layouts
Graphics (SVG, canvas)
Track
Audio
Video
Embed
APIs (geolocation, drag and drop, local storage, application cache, web workers, server-sent events, )
HTMLShiv for teaching older browsers HTML5
HTML5 style guide and coding conventions (doctype, clean tidy well-formed code, lower case element names, close all html elements, close empty html elements, quote attribute values, image attributes, space and equal signs, avoid long code lines, blank lines, indentation, keep html, keep head, keep body, meta data, viewport, comments, stylesheets, loading JS into html, accessing HTML elements with JS, use lowercase file names, file extensions, index/default)
Learn CSS
Selections
Colors
Fonts
Positioning
Box model
Grid
Flexbox
Custom properties
Transitions
Animate
Make a simple modern static site
Learn responsive design
Viewport
Media queries
Fluid widths
rem units over px
Mobile first
Learn SASS
Variables
Nesting
Conditionals
Functions
Learn about CSS frameworks
Learn Bootstrap
Learn Tailwind CSS
Learn JS
Fundamentals
Document Object Model / DOM
JavaScript Object Notation / JSON
Fetch API
Modern JS (ES6+)
Learn Git
Learn Browser Dev Tools
Learn your VS Code extensions
Learn Emmet
Learn NPM
Learn Yarn
Learn Axios
Learn Webpack
Learn Parcel
Learn basic deployment
Domain registration (Namecheap)
Managed hosting (InMotion, Hostgator, Bluehost)
Static hosting (Nertlify, Github Pages)
SSL certificate
FTP
SFTP
SSH
CLI
Make a fancy front end website about
Make a few Tumblr themes
===You are now a basic front end developer!
Learn about XML dialects
Learn XML
Learn about JS frameworks
Learn jQuery
Learn React
Contex API with Hooks
NEXT
Learn Vue.js
Vuex
NUXT
Learn Svelte
NUXT (Vue)
Learn Gatsby
Learn Gridsome
Learn Typescript
Make a epic front end website about
===You are now a front-end wizard!
Learn Node.js
Express
Nest.js
Koa
Learn Python
Django
Flask
Learn GoLang
Revel
Learn PHP
Laravel
Slim
Symfony
Learn Ruby
Ruby on Rails
Sinatra
Learn SQL
PostgreSQL
MySQL
Learn ORM
Learn ODM
Learn NoSQL
MongoDB
RethinkDB
CouchDB
Learn a cloud database
Firebase, Azure Cloud DB, AWS
Learn a lightweight & cache variant
Redis
SQLlite
NeDB
Learn GraphQL
Learn about CMSes
Learn Wordpress
Learn Drupal
Learn Keystone
Learn Enduro
Learn Contentful
Learn Sanity
Learn Jekyll
Learn about DevOps
Learn NGINX
Learn Apache
Learn Linode
Learn Heroku
Learn Azure
Learn Docker
Learn testing
Learn load balancing
===You are now a good full stack developer
Learn about mobile development
Learn Dart
Learn Flutter
Learn React Native
Learn Nativescript
Learn Ionic
Learn progressive web apps
Learn Electron
Learn JAMstack
Learn serverless architecture
Learn API-first design
Learn data science
Learn machine learning
Learn deep learning
Learn speech recognition
Learn web assembly
===You are now a epic full stack developer
Make a web browser
Make a web server
===You are now a legendary full stack developer
[...]
(Computer system)=
Learn to execute and test your code in a command line interface
Learn to use breakpoints and debuggers
Learn Bash
Learn fish
Learn Zsh
Learn Vim
Learn nano
Learn Notepad++
Learn VS Code
Learn Brackets
Learn Atom
Learn Geany
Learn Neovim
Learn Python
Learn Java?
Learn R
Learn Swift?
Learn Go-lang?
Learn Common Lisp
Learn Clojure (& ClojureScript)
Learn Scheme
Learn C++
Learn C
Learn B
Learn Mesa
Learn Brainfuck
Learn Assembly
Learn Machine Code
Learn how to manage I/O
Make a keypad
Make a keyboard
Make a mouse
Make a light pen
Make a small LCD display
Make a small LED display
Make a teleprinter terminal
Make a medium raster CRT display
Make a small vector CRT display
Make larger LED displays
Make a few CRT displays
Learn how to manage computer memory
Make datasettes
Make a datasette deck
Make floppy disks
Make a floppy drive
Learn how to control data
Learn binary base
Learn hexadecimal base
Learn octal base
Learn registers
Learn timing information
Learn assembly common mnemonics
Learn arithmetic operations
Learn logic operations (AND, OR, XOR, NOT, NAND, NOR, NXOR, IMPLY)
Learn masking
Learn assembly language basics
Learn stack construct’s operations
Learn calling conventions
Learn to use Application Binary Interface or ABI
Learn to make your own ABIs
Learn to use memory maps
Learn to make memory maps
Make a clock
Make a front panel
Make a calculator
Learn about existing instruction sets (Intel, ARM, RISC-V, PIC, AVR, SPARC, MIPS, Intersil 6120, Z80...)
Design a instruction set
Compose a assembler
Compose a disassembler
Compose a emulator
Write a B-derivative programming language (somewhat similar to C)
Write a IPL-derivative programming language (somewhat similar to Lisp and Scheme)
Write a general markup language (like GML, SGML, HTML, XML...)
Write a Turing tarpit (like Brainfuck)
Write a scripting language (like Bash)
Write a database system (like VisiCalc or SQL)
Write a CLI shell (basic operating system like Unix or CP/M)
Write a single-user GUI operating system (like Xerox Star’s Pilot)
Write a multi-user GUI operating system (like Linux)
Write various software utilities for my various OSes
Write various games for my various OSes
Write various niche applications for my various OSes
Implement a awesome model in very large scale integration, like the Commodore CBM-II
Implement a epic model in integrated circuits, like the DEC PDP-15
Implement a modest model in transistor-transistor logic, similar to the DEC PDP-12
Implement a simple model in diode-transistor logic, like the original DEC PDP-8
Implement a simpler model in later vacuum tubes, like the IBM 700 series
Implement simplest model in early vacuum tubes, like the EDSAC
[...]
(Conlang)=
Choose sounds
Choose phonotactics
[...]
(Animation ‘movie’)=
[...]
(Exploration top-down ’racing game’)=
[...]
(Video dictionary)=
[...]
(Grand strategy game)=
[...]
(Telex system)=
[...]
(Pen&paper tabletop game)=
[...]
(Search engine)=
[...]
(Microlearning system)=
[...]
(Alternate planet)=
[...]
(END)
4 notes
·
View notes
Text
Sqlite for mac

SQLITE FOR MAC HOW TO
SQLITE FOR MAC UPDATE
SQLITE FOR MAC PRO
SQLITE FOR MAC FREE
I also don't want the copy/move bundle design, that's because Mac have a sandbox which make the App can't write to the temp file created by sqlite library.
SQLITE FOR MAC PRO
The in-app feature is a way to make the price down, and there's also a pro version with all feature in the store. If you aren’t trying to use the DB on multiple platforms and apps (navicat on win7 and an sqlite app on iPad) and are looking for a sqlite app in the app store then this might work for you. Pros: Nice interface, Column settings for the form are intuitive and work well. I had also hoped to use it to enable combo boxes for FK entries- but it’s not one of the controls available. bundle file that fubars my current system. It instead moves/copies the database into a. SQLite DBM won’t write to that file, however. sqlite file on dropbox for work, home, etc on multiple OSes. My attempt to purchase the webserver package was thwarted by inaction after pressing the Buy button. I had hoped to use this to enable quick form generation without needing to spend time coding- just a personal DB to track stuff.Īfter you pay the $4 for the app, it’s another $5 for write access, $10 for the App Builder. * Support Rows Table List, Row detail data controls, search field * Bind database table row data to user control * Build customised User Interface for your database * Configable URL Path, template and server port It's safe, as anyone can review source code.
SQLITE FOR MAC FREE
It's free of charge for everybody, for any purpose (including commercial). * Easy setup template for list page and detail page SQLiteStudio is a free, open source, multi-platform SQLite database manager written in C++, with use of Qt framework. * Publish data on local network with one single click, view and add data on any web browser from mobile devices or computers for your understanding purpose i create database name as M圜ircle. In-App Purchase 'Instant Web Server' Features: type the command SQlite3 databasename.sqlite and press enter. Please select the column which have enough length to save Latitude and Longitude. Select address column to search, and select save to column to save the found geolocation.
SQLITE FOR MAC UPDATE
* Auto update Geolocation by search address any column contain this format geolocation: * Create contacts table by import ContactsĢ. * Cross table ID,Value single or multi-select using the Data Picker * 10+ data edit UI control (include Map, Date Time, Checkbox, Rating, Color Picker,Dropdown, Multi-select.) If table data have photo/image field, you can switch to photo collection view by click on toggle C/T button next to page control buttons. * Works great with companion mobile app 'Sqlite Database Manager' for iPhone and iPad * Drag drop rearrange column order and change column width in main table * Choose tables to show and columns to show * Sort table data by click on the column header * 10+ data view UI control (include Map, Date Time, Checkbox, Rating, Color. With the In-App Purchase 'Edit Data' and 'DB Creator' you can edit it directly on your Mac, create new databases and new tables.
Copy the file to Assets/Plugins in your Unity project.Browser Sqlite Database data with Sqlite Database Manager, you can view data easily with Filter, Sort, Paging.
Go into the directory Unity.app/Contents/MonoBleedingEdge/lib/mono/ unityjit.
Mine happens to be in a directory called 2021.1.16f1, but it will of course depend on your actual version.
Go to where your working version of the Unity application is installed.
(Obviously, create Plugins folder if not there).Ģ.
Copy these 2 files to Assets/Plugins in your Unity project.
Look under "Precompiled Binaries for Windows" (I know this sounds strange, but it works).
You need to get the current version of SQLite itself. Not sure how this will work with other versions.ġ.
SQLITE FOR MAC HOW TO
After spending a few hours perusing old videos and posts, I finally figured out how to install SQLite on my Mac version of Unity.

0 notes
Link
1 note
·
View note
Text
UrlRecon Info Gathering or Recon tool for Urls -> Retrieves * Whois information of the...
UrlRecon Info Gathering or Recon tool for Urls -> Retrieves * Whois information of the domain * DNS Details of the domain * Server Fingerprint * IP geolocation of the server. Features: ▫️ Collects whois information ▫️ provides the DNS details of the target server ▫️ provides a fingerprint of the server ▫️ fetches the geo location of the domain - with a kml file to visualize ▫️ Single click operation ▫️ Output in text file and db https://github.com/Srinivas11789/urlRecon
-
0 notes
Text
My Ip Address City | Free Ip Location Database | DB-IP
DB-IP helps you find accurate geolocation details, starting with answers to My IP Address City and more. Offering seamless access to geographic insights, DB-IP enhances both personal and business applications with precision and reliability. Its Free IP Location Database is a trusted resource, providing detailed IP-to-location mappings for developers, researchers, and analysts. With an easy-to-use platform, DB-IP delivers essential tools for tracking, analyzing, and integrating location data into your applications effortlessly.
0 notes
Text
8 Powerful Secure WordPress Plugin In 2020
Keep your site safe with top Secure WordPress Plugin!
If you want to get an effective WordPress Security Plugin for your site, then you are landing in the right place. Today, we provide you a list of top best security plugin for WordPress. By using such kind of plugin, you can feel safe because it can help you to protect your site effectively. You do not have to worry about hackers or speakers. Let's take a look now and choose the best one for your site! 1. Wordfence Security – Firewall & Malware Scan
Wordfence Security is one of the most popular WordPress Secure Plugin that can help you to keep your site safe. In addition, this plugin also enables you to gain insight into the overall traffic trends as well as hack attempts. It also helps to check your website for known security vulnerabilities and then notify you of any problems. Provided features: Malware scanner checks core files Checks your site for known security vulnerabilities Checks your content safety Web Application Firewall identifies and blocks malicious traffic Checks to see if your site or IP have been blacklisted Real-time malware signature updates Two-factor authentication Compares your core files, themes, and plugins Repair files that have changed And more Highlights: Excellent support Safe Incredible service 2. iThemes Security
iThemes Security provides you more than 30 ways to protect and secure your site. Besides, through this plugin, you can also lock down your WordPress, strengthen your user credentials, stop automated attacks, and repair common holes as well. Thanks to many professional features included in this WordPress Security Plugin, it can help you to harden your WordPress site. Provided features: Password Security Two-Factor Authentication Google reCAPTCHA Temporary Privilege Escalation User Action Logging Import/Export Settings Dashboard Widget Online File Comparison Highlights: Awesome plugin Nice plugin A lot of features 3. All In One WP Security & Firewall
All In One WP Security & Firewall is an extremely stable stage. It allows users to insert several additional security and firewall to your sites by using a security plugin forcing a number of security practices and helps to take your website’s security to a whole new level. Besides, by scanning vulnerabilities and implementing the newest recommended WordPress security applications and techniques, it enables to reduce security risk. Provided features: Database security File system security Security scanners Front-end text copy protect Work with the most popular WordPress Plugins Blacklist functionality Firewall functionality Highlights Unmistakable warnings alert A flexible and robust plugin Be configured in detail 4. Defender WordPress Security, Malware Detection, and Firewall
Here is a great WordPress Secure Plugin that you should install for your site. Defender WordPress Security helps you to insert all the hardening as well as security tweaks that you need for your site in real-time. In terms of spam prevention, this plugin helps you to disable pingbacks and trackbacks in real-time. Provided features: Disable trackbacks and pingbacks Two-factor authentication Login masking Update security keys Prevent information disclosure Prevent PHP execution Geolocation IP lockout WordPress Security Firewall And more Highlights: Straight forward Work great Awesome plugin 5. BulletProof Security
BulletProof Security helps to secure your site very effectively. It provides you 2 versions: a free version and premium version. With a premium version, you can get this powerful plugin just by $69.95 and you can get a 30-day money-back guarantee. A number of features for both free and paid versions also contained in this plugin. Provided features: Login Security & Monitoring Idle Session Logout Auth Cookie Expiration One-Click Setup Wizard Setup Wizard AutoFix MScan Malware Scanner Hidden Plugin Folders|Files Cron DB Backup: Full|Partial DB Backups DB Table Prefix Changer HTTP Error Logging And more Highlights: Work like a charm Great support Work amazing 6. Shield Security: Protection with Smarter Automation
Shield Security is a wonderful WordPress Security Plugin which is suitable for beginners and advanced users. This plugin helps you to protect your site since you activate it. What’s more, by using this plugin, you can feel safe that it blocks totally automated comments SPAM for you. Provided features: Block 100% Automated Comments SPAM Beautiful, Easy-To-Use Guided Wizards Limit Login Attempts / Block Automatic Brute-Force Bots HTTP Headers Automatic Updates Control Powerful Core File Scanners Automatic IP Black List 2-Factor Authentication And more Highlights: Simple and effective Great support Amazing security plugin 7. Security Ninja – WordPress Security Plugin
Security Ninja is a wonderful WordPress Security Plugin which has helped thousands of website owners. What’s more, using this plugin also allows you to check your WordPress site for security vulnerabilities, holes, and problems. It also helps you to take preventive measures from attacks. Provided features: Check your site for security vulnerabilities, issues & holes Take preventive measures against attacks Perform 50+ security tests with one click Complete list of tests Prevent 0-day exploit attacks Optimize and speed-up your database And more Highlights: Brilliant plugin Work like expected Helpful 8. SecuPress Free — WordPress Security
SecuPress Free helps you to protect your site effectively with block bots, suspicious IPs, and malware scans. This plugin provides you a great UI as well as easy to use interface. Using this plugin also helps you to detect your vulnerable themes and plugins or those which have been tampered with to include malicious code. Provided features: Anti Brute Force login Protection of Security Keys Block visits from Bad Bots Vulnerable Plugins & Themes detection Security Reports in PDF format Malware Scan Block country by geolocation And more Highlights: Very responsive support Excellent Amazing Conclusion Having a Secure WordPress Plugin is very essential for any website. By using it, you can keep your site safer. In addition, don’t forget to visit our free WordPress themes to get some beautiful designs for your site. Thank you so much for reading! If you have any questions, please leave a comment below, we will reply as soon as possible! Read the full article
0 notes
Text
Apple postpones launch of online store in India
New Post has been published on https://apzweb.com/apple-postpones-launch-of-online-store-in-india/
Apple postpones launch of online store in India

KOLKATA: Apple has deferred plans to start company-owned online store in India from the January-March quarter to August-September wanting more time to complete the back-end work and to roll it around a high sales period to coincide with the launch of new iPhones before the festive season, two senior industry executives said.
Apple CEO Tim Cook is going to make his second India visit around June-July to take stock of the India business, including manufacturing expansion, exports from the country and roll out of both company-owned online and brick-and mortar Apple stores, they said. Cook is also likely to meet Prime Minister Narendra Modi. Cook’s maiden India visit was in 2016.
“Since over 30% of iPhone sales in India is generated from e-commerce sites like Flipkart and Amazon, the company wants to time the India launch around launch of new iPhones,” one of the executive said.
He said while it was earlier targeting this quarter considering Apple may launch a new iPhone model, but back-end work like logistics and supply chain are still not sorted to meet global standards.
Apple’s distribution centre near Mumbai operated by global logistic partner DB Schenker will act as the hub for the company’s online store. The brick-and-mortar Apple Store will, however, come up next year since it takes over 10-12 months to set up such a store. Apple will set up its first Apple Store in Mumbai followed by another one in Delhi-NCR, the executives said. Meanwhile, Apple headquarters in Cupertino is finalising plans for Cook’s visit to India. He is likely to announce the physical Apple Stores and online store, review other plans, and meet the prime minister and senior government ministers.
Apple India did not respond to an email sent on Monday.
BCCL

Market researcher Counterpoint Research associate director Tarun Pathak said since the price discrepancy between online and offline is not as high for Apple unlike other smartphone brands, it can leverage the company online store.
“However, volumes may not be strong since Indian consumers still prefer to buy an iPhone either from a store or when there is huge discount in online marketplaces. The online store can fulfil the demand if there is a demand for a particular colour or memory variant,” said Pathak.
India last August allowed single brand foreign companies to sell directly through webstores in the country after which Apple started freezing its plans.
Apple turned around its India business in 2019 after it reported a drop in iPhone sales in 2018. As per Counterpoint, Apple shipped 1.9 million units of iPhone to India last year, up from 1.8 million units in 2018. It was one of the fastest-growing brands in the October-December quarter of last year driven by multiple price cuts on iPhone XR due to local manufacturing in India.
The company also had the fastest rollout of new iPhones in India last year. Apple started its second manufacturing line in India through contract manufacturer Foxconn and exports from the country. It has around 2% share of the overall Indian smartphone market.
if(geolocation && geolocation != 5 && (typeof skip == 'undefined' || typeof skip.fbevents == 'undefined')) !function(f,b,e,v,n,t,s) if(f.fbq)return;n=f.fbq=function()n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments); if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '338698809636220'); fbq('track', 'PageView');
Source link
0 notes
Photo

Parcel 1.10, TypeScript 3.1, and lots of handy JS snippets
#405 — September 28, 2018
Read on the Web
JavaScript Weekly

30 Seconds of Code: A Curated Collection of Useful JavaScript Snippets — We first linked this project last year, but it’s just had a ‘1.1’ release where lots of the snippets have been updated and improved, so if you want to do lots of interesting things with arrays, math, strings, and more, check it out.
30 Seconds
Mastering Modular JavaScript — Nicolas has been working on this book about writing robust, well-tested, modular JavaScript code for some time now, and it’s finally been published as a book. You can read it online for free too, or even direct from the book’s git repo.
Nicolas Bevacqua
Burn Your Logs — Use Sentry's open source error tracking to get to the root cause of issues. Setup only takes 5 minutes.
Sentry sponsor
Parcel 1.10.0 Released: Babel 7, Flow, Elm, and More — Parcel is a really compelling zero configuration bundler and this release brings Babel 7, Flow and Elm support. GitHub repo.
Devon Govett
TypeScript 3.1 Released — TypeScript brings static type-checking to the modern JavaScript party, and this latest release adds mappable tuple and array types, easier properties on function declarations, and more. Want to see what’s coming up in 3.2 and beyond? Here’s the TypeScript roadmap.
Microsoft
💻 Jobs
Mid-Level Front End Engineer @ HITRECORD (Full Time, Los Angeles) — Our small dynamic team is looking for an experienced frontend developer to help build and iterate features for an open online community for creative collaboration.
Hitrecord
Try Vettery — Create a profile to connect with inspiring companies seeking JavaScript devs.
Vettery
📘 Tutorials and Opinions
Creating Flocking Behavior with Virtual Birds — A gentle and effective walkthrough of creating and animating flocks of virtual birds.
Drew Cutchins
Rethinking JavaScript Test Coverage — The latest version of V8 offers a native code coverage reporting feature and here’s how it works with Node.
Benjamin Coe (npm, Inc.)
Getting Started with the Node-Influx Client Library — The node-influx client library features a simple API for most InfluxDB operations and is fully supported in Node and the browser, all without needing any extra dependencies.
InfluxData sponsor
How Dropbox Migrated from Underscore to Lodash
Dropbox
Create a CMS-Powered Blog with Vue.js and ButterCMS
Jake Lumetta, et al.
Understanding Type-Checking and 'typeof' in JavaScript
Glad Chinda
Airbnb's Extensive JavaScript Style Guide — Airbnb’s extremely popular guide continues to get frequent updates.
Airbnb
Webinar: Getting the Most Out of MongoDB on AWS
mongodb sponsor
16 JavaScript Podcasts to Listen To in 2018 — Podcasts, like blogs, have a way of coming and going, but these are all ready to listen to now.
François Lanthier Nadeau podcast
Five Tips to Write Better Conditionals in JavaScript
Jecelyn Yeen
🔧 Code and Tools

Tabulator: A Fully Featured, Interactive Table JavaScript Library — Create interactive data tables quickly from any HTML table or JavaScript or JSON data source.
Oli Folkerd
Vandelay: Automatically Generate Import Statements in VS Code
Visual Studio Marketplace
APIs and Infrastructure for Next-Gen JavaScript Apps — Build and scale interactive, immersive apps with PubNub - chat, collaboration, geolocation, device control and gaming.
PubNub sponsor
Apify SDK: Scalable Web Crawling and Scraping from Node — Manage and scale a pool of headless Chrome instances for crawling sites.
Apify
Cloudflare Adds a Fast Distributed Key-Value Store to Its Serverless JavaScript Platform
Stephen Pinkerton and Zack Bloom (Cloudflare)
turtleDB: For Building Offline-First, Collaborative Web Apps — It uses the in-browser IndexedDB database client-side but can then use MongoDB as a back-end store for bi-directional sync.
turtle DB
An Example of a Dynamic Input Placeholder — This is a really neat effect.
Joe B. Lewis
by via JavaScript Weekly https://ift.tt/2DFnnvO
0 notes
Text
Kalimera Native Web Mobile App Travel & Share App like Instagram (Native Web)
Introducing – Kalimera Native Web Mobile App Travel & Share App like Instagram
Full Featured, Native Web Mobile App, Server Based, IOS & Android supported.
Live Demo
Check out live demo at http://ift.tt/2wq5HAv
Free Item Support
Free support on http://ift.tt/1guPVW8
Documentation
You can find documentation at http://ift.tt/2wpKlTU
Top Features
Just install and go in a second
Easy search 3 categories of posts
Share your location based images
Create account page
Login with email and password
Forget password page
Profile page
Following by you page
Followers page
Posts page
Posts likers
Add photo to posts on share page & easy rotate or crop your image
Add location to posts by Google geolocation
Select categories on sharing posts
Tap 2 times to like posts
Pull to refresh
Infinity scroll
Easy Cordova – Phonegap integration
PHP Based
MySql DB Structure
Ajax Based
Frameworks7 HTML Framework
Google geo location integration
Extensive free support & documentation
Server Side Requirements
Apache + Nginx
PHP 5.5 and above
PHP Mcrypt extension
PHP GD2 extension
MySql
Components Used In App
http://ift.tt/Z3wjMk
http://framework7.io/
https://jquery.com/
http://ift.tt/2y1iW7X
http://ift.tt/2yklNJa
http://fontawesome.io/
http://ift.tt/1NfCTIj
http://ift.tt/ZxIp3i
Changelog
Initial Release ( Sep-15-2017 )
from CodeCanyon new items http://ift.tt/2xc7Vk4 via IFTTT https://goo.gl/zxKHwc
0 notes
Quote
What Is Mongo? The name Mongo was taken from the word Humongous. In the context of storage it can mean dealing with large quantities of data. And that's what databases are pretty much for. They provide you with an interface to create, read, edit(update) and delete large sets of data (such as user data, posts, comments, geo location coordinates and so on) directly from your Node.js program. By "complete" I don't mean documentation for each Mongo function. Rather, an instance of Mongo code used as a real-world example when building a PWA. A Mongo collection is similar to what a table is in a MySQL database. Except in Mongo, everything is stored in a JSON-like object. But keep in mind that it also uses BSON to store unique _id property, similar to how MySQL stores unique row key. Installing Mongo And Basic Operations In the Terminal on Mac or bash.exe on Windows 10, log in to your remote host with ssh [email protected] (replace the x's with your web host's IP address.) Then use cd to navigate to your project directory on the remote host, for example, /dev/app. Install the system-wide Mongo service: sudo apt-get install -y mongodb The -y directive will automatically answer "yes" to all installation questions. We need to start the Mongo service after this (explained in next section.) Mongo Shell Just like MySQL has a command line shell where we can create tables, users, and so on, Mongo also has its own shell to create collections, show databases, and more. First we need to start the Mongo service: sudo service mongodb start If you ever need to stop the Mongo server, you can do that with: sudo service mongodb stop But don't stop it – we need the service running for the next part! To enter the Mongo shell, type the mongo command into your cli/bash: mongo You will see your bash change to a > character. Let's type the use command to create a new (or switch to an existing) database: > use users switched to db users Type > db to verify that we indeed switched to users database: > db users Let's take a look at all existing databases by executing the show dbs command: > show dbs admin 0.000GB local 0.000GB Even though we created a users database in the earlier step, it's not on this list. Why? That's because we haven't added any collections to the database. This means that users actually exists, but it won't be shown on this list until a collection is added. Adding Mongo Collection Let's add a new collection to users database. Remember a collection in Mongo is the equivalent of a table in MySQL: db.users.insert({name:"felix"}) We just inserted a collection into the users database. Let's run > show dbs now: > show dbs admin 0.000GB local 0.000GB users 0.000GB Simply inserting a JSON-like object into the users database has created a "table." But in Mongo, it's just part of the document-based model. You can insert more objects into this object and treat them as you would rows/columns in MySQL. Installing the Mongo NPM Package npm install mongodb --save Generating The Data Before we go over Mongo methods, let's decide what we want to store in the database Let's take a look at world coordinate system. It's quite different from Cartesian. The central point here is located relatively near Lagos, Nigeria: Latitude and Longitude visualized. [0,0] point is located in the center of the coordinate system with axis going left and down in negative direction. HTML5 geo location will take care of calculating your location automatically based on your IP address. But we still need to convert it to 2D on the image. Image credit. Front-End Collecting the data. HTML5 provides an out-of-the-box geo location system and gives us latitude and longitude, as long as the client agrees to share that information. The following code will create a pop up message box on desktop and mobile devices asking users to "allow" the browser to share its location. If user agrees, it will be stored in lat and lon variables: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { let lat = position.coords.latitude; let lon = position.coords.longitude; } } Well, that's a great start. But this isn't enough. We need to convert it into a 2D coordinate system that HTML5 understands. We need to draw location markers on top of the map image! So I wrote this simple World2Image function that takes care of that: function World2Image(pointLat, pointLon) { const mapWidth = 920; const mapHeight = 468; const x = ((mapWidth / 360.0) * (180 + pointLon)); const y = ((mapHeight / 180.0) * (90 - pointLat)); return [x, y]; } We simply divide map image dimensions by 360 and 180 respectively and then multiply them by 180 + pointLong and 90 - pointLat to adjust to the center. And our final code that converts latitude/longitude to 2D coordinates will look like this: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { let lat = position.coords.latitude; let lon = position.coords.longitude; let xy = World2Image(lat, lon); let x = xy[0]; let y = xy[1]; } } In your app of course you can use any data you want. We just need a meaningful set to demonstrate a practical example for a potential live sunset photography app. Place the code above between tags within the tag in your PWA. Preferably inside: window.onload = event => { /* here */ }; Now every time a new visitor joins our page, they will be asked to share their geolocation. Once they press the "Allow" button, it will be collected and stored in lat, lon, x, and y vars. We can then create a Fetch API call to send it to our back-end server. API End-point Round Trip Below are the sections Front-End, Back-End, and Front-End again. Developing an API end-point (/api/user/get for example) you will often follow this pattern. First we need to call Fetch API to trigger an HTTP request to an end-point. Front-End API Here is the simple code that gives us two Fetch API requests. At this time we only need these two actions to build our geolocation API. Later in this article I'll show you how they connect to Mongo on the back-end. class User { constructor() { /* Currently unused */ this.array = []; } } // Make JSON payload let make = function(payload) { return { method: 'post', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }; } /* /api/add/user Send user's geolocation to mongo payload = { x : 0, y : 0, lat: 0.0, lon: 0.0 } */ User.add = function(payload) { fetch("/api/add/user", make(payload)) .then(promise => promise.json()).then(json => { if (json.success) console.log(`Location data was entered.`); else console.warn(`Location could not be entered!`); }); } /* /api/get/users Get geolocations of all users who shared it */ User.get = function(payload) { fetch("/api/get/users", make(payload)) .then(promise => promise.json()) .then(json => { if (json.success) console.log(`Location data was successfully fetched.`); else console.warn(`Users could not be fetched!`); }); } We can now use static User functions to make Fetch API calls. Of course, nothing is stopping you from simply calling the fetch function anywhere in your code wherever it makes sense. It's just that putting everything into a User object helps us organize code. Back-End This tutorial assumes you have Node and Express running. Showing how to set that up would take another whole tutorial. But here are the core API commands coded in Express. It's quite simple. The code below is from the express.js file, which is the complete SSL server. The only thing you need to change if you plan on implementing this on your remote host is generating your own SSL certificates with certbot and LetsEncrypt. Express, Multer and Mongo Init Shenanigans First we need to initialize everything: /* include commonplace server packages... */ const express = require('express'); const https = require('https'); const fs = require('fs'); const path = require('path'); /* multer is a module for uploading images */ const multer = require('multer'); /* sharp works together with multer to resize images */ const sharp = require('sharp'); /* instantiate the express app... */ const app = express(); const port = 443; // Create Mongo client const MongoClient = require('mongodb').MongoClient; // Multer middleware setup const storage = multer.diskStorage({ destination: function (req, file, cb) {cb(null, './sunsets')}, filename: function (req, file, cb) {cb(null, file.fieldname + '-' + Date.now())} }); // Multer will automatically create upload folder ('./sunsets') const upload = multer( { storage : storage } ); // body-parser is middleware included with express installation. The following 3 lines are required to send POST body; if you don't include them, your POST body will be empty. const bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.json()); // Create some static directories. A static folder on your site doesn't actually exist. It's just an alias to another folder. But you *can also map it to the same name. Here we're simply exposing some folders to the front end. app.use('/static', express.static('images')); app.use('/sunsets', express.static('sunsets')); app.use('/api', express.static('api')); app.use('/static', express.static('css')); app.get('/', function(req, res) { res.sendFile(path.join(__dirname + '/index.html')); }); // General use respond function -- send json object back to the browser in response to a request function respond( response, content ) { const jsontype = "{ 'Content-Type': 'application/json' }"; response.writeHead(200, jsontype); response.end(content, 'utf-8'); } // Utility function...convert buffer to JSON object function json( chunks ) { return JSON.parse( Buffer.concat( chunks ).toString() ) } We still need to add end points to the express.js file. The code below is assumed to go into the same file just underneath what we've written above. Setting up API end-points Creating POST API end-points with Express is a breeze. The code below will be triggered on the server when we use fetch calls we talked about earlier (using the User object and its static methods) from client-side. API End-point 1 /api/add/user This server side end-point will add geolocation data to Mongo database: // End-point: api/add/user // POST method route - Add geolocation to Mongo's Photographer collection app.post('/api/add/user', function(req, res, next) { const ip = req.connection.remoteAddress; const { x, y, lat, lon } = req.body; // Connect to mongo and insert this user if doesn't already exist MongoClient.connect(`mongodb://localhost/`, function(err, db) { const Photographer = db.collection('Photographer'); // Check if this user already exists in collection Photographer.count({ip:ip}).then(count => { if (count == 1) { console.log(`User with ${ip} already exists in mongo.`); db.close(); } else { console.log(`User with ${ip} does not exist in mongo...inserting...`); let user = { ip: ip, x: x, y: y, lat: lat, lon: lon }; // Insert geolocation data! Photographer.insertOne(user, (erro, result) => { if (erro) throw erro; // console.log("insertedCount = ", result.insertedCount); // console.log("ops = ", result.ops); db.close(); }); } }); res.end('ok'); }); }); API End-point 2 /api/get/users This server side end-point will grab a list in JSON format of all currently stored geolocations in the Mongo database: // End-point: api/get/users // POST method route - Get all geolocations from Mongo's Photographer collection app.post('/api/get/users', function(req, res, next) { // Connect to Mongo server MongoClient.connect(`mongodb://localhost/`, function(err, db) { const Photographer = db.collection('Photographer'); Photographer.find({}, {}, function(err, cursor) { // NOTE: You must apply limit() to the cursor // before retrieving any documents from the database. cursor.limit(1000); let users = []; // console.log(cursor); cursor.each(function(error, result) { if (error) throw error; if (result) { // console.log(result); let user = { x: result.x, y: result.y, lat: result.lat, lon: result.lon }; // console.log("user["+users.length+"]=", user); users.push(user); } }); // A more proper implementation: (WIP) (async function() { const cursor = db.collection("Photographer").find({}); while (await cursor.hasNext()) { const doc = await cursor.next(); // process doc here } })(); setTimeout(time => { const json = `{"success":true,"count":${users.length},"userList":${JSON.stringify(users)}}`; respond(res, json); }, 2000); }); }); }); API End-point 3 This will upload an image from an HTML form via the Node multer package: // End-point: api/sunset/upload // POST method route - Upload image from a form using multer app.post('/api/sunset/upload', upload.single('file'), function(req, res, next) { if (req.file) { // console.log("req.file.mimetype", req.file.mimetype); // const { filename: image } = req.file.filename; let ext = req.file.mimetype.split('/')[1]; let stamp = new Date().getTime(); // console.log("ext=",ext); output = `./sunsets/sunset-${stamp}.${ext}`; output2 = `https://www.infinitesunset.app/sunsets/sunset-${stamp}.${ext}`; console.log("output=",output); // console.log("output2=",output2); sharp(req.file.path) .resize(200).toFile(output, (err, info) => { // console.log(err); // console.log(info.format); }); // fs.unlinkSync(req.file.path); res.end(`Picture uploaded! Go Back`,`utf-8`); } // req.file is the `avatar` file // req.body will hold the text fields, if there were any res.end(`Something went wrong.`,`utf-8`); }); MongoDB Command Overview Primarily we will use .insertOne and .find Mongo collection methods. When inserting a location entry, we will test if that entry already exists in the database. If it does, there is nothing to do. If it doesn't, we'll insert a new entry. You can also use Mongo's .count method to count the number of entries in the document that match a particular document filter. To do any Mongo operations, we first need to connect to our Mongo server from within of our Node application. This is done using the .connect method. .connect MongoClient.connect(mongodb://localhost/, function(err, db) { /* mongo code */ }; db.close() When we're done we need to close the database connection: MongoClient.connect(mongodb://localhost/, function(err, db) { db.close(); }; .insertOne Photographer.insertOne(user, (erro, result) => { if (error) throw error; // console.log("insertedCount = ", result.insertedCount); // console.log("ops = ", result.ops); Don't forget to close db db.close(); }); Here, results.ops will display the object that was inserted. .find The find method produces something called a cursor in Mongo. This cursor is an object that you can call .each on to iterate over all found items. As per the Mongo documentation, you should always set a limit first with cursor.limit(1000); Photographer.find({}, {}, function(err, cursor) { // NOTE: You must apply limit() to the cursor // before retrieving any documents from the database. cursor.limit(1000); let users = []; // console.log(cursor) is [Cursor object]; cursor.each(function(error, result) { // check for errors if (error) throw error; // get data let x = result.x; let y = result.y; /* etc... */ } } Front-End Displaying the data Now that we have a basic Mongo API running on our back-end, we can send data back to the front-end and the client side needs to visually display it on the screen. I've chosen to use HTML5 to draw the coordinates as images. To draw images on canvas, you first have to include them in your HTML document as regular images with tags. Let's include the images in the HTML to cache them in the browser: /* Load images but move them offscreen */ #you, #world, #mark { position: absolute; top: -1000px; left: -1000px } And now the core of our front-end is finished. This call will do a bunch of things: see if device browser supports the HTML5 geolocation property, create a 2D canvas and draw world map image on it, get HTML5 geolocation data, send it to Mongo using Fetch API, make another call to get all previously inserted items into our Mongo db on the back-end and animate canvas by drawing markers based on returned JSON object: // Create payload -- redundant everywhere, // because all POST payloads are JSON // now in neat make() function let make = function(payload) { return { method: 'post', headers: { 'Accept': 'application/json' }, body: JSON.stringify(payload) }; }); // safe entry point, all images loaded etc. window.onload = function(event) { // a place to store location markers window.markers = []; // Because this is { window.User = User; } // create 2D canvas const c = document.getElementById("canvas"); const ctx = c.getContext("2d"); // get our images const world = document.getElementById("world"); const here = document.getElementById("here"); const marker = document.getElementById("marker"); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { let lat = position.coords.latitude; let lon = position.coords.longitude; let xy = World2Image(lat, lon); let x = xy[0]; let y = xy[1]; console.log(`You are at ${lat} x ${lon} or = ${x} x ${y}`); // Add this user to mongo User.add({ x : x, y : y, lat: lat, lon: lon }); // get our user locations fetch("/api/get/users", make({})).then( promise => promise.json()).then(json => { /* Store returned list of markers */ window.markers = json.userList; // optionally debug each entry: json.userList.forEach(photographer => { // console.log(photographer); }); // Remove the loading bar window["loading"].style.display = 'none'; // display number of items returned console.log("json.userList.length", json.userList.length); }); // animation loop that draws all locations in real time function loop() { if (here && ctx) { // draw the world map ctx.drawImage(world, 0, 0, 920, 468); ctx.save(); // move to the center of the canvas ctx.translate(x, y); // draw the image ctx.drawImage(here, -here.width/2, -here.width/2); // draw marker images ctx.translate(-x, -y); if (window.cameras) { window.cameras.forEach(cam => ctx.drawImage(polaroid, cam.x-polaroid.width/2, cam.y-polaroid.width/2)); } ctx.restore(); // restore context } requestAnimationFrame(loop); } requestAnimationFrame(loop); }); } else msg.innerHTML = "Geolocation is not supported by this browser."; } Note: You don't have to render your data in this exact way. If you are using the React library, just go ahead and use components. It doesn't matter. Here I used vanilla JavaScript just for this example. What matters are the fetch requests and that we are rendering the returned JSON object containing location data on the screen. You don't have to use canvas. You could have used just the div elements for each marker. Open the live demo of this tutorial at infinitesunset.app. I open-sourced this entire project on GitHub Check complete source code for this Express.js SSL MongoDB server. This is a good starting point for someone who's trying to get Mongo to work on a remote host. ⭐Star it, 🍴 fork it, ⤵️download it or ✂️copy and paste it. End Result ( also see it running live at www.InfiniteSunset.app ) HTML5 geo location data visually displayed after being loaded from MongoDB.Thanks for reading, I hope you found this Mongo tutorial insightful.
http://damianfallon.blogspot.com/2020/04/the-complete-mongodb-pwa-tutorial.html
0 notes
Text
New foreign investment category first step towards inclusion of rupee bonds in global benchmarks: DBS
Singapore: The unrestricted access of foreign investors to select Indian bonds is a first step towards facilitating inclusion of INR bonds in global bond benchmarks, says a DBS report.
The Reserve Bank on Monday opened certain specified categories of government securities (G-Secs) for non-resident investors as part of an initiative to deepen the bond market.
RBI in a notification on Monday said that a separate route namely, Fully Accessible Route (FAR) for investment by non-residents in securities issued by the Government of India has been notified.
“Assuming 15 per cent of Rs 7.8 trillion gross borrowings for FY21 is considered under the FAR, eligible securities will amount to Rs 1.2 trillion (around USD 15 billion).
“This together with around Rs 4.3 trillion of existing securities cumulatively make USD 70 billion worth securities eligible,” DBS Bank economist Radhika Rao said in a note.
Rao further noted that “if inclusion into global indices is considered, this might translate into a potential weight of 4-6 per cent on the JPM GBI-EM Index and less than 1 per cent on the Bloomberg Global aggregate bond index.”
According to Rao, the plan to free up part of the GSec issuance to full FPI participation was announced in February’s Budget, marking a first step towards facilitating inclusion of INR bonds in global bond benchmarks.
Finance Minister Nirmala Sitharaman in the Budget for 2020-21, had announced that “certain specified categories of Government securities would be opened fully for non-resident investors, apart from being available to domestic investors as well.”
In addition, all new issuances of Government securities of 5-year, 10-year and 30-year tenors from the financial year 2020-21 will be eligible for investment under the FAR as ‘specified securities’, RBI said.
“Scope of incremental flows hinge on the broader risk-environment, which at this juncture is tepid, with less than 60 per cent of the existing limit used up. If and when bonds are included in global benchmarks (also factoring in the lead time for due processes), the economy will able to draw in less volatile and long-term focused funds,” Rao added.
if(geolocation && geolocation != 5 && (typeof skip == 'undefined' || typeof skip.fbevents == 'undefined')) { !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '338698809636220'); fbq('track', 'PageView'); }
Source link
The post New foreign investment category first step towards inclusion of rupee bonds in global benchmarks: DBS appeared first on Investium.
from Investium https://ift.tt/2JpN1F4
0 notes
Text
New foreign investment category first step towards inclusion of rupee bonds in global benchmarks: DBS
Singapore: The unrestricted access of foreign investors to select Indian bonds is a first step towards facilitating inclusion of INR bonds in global bond benchmarks, says a DBS report.
The Reserve Bank on Monday opened certain specified categories of government securities (G-Secs) for non-resident investors as part of an initiative to deepen the bond market.
RBI in a notification on Monday said that a separate route namely, Fully Accessible Route (FAR) for investment by non-residents in securities issued by the Government of India has been notified.
“Assuming 15 per cent of Rs 7.8 trillion gross borrowings for FY21 is considered under the FAR, eligible securities will amount to Rs 1.2 trillion (around USD 15 billion).
“This together with around Rs 4.3 trillion of existing securities cumulatively make USD 70 billion worth securities eligible,” DBS Bank economist Radhika Rao said in a note.
Rao further noted that “if inclusion into global indices is considered, this might translate into a potential weight of 4-6 per cent on the JPM GBI-EM Index and less than 1 per cent on the Bloomberg Global aggregate bond index.”
According to Rao, the plan to free up part of the GSec issuance to full FPI participation was announced in February’s Budget, marking a first step towards facilitating inclusion of INR bonds in global bond benchmarks.
Finance Minister Nirmala Sitharaman in the Budget for 2020-21, had announced that “certain specified categories of Government securities would be opened fully for non-resident investors, apart from being available to domestic investors as well.”
In addition, all new issuances of Government securities of 5-year, 10-year and 30-year tenors from the financial year 2020-21 will be eligible for investment under the FAR as ‘specified securities’, RBI said.
“Scope of incremental flows hinge on the broader risk-environment, which at this juncture is tepid, with less than 60 per cent of the existing limit used up. If and when bonds are included in global benchmarks (also factoring in the lead time for due processes), the economy will able to draw in less volatile and long-term focused funds,” Rao added.
if(geolocation && geolocation != 5 && (typeof skip == 'undefined' || typeof skip.fbevents == 'undefined')) { !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '338698809636220'); fbq('track', 'PageView'); }
Source link
The post New foreign investment category first step towards inclusion of rupee bonds in global benchmarks: DBS appeared first on Invest Ops.
from Invest Ops https://ift.tt/39sdmgc
0 notes