This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ChangeFieldNamesInForm() | |
Try | |
Dim sourcePDF As String = "source.pdf" | |
Dim outputPDF As String = "destination.pdf" | |
Dim fsw As FileStream = New FileStream(outputPDF, FileMode.OpenOrCreate, FileAccess.ReadWrite) | |
Dim reader As PdfReader = New PdfReader(sourcePDF) | |
Dim stamper As PdfStamper = New PdfStamper(reader, fsw) | |
Dim root As PdfDictionary = reader.Catalog() | |
Dim form As PdfDictionary = root.GetAsDict(PdfName.ACROFORM) | |
Dim fields As PdfArray = form.GetAsArray(PdfName.FIELDS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System.IO | |
Imports System.Text | |
Imports System.Security.Cryptography | |
Public Class DrupalHelper | |
'most of the ideas here came from an article at http://drupal.org/node/308629 | |
Public Function getUnixTimestamp() As String | |
Dim ts As New TimeSpan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports Microsoft.Http | |
Imports System.Text | |
Public Class DrupalForm | |
Public Function create(ByVal type As String, ByVal formatoutput As Boolean, ByVal authenticate As Boolean) As HttpMultipartMimeForm | |
Dim form As New HttpMultipartMimeForm | |
Dim helper As New DrupalHelper | |
Dim method As String = Nothing | |
Dim methodstring As String = Nothing | |
Try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports Microsoft.Http | |
Imports Microsoft.Http.HttpClient | |
Imports Microsoft.Http.HttpMethodExtensions | |
Imports Newtonsoft.Json | |
Imports Newtonsoft.Json.Converters | |
Imports System.Net | |
Imports System.Xml | |
Imports System.IO | |
Imports System.Text | |
Module Module1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
win.addEventListener('focus',function() { | |
//create map annotation | |
longitude = -1.7933350801467896; | |
latitude = 51.531768798828125; | |
objLocationAnnotation = Titanium.Map.createAnnotation({ | |
latitude: latitude, | |
longitude: longitude, | |
title:"Issue", | |
animate:true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "http://connect.facebook.net/en_GB/all.js#xfbml=1&appId=171477789617721"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "_id" : ObjectId("4fb10c8aaaf231ec96000009"), "id" : 21, "claimid" : "SUS14052012-004", "data" : { "id" : 2, "claimid" : "SUS14052012-004", "status" : "updated", "validationstatus" : 0, "locationtype" : "externaldamage", "locationid" : 1, "ratetype" : 3, "roomshape" : 1, "groupedrepairlist" : null, "otherscopelist" : null, "nonlistedlist" : null, "formid" : "scopeofworks" }, "status" : "pending", "type" : "data", "devicepin" : "testuser", "modified" : ISODate("2012-05-14T13:45:46.507Z"), "created" : ISODate("2012-05-14T13:45:46.507Z") } | |
{ "_id" : ObjectId("4fb10c8aaaf231f68f000006"), "id" : 20, "claimid" : "SUS14052012-004", "data" : { "id" : 1, "claimid" : "SUS14052012-004", "status" : "updated", "validationstatus" : 0, "locationtype" : "internaldamage", "locationid" : 1, "ratetype" : 1, "roomshape" : 1, "roomlength" : 2, "roomwidth" : 2, "roomheight" : 2, "floorceilingarea" : 4, "perimeter" : 8, "wallarea" : 16, "groupedrepairlist" : "[{\"groupedrepairitemcode\":\"GRI02\",\"groupedrepairitemunits\":\"4\"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mongoDB = new Mongo(); | |
$database = $mongoDB->selectDB("BVS"); | |
$collection = $database->createCollection('fs.files'); | |
//to get the attachments metadata back | |
$query = array("metadata.formdata.claimid" => "SUS14052012-001"); | |
// $items is a cursor of mongodata | |
$items = $collection->find($query); | |
//iterate through the collection and retrieve the named file | |
$grid = $database->getGridFS(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global $ Highcharts */ | |
$(function () { | |
$(document).ready(function () { | |
$.ajax({ | |
url: 'http://www.stepupsoftware.co.uk/howrwe.json', | |
method: 'GET', | |
async: false, | |
success: function (chartvalues) { | |
var chart = new Highcharts.Chart({ | |
chart: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$(document).ready(function() { | |
$.getJSON('howrwe.json', function(chartvalues) { | |
var chart = new Highcharts.Chart({ | |
chart: { | |
renderTo: 'container', | |
type: 'bar' | |
}, | |
tooltip: { | |
formatter: function() { |
OlderNewer