Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
<?php
$hex1 = 'FF0000';
$hex2 = '0000FF';
$hex3 = '';
$r1 = base_convert($hex1{0}.$hex1{1},16,10);
$g1 = base_convert($hex1{2}.$hex1{3},16,10);
$b1 = base_convert($hex1{4}.$hex1{5},16,10);
$r2 = base_convert($hex2{0}.$hex2{1},16,10);
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:00",
{
"payload": {
"domain": "http:\/\/demo.ushahidi.com\/",
"incidents": [
{
"incident": {
"incidentid": "1",
"incidenttitle": "Hello Ushahidi!",
"incidentdescription": "Welcome to Ushahidi. Please replace this report with a valid incident",
"incidentdate": "2010-11-12 15:16:27",
[Thu Nov 11 10:02:36 2010] [error] [client 41.212.36.70] ModSecurity: Access denied with code 403 (phase 2). Pattern match "(< ?(?:script|about|applet|activex|chrome).*(?:script|about|applet|activex|chrome) ?>|> ?< ?(img ?src|a ?href) ?= ?(ht|f)tps?:/|" ?> ?<|" ?[a-z]+ ?<.*>|> ?"? ?(>|<)|< ?/?i?frame|\\%env)" at ARGS:sms*flsms_instructions. [file "/hsphere/shared/apache2/conf/modsecurity.d/10_asl_rules.conf"] [line "690"] [id "340147"] [rev "56"] [msg "Atomicorp.com - FREE UNSUPPORTED DELAYED FEED - WAF Rules: Generic XSS filter"] [data ".php?"] [severity "CRITICAL"] [hostname "tafsiri.ushahidi.com"] [uri "/turk.php"] [unique_id "TNwTm0MWihgAAGFWNf4AAAAr"]
[Thu Nov 11 09:57:10 2010] [error] [client 98.230.7.14] ModSecurity: Access denied with code 403 (phase 2). Match of "rx (\\\\.(?:gif|jpe?g|png|bmp|wct|pdf)|^docs$|^http://$|^[0-9]+\\\\|?|^$|^true$|^false$|^product_image/$|^submit$)" against "ARGS:image" required. [file "/hsphere/shared/apache2/conf/modsecurity.d/10_asl_rules.conf"] [line "781"] [id "34016
## ** RUN THE FOLLOWING BEFORE PULLING FROM https://github.com/ushahidi/Ushahidi_Web ** ##
git branch -m master 1.2
git branch -m 2.0 master
{
"payload": {
"domain": "http:\/\/ushahidi.dev\/",
"incidents": [
{
"incident": {
"incidentid": "3494",
"incidenttitle": "National Palace damaged",
"incidentdescription": "National Palace has extensive damage. President and First Lady are safe.",
"incidentdate": "2010-01-12 10:43:00",
2010-10-26 18:32:48.143 Ushahidi_iPhone[31865:207] -[TextTableCell getImage]: unrecognized selector sent to instance 0x79686b0
2010-10-26 18:32:48.144 Ushahidi_iPhone[31865:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TextTableCell getImage]: unrecognized selector sent to instance 0x79686b0'
*** Call stack at first throw:
(
0 CoreFoundation 0x02782919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x02b425de objc_exception_throw + 47
2 CoreFoundation 0x0278442b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x026f4116 ___forwarding___ + 966
4 CoreFoundation 0x026f3cd2 _CF_forwarding_prep_0 + 50
5 Ushahidi_iPhone 0x0000e087 -[ViewIncidentViewController tableView:didSelectRowAtIndexPath:] + 881