Questions tagged [seed]

Seed is a JavaScript interpreter and a library of the GNOME project.

632 questions
0
votes
1 answer

Drawing with cairo in seed-3.2 javascript with gtk3

I have tried to find out how to make a simple cairo drawing in seed-3.2. I know that gtk3 has change the event method from expose-event to draw. The callback works fine in my small test sample but I don't know to get hold of the cairo object. I can…
CBR
  • 19
  • 3
-1
votes
2 answers

Python execution log

I'd like to create a log for a Python script execution. For example: import pandas as pd data = pd.read_excel('example.xlsx') data.head() How can I create a log for this script un order to know who run the script, when was executed, when did it…
Rfl
  • 23
  • 5
-1
votes
1 answer

How to create relations between tables with knex on postgresql database

Can you show me how can i realiton between 2 table with knex on postgresql that tables are 'user' , 'project' , 'post'. I want to make a relation like in project table i have 'user_id' column so it should be connect with 'user' table with id. also…
-1
votes
1 answer

How to use @seed in hypothesis?

I'm trying to use @seed here: https://hypothesis.readthedocs.io/en/latest/reproducing.html#reproducing-a-test-run-with-seed But when I include it before @given, I get the error NameError: name 'seed' is not defined at runtime. My python script…
user5965026
  • 465
  • 5
  • 16
-1
votes
1 answer

Seeding based on hashing is deprecated

The below function collects random numbers but the seed parameter should be optional. Therefore, I added the * . import random def random_num(n, number, *seed): #n is the number of values to return and number is the range of the uniform…
saZ
  • 89
  • 7
-1
votes
2 answers

I got an odd question on laravel's migration

I have been trying to google this but I still couldn't pinpoint the exact answer to the question in my head. I have used php artisan to create a migration file to set up a table called blogs (note the plural). Previously, the table was called blog…
Beaumont
  • 313
  • 5
  • 16
-1
votes
1 answer

How to seed/insert specific value after a specific value changes SQL/Hive

My objective is to make a table in Hive wherein for every new value of a column, say name, it will seed a word. any code sample that can do this? expected result: name transaction date transaction…
-1
votes
1 answer

python multiprocessing faker - seeding doesn't work

I use faker in a multiprocessing env. I insert test data to mongo db using the pymongo's bulk method. For each bulk I create fake data. That does work in a single process env but not for multiprocessing. Code logic looks like the following. from…
mandano
  • 31
  • 4
-1
votes
2 answers

Writing your own RNG, how do you manipulate a seed so you can keep generating new numbers?

I have to implement the Wichmann-Hill random number generation algorithm in python (3.x) for an assignment. The algorithm needs to be seeded with three random numbers. I tried seeding it with time.time_ns(), but if I try generating a new number…
-1
votes
2 answers

Complex Seed generator for NodeJS

Does anyone know a seed generator that can generate seeds for related entities? Let's look at a blog for example. I would like to create seeds in the following order Authors Articles (based on Author seeds created earlier) I can obviously write…
faboulaws
  • 1,909
  • 16
  • 16
-1
votes
2 answers

bash parse space delimited text file

example file aaa [bbb bb] ccc "ddd dd" eee bbb [ccc cc] ddd "eee ee" fff expected: line1 s1="aaa", s2="bbb bb", s3="ccc", s4="ddd dd", s5="eee" line2 s1="bbb", s2="ccc cc", s3="ddd", s5="eee ee", s5="fff" Thanks in advance!
Alex Tang
  • 115
  • 1
  • 4
  • 12
-1
votes
3 answers

Excel VBA Seed based on the date

I'm working on a programm where I use a seed. This seed should be based on the date, so every single day i get a new value. Using the seed several times a day should not change the value getting back. This is what my seed looks…
J.schmidt
  • 721
  • 5
  • 27
-1
votes
1 answer

TableAdapter.Insert (into ACCESS DB) get current Seed value for ID

I am trying to alter an existing programm in VB , I am not experienced in this language , but unfortunately I cannot convert it for now. I created the DB Connections with the Designer , which automatically created the BindingSource, TableAdapter ,…
user1937012
  • 1,031
  • 11
  • 20
-1
votes
1 answer

seed cloudinary photos for rails app

) I have some cloudinary's photos and I would like to make a seed (in my rails app). I'm using Carrierwave. In my seed, I try to put the cloudinary's url image : Course.create! ({ photo: "fismpnq3zma80dc2ovjt.jpg" )} But it's don't work. What can…
Ben
  • 660
  • 5
  • 25
-1
votes
1 answer

Randomizing the seed value C++

I have a class function int ComputerClass::getGuess() that every time it is called should produce a randomized number. In my main function I created 2 functions of the class ComputerClass Computer1,Computer2 and called the class function, however…