## algorithms – How to generate a deterministic finite automaton for a given language

Problem: Write a program that generates a deterministic finite automaton that accepts a given language. The language is defined with the substrings alphabet and start / end.

For example: Alphabet = {a, b, c}; start the substring = "ab"; end sub string = "cb"

I have to build DFA which will accept strings: {abcb, abaacb, abcabcb …}.

Question: Which algorithm should I use to write a function that will build DFA for this set of problems.

## numerics – How to generate random waves

I want to generate a set of $$N$$ random waves, where the wave vector

$$vec{k}_n=(k_{xn},k_{yn},k_{zn})$$  and phase $$alpha$$ are random numbers.
$$begin{equation} u= sum_{n=1}^{N}sin(k_{xn} x + k_{yn} y + k_{zn} z +alpha_n )\ v=- sum_{n=1}^{N}cos(k_{xn} x + k_{yn} y + k_{zn} z +alpha_n )\ end{equation}$$

The problem is that I have to keep the constant wave vector $$vec {k}$$ and $$alpha_n$$ and for a random wave, but the code must change $$k$$ and $$alpha$$ $$N$$ varies Example $$u1 = sin (kx1 + ky1 + kz1) v1 = cos (k1x + k1y + kzz) ….$$and so

## performance tuning – can LearnDistribution drive and generate images without using the 256×256 default?

Even so, the ConformImages () function embedded in the LearnDistribution () function seems to resize the 256×256 format images.

If I convert an image into its "Data" representation before I train it, I can avoid this problem, but this conversion poses other problems besides the problem, so I thought I would ask the problem. next question:

Is there an option that can be set so that when LearnDistribution () receives an image for training, that image is not automatically resized to 256×256 but retains its original dimensions (for example , 512 x 512, 1024 x 1024, etc.)?

Maybe there is a line of code somewhere in the system files that just needs to be adjusted? Thank you.

## gr.group theory – Generate the monoid of free group injections per se

Let $$F$$ to be the group of free rank $$2$$ (or any rank over if it does not matter). The set of injections $$F to F$$ form a monoid $$M$$ by compositions. is there simple search set of generators $$M$$?

It's natural to ask that. For example, if we would like to show a property $$P$$ valid for all injections $$M$$ and is preserved under compositions, it is natural to prove $$P$$ for a set of generators. So by simple search, I mean it would really save us some work by proving that $$P$$ for generators, for example, the generators are all alike (such as the generation of mapping class groups by Dehn twists) or divide into a large number of (infinite) classes.

obviously, $$M$$ contains $$mathrm {Aut} (F)$$, which has a nice, finite generator set: Nielsen's elementary transformations.

Also note that $$M$$ is not finished, since every homomorphism $$F to F$$ induces a homomorphism on the abelianization $$mathbb {Z} ^ 2 to mathbb {Z} ^ 2$$whose determinant could be any integer. Thus, the determinants of any generator of $$M$$ should be a generator of the monoid $$mathbb {Z}$$, where the operation is a multiplication.

I do not have a good idea to think about it. Is there a reference or related theory? Thank you!

## customization – I need to generate a dynamic URL in the WordPress site

Anyone can help me: I need to generate a dynamic URL on the WordPress site.
for example:

The homepage contains 3 countries, states and cities.

When I select a country, the URL will be
domain.com/countryname

When I select the dropdown state, the URL will be
domain.com/country-name/state-name

When I select a city, the URL will be
domain.com/country-name/state-name/city-name

Similar to this site: https://www.ifsccodeofbank.in/

I just need a dynamic URL and I get the URL value on a given page.

## iis 10 – I can not generate an XML file larger than 25.6 MB from IIS (win 2016) with ASP classic

With the help of the ASP object "CreateTextFile", I can not create an XML file larger than 25.6 MB.
The ASP script that reads about 50,000 records on SQL Express runs regularly, but stops the xlm file when the file arrives at that size.
No error is generated.
I've tried everything on IIS configurations, but I can not go beyond that limit.
Do you have any ideas?

That's the source code: `

Dim OggFile, origine, OggTextStream
Set fs = CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath("/")  & "/csv/file/kijiji"
if fs.FolderExists(strPath)=False then
fs.CreateFolder(strPath)

'elimina vecchi file
if fs.FileExists(strPath & "/prodotti_kijiji.xml") then
fs.DeleteFile(strPath & "/prodotti_kijiji.xml")
fs.DeleteFile(strPath & "/prodotti_kijiji.zip")
'  Response.End()
end if

qry_gia_esportati="SELECT * FROM kijiji_controlloID"
rs1.Open qry_gia_esportati
Do Until rs1.EOF
IDkijiji=IDkijiji & "," & rs1("IDkijiji")
rs1.MoveNext
loop
rs1.Close
IDkijiji=IDkijiji & ","

