Categories
Mastering Development

Excel VBA – Update Column BF cell based on input into Column D

Hello and thank you for your time in advance. I’m using Excel 360 (64bit) My VBA skills are very amateurish, so I have been unable to resolve this myself by pasting and adapting code. I’m not sure if the code should go into a Module or the worksheet object. I have a ‘log sheet’ where […]

Categories
Mastering Development

MVC (Entity framework) Saving ID changes from “Create View” to SQL database table

I need solution for my problem. Got 1 database with 3 tables (with primary keys and identity (1,1) and 3 foreign keys) I will post diagram bellow. My dropdown lists are connected if I choose Country it will just list me states from that country. What I want to do is when i pick Country […]

Categories
Mastering Development

r programming- in a data frame how change any number to the column name

A. I have a large xts object which I converted to a data frame so that I could change any number in a column to the first part of the column name. i.e. Date, A-B, A-C, A-D, B-A, B-C, B-D,… 1/1/11 N/A N/A 0.012 N/A 0.055 N/A 1/2/11 0.25 N/A N/A 0.456 N/A 0.12 The […]

Categories
CMS Mastering Development Wordpress

wp_editor not working in Visual mode and becomes empty on save

I have created a custom widget, and want to transform the textarea into a wysiwyg editor. The widget looks like this, I’ve stripped out all the unnecessary parts. class Sponsor_Widget extends WP_Widget { function __construct() { $widget_ops = array(‘classname’ => ‘sponsor_widget’, ‘description’ => __(‘Widget to display a Sponsor in the Secondary Widget Area.’)); $control_ops = […]

Categories
Mastering Development

php mail function not working for premium mail accounts [duplicate]

<?php session_start(); $email_to = "name@gmail.com"; $email_subject = "Mail from Last Mile., contact form"; $name = $_POST[‘name’]; // required $email = $_POST[’email’]; // required $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Email From : ".clean_string($email)."\n"; $headers = ‘From: ‘.$email."\r\n". ‘Reply-To: ‘.$email."\r\n" . ‘X-Mailer: […]

Categories
Database Development

Datatable Which is Already Fill from Database add new Record from textbox value on click

@model Desai.Model.Bill_Master @{ ViewBag.Title = "Bill Details"; if (Session["Date"].ToString() != DateTime.Now.Date.ToString()) { Response.Redirect("~/Login/Index"); } } .marge { margin-bottom: 6px; } .content { min-height: 0px; padding: 0px; padding-top: 10px; margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .input-group { float: Left !important; padding-right: 10px !important; padding-left: 0px; } .bill-Total { float: right !important; } .addNew […]

Categories
Mastering Development

How to call REST and SOAP Endpoints in Apache Camel

I am working on a task in which i need to use both SOAP and REST endpoints.once after calling the SOAP endpoints i need to pass those response fields into REST endpoints as a Patch Request.I am familiar in implementing Camel based route for SOAP . need help in SOAP + REST implementation. Below are […]

Categories
Mastering Development

Extract multiple fields from file with Ansible

I made an ansible playbook in order to collet data from this json file { "validacion_user": { "stdout_lines": [ "", "Account name: root", "Description: root", "Enabled: No", "Password Last Change Date: Thu Feb 14 2019 (UTC)", "Password Expiration Date: Not Applicable (UTC)", "Locked: No", "Role: root", "AD membership: 0-255", "Home AD: 0", "Day Time Access: […]

Categories
Linux Mastering Development

file delimiter not working with awk code

I have a file which looks like this: Name Length EffectiveLength TPM NumReads ENST00000456328.2|ENSG00000223972.5|OTTHUMG00000000961.2|OTTHUMT00000362751.1|DDX11L1-202|DDX11L1|1657|lncRNA| 1657 1493.961 0.112690 3.673 ENST00000450305.2|ENSG00000223972.5|OTTHUMG00000000961.2|OTTHUMT00000002844.2|DDX11L1-201|DDX11L1|632|transcribed_unprocessed_pseudogene| 632 468.996 0.000000 0.000 ENST00000488147.1|ENSG00000227232.5|OTTHUMG00000000958.1|OTTHUMT00000002839.1|WASH7P-201|WASH7P|1351|unprocessed_pseudogene| 1351 1187.961 9.176212 237.800 ENST00000619216.1|ENSG00000278267.1|-|-|MIR6859-1-201|MIR6859-1|68|miRNA| 68 69.000 0.000000 0.000 ENST00000473358.1|ENSG00000243485.5|OTTHUMG00000000959.2|OTTHUMT00000002840.1|MIR1302-2HG-202|MIR1302-2HG|712|lncRNA| 712 548.982 0.000000 0.000 ENST00000469289.1|ENSG00000243485.5|OTTHUMG00000000959.2|OTTHUMT00000002841.2|MIR1302-2HG-201|MIR1302-2HG|535|lncRNA| 535 372.012 0.000000 0.000 and I want the output as: I tried, using AWK: awk ‘BEGIN […]

Categories
Linux Mastering Development

file delimiter not working with awk code

I have a file which looks like this: and I want the output as: I tried using awk : awk ‘BEGIN { OFS=FS="\t" } { sub("\\..*", "", $1); print }’ and it prints the first id ENST. But when I change it to: awk ‘BEGIN { OFS=FS="\t" } { sub("\\..*", "", $1); print }’ it […]