## Digital Signature – How can I tell if a coded binary file is signed with an Extended Validation (EV) certificate?

I can not seem to find an answer to this seemingly simple question. Say on Windows if I have a binary file:

How can I tell if it has been signed with an Extended Validation (EV) Code Signing Certificate?

Say, the above file is one `Windows driver` On a 64-bit Windows 10, there must be an EV signature to load. So I can not seem to find anything in its properties, suggesting that it's an EV:

And since the operating system can clearly see the difference between EV and OV certificates, how does it know that?

## serps – Did you try bold / coded text for titles on google?

While browsing, you realized that you could use bold or other font for the title to display it as a search result in Google.

Has anyone tried that out yet? Do you know how this can be properly tested in terms of implementation and metrics as indicators?

Here's the example I saw recently

## S3Zilla – A GUI / Tkinter-based file transfer program coded in Python

Here is the repository. It uses the S3 API to transfer files. You can select multiple files to upload / download and delete. A "File System Explorer" shows / updates both the local system and all of your S3 buckets. A new S3 bucket can also be created. Even if you try to upload a directory instead of a file, it is automatically converted to a ZIP archive before being uploaded. The code is validated pep8 / pycodestyle.

The Windows version is basically the same except for some sizes of the Tkinter widget.

I was having trouble viewing a newly created S3 bucket from the Bucket Name drop-down menu (after using the Create Bucket feature). My hacking solution was to use execl to restart the program after creating a new bucket (because existing buckets are automatically loaded into the drop-down menu when the application launches). Otherwise, everything in the program is very dynamic and is updated automatically.

``````#! /usr/bin/python3
from tkinter import *
from os import listdir, remove, execl
from shutil import rmtree, make_archive
from getpass import getuser, getpass
from os.path import isdir, basename
from time import sleep
from sys import executable, argv
try:
import boto3
from botocore.exceptions import ClientError
except ImportError as e:
print("Unable to import boto3n%s" % e)
exit()

