What does it mean that “the two natures of Christ cannot be separated”?

The Ausberg confession states of Christ in the Chief Articles of Faith,

Therefore, he has two natures, one divine and the other human. They are united in one person and cannot be separated.

What does it mean by separation of the natures? To add context, how does this shed light on Jesus’ lament, “My God, my God! Why have you forsaken me?” or conversely, how is it informed by the lament?

All topic

Convert comma separated string into an associative array in ascending order by fruits name?

I am getting from database as belew:

$str = "apple-12, mango-23, banana-20, guava-14, almond-50";

I want to convert it into an associative array in ascending sorted order by fruits name as:

array("almond"=>50, "apple"=>12,"banana"=>20, "guava"=>14, "mango"=>23)

I have tried this code:

$str = "apple-12, mango-23, banana-20, guava-14, almond-50";
$arrData = explode(", ",$str);
$associativeArr = array_map("filterNumericData",$arrData);

function filterNumericData($val){
 $expArr = explode("-",$val);
 return $expArr;
echo '
echo '


Output getting:

Array ( [0] => Array ( [0] => apple [1] => 12 ) [1] => Array ( [0] => mango [1] => 23 ) [2] => Array ( [0] => banana [1] => 20 ) [3] => Array ( [0] => guava [1] => 14 ) [4] => Array ( [0] => almond [1] => 50 ) )

Expected output:

array("almond"=>50, "apple"=>12,"banana"=>20, "guava"=>14, "mango"=>23)

Is there any PHP function that I can use to get the expected output?


All topic

Clean and Separated JS and CSS with WebPack

I made the frontend of a big site following all the webpack standards that accompany Laravel 5.6. In addition to the site, there are some WordPress blog themes that need to share the same top and footer as the parent site. For this I thought of generating a JS file only with what is essential for blogs and this JS would make the insertion (in the blog) of the HTML and the necessary styles, but I could not generate this “clean” JS with Webpack. Can someone help me?

All topic

Why is the signal rate separated into three case?

The definition of signal rate is number of signal elements (timewise shortest unit) sent in 1s.
The book says that the signal rate of all 1s or all 0s may be different from a data pattern of alternating 0s and 1s. (And there can be three cases : best, worst and average)
The strange thing is, it means that the signal rate changes in real time.
Data rate and signal rate are interconnected by a formula : S = N/r
How does the signal rate change dynamically even if N(data rate) and r(number of data elements per one signal element) are static?


enter image description here

Data Communications and networking (of Forouzan)

All topic

Read file with comma separated hex values into array in C

How I can read a text file with comma separated hex values e.g. 0x58,0xA9,0x00 and put its values as elements of an array e.g. LR0
I need to replace this hard-coded with reading from the file:

const unsigned char LR0[] = {0x58,0xA9,0x00}

Here is what I wrote so far. printf("%c", ch); shows me what I need but when I uncomment strcat(LR0, ch); it fails at run time with a segment fault. I don’t know if I should use strcat or anything else to append the elements of this LR0 array.


int main() {                                                                                                                                                                                                         
   int ch;                                                                                                                                                                                                           
   FILE *fp;                                                                                                                                                                                                         
   //const unsigned char LR0 [1024] = "";                                                                                                                                                                            
   const unsigned char LR0 [] = {};                                                                                                                                                                                  
   fp = fopen("test.txt", "r");                                                                                                                                                                                      
   if (fp == NULL)                                                                                                                                                                                                   
      perror("Error while opening the file.n");                                                                                                                                                                     
   while((ch = fgetc(fp)) != EOF){                                                                                                                                                                                   
      printf("%c", ch);                                                                                                                                                                                              
      //strcat(LR0, (char) ch);                                                                                                                                                                                             
   return 0;                                                                                                                                                                                                         

Sorry so basic question not able to fix it by googling etc. I am not a C developer and I am using gcc on linux.

All topic

Plausible reason why an advanced space ship piloted by an A.I. could get separated from a convoy?

The plot I conceived relies on one ship being separated from a fleet of similar ships traveling together, and getting lost or winding up at a different destination.

Each ship in the fleet is a sleeper ship containing human passengers in “cryo-stasis” (or “suspended animation” or whatever you want call it).

Each ship is piloted by an A.I. and presumably the A.I.s can communicate with each other.

This is a hard science story meaning no FTL or weird space phenomenon

These ships would obviously have many redundant systems.

Maybe my plot is just not a good fit and I need to come up with something else.

All topic

Find the sum of numbers present in a string separated by spaces in between using python

I am finding it difficult in writing PYTHON code for the below scenario

I have a list called sume=[’12 1929 8827′,’8837 139′].
I converted the string to int but it is showing error because of the ” ” in between.
How to calculate the sum of the the digits by eliminating the ” ” in between.

Answer should be 19746.

All topic

How to fix a sauce with overheated yogurt that has separated?

I was trying out some healthier recipes from the New American Plate cookbook, one was a Greek lamb casserole with lots of green beans and potatoes. The lamb was marinated in plain yogurt to which spices were added prior to being added to the pot and baked at 350 for 45 min. The flavor is good, but it is not attractive due to the yogurt separating into a grainy curds and whey.

I now have a lot of leftovers, and am thinking if I can fix the texture of the sauce, the kids would be more enthusiastic about eating it. Is there anything to salvage this huge pot of tasty food? Thanks.

All topic

Plotting Separated plots with GGPLOT in R using for Loop

d is my dataframe:

date<-seq(as.Date("2000/1/1"), as.Date("2000/1/10"), by = "days")
x <- c(rep(1:10, 2,5)+rnorm(20)/4, rep(6:15, 2,5) + rnorm(20)/5)
y <- c(rep(1:10, 2)+rnorm(20)/5, rep(6:15, 2) + rnorm(20)/5)
replicate <- gl(4, 10, 40)
d <- data.frame(replicate=replicate,date=date,y=y,x=x)

I want to plot y and x on the same plot using dataframe inside a for loop. The X-axis will be the date column. As I only have 4 different groups (replicate is the index group), I will have to have 4 plots, with the X-axis being the date column, as I mentioned before. I´ve been trying to do this, but its not working:

for (var in unique(d$replicate)) {
  print(ggplot(d[d$replicate==var,],aes(date=date, y=y, colour=replicate)) + geom_line())

Any help?

All topic

Ruby regex get the word combo separated by period

I’m trying to use Ruby regex to get word combo like below.
In a example below I only need cases 1-4, * marked them in caps for easy testing. Word in the middle (dbo, bcd) could be anything or nothing like in case#3. I have trouble how to get that double period case#3 working. It’s also good to get standalone SALES as word too but probably it’s too much for one regex ?Tx all guru .
This is my script which partially working, need add alpha..SALES

 s = '1 alpha.dbo.SALES    2 alpha.bcd.SALES    3 alpha..SALES  
      4 SALES     bad cases 5x alpha.saleS  6x  saleSXX'

 regex = /alpha+.+[a-z]+.?sales/ix
 puts 'R: ' + s.scan(regex).to_s

##R: ["alpha.dbo.SALES", "alpha.bcd.SALES"]

All topic