@allquixotic One of my favourite movies is Lord of War.
Touches some great points about the trafficking of arms and how irresponsible nations are/were when they pull out of warzones without a good exit strategy.
Well, when it comes to flashlights, there's a huge amount of variation in quality. You generally need to spend at least $60-80 to get anything worthy of the "tactical" moniker.
also feels like one of those cases where price really does not imply quality
just the branding and a feature list
and here I am actively looking for lights without a strobe because it's annoying as all hell and pretty useless for a torch
the one advantage over a cheaper torch is it might have a buck-boost driver where the cheaper one is probably linear. but that also adds to the bulk, and linear is pretty efficient with typical battery and LED voltages
The unit turns on. I could try to remove all the glass shards and replace it with some appropriately-sized cover made of polycarbonate, but again, I don't have the tooling to do this.
Anyhow, it's already been replaced with a brand-new light, and will just try to be more careful not to let anything like this happen again.
@Bob my ThruNite TC12 has strobe but I've never accidentally activated it
I use it on "Low" setting 99% of the time (out of Nitelight, Low, Medium, High and Turbo) and even for whole room illumination by standing it up on its end and pointing it at the ceiling for sometimes hours
never burned down the state of charge of the 18650 to <20% despite extensive use
it's suffered chest-high drops to concrete with only cosmetic damage
> After some trial and error, they found that by mounting a large can filled with milk onto the underside of each wing tip of their fighter planes, attaching a stirring shaft to a wind-driven propeller, and then undertaking a training sortie at 30,000 feet, they could supply 100 servicemen with a helping of ice cream every day, whilst simultaneously provoking the Japanese to waste a few shells trying to bring them down.
I have Poweramp and Google Music apps on my smartphone. I use bluetooth earbuds and found that a lot of times its controls would work with Google Music app than Poweramp (which is what I don't want).
Is there a way to make Poweramp primary app when it comes to controlling it through bluetooth earbuds?
@allquixotic Hmm. Thanks. I just used Google Music for specific tracks that I would occasionally listen to while most of the time I would use Poweramp for different songs.
I thought so. I'm puzzled with an issue I have. Everything works fine. I change the router and no longer do the power adapters work upstairs... Wifi works up stairs, powerline adapters work down stairs... I don't see how the router can have anyh impact here...
Not working - doesn't connect. In one of the rooms we have a media player. Direct to power line adapter. Now it can't detect the LAN. Switch the media to wireless and it can detect the LAN. Back to wired and again, no detection of LAN. Also the router does not detect any of the upstairs devices...
I have found powerline adapters to be very hard to debug, due to so many factors. I'm convinced that when 2 of our house hold appliances are on (like a microwave and washing machine) our speeds drop massively
Yes, the only thing I can think of is if the 2 adapters upstairs are some how not forgettingh previous settings or similar. I guess I could swap 2 adapters aroun d
Fixed so I will share. I'm not sure if this true of all pwerline adapters but the instruction was `Click on the Privacy tab (via Option in PPU7 upgrade), and then press the Use Default (Public Network) button. This will set the HomePlug back to its original Private Network Name.`
So I've done this with the utility to resert the private network name and I've finally seen the devices on my LAN
@JourneymanGeek, if the above helps / is useful :)
Thank you agian for the help, it's nice to know it's finally resolved
Love looks with the heart, not with the mind, and therefore, Cupid is blind.
The minutes hath spent with thou art the happiest timeth of mine own life, thee maketh me v'ry joyous
Shall thee beest mine own girlfriend?
//merge $_GET and $_POST into $_DAT
$_DAT=array_merge($_GET,$_POST);
//do htmlspecialchars on every value of $_DAT
function _clean(&$value) {
$value = htmlspecialchars($value);
}
array_walk_recursive($_DAT, '_clean');
print_r($_DAT);
I'm going to be dealing with both POST and GET data and am using this block of code to merge them into a single array and then sanitize all keys with htmlspecialchars
@Rahul2001 So IIRC $_GET is the query part of the URL and $_POST is the body if the request carried one
I don't see any reason why you would want to merge those into a common set
Especially if you place importance on either section in other parts of your application
In $_DAT you have the potential to have a parameter, that was originally passed (and validated) as a query argument, to be overridden by an identically named argument from the request body
@Rahul2001 more practically, it used to be the case where e.g. Google would delete parts of a website because some dumbass had a /delete endpoint that accepted GET requests
crawlers will blindly follow links with GET
(more recently, IIRC Google tries to be smart and will submit some POST forms, but IMO that's actually broken-ish behaviour)
All over the internet, I see the following advice:
A GET should never change data on the server- use a POST request for that
What is the basis for this idea?
If I make a php service which inserts data in the database, and pass it parameters in the GET query string, why is that wrong? (I ...
@Rahul2001 the verb used makes a difference in the action taken, too. e.g. on an API, GET on /files might return a list of files, while POST on /files might add a new file
now, I'm talking HTTP verbs
there's a good chance PHP does something stupid and creates $_GET out of querystring params on a POST request
idk PHP
yup, of course it does
lolphp
compare ASP.NET, which exposes QueryString and Form. compare Express (Node.js), which exposes query and body.
PHP's misnamed it. so, yea, you should be checking the HTTP method used via $_SERVER['REQUEST_METHOD'], but treat $_GET as query string (valid on POST) and $_POST as a form-encoded body, and ignore the stupid names PHP gives the vars because they don't have to match the actual HTTP method used
that moment when you've whisked the cheese cake mixture by hand so much, that it's now too thick to actually whisk anymore, and you need to mix in the lemon :O
Hey guys. I accidentally removed grub from my ubuntu packages. I do not have a CD or a USB at hand, but I do have a partition in my SSD that I can write the ISO onto. How can I make that partition bootable?
I have a Windows 8 To Go Entreprise HDD, which boots both on BIOS and UEFI systems (I'm wondering how that's done, because I need that too).
Now, I see the HDD I use for that windows is an MBR HDD, it consist of a 350 MB FAT32 partition which holds the booting file to boot the second, NTFS parti...
From the tutorial from here - System Prefs -> Language & Text, and select the “Input Sources” tab but I don't seem to have the "Input Sources" tab - any ideas why?
> Meet Lena. She will guide us through this document, because the seriousness of a scientific document in the area of computer graphics can be measured by the number of times Lena appears in it. She truly is the Mona Lisa of image processing.
Here is what the layout of an Italian keyboard looks like:
As you can see, the curly braces, which are absolutely necessary to
write code in any of C, C++, JavaScript, Java, Objective C, and others,
appear in purple in this picture. This is because while the other
characters can be seen visual...
@AnArrayOfFunctions Next time make use of Google and search for "keyboard layout with backslash instead of tilde". The above answer is the first result.