Press "Enter" to skip to content

How to send location via smartphone?

In ancient times, maps were either used to find an address, or people living in that area had an address to ask. So ask what they said, baghdad is 🙂 But nowadays, we don’t need anything like this anymore, although there are still problems in some streets and neighborhoods, but we can often find anywhere we want with a few taps over the phone. So for a place we can’t find, how do we get the location of the location of the place where it’s from our friend or from a different person? Let’s look at this together.

Let’s bring it to an imagining point through a script. Your combination has failed and your location doesn’t appear on maps (google maps, yandex, apple maps). In such a case, the first method may be to describe the path, but it would be a difficult choice because the incoming team didn’t know the way. The second method is to send locations via Whatsapp. Another method is to send through map applications.

Map of Turkey
Your phone's location (GPS) must be active to send locations and to work with these features.

To send locations from a phone with adroid operating system with Whatsapp, open a conversation with the person you want to send location to. Click the clip icon next to the camera icon at the bottom of the sat. On the pop-up screen, click the location icon. We will have three options: Share the current location, send the current location, and below it will show places close to us. If we say send the current location, our live location will appear on the map. So instantly, no matter where we go, the person we send the location will be able to follow us live. If we say send the current location, it will send us the current location. At the bottom of this article, the margin of error is also written. If you wait a while, the GPS will drop this margin of error depending on the situation. When we send with the lowest margin of error, the other side can find us with a more accurate result.


Send an Android location 1 Click the Paper clip icon

Send an Android location 2 Click the Location icon

Send android location 3 Press the send current location button

Whatsapp has shared content with it on its help page. They showed not only the location, but the document, person or media submission. You can check at this address.

Let’s do the same for the iphone. Start a conversation with the user I want to share the location. Click the “+” icon on the left and select location on the page that opens. Just like devices with android operating systems, there will be three options on devices with iphone operating system. You can send your location to send the current location.

Press iphone location submission 1 “+” button

Press 2 Location button to send iphone location

Send iphone location 3 Press send current location button

This way you’re posting location via Whatsapp for Android and iphon. So how do we do if we want to send our location for a different application? Or if we want to send the location of a different address, not the location we’re in, how are we going to do it? To do this, we can use one of the map apps on our phone.

For Google maps, when we hold down a point we’ve chosen for a while, a small page of information about that region will appear at the bottom. At the bottom of this page, you’ll see four buttons in directions, start, save, and share, press the share button and share the location with the application you want.

Google maps share location

Google maps share location

The method for Yandex is the same. Hold down your finger for a while on the point you want to share. You will encounter a window with information. Here you can share that point with any application when you press the Share button.

Yandex location sharing

The method to be applied in such map applications is more or less the same. That’s why I’m not adding all map apps.

Speaking of location, I’d like to tell you about a situation that’s often confused. GPS and GPRS are frequently mixed. I’ve heard about it from a lot of people. These are two different technologies.

Data transmission technologies

