Open in app

Sign In

Write

Sign In

Privalov Vladimir
Privalov Vladimir

95 Followers

Home

Lists

About

Nov 2, 2022

git tips: list commits where a file was modified

Sometimes we need to find out which commits changed particualr file. We can ontain this information using command git log with flag — follow: git log --follow -- filename This will list all the commits where this file was modified in the foramt of command git log.

Git

1 min read

Git

1 min read


Published in Towards Dev

·Oct 15, 2022

IMs stories: how I was blocked in Viber

Being chatbot developer for different instant messaging (IM) platforms I am using Viber messanger intentively every day. One day I got blocked by Viber with no reason. Here I will tell this story. At that moment I am working remotely from Turkey. WiFi connection is not that good here. Thus…

Viber

2 min read

IMs stories: how I was blocked in Viber
IMs stories: how I was blocked in Viber
Viber

2 min read


Sep 1, 2022

Check if image on remote hosting is valid / correct

Sometimes in your daily work you can meet a problem with an image hosted somewhere in cloud. Knowing whether the image is valid can be very helpful in determining the issue. Here I will show how you can easily obtain this information with well known tool curl. curl is a…

Curl

1 min read

Curl

1 min read


Aug 10, 2022

Using keyword extern in C

In this post I will show why keyword extern is useful in large projects on C language with many files. Let’s make a simple project. Create a file logger.h: int max_callstack_depth = 3; Then create file utils.h #include <stdio.h> void handle_error(); Here we only declare method handle_error. Implement method in…

C Programming

1 min read

C Programming

1 min read


Aug 2, 2022

Show different level of warnings in GCC compiler output

In different situations we often need a specific level of verbosity during compilation. Sometimes we need to see less critical warnings, sometimes only critical errors is enough. GCC compiler provides compiler options for outputting different levels of warnings. You can use compiler options to suppress or adjust level of verbosity…

1 min read

1 min read


May 26, 2022

git tips: configure current branch for push and pull

When working in a standard git flow that could be quite cumbersome to enter the name of current branch each time you pull and push to remote repository. In this post I will show how to set the name of current branch once and use commands ‘git pull’ and ‘git…

Git

1 min read

Git

1 min read


May 16, 2022

Reset on master branch

Sometimes in working on your projects you need to undone some unwanted commits made to master branch. I will show how to do it with GitLab repo. If you follow regular workflow with git reset to reset to some commit git reset --hard <commit_hash> git clean -f -d and then force push to master to reflect changes on remote repo git push -f origin main you can get error remote: GitLab: You are not allowed to force push code to a protected branch on this project.

Git

1 min read

Reset on master branch
Reset on master branch
Git

1 min read


May 11, 2022

Lifehacks: copy url and title of page

Sometimes we need to save some webpage. Standard way is to copy url and title (some main header) of webpage. We can automate it and make our life easier. Use Copy page title and url extension for Chrome. Just install it from Chrome store. Then click right button on some page you need to save and choose option Copy page title and url marked by the icon of extension. Both url and title will be copied to clipboard as one string.

Lifehacks

1 min read

Lifehacks: copy url and title of page
Lifehacks: copy url and title of page
Lifehacks

1 min read


Published in Towards Dev

·May 5, 2022

Print pretty JSON in Linux

Sometimes developers need to explore some JSON files. That can be quite tough and time comsuming. We can do it easier with command line tool jq. First install it: sudo apt update sudo apt install -y jq Run command: jq '.' result.json Result will be pretty nice looking

Json

1 min read

Print pretty JSON in Linux
Print pretty JSON in Linux
Json

1 min read


Published in Towards Dev

·Jan 31, 2022

Tricky things in C++: new and delete operators

In this post I will explain operators new (new[]) and delete(delete[]) in C++. Memory for objects of classes are allocated on the heap in C++. operators new and delete are used for this purpose. To allocate memory for an object of some class we should use operatotor new. operator new…

Cpp

1 min read

Cpp

1 min read

Privalov Vladimir

Privalov Vladimir

95 Followers
Following
  • Alex Yakunin

    Alex Yakunin

  • Andrey Melikhov

    Andrey Melikhov

  • Tproger

    Tproger

  • John Olafenwa

    John Olafenwa

  • Dmitry Manannikov

    Dmitry Manannikov

See all (27)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech