To make a GET request to an RQM server you need to set four HEADER values
Authorization: Basic BASICAUTHTOKEN
The generate the BASICAUTHTOKEN, perform the following operation [credit]
String userpass = username + ":" + password;
String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());
The endpoint will look something like this
Here is the cURL version of my Postman
curl -X GET -H "Accept: application/xml" -H "Content-Type: application/rdf+xml" -H "OSLC-Core-Version: 2.0" -H "Authorization: Basic BASICAUTHTOKEN" -H "Cache-Control: no-cache" "https://jazz.net/sandbox01-qm/process/project-areas"
I had a very difficult time finding installation examples for the Bosch EL-51253 Power Max, so I want to add this image to the collection for future references:
My house was pre-wired with 8 gauge wire to a 40amp breaker. The wires comes out at an electric box, so to run the flexible conduit into the charger, they had to put in a plate with some fancy connectors. This is what it looks like
I’ve seen using Redfin and Zillow to look for houses. It seems that realtors like to lie about the size of the houses they are selling. It’s like someone taking a deceptive pictures to use in an online dating website.
This has led to a rather funny item you always see in houses: oval clocks.
The result of them stretching the pictures to make rooms look bigger.
One of the things that really irks me is when well to-do people say shit like: “Poor people get free healthcare, why should I work. I should just quit my job and go on welfare so I can get free shit too”.
It pisses me off because I’ve had experience looking for doctors and dentists that accepts medi-cal and denti-cal insurance.
It’s a terrible experience because the list of providers is always short and most are in the ghettos. On top of that, if you google the people on that list, half of them will be 1-star on yelp.
It’s not fun or easy to be living in poverty. Your choices are always limited, which forces you into a cycle of endless headaches and problems.
Our newborn girl has a condition known as Gastroesophageal Reflux Disease (GERD), or simply known as “acid reflux”.
This is how our days play out.
1. We feed her
2. Hold her for 30 minutes to prevent reflux
3. Doesn’t work, she vomits
4. We clean her
5. She’s hungry because she didn’t keep her food down
6. We feed her again.
7. She vomits again.
8. We clean her again.
9. She’s hungry, but now she’s too tired to eat.
10. She sleeps for maybe 30 minutes…
11. The acid reflux wakes her up
12. She vomits yet again.
13. Go back to step 1
This hour long cycle is endless. There are many days when we are up 24-hours to play out this endless cycle.
People who don’t understand this problem thinks we are just stupid parents.
“All baby spit up” they say.
“You have to burp your baby” they say.
“Just put your baby down and let her sleep” they say.
Blah blah blah blah blah…
I will gladly accept that I am a stupid parent, and wear a dunce cap and a t-shirt that says I am stupid idiot, if it means my baby can be properly fed and can sleep more than an hour without waking up crying in pain.
There is a common perception that young people are naive and that’s why they are so vocal about politics, social injustice, etc…
But as I’ve grown older, I’ve realized that it’s not because the youth are naive, it’s because as you grow older, you realize people just don’t care. So you stop voicing your opinions.
I think this is a problem. Political apathy should not be a badge of honor. We should engage and challenge each other.
I have never written to any politician before, but I saw this an as opportunity to speak up.
From what I know, my congressman, John Garamendi, is a pretty cool guy. He seems very progressive, and focused on serving his district. However, his support of HR 4038, the Syrian Refugee Bill, is very disappointing.
Here is what he wrote about it:
Here is my response:
Message Subject: H.R. 4038
Dear Congressman Garamendi,
I once met you at the airport and I crassly told you that you “haven’t done anything to piss me off”. I apologize for my rudeness on that day, but today I am writing to let you know that I am very unhappy with your support of H.R. 4038. I read your statement about it, and I think your reasons are completely bogus.
You know for damn sure that the Republicans put on this vote to play on the fears of their constituents, and their actions are motivated by deceit. You supporting this resolution is an affirmation of their deceit, and giving in to their fear mongering. If you really wanted “an opportunity to assure the American public that we are thoroughly vetting refugees”, then you should stand up and shout down those spreading misinformation and lies, not give them an endorsement for their deviousness.
As an immigrant/refugee, from Vietnam, myself, I know that I would be very hurt if politicians used my struggle for a better life as a hateful political gesture.
I do want to add that my objection to Congressman’s Garamendi vote is not because I think I know how to better handle the refugee crisis, or that I have any special understanding of how to mitigate security threats.
I simply object to the fact that he is participating in political theatre with the Republican Party.
AWS ElasticSearch Service allows you to secure connections to your amazon elasticsearch servers in two ways:
- Restrict by IP
- Sign your request with IAM
Using the restrict by IP option is easy, but it won’t work in places like Heroku, where you don’t have control of the IP address of your app.
So you are left with option #2. However, the `elasticsearch-ruby` gem does not have any way to sign your request using IAM.
To add this functionality, we have to use a Faraday Middleware to inject aws code singing into `elasticsearch-ruby`. There is a gem `faraday_middleware-aws-signers-v4` that handles the code signing, but we have to configure `elasticsearch-ruby` to use it.
Here is how you do it
require the proper gems
gem ‘aws-sdk’,'< 2.0′
add this to your config/initializers
Whenever our friends and family find out they get pregnant, we get pictures of the pregnancy test.
Every time I see one of those, I can’t help but think to myself, “Wow, how can you be so cavalier? Don’t you know what can happen?”
It’s a really hurtful and sad thing to think, but as someone who has been through a miscarriage, you can’t escape those negative thoughts.
Don’t get me wrong. I have nothing against people sharing the good news, and I am nothing but completely happy for them.
It’s just that personally for me, the pregnancy test is no longer a symbol of joy. It has turned into a warning a signal: Caution ahead, be prepared for the pain.
I remember the first time we had positive pregnancy test. After two years of trying, we were so happy. I even filmed us smiling and laughing, leaving a message for our baby, the baby that we so desperately wanted for so long.
When we had our miscarriage a few weeks later, that video became like a landmine that I could accidentally step on.
He’s not a real man.
His boys can’t swim.
That’s nature way of telling them they shouldn’t reproduce.
Those are some of the exact words that I said when I heard about friends who have a hard time getting pregnant.
Right now, sitting here in my throne of humbleness and experience, those words feel like a sledge hammer to the chest, taking all the air out of my lungs.
I am writing about this because I noticed that in a lot of support forums for people dealing with infertility, there are always recurring threads from people who are sad and upset at the hurtful and insensitive things friends and family say to them.
While I empathize with the sorrow, I think that we have to forgive them. Because like me, before you have to go through with infertility yourself, it’s hard to imagine or understand how painful it is.
I guess there are good people out there who can sympathize with that pain without going through it themselves, but I bet there are more people like me who will never know what it feels like until they experience it.