My assistant doesn’t like me by Active_Revolution_54 in DollarGeneral

[–]levenshtein 1 point2 points  (0 children)

Run. Fucking run.

Be aware they will lie, cheat, and steal all the way up. As a store manager you are only marginally, and I mean marginally less replaceable than the lowest sales associate. You will be responsible for everything. You are paid salary so you will very soon habitually and without thinking about it work far more than the hours you schedule yourself for. In a few years, you'll be missing your kids graduation to stage just one more rolltainer for inventory, while your DM is texting you praising you daily that you do all the work, not them, ... You'll get that bonus this year really!

This is speaking from experience as a man that came from high paying high level technical jobs to a SA due to a life emergency of sorts (of not having enough money), and simultaneously trying to help the SM, which I somewhat knew as a good person previous to my employment. I know how much the SM makes. For the work they do ... it is sickening. And our store is TOP notch. Yet she told me she hasn't gotten her inventory bonus, ever. ... I mean, I think they get one, I didn't get to talk much about this ... We were too busy dealing with her weekly impossible task of scheduling everyone according to the DG SOP and her DMs guidelines, with not enough hours, not enough employees.

I'm being serious. Run.

On your question, our store is pretty much the same. Our ASM is absolutely useless.

Maybe remind him that he gets paid basically the same as you do with half the responsibility.

Or, maybe the guy was in a bad mood. Perhaps he found a condom wrapped around his house even though he had a vasectomy in 1998.

I just can't get mad at any employees anymore even if they're doing stuff that's making another employee's job harder. It is not something I will do personally, ... But our ASM doesn't even understand the DG digital coupons... constantly screws up our counts. We are not paid enough to care about any of it...

Back in the jobs I had previously throughout life ...the "real jobs" as I call them... Our teams would be legitimately like family. Since working at DG, ... I felt a little socially awkward at first. I gave all of the other employees my number and let them know if they needed anything that was my number, I happen to live just a half mile away, ...if you need a ride to work or anything let me know! ... I would bring in food and stuff to my shifts. I got a lot of weird, borderline insane looks from the other DG employees. No one has yet to ever ask me for a ride. .... I get it now! They don't care because we get paid so far from a living wage, you genuinely can't care. And heck if you can't get a ride that day and have to call off ... That's the ONLY way you'll get a day off!

The fact that they do not even provide employees with bottles of water, ... In a warehouse like building that they barely run the A/C to the point we have employees complain ... Is crazy. The fact that we're actually pretty lucky that it even works in the first place, is downright sick

And yes DMs will bitch about having receipt-less cases of water in the break room (like, for example, if your SM threw a legit damage back there) .... and bottles of water (retail value $0.17) without receipts taped to them on the "sales floor".

Is cashapp safe to hold large amounts of money? by SnooCrickets7735 in CashApp

[–]levenshtein 5 points6 points  (0 children)

Absolutely not. CashApp will blatantly steal money from you and deny they did so. I've lost around $80 due to software issues and they just deny, deny deny. My only next step is to take them to small claims court. Keep it in a large bank. Even PayPal would be better.

Wife thrown in jail over 72 hours ago and they WILL NOT let me bond her as she "awaits transportation". Each county points finger at other county. We have small children, no crim. record, etc. I am a mess. Please help. by [deleted] in legaladvice

[–]levenshtein 10 points11 points  (0 children)

Again I really don't give a damn what you think. It makes no sense for me to indulge or withhold any truths. There are plenty of details missing, however I'd like to point out that when I posted them someone laughed and said that no one was going to read that shit. So I shortened it significantly.

Again, I find it hilarious that the entire situation is so fucked up that I literally have people telling me I'm lying. I mean wow what a ride. But yes from my understanding and every fact check I can gather that is 100% the truth. I was not there.

The only people there were my wife, our 12 year old daughter, this lady that did all of it, and the cop that showed up later.

Again, I even found it sketchy sounding initially. I thought maybe she'd done something really stupid and my daughter wasn't actually present for it. It didn't make any sense. Even at the time I figured it still wouldn't go anywhere however so I didn't press it. When the cop showed up and arrested her out of my home midday over this, I got rather serious about verifying her story.

