WTF Bites
-
@Gribnit we manage them so the first thing that happens is they get a clean install of Windows 10 because fuck Dell's bullshit.
-
@Polygeekery said in WTF Bites:
Miracast is actually a direct connection
So yay. The pants are on the head. The kicks, they're in your base, killing your dudez.
Actually I don't think it's retarded. If they used the normal mode, the AP would have to repeat every frame and thus use twice as much of the limited radio space.
It does open much more opportunity for getting the wi-fi chip or its driver wrong, of course.
It's based on Wi-Fi Direct and, as always, if you half-ass the implementation you get stuff like what @Polygeekery described.
I forgot one detail. Only the Precision laptops have the issue. Other laptops work fine. But as soon as the Precision laptops connect they immediately disconnect and the TV shits itself for a minute or so.
That sounds like the Precision laptops use some different options somewhere that trigger a bug in the TVs.
So if I get what you're saying, when a Windows computer connects to a Miracast display the computer would then be connected to the Miracast display and potentially a wireless network at the same time?
I never heard of this “Wi-Fi Direct” before. On one hand the description says it sets up a temporary AP so even older devices can connect, on the other hand the laptop wifi must recognize it as not the normal AP and remain connected to it.
Also, how would a wired machine be able to connect to a Miracast display?
I suppose those go through the existing network. Maybe the AP also needs to understand this extension, maybe not.
Or maybe the other notebooks also go through the existing network because they can, while the Precision ones insist on switching on the direct mode.
-
@Polygeekery said in WTF Bites:
Also, how would a wired machine be able to connect to a Miracast display?
By plugging in an HDMI cable.
-
@Polygeekery said in WTF Bites:
@Gribnit we manage them so the first thing that happens is they get a clean install of Windows 10 because fuck Dell's bullshit.
Is there anyone you don't do that for? Doesn't matter what brand it is the first thing I do for friends and family, when they get a new laptop, is a clean install.
-
@Polygeekery said in WTF Bites:
So if I get what you're saying, when a Windows computer connects to a Miracast display the computer would then be connected to the Miracast display and potentially a wireless network at the same time?
Yes, that's how it's supposed to work and actually does on pretty much all Windows laptops I've run across
Also, how would a wired machine be able to connect to a Miracast display?
Usually, they don't. AFAIK the protocol relies solely on WiFi and also a direct connection. I know this because my Surface only sees Miracast receivers it's in range of, even though both my Surface and the devices are on the same network.
Apple's AirPlay is different in that regard as I could cast to any device on the campus as long as it's online.
-
I think they're stealing it. Time, that is.
So that's where they went! Explains everything.
-
Usually, they don't. AFAIK the protocol relies solely on WiFi and also a direct connection. I know this because my Surface only sees Miracast receivers it's in range of, even though both my Surface and the devices are on the same network.
So there's something that is doing the discovery that isn't based on the main network (or the Miracast software is doing some extremely creepy and unlikely mapping of the environment). It might be through either the extra network or the bluetooth stuff, both of which are normally only used to convey connection parameters.
Except those laptops are probably going "aha connect to this ad hoc net!" when asked to query it, and the TVs are going "oh shit wat now" when the connection comes in.
-
Metro is a very ambiguous term indeed. Different places use that term for different things.
Over here, it is used for what most would call a bus service.
-
Except those laptops are probably going "aha connect to this ad hoc net!" when asked to query it, and the TVs are going "oh shit wat now" when the connection comes in.
But only those specific laptops. Other machines can connect without issue. The whole thing is fucky.
-
@Polygeekery said in WTF Bites:
The whole thing is fucky.
Well, what did you expect when you ordered @Tsaukpaetra IT Services?
-
@Polygeekery said in WTF Bites:
The whole thing is fucky.
Well, what did you expect when you ordered @Tsaukpaetra IT Services?
If I ever did such a thing I would feel like sticking a shotgun barrel in my mouth.
-
Metro is a very ambiguous term indeed. Different places use that term for different things.
Over here, it is used for what most would call a bus service.
-
@Polygeekery said in WTF Bites:
If I ever did such a thing I would feel like sticking a shotgun barrel in my mouth.
Just the barrel, of course.
-
@Polygeekery said in WTF Bites:
If I ever did such a thing I would feel like sticking a shotgun barrel in my mouth.
Just the barrel, of course.
Technically, just the tip.
-
@Polygeekery said in WTF Bites:
But only those specific laptops. Other machines can connect without issue.
Yeah. They've probably got something set to jump to a new network more promiscuously.
-
-
They've probably got something set to jump to a new network more promiscuously.
Don't slut shame.
-
@Polygeekery said in WTF Bites:
They've probably got something set to jump to a new network more promiscuously.
Don't slut shame.
I see you run all your NICs in promiscuous mode.
-
A Mach 1 train sounds fun
Ha ha ha...
An average german Mach 0.1 goods train sounds fun - much more than you need...
-
Also, Poopy Lettuce was my DJ name many years ago.
-
@Gern_Blaanston said in WTF Bites:
Also, Poopy Lettuce was my DJ name many years ago.
I remember you! You sucked.
-
@Gern_Blaanston said in WTF Bites:
Also, Poopy Lettuce was my DJ name many years ago.
I remember you! You sucked.
-
@Gern_Blaanston said in WTF Bites:
Also, Poopy Lettuce was my DJ name many years ago.
I remember you! You sucked.
I tired out a lot of different names, back in the day.
Donkey Hotey
Dicken Cider
His Divine Grace Maharaj Bhaktisiddhanta Saraswati Goswami
-
@Gern_Blaanston That last one really rolls off the tongue.
-
-
What would you call an S-Bahn in English? I know it's technically "light rail" but I haven' heard that in regular use.
I was under the impression S-Bahn was the abbreviation of Strassenbahn (tramway).
-
What would you call an S-Bahn in English? I know it's technically "light rail" but I haven' heard that in regular use.
I was under the impression S-Bahn was the abbreviation of Strassenbahn (tramway).
No, S-Bahn is the fast/longer distance one, usually on regular train track gauge. "Tram" is common for the streetcars/trolley type thing at least in the south.
-
regular train track gauge
Actually tram gauge is usually the same. The rails are a bit different and weaker and the wheels have smaller flanges. But I've seen level tram-train crossing that uses a normal tram cross-piece and the train just slowly drives over it without problem.
-
-
Actually tram gauge is usually the same.
My impression is that trams do have some "narrow gauge" while trains usually have "standard gauge"; but I know there's also narrow-gauge trains around here.
Someone looked up the difference recently because we had a similar discussion. Supposedly it's that the tram is a participant in normal road traffic, i. e. it (at least partly) runs on the road together with cars. Trains in contrast always run on their own, dedicated tracks. One consequence of that is that trams run on the right side of the road, while trains commonly run on the left track.
ETA:
@Applied-Mediocrity said in WTF Bites:@Bulb Kāpēc pa Barona ielu brauc vilciens? – 00:14
According to the above, that is one huge-ass tram!
-
What would you call an S-Bahn in English? I know it's technically "light rail" but I haven' heard that in regular use.
I was under the impression S-Bahn was the abbreviation of Strassenbahn (tramway).
I hate to be that guy that quotes wikipedia, but here goes:
"The term derives from Schnellbahn, Stadtbahn or Stadtschnellbahn."
-
@nerd4sale So the U-bahn is contained within the Stadt, while the S-bahn goes beyond that and into the Umland. Got it.
-
@nerd4sale So the U-bahn is contained within the Stadt, while the S-bahn goes beyond that and into the Umland. Got it.
Don't you believe it! It's
Surface
andUnter
just like when it was when it was the time that it was.
-
regular train track gauge
Actually tram gauge is usually the same. The rails are a bit different and weaker and the wheels have smaller flanges. But I've seen level tram-train crossing that uses a normal tram cross-piece and the train just slowly drives over it without problem.
The combination actually exists and it's called after the city which spawned this bastard: Karlsruhe
In the context of this discussion, it's notable because the trains (light ones, but still trains) going through the busy pedestrian street are called neither S-Bahn nor Straßenbahn, but Stadtbahn. And yes, all three are available and visibly different.
-
@Kamil-Podlesak said in WTF Bites:
The combination actually exists and it's called after the city which spawned this bastard: Karlsruhe
-
@ixvedeusi said in WTF Bites:
Trains in contrast always run on their own, dedicated tracks
-
@dcon First time I see a fright tram.
-
@ixvedeusi Freight trams are actually somewhat common. But this is a true fright tram indeed.
-
@dcon reduced speeds? Cowards!
-
@ixvedeusi said in WTF Bites:
Trains in contrast always run on their own, dedicated tracks
And then there's Ashland, VA, in which not only do the trains run in the street, but the cars often try to pretend they're trains (and fail badly, getting stuck and needing to be towed off the tracks).
-
-
true fright tram
I did think something looked wrong about that word but it turns out it works this way, too.
-
The horror I have had to produce to connect to a web API.
class WebApiClient // simplified and semi-anonymized { private readonly HttpClient Http; private readonly WebApiClientConfig Config; public WebApiClient(WebApiClientConfig config) { Config = config; Http = new HttpClient(); // WebApiClient implements IDisposable, don't worry Http.BaseAddress = new Uri(Config.ApiBaseAddress); // Good ole Basic Authentication string authHeader = Convert.ToBase64String(Encoding.ASCII.GetBytes(Config.Username + ":" + Config.Password)); Http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader); } // Ain't nobody got time for typing, so let's define a shortcut helper method private static string UE(string value) => HttpUtility.UrlEncode(value); // okay. standard stuff so far, now it's time to implement some API calls public async Task<IReadOnlyCollection<DebAccount>> GetDebAccounts( string connectId, // per their api, minAccountNo and maxAccountNo are not optional, but may be empty strings string minAccountNo, string maxAccountNo, // these are not optional either int recordNo, int count ) { string uri = Http.BaseAddress + "/GetDebAccounts/" + + UE(connectId) + "/" + UE(minAccountNo) + "/" + UE(maxAccountNo) + "/" + UE(recordNo) + "/" + UE(count); // yep, all parameters sent as path segments // yes, including empty strings // yes, this means we get to call /GetDebAccounts///0/100 // incidentally: to get a single account by its exact number, you call /GetDebAccounts/{$accountNo}/{$accountNo}/0/1 // sending HTTP request, error handling, and parsing response omitted return accounts; } // but wait. where does that connectId value come from? public record LoginCallResult( bool? Connected, string? ConnectID, string? ErrorInfo ); public async Task<string> Login(string datasetId) { // >_< string uri = Http.BaseAddress + "/Login/" + + UE(datasetId) + "/" + UE(Config.Username) + "/" + UE(Config.Password); var response = await Http.SendAsync(new HttpRequestMessage() { // what, were you expecting a call which changes state // to use an HTTP method other than GET? // Next time you'll tell me we shouldn't send the password as a path segment Method = HttpMethod.Get, RequestUri = new Uri(uri) }); var json = await response.Content.ReadAsStringAsync() var result = JObject.Parse(json) .SelectToken("$.result[0]") .ToObject<LoginCallResult>(); // error handling based on result.Connected, result.ConnectID and result.ErrorInfo omitted return result.ConnectID; } }
-
@Zecc Ain't you s'posed to have the
HttpClient
static?
-
@Applied-Mediocrity Maybe. This is going to end up being a de facto singleton. But thanks for pointing that out.
-
@Zecc … so … the password is sent with every request as basic auth, but there is also a login endpoint where you send it in the URL—whether it is query parameters, options or paths segments is minor issue compared to being in the URL in the first place—and get a token that you have to include in the URL of the other requests—again whether it is a query parameter, option or path segment is minor compared to being in the URL. Sounds … redundant.
is using a username and password instead of a separate identity provider.
-
@Applied-Mediocrity said in WTF Bites:
@Zecc Ain't you s'posed to have the
HttpClient
static?No. It depends on the Config (the authentication header is derived from the config and stored in the http client).
-
@Applied-Mediocrity said in WTF Bites:
@Zecc Ain't you s'posed to have the
HttpClient
static?No. It depends on the Config (the authentication header is derived from the config and stored in the http client).
And said header can be added when constructing the request message.
-
@Applied-Mediocrity It can. Hm, I don't really know how much other state the http client keeps and thus whether it makes more sense to have it static or not.
-
@Bulb Because of TCP, actually, which keeps the connections in
TIME_WAIT
state and spawns new ones for every request.