class S3Zilla:
def __init__(self, master):
error_msg = "Ensure S3 is configured on your machine:"
try:
self.s3 = boto3.resource('s3')
except Exception as e:
print("%s: %s" % (error_msg, e))
exit(1)
try:
self.s3c = boto3.client('s3')
except Exception as err:
print("%s: %s" % (error_msg, err))
exit(1)
self.colors = {
'light-grey': '#D9D9D9',
'blue': '#2B547E',
'black': '#000000',
'red': '#FF3346',
'grey': '#262626',
'cyan': '#80DFFF'
}
self.master = master
self.master.title("Amazon S3 File Transfer Client")
self.master.configure(bg=self.colors('grey'))
self.master.geometry("885x645")
background=self.colors('grey'),
fg=self.colors('light-grey')
)
label="Exit",
command=self.quit
)
label="File",
)
label="Local",
command=self.refresh_local
)
label="S3",
command=self.refresh_s3
)
self.dir, self.drp_sel, self.bucket_name = '', '', ''
self.folder_path = StringVar()
self.dropdown = StringVar()
self.dropdown_data = self.populate_dropdown()
if not self.dropdown_data:
self.dropdown_data = ('none available')
self.deleted = False
self.local_sel, self.s3_sel = (() for i in range(2))
self.title_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
font="Helvetica 10 bold",
width=120
)
self.local_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="LOCAL FILE SYSTEM",
font="Helvetica 10 bold underline",
width=60
)
self.s3_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="AMAZON  S3",
font="Helvetica 10 bold underline",
underline=True,
width=60
)
master,
self.dropdown,
*self.dropdown_data,
command=self.set_drop_val
)
self.dropdown_box.configure(
fg=self.colors('light-grey'),
bg=self.colors('blue'),
width=27,
highlightbackground=self.colors('black'),
highlightthickness=2
)
self.browse_button = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
text="Browse",
width=30,
highlightbackground=self.colors('black'),
highlightthickness=2,
)
self.browse_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="No directory selected",
width=37,
font="Helvetica 10"
)
self.bucket_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="No bucket selected",
width=37,
font="Helvetica 10"
)
self.refresh_btn_local = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
text="REFRESH",
width=30,
highlightbackground=self.colors('black'),
highlightthickness=2,
command=self.refresh_local
)
self.refresh_btn_s3 = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
text="REFRESH",
width=30,
highlightbackground=self.colors('black'),
highlightthickness=2,
command=self.refresh_s3
)
self.explorer_label_local = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
width=30,
text="Local File System:  "
)
self.explorer_label_s3 = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('black'),
width=30,
text="S3 File System"
)
self.ex_loc = Listbox(
master,
fg=self.colors('cyan'),
bg=self.colors('black'),
width=49,
height=18,
highlightcolor=self.colors('black'),
selectmode="multiple"
)
self.ex_s3 = Listbox(
master,
fg=self.colors('cyan'),
bg=self.colors('black'),
width=49,
height=18,
highlightcolor=self.colors('black'),
selectmode="multiple"
)
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
width=20,
highlightbackground=self.colors('black'),
highlightthickness=2,
)
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
width=20,
highlightbackground=self.colors('black'),
highlightthickness=2,
)
self.delete_local = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('red'),
text="DELETE",
width=20,
highlightbackground=self.colors('black'),
command=self.delete_local_records
)
self.delete_s3 = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('red'),
text="DELETE",
width=20,
highlightbackground=self.colors('black'),
command=self.delete_s3_records
)
self.found_label_local = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="found local",
width=54
)
self.found_label_s3 = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="found s3",
width=54
)
self.status_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="Hello " + getuser(),
width=54
)
self.create_bucket_label = Label(
master,
fg=self.colors('light-grey'),
bg=self.colors('grey'),
text="New Bucket:",
)
self.create_bucket_name = Text(
master,
fg=self.colors('cyan'),
bg=self.colors('black'),
width=25,
height=1
)
self.create_bucket_button = Button(
master,
fg=self.colors('light-grey'),
bg=self.colors('blue'),
text="Create",
width=5,
highlightbackground=self.colors('black'),
highlightthickness=2,
command=self.create_bucket
)
# ####### begin grid placement ####### #
self.title_label.grid(
row=0,
sticky=E+W,
)
self.local_label.grid(
row=0,
sticky=W,
)
self.s3_label.grid(
row=0,
sticky=E,
)
self.browse_button.grid(
row=1,
sticky=W,
)
self.dropdown_box.grid(
row=1,
sticky=E,
)
self.browse_label.grid(
row=2,
sticky=W,
)
self.bucket_label.grid(
row=2,
sticky=E,
)
self.refresh_btn_local.grid(
row=3,
sticky=W,
)
self.refresh_btn_s3.grid(
row=3,
sticky=E,
)
self.explorer_label_local.grid(
row=4,
sticky=W,
)
self.explorer_label_s3.grid(
row=4,
sticky=E,
)
self.ex_loc.grid(
row=4,
sticky=W,
)
self.ex_s3.grid(
row=4,
sticky=E,
)
row=5,
sticky=W,
)
row=5,
sticky=E,
)
self.delete_local.grid(
row=5,
sticky=W,
)
self.delete_s3.grid(
row=5,
sticky=E,
)
self.found_label_local.grid(
row=6,
sticky=W,
)
self.found_label_s3.grid(
row=6,
sticky=E,
)
self.status_label.grid(
row=7,
sticky=W,
)
self.create_bucket_label.grid(
row=7,
sticky=E,
)
self.create_bucket_name.grid(
row=7,
sticky=E,
)
self.create_bucket_button.grid(
row=7,
sticky=E,
)
n1 = "%s files found" % str(self.ex_loc.size())
self.set_found_local_label(n1)
n2 = "%s files found" % str(self.ex_s3.size())
self.set_found_s3_label(n2)

def quit(self):
exit()

def get_local_sel(self):
return (self.ex_loc.get(i) for i in self.ex_loc.curselection())

def get_s3_sel(self):
return (self.ex_s3.get(i) for i in self.ex_s3.curselection())

def set_drop_val(self, selection):
self.drp_sel = selection

def delete_local_records(self):
files = self.get_local_sel()
if not files:
message = "Please select a file(s) to delete"
self.set_status_label(message)
else:
self.del_local(files)

def del_local(self, files_remaining):
if len(files_remaining) > 0:
f = files_remaining.pop(0)
if not isdir(self.dir + "/" + f):
try:
remove("%s/%s" % (self.dir, f))
except Exception as err:
self.set_status_label("%s" % err)
self.del_local(files_remaining)
else:
try:
rmtree("%s/%s" % (self.dir, f))
except Exception as e:
self.set_status_label("%s" % e)
self.del_local(files_remaining)
self.deleted = True
self.refresh_local()