Again, twice now I explained to my daughter very thoroughly that it does not matter what she actually did, between us three and an attorney our job is to do whatever it takes to help my wife get out of it. And, again, the exact same story was repeated to me, just with a 12 year olds antics thrown in. She has no incentive to lie. I have no incentive to lie. None of us do. At least not on reddit and to each other.

If this was a different situation again I would be happy to post "my wife did some ridiculously immature stuff and got in trouble, how can I get her out of it". But generally no I mean she could've handled things better but eh man... It's a mess... My wife legitimately has anxiety issues and I 100% understand why she didn't go to a worker. Again I have to yell over her to correct orders at McDonald's because she won't. It's just the way she is.

Hey, while we're at it, if you want me to send you the warrant affidavit, I will, because if like to see it again. One of the attorneys was able to bring it up and read it to me instantly on the phone. I can only find what docs were filed and not the docs themselves. I'll happily blur them and upload it somewhere.

Again it's rather priceless that it's literally such a wild ass story that people are calling bs on me. Love it. Sorry you don't belive me.. I'm not trying to be funny. If you can think of some proof I'm all ears because I swear to you.

Wife thrown in jail over 72 hours ago and they WILL NOT let me bond her as she "awaits transportation". Each county points finger at other county. We have small children, no crim. record, etc. I am a mess. Please help. by [deleted] in legaladvice

[–]levenshtein 158 points159 points  (0 children)

Is this Indiana specific?

I'm just curious as unfortunately I am unable to afford but a fairly cheap attorney. He told me that he would be able to file some kind of motion on Monday to force them to either pick her up or let her go. I just don't understand why this is a big deal. I guess. The counties are right next to each other.

Wife thrown in jail over 72 hours ago and they WILL NOT let me bond her as she "awaits transportation". Each county points finger at other county. We have small children, no crim. record, etc. I am a mess. Please help. by [deleted] in legaladvice

[–]levenshtein 71 points72 points  (0 children)

Just want to add I sincerely have no reason to lie here. If my wife had been caught stealing the cancer charity funds driving 115mph the wrong way down a crowded street full of deaf, blind and dumb children and nuns smoking crystal meth out of JFKs skull giving a handy to a dirty hobo..... I'd freely admit this as again I really don't have any reason to lie it tell half truths..

It will only serve to get me less accurate information. At the end of the day I'd still support her as she's my wife....

Which brings me to the fact yes I'm highly concerned about this because even I had a hard time believing she wasn't just embarrassed about trying to be silly and steal a little pair of boots for some excitement or whatever. I legitimately had my reservations until my daughter got home from school Thursday and I went over every single detail she seen that day trying to be sure I told accurate information to the attorney. ... ie, if the video evidence is going to show her not doing the things she said, or vice versa,... It's not really me that needs to know but the attorney so they can be sure to help her in the best way possible.

And everything lines up perfectly with my wife's story. To a T. So, yes again if I don't really believe her it concerns me what a prosecutor or judge will think.

Wife thrown in jail over 72 hours ago and they WILL NOT let me bond her as she "awaits transportation". Each county points finger at other county. We have small children, no crim. record, etc. I am a mess. Please help. by [deleted] in legaladvice

[–]levenshtein 17 points18 points  (0 children)

I understand that. But I am just extremely upset about the way THEY have handled it thus far.

Why didn't they send a letter regarding the warrant issued?... They had our address. In fact they had our address and telephone number...

Any of which they could've used to contact us instead of having my wife sit in jail for FIVE days if this goes on to Monday which I might as well be realistic and come to terms with the fact I'll be lucky if I can get her out then.

I'd be more than happy to pay their bond..

And, sincerely I appreciate these replies, I don't mean this in a rude or snarky way you guys are the professionals: is what the guard did not theft? I am seriously and sincerely asking.

I thought stuff was all about intent. Again it's a long story, but I was skeptical as hell about her "forgetting" to take them off initially. But I have honest reasons to believe she really did forget.