qry_prodotto="SELECT " _
& " magazzino.IDmagazzino, magazzino.titolo, magazzino.descrizione_breve, magazzino.descrizione_lunga, magazzino.prezzo, magazzino.IDcategoria, magazzino.codice, magazzino.data_prezzo," _
& " produttori.ragione_sociale as produttore," _
& " distributori.ragione_sociale as distributore," _
& " categorie.categoria, categorie.categoria_uk, categorie.categoria_de, categorie.categoria_kijiji," _
& " iva.valore_iva," _
& " aree.area, aree.area_uk, aree.area_de, aree.idarea" _
& " FROM ((((magazzino " _
& " LEFT JOIN produttori ON magazzino.IDproduttore = produttori.IDproduttore)" _
& " LEFT JOIN distributori ON magazzino.IDdistributore = distributori.IDdistributore)" _
& " LEFT JOIN categorie ON magazzino.IDcategoria = categorie.IDcategoria)" _
& " LEFT JOIN iva ON magazzino.IDiva = iva.IDiva)" _
& " LEFT JOIN aree ON categorie.IDarea = aree.IDarea" _
& " WHERE (((magazzino.disponibile)=1) AND ((magazzino.visibile)=0) AND ((magazzino.IDcategoria)<>256) AND ((magazzino.IDcategoria)<>280) AND ((magazzino.IDcategoria)<>300) AND ((magazzino.titolo)<>'Nuovo prodotto') AND ((magazzino.pezzi)>0))" _
& " ORDER BY IDmagazzino ASC"
rs1.Open(qry_prodotto)
'comincia a scrivere nel file

'crea il file xml e lo apre
file_percorso="/csv/file/kijiji/prodotti_kijiji.xml"
origine=server.Mappath(file_percorso)

fs.CreateTextFile (origine)
Set OggFile = fs.GetFile (origine)
Set OggTextStream = OggFile.OpenAsTextStream(2)
OggTextStream.WriteLine  ""
OggTextStream.WriteLine  ""
OggTextStream.WriteLine  ""

Do Until rs1.EOF

descrizione_lunga= TogliHtml(rs1("descrizione_lunga"))
if descrizione_lunga="" then descrizione_lunga= TogliHtml(rs1("descrizione_breve"))
titolo=TogliHtml(rs1("titolo"))
codice=rs1("codice")
IDchk="," & rs1("IDmagazzino") & ","

if instr(IDkijiji,IDchk)>0 then Enum_azione="Inserisci" else Enum_azione="Elimina"
if rs1("prezzo")>0 then
enum_tipo="SPECIFIED_AMOUNT"
prezzo=int(rs1("prezzo"))
Else
prezzo=""
End If
id_chk=id_chk & ", " & rs1("IDmagazzino")

OggTextStream.WriteLine  ""& Enum_azione &"" & rs1("IDmagazzino") & "" & rs1("data_prezzo") & ""& enum_tipo & "" & prezzo & "" & Application("StartEngine_mail_gestore") & "" & Replace(Application("startengine_tel"),"+39","") & ""

if fs.FileExists(server.Mappath("/") & "/archivio/fotografie/" & rs1("IDmagazzino") & ".jpg") then
OggTextStream.WriteLine  ""
OggTextStream.WriteLine  "" & Application("startengine_indirizzosito") & "/archivio/fotografie/" & rs1("IDmagazzino") & ".jpg"
OggTextStream.WriteLine  ""
end if
OggTextStream.WriteLine  ""
rs1.MoveNext
loop
rs1.close
OggTextStream.WriteLine  ""
OggTextStream.WriteLine  ""
OggTextStream.close
if id_chk<>"" then
id_chk = right(id_chk,len(id_chk)-1)
End If
'svuoto la tabella di controllo con i nuovi dati
qry_del="DELETE FROM kijiji_controlloID "
rs1.Open qry_del
a=Split(id_chk,",")
for each y in a
qry_insert="INSERT INTO kijiji_controlloID VALUES ("& y &");"
rs1.Open qry_insert
next

' creo file .ZIP
dim zip, filepath
filepath = "/csv/file/kijiji/prodotti_kijiji.zip"
set zip = new aspZip
zip.OpenArquieve(filepath)
zip.CloseArquieve()
set zip = nothing