def delete_s3_records(self):
removal = ''
if not self.drp_sel:
m = "Please select a bucket..."
self.set_status_label(m)
else:
removal = self.get_s3_sel()
if not removal:
m = "Please select at least 1 object to delete"
self.set_status_label(m)
else:
bucket = self.s3.Bucket(self.drp_sel)
for rm in removal:
for k in bucket.objects.all():
if k.key != rm:
continue
k.delete()
break
self.deleted = True
self.refresh_s3()

self.set_local_browse_label(self.dir)

def refresh_local(self):
if not self.dir:
m = "Use the browse button to select a directory"
self.set_status_label(m)
else:
self.set_local_browse_label(self.dir)
self.ex_loc.delete(0, 'end')
x = self.dir + "/"
d = (f if not isdir(x+f) else f + '/' for f in sorted(listdir(x)))
self.ex_loc.insert('end', *d)
if not self.deleted:
m = "Hello %s" % getuser()
else:
m = "FINISHED DELETING"
self.deleted = False
self.set_status_label(m)
n = "%s files found" % str(self.ex_loc.size())
self.set_found_local_label(n)

def refresh_s3(self):
if 'none available' in self.dropdown_data:
m = "Please create at least one S3 bucket"
self.set_status_label(m)
elif not self.drp_sel:
m = "Please select a bucket from the drop-down list"
self.set_status_label(m)
else:
self.ex_s3.delete(0, 'end')
self.ex_s3.insert('end', *self.get_bucket_contents())
self.set_status_label("Hello %s" % getuser())
self.set_s3_bucket_label(self.drp_sel)
n = "%s files found" % str(self.ex_s3.size())
self.set_found_s3_label(n)
if not self.deleted:
m = "Hello %s" % getuser()
else:
m = "FINISHED DELETING"
self.deleted = False
self.set_status_label(m)

def finished(self, incoming_message):
d = "FINISHED %s" % incoming_message
for letter in enumerate(d):
self.set_status_label(d(0:letter(0) + 1))
sleep(.1)

if not self.drp_sel or not self.dir:
m = "Ensure a local path and S3 bucket are selected"
self.set_status_label(m)
elif not self.get_local_sel():
m = "Ensure files are selected to upload"
self.set_status_label(m)
else:
for selection in self.get_local_sel():
file_ = "%s/%s" % (self.dir, selection)
if not isdir(file_):
else:
zipd = make_archive(file_, 'zip', self.dir, selection)
remove(zipd)
m = "Uploaded: %s" % selection
self.set_status_label(m)
self.refresh_s3()

if not self.drp_sel or not self.dir:
m = "Ensure a file and bucket have been selected"
self.set_status_label(m)
elif not self.get_s3_sel():
self.set_status_label(m)
else:
for selection in self.get_s3_sel():
file_ = "%s/%s" % (self.dir, selection)
self.refresh_local()

def get_bucket_contents(self):
bucket = self.s3.Bucket(self.drp_sel)
return (s3_file.key for s3_file in bucket.objects.all())

def populate_dropdown(self):
return (bucket.name for bucket in self.s3.buckets.all())

def set_local_browse_label(self, incoming):
if len(incoming) > 35:
self.browse_label.config(text=basename(incoming) + '/')
else:
self.browse_label.config(text=incoming)

def set_s3_bucket_label(self, incoming):
self.bucket_label.config(text=incoming)

def set_status_label(self, incoming):
self.status_label.config(text=incoming)

def set_found_local_label(self, incoming):
self.found_label_local.config(text=incoming)

def set_found_s3_label(self, incoming):
self.found_label_s3.config(text=incoming)

def create_bucket(self):
self.bucket_name = self.create_bucket_name.get("1.0", END).strip()
if not self.bucket_name:
m = "Please enter a new bucket name"
self.set_status_label(m)
else:
pre_exists = False
try:
self.s3.create_bucket(Bucket=self.bucket_name)
except ClientError as ce:
pre_exists = True
m = "Bucket name is already in use. "
m += "Choose a different name."
self.set_status_label(m)
if not pre_exists:
m = "%s created: restarting..." % self.bucket_name
self.set_status_label(m)
res = executable
execl(res, res, *argv)

if __name__ == "__main__":
root = Tk()
s3_zilla = S3Zilla(root)
root.mainloop()
``````

## javascript – Color coded list item by Web Part based on the value

I am currently trying to get a color coded list to highlight good medium and bad features.

I tried to follow the color coding examples shown here: SharePoint 2013 client-side rendering: List views

Just like here:
Color code element row based on the column value in SharePoint Foundation 2013

