Browser freezes (OOM?) when computing a large file MD5 using JS Crypto library

Uncategorized
Question: I am using Webpack, compiling a bundled JS file. The problem I have a Worker that I am offloading the hashing work to. I pass a file and filesize to it. I previously did not use a Worker. However, when Chrome reacted badly to hashing a large file, I thought that the main thread was being blocked by the hashing mechanism. This could be a false assumption. The code works correctly for small files. However, for large files, once reaching the part where the final hash is generated, Chrome shows this error: Firefox is a bit more helpful and shows this message: Error: Uncaught, unspecified "error" event. (out of memory) However, the piping of data should alleviate this issue. fileReaderStream reads data in chunks of 1 MB. The code…
Read More

Visual Studio 2015 Database project

Uncategorized
Question: I need to exclude some tables from publishing in a database project, the main idea is to publish only a subset of tables depending on the build configuration, if it's Debug I want to publish all the tables but if the configuration is Release I want to publish just a subset of those tables. Answer: What language do you use ? If you use C# and CodeFirst you can define such requirements in your migration files, but to help you more you need to tell something more about technologies you use. Read more
Read More

PLS00103: Encountered the symbol ā€œIā€ when expecting one of the following

Uncategorized
Question: Dears, I want to make a function to cleanse my phone numbers, I wrote below function, but I faced with this error:Error: PLS-00103: Encountered the symbol "I" when expecting one of the following: ( Line: 15 Text: IF SUBSTR(O_NUM,1,3) IN I.E_CODE Answer: IN operator syntax is not correct. It should be IF SUBSTR(O_NUM,1,3) IN(I.E_CODE) Read more
Read More

Embedding text file into Lazarus resources error

embed
Question: I have an application consisting of a TForm1, TMemo, TButton and TRadioButton . I want to display text from a .txt file in the TMemo when TRadioButton is selected and TButton copies all text in TMemo. I can do this with LoadFromFile however, now I want to "embed" the .txt file into my program so I don't have Read/write text files exposed for people to modify. I was able to follow the tutorial below: http://wiki.freepascal.org/Lazarus_Resources I successfully created an embedded Image file by using glazres to create a .lrs file however, now I want to embed a .txt file and I receive the error below:> Compile Project, Target: project1.exe: Exit code 1, Errors: 1, Warnings: 2 > Warning: windres [option(s)] [input-file] [output-file] > Warning: windres: supported targets: pe-i386 pei-i386…
Read More

WooCommerce api attribute hooks

Uncategorized
Question: Goodmorning, I have a question regarding WooCommerce, the api to be more specific. WooCommerce has a few actions which I use to do certain actions (not really relevant anyway). The hooks fire as long as an attribute is created in the wp-admin. When an attribute is added through the use of the API the hooks do not fire. I do not know if this is intended or how the api avoids using the default WooCommerce functionality of adding and deleting attributes but is there another work around? I did the same with terms, which I use the default WordPress hooks create_term and delete_term for. Same of products with save_post_product. The hooks for the attributes are WooCommerce hooks so I am not really sure if there is alternate approach. My…
Read More

Mim – Personal Portfolio WordPress Theme

Uncategorized
Mim ā€“ Personal Portfolio WordPress theme is a clean and modern WordPress theme for personal portfolio, resume web site. Built with the latest WordPress technology. Mim portfolio theme makes with responsive layout. So it looks great on all devices And also fastest page loading. It has predefined styling for represent your personal info. which can be imported form demo with one click.
Read More