`

## 8 – Can we generate individual form elements in a layout?

We use Layouts (via mytheme.layouts.yml) to create regions for our Node Edit forms. It looks like something like …

edit_nodelayout:
label: 'Edit Node Layout'
category: edit
path: templates/panels
template: edit-nodelayout
default_region: toplayout
regions:
toplayout:
label: 'Top'
details:
label: 'Details'
other:
label: 'Other'

We placed each field of the content type in the appropriate region via the admin user interface. At least one of our fields is a reference field to a Paragraphe feature type.

In our model, defined in yml as /templates/panels/edit-nodelayout.html.yml, we are currently producing all content as full regions.

{# some html here #}
{{ content.toplayout }}

{# some html here #}
{{ content.details }}

{# some html here #}
{{ content.other }}

How would we access individual articles in a region? For example, if in the content.details region we have placed a field called "Foo", how can we generate it individually? We tried that …

Please enter everything you know about Foo

{{ content.details.foo }}

This becomes interesting when the field called "Foo" is a reference to a type of paragraph entity. How could we then generate individual fields in the "Foo" entity?

Output the "bar" field within the "foo" Paragraph type

{{ content.details.foo.bar }}

Any help, pointers to the appreciated documentation.

## Generate revenue with your facebook page for free – Social Media Marketing (SMM)

Social networks are no longer just places to communicate online, they are also a great opportunity to generate revenue, as social networks are where your potential customer is at your fingertips. It is just necessary to prepare a competitive proposal. And if you buy followers and likes, your proposal will be seen by a large number of potential customers.

But sometimes, to get significant results in the promotion, your own strength is not enough because it takes a lot of time to get followers and likes. In this case, it is necessary to call on professionals. We will be happy to help you buy likes and followers and promote your business.

We have more than 7 years of experience in social networks, thanks to which we know almost all the pitfalls that can be encountered in the promotion of SoundCloud accounts, Twitter, Facebook, Vine, Youtube, Instagram, Snapchat, Periscope, Pinterests, Mixcloud, Vimeo, Google+, Spotify and VK. And we'll help you order your subscribers and choose the number you need, buy similar tastes, get more points of view.

By choosing us, you choose the highest quality with the lowest prices. We can offer you to buy cheap followers, Youtube views, automatic as for Instagram.

For resellers, we offer a convenient panel with the ability to use the API, as well as many payment methods.

Bulk buyers get a "tasty" offer that no one can refuse.

At the moment, we have a special offer: the top ten users will receive services
for \$ 5 FREE for a service review. Only users with at least 30 posts on this forum can participate.

TOS & Refund Policy: Read Here

THE MOST POPULAR SERVICES OF FIVEBBC:

(EXCLUSIVE) Instagram POWER Likes (Organic Engagement Subscribers) (Max 100k)
(Get organic subscribers and like to your page)
(REAL) Instagram likes (BRAZIL) (YOUNG WOMAN) (Max 1k)
(TRENDING HITS) Instagram Views + Impressions (Max 300k)

Facebook video views (max 5M) (monetizable)
Followers Twitter (max 5k) (1k / day) (R15)
(REAL) Subscribers Twitter (Max 3k) (NR)
Twitter Likes (Max 1k) (NR)
(HQ) Twitter Retweets (Max 250) (NR)

Youtube Views (Max 2M) (30k / day) (G)
(These views never drop, eaven after big updates of YouTube, the last 6 months, the service works without problems)

PRICES MAY CHANGE AT ANY TIME SO CHECK THE REAL PRICES ON OUR WEB SITE

OUR CONTACTS:
Skype: fivebbc
Email: fivebbc.smm@gmail.com
https://FIVEBBC.COM
If you have any questions, do not hesitate to ask them.

For the moment, there is a special offer:

The top ten users can view our services and get \$ 5 FREE for a review of the service.

. (tagsToTranslate) social media

## Need to generate an image file from html / css / js on the server!

I am not an expert in web development. I'm building a website with a developer and we're looking for a solution to a problem. I need to generate an image file from html / css / js on the server. I know that solutions like HTML5 Canvas can do it on the client side, but I need a server-side solution.

One possible solution that I have found is the use of puppeteer (headless browser for chrome) to set html content and generate an image, all on the server. However, I do not know if there is a better way to do it.

Any notice would be greatly appreciated!

## How to generate fixed length cryptographic hashes?

I'm trying to implement some sort of email checking system with a stateless node.js server.

The strategy

1. The user sends his email to the server
2. The server generates a 4-digit code based on the email address and sends it to the user by email.
3. The user returns the code received by email + the email address to the server
4. The server recreates the 4-digit code according to the email and compares it to the code sent by the user.

My implementation to generate the 4 digit code

1. Create a HEX digest using the HMAC SHA-256 hash function
2. Take the first 3 characters of the digest
3. Convert them to an integer
4. If length <4, concatenates one or more 0 at the end
const crypto = require('crypto')

const get4DigitsCode = (message) => {
const hash = crypto
.createHmac('sha256', Buffer.from(SECRET_KEY, 'hex'))
.update(message)
.digest('hex')

const first3HexCharacters = hash.slice(0, 3)

const int = parseInt(first3HexCharacters, 16)

let code = int.toString()
code =
Array(4 - code.length)
.fill(0)
.join("") + code

return code
}

After generating codes for 8293 email addresses, I noticed that I had 4758 duplicates. Is it normal to have as many duplicates for a code of this type? Are my strategy and my implementation secure (possibility of guessing the code)?