Can someone break into a Leomund’s Tiny Hut via the Ethereal Plane?

I’ve got players who rely heavily on Leomund’s Tiny hut for a “safe” night time rest. I’m alright with them using it to help, but it gets irritating having a wrench thrown into my nighttime attacks. I have found some ways to deal such as Dispel Magic or having something camp them. One time, I even attacked and killed their horses which were outside the hut. I was going to try a burrowing creature but SageAdvice put forward that there IS a floor in the hut. That’s when I came across the Phase Spider. So the question:

Could something move into the Ethereal Plane, get to an area that would be inside Leomund’s Tiny Hut, and then move back to the Material Plane?

Dell Monitor S2817Q goes into flicker mode on MacBook Pro (Retina, 15-inch, Mid 2015) 10.14.5

I have been using dual monitors (HP and Dell) with no issues on my MacBook Pro running 10.14.5 for 6 months. Dell is connected to HDMI and HP is connected to Thunderbolt. After a few recent OS updates I found that my Dell monitor will frequently drop into a flicker or flashing mode where screen blacks out for a fraction of a second every 2-5 seconds. Have tried all recommended solutions with no luck in finding a permanent fix. Curious if anyone has found a fix?

I did find that a power cycle on the Dell monitor (physically disconnect/reconnect power cord) will stop the flicker temporarily but the flicker typically returns 2-8 hours later.

Injecting Appsettings.json into nlong.config

My goal is to inject values from the appsettings.json into nlog.config for an ASP.NET Core application. I am using NLog.Web.AspNetCore 4.8.3, NLog 4.6.5, NLog.config 4.6.5, and Microsoft.Extensions.Logging.Abstractions 2.0.0.

I wasn’t able to get this working. I was under the impression that $ {configsetting:name=ConnectionStrings.ApplicationDatabase} would be replaced with the ConnectionStrings.ApplicationDatabase value inside of my appsettings.json file but this does not work. The nlog.config variable value is unchanged and throws an error when I run my application because that is an invalid connection string.

My application should log to MongoDB error/event log collections.

Snippet of nlog.config

<!-- Using logDirectory variable to set path to src/logs folder in allfile and ownFile-web targets below -->   <variable name="logDirectory" value="$  {basedir}/../../../logs/$  {shortdate}/internal-nlog.log" />   <variable name="logDatabase" value="$  {configsetting:name=ConnectionStrings.ApplicationDatabase}"/>   <variable name="logDatabaseUser" value="$  {configsetting:name=DatabaseCredentials.User}"/>   <variable name="logDatabasePassword" value="$  {configsetting:name=DatabaseCredentials.Password}"/>-->   <variable name="logConnectionString" value="mongodb://$  {logDatabaseUser}:$  {logDatabasePassword}@$  {logDatabase}/myApplicationDB?authSource=admin"/>    <!-- Load the ASP.NET Core plugin -->   <extensions>     <add assembly="NLog.Web.AspNetCore" />     <add assembly="Log.Mongo" />   </extensions>    <!-- the targets to write to -->   <targets>     <!-- write logs to file -->     <target xsi:type="File" name="allfile" fileName="$  {logDirectory}"             layout="$  {longdate}|$  {event-properties:item=EventId.Id}|$  {logger}|$  {uppercase:$  {level}}|$  {message} $  {exception}" />      <!-- another file log, only own logs. Uses some ASP.NET core renderers -->     <target xsi:type="File" name="ownFile-web" fileName="$  {logDirectory}"             layout="$  {longdate}|$  {event-properties:item=EventId.Id}|$  {logger}|$  {uppercase:$  {level}}|  $  {message} $  {exception}|url: $  {aspnet-request-url}|action: $  {aspnet-mvc-action}" />      <target xsi:type="Mongo" name="error-mongo"             connectionString="$  {logConnectionString}"             collectionName="errorLogs">       <field name="date" layout="$  {date}" bsonType="DateTime" />       <field name="level" layout="$  {level}" />       <field name="message" layout="$  {message}" />       <field name="logger" layout="$  {logger}" />       <field name="exception" layout="$  {exception:format=tostring}" />       <field name="threadID" layout="$  {threadid}" bsonType="Int32" />       <field name="threadName" layout="$  {threadname}" />       <field name="processID" layout="$  {processid}" bsonType="Int32" />       <field name="processName" layout="$  {processname:fullName=true}" />       <field name="userName" layout="$  {windows-identity}" />     </target>  <target xsi:type="Mongo" name="event-mongo"          connectionString="$  {logConnectionString}"          collectionName="eventLogs">       <field name="date" layout="$  {date}" bsonType="DateTime" />       <field name="level" layout="$  {level}" />       <field name="event" layout="$  {event-properties:item=EventId.Id}" />       <field name="message" layout="$  {message}" />       <field name="logger" layout="$  {logger}" />     </target>   </targets> 

Snippet of appsetting.json

  "ConnectionStrings": {     "ApplicationDatabase": "App-db-server-1.com:27017,App-db-server-2.com:27017,App-db-server-3.com:27017/AccessManagement?ssl=true&replicaSet=myReplicaSet&authSource=admin"   },   "DatabaseCredentials": {     "User": "",     "Password": ""   } } 

Snippet of startup.cs

   // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.         public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)         {             if (env.IsDevelopment())                 app.UseDeveloperExceptionPage();              ConfigureNLog(app, loggerFactory);              /*These settings need to be changed*/             app.UseCors(                 options => options                     .AllowAnyOrigin()                     .AllowAnyMethod()                     .AllowAnyHeader()             );              app.UseAuthentication();             //Swagger Set Up             app.UseSwagger();             app.UseSwaggerUI(c =>             {                 c.SwaggerEndpoint("/swagger/v1/swagger.json", "Authentication API V1");             });             app.UseMvc();         }          private static void ConfigureNLog(IApplicationBuilder app, ILoggerFactory loggerFactory)         {              loggerFactory.AddNLog();             loggerFactory.ConfigureNLog("nlog.config");             app.AddNLogWeb();         } 

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; } 

How would someone XSS into a WebView? iOS/Android

On the internet several articles exist about XSS vulnerabilities of using an Android/iOS WebView. I understand the main concept of XSS; on a regular website it could be achieved by for example redirecting someone to a URL with a manipulated query string in it.

But how would someone start an XSS attack on a WebView. I can think of one example myself: The app makes use of a deeplink/universal link. With the help of this universal link the app opens and an intent will load the requested page. When a user then clicks on a universal link like https://example.com/openpage/bar?query=<script>alert('XSS');</script> and the developer was really lazy this could result in XSS. But this is pretty easy to counter. And thus is nothing to get too scared about.

Of course a Server XSS Attack is also possible. But I mean Client XSS

Can you think of any other ways to exploit XSS? Because if the one I mentioned is the only one, I think the risk of an XSS attack on a WebView is minimal.

PowerShell to import promoted results into SharePoint online

My organisation is migrating from SP2010 to SPO and would like to use PowerShell to migrate the best bets from SP2010 to promoted results in SPO.

I currently have a csv file of promoted results and the URLs I would like them to point to. I want to use PowerShell to import them into my SPO site collection. Please suggest if there are any PowerShell scripts for importing promoted results.

Thank you.

Sortings stocks into quantiles based on their signal

This function sorts stocks into quantiles. To do so I used this function that accepts sig_df (dataframe with the timeseries of stocks signal) and number of quantiles as imput:

qs = ['Q' + str(i) for i in range(1, len(perc)+1)] q_labels= list(itertools.chain.from_iterable( itertools.repeat(x, int(sig_df.shape[1]/q_num)) for x in qs))  rank_labels = ['rank_{}'.format(i) for i in range(sig_df.shape[1])]  bucketed_names = pd.DataFrame(         sig_df.columns.values[np.argsort(-sig_df.values, axis=1)],          columns=[q_labels, rank_labels]         ) 

The second function computes portfolio returns, based on the names bucketed in the function above. It accepts two input a df containing stocks return and the output from the function above. To do so I used:

bucketed_returns = dict() for i in range(1, int(ret_df.shape[1]/bucketed_names.Q1.shape[1])):     Q = []      for row in bucketed_names['Q' + str(i)].itertuples():         temp = ret_df.loc[list(row[:1]) ,list(row[1:])]         Q.append(float(np.dot(temp, weights)))         bucketed_returns['Q' + str(i)] = Q           bucketed_returns = pd.DataFrame(bucketed_returns) 

To optimize this code I thought about multiprocessing – not able to code that – or maybe there could be a better way remaining in pandas/numpy environment.

How to transform a quote into an order from CALLBACK HOOKS, MAGENTO 2.3

I’m trying to integrate a payment gateway. And they provide a callback hooks i’ve set for them to return me the CartID (Quote’s entity_id).

But from here on, it feels like it isnt right for me to call guest API, as the cart belongs to an actual customer’s cart. Neither do i have the access tokens when the callback hook is being sent to the API i’ve created.

How can i create the order (sales_order table & sales_order_grid) based on the quote i could receive ?

Please advise what should i do as im stuck on this for 3 days.