Posts by vs06 • 2,218 points
13 posts
-
1
votes1
answer100
viewsQ: What is the meaning of the operator ":" after a Builder on Dart?
I’m trying to understand and adapt a code. I’d like to know what this syntax means: EditMyModelScreen(MyModel p) : editing = p != null, mymodel = p != null ? p.clone() : MyModel(); In particular, I…
-
0
votes1
answer85
viewsQ: What is the return order of the Javascript "find" function?
I have an application in Django that uses this widget: https://github.com/ExoticObjects/django-better-filter-widget/ In line 6 of the Better-filter-widget.js file the plugin executes the following:…
-
1
votes1
answer491
viewsQ: How to add fields dynamically in Django?
I would like to add fields dynamically in Djangoadmin. File models.py: class Book(models.Model): title = models.CharField(max_length=100) def __str__(self): return self.title class…
-
0
votes1
answer55
viewsA: How to send daily reports of blocked ASSP emails to each user?
The issue is that the scheduled assp does not send any reports to the user user1 if there is no blocked email for the user user1, unlike email report requests, where a reply is received stating that…
-
0
votes1
answer55
viewsQ: How to send daily reports of blocked ASSP emails to each user?
I use ASSP as an email filter server. Often users of my domain request reports of blocked emails (sending email to the address set on "Request Block Report (EmailBlockReport)") However, I would like…
-
2
votes2
answers354
viewsQ: What architecture and operating system properties allow a buffer overflow attack?
Attacks of the kind buffer overflow (data overflow or overflow) occurs when, while writing in a memory space, a program crosses the boundaries of the buffer and writes to an adjacent memory area. I…
-
88
votes3
answers6231
viewsQ: What does "??!?!" mean in C language?
Once I saw a code in C with the following line: ... if (condicao1 ??!??! condicao2){ /* faca algo */ } ... What does "??!?!" mean in C language?
-
24
votes3
answers739
viewsQ: What does ":-!!" mean in C language?
In a Linux kernel library, specifically this: /usr/include/linux/kernel. h, there’s a macro with a code strange to me: /* Force a compilation error if condition is true, but also produce a result…
-
2
votes5
answers6427
viewsA: How do I list the files in a directory and subdirectories that contain specific text on Linux?
find /diretorio -exec grep -Fi "texto_especifico" {} \; The command find "search" recursively on "index" all files containing the "*texto_especifico*" searched by grep. To list the files add the…
-
59
votes3
answers74263
viewsQ: What is the difference between the 'git pull' and 'git fetch' commands?
I’d like to know the difference between the commands git pull and git fetch in git versioning software.
-
3
votes5
answers12657
viewsA: How do I protect PHP code from theft and piracy after deploying?
You can obfuscate the code of the checking class (or the whole system). There are several solutions (paid and free) as the Phpprotect, Phpencode and the Zend Guard code obfuscation.…
-
32
votes6
answers98339
viewsQ: How do I undo the last commit in Git?
I accidentally committed the wrong files to Git. How to undo this?
-
5
votes2
answers2102
viewsQ: How to compare Date class to System.currentTimeMillis() in Java?
How to compare if a Date object, for example "2014-01-29 00:00:00" is larger than the date of the current system, for example System.currentTimeMillis() in Java? I would like to do something like…