Categories
Ask

[ Singles & Dating ] Open Question : Is it ok to hold my dick when I sleep ?

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : Poll: Guy/Girl Bestfriends?

Okay, in your opinion, should you talk and be friends with a member of opposite sex if they have a significant other? Do you believe it can be ONLY platonic (ie. one person doesn’t secretly have feelings)? Answer with as much input as you can! (for a psychology project)

Categories
Development

Android – observing DB changes within ViewModel

I am using a lot of LiveData in my projects and it’s great in those cases where I need to pass something to views since it’s intention is to be observed by lifecycle owners (i.e. views). But I wonder what should I use in those cases when I need to apply some logic in my […]

Categories
Development

How to write a function to to draw a picture? I use some method. But it need to be improved

data TurtleCommand = Forward Double — ^ Drive forward the given number of units, and — draw a line. | Jump Double — ^ Move forward the given number of units, but do — not draw a line. | Turn Radians — ^ Turn the turtle. Positive values are — anticlockwise; negative values are clockwise. […]

Categories
Development

How to read subfolders inside the paritioned folder in s3 using AWS Athena?

I have my s3 bucket in the following format s3://datalake/production/ . This is the path I gave while creating a table in Athena. Now inside this folder, there are many subfolder like 2015,2016,2017,2018 and forms the partition of my data. So I created the partition using this year as reference. My data point also has […]

Categories
Algorithms Development

Splitting up large file in header-only library

I’m working on a code base of a header-only library. It contains this Polygon class which has the problem that it is rather large: About 8000 lines. I’m trying to break this up but have been running into trouble. A couple of constraints for this class and library: I’m not at liberty to change the […]

Categories
Development

AzureAD – Block Access by EmployeeID

Working on blocking users by EmployeeID in AzureAD. The CSV file has a column EmployeeID setup as: EmployeID ——— 9999 12345 23452 24354 234234 Here is what I have so far $TermedUsers = Import-csv “C:\temp\testtermed1.csv” foreach ($Termed in $TermedUsers){ Set-AzureADUser -ObjectID (Get-AzureADUser | where-object {$_.ExtensionProperty.employeeId -eq $Termed}).EmployeeID -AccountEnabled $false } The error message I get […]

Categories
Development

Why does my for loop not work in javascript?

I am trying to change the colour of a paragraph from red, to blue, to green. The multiple loops I have tried were unsuccessful, and I have listed one of them below. var one = document.getElementById(“titleTwo”); for (var i = 0; i < 21; i++) { one.style.color = “red”; one.style.color = “blue”; one.style.color = “green”; […]

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : What’s the weirdest food you’ve ever eaten?

Categories
Ask

[ Singles & Dating ] Open Question : Guy always stared and smiles at me how do I approach him?

So for a couple months now I’ll walk past this guy at work and he’ll be sitting on his break and he would stare. The past six times I walked past him he makes sure to smile so I smile back. He seems interested and I’m interested how do I get him to ask me […]