Categories
CMS Mastering Development Wordpress

why are my walker menu is showing like this?

<?php /** * The second Header template for our theme * * Displays all of the <head> section and everything up till <div id=”main”> * * @package WordPress * @subpackage Twenty_Thirteen * @since Twenty Thirteen 1.0 */ ?><!DOCTYPE html> <!–[if IE 7]> <html class=”ie ie7″ <?php language_attributes(); ?>> <![endif]–> <!–[if IE 8]> <html class=”ie ie8″ […]

Categories
Mastering Development

Blank screen when generating point cloud from image with Open3D

So I tried creating a point cloud with the Open3D library in python and in the end, it’s basically just the 2 lines as referenced in here, but when I run my code (see below) all I get is a white screen popping up. I’ve ran it in Jupyter notebook, but running it in a […]

Categories
Bitcoin Cryptocurrency Mastering Development

Why does my BIP32 implementation throw different results than other web implementations? They also disagree with each other tho

I am implementing bip32 for my wallet as a project to learn Bitcoin. I am following this documentation: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki Since I am not implementing bip39 yet, I am getting the master private key and code chain from the BIP39 Root Key from this web: https://iancoleman.io/bip39/#english using a random set of words which are: praise vague […]

Categories
Development

Thread safe generator in keras for using multiple cpu cores

I am trying to build a thread safe generator in keras using the Sequence subclass based off the following example: https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly I keep getting an error that is not really clear, I will provide the full stack trace, if anyone has experience with this could they point the problem out to me? My generator is […]

Categories
CMS Development Wordpress

How to use wp_nav_menu or wp_get_nav_menu to get child of parent and show in a select/option (combo box)?

I’m new to PHP and WordPress. I have created a new menu and its name is ‘My Custome Menu’. Now I want: To get the parent of that The select box with id sel1 be filled with parent The child of a selected parent be shown in another select box with id sel2. I’m using […]

Categories
CMS Development Wordpress

How to create this Custom Walker Menu

It’s the first time I’m trying to create a customized menu Walker. I’m following a very specific HTML. I searched and tried different things. Days have passed and I still can’t get it right, but I don’t want to give up. This is the HTML I’m trying to output: <!– <ul class=”menu”> –> <li class=”menu-item”> […]

Categories
Development

expected activation_8 to have shape (2,) but got array with shape (1,)

I know there have other posts on this subject/error but I cannot figure out how to adapt them to my code. I might just need another set of eyes to look at my code to find where I am going wrong. I apologize for the length. I am working on an image recognition project. First […]

Categories
Development

How to make the Minimax recursive function – 3×3 Tic Tac Toe game [closed]

I implemented the Minimax algorithm to solve a 3×3 Tic Tac Toe game. However, it does not pick the most effective outcome. The main issue which I facing is that currently, is that when the first player picks an outcome then the algorithm just picks the next spot. Not the best spot. In the code, […]

Categories
Development

My Tic Tac Toe with use of the minimax algorithm is not working

My tic-tac-toe doesn’t seem to work properly. I have tried various things, but nothing changes. You can run the script yourself, just to see that every time after asking the player’s move the game makes a vertical line of X’s at the desired column and ends there. It’s probably a problem with my implementation of […]

Categories
Development Linux Ubuntu

Changing the format of files in linux

I have a bunch of files with .vcf suffixes, comma separated and containing ” like below “”,”CHROM”,”POS”,”ID”,”REF”,”ALT”,”QUAL”,”FILTER”,”INFO”,”FORMAT”,”NORMAL”,”TUMOR”,”Depth”,”DistanceToAlignmentEnd”,”DistanceToAlignmentEndMAD”,”DistanceToAlignmentEndMedian”,”HomopolymerLength”,”LowMapQual”,”MMQSDiff”,”MapQualDiff”,”MapQualDiffMedian”,”NT”,”QSS”,”QSS_NT”,”ReadCount”,”ReadCountControl”,”Repeat”,”SGT”,”SNVCluster10″,”SNVCluster100″,”SNVCluster20″,”SNVCluster5″,”SNVCluster50″,”SOMATIC”,”StrandBias”,”TQSS”,”TQSS_NT”,”VariantAlleleCount”,”VariantAlleleCountControl”,”VariantAlleleFrequency”,”VariantBaseQual”,”VariantBaseQualMedian”,”VariantMMQS”,”VariantMapQual”,”VariantMapQualMedian”,”VariantStrandBias”,”normal”,”tumour”,”N_DP”,”N_FDP”,”N_SDP”,”N_SUBDP”,”T_DP”,”T_FDP”,”T_SDP”,”T_SUBDP”,”T_REF_COUNT”,”T_ALT_COUNT”,”N_REF_COUNT”,”N_ALT_COUNT”,”T_VAF”,”N_VAF”,”N_AU_1″,”N_AU_2″,”N_CU_1″,”N_CU_2″,”N_GU_1″,”N_GU_2″,”N_TU_1″,”N_TU_2″,”T_AU_1″,”T_AU_2″,”T_CU_1″,”T_CU_2″,”T_GU_1″,”T_GU_2″,”T_TU_1″,”T_TU_2″ “1”,”chr1″,”11195689″,”.”,”C”,”G”,”.”,”PASS”,”Depth=83;DistanceToAlignmentEnd=38.75;DistanceToAlignmentEndMAD=9.00;DistanceToAlignmentEndMedian=37.50;HomopolymerLength=2;LowMapQual=0.00;MMQSDiff=136.94;MapQualDiff=-8.750e-01;MapQualDiffMedian=0.00;NT=ref;QSS=16;QSS_NT=16;ReadCount=83;ReadCountControl=49;Repeat=0;SGT=CC->CG;SNVCluster10=0;SNVCluster100=2;SNVCluster20=1;SNVCluster5=0;SNVCluster50=2;SOMATIC;StrandBias=0.482;TQSS=1;TQSS_NT=1;VariantAlleleCount=4;VariantAlleleCountControl=1;VariantAlleleFrequency=0.048;VariantBaseQual=40.00;VariantBaseQualMedian=41.00;VariantMMQS=157.25;VariantMapQual=59.00;VariantMapQualMedian=60.00;VariantStrandBias=0.250″,”DP:FDP:SDP:SUBDP:AU:CU:GU:TU”,”49:1:0:0:0,0:47,48:1,1:0,0″,”82:0:0:0:0,0:78,79:4,4:0,0″,”83″,”38.75″,”9″,”37.5″,”2″,”0″,”136.94″,”-0.875″,”0″,”ref”,”16″,”16″,”83″,”49″,”0″,”CC->CG”,”0″,”2″,”1″,”0″,”2″,”SOMATIC”,”0.482″,”1″,”1″,”4″,”1″,”0.048″,”40″,”41″,”157.25″,”59″,”60″,”0.25″,”list(DP = “”49″”, FDP = “”1″”, SDP = “”0″”, SUBDP = “”0″”, AU = “”0,0″”, CU = “”47,48″”, GU = “”1,1″”, TU = “”0,0″”)”,”list(DP = “”82″”, FDP = “”0″”, SDP = “”0″”, SUBDP = “”0″”, AU = “”0,0″”, […]