How to display 3 Bootstrap Card titles in same row using forach loop

I have view where I need to display 3 card tiles in a same row. But at present it displays one after the other. How Do I display 3 card tiles in same row?

Index.cshtml –

@model List<JobPortal.Models.MyDB> @{    ViewBag.Title = "Current List"; }  <div class="row">  @foreach (var list in Model)  {         <div class="flexcontainer">           @Html.Partial("_MySharedView", list)        </div>  } </div> 

Shared view –

@model JobPortal.Models.MyDB @if (Model.JDetails.Count > 0) {      <div class="card" style="width: 18rem;">        <img class="card-img-top" src="..." alt="Card image cap">       <div class="card-body">       <p class="card-text">Model.details</p>      </div>   </div>  } 

Google Docs: What does the “Share it with the same people” option do when making a copy?

When making a copy of a document in Google Docs from File > Make a copy…, there is an option to Share it with the same people. What does that option do? Does it share the doc with the same people as the source folder or the destination folder? If the destination folder is already shared with a number of people, does it override those permissions?

how to drag and drop word by word and drop into each edit text place of same activity ..plz help i am facing problem [on hold]

@Override public boolean onDrag(View v, DragEvent event) {     int action = event.getAction();     switch (action) {          case DragEvent.ACTION_DRAG_STARTED:             // dx = v.getX()-event.getX();           //  dy = v.getY()-event.getY();                if (event.getClipDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) {             //    v.setX(event.getX()+ dx);             //    v.setY(event.getY() + dy);                 return true;             }             return false;          case DragEvent.ACTION_DRAG_ENTERED:             v.invalidate();             return true;          case DragEvent.ACTION_DRAG_LOCATION:              return true;          case DragEvent.ACTION_DRAG_EXITED:             v.invalidate();             return true;          case DragEvent.ACTION_DROP:              ClipData.Item item = event.getClipData().getItemAt(0);             // Gets the text data from the item.             String dragData = item.getText().toString();             // Displays a message containing the dragged data.             Toast.makeText(this, "Dragged data is " + dragData, Toast.LENGTH_SHORT).show();             v.invalidate();              View vw = (View) event.getLocalState();              ViewGroup owner = (ViewGroup) vw.getParent();             owner.removeView(vw); //remove the dragged view             ConstraintLayout constraintLayout = (ConstraintLayout) v;             constraintLayout.addView(vw);              vw.setVisibility(View.VISIBLE);//finally set Visibility to VISIBLE             //Returns true. DragEvent.getResult() will return true.             return true;           case DragEvent.ACTION_DRAG_ENDED:             v.invalidate();              if (event.getResult())                 Toast.makeText(this, "The drop was handled.", Toast.LENGTH_SHORT).show();             else                 Toast.makeText(this, "The drop didn't work.", Toast.LENGTH_SHORT).show();             return true;         // An unknown action type was received.         default:             Log.e("DragDrop Example", "Unknown action type received by OnDragListener.");             break;     }     return false; } 

May I send MsgBox message for all users who has the same .xlsm file open from sharepoint?

We are using .xlsm files stored on sharepoint which need to be updated regularly. I would like to inform all users about macro starts/ends running who has the file open. Would be great to simply add a MsgBox to the VBA code but as I tested it is visible only for that user who starts the macro. Is there any solution to inform other users?

Many Thanks, marci

tshark filtering out same vlan traffic from command line

I am looking for help on how I can filter out same VLAN traffic(i.e. src IPs 10.1.1.0/24 and dst IPs 10.1.1.0/24) out of a capture file and output all other traffic to a txt file.

I am using a batch file to process all the captures using tshark in a directory and want to use a display filter to remove this “same VLAN” traffic to reduce the size of the output.

Here is the batch file I am using:

@echo off  set cDate=captureday set cap_files="*.pcapng" set cap_folder="D:\caps\%cDate%" set outfile-udp=D:\conversations\cap-UDP-%cDate%.txt set outfile-tcp=D:\conversations\cap-TCP-%cDate%.txt set tshark_cmd="c:\Program Files\Wireshark\tshark" set tshark_udp=-Y "!(ipv6)" -q -z conv,udp set tshark_tcp=-Y "!(ip.src in {10.1.1.0/24} && ip.dst in {10.1.1.0/24})" -q -z conv,tcp  echo. > %outfile-udp% echo. > %outfile-tcp%  for /r %cap_folder% %%f in (%cap_files%) do (     echo Processing File: %%f      REM echo == File:  %%f >> %outfile%     %tshark_cmd%  -r %%f %tshark_udp% >> %outfile-udp%     %tshark_cmd%  -r %%f %tshark_tcp% >> %outfile-tcp% )  echo. echo Results in: %outfile-udp%  echo Results in: %outfile-tcp% 

This doesn’t seem to work however so I was wondering if someone out there has done this before and can tell me what I am doing incorrectly here. Basically I am still getting this 10.1.1.0/24 <-> 10.1.1.0/24 traffic.

This is for already existing captures. I have already got a capture filter running this ignores this traffic.

This is an example of the output of the text file:


================================================================================ TCP Conversations Filter:<No Filter>                                                            |       <-      | |       ->      | |     Total     |    Relative    |   Duration   |                                                            | Frames  Bytes | | Frames  Bytes | | Frames  Bytes |      Start     |              | 10.1.1.154:51087        <-> 10.1.1.202:5482           20016   1417372   13477  20140238   33493  21557610     4.393919000       124.2292 10.1.1.154:51088        <-> 10.1.1.201:5482           17479   1170181   11871  17779866   29350  18950047    10.602867000       118.3747 10.1.1.154:52765        <-> 10.1.1.194:2021            7346    584098    4201    338242   11547    922340     0.187889000       128.7159 10.1.1.154:57613        <-> 10.1.1.193:2021            7197    572273    4111    331079   11308    903352     0.182195000       128.7268 10.1.1.154:52120        <-> 10.1.1.192:2021            7180    570921    4104    330495   11284    901416     0.136573000       128.7624 10.1.1.154:61285        <-> 10.1.1.190:2021            7126    566585    4066    327231   11192    893816     0.182070000       128.7277 10.1.1.154:52738        <-> 10.1.1.191:2021            6301    500987    3602    289742    9903    790729    18.821383000       110.0925 

Alternatively if there is a way just to delete out the lines the the source and destination IP’s using SED or findstr I would be happy to do this as well 😉

Many thanks in advance

Cheers

Site accessed by Intel Mac OS X and iPhone OS at the same time

I have created my own logging in a PHP script on my website. While doing this, I record a timestamp, IP address and HTTP referrer. I notice that I often have two hits as follows where it looks like an iPhone and a Mac are accessing my site at roughly the same time from the same IP address. Can someone explain what is happening here?

[‘2019-06-23 02:47:26pm’, ‘172.117.xxx.xxx’, ‘Lakewood, California, United States’, ”, ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko)’]

[‘2019-06-23 02:47:28pm’, ‘172.117.xxx.xxx’, ‘Lakewood, California, United States’, ”, ‘Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1’]

[‘2019-06-23 03:09:04pm’, ‘95.44.xxx.xxx’, ‘Drogheda, Louth, Ireland’, ”, ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko)’]