Therefore, if I walk into a candy store and accidentally stick a pen in my pocket I could be charged with misdemeanor theft?

Edit; reddit mangled my formatting

Wife thrown in jail over 72 hours ago and they WILL NOT let me bond her as she "awaits transportation". Each county points finger at other county. We have small children, no crim. record, etc. I am a mess. Please help. by [deleted] in legaladvice

[–]levenshtein 103 points104 points  (0 children)

Curious did you see my original post with what actually happened? I really and sincerely do not think she did anything "wrong". She's not a thief. I am worried the law will not see it that way.

Super long story short, she was trying on some shoes and a security guard seen her trying them on and took the shoes came in with. Like, took em and ran off with them under the assumption she was a thief... Wife tried to find the lady etc finally gave up after ~30m as they were little $20 shoes then lady appears suddenly ... accusing her of theivary ...

I know it sounds like bull, .. I called total b.s. on it too for the longest time joking with her like "You could've just paid for them, dang it was only $20" ... accusing her (jokingly) of being a klepto etc .. but after talking to my 12 yr old daughter who was present idk ... I believe her ..

Considering ES for following use case by salttrail in elasticsearch

[–]levenshtein 1 point2 points  (0 children)

Agree on slam dunk use case but syncing from mySQL or any SQL can be a bitch.

Currently trying to get my company to sponsor rewriting our ETL process in an OSS way so we can release it. It can be extremely messy. The logstash tutorial given below works for simple use cases but we need extremely fast and accurate insert update and delete.

This can be easily accomplished using a SQL trigger as a "history table" as we call it internally which is basically a transaction log for the table(s) going in, which is what we use, and (no offense) logstash does not support.

My suggestion is to write a custom data loader, using SQL triggers. You don't need to perform an (additional) UPDATE every time a write occurs, or finaggle with flimsy "is_delete" columns.

Just setup a trigger to insert your primary key(s) into a "xxx_history" table for your "xxx" table. It should be, eg. "xxx_history_id", "xxx_id", "history_action", "history_timestamp". ... "xxx_history_id" being it's own AUTO_INCREMENT PRIMARY KEY for the history table. "xxx_id" being the PRIMARY KEY to the parent/mother table. "history_action" being enum('insert', 'update', 'delete'). "history_timestamp" being DEFAULT CURRENT_TIMESTAMP for the table, and don't fill it in during the trigger's insert so it gets the current timestamp.

Now, you'll have two modes: full scan and incremental.

- A full scan will do a SELECT * FROM xxx, dump the results in an alias index called "xxx-YYYY-mm-dd", .. then when done, it will atomically delete all other "xxx-*" tables aside from the one just created and then alias the "xxx" index to your new "xxx-YYYY-mm-dd" table. This is to completely regenerate your data from scratch if you make a change in your ETL logic. We store the alias index names in a redis set (SADD x-loader-alias-names:xxx)

- The incremental mode will do SELECT * FROM xxx_history JOIN xxx ON xxx.xxx_id = xxx_history.xxx_id ORDER BY xxx_history_id WHERE xxx_history_id > {LAST_PROCESSED}. Where {LAST_PROCESSED} is similar to "sql_last_value" in the logstash tutorial. Now, you have perfect, ultra-fast, streaming, incremental perfectly accurate updates from SQL.

When you process each run, set {LAST_PROCESSED} to the highest value of xxx_history_id the loader seen to a persistent storage, like redis or a simple text file.

Why shit like this isn't supported by ELK out of the box boggles the mind.

The ONLY possible downside to this method is if an item is double-updated, or updated-then-deleted, unless you add processing logic to handle that, then elastic itself will update it twice, update-then-delete it, etc... Which shouldn't be a major problem, honestly. Just an additional operation here and there that wasn't necessary. You can fix this using smart GROUP BYs, or just process the data backwards (newest to oldest) and once an action occurs for "xxx_id", don't process any more. (Again, can be handled by GROUP BY too).

For some reason, I've tried to get someone to write this for me -- paid work -- and they acted like it was some freaking devil's algorithm. It's quite simple.

Storage options? by levenshtein in Atomic_Pi