I can not figure out why none of the approaches succeed for me. I placed it as a web part on the site and tested that I could change the tables by adding only a footer text. But it must have something to do with reading the custom field.

The last thing I used in the web part was:

``````
SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
OnPostRender: function(ctx) {

var statusColors =  {
'Other' : '#FFD800',
'BP Selected' : '#01DF3A'
};

var rows = ctx.ListData.Row;
for (var i=0;i<rows.length;i++)
{
var status = rows[i]["CATEGORY"];
var rowId = GenerateIIDForListItem(ctx, rows[i]);
var row = document.getElementById(rowId);
row.style.backgroundColor = statusColors[status];
}
}
});

``````

## turing machines – Unpredictably coded calculation model

There are many different, but equivalent, computational models. I assume that their equivalence is shown by encoding the input of one model with the input of the other model and by arguing why the same algorithm should be available that would solve the problem in this model (eg emulation). ,

I was wondering if there is a computational model that is Turing equivalent, but coding the standard input into its input would be an unpredictable problem. Basically, it is a computational model that is cut off from conventional models by the fact that its encoding is unpredictable. That would be the first part of my question. I

For the second part, if such a model exists, we call it $$S$$, you can find other calculation models $$S_0, S_1, dots$$so that the conversion between $$S$$ and $$S_i$$ would be calculable by both $$S$$ and $$S_i$$? If $$T, T_0, T_1, dots$$ Would models of Turing machines and other conventional computing models, would $$mathcal {T} = {T, T_0, T_1, dots }$$ and $$mathcal {S} = {S, S_0, S_1, dots }$$ be two separate "islands" of the calculation? Both are synonymous, but no member of one of the families would be able to encode his input to the other family. Or maybe only $$mathcal {S}$$ would be able to make such a subset of such families of computational models, such as: $$mathcal {T} < mathcal {S}$$?

Note: I am not sure if it is formal to talk about a mathematical model as a mathematical model. I've mostly meant most of the last paragraph informally, but perhaps it would be enough just to take a set of all instances of such a computational model. To like $$T = { text {all Turing machines} }$$. $$T_0 = { text {all lambda expressions} }$$ and such.

## Windows FFmpeg not coded at the specified FPS

I'm trying to encode a lossless video at 30 FPS, but for some reason FFmpeg encodes at very low FPS frames:

``````Enter # 0, gdigrab of & # 39; desktop & # 39; on:
Duration: N / A, Start: 1555988801.674341, Bitrate: 3535421 kb / s
Stream # 0: 0: Video: bmp, bgra, 2560x1440, 3535421 kbps, 29.97 fps, 1000 kbps, 1000 kbbb, 1000kbb
The file & # 39; output.mkv & # 39; already exists. Overwrite? [y/N] y
Stream Mapping:
Stream # 0: 0 -> # 0: 0 (bmp (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001f68427efc0] Using the CPU functions: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001f68427efc0] Profile High 4: 4: 4 Predictive, Level 5.0, 4: 4: 4, 8-bit
[libx264 @ 000001f68427efc0] 264 - core 157 r2969 d4099dd - H.264 / MPEG-4 AVC Codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - Options: cabac = 0 ref = 1 deblock = 0: 0 : 0 Analysis = 0: 0 Me = Slide Subme = 0 Psy = 1 Psy_rd = 1.00: 0.00 mixed_ref = 0 me_range = 16 chroma_me = 1 Grid = 0 8x8dct = 0 cqm = 0 deadzone = 21.11 fast_pskip = 1 chroma_qp_offset = 6 threads = 24 lookahead_threads = 4 sliced_threads = 0 nr = 0 decimate = 1 interlaced = 0 bluray_compat = 0 constrained_intra = 0 bframes = 0 weightp = 0 keyint = 250 keyint_min = 25 scenecut = 0 intra_refresh = 0 crf = 23.0 qcomp = 0.60 qpmin = 0 qpmax = 69 qpstep = 4 ip_ratio = 1.40 aq = 0
Issue # 0, matroska, to & # 39; output.mkv & # 39 ;:
Rotary encoder: Lavf58.27.102
Stream # 0: 0: Video: h264 (lib2264) (H264 / 0x34363248), yuv444p, 2560x1440, q = -1-1, 29.97 fps, 1 kbb, 29.97 tbc
Encoder: Lavc58.51.100 libx264
Page data:
cpb: bit rate max / min / avg: 0/0/0 buffer size: 0 vbv_delay: -1
Frame = 142 fps = 11 q = -1.0 Lsize = 54817 kB Time = 00: 00: 13.64 Bit rate = 32903.1 kbps Speed ​​= 1.1x
Video: 54815kB Audio: 0kB Subtitle: 0kB Other Streams: 0kB Global Header: 0kB Muxing Overhead: 0.003802%
[libx264 @ 000001f68427efc0] Frame I: 1 average QP: 20.00 Size: 962192
[libx264 @ 000001f68427efc0] Frame P: 141 Avg. QP: 23:19 Size: 391260
[libx264 @ 000001f68427efc0] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 000001f68427efc0] mb P I16..4: 9.1% 0.0% 0.0% P16..4: 68.2% 0.0% 0.0% 0.0% 0.0% skip: 22.6%
[libx264 @ 000001f68427efc0] encoded y, u, v intra: 36.5% 10.4% 8.1% inter: 53.6% 8.2% 9.1%
[libx264 @ 000001f68427efc0] i16 v, h, dc, p: 29% 29% 14% 28%
[libx264 @ 000001f68427efc0] kb / s: 32743.84
PS C:  Users  Administrator  Desktop  Workspace  ffmpeg-20190413-0ad0533-win64-static  bin>.  Ffmpeg.exe -video_size 2560x1440 -f gdigrab -i desktop -c: v libx264 -crf 23 -framerate 30 - preset ultrafast output.mkv
``````