[‘2019-06-23 03:09:07pm’, ‘95.44.xxx.xxx’, ‘Drogheda, Louth, Ireland’, ”, ‘Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1’]

If the same attack that causes a druid to revert from Wild Shape also reduces their maximum HP, what happens?

I am aware of Jeremy Crawford’s ruling that maximum HP reduction applied to a Wild Shape form does not apply to the druid’s true form when Wild Shape reverts. However, this doesn’t answer the question of what happens when the attack that causes the maximum HP reduction is also the attack that causes the druid to revert.

This is certainly a related question to the appropriate order of damage and HP reduction effects, with the added wrinkle of resolving when the druid reverts. Assuming someone can cite the answer to the linked question (which was made more by reductio ad absurdem than a cited source), I can see four likely scenarios:

  1. The wild shape takes damage, reverts, then the full max HP reduction is applied to the druid. (This is, to me, most logical scenario, and results from the order damage-revert-max HP reduction.)

  2. The wild shape takes damage and absorbs as much of the max HP reduction as possible, applying the remaining damage and max HP reduction to the druid. (This is hard to sell, as the max HP reduction is applied at a time when no rule says it should be, but based on Crawford’s tweet above seems to be the rule as intended.)

  3. The wild shape takes damage and max HP reduction is applied, then the form reverts and additional damage is applied to the druid. The druid’s max HP is not affected. (This is the most lenient case, but seems more correct than case 2 if the correct order of application is damage-max HP reduction-revert.)

  4. The druid dies before it reverts, because its wild shape form was reduced to 0 maximum hit points. (This is the harshest case and results from the same order, damage-max HP reduction-revert. This seems more likely again than the previous two, as “The target dies if this effect reduces its hit point maximum to 0,” is not like Disintegrate’s check after the spell’s damage has been dealt.)

