Welcome to the Blog!
Here you find a broad range of different tutorials and solutions which deal with programming and software engineering. Maybe a suitable solution helps you :) Have fun reading it! You can also checkout the german version.
Here you find a broad range of different tutorials and solutions which deal with programming and software engineering. Maybe a suitable solution helps you :) Have fun reading it! You can also checkout the german version.
Entering two commands in PyCharm simultaneously When you are working with matplotlib the default workflow is two create first the image itself with plt.plot() and then plt.show(). Those commands are usually entered after each other. However you can also enter them simultaneously by just concatenating them with a semicolon. So you can run plt.show([1,2,3]); plt.show() and the image if you run PyCharm in the scientific mode will popup immediately.
Opening PDFs in the same tab in Skim Skim is a nice and useful programm for PDF annotations. However if you open multiple PDFs, macOS always opens them in new Skim windows. If you want to change this behavior run the following command: defaults write -app Skim AppleWindowTabbingMode -string always There are different options available and you can find a list here
How to use VSCode for writing compiler commands Simplify writing compiler commands Motivation While learning C/C++ I found that writing the compiler commands for the terminal is tedious job especially if you write many files. To simplify this process you can use the snippets of vscode. Solution The steps are as follows: Open the command palette Enter Configure User Snippet Select the language for which you would like to configure your the snippets, I choose C A ....
Working with Virtualenvs like pipenv is more than beneficial as you keep track easily of the different dependencies of your project and dont have to worry about your main python environment. However in during the development of your projects you might run into the situation that you require the shell for just verifying some small functions or run some scripts. The basic python shell provides is definitely suitable for this situation but using a shell like from ipython is even better....
Accessing the values of a relationship field in a Django Dashboard When you would like to group your instances of model by a category that stands in relationship to this model like the following: from django.db import models class model1(models.Model): name = models.CharField(max_length=256) def __str__(self): return self.name class model2(models.Model): some_other_name = models.CharField(max_length=256) name_model_1 = models.ForeignKey(model1, on_delete=models.CASCADE) def __str__(self): return self.some_other_name You might run into the problem that when you group the objects of your model2 by the field name_model_1 that you actually don鈥檛 get the exact values of this field....