Do this on Windows 2019 Server

## terminal – How is coded in general?

So … I just found the terminal and thought about it: "What could I do with it?" Is there a command that lists many commands and their usage (like "help" in Windows cmd)? Can anyone in general give me a brief overview of the world of encoding with Mac?

Thank you for reading it when you answered, thank you even more!

PS. I know some commands on Windows, but not many. I have never coded with Mac unless we count a single code I found here `system_profiler SPBluetoothDataType`

## xss – When and why is it safer to output JS literals into an HTML tag than they are coded by JS and set directly in a JS object?

From ASP .NET Core documents to prevent XSS:

Before you insert untrusted data into JavaScript, place the data in an HTML element whose contents you retrieve at runtime. If this is not possible, make sure the data is JavaScript encoded. JavaScript coding uses dangerous characters for JavaScript and replaces them with a hex. Example: <would be coded ` u003c`,

Later, these documents continue to claim:

The safest way to insert values ​​is to place the value in a data attribute of a tag and get it in your JavaScript. (…) You can also call the JavaScript encoder directly

So it seems to me that the docs claim that HTML escapes a JS literal, puts it in an HTML tag, and gets that literal from JS. It is safer than JS to handle this literal so that closing does not close `script` mark and output directly into the JS code.

Is that so? If yes why?

It seems to me that the first approach achieves exactly the same and is more convenient.

## Security – Android, weird snmp, probably coded hard in the init file

Two days ago I asked a question here MediaTek and foreign files and files Saturation of memory, After reading this paper:

I have watched a bit and in my file I realize that one SNMP Socket (exactly two: v4 and v6) when I use: & # 39;ls / proc / 0 / net& # 39; I see her clearly.

And yes, 0 is the init binary file (hard coded?). My question is simple, are there any bootkits on Android (I suppose, yes, if it did, you would have documentation to recommend me at security level), but especially the use of SNMP is normal? For example: use by the phone operator for material monitoring? But this phone is a second hand with another operator that does not make sense in my case. Any help or thought is welcome. Many Thanks.

I said that I have not found a response to my previous question regarding an audio_dump folder in blackhat's newspaper, but some matches that are cold on the back.

## php – How do I add a complete work item to an already coded website to a rich website design project?

I wrote 5 php files that are interdependent and contain one `style.css` Likewise. This whole project works well when done and included alone `home.php` Contains HTML code for the frontend design and is also the start page.

But I wanted these 5 PHP files to be included as part of my big website design project, so the whole folder will be added underneath `C: xampp htdocs wordpress wp-content themes oceanwp admin` from where `Administrator` is the folder that contains my mini project (5 PHP files) `C: xampp htdocs admin` and surf as `localhost admin login.php` (in the Chrome browser).

I have added `/ *** template name: admin-login * /` to my `home.php`,

I also added `Admin Login` as default template on my admin login page under WOrdpress under `page attributes`
But in the placement of my mini-project `C: xampp htdocs wordpress wp-content themes oceanwp admin` When browsing as I was the error 404 Not found displayed `localhost wordpress admin login.php`