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:

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 - - 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
Normally finished, received signal 2.
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

node.js – Javascript like nested callback can be better coded?

I have three shift recalls like this: (& # 39; / & # 39 ;, (req, res) => {
var filename = `output / $ { ()} _ output.json`;
let trainInput = req.files.trainInput;
let trainOutput = req.files.trainInput;
let testInput = req.files.trainInput;

//first (`input / $ {req.body.caseName} / train_input.csv`), function (err) {
if (err) return res.status (500) .send (err);
//second (`input / $ {req.body.caseName} / train_output.csv`), function (err) {
if (err) return res.status (500) .send (err);
//third (`input / $ {req.body.caseName} / test_input.csv`), function (err) {
if (err) return res.status (500) .send (err);

res.send ('success');



In this case, only 3 files will be uploaded. In other cases, I have more than 10 file uploads. and there are 10 shift recalls. I know it because javascript asyncronous.

Is there any nice code to make with this case anyway? because if there are 10 shift recalls, the codes are displayed horizontally.

Many Thanks

Sale – WordPressDDL – DDL Style Theme (coded) | Proxies-free

WordPressDDL – DDL Style Theme for WordPress


Ever wanted to start a DDL-like blog and do not know how? Well, now you can, and be awesome.


  • Responsive.
  • Valid HTML5 / CSS3 code.
  • Theme Options Panel:
  • —- change colors.
  • —- Upload logo / favicon.
  • —- Add banner.
  • —- Switch from Ajax pagination to normal pages.
  • —- Manage your featured content.
  • Fast, minimal images used.
  • Sidebar widget ready.
  • Easy to install and set up.
  • User friendly.
  • Future updates.

Demo: WordPressDDL – A DDL Syle Theme for WordPress

price: 25 USD per copy.
Promo: $ 20 for people who hired me to do some work for them in the past.

Payment per: Payza, Paypal and Western Union.

Logo PSD included.
Further adjustments are possible: PM me.

PS: Please report any errors found and / or suggestions.