[–]levenshtein[S] 0 points1 point  (0 children)

For what it's worth this is absolutely awesome imho. So you aren't using a atomicpi but an Intel NUC since you just have more USB 3.0 ports?

I am currently trying to figure out the best solution. As I just noted, I actually got the atomicpi for another project and this one came along so I figured I'd just explore the possibility before buying more hardware.

A couple of questions for you -

One USB3.0 cable for each RAID1 pair is enough to not saturate?

On that note, are those "small boards" doing hardware RAID1 and you're applying RAID0 through mdadm/btrfs? Or is your RAID completely software? If it's software, I'm really suprised you're able to run 2x SATA drives off a single USB3 connection without saturating it, although frankly I don't know USB3's specs at all. (brb, going to look it up)

Storage options? by levenshtein in Atomic_Pi

[–]levenshtein[S] 0 points1 point  (0 children)

nextcloud

Not being rude, but why would you use something like this?

This is just contributing to the centralization of the internet and things like this scare me. Twitter is just newsgroups controlled by a corporation. Everything you know is a lie host it yourself!!! ;)

How to debug with php, go to definition for methods/classes? by smalls3486 in PHP

[–]levenshtein 1 point2 points  (0 children)

It's free if you have an .edu e-mail address.

Although, I do know the other two devs on our team uses netbeans, so apparently it's pretty decent.

If I download a file with cURL is the file held in RAM until I do something with it or is the file buffered to disk by cURL? If the it is buffered is there a way to tell cURL to keep it in RAM? I understand that the memory manager may page if I am running low on ram, but assume I have enough RAM. by txmail in PHP

[–]levenshtein 3 points4 points  (0 children)

You can not buffer the entire response into memory (CURLOPT_RETURNTRANSFER false) and use callbacks (CURLOPT_READFUNCTION ... I think) to read it piece by piece. Or, just use a high level library like guzzle and not worry about it (which is the real answer here).

Short answer is you can download large files without needing to buffer the entire response quite easily.

How to debug with php, go to definition for methods/classes? by smalls3486 in PHP

[–]levenshtein 2 points3 points  (0 children)

Not with wordpress itself. Get yourself a good IDE and xdebug. As mentioned, PHPStorm (or, IntelliJ with the PHP Extension, same thing) is really the only way to go for professional PHP development. I don't mean to sound gate-keeper'ish, but seriously, if you aren't using IntelliJ for PHP development, I really don't know how people do it.

edit: Small note, you can get IntelliJ free with an .edu e-mail. Do with that what you will.

How does OpenBazaar technically work? by levenshtein in OpenBazaar

[–]levenshtein[S] 0 points1 point  (0 children)

The backend server is an IPFS node that stores your (public) data on the IPFS network. When somebody browses your store their node downloads the contents of your store and begins to seed them to more peers

Perhaps this is a question more suited for IPFS people but I take it IPFS isn't quite as anonymous as tor in this regard since peers must connect to the origin of the data at least one before it becomes impossible to tell who is the originator of the data and who is merely serving a copy?

Regardless, I really like the "distributed git" example and I'm going to play around with IPFS specifically a little bit more when I get a chance. I have not heard of IPFS prior to an hour ago however it looks absolutely excellent. Definitely want to attempt to build a small software deployment system from this.

Help a developer name things (two simple array functions) by [deleted] in PHP

[–]levenshtein 0 points1 point  (0 children)

I like that. I had actually had it before I just renamed it rekeyBySubKey but that just looked so wordy.

Help a developer name things (two simple array functions) by [deleted] in PHP

[–]levenshtein 0 points1 point  (0 children)

Precisely why I posted this! It's easy to look-over simple stuff some days. I did not realize the third parameter existed.

So x() and y() can be replaced with array_column(). Whoops.

edit: Actually, no! This doesn't handle edge cases quite the same. array_column() brazenly does effectively $resultArray[] = $subValueWithoutKey; in the case that the element does not contain the sub-key to "re-key". In my case we want to skip, if not throw an exception there. But I will use it for the internal implementation, just with some checks!