When the same attack that causes the druid to revert from Wild Shape also reduces their max HP, what happens?

How can I post exact same post but with a few things changed? (with some sort of Automation)

I wanna duplicate some of my posts but want to change a few variables. For example, I would just like to make some variable in my posts that will be changed every time I give inputs. These can be links or one word changes in post title or somewhere in post. How can I do it? (see an example below where XXXX and Y are variables)

Post Title: Hello this is a sample Post with XXXX – Read now!

Body of my post:

Hey this is my post welcome, this is post with XXXX. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras dui mi, facilisis quis consequat id, blandit et enim. Nulla viverra tellus elementum ligula vulputate, vel venenatis nisi facilisis. Vivamus in mi eu ipsum molestie bibendum a sed purus. Read more here Y(link).

Can 2 members of a family use the same APC kiosk when they are entering the US under different visa programs?

Regarding APC kiosks, what happens when one member of the family is entering the US with an ESTA form and the other one with a B1/B2 Visa? Can they use the APC kiosk together? At certain moment, the system asks whether you are travelling under visa waiver program or B1/B2 visa or if you are a US or Canadian passport holder or if you have a green card. In my case, I will select “travelling with ESTA” but I’m afraid that when choosing “yes” to the question “are you travelling with other member of your family?” the system will only require to repeat passport scanning and fingerprints for the second person and will not ask the form of entry which is different from mine. Hope the question is clear.

2 timestamps in different cells at the same time [duplicate]

This question already has an answer here:

  • Running multiple onEdit scripts 1 answer
function onEdit(event) {   var timezone = "GMT-7";   var timestamp_format = "MM-dd-yyyy-hh:mm"; // Timestamp Format.    var updateColName = "Ext Warehouse";   var timeStampColName = "Date/Time Change";   var sheet = event.source.getSheetByName('EXT Changes'); //Name of the sheet where you want to run this script.   var actRng = event.source.getActiveRange();   var editColumn = actRng.getColumn();   var index = actRng.getRowIndex();   var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues();   var dateCol = headers[0].indexOf(timeStampColName);   var updateCol = headers[0].indexOf(updateColName); updateCol = updateCol+1;   if (dateCol > -1 && index > 1 && editColumn == updateCol) { // only timestamp if 'Last Updated' header exists, but not in the header row itself!     var cell = sheet.getRange(index, dateCol + 1);     var date = Utilities.formatDate(new Date(), timezone, timestamp_format);     cell.setValue(date);   } } 

And this one:

function onEdit(event) {   var timezone = "GMT-7";   var timestamp_format = "MM-dd-yyyy-hh:mm"; // Timestamp Format.    var updateColName = "Completed";   var timeStampColName = "Date/Time Completed";   var sheet = event.source.getSheetByName('EXT Changes'); //Name of the sheet where you want to run this script.   var actRng = event.source.getActiveRange();   var editColumn = actRng.getColumn();   var index = actRng.getRowIndex();   var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues();   var dateCol = headers[0].indexOf(timeStampColName);   var updateCol = headers[0].indexOf(updateColName); updateCol = updateCol+1;   if (dateCol > -1 && index > 1 && editColumn == updateCol) { // only timestamp if 'Last Updated' header exists, but not in the header row itself!     var cell = sheet.getRange(index, dateCol + 1);     var date = Utilities.formatDate(new Date(), timezone, timestamp_format);     cell.setValue(date);   } }