GPS (Global Positioning System; The Global Positioning System is a satellite navigation system that provides ground and time information with four or more satellites on all weather conditions on Earth.

GPRS (General Packet Radio Service) is a technology that transmits data through the 2g network. This technology was used to access the Internet on older phones. As technology evolves, systems that enable higher data transmission have been switched.

What is the api? What is it used for?

We need an interface for users to use applications, namely user interface, but there is no need for such an interface for applications to communicate among themselves. That is, apis is used for applications to communicate between themselves (Application programming interface) application programming interface. Let’s take a closer look at what this api called meret is.

An app, service or platform ( youtube, twitter, facebook, google, android …. ) is the use of the capabilities in an application that is different from the outside to the extent permitted. Let’s open some more.

Api

We can use the functions and functions of different applications to make the applications we write even more functional. For example, you can tweet automatically via Twitter when an event occurs. Or if you have a channel on Youtube, you can automatically upload videos for this channel, read incoming comments, see how much your videos are watched.

The purpose of api usage is to process incoming data by opening the application’s features out and responding to incoming data requests. Requests to the apie generate a certain output by processing them. These outputs may have various outputs, such as JSON, XML, in accordance with the request. We use these outputs according to our own wishes.

Api

But what can we do with this api?

Imagine having a website, using the weather api, you can show visitors the weather in the area where users visiting your website are located. Let’s give you another example through the website. If you’re using google anayltics for visitor analysis of your site, you can view information about your site’s visitors to the admin panel here with google analytics apisi. In other words, you can take advantage of the features of the application to the extent that you are allowed without the need for it.

How to find a forgotten wifi password?

Revage internet and technology. Everyone has a smartphone, everyone’s effort to exist on social media, seen and drop- off, fine writings, tweets when we say that internet is a part of our lives, like bread, like water, it has become indispensable. The next generation is more in this situation. And yet, when a guest comes to your house, after a while you will definitely hear the question, ‘what was the wifi password?’ . What was that code?

Once we set up the modem and left it on your phone and computer, we didn’t have a problem getting a password again, we’re used to being comfortable. Everything’s automated. We don’t have to keep these characters in mind. But there comes a time when we need to either learn this password or reconfigure the modem through a long and painful process.

Let’s see how we can get the password to the wifi network that we’ve already connected to on our computer or phone without going into this painful process.


Linux Distributions

Go to the network settings section, and when you click on the options section of the network you’re connected to, you can access any changes you can make with the network you’re connected to and all the details you can view. In these details, you can see your network password hidden with the character ‘*’ when you click on the security tab. When you press the Show password button at the bottom, you can clearly see your password.

Linux network features detail
Linux network features wifi password

In other linux versions, this path may be different. If you type network settings in the search section, you can find them.

In other ways, if you enter the following code, you can access all saved passwords.

sudo grep psk= /etc/NetworkManager/system-connections/*

Open a terminal screen and type this code, and the administrator will request the password. After you enter the administrator password, you can see all the passwords.

Linux registered passwords

On Windows operating system

Let’s look at how we do it visually, as we did upstairs.

Click once on the wifi icon on the right side, click ‘Open network and sharing center’ at the bottom of the pop-up screen.

On the pop-up screen, click ‘Manage wireless networks’ on the left.

Manage Windows 7 wireless networks screen

The networks on the pop-up screen are wifi networks that we have previously connected to.

Windows 7 registered networks

Click twice on the wifi network where you want to know the password. Click security at the top of the pop-up screen. The password is hidden with the character ‘*’. Your password will be visible when you check the ‘Show characters’ tile.

Windows 7 wifi password learning window

You can do it visually this way. It may be different in other versions of windows.

Just like linux systems, we can see wifi passwords registered with code via windows. So let’s write this block of code to the command-line screen that we opened as an administrator.

netsh wlan show profiles

With this code, we can see all the networks we’ve connected before. From now on, remember the name of the network you want to know the password, we’re going to need it now.

netsh wlan show profiles name=ağ_ismi key=clear

we write the name we want to know the network password registered in the name parameter. If you receive errors, check the network name by retyping the command showing the registered networks. If you have not made an error, you can see the network name registered at the bottom of the window.

On Mac operating systems

In the search section, type “key”, and then click “Keychain Access.” In the pop-up window, type the name of the wifi network in the box and right-click on the result of the wifi network click “Give information” by clicking on the article . Here you will have access to the password when you check the “Show password” tile.

As with other operating systems, we can see the passwords registered using the command line on mac. For this, we open a terminal screen and enter this code.

security find-generic-password -wa registered_ağ_ismi

Type the name of the registered network where you want to know the password in the registered_ağ_ismi section. If you didn’t make any mistakes when you run the command, you can see the password at the command line.


Everything that happened so far, if we had a computer, it was scenarios we could do. We can do what I’m saying here over the phone.


For Android

We can’t see the wifi password through the system in Android Q and later versions, but a qr code is created to share the wifi, and you can read this qr code with a qr code reader that you want to upload to the phone of the person you want to give the wifi password to the network you can connect.

Our phone needs root authority to see networks registered on Android. I keep saying that your phone has root authority.

Let’s open the directory with a file manager installed on your phone and system folders, find the ‘data’ folder and log in, and log in to the folder ‘misc’. Under this folder will be another folder named ‘wifi’. This folder is a folder where some information about wifi is collected. You open the file that says “wpa_supplicant.conf” under this folder with any editor. Passwords for all networks you have previously logged in to are stored on this folder.

It’s a laborious and exhausting job. If you download and install this app on google play instead, you can access passwords more easily. Or if you type ‘wifi password recovery’ from google playdan you can find many apps.

When you set up and open the application, you can request approval for administrator authorization, and you can start using it after you have approved it.


For iphone/ios

Iphone phone, just like androids, needs root authority, if we have root authority ( actually passed as a jailbreak, not root on iphone devices) through cydia (cydia for iOS, a user has been jailbroken a package manager mobile app that allows iPhones to find and install software packages on iPads, iPads, and iPods.) If you write ‘wifi password recovery’ or ‘wifi password’ for short, you can find a lot of apps.

If your phone is not jealbreakli and you are not using a version to jailbreak, you will need a macOS computer. I keep assuming you have a computer. First of all, we go into settings via iphone. Find the icloud settings and activate the ‘Chain’ feature. Then we write ‘Keychain access’ to the search section on macOS. After logging in to this page, we write the name of the network we want to learn, and right-click on the resulting network and click ‘Give information’ and mark the ‘Show password’ box on the page that opens. The manager will ask for his password. Once we enter the password, we can see the password for the network we connect to via the iphone.

Python Escape Signs

If you’re engaged in programming and interested, you’ve seen or heard escape signs or escape sequences from somewhere. You’re very likely to make this mistake at the end of many of the busiest hours and shifts of many projects!!! As with many reasons for this, the most common and overlooked problem is the forgetfulness of escape signs. A lot of people who are new to programming in particular often encounter it.

What are these escape sequences? When we want to use the signs or characters in python seductive, which means special meaning, we encounter these escape sequences.

For example, when we want to define a string in python, we can do it in three different ways. Using single quotes double nails or three nails. Let’s think of a scenario like this, we have a character index, and we need to use one nail here.

'This is Sakarya' 

If we use it this way, python will form the character index after the first nail and finish the character index when it reaches the quotation mark at the end of the word Sakarya. The rest of the “dir” supplement will give syntax error because it does not know what it means.

In order to avoid this and a lot of other mistakes, we need to know the escape sequences. Let’s get started 🙂

Reverse Taksim ()

Now that you’ve researched these issues and come to this page, I think you know how to define strings in python. We can use three different methods, as I mentioned above when defining strings. I want to continue with the example I gave you above. When you define a string like this:

"This is Sakarya".
When defining a string, syntax error error

We know we’re going to get a mistake. We said there were three different ways to define strings, so can’t we just define a string?

"This is Sakarya"

We can do it and we don’t deal with any syntax error errors.

Define string with a pair and use a single quotation mark

We can even make a description like this:

""This is Sakarya""

We do not encounter any errors with this definition, but when we have to define a string with one fingernail, double quoteor three quotes, our help is running a reverse taksim sign 🙂

For this, using the reverse cab before the quotation mark pythona, it does not end the string with the quotation mark, it gives the message there is more to the continuation. And when the python sees this, he’s looking for a second nail mark that will continue to run and finish the string. When he finds the quotation mark, he finishes the string identification. Let’s do an impression right away on the same sample

'This is Sakarya''
Use of reverse cab sign with single nail

When we type the code in this way, we will not encounter any errors.

The same code applies in double quotes and three quotes.

Use of reverse cab sign with double nail

But where are we going to need this? Let’s think of a scenario, you want to send a message to the user, you can use the reverse taksim sign. You have read a character index from within a text file, and you will process it on the character index, but you cannot interfere with it, which is in case python will error if you want to use the character sequence you received. You can edit it and use reverse division before quotation marks.

Line per Line (n)

n character sequence is a special character that is to switch to a subline in a python. We use this special character between long-line text to go downto the bottom line at any time and keep the program running.

But the thing is, if this particular character is in a description and we want to use that description, it can cause unexpected output. Therefore, it is one of the things that should be considered in particular.

Let’s think of a scenario like this, let’s put the path to a file on our computer, but if a “n” character comes up to the reverse taksim sign in this file path, we’ll be involuntarily using another special set of characters for python. So python is not the output we want, but whatever special character we’re using at that moment, it’s going to function. Let’s make an example now:

'C:pulsepatients.txt'

When we make such a description, when the python n character (pulse) goes to the part where it is, it switches to a bottom line and continues to function. In fact, what we wanted to do was put the path to a file on our computer on the screen.

In this case, if we do not know that the character sequence n has a special meaning, it will be inevitable that the applications we write will yield unexpected results.

Let’s think of a scenario in this. For example, you want to open a file on your computer with an open() function, and you have a nod as I sample duped as a file path. In this case, the program you typed will not work. And it’ll cause it to collapse.

To prevent this, you can double use the reverse cab marks in the directory. Thus, it will not cause any mistakes.

Tab (t)

Just like in the character “n”, if the reverse taksim sign comes before the letter “t”, a special character appears in the sense of tab for python.

For example, we use the t character index to leave a tably space in text.

t escape sign usage

Creates four spaces on the screen as if once pressed on the tab tab

It works for us when we use this escape sign on purpose, but it negatively affects the functioning of the practice we write when we miss it.

Let’s continue using the example we use in the n custom character sequence.

'C:pulseblood pressurepatients.txt'

when we do a definition in the form of a definition, we encounter a result like this.

n progresses to the python functioning by reading codes from left to right, as in a special character sequence, the reverse split sign twice to let the n character sequence know that we are using it for a different purpose, not to actually switch to a new line We write, we continue to read the codes, when you see the t sign, interpret that it is written for a new tab, leaving a tab space, presses the rest of the post to the screen.

To prevent this, we can use a double reverse division, just like we used in the n escape directory. This allows us to let the python know that this is not actually a tab mark

Ringtone (a)

A special character index formed by the inverse split sign when another letter is next to each other is the letter “a”. When these two characters come together, they cause beep.

You might want to try this. This does not work on linux systems. It does not work on every windows system. It causes such an effect in some versions.

Don’t forget to consider this when working with Strings.

Same Line per Line (r)

This letter, which is critical in our alphabet and often we use in sentences, consists of a line-by-line escape sequence with the side-by-side of the reverse division.

When this escape sequence runs, it writes the characters after where it was located on the entire character written before its location. Let’s make an example right away.

"I'm learning python"

Python begins interpreting the code that is written from the left, returns to the beginning of the line after the “python” article, and writes the word “I’m learning.” Let’s make another example.

"I'm learningrpython"
r escape directory example

Python reinterprets starting from the left, when it comes to the “r” escape directory, writes it at the beginning of the line as it is when the word comes after the escape directory, and adds more characters left over from the first word. The word “I’m learning” consists of 11 characters, the word “python” consists of 6 characters, so the word “I’m learning” is written in six characters, and the remaining four characters are added to the word “python”. We came across this strange word as it came out of “pythonming” :)

Cursor Scrolling (b)

The task of this escape sequence is to shift the cursor to the left of a character. Let’s make an example right now.

"Kenan yaman"

Under normal circumstances, I used the “b” escape sequence after a gap and space between the words “Kenan” and “egregious”. The result is a contiguous version of the two words. When this code came to the escape directory while interpreting it, a character shifted the cursor to the left and gave the screen an output like this.

Let’s write the same sample without a space.

This time, when it came to the escape directory, the cursor slipped to the left of a character and wrote it over the letter “n.” So a character has been deleted.

You can scroll to the left as many cursors as you want by typing this escape directory side by side many times.

Little Unicode (u)

We’re on a dangerous escape sequence. First of all, let’s define what unicode is

Unicode: A system in which all characters you see on a computer screen are uniquely defined by custom numbers (letters, numbers, numbers, special characters). We like nuptify this, every device with an internet output has a unique mac address. In this system, codes that are unique and custom-made for each character like it.

You can look at this link for Latin letters and see this link for other letters and symbols

Python looks for a unicode character that you see side by side with the reverse division and “u” characters. He makes an error when he can’t find it. If we miss this in the apps we write, we could cause the program to crash. Let’s set an example.

File location: C:usersdocumentspython.pdf

When we want to output the screen like this, the python interpreter reads the code starting from the left and looks for a unicode in subsequent characters when the escape sequence arrives. If he can’t find it, it’ll cause an error.

As with other escape sequences, you can pair the reverse taksim sign to overcome this problem.

Great Unicode (U)

The capitalized escape sequence means the same meaning as any other escape sequence written in the same lowercase letter. The only difference between them is that the lower unicode holds a 4-character field, while the capitalletter-typed unicode holds an eight-character field.

To type the character “i”, we need to write a code with little unicode.

'u0131'

The big unicode uses this to write the same character.

'U00000131'

Long Name (N)

Another escape sequence related to Unicode is the escape series written with the letter “N”.

A unique long “name” is also used in the Unicode system as well as a unique code. The unique long name used for the letter “a” is as follows “LATIN SMALL LETTER A”

You can look at the long names of all letters via the link I give above.

As with other unicode escape sequences, python will make an error because it cannot find a response if it does not see any long name unicode identification when it comes to the escape directory.

Hexadecimal Character (x)

As with other escape sequences, when the reverse division and the letter “x” come together, it produces an escape sequence for the hexadecimal counting system.

In the hexadecimal counting system, as in unicode, each letter and number have a equivalent. We can see this with a code like this.

x escape sequence example

The “x6b” of the hexadecimal system is used for the letter “k”. You can use this site to look at all characters and symbols.


Finally, I want to show you how we can get rid of these escape sequences in a more practical way.

If an escape sequence falls like this in a string, you put the letter “r” at the beginning of the string, python will ignore these escape sequences. Let’s set an example.

print(r'C:pulseblood pressurepatients.txt')

In normal circumstances, when we wanted to make an example like the above, we would have inadvertently used the n and t escape sequences, but we neutralized these escape sequences with a single letter “r” that we used before the quotation mark.


Our good understanding of escape sequences is important for the health of the programs we will write. You never know where or when these characters will appear.

We’re at the end of the escape sequences. Hope you write code without errors and problems…. 🙂

Create a django project with Pycharm

When developing an app, we use editors to make things easier. The most familiar and most widely used editor for Python is pycharm.

What is Pycharm? Integrated Development Environment with many tools that can organize the development process, enabling computer programmers to develop software quickly and comfortably, and the efficient development process a type of software that contains all the tools that contribute to its use.

Today I’m going to tell you how we can create a project for django with pycharm. Let’s get started.

For those who haven't downloaded the pycharm, you can select the version that is right for you by entering the website at this address and complete the download. If you're a student, you can download and use the version that has a lot of features, more than the advantage for you.

I keep assuming you’ve set up Pycharm.

We’re starting my pycharm, saying “new project” and saying create a new project.

Pycharm django project creation

On the screen that comes up, we choose the django from the left. (This editor can start the application for a very different language)

From the right side, we can choose which virtual environment we want to use for our django project and adjust it wherever we want to build our project.

It’s so easy to start a project. So why should we use an editor to start a project. Because:

  • Automatic code completion
  • Configure project settings automatically
  • When we want to install an add-on, you can automatically download and install without writing code
  • A lot of helpful tools

Frames from the sky – 1

I’ve had an interest in the sky for as long as I can remember. To the clouds during the day, to the stars in the evening. I don’t know why, the more I look at the sky, the more I feel free. There’s going to be a lot of poets who think like that, there’s a lot of poems written for sky and blue.

I loved you for how many years

I added it to the moon and loved it

I was alone, I was so lonely.

Moon another blue

Blue Tango – Turgut Uyar

Even though he’s not a professional, I have photos. I wanted to upload and share these photos to flicker. This article will be the first of these, and I will share it as I take new photos. Hope to have a pleasant time, enjoy life! 🙂

If you can’t view the pictures, please click here!

[FAG id=369]

It won’t be long. 

I’m going to say this:

Clouds didn’t open

Is the blue sky there?

 Is The Blue Sky There – Cahit Zarifoğlu

T.A.B: Django also link to the added menu

When you make a page with Django, we write a code to add it to and activate it:

{% if nbar == 'home' %} {% concern %}

What’s all this?

The purpose of this is to show that page actively on which ever page you are on.

Link to django menu

That’s how you’re adding the menu. So, how you registered the menu page (navbar.html) enter it and update it this way

Then open which .py file you are using to display your pages. (views.py)

{'nbar': 'home'}
Link to django menu

Add this code to the end of the line after comma. That’s it. If you have not made a transactional error, you can actively use the menu.

Personal dictionary

I’ve said before that I’m trying to improve my English. You know I’ve made myself a whiteboard about it and repeat the words I’ve learned regularly every day. Based on this idea, I wanted to transfer this application to the virtual environment, and the personal dictionary came out. Now let’s go further into detail and tell you what kind of path I’ve been going on.

I’m constantly researching and collecting resources for English. I’m looking at how to find out better and faster. One thing to remember when learning something new is to do it again all the time. If it is not done again and the newly learned information is not used, it will be forgotten after a while. Nature’s law is 🙂

So you have to do it again to remember what you’ve learned. When I was thinking about what I could do about it, I thought about the whiteboard I used in my room and I wanted to make a website where I could record a Turkish equivalent and an exemplary sentence for every word I learned.

That way, I could open the website and do it again at any time. I started preparing and started doing this job with django, the web roof of python.

It’s just a painting right now, but over time, I’m going to enrich its content and post everything I find relevant to English on this site.

Remember, you can't learn English just by memorizing words. You should use the words you learn by talking.

You can reach the site at this address.

I’m going to blog how to do such a site with django at a time when I’m available

Exit mobile version