Reload of page after rebuild is very slow

Uncategorized
Question: I recently went from css to scss instead. Suddenly afterwards my project is very slow for loading the page after a rebuild. (30-50 seconds) I literally did nothing else than added scss instead of css. Just changed the files and changed the settings in .angular-cli to use scss instead. Let me know if i can share some more to help troubleshooting. I have no idea why this is the case. Terminal: webpack: Compiling... Hash: 528351f97868ee9f6cc1 Time: 1857ms chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 178 kB {4} [initial] chunk {1} main.bundle.js, main.bundle.js.map (main) 46.1 kB {3} [initial] [rendered] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 26.6 kB {4} [initial] chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.2 MB [initial] chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] webpack: Compiled successfully. webpack: Compiling... Hash: b4d9b9ae09285a8f41b1 Time:…
Read More

Check inside for loop is not executed

Uncategorized
Question: I am working on a project to make the computer speak back when I give it commands. I just started, but when I run the code, it doesn't respond in the way I expect it to respond. Here is my code:from pocketsphinx import LiveSpeech import os for phrase in LiveSpeech(): print(phrase) if phrase == 'oh' :os.system('espeak' ' "hi"') I get no errors when I run this code. Could somebody please help? Thanks, Aditya Answer: This is because the if statement is not in the loop, the loop's body is the print statement for phrase in LiveSpeech():print(phrase) if phrase == 'oh' :os.system('espeak' ' "hi"') this is what it should look like Read more
Read More

Compile MariaDB errors occur (could not find GnuTLS, but it installed)

Uncategorized
Question: cmake . -DCMAKE_INSTALL_PREFIX=/root/mariadb -DDEFAULT_CHARSET=utf8 - DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all - DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 - DWITH_FEDERATED_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_USER=mariadb Then errors: CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR) (Required is at least version "3.3.24") Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindGnuTLS.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) libmariadb/CMakeLists.txt:291 (FIND_PACKAGE) The below is my screenshot Answer: Read more
Read More

Custom Cell of .xib file goes out of screen

Uncategorized
Question: I have three types of custom cell label,button,custom layout in xib file.I am trying make a chat application.Firstly i am trying to work with label but its going out of screen in I7plus. this is the custom cell and its constraints: This is my Table view and its constraints: This is the result: I need it to be left align and far from right side as i have placed label in custom cell.But its going out of screen.In addition I can't see the custom cell background which i have set pink. Answer: Read more
Read More