Skip to content

Instantly share code, notes, and snippets.

View akoul889's full-sized avatar

Akshay Koul akoul889

  • Jiva.ag
  • Bengaluru
View GitHub Profile
@akoul889
akoul889 / vikatn print
Last active September 16, 2020 07:54
vikatn print
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
<title>Prothom Alo Stories</title>
<link>https://www.prothomalo.com</link>
<description>Prothom Alo Stories.</description>
<atom:link href="http://rss.palobd.com/rss/rss" rel="self" type="application/rss+xml"/>
<language>en-US</language>
<lastBuildDate>Thu, 10 Sep 2020 18:21:43 +0600</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
{"@timestamp":"2020-04-01T07:10:19,153","thread":"qtp1877160278-38188","level":"INFO","logger":"qarth.ring","ndc":[],"mdc":{},"logged-message":"Exception trying to verify record java.lang.IllegalArgumentException: Multi-services require an auth record or service parameter
at qarth.ring$new_record_redirect_handler$fn__20713.invoke(ring.clj:23)
at qarth.ring$omni_handler$fn__20754.invoke(ring.clj:150)
at qarth.friend$oauth_workflow$fn__20780.invoke(friend.clj:96)
at cemerick.friend$authenticate_request$fn__15851.invoke(friend.clj:242)
at clojure.core$some.invokeStatic(core.clj:2701)
at clojure.core$some.invoke(core.clj:2692)
at cemerick.friend$authenticate_request.invokeStatic(friend.clj:242)
at cemerick.friend$authenticate_request.invoke(friend.clj:231)
at cemerick.friend$authenticate_STAR_.invokeStatic(friend.clj:251)
<?xml version="1.0" encoding="UTF-8" ?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
<title>Latest News</title>
<description/>
<atom:link href="https://www.vikatan.com/api/v1/collections/latest-news.rss?format=ucweb&time-period=last-24-hours" rel="self" type="application/rss+xml"/>
<link>https://www.vikatan.com</link>
<language>ta</language>
<lastBuildDate>Fri, 07 Feb 2020 06:19:29 +0000</lastBuildDate>
<item>
@akoul889
akoul889 / palo.xml
Last active February 25, 2020 10:55
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
<title>Prothom Alo Stories</title>
<link>https://www.prothomalo.com</link>
<description>Prothom Alo Stories.</description>
<atom:link href="http://rss.palobd.com/rss/rss" rel="self" type="application/rss+xml"/>
<language>en-US</language>
<lastBuildDate>Tue, 25 Feb 2020 16:50:50 +0600</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
@akoul889
akoul889 / AuthorHolder.java
Created June 23, 2017 10:01
Glide load gist
glideRequestManager.load(author.avatarUrl()).bitmapTransform(new
RoundedCornersTransformation(authorImage.getContext(),
Utilities.dpToPx(authorImage.getResources(), 5), 0))
.error(R.drawable.person_placeholder)
.placeholder(R.drawable.person_placeholder)
.dontAnimate()
.dontTransform().into(authorImage);

We use This HTML Data

<html><style>body {margin: 0;} iframe {box-shadow: none !important;}</style><body><iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fashfaq.kodinhi%2Fvideos%2Fvb.100002322468799%2F1202883703132367%2F%3Ftype%3D3&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe></body></html> 

and load it in a web view

These are the settings for the web view

@akoul889
akoul889 / Facebook login crash
Created September 1, 2015 14:22
City details are not found
09-01 19:48:12.181 14234-14234/com.kfit.kfitapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.kfit.kfitapp, PID: 14234
java.lang.NullPointerException
at com.kfit.kfitapp.activity.BaseSocialLoginActivity$2$1$1.onClick(BaseSocialLoginActivity.java:115)
at android.view.View.performClick(View.java:4654)
at android.view.View$PerformClick.run(View.java:19438)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
@akoul889
akoul889 / 411 transaction response
Created July 20, 2015 09:15
Transaction response
{
"authIdCode": "",
"citrusUser": {
"address": {
"city": "Mumbai",
"country": "India",
"state": "Maharashtra",
"street1": "streetone",
"street2": "",
"zip": "400052"
@akoul889
akoul889 / DrawableClickAndPasswordSwitch
Created July 9, 2015 08:18
Method to describe drawable click and password switch
citrusPassEt.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
final int DRAWABLE_LEFT = 0;
final int DRAWABLE_TOP = 1;
final int DRAWABLE_RIGHT = 2;
final int DRAWABLE_BOTTOM = 3;
if (event.getAction() == MotionEvent.ACTION_UP) {
if (event.getRawX() >= (citrusPassEt.getRight() - citrusPassEt
@akoul889
akoul889 / transaction_response
Last active August 29, 2015 14:24
Transaction response
{
"TxStatus": "PG_REJECTED",
"TxId": "143573656419446",
"TxRefNo": "CTX1507010742592407056",
"pgTxnNo": "",
"pgRespCode": "15",
"TxMsg": "This transaction is ineligible to be processed as rule "SingleTransactionAmount<11" failed.",
"amount": "20.00",
"authIdCode": "",
"issuerRefNo": "",