repo_name
stringlengths 4
116
| path
stringlengths 4
379
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
richard-shepherd/monopyly | AIs/James Tyas/decision_utils.py | 15632 | __author__ = 'James'
from monopyly import *
from .property_probs_calcs import PropertyProbCalcs
from .property_sim import *
from .board_utils import *
class DecisionUtils():
def __init__(self, property_probs):
self.property_probs = property_probs
self.board_utils = BoardUtils(self.property_probs)
self.multiplier_max_price = 2
self.multiplier_50_perc_owned = 2
self.multiplier_50_perc_owned_by_one_other = 1.5
self.multiplier_own_one_other_available = 1.5
self.multiplier_station = 1.5
self.multiplier_first_property_in_set = 1.25
#How worried I am that others own properties and I don't
self.multiplier_worry = 1
self.turns_ive_had_in_game=0
def percentage_of_sets_player_owns_to_average_num_others_own(self, game_state, player):
#Workout the number of sets I own
#The number of sets others own on average
#What percentage above the average do I have?
owned_sets = game_state.board.get_owned_sets(True)
all_players = game_state.players
total_owned_by_me = 0
total_owned_by_all_others = 0
average_owned_by_others=0
for k in owned_sets.keys():
if player.is_same_player(k) :
total_owned_by_me = len(owned_sets[k])
else:
total_owned_by_all_others = total_owned_by_all_others + len(owned_sets[k])
average_owned_by_others = total_owned_by_all_others / (len(all_players) - 1)
if average_owned_by_others > 0:
percentage_greater_i_own = 100 * ((total_owned_by_me - average_owned_by_others) / average_owned_by_others)
else:
percentage_greater_i_own = 100
return percentage_greater_i_own
def number_of_monopolies_player_would_get(self,property_list_they_would_get,player):
#Returns the NUMBER of monopolies a player would get IF they got all these proposed properties
total_monopolies_player_would_get=0
sets_already_checked=[]
for prop in property_list_they_would_get:
#Check if it would give me a monopoly
gives_a_monopoly_flag=True
if (not prop.property_set in sets_already_checked and not(prop.property_set.set_enum == PropertySet.UTILITY
or prop.property_set.set_enum ==PropertySet.STATION)):
for other_prop_in_set in prop.property_set.properties:
#Loop through all the properties in the set
#If Except for the properties in question, they would get a set
#then say that this would give them a monopoly
if other_prop_in_set in property_list_they_would_get:
#The property in this set is in the list of the proposed - still a chance for them to
#get a monopoly
pass
else:
if player.is_same_player(other_prop_in_set.owner):
#the property in this set has the same owner - not looking good
pass
else:
#There's a different owner, all fine
gives_a_monopoly_flag=False
break
if gives_a_monopoly_flag == True:
total_monopolies_player_would_get=total_monopolies_player_would_get + 1
sets_already_checked.append(prop.property_set)
return total_monopolies_player_would_get
def amount_property_is_worth_to_a_player(self, game_state, property, player):
#Decide how much a property is worth
#TODO: How to split the amounts to offer AND how much to cap them by?
#TODO: Could we look at other player's cash amounts to judge how much to offer?
#property_price=property.price
#property_price=0
#percentage_greater_player_owns_to_others=self.percentage_of_sets_player_owns_to_average_num_others_own(game_state,player)
worry_multiplier=1
if isinstance(property,Street):
avg_expected_return_1_turn=self.property_probs.income_per_turn(property.name,num_houses=3, set_owned=True,
number_of_stations_owned=None)
elif isinstance(property,Station):
avg_expected_return_1_turn=self.property_probs.income_per_turn(property.name,num_houses=None, set_owned=True,
number_of_stations_owned=2)
else:
#For a utility
avg_expected_return_1_turn=1
#Assume 25 turns per game - after this we won't have long enough to get any money - so property is worth it's
#face value
if self.turns_ive_had_in_game <40:
avg_expected_return_remaining_turns=avg_expected_return_1_turn * (40-self.turns_ive_had_in_game)
else:
avg_expected_return_remaining_turns=0
amount_property_is_worth=avg_expected_return_remaining_turns
'''
if percentage_greater_player_owns_to_others < 0:
worry_multiplier = - percentage_greater_player_owns_to_others * self.multiplier_worry
percentage_of_set_player_owns = self.board_utils.percentage_of_property_set_owned_by_player(game_state.board, player, property.property_set)
percentage_of_set_still_available = self.board_utils.percentage_of_property_set_owned_by_player(game_state.board, None, property.property_set)
if percentage_of_set_player_owns >= 50:
#If we have 50% or MORE of properties in this set - then we can offer a lot
amount_property_is_worth = avg_expected_return_remaining_turns + (worry_multiplier *
self.multiplier_50_perc_owned
* property_price)
elif self.board_utils.max_percentage_of_property_owned_by_single_player(game_state, property.property_set) >= 50:
#If someone else has 50% or more of properties in a set then we can offer a lot
#to block their progress
amount_property_is_worth = avg_expected_return_remaining_turns+(worry_multiplier
* self.multiplier_50_perc_owned_by_one_other
* property_price)
elif percentage_of_set_player_owns > 0 and percentage_of_set_still_available > 0:
#If we have some properties in the set and others are still available we can offer a reasonable amount
#TODO: What amount to offer for "reasonable"?
#Offer 3/4 of our maximum price for this property
amount_property_is_worth = avg_expected_return_remaining_turns+(worry_multiplier *
self.multiplier_own_one_other_available
* property_price)
elif self.board_utils.is_station(property.name):
#If it is a station then we can offer a reasonable amount
amount_property_is_worth = avg_expected_return_remaining_turns+(worry_multiplier
* self.multiplier_station * property_price)
elif percentage_of_set_still_available == 100:
#First property available in a set
amount_property_is_worth = avg_expected_return_remaining_turns+(worry_multiplier
* self.multiplier_first_property_in_set
* property_price)
else:
#If it is a utility or anything else then we offer face value
amount_property_is_worth = property_price+ avg_expected_return_remaining_turns
'''
#Make sure we return an integer amount
return int(max(amount_property_is_worth,property.price))
def best_house_to_sell(self, sim_property_list):
# returns the best house to sell as a property name
# expects a list of properties that ARE streets with houses
prob_calc=PropertyProbCalcs()
#TODO: check this a good strategy
#Sell the house that gives the LEAST lost income
#Could also be least lost income PER cost of house
#Could also consider the amount of money we're trying to raise
#That gets difficult though,and needs to be considered as part
#of a larger group of decisions as to which MULTIPLE
#player actions is the best route
#Current problem is that we test all these different properties - and the number of houses removed - STAYS removed
#If it's NOT the best property we need to replace the houses
best_property = None
min_income_found=9999
for sim_property in sim_property_list:
current_test_income_loss = 99999
if sim_property.sim_number_of_houses > 0:
if self.adding_house_leaves_set_balanced(sim_property , sim_property_list, -1):
current_test_income_loss=prob_calc.income_per_turn(sim_property.name,sim_property.sim_number_of_houses, True )
if current_test_income_loss< min_income_found:
min_income_found = current_test_income_loss
best_property=sim_property
return best_property
def adding_house_leaves_set_balanced (self, sim_property_with_house_to_add,sim_properties, number_of_houses_to_add):
#Assume the list passed in contains ALL the properties in a set PLUS some extra ones
#The aim is to add/subtract one for houses on a property - and see if the set still balances
#If it DOESN'T balance we replace/remove the house
#Create a list of properties in this set
property_sim_set=[]
for prop in sim_properties:
if prop.property_set == sim_property_with_house_to_add.property_set:
if prop.name == sim_property_with_house_to_add.name:
prop.sim_number_of_houses = prop.sim_number_of_houses + number_of_houses_to_add
property_sim_set.append(prop)
#Add the specified number of houses to the correct property
houses_for_each_property = [p.sim_number_of_houses for p in property_sim_set]
if max(houses_for_each_property) <= 5 and (max(houses_for_each_property) - min(houses_for_each_property)) <= 1:
#Always replace the house
sim_property_with_house_to_add.sim_number_of_houses = sim_property_with_house_to_add.sim_number_of_houses - number_of_houses_to_add
return True
else:
#Always replace the house
sim_property_with_house_to_add.sim_number_of_houses = sim_property_with_house_to_add.sim_number_of_houses - number_of_houses_to_add
return False
def improve_properties(self, owned_sim_properties , spare_cash):
#Loop through all properties i own where i can build
#and add a house on the one with maximum expected income
#TODO:Could also build on the place that is quickest
#to recoup accumulated cost
#TODO:Could also build according to where
#players are on the board AND who we want to victimise
prob_calc=PropertyProbCalcs()
remaining_spare_cash = spare_cash
max_income_found=-9999
found_prop_to_improve = True
while found_prop_to_improve:
found_prop_to_improve = False
for sim_property in owned_sim_properties :
current_test_income_gain = -99999
if sim_property.sim_number_of_houses < 5 and sim_property.property_set.house_price <= remaining_spare_cash:
if self.adding_house_leaves_set_balanced(sim_property , owned_sim_properties, 1):
current_test_income_gain=prob_calc.income_per_turn(sim_property.name,sim_property.sim_number_of_houses, True )
if current_test_income_gain > max_income_found:
found_prop_to_improve = True
max_income_found = current_test_income_gain
best_property = sim_property
if found_prop_to_improve:
remaining_spare_cash -= best_property.property_set.house_price
best_property.sim_number_of_houses = best_property.sim_number_of_houses + 1
return owned_sim_properties
def best_property_to_mortgage(self, game_state, my_own_player, sim_property_set_for_mortgage_calcs):
#Find the best property to mortgage. This is one with lowest lost of expected income
#TODO: Could also be those with highest number of rolls before mortgage value is lost
min_income_loss=9999
best_property=None
for prop in sim_property_set_for_mortgage_calcs:
set_owned = (prop.property_set.owner == my_own_player)
if prop.is_mortgaged == False:
if set_owned and prop.property_set in [p.property_set for p in self.board_utils.get_properties_i_own_with_houses(game_state.board, my_own_player)]:
#This property or one of the set has houses - can't be mortgaged
pass
else:
if self.board_utils.is_utility(prop.name):
#Always mortgage a utility
return prop
if self.board_utils.is_station(prop.name):
current_income_loss = self.property_probs.income_per_turn(prop.name, None, None, self.board_utils.number_of_stations_owned(
game_state.board, my_own_player))
else:
current_income_loss = self.property_probs.income_per_turn(prop.name, 0, set_owned)
if min_income_loss > current_income_loss:
min_income_loss = current_income_loss
best_property = prop
return best_property
def best_property_to_unmortgage(self, game_state, my_own_player, sim_property_set_for_mortgage_calcs):
#Find the best property to unmortgage. This is one with lowest lost of expected income
#TODO: Could also be those with lowest number of rolls before mortgage value is lost
max_income_loss=-9999
best_property=None
for prop in sim_property_set_for_mortgage_calcs:
set_owned = (prop.property_set.owner == my_own_player)
if prop.is_mortgaged == True:
if self.board_utils.is_utility(prop.name):
#Never unmortgage a utility
#TODO: Unless it's the ONLY mortgaged property
continue
if self.board_utils.is_station(prop.name):
current_income_gain = self.property_probs.income_per_turn(prop.name, None, None, self.board_utils.number_of_stations_owned(
game_state.board, my_own_player))
else:
current_income_gain = self.property_probs.income_per_turn(prop.name, 0, set_owned)
if max_income_loss < current_income_gain:
max_income_loss = current_income_gain
best_property = prop
return best_property
| mit |
stantler/pinball_testjob | pinball_testjob/Assets/Scripts/Kernel.Game/FileLoader.cs | 2645 | using System;
using System.Collections;
using Helpers.Extension;
using Helpers.Modules;
using UnityEngine;
namespace Kernel.Game
{
[Module(Dependecies = new[] { typeof(DataProvider) })]
public class FileLoader : MonoBehaviour, IModule
{
private const string Ext = ".u3d";
private string _path;
private string _additionalPath;
private string FullPath { get { return _path + _additionalPath; } }
private IEnumerator LoadAssetCoroutine<T>(int rmid, Action<T> callback) where T : class
{
var files = _.DataProvider.ResourcesMediaFilePath;
if (!files.ContainsKey(rmid))
{
Debug.LogError(string.Format("[FileLoader] LoadAssetCoroutine :: Can't find RMID={0}", rmid));
callback.SafeInvoke(null);
yield break;
}
if (typeof(T) == typeof(byte[]))
{
var url = FullPath + files[rmid] + Ext;
var www = new WWW(url);
yield return www;
callback.SafeInvoke(www.bytes as T);
Debug.Log(string.Format("[FileLoader] LoadAssetCoroutine :: Loaded {0}#{1}", rmid, url));
}
else
{
var url = FullPath + files[rmid] + Ext;
var www = new WWW(url);
yield return www;
if (!string.IsNullOrEmpty(www.error))
{
Debug.LogError(string.Format("[FileLoader] LoadAssetCoroutine :: WWW has Error={0}", www.error));
callback.SafeInvoke(null);
yield break;
}
Debug.Log(string.Format("[FileLoader] LoadAssetCoroutine :: Loaded {0}#{1}", rmid, url));
callback.SafeInvoke(www.assetBundle.mainAsset as T);
www.assetBundle.Unload(false);
}
}
public bool IsInitialized { get; set; }
public void Initialize()
{
#if UNITY_EDITOR_WIN
_path = string.Format(@"file://{0}/../../files/", Application.dataPath);
#else
_path = @"https://raw.githubusercontent.com/stantler/pinball_testjob/master/files/";
#endif
#if UNITY_ANDROID
_additionalPath = "P0/";
#else
_additionalPath = "P1/";
#endif
IsInitialized = true;
}
public void LoadAsset<T>(int rmid, Action<T> callback) where T : class
{
StartCoroutine(LoadAssetCoroutine(rmid, callback));
}
public void Dispose()
{
IsInitialized = false;
}
}
}
| mit |
michaeltandy/log4j-json | src/test/java/uk/me/mjt/log4jjson/SimpleJsonLayoutTest.java | 4157 | package uk.me.mjt.log4jjson;
import org.apache.log4j.Logger;
import org.apache.log4j.MDC;
import org.apache.log4j.Priority;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Michael Tandy
*/
public class SimpleJsonLayoutTest {
private static final Logger LOG = Logger.getLogger(SimpleJsonLayoutTest.class);
public SimpleJsonLayoutTest() {
}
@Test
public void testDemonstration() {
TestAppender.baos.reset();
LOG.info("Example of some logging");
LOG.warn("Some text\nwith a newline",new Exception("Outer Exception",new Exception("Nested Exception")));
LOG.fatal("Text may be complicated & have many symbols\n¬!£$%^&*()_+{}:@~<>?,./;'#[]-=`\\| \t\n");
String whatWasLogged = TestAppender.baos.toString();
String[] lines = whatWasLogged.split("\n");
assertEquals(3,lines.length);
assertTrue(lines[0].contains("INFO"));
assertTrue(lines[0].contains("Example of some logging"));
assertTrue(lines[1].contains("newline"));
assertTrue(lines[1].contains("Outer Exception"));
assertTrue(lines[1].contains("Nested Exception"));
assertTrue(lines[2].contains("have many symbols"));
}
@Test
public void testObjectHandling() {
TestAppender.baos.reset();
LOG.info(new Object() {
@Override
public String toString() {
throw new RuntimeException("Hypothetical failure");
}
});
LOG.warn(null);
String whatWasLogged = TestAppender.baos.toString();
String[] lines = whatWasLogged.split("\n");
assertEquals(2,lines.length);
assertTrue(lines[0].contains("Hypothetical"));
assertTrue(lines[1].contains("WARN"));
}
@Test
public void testLogMethod() {
// Test for https://github.com/michaeltandy/log4j-json/issues/1
TestAppender.baos.reset();
LOG.log("asdf", Priority.INFO, "this is the log message", null);
String whatWasLogged = TestAppender.baos.toString();
String[] lines = whatWasLogged.split("\n");
assertEquals(1,lines.length);
assertTrue(lines[0].contains("this is the log message"));
}
@Test
public void testMinimumLevelForSlowLogging() {
TestAppender.baos.reset();
LOG.info("Info level logging");
LOG.debug("Debug level logging");
String whatWasLogged = TestAppender.baos.toString();
String[] lines = whatWasLogged.split("\n");
assertEquals(2,lines.length);
assertTrue(lines[0].contains("INFO"));
assertTrue(lines[0].contains("classname"));
assertTrue(lines[0].contains("filename"));
assertTrue(lines[0].contains("linenumber"));
assertTrue(lines[0].contains("methodname"));
assertTrue(lines[1].contains("DEBUG"));
assertFalse(lines[1].contains("classname"));
assertFalse(lines[1].contains("filename"));
assertFalse(lines[1].contains("linenumber"));
assertFalse(lines[1].contains("methodname"));
}
@Test
public void testSelectiveMdcLogging() {
TestAppender.baos.reset();
MDC.put("asdf", "value_for_key_asdf");
MDC.put("qwer", "value_for_key_qwer");
MDC.put("thread", "attempt to overwrite thread in output");
LOG.info("Example of some logging");
MDC.clear();
String whatWasLogged = TestAppender.baos.toString();
String[] lines = whatWasLogged.split("\n");
assertEquals(1,lines.length);
assertTrue(lines[0].contains("value_for_key_asdf"));
assertFalse(lines[0].contains("value_for_key_qwer"));
assertTrue(lines[0].contains("thread"));
assertFalse(lines[0].contains("attempt to overwrite thread in output"));
}
}
| mit |
sp4cerat/Java-Random-Texture-Generator | src/textur/Textur.java | 23996 | package textur;
import java.awt.Button;
import java.awt.Choice;
import java.awt.Image;
import java.awt.Panel;
import java.awt.Scrollbar;
import java.awt.TextField;
import java.awt.Toolkit;
import java.awt.image.MemoryImageSource;
public class Textur {
// #############################################################
// ###################= Globale Variablen =#####################
// #############################################################
TexturWindow w1; // Fenster-Variable
TexturCanvas zf; // Canvas -Variable
volatile int xw = 800, yw = 500, // Groesse des Fensters
x_add = 0, y_add = 0, texsize = 0, texsize2 = 0, mb, spic, TexNum = 0, rrr, ggg, bbb, ar, ag, ab, draw = 0;
Panel pan[] = new Panel[15], p1 = new Panel();
String nm;
Choice c0, c1, c2, c3, c4, c5, c6;
Button but[] = new Button[15], b_r, b_g, b_b, startb, colorb, startc, startd, starte, startf, startg;
volatile boolean start = false, start2 = false, recalc = true, sav = false, colb = false, ani4 = false,
ani1 = false, ani2 = false, ani3 = false, Quit = false, s_r = true, s_g = true, s_b = true;
Scrollbar scr[] = new Scrollbar[15];
TextField savename;
static int s[] = new int[16384]; // Sinus - Tabelle
Image img[] = new Image[1]; // Image der Textur
int pixels[] = new int[512 * 512];// Array der Textur
static int rn[][] = new int[32][5000];// Tab. f�r
static int rm[] = new int[5000];// Zufallswerte
MemoryImageSource mi32;// Array->Image
MemoryImageSource mi64;
MemoryImageSource mi128;
MemoryImageSource mi256;
MemoryImageSource mi512;
// ###################= Textur Variablen =#####################
volatile int rgb1 = 128; // Rot /default 64
volatile int rgb2 = 128; // Gr�n /default 64
volatile int rgb3 = 128; // Blau /default 64
volatile int rgba = 100; // St�rke des Muster 0-255 /default 128
volatile int rgbm = 0; // Muster Random 0-255 /default 0
volatile int must = 2; // Muster St�rke 1-255 > =weicher/default 3
volatile int sval = 2; // Shift Value 0-7 Loop Val
volatile int iter = 6; // Muster Intera
volatile int rgbc = 20; // Color Random 0-128 /default 0
volatile int rgbx = 0; // Farbwinkel r 0-255 /default 0
volatile int rgby = 0; // Farbwinkel g 0-255 /default 0
volatile int rgbz = 0; // Farbwinkel b 0-255 /default 0
volatile int modify = 640;//
volatile int rgbd = 128;
volatile int modify2 = 0;
volatile int modify3 = 0;
volatile int modify4 = 0;
volatile int modify5 = 0;
// #############################################################
// ####################= BMP - Struktur =#######################
byte[] bmp = { 0x42, 0x4D, 0x36, 0x30, 0, 0, 0, 0, 0, 0, 0x36, 0, 0, 0, 0x28, 0, 0, 0, 0x40, 0, 0, 0, // X-Size
0x40, 0, 0, 0, // Y-Size
1, 0, 0x18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
// #############################################################
// ##################= Init der Hauptklasse =###################
// #############################################################
public static void main(String args[]) {
try {
new Textur().run();
} catch (Exception e) {
e.printStackTrace();
}
}
// #############################################################
// ###################= Texturberechnung =######################
// #############################################################
public void gettex() {
int i, j, a = 0, d = 0, dv, dd, e, h, l, r, gg, b, x1 = 0, x2 = 1, x3, y1 = 0, y2 = 1, x = 0, y = 0, z = 0, ad,
ae, xp, yp, xa, ya, rd1, rd2, texy = 64, texy4 = 16;
if (texsize == 0)
texy = 32;
else if (texsize == 1)
texy = 64;
else if (texsize == 2)
texy = 128;
else if (texsize == 3)
texy = 256;
else if (texsize == 4)
texy = 512;
texy4 = texy / 4;
int stru = c5.getSelectedIndex();
if (stru > 0) {
for (a = 0; a < texy * texy; a++)
pixels[a] = 0xff141414;
// for stone
if (stru <= 2) {
for (x = 0; x < 4; x++)
for (a = 0; a < texy; a++) {
pixels[a + x * texy * texy4] = 0xff000000;
pixels[a + x * texy * texy4 + texy] = 0xff272727;
}
for (a = 1; a < texy4; a++) {
if (stru == 1) {
pixels[a * texy + 2 * texy4] = 0xff000000;
pixels[a * texy + 2 * texy4 + 1] = 0xff272727;
pixels[(a + texy4) * texy + 3 * texy4] = 0xff000000;
pixels[(a + texy4) * texy + 3 * texy4 + 1] = 0xff272727;
pixels[(a + 2 * texy4) * texy] = 0xff000000;
pixels[(a + 2 * texy4) * texy + 1] = 0xff272727;
pixels[(a + 3 * texy4) * texy + 3 * texy4] = 0xff000000;
pixels[(a + 3 * texy4) * texy + 3 * texy4 + 1] = 0xff272727;
}
pixels[a * texy] = 0xff000000;
pixels[a * texy + 1] = 0xff272727;
pixels[(a + texy4) * texy + texy4] = 0xff000000;
pixels[(a + texy4) * texy + texy4 + 1] = 0xff272727;
pixels[(a + 2 * texy4) * texy + 2 * texy4] = 0xff000000;
pixels[(a + 2 * texy4) * texy + 2 * texy4 + 1] = 0xff272727;
pixels[(a + 3 * texy4) * texy + texy] = 0xff000000;
pixels[(a + 3 * texy4) * texy + texy + 1] = 0xff272727;
}
}
// --------------------------------- Q-struc
if (stru >= 3) {
for (a = 0; a < texy * 2; a++) {
x1 = rm[1 + a * 5];
x2 = x1 + (rm[2 + a * 5] & 31);
y1 = rm[3 + a * 5];
y2 = y1 + (rm[4 + a * 5] & 31);
d = (rm[a * 5]) & (texy - 1);
for (y = y1; y < y2; y++)
for (x = x1; x < x2; x++) {
d = y - y1 + x - x1;
if (stru == 4)
d = 20;
e = d | (d << 8) | (d << 16);
pixels[((x & (texy - 1)) + (y & (texy - 1)) * texy) & (texy * texy - 1)] = e;
}
for (y = y1; y < y2; y++) {
if (stru >= 4) {
pixels[((x1 + 1) & (texy - 1)) + (y & (texy - 1)) * texy] = 0xff272727;
pixels[((x2 + 1) & (texy - 1)) + (y & (texy - 1)) * texy] = 0xff272727;
}
pixels[((x1) & (texy - 1)) + (y & (texy - 1)) * texy] = 0;
pixels[((x2) & (texy - 1)) + (y & (texy - 1)) * texy] = 0;
}
for (x = x1; x < x2; x++) {
if (stru >= 4) {
pixels[(x & (texy - 1)) + ((y1 + 1) & (texy - 1)) * texy] = 0xff272727;
pixels[(x & (texy - 1)) + ((y2 + 1) & (texy - 1)) * texy] = 0xff272727;
}
pixels[(x & (texy - 1)) + ((y1) & (texy - 1)) * texy] = 0;
pixels[(x & (texy - 1)) + ((y2) & (texy - 1)) * texy] = 0;
}
}
if (stru == 6) {
for (a = 0; a < 10; a++) {
d = (rm[a * 5]) & (texy - 1);
e = d | (d << 8) | (d << 16);
x1 = rm[1 + a * 9];
x2 = x1 + (rm[6 + a * 9] & (texy - 1));
y1 = rm[3 + a * 9];
y2 = y1 + (rm[7 + a * 9] & (texy - 1));
d = (rm[a * 5]) & (texy - 1);
for (y = y1; y < y2; y++)
pixels[(x1 & (texy - 1)) + (y & (texy - 1)) * texy] = e;
x1 = rm[4 + a * 9];
x2 = x1 + (rm[8 + a * 9] & (texy - 1));
y1 = rm[5 + a * 9];
y2 = y1 + (rm[9 + a * 9] & (texy - 1));
d = (rm[a * 5]) & (texy - 1);
for (x = x1; x < x2; x++)
pixels[(x & (texy - 1)) + (y1 & (texy - 1)) * texy] = e;
}
}
}
// ---------------------------------
} else
for (a = 0; a < texy * texy; a++)
pixels[a] = 0xff000000;
// ---------------------------------
a = 0;
d = 0;
x = 0;
y = 0;
z = 0;
ad = 1 << (4 - texsize); // Additionswert berechnen
rrr = s[modify3 & 2047] / 8;
ggg = s[modify4 & 2047] / 8; // Colorcycling - Werte
bbb = s[modify5 & 2047] / 8;
rd1 = Math.abs(rm[15] & 31 + 32);
if (rd1 < 0)
rd1 = -rd1;
if (rd1 < 1)
rd1++;
rd2 = Math.abs(rm[17] & 31 + 32);
if (rd2 < 0)
rd2 = -rd2;
if (rd2 < 2)
rd2++;
for (int zyp = 0; zyp < 512; zyp += ad) {
for (int zxp = 0; zxp < 512; zxp += ad) {
yp = (zyp + (s[(rm[13] & 3) << 11 | (zxp << 2) & 2047] + 1024) / rd1) & 511;
xp = (zxp + (s[(rm[14] & 3) << 11 | (zyp << 2) & 2047] + 1024) / rd2) & 511;
if ((stru == 1) || (stru == 2))
yp = zyp ^ (0x7f);
else
xp = zxp;
yp = zyp;
dd = 0;
z = 0;
h = rm[70] & 3 + 4;
l = 0;
x = (xp + x_add * ad) << sval;
y = (yp + y_add * ad) << sval;
for (e = 0; e < iter; e++) {
gg = iter + 2 - e;
l = (s[(rm[dd + 20] & 3) << 11 | (x / 8 + rm[dd + 17]) & 2047]
+ s[(rm[dd + 19] & 3) << 11 | (y / 8 + rm[dd + 18] + modify2) & 2047]
+ s[(rm[dd + 18] & 3) << 11 | (x / 8 + rm[dd + 19]) & 2047]
+ s[(rm[dd + 17] & 3) << 11 | (y / 8 + rm[dd + 20]) & 2047]) >> 1;
z = (z + s[(rm[dd + 12] & 3) << 11 | 2047 & (x * (rm[dd + 0] % gg) / 8 + l
+ z * (rm[dd + 17] % (gg >> 1) - 1) + y * (rm[dd + 1] % gg) / 8 + rm[dd + 6] - modify2)]
+ s[(rm[dd + 13] & 3) << 11 | 2047 & (x * (rm[dd + 2] % gg) / 8 + rm[dd + 7] + z)]
+ s[(rm[dd + 16] & 3) << 11
| 2047 & (y * (rm[dd + 5] % gg) / 8 + rm[dd + 10] - z * (rm[dd + 18] % gg - 1) / 3)]
+ z * s[(rm[dd + 13] & 3) << 11
| 2047 & (x * (rm[dd + 2] % gg) / 8 + rm[dd + 17] + modify2)] / modify
+ z * s[(rm[dd + 16] & 3) << 11 | 2047 & (y * (rm[dd + 5] % gg) / 8 + rm[dd + 18] - l)]
/ modify)
/ must;
dd += 20;
}
z = z * rgba >> 7;
// z=-Math.abs(z*rgba>>7);
if (rgbm > 0)
z += (int) (Math.random() * rgbm);
// ermittelter Wert in RGB umrechnen //
x1 = rgbx + rrr + z + (rm[0] * rgbc >> 7);
x2 = rgby + ggg + z + (rm[1] * rgbc >> 7);
x3 = rgbz + bbb + z + (rm[2] * rgbc >> 7);
if (ani2)
x1 += s[zyp << 2] / 4;
if (ani3)
x2 -= s[zyp << 2] / 4;
if (ani4)
x3 += s[zyp << 2] / 4;
if (colb) {
x1 += x >> 3;
x2 -= x >> 3;
x3 += (y >> 3) + (x >> 3);
}
x1 = rgb1 + (s[((rm[dd + 10] & 3) << 11 | x1) & 2047] * rgbd >> 10);
x2 = rgb2 + (s[((rm[dd + 11] & 3) << 11 | x2) & 2047] * rgbd >> 10);
x3 = rgb3 + (s[((rm[dd + 12] & 3) << 11 | x3) & 2047] * rgbd >> 10);
e = pixels[a];
x3 += e & 255;
x2 += (e >> 8) & 255;
x1 += (e >> 16) & 255;
if (x1 < 0)
x1 = 0;
else if (x1 > 255)
x1 = 255;
if (x2 < 0)
x2 = 0;
else if (x2 > 255)
x2 = 255; // auf Überlauf prüfen ..
if (x3 < 0)
x3 = 0;
else if (x3 > 255)
x3 = 255;
pixels[a++] = 0xff000000 | x1 << 16 | x2 << 8 | x3; // *****************
}
}
// --------------------------------- S-Struc
stru = c6.getSelectedIndex();
if (stru > 0)
for (a = 0; a < 2048 * texsize; a++) {
x = // (a>>5)&63;
((s[2048 | (a * ((rm[1] & 15 - 7) | 1) + rm[3]) & 2047] + 1024
+ s[2048 | (a * ((rm[11] & 15 - 7) | 1) + rm[13]) & 2047] + 1024
+ s[0 | (a * ((rm[21] & 15 - 7) | 1) + rm[23]) & 2047] + 1024
+ s[0 | (a * ((rm[31] & 15 - 7) | 1) + rm[33]) & 2047] + 1024) * texsize / 20)
& (texy - 1);
y = ((s[2048 | (a * ((rm[2] & 15 - 7) | 1) + rm[4]) & 2047] + 1024
+ s[2048 | (a * ((rm[12] & 15 - 7) | 1) + rm[14]) & 2047] + 1024
+ s[0 | (a * ((rm[22] & 15 - 7) | 1) + rm[24]) & 2047] + 1024
+ s[0 | (a * ((rm[32] & 15 - 7) | 1) + rm[34]) & 2047] + 1024) * texsize / 20) & (texy - 1);
if ((stru & 1) == 1)
for (d = 1; d < 7; d++) {
l = d << 2;
e = pixels[(x + d) & (texy - 1) | y * texy];
if ((e & 0xff0000) < (255 - l) << 16)
e += l << 16;
if ((e & 0x00ff00) < (255 - l) << 8)
e += l << 8;
if ((e & 0x0000ff) < (255 - l))
e += l;
e |= 0xff000000;
pixels[(x + d) & (texy - 1) | y * texy] = e;
e = pixels[(x - d) & (texy - 1) | y * texy];
if ((e & 0xff0000) > l << 16)
e -= l << 16;
if ((e & 0x00ff00) > l << 8)
e -= l << 8;
if ((e & 0x0000ff) > l)
e -= l;
e |= 0xff000000;
pixels[(x - d) & (texy - 1) | y * texy] = e;
}
x = // (a>>5)&(texy-1);
((s[2048 | (a * ((rm[41] & 15 - 7) | 1) + rm[43]) & 2047] + 1024
+ s[2048 | (a * ((rm[51] & 15 - 7) | 1) + rm[53]) & 2047] + 1024
+ s[0 | (a * ((rm[61] & 15 - 7) | 1) + rm[63]) & 2047] + 1024
+ s[0 | (a * ((rm[71] & 15 - 7) | 1) + rm[73]) & 2047] + 1024) / 20) & (texy - 1);
y = ((s[2048 | (a * ((rm[42] & 15 - 7) | 1) + rm[44]) & 2047] + 1024
+ s[2048 | (a * ((rm[52] & 15 - 7) | 1) + rm[54]) & 2047] + 1024
+ s[0 | (a * ((rm[62] & 15 - 7) | 1) + rm[64]) & 2047] + 1024
+ s[0 | (a * ((rm[72] & 15 - 7) | 1) + rm[74]) & 2047] + 1024) / 20) & (texy - 1);
if (stru > 1) {
if ((x < texy) && (y < texy)) {
e = pixels[x + 1 + y * texy + texy];
if (!s_r)
if ((e & 0xff0000) > 0x0f0000)
e -= 0x0f0000;
if (!s_g)
if ((e & 0x00ff00) > 0x000f00)
e -= 0x000f00;
if (!s_b)
if ((e & 0x0000ff) > 0x00000f)
e -= 0x00000f;
pixels[(x + 1 + y * texy + texy)] = e;
}
if ((x > 0) && (y > 0)) {
e = pixels[x - 1 + y * texy - texy];
if (s_r)
if ((e & 0xff0000) < 0xf10000)
e += 0x0f0000;
if (s_g)
if ((e & 0x00ff00) < 0x00f100)
e += 0x000f00;
if (s_b)
if ((e & 0x0000ff) < 0x0000f1)
e += 0x00000f;
pixels[(x - 1 + y * texy - texy)] = e;
}
}
}
}// .. und speichern
// #############################################################
// ################= Randomtabelle berechnen =##################
// #############################################################
public boolean getran(int tn) {
for (int a = 0; a < 4000; a++) {
rn[(tn + 16) & 31][a] = ((int) (Math.random() * 2047) ^ rn[tn & 31][a + 1] ^ (a << 6)) & 2047 - 1024;
rm[a] = rn[tn & 31][a];
}
;
return true;
}
public Textur() {
};
public void run() throws InterruptedException {
// ################= Sinustabellen berechnen =##################
for (int a = 0; a < 2048; a++)
s[a] = (int) (Math.sin(a * Math.PI / 1024) * 1023);
for (int a = 0; a < 1024; a++)
s[a + 2048] = (int) (a * 2 - 1024);
for (int a = 0; a < 1024; a++)
s[2047 - a + 2048] = (int) (a * 2 - 1024);
for (int a = 0; a < 1024; a++)
s[a + 4096] = (int) (a * a / 512 - 1024);
for (int a = 0; a < 1024; a++)
s[2047 - a + 4096] = (int) (a * a / 512 - 1024);
for (int a = 0; a < 1024; a++)
s[a + 6144] = (int) (s[(a * a / 1024) & 2047]) - 1024;
for (int a = 0; a < 1024; a++)
s[2047 - a + 6144] = (int) (s[(a * a / 1024) & 2047]) - 1024;
for (int a = 0; a < 1024; a++)
s[a + 2048] = (int) (a * 2 - 1024);
for (int a = 0; a < 1024; a++)
s[2047 - a + 2048] = (int) (a * 2 - 1024);
for (int a = 0; a < 1024; a++)
s[a + 4096] = (int) ((a * a) / 1024 - 1024);
for (int a = 0; a < 1024; a++)
s[2047 - a + 4096] = (int) ((a * a) / 1024 - 1024);
for (int a = 0; a < 1024; a++)
s[a + 6144] = (int) (((a * a) / 1024) * (a * a / 1024)) / 1024 - 1024;
for (int a = 0; a < 1024; a++)
s[2047 - a + 6144] = (int) (((a * a) / 1024) * (a * a / 1024)) / 1024 - 1024;
/*
* for(int a=0;a<2048;a++)s[ a ]=(int)(( Math.sin(a*Math.PI/1024)+
* Math.sin((a+500)*Math.PI*3/1024)+ Math.sin((a+700)*Math.PI*7/1024)+
* Math.sin((a+300)*Math.PI*4/1024) )*256); for(int a=0;a<1024;a++)s[
* a+2048]=(int)(a*3/2-1024)+(int)(Math.sin(( a+100)*Math.PI/1024)*256);
* for(int
* a=0;a<1024;a++)s[2047-a+2048]=(int)(a*2/2-1024)+(int)(Math.sin((-
* a+100)*Math.PI/1024)*256); for(int a=0;a<1024;a++)s[
* a+4096]=(int)(a*a/512-1024); for(int
* a=0;a<1024;a++)s[2047-a+4096]=(int)(a*a/512-1024); for(int
* a=0;a<1024;a++)s[ a+6144]=(int)(s[(a*a/1024)&2047])-1024; for(int
* a=0;a<1024;a++)s[2047-a+6144]=(int)(s[(a*a/1024)&2047])-1024;
*
* for(int a=0;a<1024;a++)s[ a+2048]=(int)(a*2-1024); for(int
* a=0;a<1024;a++)s[2047-a+2048]=(int)(a*2-1024); for(int
* a=0;a<1024;a++)s[ a+4096]=(int)((a*a)/1024-1024); for(int
* a=0;a<1024;a++)s[2047-a+4096]=(int)((a*a)/1024-1024); for(int
* a=0;a<1024;a++)s[ a+6144]=(int)(((a*a)/1024)*(a*a/1024))/1024-1024;
* for(int
* a=0;a<1024;a++)s[2047-a+6144]=(int)(((a*a)/1024)*(a*a/1024))/1024
* -1024;
*/
// ####################= Fenster anzeigen =#####################
w1 = new TexturWindow(this);
w1.setVisible(true);
texsize = 5;
// #####################= Hauptschleife =#######################
while (!Quit) {
if ((recalc) || (start) || (start2)) { // Anzeige erneuern ?
if (start)
getran(++TexNum);
if (ani1)
modify2 += 16;
if (ani2)
modify3 += 16; // Animationen weiterz�hlen
if (ani3)
modify4 += 16;
if (ani4)
modify5 += 16;
if (c1.getSelectedIndex() != texsize) {// angezeigte Gr��e
// der Textur
texsize = c1.getSelectedIndex();
if (texsize == 0)
img[0] = Toolkit.getDefaultToolkit().createImage(mi32);
if (texsize == 1)
img[0] = Toolkit.getDefaultToolkit().createImage(mi64);
if (texsize == 2)
img[0] = Toolkit.getDefaultToolkit().createImage(mi128);
if (texsize == 3)
img[0] = Toolkit.getDefaultToolkit().createImage(mi256);
if (texsize == 4)
img[0] = Toolkit.getDefaultToolkit().createImage(mi512);
}
spic = 32 << texsize;
bmp[18] = bmp[22] = (byte) spic; // Lo- und Hi-Byte der
// Groesse
bmp[19] = bmp[23] = (byte) (spic >>> 8);// in die
// BMP-Struktur
// schreiben
must = 5 - c3.getSelectedIndex(); // Musterverstaerkung
iter = c4.getSelectedIndex() + 1; // Iterationstiefe
sval = c0.getSelectedIndex(); // virtuelle Groesse der
// Textur
if (sval == 0) {
sval = 5;
} else {
sval = 9 - sval;
}
if (!start2)
w1.setTitle("Busy"); // Anzeige in der Titelleiste
while (draw > 0)
Thread.sleep(100); // Anzeige frei ?
gettex();
draw = 1; // neue Textur berechnen
if (!start2)
w1.setTitle("Ready.");
if (texsize == 0)
mi32.newPixels();
else if (texsize == 1)
mi64.newPixels();
else if (texsize == 2)
mi128.newPixels();
else if (texsize == 3)
mi256.newPixels();
else if (texsize == 4)
mi512.newPixels();
zf.repaint(); // und anzeigen
recalc = false;
} else
Thread.sleep(300);
// Warten,falls
while (sav)
Thread.sleep(300); // gerade gespeichert
// wird
}
}
}
// #############################################################
// ## -=E=N=D=E=- ##
// ############################################################# | mit |
jpinho/soaba | src/test/java/soaba/core/gateway/drivers/tests/KNXGatewayDriverTest.java | 11893 | package soaba.core.gateway.drivers.tests;
import static org.junit.Assert.fail;
import java.net.UnknownHostException;
import org.apache.log4j.Logger;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import soaba.core.api.IDatapoint.ACCESSTYPE;
import soaba.core.api.IDatapoint.DATATYPE;
import soaba.core.exception.GatewayDriverException;
import soaba.core.gateways.drivers.KNXGatewayDriver;
import soaba.core.models.Datapoint;
import soaba.core.models.DatapointValue;
import tuwien.auto.calimero.exception.KNXTimeoutException;
/**
* SOABA Unit Tests for KNX Gateway Driver featuring Calimero Framework.
*
* @author João Pinho ([email protected])
* @since 0.5
*/
public class KNXGatewayDriverTest {
/**
* Datapoints Meta
*/
private static final String DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR = "2-N14 - Luminosity - Hall - South Sensor";
private static final String DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR_READADDR = "0/2/18";
private static final String DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR_WRITEADDR = "0/2/18";
private static final String DATAPOINT_2N1402_LIGHTS = "2-N14.02 - Lights";
private static final String DATAPOINT_2N1402_LIGHTS_READADDR = "0/0/2";
private static final String DATAPOINT_2N1402_LIGHTS_WRITEADDR = "0/0/2";
/**
* Known Gateways at Taguspark
*/
/* INFO: this gateway can be used for test, as the lab purpose is specifically for testing */
@SuppressWarnings("unused")
private static final String KNX_GW_158 = "172.20.70.242";
/* WARNING: use this gateway only for datapoint readings, there is people working there */
private static final String KNX_GW_N14 = "172.20.70.241";
/**
* Datapoints collection
*/
private static Datapoint dpN1404Lights;
private static Datapoint dpN1402Lights;
private static Logger logger;
@BeforeClass
public static void setup() throws UnknownHostException {
dpN1404Lights = new Datapoint(KNX_GW_N14, DATAPOINT_2N1402_LIGHTS, ACCESSTYPE.READ_WRITE, DATATYPE.BIT,
DATAPOINT_2N1402_LIGHTS_READADDR, DATAPOINT_2N1402_LIGHTS_WRITEADDR);
dpN1402Lights = new Datapoint(KNX_GW_N14, DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR, ACCESSTYPE.READ_WRITE,
DATATYPE.NUMBER, DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR_READADDR,
DATAPOINT_2N14_LUMIHALLSOUTH_SENSOR_WRITEADDR);
logger = Logger.getLogger(KNXGatewayDriverTest.class);
}
@AfterClass
public static void teardown() {
KNXGatewayDriver.dispose();
}
/**
* Test a connection to a KNX gateway through the KNX Gateway Driver.
*
* @throws UnknownHostException if the host cannot be resolved
* @throws GatewayDriverException if the driver as thrown an error while connecting
*/
@Test
public final void testConnect() throws UnknownHostException, GatewayDriverException {
try {
KNXGatewayDriver gateway = new KNXGatewayDriver(KNX_GW_N14);
// testing connection establishment
gateway.connect();
// assert that the channel is open
Assert.assertTrue(gateway.getNetworkLink().isOpen());
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail("Gateway is down or busy.");
}
}
/**
* Test a connection to a KNX gateway through the KNX Gateway Driver.
*
* @throws UnknownHostException if the host cannot be resolved
* @throws GatewayDriverException if the driver as thrown an error while disconnecting
*/
@Test
public final void testDisconnect() throws GatewayDriverException, UnknownHostException {
try {
KNXGatewayDriver gateway = new KNXGatewayDriver(KNX_GW_N14);
// testing connection establishment
gateway.connect();
// assert that the channel is open
Assert.assertTrue(gateway.getNetworkLink().isOpen());
// attempting to disconnect the link with the gateway
gateway.disconnect();
// assert the connection was closed
Assert.assertTrue(!gateway.isConnected());
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail("Gateway is down or busy.");
}
}
/**
* Test datapoint readings to a KNX gateway through the KNX Gateway Driver.
*/
@Test
public final void testDatapointReadings() {
KNXGatewayDriver gateway = null;
try {
gateway = new KNXGatewayDriver(KNX_GW_N14);
// testing connection establishment
gateway.connect();
// assert that the channel is open
Assert.assertTrue(gateway.getNetworkLink().isOpen());
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail("Gateway is down or busy.");
}
try {
logger.info(String.format("testDatapointReadings reading datapoint '%s' at '%s', from GW '%s'.",
dpN1402Lights.getName(), dpN1402Lights.getReadAddress(), dpN1402Lights.getGatewayAddress()));
DatapointValue<?> value1 = DatapointValue.build(dpN1402Lights);
value1 = gateway.read(dpN1404Lights);
logger.info(String.format("testDatapointReadings reading datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> value2 = DatapointValue.build(dpN1404Lights);
value2 = gateway.read(dpN1404Lights);
Assert.assertNotNull(value1.getValue());
Assert.assertNotNull(value2.getValue());
// attempting to disconnect the link with the gateway
gateway.disconnect();
// assert the connection was closed
Assert.assertTrue(gateway.isConnected() == false);
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail(e.getMessage());
}
}
/**
* Test datapoint writtings to a KNX gateway through the KNX Gateway Driver.
*/
@Test
public final void testWriteDatapoint() {
KNXGatewayDriver gateway = null;
try {
gateway = new KNXGatewayDriver(KNX_GW_N14);
// testing connection establishment
gateway.connect();
// assert that the channel is open
Assert.assertTrue(gateway.getNetworkLink().isOpen());
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail("Gateway is down or busy.");
}
try {
/**
* Reading Datapoint Value
*/
logger.info(String.format("testDatapointReadings reading datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> readValue = DatapointValue.build(dpN1402Lights);
readValue = gateway.read(dpN1404Lights);
logger.info(String.format("testDatapointReadings value read from '%s' is '%s'.", dpN1404Lights.getName(),
readValue.getValue()));
/**
* Writting Datapoint Value
*/
logger.info(String.format(
"testDatapointReadings writting 'false' to datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> writeValue = DatapointValue.build(dpN1404Lights);
writeValue.setValue(false);
gateway.write(writeValue);
/**
* Reading Written Value
*/
logger.info(String.format("testDatapointReadings reading datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> readValueWritten = DatapointValue.build(dpN1402Lights);
readValueWritten = gateway.read(dpN1404Lights);
logger.info(String.format("testDatapointReadings value read from '%s' is '%s'.", dpN1404Lights.getName(),
readValueWritten.getValue()));
/**
* Asserting
*/
Assert.assertNotNull(readValue.getValue());
Assert.assertTrue(writeValue.getValue().equals(readValueWritten.getValue()));
/**
* Restoring Value
*/
logger.info(String.format(
"testDatapointReadings writting restore value to datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> restoreValue = DatapointValue.build(dpN1404Lights);
restoreValue.setValue(readValue.getValue());
gateway.write(restoreValue);
/**
* Reading Restored Datapoint Value
*/
logger.info(String.format(
"testDatapointReadings reading (restored value) datapoint '%s' at '%s', from GW '%s'.",
dpN1404Lights.getName(), dpN1404Lights.getReadAddress(), dpN1404Lights.getGatewayAddress()));
DatapointValue<?> readRestoredValue = DatapointValue.build(dpN1402Lights);
readRestoredValue = gateway.read(dpN1404Lights);
logger.info(String.format("testDatapointReadings restored value read from '%s' is '%s'.",
dpN1404Lights.getName(), readRestoredValue.getValue()));
/**
* Asserting
*/
Assert.assertNotNull(readRestoredValue.getValue());
Assert.assertTrue(
"Ups!!! The value seems not to have been properly restored, or a concurrent access has changed it!",
readValue.getValue().equals(readRestoredValue.getValue()));
// attempting to disconnect the link with the gateway
gateway.disconnect();
// assert the connection was closed
Assert.assertTrue(gateway.isConnected() == false);
} catch (Exception e) {
if(e.getCause() instanceof KNXTimeoutException){
logger.error("Skipping unit test, KNX Gateway connection timeout.");
return;
}
logger.error(e);
fail(e.getMessage());
}
}
} | mit |
sebastiaanluca/laravel-modules | src/Repositories/HandlesMethodExtensions.php | 2264 | <?php
namespace Nwidart\Modules\Repositories;
trait HandlesMethodExtensions
{
/**
* Get the dynamically handled method extensions.
*
* @return array
*/
protected function getMethodExtensions() : array
{
return [];
}
/**
* Check if a called method is has a dynamic part.
*
* @param string $method
* @param string $extension
*
* @return bool
*/
protected function currentCallIsMethodExtension(string $method, string $extension) : bool
{
return ends_with($method, $extension);
}
/**
* Perform extra actions on the result of a given pseudo-method.
*
* @param string $method
* @param string $extension
* @param array $parameters
* @param callable $callback
*
* @return mixed
*/
protected function callDynamicMethod(string $method, string $extension, array $parameters, callable $callback)
{
$method = str_replace($extension, '', $method);
// Prevent an infinite loop by first checking the method-to-call
if (public_method_exists($this, $method)) {
$result = call_user_func_array([$this, $method], $parameters);
} else {
// TODO: check if base class even has a parent (throw BadMethodException or leave as-is if false as we then can't proceed by calling the parent method)
$result = parent::__call($method, $parameters);
}
return $callback($result, $method);
}
/**
* Dynamically handle missing methods.
*
* @param string $method
* @param array $parameters
*
* @return mixed
*/
public function __call($method, $parameters)
{
foreach ($this->getMethodExtensions() as $extension => $callback) {
if ($this->currentCallIsMethodExtension($method, $extension)) {
return $this->callDynamicMethod($method, $extension, $parameters, $callback);
}
}
// TODO: check if base class has a parent (throw BadMethodException if false as we then can't proceed by calling the parent method)
// Default fallback
return parent::__call($method, $parameters);
}
} | mit |
cmu-delphi/delphi-epidata | integrations/server/test_fluview.py | 2247 | """Integration tests for the `fluview` endpoint."""
# standard library
import unittest
# third party
import mysql.connector
# first party
from delphi.epidata.client.delphi_epidata import Epidata
class FluviewTests(unittest.TestCase):
"""Tests the `fluview` endpoint."""
@classmethod
def setUpClass(cls):
"""Perform one-time setup."""
# use the local instance of the Epidata API
Epidata.BASE_URL = 'http://delphi_web_epidata/epidata/api.php'
def setUp(self):
"""Perform per-test setup."""
# connect to the `epidata` database and clear the `fluview` table
cnx = mysql.connector.connect(
user='user',
password='pass',
host='delphi_database_epidata',
database='epidata')
cur = cnx.cursor()
cur.execute('truncate table fluview')
cnx.commit()
cur.close()
# make connection and cursor available to test cases
self.cnx = cnx
self.cur = cnx.cursor()
def tearDown(self):
"""Perform per-test teardown."""
self.cur.close()
self.cnx.close()
def test_round_trip(self):
"""Make a simple round-trip with some sample data."""
# insert dummy data
self.cur.execute('''
INSERT INTO
`fluview` (`id`, `release_date`, `issue`, `epiweek`, `region`,
`lag`, `num_ili`, `num_patients`, `num_providers`, `wili`, `ili`,
`num_age_0`, `num_age_1`, `num_age_2`, `num_age_3`, `num_age_4`, `num_age_5`)
VALUES
(0, "2020-04-07", 202021, 202020, "nat", 1, 2, 3, 4, 3.14159, 1.41421,
10, 11, 12, 13, 14, 15)
''')
self.cnx.commit()
# make the request
response = Epidata.fluview('nat', 202020)
# assert that the right data came back
self.assertEqual(response, {
'result': 1,
'epidata': [{
'release_date': '2020-04-07',
'region': 'nat',
'issue': 202021,
'epiweek': 202020,
'lag': 1,
'num_ili': 2,
'num_patients': 3,
'num_providers': 4,
'num_age_0': 10,
'num_age_1': 11,
'num_age_2': 12,
'num_age_3': 13,
'num_age_4': 14,
'num_age_5': 15,
'wili': 3.14159,
'ili': 1.41421,
}],
'message': 'success',
})
| mit |
intersystems-ru/Globals-EF | GlobalsFrameworkModel/Linq/DeferredOrdering/IDeferredOrderedEnumerable.cs | 222 | using System.Linq;
namespace GlobalsFramework.Linq.DeferredOrdering
{
internal interface IDeferredOrderedEnumerable
{
IOrderedEnumerable<TResult> GetLoadedOrderedEnumerable<TResult>();
}
}
| mit |
Skippeh/Oxide.Ext.ServerManager | Oxide.PluginWebApi/Properties/AssemblyInfo.cs | 1411 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Oxide.PluginWebApi")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Oxide.PluginWebApi")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("884372cd-4a6b-4067-9e05-cee8a7d50928")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
IcecaveLabs/heroku | test/suite/Console/ApplicationTest.php | 721 | <?php
namespace Icecave\Heroku\Console;
use PHPUnit_Framework_TestCase;
use Phake;
class ApplicationTest extends PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->application = Phake::partialMock(
Application::CLASS
);
}
public function testConstructor()
{
$this->assertSame('Heroku', $this->application->getName());
$this->assertSame('0.0.0', $this->application->getVersion());
$commandClasses = [
Command\Cache\ClearCommand::CLASS,
];
foreach ($commandClasses as $class) {
Phake::verify($this->application)->add(
$this->isInstanceOf($class)
);
}
}
}
| mit |
collapsedev/circlecash | src/qt/locale/bitcoin_cy.ts | 99576 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Circlecash</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>Circlecash</b> version</source>
<translation>Fersiwn <b>Circlecash</b></translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The Circlecash developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Llyfr Cyfeiriadau</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Clicio dwywaith i olygu cyfeiriad neu label</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Creu cyfeiriad newydd</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copio'r cyfeiriad sydd wedi'i ddewis i'r clipfwrdd system</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Circlecash addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Circlecash address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified Circlecash address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Dileu</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Circlecash addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Allforio Data Llyfr Cyfeiriad</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Gwall allforio</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Ni ellir ysgrifennu i ffeil %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(heb label)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Teipiwch gyfrinymadrodd</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Cyfrinymadrodd newydd</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Ailadroddwch gyfrinymadrodd newydd</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Dewiswch gyfrinymadrodd newydd ar gyfer y waled. <br/> Defnyddiwch cyfrinymadrodd o <b>10 neu fwy o lythyrennau hapgyrch</b>, neu <b> wyth neu fwy o eiriau.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Amgryptio'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Mae angen i'r gweithred hon ddefnyddio'ch cyfrinymadrodd er mwyn datgloi'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Datgloi'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Mae angen i'r gweithred hon ddefnyddio'ch cyfrinymadrodd er mwyn dadgryptio'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Dadgryptio'r waled</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Newid cyfrinymadrodd</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Teipiwch yr hen cyfrinymadrodd a chyfrinymadrodd newydd i mewn i'r waled.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Cadarnau amgryptiad y waled</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR LITECOINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Waled wedi'i amgryptio</translation>
</message>
<message>
<location line="-56"/>
<source>Circlecash will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your circlecashs from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Amgryptiad waled wedi methu</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Methodd amgryptiad y waled oherwydd gwall mewnol. Ni amgryptwyd eich waled.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Dydy'r cyfrinymadroddion a ddarparwyd ddim yn cyd-fynd â'u gilydd.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Methodd ddatgloi'r waled</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Methodd dadgryptiad y waled</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Cysoni â'r rhwydwaith...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Trosolwg</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Dangos trosolwg cyffredinol y waled</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Trafodion</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Pori hanes trafodion</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Golygu'r rhestr o cyfeiriadau a labeli ar gadw</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Dangos rhestr o gyfeiriadau ar gyfer derbyn taliadau</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Gadael rhaglen</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Circlecash</source>
<translation>Dangos gwybodaeth am Circlecash</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opsiynau</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Circlecash address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Circlecash</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Newid y cyfrinymadrodd a ddefnyddiwyd ar gyfer amgryptio'r waled</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Circlecash</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About Circlecash</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Circlecash addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Circlecash addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Ffeil</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Gosodiadau</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Cymorth</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Bar offer tabiau</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>Circlecash client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Circlecash network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Cyfamserol</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Dal i fyny</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Trafodiad a anfonwyd</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Trafodiad sy'n cyrraedd</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Circlecash address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Mae'r waled <b>wedi'i amgryptio</b> ac <b>heb ei gloi</b> ar hyn o bryd</translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Mae'r waled <b>wedi'i amgryptio</b> ac <b>ar glo</b> ar hyn o bryd</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Circlecash can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Golygu'r cyfeiriad</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Label</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Mae'r label hon yn cysylltiedig gyda'r cofnod llyfr cyfeiriad hon</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Cyfeiriad</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Mae'r cyfeiriad hon yn cysylltiedig gyda'r cofnod llyfr cyfeiriad hon. Gall hyn gael ei olygu dim ond ar gyfer y pwrpas o anfon cyfeiriadau.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Cyfeiriad derbyn newydd</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Cyfeiriad anfon newydd</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Golygu'r cyfeiriad derbyn</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Golygu'r cyfeiriad anfon</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Mae'r cyfeiriad "%1" sydd newydd gael ei geisio gennych yn y llyfr cyfeiriad yn barod.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Circlecash address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Methodd ddatgloi'r waled.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Methodd gynhyrchu allwedd newydd.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Circlecash-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opsiynau</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Circlecash after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Circlecash on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Circlecash client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the Circlecash network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Circlecash.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show Circlecash addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Circlecash.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Ffurflen</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Circlecash network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Gweddill:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Nas cadarnheir:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Trafodion diweddar</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Eich gweddill presennol</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Cyfanswm o drafodion sydd heb eu cadarnhau a heb eu cyfri tuag at y gweddill presennol</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start circlecash: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Circlecash-Qt help message to get a list with possible Circlecash command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>Circlecash - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Circlecash Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Circlecash debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Circlecash RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Anfon arian</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Anfon at pobl lluosog ar yr un pryd</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Gweddill:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Cadarnhau'r gweithrediad anfon</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> to %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Ydych chi'n siwr eich bod chi eisiau anfon %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>a</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Ffurflen</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Maint</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Label:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Gludo cyfeiriad o'r glipfwrdd</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Circlecash address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Gludo cyfeiriad o'r glipfwrdd</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Circlecash address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Circlecash address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Circlecash address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter Circlecash signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Circlecash developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Agor tan %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Agor tan %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Cyfeiriad</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Gwall allforio</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Ni ellir ysgrifennu i ffeil %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Circlecash version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or circlecashd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: circlecash.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: circlecashd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 8606 or testnet: 18606)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9332 or testnet: 19332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=circlecashrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Circlecash Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. Circlecash is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Circlecash will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Circlecash Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Circlecash</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Circlecash to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Circlecash is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | mit |
jojanper/draal-jsapp | src/graphql/resolvers.js | 131 | const { resolvers: UserResolvers } = require('../apps/user/graphql');
module.exports = {
Query: { ...UserResolvers.Query }
};
| mit |
dksr/REMIND | python/base/utils/pyswip/__init__.py | 910 | # -*- coding: utf-8 -*-
# pyswip -- Python SWI-Prolog bridge
# (c) 2006-2007 Yüce TEKOL
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
# PySWIP version
__VERSION__ = "0.2.2"
from pyswip.prolog import Prolog, PrologError
from pyswip.easy import *
| mit |
fjyuan/Exporter | Assets/Scripts/AssetManager/AssetBundleManager.cs | 2335 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
static public class AssetBundleManager
{
// A dictionary to hold the AssetBundle references
static private Dictionary<string, AssetBundleRef> dictAssetBundleRefs;
static AssetBundleManager ()
{
dictAssetBundleRefs = new Dictionary<string, AssetBundleRef> ();
}
// Class with the AssetBundle reference, url and version
private class AssetBundleRef
{
public AssetBundle assetBundle = null;
public int version;
public string url;
public AssetBundleRef (string strUrlIn, int intVersionIn)
{
url = strUrlIn;
version = intVersionIn;
}
};
// Get an AssetBundle
public static AssetBundle getAssetBundle (string url, int version)
{
string keyName = url + version.ToString ();
AssetBundleRef abRef;
if (dictAssetBundleRefs.TryGetValue (keyName, out abRef))
return abRef.assetBundle;
else
return null;
}
// Download an AssetBundle
public static IEnumerator downloadAssetBundle (string url, int version)
{
string keyName = url + version.ToString ();
if (dictAssetBundleRefs.ContainsKey (keyName))
yield return null;
else {
using (WWW www = WWW.LoadFromCacheOrDownload (url, version)) {
yield return www;
if (www.error != null)
throw new Exception ("WWW download:" + www.error);
AssetBundleRef abRef = new AssetBundleRef (url, version);
abRef.assetBundle = www.assetBundle;
dictAssetBundleRefs.Add (keyName, abRef);
}
}
}
// Unload an AssetBundle
public static void Unload (string url, int version, bool allObjects)
{
string keyName = url + version.ToString ();
AssetBundleRef abRef;
if (dictAssetBundleRefs.TryGetValue (keyName, out abRef)) {
abRef.assetBundle.Unload (allObjects);
abRef.assetBundle = null;
dictAssetBundleRefs.Remove (keyName);
}
}
public static void Unload (string url, bool allObjects)
{
Unload (url, 1, allObjects);
}
public static AssetBundle LoadAssetBundleWithFile (string file)
{
AssetBundle bundle = getAssetBundle(file, 1);
if (bundle == null) {
string keyName = file + 1;
bundle = AssetBundle.CreateFromFile(file);
AssetBundleRef abRef = new AssetBundleRef (file, 1);
abRef.assetBundle = bundle;
dictAssetBundleRefs.Add (keyName, abRef);
}
return bundle;
}
}
| mit |
phpManufaktur/kfConfirmationLog | Data/Filter/Persons.php | 2926 | <?php
/**
* ConfirmationLog
*
* @author Team phpManufaktur <[email protected]>
* @link https://kit2.phpmanufaktur.de/ConfirmationLog
* @copyright 2013 Ralf Hertsch <[email protected]>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
namespace phpManufaktur\ConfirmationLog\Data\Filter;
class Persons
{
protected $app = null;
/**
* Constructor
*
* @param Application $app
*/
public function __construct($app)
{
$this->app = $app;
}
/**
* Get all USERGROUPS from the CMS
*
* @throws \Exception
* @return array|boolean FALSE if no group was found
*/
public function getGroups()
{
try {
$SQL = "SELECT DISTINCT `name`, `group_id` FROM `".CMS_TABLE_PREFIX."groups` ORDER BY `name` ASC";
$results = $this->app['db']->fetchAll($SQL);
$groups = array();
foreach ($results as $result) {
$groups[] = array(
'id' => $result['group_id'],
'name' => $this->app['utils']->unsanitizeText($result['name'])
);
}
return !empty($groups) ? $groups : false;
} catch (\Doctrine\DBAL\DBALException $e) {
throw new \Exception($e);
}
}
public function getGroupByName($group_name)
{
try {
$SQL = "SELECT * FROM `".CMS_TABLE_PREFIX."groups` WHERE `name`='$group_name'";
$result = $this->app['db']->fetchAssoc($SQL);
if (!isset($result['group_id'])) {
return false;
}
$group = array();
foreach ($result as $key => $value) {
$group[$key] = is_string($value) ? $this->app['utils']->unsanitizeText($value) : $value;
}
return $group;
} catch (\Doctrine\DBAL\DBALException $e) {
throw new \Exception($e);
}
}
/**
* Get all users/persons which belong to the CMS USERGROUP with the given ID
*
* @param integer $group_id
* @throws \Exception
* @return array|boolean
*/
public function getPersonsByGroupID($group_id)
{
try {
$SQL = "SELECT * FROM `".CMS_TABLE_PREFIX."users` WHERE (`groups_id`='$group_id' OR
`groups_id` LIKE '$group_id,%' OR `groups_id` LIKE '%,$group_id' OR
`groups_id` LIKE '%,$group_id,%') ORDER BY `display_name` ASC";
$results = $this->app['db']->fetchAll($SQL);
$persons = array();
foreach ($results as $key => $value) {
$persons[$key] = is_string($value) ? $this->app['utils']->unsanitizeText($value) : $value;
}
return (!empty($persons)) ? $persons : false;
} catch (\Doctrine\DBAL\DBALException $e) {
throw new \Exception($e);
}
}
}
| mit |
brucou/component-combinators | examples/CombineDemo/src/index.js | 1489 | import { App } from "./app"
import defaultModules from "cycle-snabbdom/lib/modules"
import { createHistory } from "history"
import { makeHistoryDriver } from '@cycle/history';
import * as Rx from "rx";
// drivers
import { makeDOMDriver } from "cycle-snabbdom"
import { run } from "@cycle/core"
// utils
import { DOM_SINK } from "@rxcc/utils"
import { merge } from "ramda"
const $ = Rx.Observable;
const modules = defaultModules;
// Helpers
function filterNull(driver) {
return function filteredDOMDriver(sink$) {
return driver(sink$
.filter(Boolean)
)
}
}
// Make drivers
// Document driver
function documentDriver(_) {
void _; // unused sink, this is a read-only driver
return document
}
const { sources, sinks } = run(init(App), {
[DOM_SINK]: filterNull(makeDOMDriver('#app', { transposition: false, modules })),
router: makeHistoryDriver(createHistory(), { capture: true }),
document: documentDriver,
});
// Webpack specific code
if (module.hot) {
module.hot.accept();
module.hot.dispose(() => {
sinks.dispose()
sources.dispose()
});
}
// NOTE : convert html to snabbdom online to http://html-to-hyperscript.paqmind.com/
// ~~ attributes -> attrs
function init(App) {
// NOTE : necessary in the context of the demo to put the initial route to /
return function initApp(sources, settings) {
const appSinks = App(sources, settings);
return merge(appSinks, {
router: $.concat([$.of('/'), appSinks.router])
})
}
}
| mit |
ROpsal/qt-topaz31 | Players.cpp | 25250 | ///
// Author: Richard Opsal
//
// Purpose: Implementation of regions for the "31" board.
// CS3350 demonstration program.
//
// Location: Qt.Demo/Topaz31
// $RCSfile$
//
// Started: 2009/12/16
// $Revision$
// $Date$
///
///
// C / C++ / STL includes.
///
#include <cstdlib>
#include <algorithm>
///
// Qt includes.
///
#include <QGraphicsRectItem>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QPixmap>
#include <QList>
#include <QListIterator>
#include <QStack>
#include <QTimer>
#include <QBrush>
#include <QColor>
#include <QPen>
///
// Local includes.
///
#include "Card.h"
#include "CardDeck.h"
#include "Players.h"
///
// Constructor Player :
///
Player:: Player(Dealer & rdealerIn, QGraphicsScene & rsceneIn, QGraphicsItem * pparentIn)
: QGraphicsRectItem( pparentIn ),
fOnYourHonour( true ),
rcdeck( * new CardDeck ),
rdealer( rdealerIn ),
rscene ( rsceneIn ),
brushActive ( QColor("#FBE9E7") ), // Deep orange 50
brushKnock ( QColor("#E53935") ),
brushKnockHL ( QColor("#D32F2F"), Qt::DiagCrossPattern ), // Red 700
brushLostHL ( QColor("#AA00FF"), Qt::FDiagPattern ), // Purple A700
brushLostOL ( QColor("#4A148C") ), // Purple 900
brushWinnerHL( QColor("#7986CB"), Qt::Dense5Pattern ), // Indigo 300
brushWinnerOL( QColor("#F50057") ), // Pink A400
brushHas31HL ( QColor("#FFD54F"), Qt::CrossPattern ), // Amber 300
brushHas31OL ( QColor("#FF6F00") ), // Amber 900
brushOutline ( QColor("#1A237E") ) // Indigo 900
{
static const char * ATOKENS[] =
{
":/images/gcoin1.png",
":/images/gcoin2.png",
":/images/emerald.png",
":/images/garnet.png",
":/images/ruby.png",
":/images/sapphire.png",
":/images/topaz.png"
} ;
static const unsigned CTOKENS = sizeof(ATOKENS) / sizeof(const char *) ;
unsigned cLives = CLIVES ;
while (cLives--)
{
QPixmap pixmapToken(ATOKENS[rand()%CTOKENS], "PNG") ;
QGraphicsPixmapItem * ptoken = new QGraphicsPixmapItem(pixmapToken) ;
ptoken->setParentItem(this) ;
ptoken->setScale(0.5) ;
ptoken->hide() ;
listTokens.push_back( ptoken ) ;
}
Player::showPlayerNormal() ;
}
///
// Destructor Player :
///
Player:: ~Player()
{
delete &rcdeck ;
}
///
// Routine Player:: appendCard() :
//
// Add a card to the player's pile.
///
void Player:: appendCard(Card * pcard)
{
rcdeck.appendCard(pcard) ;
pcard->setParentItem(this) ;
pcard->setZValue( rcdeck.count() ) ;
}
///
// Routine Player:: removeCard() :
//
// Removed cards go to Dealer's discard pile.
///
void Player:: removeCard(Card * pcard)
{
rscene.removeItem( pcard ) ;
rcdeck.removeCard( pcard ) ;
rcdeck.zTheDeck() ;
rdealer.appendDiscard( pcard ) ;
}
///
// Routine Player:: initializeTokens() :
//
// Shuffles and places tokens in region.
///
void Player:: initializeTokens(unsigned clives)
{
// Randomly display our life tokens.
std::random_shuffle( listTokens.begin(), listTokens.end() ) ;
// Randomly adjust rotation on each token.
// Trying for a "casual" look with the tokens.
// foreach(QGraphicsPixmapItem * ptoken, listTokens)
// {
// signed angle = (rand()%5) * (rand()%2 ? -1 : 1) ;
// ptoken -> setRotation( angle ) ;
// }
// Get one token from list. They are all the same size.
QGraphicsPixmapItem * ptoken = listTokens.at(0) ;
// Parent rectangle details for placement calc.
QRectF rectThis = Player:: boundingRect() ;
QRectF rectToken = ptoken-> boundingRect() ;
// Adjust for scaling factor.
rectToken.setWidth (rectToken.width() * ptoken->scale()) ;
rectToken.setHeight(rectToken.height() * ptoken->scale()) ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectToken.height()*listTokens.count()) ;
delta /= 5 ;
// Starting offsets for tokens.
unsigned xoffset = rectThis.width() - rectToken.width() - delta*3 ;
unsigned yoffset = delta ;
// Position the token.
foreach(ptoken, listTokens)
{
ptoken->setPos(rectThis.x()+xoffset,rectThis.y()+yoffset) ;
yoffset += delta + rectToken.height() ;
(clives) ? ptoken->show() : ptoken->hide() ;
(clives) ? clives-- : clives ;
}
// Reset the "on-your-honour" flag.
fOnYourHonour = true ;
}
///
// Routine Player:: removeAToken() :
//
// Hide another token. If in 'on-your-honour' state, then clear.
///
void Player:: removeAToken()
{
fOnYourHonour = false ;
QListIterator<QGraphicsPixmapItem *> it(listTokens);
it.toBack();
while ( it.hasPrevious() )
{
// Extract pointer to token.
QGraphicsPixmapItem * ptoken = it.previous() ;
// If token already hidden, then try the next one.
if (false == ptoken->isVisible())
continue ;
ptoken->hide() ;
fOnYourHonour = true ;
break ;
}
// Indicate, graphically, who lost.
showPlayerLost() ;
}
///
// Function Player:: isPlayerActive() :
//
// Return the 'on-your-honour' flag. Either tokens still visible or
// really in 'on-your-honour' state.
///
bool Player:: isPlayerActive()
{
return fOnYourHonour ;
}
///
// Routine Player:: doThirtyOneCheck() :
///
void Player:: doThirtyOneCheck()
{
if (CardDeck::C31SUM == rcdeck.scoreTheHand())
emit turnCompleted( this, Player::Thirty_one ) ;
}
///
// Routine Player:: showPlayerActive() :
///
void Player:: showPlayerActive ( bool fShowActive )
{
(fShowActive)
? QGraphicsRectItem::setBrush( brushActive )
: QGraphicsRectItem::setBrush( brushNone ) ;
}
///
// Routine Player:: showPlayerKnocked() :
///
void Player:: showPlayerKnocked( bool fShowKnocked )
{
(fShowKnocked)
? QGraphicsRectItem::setPen( QPen(brushKnock , cpelsKnock ) )
: QGraphicsRectItem::setPen( QPen(brushOutline, cpelsNormal) ) ;
if (fShowKnocked)
QGraphicsRectItem::setBrush( brushKnockHL ) ;
}
///
// Routine Player:: showPlayerLost() :
///
void Player:: showPlayerLost()
{
QGraphicsRectItem::setPen( QPen(brushLostOL, cpelsLost) ) ;
QGraphicsRectItem::setBrush( brushLostHL ) ;
}
///
// Routine Player:: showPlayerWon() :
///
void Player:: showPlayerWon()
{
QGraphicsRectItem::setPen( QPen(brushWinnerOL, cpelsKnock+2 ) ) ;
QGraphicsRectItem::setBrush( brushWinnerHL ) ;
}
///
// Routine Player:: showPlayerHas31() :
///
void Player:: showPlayerHas31()
{
QGraphicsRectItem::setPen( QPen(brushHas31OL, cpelsKnock+1 ) ) ;
QGraphicsRectItem::setBrush( brushHas31HL ) ;
}
/// ///
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// ///
///
// Constructor NpcPlayer :
///
NpcPlayer:: NpcPlayer(Dealer & rdealerIn, QGraphicsScene & rsceneIn, QGraphicsItem * pparentIn)
: Player( rdealerIn, rsceneIn, pparentIn )
{
NpcPlayer::turnaction = Player::Draw ;
}
///
// Destructor NpcPlayer :
///
NpcPlayer:: ~NpcPlayer()
{
}
///
// Routine NpcPlayer:: appendCard() :
//
// Add a card to the player's pile.
///
void NpcPlayer:: appendCard(Card * pcard)
{
// Have our ancestor do basics.
Player::appendCard(pcard) ;
// We're the computer player, so always hide the card.
pcard->setCardFaceUp(false) ;
// Parent rectangle details for placement calc.
QRectF rectThis = NpcPlayer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
delta >>= 1 ;
// Count of cards determines position.
unsigned count = rcdeck.count() ;
unsigned xoffset = delta + (delta * 1.8 * (count-1)) ;
// Position the card.
pcard->setPos(rectThis.x()+xoffset,rectThis.y()+delta) ;
}
///
// Routine NpcPlayer:: removeCard() :
///
void NpcPlayer:: removeCard(Card * pcard)
{
// Parent rectangle details for placement calc.
// All cards same size, so okay to use one we are removing.
QRectF rectThis = NpcPlayer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Have our ancestor do basics.
Player::removeCard(pcard) ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
delta >>= 1 ;
// Need to reposition the cards.
unsigned count = 0 ;
foreach (Card * pcard, rcdeck.cardList)
{
// Card storage order determines position.
unsigned xoffset = delta + (delta * 1.8 * (count++)) ;
// Position the card.
pcard->setPos(rectThis.x()+xoffset,rectThis.y()+delta) ;
}
}
///
// Routine NpcPlayer:: setCardsFaceUp() :
///
void NpcPlayer:: setCardsFaceUp(bool fShowFace)
{
// Show face or back of all cards.
foreach (Card * pcard, rcdeck.cardList)
pcard->setCardFaceUp(fShowFace) ;
}
///
// Slot Routine NpcPlayer:: doPlayerTurn() :
///
void NpcPlayer:: doPlayerTurn
(
Player * pplayerIn, // IN - Which player?
bool fKnockRoundIn, // IN - Are we in a knock round?
unsigned roundIn, // IN - Which round of play?
unsigned cPlayersIn, // IN - Count of active players.
PlayLevel playLevelIn // IN - Difficult of play indicator.
)
{
// Special check for "31" deal.
if (0 == pplayerIn)
{
doThirtyOneCheck() ;
}
// Possible this isn't our turn!
else if (this == pplayerIn)
{
// Change color to active.
Player::showPlayerActive() ;
// Score it two ways, with and without discard.
unsigned scoreHand = rcdeck.scoreTheHand() ;
unsigned scoreDiscard = rcdeck.scoreTheHand( rdealer.topDiscard() ) ;
bool fKnocked = false ;
if (!fKnockRoundIn)
{
// Algorithm for deciding on knock action.
unsigned scoreTest = 24 - cPlayersIn ;
scoreTest += roundIn * ((rand() % 2)+1) ;
scoreTest -= 4 - playLevelIn ;
if (scoreHand >= scoreTest)
{
fKnocked = true ;
turnaction = Player::Knock ;
Player::showPlayerKnocked() ;
}
}
// If knock round, or didn't knock, maximize our choices.
if (fKnockRoundIn || !fKnocked)
{
if (scoreDiscard > (scoreHand+3))
{
Card * pcard = rdealer.topDiscard() ;
rdealer.removeDiscard( pcard ) ;
NpcPlayer::appendCard( pcard ) ;
}
else
{
Card * pcard = rdealer.topDrawCard() ;
rdealer.removeDrawCard( pcard ) ;
NpcPlayer::appendCard( pcard ) ;
}
Card * pcard = rcdeck.lowestCardInHand() ;
NpcPlayer::removeCard( pcard ) ;
// Normal draw or possible "31" hand.
unsigned sum = rcdeck.scoreTheHand() ;
turnaction = (sum == CardDeck::C31SUM) ? Player::Thirty_one : Player::Draw ;
}
// Do a pause before next player gets their turn.
QTimer::singleShot((rand() % 750) + 1000, this, SLOT(doPlayerDelay())) ;
}
}
///
// Slot Routine NpcPlayer:: doRoundStarting() :
///
void NpcPlayer:: doRoundStarting()
{
QGraphicsScene * pscene = QGraphicsRectItem::scene() ;
if (pscene)
{
QGraphicsScene & rscene = *pscene ;
foreach(Card * pcard, rcdeck.cardList)
rscene.removeItem( pcard ) ;
}
Player:: clearTheDeck() ;
// Clear out region color highlighting.
Player::showPlayerNormal() ;
}
///
// Slot Routine NpcPlayer:: doRoundCompleted() :
///
void NpcPlayer:: doRoundCompleted()
{
// Show our hand.
setCardsFaceUp(true) ;
// Edit here - Show our score!
}
///
// Slot Routine NpcPlayer:: doGameStarting() :
///
void NpcPlayer:: doGameStarting(unsigned clives)
{
Player::initializeTokens(clives) ;
}
///
// Slot Routine NpcPlayer:: doGameCompleted() :
///
void NpcPlayer:: doGameCompleted(Player * pplayer)
{
if (this == pplayer)
Player::showPlayerWon() ;
}
///
// Slot Routine NpcPlayer:: doPlayerDelay() :
//
// This routine catches timer single shot action.
// Used to slow down game play.
///
void NpcPlayer:: doPlayerDelay()
{
// Change color to inactive.
(Knock == turnaction)
? Player::showPlayerKnocked()
: Player::showPlayerActive( false ) ;
// Signal we've completed our play. Go on to next player.
emit turnCompleted( this, turnaction ) ;
}
/// ///
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// ///
///
// Constructor HmnPlayer :
///
HmnPlayer:: HmnPlayer(Dealer & rdealerIn, QGraphicsScene & rsceneIn, QGraphicsItem * pparentIn)
: Player( rdealerIn, rsceneIn, pparentIn ),
fMyTurn( false )
{
}
///
// Destructor HmnPlayer :
///
HmnPlayer:: ~HmnPlayer()
{
}
///
// Routine HmnPlayer:: appendCard() :
//
// Add a card to the player's pile.
///
void HmnPlayer:: appendCard(Card * pcard)
{
// Have our ancestor do basics.
Player::appendCard(pcard) ;
// We're the human player, so always show the card.
pcard->setCardFaceUp(true) ;
// Parent rectangle details for placement calc.
QRectF rectThis = HmnPlayer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
// Count of cards determines position.
unsigned count = rcdeck.count() ;
unsigned xoffset = delta + (delta*0.6 + rectCard.width()) * (count-1) ;
// Position the card.
pcard->setPos(rectThis.x()+xoffset,rectThis.y()+(delta>>1)) ;
}
///
// Routine HmnPlayer:: removeCard() :
///
void HmnPlayer:: removeCard(Card * pcard)
{
// Parent rectangle details for placement calc.
// All cards same size, so okay to use one we are removing.
QRectF rectThis = HmnPlayer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Have our ancestor do basics.
Player::removeCard(pcard) ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
// Edit here - Re-organize cards for easier reading.
// Need to reposition the cards.
unsigned count = 0 ; ;
foreach (Card * pcard, rcdeck.cardList)
{
// Card storage order determines position.
unsigned xoffset = delta + (delta*0.6 + rectCard.width()) * (count++) ;
// Position the card.
pcard->setPos(rectThis.x()+xoffset,rectThis.y()+(delta>>1)) ;
}
}
///
// Slot Routine HmnPlayer:: doPlayerTurn() :
///
void HmnPlayer:: doPlayerTurn
(
Player * pplayerIn, // IN - Which player?
bool fKnockRoundIn, // IN - Are we in a knock round?
unsigned roundIn, // IN - Which round of play? Ignored!
unsigned cPlayersIn, // IN - Count of active players.
PlayLevel playLevelIn // IN - Difficult of play indicator. Ignored!
)
{
// Need to save this state.
fKnockRound = fKnockRoundIn ;
// Special check for "31" deal.
if (0 == pplayerIn)
{
doThirtyOneCheck() ;
}
// Possible this isn't our turn!
else if (fMyTurn = (this == pplayerIn))
{
// Setup dealer cards for clicking.
wireDealer() ;
// Change color to active.
Player::showPlayerActive() ;
}
}
///
// Slot Routine HmnPlayer:: doRoundStarting() :
///
void HmnPlayer:: doRoundStarting()
{
QGraphicsScene * pscene = QGraphicsRectItem::scene() ;
if (pscene)
{
QGraphicsScene & rscene = *pscene ;
foreach(Card * pcard, rcdeck.cardList)
rscene.removeItem( pcard ) ;
}
Player:: clearTheDeck() ;
// Clear out region color highlighting.
Player::showPlayerNormal() ;
}
///
// Slot Routine HmnPlayer:: doRoundCompleted() :
///
void HmnPlayer:: doRoundCompleted()
{
// Edit here - Show our score!
}
///
// Slot Routine HmnPlayer:: doGameStarting() :
///
void HmnPlayer:: doGameStarting(unsigned clives)
{
Player::initializeTokens(clives) ;
}
///
// Slot Routine HmnPlayer:: doGameCompleted() :
///
void HmnPlayer:: doGameCompleted(Player * pplayer)
{
if (this == pplayer)
Player::showPlayerWon() ;
}
///
// Slot Routine HmnPlayer:: doKnockAction() :
///
void HmnPlayer:: doKnockAction()
{
// Possible this isn't our turn or somebody else already knocked.
if (!fMyTurn || fKnockRound)
return ;
fMyTurn = false ;
unwireDealer() ;
// Indicate we're the knock player.
Player::showPlayerActive(false) ;
Player::showPlayerKnocked() ;
// Nothing else to do.
emit turnCompleted( this, Player::Knock ) ;
}
///
// Slot Routine HmnPlayer:: doDrawFromDiscard() :
///
void HmnPlayer:: doDrawFromDiscard()
{
// Possible this isn't our turn!
if (!fMyTurn)
return ;
fMyTurn = false ;
unwireDealer() ;
Card * pcard = rdealer.topDiscard() ;
rdealer.removeDiscard( pcard ) ;
HmnPlayer:: appendCard(pcard) ;
wireMyCards() ;
}
///
// Slot Routine HmnPlayer:: doDrawFromDeck() :
///
void HmnPlayer:: doDrawFromDeck()
{
// Possible this isn't our turn!
if (!fMyTurn)
return ;
fMyTurn = false ;
unwireDealer() ;
Card * pcard = rdealer.topDrawCard() ;
rdealer.removeDrawCard( pcard ) ;
HmnPlayer:: appendCard( pcard ) ;
// Wire cards so we can click from hand to discard.
wireMyCards() ;
}
///
// Slot Routine HmnPlayer:: doDiscardFromHand() :
///
void HmnPlayer:: doDiscardFromHand(Card * pcard)
{
// Disconnect the hand cards. Make them unselectable.
unwireMyCards() ;
// Remove specified card.
HmnPlayer::removeCard( pcard ) ;
unsigned sum = rcdeck.scoreTheHand() ;
// No longer active player.
Player::showPlayerActive(false) ;
// Normal draw or possible "31" hand.
emit turnCompleted( this, (sum == CardDeck::C31SUM) ? Player::Thirty_one : Player::Draw ) ;
}
///
// Routine HmnPlayer:: wireMyCards() :
///
void HmnPlayer:: wireMyCards()
{
foreach(Card * pcard, rcdeck.cardList)
connect(pcard, SIGNAL(cardClicked(Card *)), this, SLOT(doDiscardFromHand(Card *))) ;
}
///
// Routine HmnPlayer:: wireMyCards() :
///
void HmnPlayer:: unwireMyCards()
{
foreach(Card * pcard, rcdeck.cardList)
disconnect(pcard, 0, 0, 0) ;
}
///
// Routine HmnPlayer:: wireDealer() :
//
// Signal / slot wiring for top cards from deal and discard decks.
///
void HmnPlayer:: wireDealer()
{
// Only wiring top cards from dealer.
Card * pcardDiscard = rdealer.topDiscard() ;
Card * pcardDraw = rdealer.topDrawCard() ;
// Signals for processing player turns.
connect( pcardDiscard, SIGNAL(cardClicked(Card *)), this, SLOT(doDrawFromDiscard()) ) ;
connect( pcardDraw, SIGNAL(cardClicked(Card *)), this, SLOT(doDrawFromDeck ()) ) ;
}
///
// Routine HmnPlayer:: unwireDealer() :
//
// Signal / slot wiring for top cards from deal and discard decks.
///
void HmnPlayer:: unwireDealer()
{
// Signals for processing player turns.
disconnect(rdealer.topDiscard(), 0, 0, 0) ;
disconnect(rdealer.topDrawCard(), 0, 0, 0) ;
}
/// ///
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// ///
///
// Constructor Dealer :
///
Dealer:: Dealer(QGraphicsItem * pparentIn)
: QGraphicsRectItem( pparentIn ),
rcdeckDraw ( * new CardDeck ),
rcdeckDiscard( * new CardDeck ),
brushFill ( QColor("#B0BEC5") ), // Blue grey 200
brushOutline ( QColor("#B71C1C") ) // Red 900
{
QGraphicsRectItem::setPen( QPen(brushOutline, cpelsNormal) ) ;
QGraphicsRectItem::setBrush( brushFill ) ;
}
///
// Destructor Dealer :
///
Dealer:: ~Dealer()
{
delete &rcdeckDraw ;
delete &rcdeckDiscard ;
}
///
// Routine Dealer:: appendDrawCard() :
//
// Add a card to the player's pile.
///
void Dealer:: appendDrawCard(Card * pcard)
{
// Save the card in draw deck.
rcdeckDraw.appendCard(pcard) ;
pcard->setParentItem(this) ;
// We're the draw card, so always hide.
pcard->setCardFaceUp(false) ;
// Parent rectangle details for placement calc.
QRectF rectThis = Dealer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
// Position the card.
pcard->setPos(rectThis.x()+(delta>>1),rectThis.y()+(delta>>1)) ;
}
///
// Routine Dealer:: removeDrawCard() :
///
void Dealer:: removeDrawCard(Card * pcard)
{
QGraphicsScene * pscene = QGraphicsRectItem::scene() ;
if (pscene)
{
QGraphicsScene & rscene = *pscene ;
rscene.removeItem( pcard ) ;
}
rcdeckDraw.removeCard( pcard ) ;
}
///
// Routine Dealer:: appendDiscard() :
//
// Add a card to the player's pile.
//
// 2017-01-15 : RBO : Display last four discard cards.
///
void Dealer:: appendDiscard(Card * pcard)
{
// Stack used to display last three cards.
QStack<Card*> cardStack ;
cardStack.push(pcard) ;
// Add three more cards to stack.
for (unsigned times=3 ; times ; --times)
{
if (!rcdeckDiscard.isEmpty() )
{
cardStack.push(rcdeckDiscard.topCard()) ;
rcdeckDiscard.removeTopCard() ;
}
}
// Parent rectangle details for placement calc.
QRectF rectThis = Dealer:: boundingRect() ;
QRectF rectCard = pcard->boundingRect() ;
// Position offset delta.
unsigned delta = (rectThis.height() - rectCard.height()) ;
unsigned xoffset = rectThis.width() / 2 - delta * 0.9 ;
// Put cards back in discard pile.
while (!cardStack.isEmpty())
{
// Grab the top card.
Card * pcard = cardStack.pop() ;
// Save the card in draw deck.
rcdeckDiscard.appendCard(pcard) ;
pcard->setParentItem(this) ;
// We're in the discard pile, so show card.
pcard->setCardFaceUp(true) ;
// Position the card.
pcard->setPos(rectThis.x()+xoffset,rectThis.y()+(delta>>1)) ;
// Adjust xoffset for next card.
xoffset += delta * 0.9 ;
}
}
///
// Routine Dealer:: removeDiscard() :
///
void Dealer:: removeDiscard(Card * pcard)
{
QGraphicsScene * pscene = QGraphicsRectItem::scene() ;
if (pscene)
{
QGraphicsScene & rscene = *pscene ;
rscene.removeItem( pcard ) ;
}
rcdeckDiscard.removeCard( pcard ) ;
}
///
// Routine Dealer:: topDrawCard() :
//
// Grabs cards from discard pile if we run out of cards.
// Owner of cards remains the same!
///
Card * Dealer:: topDrawCard()
{
if (rcdeckDraw.isEmpty())
{
CardDeck cardDeck ;
Card * pcard = topDiscard() ;
rcdeckDiscard.removeTopCard() ;
cardDeck.cardList = rcdeckDiscard.cardList ;
// Just one card for discard pile.
rcdeckDiscard.cardList.clear() ;
appendDiscard( pcard ) ;
// Shuffle temporary deck and place in draw deck.
cardDeck.shuffleTheDeck() ;
foreach(Card * pcard, cardDeck.cardList)
appendDrawCard(pcard) ;
}
return rcdeckDraw.topCard() ;
}
///
// Slot Routine Dealer:: doRoundStarting() :
///
void Dealer:: doRoundStarting()
{
QGraphicsScene * pscene = QGraphicsRectItem::scene() ;
if (pscene)
{
QGraphicsScene & rscene = *pscene ;
foreach(Card * pcard, rcdeckDiscard.cardList)
rscene.removeItem( pcard ) ;
foreach(Card * pcard, rcdeckDraw.cardList)
rscene.removeItem( pcard ) ;
}
Dealer:: clearTheDecks() ;
}
| mit |
pereamengual/QuadraMat | public/javascripts/Tone.js-master/Tone/event/Part.js | 14878 | define(["Tone/core/Tone", "Tone/event/Event", "Tone/type/Type", "Tone/core/Transport"], function (Tone) {
"use strict";
/**
* @class Tone.Part is a collection Tone.Events which can be
* started/stoped and looped as a single unit.
*
* @extends {Tone.Event}
* @param {Function} callback The callback to invoke on each event
* @param {Array} events the array of events
* @example
* var part = new Tone.Part(function(time, note){
* //the notes given as the second element in the array
* //will be passed in as the second argument
* synth.triggerAttackRelease(note, "8n", time);
* }, [[0, "C2"], ["0:2", "C3"], ["0:3:2", "G2"]]);
* @example
* //use an array of objects as long as the object has a "time" attribute
* var part = new Tone.Part(function(time, value){
* //the value is an object which contains both the note and the velocity
* synth.triggerAttackRelease(value.note, "8n", time, value.velocity);
* }, [{"time" : 0, "note" : "C3", "velocity": 0.9},
* {"time" : "0:2", "note" : "C4", "velocity": 0.5}
* ]).start(0);
*/
Tone.Part = function(){
var options = this.optionsObject(arguments, ["callback", "events"], Tone.Part.defaults);
/**
* If the part is looping or not
* @type {Boolean|Positive}
* @private
*/
this._loop = options.loop;
/**
* When the note is scheduled to start.
* @type {Ticks}
* @private
*/
this._loopStart = this.toTicks(options.loopStart);
/**
* When the note is scheduled to start.
* @type {Ticks}
* @private
*/
this._loopEnd = this.toTicks(options.loopEnd);
/**
* The playback rate of the part
* @type {Positive}
* @private
*/
this._playbackRate = options.playbackRate;
/**
* private holder of probability value
* @type {NormalRange}
* @private
*/
this._probability = options.probability;
/**
* the amount of variation from the
* given time.
* @type {Boolean|Time}
* @private
*/
this._humanize = options.humanize;
/**
* The start offset
* @type {Ticks}
* @private
*/
this._startOffset = 0;
/**
* Keeps track of the current state
* @type {Tone.TimelineState}
* @private
*/
this._state = new Tone.TimelineState(Tone.State.Stopped);
/**
* An array of Objects.
* @type {Array}
* @private
*/
this._events = [];
/**
* The callback to invoke at all the scheduled events.
* @type {Function}
*/
this.callback = options.callback;
/**
* If mute is true, the callback won't be
* invoked.
* @type {Boolean}
*/
this.mute = options.mute;
//add the events
var events = this.defaultArg(options.events, []);
if (!this.isUndef(options.events)){
for (var i = 0; i < events.length; i++){
if (Array.isArray(events[i])){
this.add(events[i][0], events[i][1]);
} else {
this.add(events[i]);
}
}
}
};
Tone.extend(Tone.Part, Tone.Event);
/**
* The default values
* @type {Object}
* @const
*/
Tone.Part.defaults = {
"callback" : Tone.noOp,
"loop" : false,
"loopEnd" : "1m",
"loopStart" : 0,
"playbackRate" : 1,
"probability" : 1,
"humanize" : false,
"mute" : false,
};
/**
* Start the part at the given time.
* @param {TransportTime} time When to start the part.
* @param {Time=} offset The offset from the start of the part
* to begin playing at.
* @return {Tone.Part} this
*/
Tone.Part.prototype.start = function(time, offset){
var ticks = this.toTicks(time);
if (this._state.getValueAtTime(ticks) !== Tone.State.Started){
if (this._loop){
offset = this.defaultArg(offset, this._loopStart);
} else {
offset = this.defaultArg(offset, 0);
}
offset = this.toTicks(offset);
this._state.add({
"state" : Tone.State.Started,
"time" : ticks,
"offset" : offset
});
this._forEach(function(event){
this._startNote(event, ticks, offset);
});
}
return this;
};
/**
* Start the event in the given event at the correct time given
* the ticks and offset and looping.
* @param {Tone.Event} event
* @param {Ticks} ticks
* @param {Ticks} offset
* @private
*/
Tone.Part.prototype._startNote = function(event, ticks, offset){
ticks -= offset;
if (this._loop){
if (event.startOffset >= this._loopStart && event.startOffset < this._loopEnd){
if (event.startOffset < offset){
//start it on the next loop
ticks += this._getLoopDuration();
}
event.start(Tone.TransportTime(ticks,"i"));
} else if (event.startOffset < this._loopStart && event.startOffset >= offset) {
event.loop = false;
event.start(Tone.TransportTime(ticks,"i"));
}
} else {
if (event.startOffset >= offset){
event.start(Tone.TransportTime(ticks,"i"));
}
}
};
/**
* The start from the scheduled start time
* @type {Ticks}
* @memberOf Tone.Part#
* @name startOffset
* @private
*/
Object.defineProperty(Tone.Part.prototype, "startOffset", {
get : function(){
return this._startOffset;
},
set : function(offset){
this._startOffset = offset;
this._forEach(function(event){
event.startOffset += this._startOffset;
});
}
});
/**
* Stop the part at the given time.
* @param {TimelinePosition} time When to stop the part.
* @return {Tone.Part} this
*/
Tone.Part.prototype.stop = function(time){
var ticks = this.toTicks(time);
this._state.cancel(ticks);
this._state.setStateAtTime(Tone.State.Stopped, ticks);
this._forEach(function(event){
event.stop(time);
});
return this;
};
/**
* Get/Set an Event's value at the given time.
* If a value is passed in and no event exists at
* the given time, one will be created with that value.
* If two events are at the same time, the first one will
* be returned.
* @example
* part.at("1m"); //returns the part at the first measure
*
* part.at("2m", "C2"); //set the value at "2m" to C2.
* //if an event didn't exist at that time, it will be created.
* @param {TransportTime} time The time of the event to get or set.
* @param {*=} value If a value is passed in, the value of the
* event at the given time will be set to it.
* @return {Tone.Event} the event at the time
*/
Tone.Part.prototype.at = function(time, value){
time = Tone.TransportTime(time);
var tickTime = Tone.Time(1, "i").toSeconds();
for (var i = 0; i < this._events.length; i++){
var event = this._events[i];
if (Math.abs(time.toTicks() - event.startOffset) < tickTime){
if (!this.isUndef(value)){
event.value = value;
}
return event;
}
}
//if there was no event at that time, create one
if (!this.isUndef(value)){
this.add(time, value);
//return the new event
return this._events[this._events.length - 1];
} else {
return null;
}
};
/**
* Add a an event to the part.
* @param {Time} time The time the note should start.
* If an object is passed in, it should
* have a 'time' attribute and the rest
* of the object will be used as the 'value'.
* @param {Tone.Event|*} value
* @returns {Tone.Part} this
* @example
* part.add("1m", "C#+11");
*/
Tone.Part.prototype.add = function(time, value){
//extract the parameters
if (time.hasOwnProperty("time")){
value = time;
time = value.time;
}
time = this.toTicks(time);
var event;
if (value instanceof Tone.Event){
event = value;
event.callback = this._tick.bind(this);
} else {
event = new Tone.Event({
"callback" : this._tick.bind(this),
"value" : value,
});
}
//the start offset
event.startOffset = time;
//initialize the values
event.set({
"loopEnd" : this.loopEnd,
"loopStart" : this.loopStart,
"loop" : this.loop,
"humanize" : this.humanize,
"playbackRate" : this.playbackRate,
"probability" : this.probability
});
this._events.push(event);
//start the note if it should be played right now
this._restartEvent(event);
return this;
};
/**
* Restart the given event
* @param {Tone.Event} event
* @private
*/
Tone.Part.prototype._restartEvent = function(event){
this._state.forEach(function(stateEvent){
if (stateEvent.state === Tone.State.Started){
this._startNote(event, stateEvent.time, stateEvent.offset);
} else {
//stop the note
event.stop(Tone.TransportTime(stateEvent.time, "i"));
}
}.bind(this));
};
/**
* Remove an event from the part. Will recursively iterate
* into nested parts to find the event.
* @param {Time} time The time of the event
* @param {*} value Optionally select only a specific event value
* @return {Tone.Part} this
*/
Tone.Part.prototype.remove = function(time, value){
//extract the parameters
if (time.hasOwnProperty("time")){
value = time;
time = value.time;
}
time = this.toTicks(time);
for (var i = this._events.length - 1; i >= 0; i--){
var event = this._events[i];
if (event instanceof Tone.Part){
event.remove(time, value);
} else {
if (event.startOffset === time){
if (this.isUndef(value) || (!this.isUndef(value) && event.value === value)){
this._events.splice(i, 1);
event.dispose();
}
}
}
}
return this;
};
/**
* Remove all of the notes from the group.
* @return {Tone.Part} this
*/
Tone.Part.prototype.removeAll = function(){
this._forEach(function(event){
event.dispose();
});
this._events = [];
return this;
};
/**
* Cancel scheduled state change events: i.e. "start" and "stop".
* @param {TimelinePosition} after The time after which to cancel the scheduled events.
* @return {Tone.Part} this
*/
Tone.Part.prototype.cancel = function(after){
after = this.toTicks(after);
this._forEach(function(event){
event.cancel(after);
});
this._state.cancel(after);
return this;
};
/**
* Iterate over all of the events
* @param {Function} callback
* @param {Object} ctx The context
* @private
*/
Tone.Part.prototype._forEach = function(callback, ctx){
ctx = this.defaultArg(ctx, this);
for (var i = this._events.length - 1; i >= 0; i--){
var e = this._events[i];
if (e instanceof Tone.Part){
e._forEach(callback, ctx);
} else {
callback.call(ctx, e);
}
}
return this;
};
/**
* Set the attribute of all of the events
* @param {String} attr the attribute to set
* @param {*} value The value to set it to
* @private
*/
Tone.Part.prototype._setAll = function(attr, value){
this._forEach(function(event){
event[attr] = value;
});
};
/**
* Internal tick method
* @param {Number} time The time of the event in seconds
* @private
*/
Tone.Part.prototype._tick = function(time, value){
if (!this.mute){
this.callback(time, value);
}
};
/**
* Determine if the event should be currently looping
* given the loop boundries of this Part.
* @param {Tone.Event} event The event to test
* @private
*/
Tone.Part.prototype._testLoopBoundries = function(event){
if (event.startOffset < this._loopStart || event.startOffset >= this._loopEnd){
event.cancel(0);
} else {
//reschedule it if it's stopped
if (event.state === Tone.State.Stopped){
this._restartEvent(event);
}
}
};
/**
* The probability of the notes being triggered.
* @memberOf Tone.Part#
* @type {NormalRange}
* @name probability
*/
Object.defineProperty(Tone.Part.prototype, "probability", {
get : function(){
return this._probability;
},
set : function(prob){
this._probability = prob;
this._setAll("probability", prob);
}
});
/**
* If set to true, will apply small random variation
* to the callback time. If the value is given as a time, it will randomize
* by that amount.
* @example
* event.humanize = true;
* @type {Boolean|Time}
* @name humanize
*/
Object.defineProperty(Tone.Part.prototype, "humanize", {
get : function(){
return this._humanize;
},
set : function(variation){
this._humanize = variation;
this._setAll("humanize", variation);
}
});
/**
* If the part should loop or not
* between Tone.Part.loopStart and
* Tone.Part.loopEnd. An integer
* value corresponds to the number of
* loops the Part does after it starts.
* @memberOf Tone.Part#
* @type {Boolean|Positive}
* @name loop
* @example
* //loop the part 8 times
* part.loop = 8;
*/
Object.defineProperty(Tone.Part.prototype, "loop", {
get : function(){
return this._loop;
},
set : function(loop){
this._loop = loop;
this._forEach(function(event){
event._loopStart = this._loopStart;
event._loopEnd = this._loopEnd;
event.loop = loop;
this._testLoopBoundries(event);
});
}
});
/**
* The loopEnd point determines when it will
* loop if Tone.Part.loop is true.
* @memberOf Tone.Part#
* @type {TransportTime}
* @name loopEnd
*/
Object.defineProperty(Tone.Part.prototype, "loopEnd", {
get : function(){
return Tone.TransportTime(this._loopEnd, "i").toNotation();
},
set : function(loopEnd){
this._loopEnd = this.toTicks(loopEnd);
if (this._loop){
this._forEach(function(event){
event.loopEnd = loopEnd;
this._testLoopBoundries(event);
});
}
}
});
/**
* The loopStart point determines when it will
* loop if Tone.Part.loop is true.
* @memberOf Tone.Part#
* @type {TransportTime}
* @name loopStart
*/
Object.defineProperty(Tone.Part.prototype, "loopStart", {
get : function(){
return Tone.TransportTime(this._loopStart, "i").toNotation();
},
set : function(loopStart){
this._loopStart = this.toTicks(loopStart);
if (this._loop){
this._forEach(function(event){
event.loopStart = this.loopStart;
this._testLoopBoundries(event);
});
}
}
});
/**
* The playback rate of the part
* @memberOf Tone.Part#
* @type {Positive}
* @name playbackRate
*/
Object.defineProperty(Tone.Part.prototype, "playbackRate", {
get : function(){
return this._playbackRate;
},
set : function(rate){
this._playbackRate = rate;
this._setAll("playbackRate", rate);
}
});
/**
* The number of scheduled notes in the part.
* @memberOf Tone.Part#
* @type {Positive}
* @name length
* @readOnly
*/
Object.defineProperty(Tone.Part.prototype, "length", {
get : function(){
return this._events.length;
}
});
/**
* Clean up
* @return {Tone.Part} this
*/
Tone.Part.prototype.dispose = function(){
this.removeAll();
this._state.dispose();
this._state = null;
this.callback = null;
this._events = null;
return this;
};
return Tone.Part;
});
| mit |
Xenapto/resque-rate_limited | spec/spec_helper.rb | 505 | # Configure Simplecov and Coveralls
unless ENV['NO_SIMPLECOV']
require 'simplecov'
require 'coveralls'
SimpleCov.start { add_filter '/spec/' }
Coveralls.wear! if ENV['COVERALLS_REPO_TOKEN']
end
require 'resque/rate_limited'
RSpec.configure do |_config|
RedisClassy.redis = Redis.new(db: 15) # Use database 15 for testing so we don't accidentally step on your real data.
abort 'Redis database 15 not empty! If you are sure, run "rake flushdb" beforehand.' unless RedisClassy.keys.empty?
end
| mit |
DesertBot/DesertBot | desertbot/modules/urlfollow/Wikipedia.py | 1147 | """
@date: 2021-02-06
@author: HelleDaryd
"""
import urllib.parse
from twisted.plugin import IPlugin
from zope.interface import implementer
from desertbot.message import IRCMessage
from desertbot.moduleinterface import IModule
from desertbot.modules.commandinterface import BotCommand
import re2 as re
WIKIPEDIA_URL_RE = re.compile(r"(?i)en\.(?:m.)?wikipedia\.org/wiki/(?P<title>[^#\s]+)(?:#(?P<section>\S+))?")
@implementer(IPlugin, IModule)
class Wikipedia(BotCommand):
def actions(self):
return super(Wikipedia, self).actions() + [('urlfollow', 2, self.follow)]
def help(self, query):
return 'Automatic module that follows English Wikipedia URLs'
def follow(self, _: IRCMessage, url: str) -> [str, None]:
match = WIKIPEDIA_URL_RE.search(url)
if not match:
return
title = urllib.parse.unquote(match.group('title'))
section = urllib.parse.unquote(match.group('section') or "")
response = self.bot.moduleHandler.runActionUntilValue("wikipedia", title, section)
if response:
return str(response), url
return
wikipedia = Wikipedia()
| mit |
pjfanning/sorm | src/test/scala/sorm/test/features/RegexTest.scala | 846 | package sorm.test.features
import org.scalatest._
import sorm.Entity
import RegexTest._
import sorm.core.DbType
import sorm.test.MultiInstanceSuite
@org.junit.runner.RunWith(classOf[junit.JUnitRunner])
class RegexTest extends FunSuite with Matchers with MultiInstanceSuite {
def entities = Set() + Entity[User]()
override def dbTypes = DbType.H2 :: DbType.Mysql :: DbType.Postgres :: Nil
instancesAndIds foreach { case (db, dbId) =>
val a1 = db.save(User("abc1"))
val a2 = db.save(User("abc2"))
val a3 = db.save(User("abc3"))
test(dbId + " - regex"){
db.query[User].whereRegex("fullname", "^abc").count().should(equal(3))
}
test(dbId + " - not regex"){
db.query[User].whereNotRegex("fullname", "^abc1").count().should(equal(2))
}
}
}
object RegexTest {
case class User(fullname: String)
} | mit |
alinous-core/alinous-elastic-db | lib/src_java/java.io/FilterInputStream.cpp | 2277 | #include "include/global.h"
#include "java.io/FilterInputStream.h"
namespace java {namespace io {
bool FilterInputStream::__init_done = __init_static_variables();
bool FilterInputStream::__init_static_variables(){
Java2CppSystem::getSelf();
ThreadContext* ctx = ThreadContext::newThreadContext();
{
GCNotifier __refobj1(ctx, __FILEW__, __LINE__, L"FilterInputStream", L"__init_static_variables");
}
ctx->localGC();
delete ctx;
return true;
}
FilterInputStream::FilterInputStream(InputStream* in, ThreadContext* ctx) throw() : IObject(ctx), InputStream(ctx), in(nullptr)
{
__GC_MV(this, &(this->in), in, InputStream);
}
void FilterInputStream::__construct_impl(InputStream* in, ThreadContext* ctx) throw()
{
__GC_MV(this, &(this->in), in, InputStream);
}
FilterInputStream::~FilterInputStream() throw()
{
ThreadContext *ctx = ThreadContext::getCurentContext();
if(ctx != nullptr){ctx->incGcDenial();}
__releaseRegerences(false, ctx);
if(ctx != nullptr){ctx->decGcDenial();}
}
void FilterInputStream::__releaseRegerences(bool prepare, ThreadContext* ctx) throw()
{
ObjectEraser __e_obj1(ctx, __FILEW__, __LINE__, L"FilterInputStream", L"~FilterInputStream");
__e_obj1.add(this->in, this);
in = nullptr;
if(!prepare){
return;
}
InputStream::__releaseRegerences(true, ctx);
}
int FilterInputStream::available(ThreadContext* ctx)
{
return in->available(ctx);
}
void FilterInputStream::close(ThreadContext* ctx)
{
in->close(ctx);
}
void FilterInputStream::mark(int readlimit, ThreadContext* ctx) throw()
{
in->mark(readlimit, ctx);
}
bool FilterInputStream::markSupported(ThreadContext* ctx) throw()
{
return in->markSupported(ctx);
}
int FilterInputStream::read(ThreadContext* ctx)
{
return in->read(ctx);
}
int FilterInputStream::read(IArrayObjectPrimitive<char>* buffer, ThreadContext* ctx)
{
return read(buffer, 0, buffer->length, ctx);
}
int FilterInputStream::read(IArrayObjectPrimitive<char>* buffer, int offset, int count, ThreadContext* ctx)
{
return in->read(buffer, offset, count, ctx);
}
void FilterInputStream::reset(ThreadContext* ctx)
{
in->reset(ctx);
}
long long FilterInputStream::skip(long long count, ThreadContext* ctx)
{
return in->skip(count, ctx);
}
void FilterInputStream::__cleanUp(ThreadContext* ctx){
}
}}
| mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb | 287 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure end
module Azure::Cosmosdb end
module Azure::Cosmosdb::Mgmt end
module Azure::Cosmosdb::Mgmt::V2019_12_12 end
| mit |
FireB1ack/ZhiHuiBeiJing | ZhiHuiBeiJing/app/src/main/java/com/fireblack/zhihuibeijing/base/menudetail/InteractMenuDetailPager.java | 869 | package com.fireblack.zhihuibeijing.base.menudetail;
import android.app.Activity;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import com.fireblack.zhihuibeijing.base.BaseMenuDetailPager;
/**
* 菜单详情页-互动
* Created by ChengHao on 2016/7/19.
*/
public class InteractMenuDetailPager extends BaseMenuDetailPager{
public InteractMenuDetailPager(Activity activity) {
super(activity);
}
@Override
public View initViews() {
TextView textView = new TextView(mActivity);
textView.setText("菜单详情页-互动");
textView.setTextColor(Color.RED);
textView.setTextSize(25);
textView.setGravity(Gravity.CENTER);
return textView;
}
@Override
public void initData() {
super.initData();
}
}
| mit |
stefchrys/dores | src/Front/FrontBundle/Form/ContactType.php | 1561 | <?php
namespace Front\FrontBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ContactType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('name','text',array(
'attr' =>array('class' => 'form-control','placeholder' => 'Votre Nom'),
'label' => false
));
$builder->add('email', 'email',array(
'attr' =>array('class' => 'form-control','placeholder' => 'Votre Email'),
'label' => false
));
$builder->add('subject','text',array(
'attr' =>array('class' => 'form-control','placeholder' => 'Sujet'),
'label' => false
));
$builder->add('body', 'textarea',array(
'attr' =>array('class' => 'form-control','placeholder' => 'Votre Texte'),
'label' => false
));
$builder->add('capcha', 'text',array(
'attr' =>array('class' => 'form-control','placeholder' => 'Quel jour de la semaine sommes nous?'),
'label' => false
));
}
/**
* @param OptionsResolverInterface $resolver
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Front\FrontBundle\Entity\Contact'
));
}
/**
* @return string
*/
public function getName()
{
return 'front_frontbundle_contact';
}
} | mit |
bellrichm/weather | api/src/BellRichM.Weather.Api/Repositories/IConditionRepository.cs | 4360 | using BellRichM.Weather.Api.Data;
using BellRichM.Weather.Api.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace BellRichM.Weather.Api.Repositories
{
/// <summary>
/// The condition repository.
/// </summary>
public interface IConditionRepository
{
/// <summary>
/// Get the condition for years.
/// </summary>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of years to return.</param>
/// <returns>The <see cref="MinMaxCondition"/>.</returns>
Task<IEnumerable<MinMaxCondition>> GetYear(int offset, int limit);
/// <summary>
/// Get the condition for detail for an hour.
/// </summary>
/// <param name="year">The year.</param>
/// <param name="month">The mont.</param>
/// <param name="day">The day.</param>
/// <param name="hour">The hour.</param>
/// <returns>The <see cref="MinMaxCondition"/>.</returns>
Task<MinMaxCondition> GetHourDetail(int year, int month, int day, int hour);
/// <summary>
/// Gets the total count of year records.
/// </summary>
/// <returns>The count.</returns>
Task<int> GetYearCount();
/// <summary>
/// Gets the total count of 'day' records.
/// </summary>
/// <returns>The count.</returns>
Task<int> GetDayCount();
/// <summary>
/// Gets the min/max conditions by minute.
/// </summary>
/// <param name="dayOfYear">The day of the year to get data for.</param>
/// <param name="startHour">The hour to start at.</param>
/// <param name="endHour">The hour to end at.</param>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of minutes to return.</param>
/// <returns>The <see cref="MinMaxGroupPage"/>.</returns>
Task<IEnumerable<MinMaxGroup>> GetMinMaxConditionsByMinute(int dayOfYear, int startHour, int endHour, int offset, int limit);
/// <summary>
/// Gets the min/max conditions by hour.
/// </summary>
/// <param name="startDayOfYear">The hour to start at.</param>
/// <param name="endDayOfYear">The hour to end at.</param>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of hours to return.</param>
/// <returns>The <see cref="MinMaxGroupPage"/>.</returns>
Task<IEnumerable<MinMaxGroup>> GetMinMaxConditionsByHour(int startDayOfYear, int endDayOfYear, int offset, int limit);
/// <summary>
/// Gets the min/max conditions by day.
/// </summary>
/// <param name="startDayOfYear">The day of the year to start at.</param>
/// <param name="endDayOfYear">The day of the year to end at.</param>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of days to return.</param>
/// <returns>The <see cref="MinMaxGroup"/>.</returns>
Task<IEnumerable<MinMaxGroup>> GetMinMaxConditionsByDay(int startDayOfYear, int endDayOfYear, int offset, int limit);
/// <summary>
/// Gets the min/max conditions by week.
/// </summary>
/// <param name="startWeekOfYear">The week of the year to start at.</param>
/// <param name="endWeekOfYear">The week of the year to end at.</param>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of weeks to return.</param>
/// <returns>The <see cref="MinMaxGroupPage"/>.</returns>
Task<IEnumerable<MinMaxGroup>> GetMinMaxConditionsByWeek(int startWeekOfYear, int endWeekOfYear, int offset, int limit);
/// <summary>
/// Gets the conditions grouped (averaged) by day and within a time period.
/// </summary>
/// <param name="offset">The starting offset.</param>
/// <param name="limit">The maximum number of years to return.</param>
/// <param name="timePeriodModel">The time period.</param>
/// <returns>The observations.</returns>
Task<IEnumerable<Condition>> GetConditionsByDay(int offset, int limit, TimePeriodModel timePeriodModel);
}
}
| mit |
andalex/fall-2016-portfolio | app/services/scroll.js | 2039 | export default function(angularModule) {
angularModule.service('anchorSmoothScroll', function(){
this.scrollTo = function(eID) {
// This scrolling function
// is from http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript
var startY = currentYPosition();
var stopY = elmYPosition(eID);
var distance = stopY > startY ? stopY - startY : startY - stopY;
if (distance < 100) {
scrollTo(0, stopY); return;
}
var speed = Math.round(distance / 100);
if (speed >= 20) speed = 20;
var step = Math.round(distance / 25);
var leapY = stopY > startY ? startY + step : startY - step;
var timer = 0;
if (stopY > startY) {
for ( var i=startY; i<stopY; i+=step ) {
setTimeout("window.scrollTo(0, "+leapY+")", timer * speed);
leapY += step; if (leapY > stopY) leapY = stopY; timer++;
} return;
}
for ( var i=startY; i>stopY; i-=step ) {
setTimeout("window.scrollTo(0, "+leapY+")", timer * speed);
leapY -= step; if (leapY < stopY) leapY = stopY; timer++;
}
function currentYPosition() {
// Firefox, Chrome, Opera, Safari
if (self.pageYOffset) return self.pageYOffset;
// Internet Explorer 6 - standards mode
if (document.documentElement && document.documentElement.scrollTop)
return document.documentElement.scrollTop;
// Internet Explorer 6, 7 and 8
if (document.body.scrollTop) return document.body.scrollTop;
return 0;
}
function elmYPosition(eID) {
var elm = document.getElementById(eID);
var y = elm.offsetTop;
var node = elm;
while (node.offsetParent && node.offsetParent != document.body) {
node = node.offsetParent;
y += node.offsetTop;
} return y;
}
};
});
}
| mit |
remomueller/slice | db/migrate/20181210193552_create_ae_documents.rb | 494 | class CreateAeDocuments < ActiveRecord::Migration[5.2]
def change
create_table :ae_documents do |t|
t.bigint :project_id
t.bigint :ae_adverse_event_id
t.bigint :user_id
t.string :file
t.string :filename
t.string :content_type
t.bigint :byte_size, default: 0, null: false
t.timestamps
t.index :project_id
t.index :ae_adverse_event_id
t.index :user_id
t.index :content_type
t.index :byte_size
end
end
end
| mit |
gabrielnau/capybara-pdiff | lib/capybara/pdiff/rspec/matchers.rb | 1334 | module Capybara
module Pdiff
module RSpecMatchers
class StayTheSame
def matches?(actual)
# should lookup automatically for the baseline
# then compare actual and baseline
end
def description
"stay the same as the matching baseline (TODO: give the reference here)"
end
end
def stay_the_same
StayTheSame.new
end
class BeTheSameAs
def initialize(expected)
@expected = expected
end
def matches?(actual)
diff = Comparator.new(actual, @expected)
diff.matches?
end
def does_not_match?(actual)
true
end
def base_message
"expected to visualy match #{@expected.inspect}"
end
def failure_message
base_message
end
def negative_failure_message
base_message.gsub(/match/, 'differ from')
end
def failure_message_for_should
base_message
end
def failure_message_for_should_not
base_message.gsub(/match/, 'differ from')
end
def description
"be the same as the given image"
end
end
def be_the_same_as(expected)
BeTheSameAs.new(expected)
end
end
end
end | mit |
EcoGame/Eco | src/eco/game/NoiseSampler.java | 1177 | package eco.game;
/**
* This class samples multiple octaves of open simplex noise, and blends them
* together.
*
* @author phil
*/
public class NoiseSampler {
private static int octaves = 8;
private static OpenSimplexNoise simplexNoise;
private static int noiseScale;
private static float amplitude = 0.5f;
private static float persistance = 0.5f;
public static float getNoise(float x, float y) {
float[] noise = new float[octaves];
for (int i = 0; i < octaves; i++) {
noise[i] = (float) simplexNoise.eval((x * Math.pow(2, i))
/ noiseScale, (y * Math.pow(2, i)) / noiseScale);
}
float result = 0.0f;
float totalAmplitude = 0.0f;
float amp = amplitude;
for (int i = 0; i < octaves; i++) {
totalAmplitude += amp;
result += noise[i] * amp;
amp *= persistance;
}
return result / totalAmplitude;
}
public static void initSimplexNoise(int seed) {
simplexNoise = new OpenSimplexNoise(seed);
}
public static void setNoiseScale(int scale) {
noiseScale = scale * 2;
}
}
| mit |
lucaseras/pokedex | config/routes.rb | 1629 | Pokedex::Application.routes.draw do
resources :pokemons
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
end
| mit |
rivr/rivr | src/qt/locale/bitcoin_id_ID.ts | 113887 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Rivr</source>
<translation>Tentang Rivr</translation>
</message>
<message>
<location line="+39"/>
<source><b>Rivr</b> version</source>
<translation><b>Rivr</b> versi</translation>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The Rivr developers</source>
<translation>Copyright © 2009-2014 para pengembang Bitcoin
Copyright © 2012-2014 para pengembang NovaCoin
Copyright © 2014 para pengembang Rivr</translation>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Buku Alamat</translation>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Klik dua-kali untuk mengubah alamat atau label</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Buat alamat baru</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Salin alamat yang dipilih ke clipboard</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Alamat Baru</translation>
</message>
<message>
<location line="-46"/>
<source>These are your Rivr addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>Ini adalah alamat Rivr Anda untuk menerima pembayaran. Anda dapat memberikan alamat yang berbeda untuk setiap pengirim, sehingga Anda dapat melacak siapa yang membayar Anda.</translation>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Salin Alamat</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Unjukkan &Kode QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Rivr address</source>
<translation>Masukan pesan untuk membuktikan bahwa anda telah mempunyai adress Rivr</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Sign & Pesan</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Menghapus alamat yang saat ini dipilih dari daftar yang tersedia</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified Rivr address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Hapus</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Salin &Label</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Ubah</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>File CSV (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Penulisan data ke file gagal %1</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Alamat</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(tidak ada label)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Dialog Kata kunci</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Masukkan kata kunci</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Kata kunci baru</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Ulangi kata kunci baru</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation>Hanya untuk staking</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Masukkan kata kunci baru ke dompet.<br/>Mohon gunakan kata kunci dengan <b>10 karakter atau lebih dengan acak</b>, atau <b>delapan kata atau lebih</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Meng-enkripsikan dompet</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Operasi ini memerlukan kata kunci dompet Anda untuk membuka dompet ini.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Buka dompet</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Operasi ini memerlukan kata kunci dompet Anda untuk mendekripsi dompet ini.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Men-dekripsikan dompet</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Ubah kata kunci</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Masukkan kata kunci lama dan baru ke dompet ini.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Menkonfirmasi enkripsi dompet</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Apakah Anda yakin untuk mengenkripsi dompet Anda?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Peringatan: tombol Caps Lock aktif!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Dompet terenkripsi</translation>
</message>
<message>
<location line="-58"/>
<source>Rivr will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation>Rivr akan ditutup untuk menyelesaikan proses enkripsi. Ingat bahwa dompet Anda tidak bisa di lindungi dengan enkripsi sepenuhny dari pencurian melalui infeksi malware di komputer Anda.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Enkripsi dompet gagal</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Enkripsi dompet gagal karena kesalahan internal. Dompet Anda tidak dienkripsi.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Kata kunci yang dimasukkan tidak cocok.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Gagal buka dompet</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Kata kunci yang dimasukkan untuk dekripsi dompet tidak cocok.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Dekripsi dompet gagal</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Passphrase dompet telah berhasil diubah.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>Pesan &penanda...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sinkronisasi dengan jaringan...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>&Kilasan</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Tampilkan kilasan umum dari dompet</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transaksi</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Jelajah sejarah transaksi</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation>&Buku Alamat</translation>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Mengedit daftar alamat-alamat dan label</translation>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation>&Menerima koin</translation>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Tampilkan daftar alamat untuk menerima pembayaran</translation>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation>&Kirim koin</translation>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>K&eluar</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Keluar dari aplikasi</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Rivr</source>
<translation>Tunjukkan informasi tentang Rivr</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Mengenai &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Tampilkan informasi mengenai Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Pilihan...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>%Enkripsi Dompet...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Cadangkan Dompet...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Ubah Kata Kunci...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation><numerusform>~%n blok yang tersisah</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation>%1 dari %2 telah diunduh, blok dari sejarah transaksi (%3% selesai).</translation>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation>&Ekspor...</translation>
</message>
<message>
<location line="-62"/>
<source>Send coins to a Rivr address</source>
<translation>Kirim koin ke alamat Rivr</translation>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for Rivr</source>
<translation>Memodifikasi opsi aturan untuk Rivr</translation>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation>Mengekspor data dari tab saat ini ke dalam file</translation>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation>Mengenkripsi atau mendekripsi dompet</translation>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Cadangkan dompet ke lokasi lain</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Ubah kata kunci yang digunakan untuk enkripsi dompet</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>&Jendela Debug</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Buka konsol debug dan diagnosa</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Verifikasi pesan...</translation>
</message>
<message>
<location line="-200"/>
<source>Rivr</source>
<translation>Rivr (CoinHitam)</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Dompet</translation>
</message>
<message>
<location line="+178"/>
<source>&About Rivr</source>
<translation>&Tentang Rivr</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Tunjukkan / Sembunyikan</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation>Buka Dompet</translation>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation>&Kunci Dompet</translation>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation>Kunci dompet</translation>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Berkas</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Pengaturan</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Bantuan</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Baris tab</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation>Baris tab</translation>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>Rivr client</source>
<translation>Klien Rivr</translation>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to Rivr network</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation>&Buka Dompet</translation>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation><numerusform>%n menit yang lalu</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation><numerusform>%n jam yang lalu</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation><numerusform>%n hari yang lalu</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Terbaru</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Menyusul...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transaksi terkirim</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transaksi diterima</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Tanggal: %1
Jumlah: %2
Jenis: %3
Alamat: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid Rivr address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Dompet saat ini <b>terenkripsi</b> dan <b>terbuka</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Dompet saat ini <b>terenkripsi</b> dan <b>terkunci</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Back-up Gagal</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation><numerusform>%n detik</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation><numerusform>%n menit</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n jam</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n hari</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation>Lagi tidak staking</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. Rivr can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Notifikasi Jaringan</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Jumlah:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Jumlah:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioritas:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Biaya:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>tidak</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Setelah biaya:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Perubahan:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>mode Daftar</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Jumlah</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Alamat</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Tanggal</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Terkonfirmasi</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioritas</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Salin alamat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Salin label</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Salin jumlah</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Salikan jumlah</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Salinkan Biaya</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Salinkan setelah biaya</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Salinkan bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Salinkan prioritas</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Salinkan output rendah</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Salinkan perubahan</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>tertinggi</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>tinggi</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>menengah-tinggi</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>menengah</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>rendah-menengah</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>rendah</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>terendah</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation>DUST</translation>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>ya</translation>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(tidak ada label)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>perubahan dari %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(perubahan)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Ubah Alamat</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Label</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Alamat</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Alamat menerima baru</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Alamat mengirim baru</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Ubah alamat menerima</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Ubah alamat mengirim</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Alamat yang dimasukkan "%1" sudah ada di dalam buku alamat.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Rivr address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Tidak dapat membuka dompet.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Pembuatan kunci baru gagal.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>Rivr-Qt</source>
<translation>Rivr-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>versi</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Penggunaan:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Pilihan</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Utama</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Bayar &biaya transaksi</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Rivr after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Rivr on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Jaringan</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Rivr client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Petakan port dengan &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Rivr network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>IP Proxy:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Port:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Port proxy (cth. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>Versi &SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Versi SOCKS proxy (cth. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Jendela</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Hanya tampilkan ikon tray setelah meminilisasi jendela</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Meminilisasi ke tray daripada taskbar</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&eminilisasi saat tutup</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Tampilan</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Bahasa Antarmuka Pengguna:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Rivr.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unit untuk menunjukkan jumlah:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show Rivr addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Tampilkan alamat dalam daftar transaksi</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&YA</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Batal</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>standar</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation>Peringatan</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Rivr.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Alamat proxy yang diisi tidak valid.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulir</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Rivr network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation>Stake:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Dompet</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Total:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>Total saldo anda saat ini</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transaksi sebelumnya</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>tidak tersinkron</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Permintaan Pembayaran</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Jumlah:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Label:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Pesan:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Simpan Sebagai...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Simpan Code QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>Gambar PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nama Klien</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>T/S</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versi Klien</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informasi</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Menggunakan versi OpenSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Waktu nyala</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Jaringan</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Jumlah hubungan</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Rantai blok</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Jumlah blok terkini</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Perkiraan blok total</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Waktu blok terakhir</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Buka</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Rivr-Qt help message to get a list with possible Rivr command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>&Tunjukkan</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konsol</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Tanggal pembuatan</translation>
</message>
<message>
<location line="-104"/>
<source>Rivr - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Rivr Core</source>
<translation>Inti Rivr</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Rivr debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Bersihkan konsol</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the Rivr RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Gunakan panah keatas dan kebawah untuk menampilkan sejarah, dan <b>Ctrl-L</b> untuk bersihkan layar.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Ketik <b>help</b> untuk menampilkan perintah tersedia.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Kirim Koin</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Jumlah dana dibutuhkan tidak mencukupi!</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Jumlah:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation>0</translation>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Jumlah:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BC</source>
<translation>123.456 BC {0.00 ?}</translation>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioritas:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation>menengah</translation>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Biaya:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Output Rendah:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation>tidak</translation>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Setelah Biaya:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation>Perubahan</translation>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Kirim ke beberapa penerima sekaligus</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Hapus %Semua</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Konfirmasi aksi pengiriman</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a Rivr address (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Salin jumlah</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Konfirmasi pengiriman koin</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Jumlah yang dibayar harus lebih besar dari 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Jumlah melebihi saldo Anda.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Kelebihan total saldo Anda ketika biaya transaksi %1 ditambahkan.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Ditemukan alamat ganda, hanya dapat mengirim ke tiap alamat sekali per operasi pengiriman.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid Rivr address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(tidak ada label)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>J&umlah:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Kirim &Ke:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Masukkan label bagi alamat ini untuk menambahkannya ke buku alamat Anda</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Label:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+J</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Tempel alamat dari salinan</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+B</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Rivr address (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+J</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Tempel alamat dari salinan</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+B</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Rivr address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Hapus %Semua</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Rivr address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Rivr address (e.g. KU5DJbPP6QinKJgj9nFPqioixKAV8iLgkW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter Rivr signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Alamat yang dimasukkan tidak sesuai.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Silahkan periksa alamat dan coba lagi.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Buka hingga %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/tidak terkonfirmasi</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 konfirmasi</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Status</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Tanggal</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Dari</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Untuk</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Pesan:</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 320 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transaksi</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Jumlah</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, belum berhasil disiarkan</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>tidak diketahui</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Rincian transaksi</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Jendela ini menampilkan deskripsi rinci dari transaksi tersebut</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Tanggal</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Jenis</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Alamat</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Jumlah</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Buka hingga %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Terkonfirmasi (%1 konfirmasi)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Blok ini tidak diterima oleh node lainnya dan kemungkinan tidak akan diterima!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Terbuat tetapi tidak diterima</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Diterima dengan</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Diterima dari</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Terkirim ke</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pembayaran ke Anda sendiri</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Tertambang</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(t/s)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Status transaksi. Arahkan ke bagian ini untuk menampilkan jumlah konfrimasi.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Tanggal dan waktu transaksi tersebut diterima.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Jenis transaksi.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Alamat tujuan dari transaksi.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Jumlah terbuang dari atau ditambahkan ke saldo.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Semua</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hari ini</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Minggu ini</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Bulan ini</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Bulan kemarin</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Tahun ini</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Jarak...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>DIterima dengan</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Terkirim ke</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Ke Anda sendiri</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Ditambang</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Lainnya</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Masukkan alamat atau label untuk mencari</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Jumlah min</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Salin alamat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Salin label</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Salin jumlah</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Ubah label</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Tampilkan rincian transaksi</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Berkas CSV (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Terkonfirmasi</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Tanggal</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Jenis</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Label</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Alamat</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Jumlah</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Jarak:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>ke</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>Rivr version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Penggunaan:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or rivrcoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Daftar perintah</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Dapatkan bantuan untuk perintah</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Pilihan:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: rivrcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: rivrcoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Tentukan direktori data</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Atur ukuran tembolok dalam megabyte (standar: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Mengatur hubungan paling banyak <n> ke peer (standar: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Hubungkan ke node untuk menerima alamat peer, dan putuskan</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Tentukan alamat publik Anda sendiri</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Batas untuk memutuskan peer buruk (standar: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Jumlah kedua untuk menjaga peer buruk dari hubung-ulang (standar: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Menerima perintah baris perintah dan JSON-RPC</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Berjalan dibelakang sebagai daemin dan menerima perintah</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Gunakan jaringan uji</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Rivr will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Kirim info lacak/debug ke konsol sebaliknya dari berkas debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Nama pengguna untuk hubungan JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Kata sandi untuk hubungan JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=rivrcoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Rivr Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Izinkan hubungan JSON-RPC dari alamat IP yang ditentukan</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Kirim perintah ke node berjalan pada <ip> (standar: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Menjalankan perintah ketika perubahan blok terbaik (%s dalam cmd digantikan oleh hash blok)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Perbarui dompet ke format terbaru</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Kirim ukuran kolam kunci ke <n> (standar: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Pindai ulang rantai-blok untuk transaksi dompet yang hilang</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Gunakan OpenSSL (https) untuk hubungan JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Berkas sertifikat server (standar: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Kunci pribadi server (standar: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation>Eror: Dompet hanya di-buka hanya untuk staking, transaksi gagal dilaksanakan</translation>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Pesan bantuan ini</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. Rivr is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Rivr</source>
<translation>Rivr</translation>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Tidak dapat mengikat ke %s dengan komputer ini (ikatan gagal %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Izinkan peninjauan DNS untuk -addnote, -seednode dan -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Memuat alamat...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Gagal memuat wallet.dat: Dompet rusak</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of Rivr</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart Rivr to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Gagal memuat wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Alamat -proxy salah: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Jaringan tidak diketahui yang ditentukan dalam -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Diminta versi proxy -socks tidak diketahui: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Tidak dapat menyelesaikan alamat -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Tidak dapat menyelesaikan alamat -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Jumlah salah untuk -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation>Mengirim...</translation>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Jumlah salah</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Saldo tidak mencukupi</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Memuat indeks blok...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Tambahkan node untuk dihubungkan dan upaya untuk menjaga hubungan tetap terbuka</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. Rivr is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Memuat dompet...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Tidak dapat menurunkan versi dompet</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation>initialisasi keypool gagal</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Tidak dapat menyimpan alamat standar</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Memindai ulang...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Memuat selesai</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Gunakan pilihan %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Gagal</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Anda harus mengatur rpcpassword=<kata sandi> dalam berkas konfigurasi:
%s
Jika berkas tidak ada, buatlah dengan permisi berkas hanya-dapat-dibaca-oleh-pemilik.</translation>
</message>
</context>
</TS> | mit |
crillab/gophersat | bf/parser.go | 5523 | package bf
import (
"fmt"
"go/token"
"io"
"text/scanner"
)
type parser struct {
s scanner.Scanner
eof bool // Have we reached eof yet?
token string // Last token read
}
// Parse parses the formula from the given input Reader.
// It returns the corresponding Formula.
// Formulas are written using the following operators (from lowest to highest priority) :
//
// - for a conjunction of clauses ("and"), the ";" operator
//
// - for an equivalence, the "=" operator,
//
// - for an implication, the "->" operator,
//
// - for a disjunction ("or"), the "|" operator,
//
// - for a conjunction ("and"), the "&" operator,
//
// - for a negation, the "^" unary operator.
//
// - for an exactly-one constraint, names of variables between curly braces, eg "{a, b, c}" to specify
// exactly one of the variable a, b or c must be true.
//
// Parentheses can be used to group subformulas.
// Note there are two ways to write conjunctions, one with a low priority, one with a high priority.
// The low-priority one is useful when the user wants to describe a whole formula as a set of smaller formulas
// that must all be true.
func Parse(r io.Reader) (Formula, error) {
var s scanner.Scanner
s.Init(r)
p := parser{s: s}
p.scan()
f, err := p.parseClause()
if err != nil {
return f, err
}
if !p.eof {
return nil, fmt.Errorf("expected EOF, found %q at %v", p.token, p.s.Pos())
}
return f, nil
}
func isOperator(token string) bool {
return token == "=" || token == "->" || token == "|" || token == "&" || token == ";"
}
func (p *parser) scan() {
p.eof = p.eof || (p.s.Scan() == scanner.EOF)
p.token = p.s.TokenText()
}
func (p *parser) parseClause() (f Formula, err error) {
if isOperator(p.token) {
return nil, fmt.Errorf("unexpected token %q at %s", p.token, p.s.Pos())
}
f, err = p.parseEquiv()
if err != nil {
return nil, err
}
if p.eof {
return f, nil
}
if p.token == ";" {
p.scan()
if p.eof {
return f, nil
}
f2, err := p.parseClause()
if err != nil {
return nil, err
}
return And(f, f2), nil
}
return f, nil
}
func (p *parser) parseEquiv() (f Formula, err error) {
if p.eof {
return nil, fmt.Errorf("At position %v, expected expression, found EOF", p.s.Pos())
}
if isOperator(p.token) {
return nil, fmt.Errorf("unexpected token %q at %s", p.token, p.s.Pos())
}
f, err = p.parseImplies()
if err != nil {
return nil, err
}
if p.eof {
return f, nil
}
if p.token == "=" {
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
f2, err := p.parseEquiv()
if err != nil {
return nil, err
}
return Eq(f, f2), nil
}
return f, nil
}
func (p *parser) parseImplies() (f Formula, err error) {
f, err = p.parseOr()
if err != nil {
return nil, err
}
if p.eof {
return f, nil
}
if p.token == "-" {
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
if p.token != ">" {
return nil, fmt.Errorf("invalid token %q at %v", "-"+p.token, p.s.Pos())
}
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
f2, err := p.parseImplies()
if err != nil {
return nil, err
}
return Implies(f, f2), nil
}
return f, nil
}
func (p *parser) parseOr() (f Formula, err error) {
f, err = p.parseAnd()
if err != nil {
return nil, err
}
if p.eof {
return f, nil
}
if p.token == "|" {
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
f2, err := p.parseOr()
if err != nil {
return nil, err
}
return Or(f, f2), nil
}
return f, nil
}
func (p *parser) parseAnd() (f Formula, err error) {
f, err = p.parseNot()
if err != nil {
return nil, err
}
if p.eof {
return f, nil
}
if p.token == "&" {
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
f2, err := p.parseAnd()
if err != nil {
return nil, err
}
return And(f, f2), nil
}
return f, nil
}
func (p *parser) parseNot() (f Formula, err error) {
if isOperator(p.token) {
return nil, fmt.Errorf("unexpected token %q at %s", p.token, p.s.Pos())
}
if p.token == "^" {
p.scan()
if p.eof {
return nil, fmt.Errorf("unexpected EOF")
}
f, err = p.parseNot()
if err != nil {
return nil, err
}
return Not(f), nil
}
f, err = p.parseBasic()
if err != nil {
return nil, err
}
return f, nil
}
func (p *parser) parseBasic() (f Formula, err error) {
if isOperator(p.token) || p.token == ")" {
return nil, fmt.Errorf("unexpected token %q at %s", p.token, p.s.Pos())
}
if p.token == "(" {
p.scan()
f, err = p.parseEquiv()
if err != nil {
return nil, err
}
if p.eof {
return nil, fmt.Errorf("expected closing parenthesis, found EOF at %s", p.s.Pos())
}
if p.token != ")" {
return nil, fmt.Errorf("expected closing parenthesis, found %q at %s", p.token, p.s.Pos())
}
p.scan()
return f, nil
}
if p.token == "{" {
var vars []string
for p.token != "}" {
p.scan()
if p.eof {
return nil, fmt.Errorf("expected identifier, found EOF at %s", p.s.Pos())
}
if token.Lookup(p.token) != token.IDENT {
return nil, fmt.Errorf("expected variable name, found %q at %s", p.token, p.s.Pos())
}
vars = append(vars, p.token)
p.scan()
if p.eof {
return nil, fmt.Errorf("expected comma or closing brace, found EOF at %s", p.s.Pos())
}
if p.token != "}" && p.token != "," {
return nil, fmt.Errorf("expected comma or closing brace, found %q at %v", p.token, p.s.Pos())
}
}
p.scan()
return Unique(vars...), nil
}
defer p.scan()
return Var(p.token), nil
}
| mit |
peggyrayzis/react-native-create-bridge | __tests__/ios-swift.test.js | 3076 | import path from 'path';
const fileOperations = require('../src/file-operations');
const { readFile, parseFile } = fileOperations;
describe('iOS/Swift: UI Components', () => {
const templateName = 'TestModule';
const readDirPath = path.join(
__dirname,
'..',
'templates',
'ui-components',
'ios-swift',
);
it('creates a Template-Bridging-Header.h', async () => {
const fileData = await readFile('Template-Bridging-Header.h', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a Template.m', async () => {
const fileData = await readFile('Template.m', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a TemplateManager.swift', async () => {
const fileData = await readFile('TemplateManager.swift', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a TemplateView.swift', async () => {
const fileData = await readFile('TemplateView.swift', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
});
describe('iOS/Swift: Native Modules', () => {
const templateName = 'TestModule';
const readDirPath = path.join(
__dirname,
'..',
'templates',
'modules',
'ios-swift',
);
it('creates a Template-Bridging-Header.h', async () => {
const fileData = await readFile('Template-Bridging-Header.h', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a Template.m', async () => {
const fileData = await readFile('Template.m', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a Template.swift', async () => {
const fileData = await readFile('Template.swift', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
});
describe('iOS/Swift: Combined', () => {
const templateName = 'TestModule';
const readDirPath = path.join(
__dirname,
'..',
'templates',
'combined',
'ios-swift',
);
it('creates a Template-Bridging-Header.h', async () => {
const fileData = await readFile('Template-Bridging-Header.h', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a Template.m', async () => {
const fileData = await readFile('Template.m', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
it('creates a TemplateManager.swift', async () => {
const fileData = await readFile('TemplateManager.swift', readDirPath);
const parsedFile = parseFile(fileData, { templateName });
expect(parsedFile).toMatchSnapshot();
});
});
| mit |
SergeantSod/blame_gun | lib/blame_gun.rb | 269 | require "blame_gun/version"
require_relative "blame_gun/cli"
require_relative "blame_gun/statistics"
require_relative "blame_gun/factory"
require_relative "blame_gun/runner"
require_relative "blame_gun/composite_runner"
module BlameGun
# Your code goes here...
end
| mit |
Depechie/FormsCommunityToolkit | src/Effects/Effects.UWP/Effects/Entry/EntryRemoveBorder.cs | 973 | using Windows.UI.Xaml.Controls;
using Xamarin.Forms;
using Xamarin.Forms.Platform.UWP;
using RoutingEffects = FormsCommunityToolkit.Effects;
using PlatformEffects = FormsCommunityToolkit.Effects.UWP;
[assembly: ExportEffect(typeof(PlatformEffects.EntryRemoveBorder), nameof(RoutingEffects.EntryRemoveBorder))]
namespace FormsCommunityToolkit.Effects.UWP
{
public class EntryRemoveBorder : PlatformEffect
{
private Windows.UI.Xaml.Thickness _old;
protected override void OnAttached()
{
var textBox = Control as TextBox;
if (textBox == null)
return;
_old = textBox.BorderThickness;
textBox.BorderThickness = new Windows.UI.Xaml.Thickness(0);
}
protected override void OnDetached()
{
var textBox = Control as TextBox;
if (textBox == null)
return;
textBox.BorderThickness = _old;
}
}
} | mit |
mhkeller/indian-ocean | src/readers/readdir.js | 3454 | // Used internally by `readdir` functions to make more DRY
/* istanbul ignore next */
import fs from 'fs'
/* istanbul ignore next */
import queue from 'd3-queue/src/queue'
import matches from '../helpers/matches'
import identity from '../utils/identity'
import {joinPath} from '../utils/path'
export default function readdir (modeInfo, dirPath, opts_, cb) {
opts_ = opts_ || {}
var isAsync = modeInfo.async
// Convert to array if a string
opts_.include = strToArray(opts_.include)
opts_.exclude = strToArray(opts_.exclude)
if (opts_.skipHidden === true) {
const regex = /^\./
if (Array.isArray(opts_.exclude)) {
opts_.exclude.push(regex)
} else {
opts_.exclude = [regex]
}
}
// Set defaults if not provided
opts_.includeMatchAll = (opts_.includeMatchAll) ? 'every' : 'some'
opts_.excludeMatchAll = (opts_.excludeMatchAll) ? 'every' : 'some'
if (isAsync === true) {
fs.readdir(dirPath, function (err, files) {
if (err) {
throw err
}
filter(files, cb)
})
} else {
return filterSync(fs.readdirSync(dirPath))
}
function strToArray (val) {
if (val && !Array.isArray(val)) {
val = [val]
}
return val
}
function filterByType (file, cb) {
// We need the full path so convert it if it isn't already
var filePath = (opts_.fullPath) ? file : joinPath(dirPath, file)
if (isAsync === true) {
fs.stat(filePath, function (err, stats) {
var filtered = getFiltered(stats.isDirectory())
cb(err, filtered)
})
} else {
return getFiltered(fs.statSync(filePath).isDirectory())
}
function getFiltered (isDir) {
// Keep the two names for legacy reasons
if (opts_.skipDirectories === true || opts_.skipDirs === true) {
if (isDir) {
return false
}
}
if (opts_.skipFiles === true) {
if (!isDir) {
return false
}
}
return file
}
}
function filterByMatchers (files) {
var filtered = files.filter(function (fileName) {
var isExcluded
var isIncluded
// Don't include if matches exclusion matcher
if (opts_.exclude) {
isExcluded = opts_.exclude[opts_.excludeMatchAll](function (matcher) {
return matches(fileName, matcher)
})
if (isExcluded === true) {
return false
}
}
// Include if matches inclusion matcher, exclude if it doesn't
if (opts_.include) {
isIncluded = opts_.include[opts_.includeMatchAll](function (matcher) {
return matches(fileName, matcher)
})
return isIncluded
}
// Return true if it makes it to here
return true
})
// Prefix with the full path if that's what we asked for
if (opts_.fullPath === true) {
return filtered.map(function (fileName) {
return joinPath(dirPath, fileName)
})
}
return filtered
}
function filterSync (files) {
var filtered = filterByMatchers(files)
return filtered.map(function (file) {
return filterByType(file)
}).filter(identity)
}
function filter (files, cb) {
var filterQ = queue()
var filtered = filterByMatchers(files)
filtered.forEach(function (fileName) {
filterQ.defer(filterByType, fileName)
})
filterQ.awaitAll(function (err, namesOfType) {
cb(err, namesOfType.filter(identity))
})
}
}
| mit |
DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017 | ArraysAndMethodsExercises-Extended/21.TetrisDebug/Properties/AssemblyInfo.cs | 1406 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("_21.TetrisDebug")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("_21.TetrisDebug")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3417b7ce-701d-4f2f-9088-aa2716e7985a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
derdesign/protos | middleware/cookie_parser/response.js | 2194 |
/* Cookie Parser » Response extensions */
var app = protos.app,
http = require('http'),
slice = Array.prototype.slice,
OutgoingMessage = http.OutgoingMessage;
/**
Sets a cookie
@param {string} name
@param {string} value
@param {object} opts
@public
*/
OutgoingMessage.prototype.setCookie = function(name, val, opts) {
var pairs, removeCookie,
request = this.request;
app._loadCookies(request);
if (opts == null) opts = {};
pairs = [name + "=" + (encodeURIComponent(val))];
removeCookie = (typeof opts.expires == 'number') && opts.expires < 0;
if (opts.domain == null) opts.domain = app.cookieDomain || app.hostname;
if (opts.domain == 'localhost') opts.domain = null;
if (opts.path == null) opts.path = '/';
opts.expires = (typeof opts.expires == 'number' && opts.expires)
? new Date(Date.now() + (opts.expires*1000))
: null;
if (opts.domain != null) pairs.push("domain=" + opts.domain);
pairs.push("path=" + opts.path);
if (opts.expires != null) pairs.push("expires=" + (opts.expires.toUTCString()));
if (opts.httpOnly) pairs.push('httpOnly');
if (opts.secure) pairs.push('secure');
if (!removeCookie) request.cookies[name.toLowerCase()] = val;
return this.__setCookie.push(pairs.join('; '));
}
/**
Removes a cookie
@param {string} cookie
@public
*/
OutgoingMessage.prototype.removeCookie = function(name) {
if (this.request.cookies == null) app._loadCookies(this.request);
this.setCookie(name, null, {expires: -3600});
delete this.request.cookies[name.toLowerCase()];
}
/**
Removes several cookies
@param {array} cookies
@public
*/
OutgoingMessage.prototype.removeCookies = function() {
var names = slice.call(arguments, 0);
for (var i=0; i< names.length; i++) {
this.removeCookie(names[i]);
}
}
/**
Checks if cookie exists
@param {string} cookie
@return {boolean}
@public
*/
OutgoingMessage.prototype.hasCookie = function(cookie) {
return this.request.hasCookie(cookie);
}
/**
Gets a cookie value
@param {string} cookie
@returns {string}
@public
*/
OutgoingMessage.prototype.getCookie = function(cookie) {
return this.request.getCookie(cookie);
}
| mit |
hkdnet/komonjo | app.rb | 2794 | require 'sinatra'
require 'sinatra/reloader'
require 'slim'
require 'slim/include'
require 'compass'
require 'coffee-script'
require 'lib/mocks/slack_mock'
require 'lib/connections/slack_connection'
require 'lib/services/messages_service'
require 'lib/services/channels_service'
require 'lib/models/api/response_base'
module Komonjo
# routing
class App < Sinatra::Base
enable :sessions
configure :development do
register Sinatra::Reloader
require 'dotenv'
Dotenv.load
end
Compass.configuration do |c|
c.project_path = File.dirname(__FILE__)
c.sass_dir = 'views/scss'
end
get '/css/:name.css' do
scss :"scss/#{params[:name]}"
end
get '/scripts/:name.js' do
coffee :"coffee/#{params[:name]}"
end
post '/api/login' do
res = Komonjo::Model::API::ResponseBase.new
api_token = params[:api_token] || ''
if api_token != ''
session[:api_token] = api_token
else
res.ok = false
res.message = 'ERROR: api_token is required.'
end
res.to_json
end
get '/api/channels' do
res = Komonjo::Model::API::ResponseBase.new
puts session[:api_token]
api_token = session[:api_token] || ''
if !api_token.nil? && api_token != ''
channels_service = Komonjo::Service::ChannelsService.new(api_token)
res.data = channels_service.channels.map(&:name)
else
res.ok = false
res.message = 'ERROR: api_token is required.'
end
res.to_json
end
get '/api/messages' do
res = Komonjo::Model::API::ResponseBase.new
api_token = session[:api_token] || ''
channel_name = params[:channel_name] || ''
if api_token != '' && channel_name != ''
messages_service = Komonjo::Service::MessagesService.new(api_token)
res.data = messages_service.messages(channel_name)
else
res.ok = false
res.message = 'ERROR: api_token and channel_name are required.'
end
res.to_json
end
get '/' do
@api_token = ENV['KOMONJO_SLACK_API_TOKEN'] || ''
if @api_token != ''
channels_service = Komonjo::Service::ChannelsService.new(@api_token)
@channels = channels_service.channels.map(&:name)
else
@channels = []
end
@messages = Komonjo::Mock::SlackMock.chat_logs
slim :index
end
post '/' do
@api_token = params[:api_token]
@channel_name = params[:channel_name]
channels_service = Komonjo::Service::ChannelsService.new(@api_token)
@channels = channels_service.channels.map(&:name)
messages_service = Komonjo::Service::MessagesService.new(@api_token)
@messages = messages_service.messages @channel_name
slim :index
end
end
end
| mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__object-classicGet__CAST-func_settype_int__select_from_where-sprintf_%d_simple_quote.php | 1798 | <?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : use of settype_int
construction : use of sprintf via a %d with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation for
any purpose, provided that the above copyright notice and the following
three paragraphs appear in all copies of this software.
IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.*/
class Input{
private $input;
public function getInput(){
return $this->input;
}
public function __construct(){
$this->input = $_GET['UserData'] ;
}
}
$temp = new Input();
$tainted = $temp->getInput();
if (settype($tainted, "integer"))
$tainted = $tainted ;
else
$tainted = 0 ;
$query = sprintf("SELECT * FROM student where id='%d'", $tainted);
$conn = mysql_connect('localhost', 'mysql_user', 'mysql_password'); // Connection to the database (address, user, password)
mysql_select_db('dbname') ;
echo "query : ". $query ."<br /><br />" ;
$res = mysql_query($query); //execution
while($data =mysql_fetch_array($res)){
print_r($data) ;
echo "<br />" ;
}
mysql_close($conn);
?> | mit |
opengl-8080/Samples | java/spring-security/namespace/src/test/java/sample/spring/security/test/MyMockUserPostProcessors.java | 552 | package sample.spring.security.test;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.test.web.servlet.request.RequestPostProcessor;
import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*;
public class MyMockUserPostProcessors {
public static RequestPostProcessor hoge() {
return user("hoge")
.password("test-pass")
.authorities(AuthorityUtils.createAuthorityList("FOO", "BAR"));
}
}
| mit |
anagardi/knight-tour | Source/Knight.cs | 399 | using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows;
using System;
namespace knights_tour
{
public class Knight : Image
{
public Knight()
{
Source = new BitmapImage(new Uri("../Images/knight.png", UriKind.Relative));
Width = 50;
Height = 50;
Margin = new Thickness(5);
}
}
}
| mit |
SiLab-Bonn/online_monitor | online_monitor/examples/converter/example_converter.py | 919 | import zmq
import numpy as np
from online_monitor.utils import utils
from online_monitor.converter.transceiver import Transceiver
class ExampleConverter(Transceiver):
def deserialize_data(self, data):
return zmq.utils.jsonapi.loads(data, object_hook=utils.json_numpy_obj_hook)
def interpret_data(self, data): # apply a threshold to the data
data = data[0][1]
position_with_thr = data['position'].copy()
position_with_thr[position_with_thr < self.config['threshold']] = 0
data_with_threshold = {'time_stamp': data['time_stamp'],
'position_with_threshold_%s' % self.name: position_with_thr}
if np.any(position_with_thr): # only return data if any position info is above threshold
return [data_with_threshold]
def serialize_data(self, data):
return zmq.utils.jsonapi.dumps(data, cls=utils.NumpyEncoder)
| mit |
fstoerkle/leaflet-custom-paths | lib/leaflet/0.3.1/src/geometry/Bounds.js | 1519 | /*
* L.Bounds represents a rectangular area on the screen in pixel coordinates.
*/
L.Bounds = L.Class.extend({
initialize: function (min, max) { //(Point, Point) or Point[]
if (!min) {
return;
}
var points = (min instanceof Array ? min : [min, max]);
for (var i = 0, len = points.length; i < len; i++) {
this.extend(points[i]);
}
},
// extend the bounds to contain the given point
extend: function (/*Point*/ point) {
if (!this.min && !this.max) {
this.min = new L.Point(point.x, point.y);
this.max = new L.Point(point.x, point.y);
} else {
this.min.x = Math.min(point.x, this.min.x);
this.max.x = Math.max(point.x, this.max.x);
this.min.y = Math.min(point.y, this.min.y);
this.max.y = Math.max(point.y, this.max.y);
}
},
getCenter: function (round)/*->Point*/ {
return new L.Point(
(this.min.x + this.max.x) / 2,
(this.min.y + this.max.y) / 2, round);
},
contains: function (/*Bounds or Point*/ obj)/*->Boolean*/ {
var min, max;
if (obj instanceof L.Bounds) {
min = obj.min;
max = obj.max;
} else {
min = max = obj;
}
return (min.x >= this.min.x) &&
(max.x <= this.max.x) &&
(min.y >= this.min.y) &&
(max.y <= this.max.y);
},
intersects: function (/*Bounds*/ bounds) {
var min = this.min,
max = this.max,
min2 = bounds.min,
max2 = bounds.max;
var xIntersects = (max2.x >= min.x) && (min2.x <= max.x),
yIntersects = (max2.y >= min.y) && (min2.y <= max.y);
return xIntersects && yIntersects;
}
});
| mit |
lany/phototagger | src/com/drew/lang/NullOutputStream.java | 1274 | /*
* Copyright 2002-2011 Drew Noakes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* More information about this project is available at:
*
* http://drewnoakes.com/code/exif/
* http://code.google.com/p/metadata-extractor/
*/
package com.drew.lang;
import java.io.IOException;
import java.io.OutputStream;
/**
* An implementation of OutputSteam that ignores write requests by doing nothing. This class may be useful in tests.
*
* @author Drew Noakes http://drewnoakes.com
*/
public class NullOutputStream extends OutputStream
{
public NullOutputStream()
{
super();
}
public void write(int b) throws IOException
{
// do nothing
}
}
| mit |
taoromera/quimby | lib/foursquare/photo.rb | 1027 | module Foursquare
class Photo
def initialize(foursquare, json)
@foursquare, @json = foursquare, json
end
def id
@json["id"] == nil ? nil : @json["id"]
end
def name
@json["name"] == nil ? nil : @json["name"]
end
def created_at
@json["createdAt"] == nil ? nil : @json["createdAt"]
end
def url
@json["url"] == nil ? nil : @json["url"]
end
def sizes
@json["sizes"] == nil ? nil : @json["sizes"]
end
def square_300
@square_300 ||= @json["sizes"]["items"].select { |i| i["width"] == 300 }.first
end
def square_300_url
square_300["url"]
end
def square_100
@square_100 ||= @json["sizes"]["items"].select { |i| i["width"] == 100 }.first
end
def square_100_url
square_100["url"]
end
def square_36
@square_36 ||= @json["sizes"]["items"].select { |i| i["width"] == 36 }.first
end
def square_36_url
square_36["url"]
end
end
end
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.3.0/dom/dom-base.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:e9c44c78b7bb212198faddb9a5f1fe1a65e6c6c91c4475bc30d3c1590836b955
size 30945
| mit |
venanciolm/afirma-ui-miniapplet_x_x | afirma_ui_miniapplet/src/main/java/com/lowagie/text/pdf/codec/wmf/MetaBrush.java | 3241 | /*
* $Id: MetaBrush.java 3373 2008-05-12 16:21:24Z xlv $
*
* Copyright 2001, 2002 Paulo Soares
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the License.
*
* The Original Code is 'iText, a free JAVA-PDF library'.
*
* The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
* the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
* All Rights Reserved.
* Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
* are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
*
* Contributor(s): all the names of the contributors are added in the source code
* where applicable.
*
* Alternatively, the contents of this file may be used under the terms of the
* LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the
* provisions of LGPL are applicable instead of those above. If you wish to
* allow use of your version of this file only under the terms of the LGPL
* License and not to allow others to use your version of this file under
* the MPL, indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by the LGPL.
* If you do not delete the provisions above, a recipient may use your version
* of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MPL as stated above or under the terms of the GNU
* Library General Public License as published by the Free Software Foundation;
* either version 2 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more
* details.
*
* If you didn't download this code from the following link, you should check if
* you aren't using an obsolete version:
* http://www.lowagie.com/iText/
*/
package com.lowagie.text.pdf.codec.wmf;
import java.awt.Color;
import java.io.IOException;
class MetaBrush extends MetaObject {
static final int BS_SOLID = 0;
static final int BS_HATCHED = 2;
private int style = BS_SOLID;
private int hatch;
private Color color = Color.white;
public MetaBrush() {
this.type = META_BRUSH;
}
public void init(final InputMeta in) throws IOException {
this.style = in.readWord();
this.color = in.readColor();
this.hatch = in.readWord();
}
public int getStyle() {
return this.style;
}
public int getHatch() {
return this.hatch;
}
public Color getColor() {
return this.color;
}
}
| mit |
CS2103AUG2016-T14-C3/main | src/main/java/seedu/taskmanager/logic/commands/ListCommand.java | 650 | package seedu.taskmanager.logic.commands;
//@@author A0135792X
/**
* Lists all items in the task manager to the user, regardless of the type.
*/
public class ListCommand extends Command {
public static final String COMMAND_WORD = "list";
//@@author A0140060A
public static final String SHORT_COMMAND_WORD = "l";
//@@author
//@@author A0135792X
public static final String MESSAGE_SUCCESS = "Listed all items in task manager";
public ListCommand() {}
@Override
public CommandResult execute() {
model.updateFilteredListToShowAll();
return new CommandResult(MESSAGE_SUCCESS);
}
}
| mit |
StartPolymer/gulp-html-postcss | lib/process.js | 1089 | 'use strict';
const PluginError = require('plugin-error');
const postcss = require('postcss');
const applySourceMap = require('./applySourceMap');
const loadConfig = require('./loadConfig');
function process (buffer, file, config) {
function handleResult (result) {
file.postcss = result;
applySourceMap(file, result);
return Buffer.from(result.content);
}
function handleError (error) {
const errorOptions = { fileName: file.path, showStack: true, error: error };
if (error.name === 'CssSyntaxError') {
errorOptions.fileName = error.file || file.path;
errorOptions.lineNumber = error.line;
errorOptions.showProperties = false;
errorOptions.showStack = false;
error = error.message + '\n\n' + error.showSourceCode() + '\n';
}
// Prevent stream’s unhandled exception from
// being suppressed by Promise
throw new PluginError('gulp-postcss', error, errorOptions);
}
return loadConfig(file, config).then((config) => {
return postcss(config.plugins).process(buffer, config.options);
}).then(handleResult, handleError);
}
module.exports = process;
| mit |
unindented/little-yam | packages/yam-web/lib/components/GroupLink/GroupLink.story.tsx | 378 | /* tslint:disable:no-unused-variable */
import * as React from 'react'
/* tslint:enable:no-unused-variable */
import {fromJS} from 'immutable'
import {storiesOf} from '@kadira/storybook'
import GroupLink from '.'
const group = fromJS({
id: '1',
name: 'Some Group'
})
storiesOf('Group Link', module)
.add('default', () => (
<GroupLink
group={group}
/>
))
| mit |
mattstyles/icarus | lib/cli/commands/deploy.js | 24568 | // > The deploy command tars up a directory and streams it to the server
//
// > Copyright © 2013 Matt Styles
// > Licensed under the MIT license
'use strict';
// Includes.
var icarus = require( './../../icarus' ),
fs = require( 'fs' ),
path = require( 'path' ),
util = require( 'util' ),
async = require( 'async' ),
exec = require( 'child_process').exec,
request = require( 'request' ),
Progress = require( 'progress' ),
tar = require( 'tar' ),
fstream = require( 'fstream' ),
zlib = require( 'zlib' ),
io = require( 'socket.io-client' ),
_ = require( 'underscore' );
// Expose the deployment route.
module.exports = (function() {
//
// Members
// -------
// Set the path data to the server
var route = _.extend(
icarus.config.get( 'server' ), {
path: 'deploy'
} );
// Size of directory being deployed and progressBar object for node-progress
var dirSize = 0,
progressBar = null;
// Stuff for identifying a built folder deploy
var builtFolder = false,
buildID = icarus.config.get( 'buildID' );
// Local tmp folder
var tmpFolder = path.resolve( icarus.utils.getHome(), icarus.config.get( 'dir.main' ), icarus.config.get( 'dir.tmp' ) );
// Route options
var opts = null,
pkg = null,
root = '';
// Create socket connection
var socketPath = route.protocol + route.host + ':' + route.port,
socket = io.connect( socketPath );
// Create socket events
socket.on( 'build', function( data ) {
icarus.out( data.data.em, 'building' );
});
socket.on( 'buildstep', function( data ) {
if ( icarus.config.get( 'loglevel' ) > icarus.utils.loglevel.QUIET ) {
icarus.out( data.data.replace( /\n$/, '').yellow, 'building' );
}
});
socket.on( 'deployed',function( data ) {
icarus.out( 'Deployed to server'.verbose, 'deploying' );
});
//
// Methods
// -------
// Handle returning an invalid folder.
// An invalid folder is one that does not contain a `package.json`.
var onInvalidFolder = function( dir ) {
icarus.log.info( 'An error occurred finding the project root' );
icarus.log.error( process.cwd() + ' is not a valid folder' );
};
// Handle finding a valid project folder.
var onProjectFolder = function( dir ) {
// Store the directory path
root = dir;
// Grab the package and config file info
// Run async as a series as getting the config might require creating it which should pause the output stream
async.series( {
projectPkg: async.apply( icarus.utils.getPkg, root ),
config: icarus.utils.getConf
}, function( err, res ) {
if ( err ) {
// @todo Handle an error here
console.log( 'deploy route error with async setup ' + err );
process.exit(0);
}
// Set variables based on async responses
pkg = res.projectPkg;
icarus.config.extend( res.config );
// Hit up the options router to handle the deploy
optsRouter();
} );
};
// The router for the deploy command
// Checks options and proceeds appropriately
var optsRouter = function() {
icarus.log.debug( 'Opening socket to '.info + socketPath.verbose );
// Github deploy route
if ( opts.git ) {
// Check the package for a valid repository field
validateRepoInfo( deployFromGit, onInvalidRepo );
return;
}
// Create the tarball and send it to the server
icarus.out( 'Attempting to deploy from '.info + path.resolve( root ).em );
createTar()
.then( sendToRemote );
};
//
// Github Deploy Methods
// ---------------------
// Validate the package for the info required for a github deploy
var validateRepoInfo = function( onSuccess, onFailure ) {
// Check for a repository field
if ( !pkg.repository ) {
onFailure();
return;
}
var validRepoInfo = [
'type',
'branch',
'url'
];
// Check the package info for git info
if ( !icarus.utils.contains( _.keys( pkg.repository ), validRepoInfo ) ) {
onFailure();
return;
}
// If we got here then hit up the success route
onSuccess();
};
// Return a message if the package does not contain relevant repository information
var onInvalidRepo = function() {
icarus.out( 'Invalid Repository Information'.error, 'deploying' );
// Close socket
process.exit(0);
};
// Get Auth stub for getting authentication token for github
var getAuth = function() {
var done = null,
token = '';
// Pass the token to the chained function
function complete( newToken ) {
done( newToken || token );
}
// If token already exists then just return that
if ( icarus.config.get( 'auth.github.token' ) ) {
icarus.log.debug( 'Grabbing auth token for github from the config file'.info );
token = icarus.config.get( 'auth.github.token' );
_.defer( complete );
} else {
// Otherwise we need to try and create an auth token
getGithubAuth()
.then( complete );
}
// Return the chaining function
return {
then: function( cb ) {
done = cb;
}
}
};
// Makes a request to create a new github token
var getGithubAuth = function() {
var done = null,
token = '';
// Create repository fields
var repo = pkg.repository.url.match( /[^\/]+$/ )[0],
user = pkg.repository.url.replace( /[^\/]+$/, '' ).replace( /\/$/, '' ).match( /[^\/]+$/ )[0], // @todo ugly, fix.
auth_user = icarus.config.get( 'username' ) || icarus.config.get( 'auth.github.username' ) || user,
url = '';
// Pass the token to the chained function
function complete() {
icarus.log.debug( 'Authentication successful'.info );
done.call( null, token );
};
// Create the authentication object
function createAuthRequest( res ) {
return {
url: url,
headers: {
'User-Agent': pkg.name
},
auth: {
user: res.username,
pass: res.password
},
body: JSON.stringify( {
client_id: res.key,
client_secret: res.secret,
scopes: 'repo',
note: 'icarus'
} )
}
};
// Fired after authenticing
function onAuth( err, res, body ) {
// Check returned status
switch ( res.statusCode ) {
// 200 OK - Returns a pre-existing token
// 201 Created new token
case 200:
case 201:
token = JSON.parse( body ).token;
icarus.config.setFile( {
auth: {
github: {
username: auth_user,
token: token
}
}
}, complete );
break;
// 422 Unprocessable Entity
case 422:
icarus.log.error( 'Can not process authentication object'.error );
_.each( JSON.parse( body ).errors, function( error ) {
icarus.log.debug( error.message.error );
});
icarus.log.debug( 'Github Error Response Body: '.info + JSON.parse( body ).message.error );
process.exit(0);
break;
case 401:
icarus.log.error( 'Invalid auth credentials'.error );
icarus.log.debug( 'Github Error Response Body: '.info + JSON.parse( body ).message.error );
process.exit(0);
break;
default:
icarus.log.error( 'Unhandled error requesting authentication with Github'.error );
if ( typeof body === 'string' ) {
console.log( res.statusCode );
console.log( res.headers );
console.log( body );
icarus.log.debug( 'Github Response Body: '.info + JSON.parse( body ).message.error );
}
process.exit( 0 );
break;
}
};
// Get-or-create a new access token (using key and secret)
function getClientAuth( res ) {
url = 'https://' + path.join( 'api.github.com', 'authorizations', 'clients', res.key );
icarus.log.debug( 'Attempting to authenticate with github '.info + 'using oAuth'.em );
request.put( createAuthRequest( res ), onAuth );
};
// Create new basic auth access token (password-only)
function getAuth( res ) {
url = 'https://' + path.join( 'api.github.com', 'authorizations' );
icarus.log.debug( 'Attempting to authenticate with github '.info + 'using basic auth'.em );
request.post( createAuthRequest( res ), onAuth );
}
// Fired on an error from prompting for auth data
function onPromptError( err ) {
icarus.log.error( 'Error prompting for authentication info: '.error + err );
process.exit(0);
};
// Validate the info from prompt
function onPromptSuccess( res ) {
// Add username to the rest of the auth info
_.extend( res, {
username: auth_user
});
// Check if a key and secret was supplied and use basic auth if not
if ( res.key === '' && res.secret === '' ) {
getAuth( res );
} else {
getClientAuth( res );
}
};
// Create authentication schema - by the time we use this we should already have a username to use
var schema = {
properties: {
password: {
hidden: true,
required: true
},
key: {
pattern: /^[0-9a-z]+$/,
message: 'Client key should be only numbers',
required: false
},
secret: {
pattern: /^[0-9a-z]+$/,
message: 'Client secret should be only numbers',
required: false
}
}
};
// Prompt for info
// Confirm username first of all
// Then get the rest of the info required for authentication
icarus.confirm( 'Authenticate with username: '.info + auth_user.em, function() {
// Get the rest of the info
icarus.prompt( schema, onPromptSuccess, onPromptError );
}, function() {
icarus.prompt( {
properties: {
username: {
pattern: /^[0-9a-zA-Z\s\-]+$/,
message: 'Name should be only letters, numbers, spaces, or dashes',
required: true
}
}
}, function( res ) {
// Store username
auth_user = res.username;
// Get the rest of the info
icarus.prompt( schema, onPromptSuccess, onPromptError );
}, onPromptError )
}, function( err ) {
icarus.log.error( 'Unhandled error confirming username to use to authenticate: '.error + err );
} );
// Return the chaining function
return {
then: function( cb ) {
done = cb;
}
}
};
// The main function to kickstart deploying from a github branch
// @todo refactor and tidy
var deployFromGit = function() {
var bar = null,
size = 0,
query = null;
icarus.out( [
'Attempting to deploy from '.info,
pkg.repository.url.em,
':'.info,
pkg.repository.branch.em
].join(''), 'deploying' );
// Create repository fields
var repo = pkg.repository.url.match( /[^\/]+$/ )[0],
user = pkg.repository.url.replace( /[^\/]+$/, '' ).replace( /\/$/, '' ).match( /[^\/]+$/ )[0], // @todo ugly, fix.
url = 'https://' + path.join( 'api.github.com', 'repos', user, repo, 'tarball', pkg.repository.branch );
// Create archive name
var timestamp = new Date(),
archiveName = pkg.name + '-v' + pkg.version + '-' + timestamp.toJSON() + '.tar.gz';
// Build query string
query = {
pkgName: icarus.utils.parsePkgName( pkg.name ) || 'not specified',
tmpName: archiveName || 'not specified',
build: true
};
// Get auth token for github and then stream the repo into tmp
getAuth()
.then( function( token ) {
// Get Repository Request
// ---
function onGetRepo( err, res, body ) {
if ( err ) {
icarus.log.error( 'Error connecting to github'.error );
icarus.error.handleConnectionError( err );
icarus.out( 'Check for unicorns'.error.bold, 'error'.error );
process.exit(0);
}
// Should also check for status's that denote a problem
switch ( res.statusCode ) {
case 200:
// no-op, its already piping
break;
case 404:
icarus.log.error( 'Repository name not found at github'.error );
icarus.log.debug( 'Github Error Response Body: '.info + JSON.parse( body ).message.error );
process.exit(0);
break;
case 401:
icarus.log.error( 'Invalid auth credentials'.error );
icarus.log.debug( 'Github Error Response Body: '.info + JSON.parse( body ).message.error );
process.exit(0);
break;
default:
if ( typeof body === 'string' ) {
icarus.log.debug( 'Github Response Body: '.info + JSON.parse( body ).message.error );
}
break;
}
};
var getRepoRequest = {
url: url,
headers: {
'User-Agent': pkg.name
},
qs: {
access_token: token
}
};
// Post Repository
// --
function onPostRepo( err, res, body ) {
if ( err ) {
icarus.log.error( 'There was an error streaming the deploy'.error );
icarus.error.handleConnectionError( err );
process.exit( 0 );
}
// Send feedback on the deploy
var resp = JSON.parse( body );
icarus.out( 'Time taken to deploy - '.info + resp.deployTime.em, 'stats' );
icarus.out( 'Time taken to build - '.info + resp.buildTime.em, 'stats' );
icarus.out( resp.status.em, 'deploy status' );
// Manually close as the socket connection will keep the program running
process.exit( 0 );
};
var postRepoRequest = {
url: route.protocol + route.host + ':' + route.port + '/' + route.path,
headers: {
'User-Agent': pkg.name
},
qs: query
};
// Send a request for the branch tarball
request.get( getRepoRequest, onGetRepo )
.on( 'request', function( req ) {
// Request gets fired twice due to redirect, use number of sockets to check for the number of redirections
if ( _.keys( req.agent.sockets ).length <= 1 ) {
icarus.out( 'Connecting to github'.verbose, 'deploying' );
}
})
.on( 'response', function( res ) {
icarus.log.debug( 'Response code from getting the tarball: '.info + res.statusCode.toString().em )
icarus.out( 'Deploying repository'.verbose, 'deploying' );
size = parseInt( res.headers[ 'content-length' ], 10 );
// @todo using try-catch because progressbar sometimes goes screwy, should probably solve the actual problem
try {
bar = new Progress( 'uploading [:bar] :percent', {
complete : '=',
incomplete : '-',
width : 30,
total : size
});
} catch ( e ) {
icarus.log.warn( 'Error initialising progress bar: '.warn + e );
}
})
.on( 'data', function( chunk ) {
// Update the progress bar
// @todo using try-catch because progressbar sometimes goes screwy, should probably solve the actual problem
try {
if ( bar ) {
bar.tick( chunk.length > size ? size : chunk.length );
}
} catch ( e ) {
icarus.log.debug( 'Error progressing progress bar: '.warn + e );
}
})
.on( 'end', function( res ) {
icarus.out( 'Finished deploying repository'.verbose, 'deploying' );
})
.pipe( request.post( postRepoRequest, onPostRepo ) );
});
};
//
// Local Deploy Methods
// --------------------
// This function serves two purposes -
// it reads the directory and stores its size and,
// it creates an archive of the directory.
var createTar = function() {
var timestamp = new Date(),
archiveName = '',
archive = '',
done;
// Pass the archive name to the chained function
function complete() {
done( archive );
}
// Check for a built folder
if ( root.match( buildID ) ) {
icarus.log.debug( 'Deploying built artefact'.info );
builtFolder = true;
}
// Create archive name
archiveName = pkg.name + '-v' + pkg.version + '-' + timestamp.toJSON() + '.tar.gz';
icarus.log.debug( 'Archiving as '.info + archiveName.em );
archive = path.join( tmpFolder, archiveName );
icarus.out( 'Creating tarball'.verbose, 'deploying' );
// Reads the directory and stores the number of files.
// Gzip the archive.
// The number of files are used as a reference to measure the progress of the deployment.
var fileReader = fstream.Reader( { path: root, type: 'Directory' } )
.on( 'error', function( err ) {
icarus.log.error( 'Error reading directory : ' + err );
})
.pipe( tar.Pack() )
.on( 'error', function( err ) {
icarus.log.error( 'Error packing the directory into the archive tarball : ' + err );
})
.pipe( zlib.createGzip() )
.on( 'error', function() {
icarus.log.error( 'Error gzipping the directory : ' + err );
})
.pipe( fstream.Writer( archive ) )
.on ('error', function( err ) {
icarus.log.error( 'Error storing tmp tar : ' + err );
})
.on( 'close', function() {
icarus.out( 'Finished packing tarball'.verbose, 'deploying' );
// Finished reading the directory so hit the callback.
complete();
});
// Set up a return so this function can be chained
return {
then: function( cb ) {
done = cb;
}
};
};
// Tar up the folder
var sendToRemote = function( tmpPath ) {
var bar = null,
size = 0,
query = null;
// Build query object
query = {
pkgName: icarus.utils.parsePkgName( pkg.name ) || 'not specified',
tmpName: tmpPath || 'not specified'
};
// Tell the server this needs building
if ( !builtFolder ) {
icarus.log.debug( 'Sending '.info + 'build '.verbose + 'query to trigger build tasks'.info );
_.extend( query, {
build: true
} );
}
// Output starting deploy
icarus.out( 'Starting deployment of tarball'.verbose, 'deploying' );
// Read the directory, tar it up and send through the request object
fs.stat( tmpPath, function( err, stat ) {
// Handle an error - most likely a file not found error
if ( err ) {
icarus.log.error( 'Error statting the temp deploy artifact : ' + err );
}
fstream.Reader( { path: tmpPath, type: 'File' } )
.on( 'error', function( err ) {
icarus.log.error( 'Error reading tmp file' );
})
.on( 'open', function() {
// Create the progress bar
size = stat.size;
bar = new Progress( 'uploading [:bar] :percent', {
complete : '=',
incomplete : '-',
width : 30,
total : stat.size
});
})
.on( 'data', function( chunk ) {
// Update the progress bar
if ( bar ) {
bar.tick( chunk.length > size ? size : chunk.length );
}
})
.on( 'end', function() {
icarus.out( 'Finished sending tarball'.verbose, 'deploying' );
})
// Should this be piped into a stream to convert to base64 before posting?
.pipe( request.post( {
url: route.protocol + route.host + ':' + route.port + '/' + route.path,
qs: query // @todo as its a post should this be in the body rather than a query?
}, function( err, res, body ) {
if ( err ) {
icarus.log.error( 'There was an error streaming the deploy : '.error + err );
icarus.error.handleConnectionError( err );
process.exit( 0 );
}
// Send feedback on the deploy
var resp = JSON.parse( body );
icarus.out( 'Time taken to deploy - '.info + resp.deployTime.em, 'stats' );
icarus.out( 'Time taken to build - '.info + resp.buildTime.em, 'stats' );
icarus.out( resp.status.em, 'deploy status' );
// Manually close as the socket connection will keep the program running
process.exit( 0 );
}) )
});
};
// Return the route function
return function( options ) {
// Set the options
opts = options;
// Check that this is a valid project folder and proceed or stop
icarus.utils.findProjectRoot( onInvalidFolder, onProjectFolder );
};
})(); | mit |
JaeGyu/PythonEx_1 | deeplearning_5.py | 207 | import numpy as np
import matplotlib.pylab as plt
def step_function(x):
return np.array(x>0, dtype=int)
x = np.arange(-5.0,5.0,0.1)
y = step_function(x)
plt.plot(x,y)
plt.ylim(-0.1, 1.1)
plt.show()
| mit |
CanyonCounty/CCServiceCtl | CCServiceCtl/Properties/AssemblyInfo.cs | 1389 | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("IccServiceCtl")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Canyon County")]
[assembly: AssemblyProduct("IccServiceCtl")]
[assembly: AssemblyCopyright("Copyright © Canyon County 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("be1ecaf2-aa84-4b77-8743-3d2f7e3dee16")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
reidlindsay/gostop | gostop/core/utils.py | 23 | def _(s):
return s
| mit |
rzeem7/InsideInning | InsideInning/InsideInning/Pages/Setting.cs | 1065 | using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace InsideInning.Pages
{
class Setting : BaseViewPage
{
public Setting()
{
var stack = new StackLayout
{
Orientation = StackOrientation.Vertical,
Spacing = 10
};
var stack2 = new StackLayout
{
Orientation = StackOrientation.Vertical,
VerticalOptions = LayoutOptions.FillAndExpand,
Spacing = 10,
Padding = 10
};
var about = new Label
{
Font = Font.SystemFontOfSize(NamedSize.Medium),
Text = "Setting",
LineBreakMode = LineBreakMode.WordWrap
};
stack2.Children.Add(about);
stack.Children.Add(new ScrollView { VerticalOptions = LayoutOptions.FillAndExpand, Content = stack2 });
Content = stack;
}
}
}
| mit |
kaffau/Ballet | node_modules/grunt-testem/Gruntfile.js | 1025 | module.exports = function(grunt) {
"use strict";
grunt.initConfig({
'testem': {
options : {
launch_in_ci : [
'PhantomJS'
]
},
success : {
files : {
'test/actual/success.tap': [
'test/source/success-*.html'
]
}
},
failed: {
files : {
'test/actual/failed.tap': [
'test/source/failed-*.html'
]
},
options: {
force: true
}
},
json: {
files : {
'test/actual/json.tap': [
'test/source/testem.json'
]
}
}
},
clean: {
tests: ['test/actual/*']
},
// Unit tests.
nodeunit: {
tests: ['test/*_test.js']
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.registerTask('test', ['clean', 'testem', 'nodeunit']);
grunt.registerTask('default', ['testem']);
};
| mit |
Tooyz/moysklad | src/Components/Specs/LinkingSpecs.php | 712 | <?php
namespace MoySklad\Components\Specs;
class LinkingSpecs extends AbstractSpecs {
protected static $cachedDefaultSpecs = null;
/**
* Get possible variables for spec
* name: what name to use when linking
* fields: what fields will be used when linking, others will be discarded
* excludeFields: what fields will be discarded when linking, can't be used with "fields" param
* multiple: flags if same named links should be put into array
* @return array
*/
public function getDefaults()
{
return [
'name' => null,
'fields' => null,
'excludedFields' => null,
'multiple' => false
];
}
}
| mit |
phalcon/zephir | Library/functions.php | 6784 | <?php
/*
* This file is part of the Zephir.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Zephir;
use const INFO_GENERAL;
use const PHP_INT_SIZE;
use const PHP_OS;
use const PHP_ZTS;
use const SCANDIR_SORT_ASCENDING;
use Zephir\Exception\InvalidArgumentException;
/**
* Attempts to remove recursively the directory with all subdirectories and files.
*
* A E_WARNING level error will be generated on failure.
*
* @param string $path
*/
function unlink_recursive($path)
{
if (is_dir($path)) {
$objects = array_diff(scandir($path, SCANDIR_SORT_ASCENDING), ['.', '..']);
foreach ($objects as $object) {
if (is_dir("{$path}/{$object}")) {
unlink_recursive("{$path}/{$object}");
} else {
unlink("{$path}/{$object}");
}
}
rmdir($path);
}
}
/**
* Camelize a string.
*
* @param string $string
*
* @return string
*/
function camelize($string)
{
return str_replace(' ', '', ucwords(str_replace('_', ' ', $string)));
}
/**
* Prepares a class name to be used as a C-string.
*
* @param string $className
*
* @return string
*/
function escape_class($className)
{
return str_replace('\\', '\\\\', $className);
}
/**
* Prepares a string to be used as a C-string.
*
* Should NOT escape next `escape sequences`:
* Escape sequence | ASCII hex value | Char represented
* --------------- | --------------- | ----------------
* \a | 07 | Audible bell (Alert, Beep)
* \b | 08 | Backspace
* \e | 1B | Escape character
* \f | 0C | Formed page brake
* \n | 0A | Newline (Line Feed)
* \r | 0D | Carriage Return
* \t | 09 | Horizontal Tab
* \v | 0B | Vertical Tab
* \\ | 5C | Backslash
* \' | 27 | Apostrophe or single quotation mark
* \" | 22 | Double quotation mark
* \? | 3F | Question mark (used to avoid trigraphs)
* \nnn | any | The byte whose numerical value is given by nnn interpreted as an octal number
* \xhh… | any | The byte whose numerical value is given by hh… interpreted as a hexadecimal number
*
* @param string $string
*
* @return string
*/
function add_slashes(string $string): string
{
$escape = '\\';
$controlChar = [
'a', 'b', 'e', 'f', 'n', 'r', 't', 'v', '\\', '\'', '"', '?', 'x',
];
$newstr = '';
$after = null;
$last = \strlen($string) - 1;
for ($i = 0, $next = 1; $i <= $last; ++$i, ++$next) {
$ch = $string[$i];
if ($i !== $last) {
$after = $string[$next];
} else {
$after = null;
}
if ($ch === $escape) {
if (\in_array($after, $controlChar, true) || is_numeric($after)) {
// should not escape native C control chars
$newstr .= $ch.$after;
++$i;
++$next;
continue;
}
$newstr .= $escape.$ch;
continue;
}
if ('"' === $ch) {
$newstr .= $escape.$ch;
continue;
}
$newstr .= $ch;
}
return $newstr;
}
/**
* Transform class/interface name to FQN format.
*
* @param string $className
* @param string $currentNamespace
* @param AliasManager $aliasManager
*
* @return string
*/
function fqcn($className, $currentNamespace, AliasManager $aliasManager = null)
{
if (!\is_string($className)) {
throw new InvalidArgumentException('Class name must be a string, got '.\gettype($className));
}
// Absolute class/interface name
if ('\\' === $className[0]) {
return substr($className, 1);
}
// If class/interface name not begin with \ maybe a alias or a sub-namespace
$firstSepPos = strpos($className, '\\');
if (false !== $firstSepPos) {
$baseName = substr($className, 0, $firstSepPos);
if ($aliasManager && $aliasManager->isAlias($baseName)) {
return $aliasManager->getAlias($baseName).'\\'.substr($className, $firstSepPos + 1);
}
} elseif ($aliasManager && $aliasManager->isAlias($className)) {
return $aliasManager->getAlias($className);
}
// Relative class/interface name
if ($currentNamespace) {
return $currentNamespace.'\\'.$className;
}
return $className;
}
/**
* Checks if the content of the file on the disk is the same as the content.
*
* @param string $content
* @param string $path
*
* @return int|bool
*/
function file_put_contents_ex($content, $path)
{
if (file_exists($path)) {
$contentMd5 = md5($content);
$existingMd5 = md5_file($path);
if ($contentMd5 !== $existingMd5) {
return file_put_contents($path, $content);
}
} else {
return file_put_contents($path, $content);
}
return false;
}
/**
* Checks if currently running under MS Windows.
*
* @return bool
*/
function is_windows()
{
return 0 === stripos(PHP_OS, 'WIN');
}
/**
* Checks if currently running under macOs.
*
* @return bool
*/
function is_macos()
{
return 0 === stripos(PHP_OS, 'DARWIN');
}
/**
* Checks if currently running under BSD based OS.
*
* @see https://en.wikipedia.org/wiki/List_of_BSD_operating_systems
*
* @return bool
*/
function is_bsd()
{
return false !== stripos(PHP_OS, 'BSD');
}
/**
* Checks if current PHP is thread safe.
*
* @return bool
*/
function is_zts()
{
if (\defined('PHP_ZTS') && PHP_ZTS === 1) {
return true;
}
ob_start();
phpinfo(INFO_GENERAL);
return (bool) preg_match('/Thread\s*Safety\s*enabled/i', strip_tags(ob_get_clean()));
}
/**
* Resolves Windows release folder.
*
* @return string
*/
function windows_release_dir()
{
if (is_zts()) {
if (PHP_INT_SIZE === 4) {
// 32-bit version of PHP
return 'ext\\Release_TS';
}
if (PHP_INT_SIZE === 8) {
// 64-bit version of PHP
return 'ext\\x64\\Release_TS';
}
// fallback
return 'ext\\Release_TS';
}
if (PHP_INT_SIZE === 4) {
// 32-bit version of PHP
return 'ext\\Release';
}
if (PHP_INT_SIZE === 8) {
// 64-bit version of PHP
return 'ext\\x64\\Release';
}
// fallback
return 'ext\\Release';
}
| mit |
angular/angular-cli-stress-test | src/app/services/service-552.service.ts | 320 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Injectable } from '@angular/core';
@Injectable()
export class Service552Service {
constructor() { }
}
| mit |
D3A7H13/4HeadRankingSystem | src/FourHeadRankingSystem/Program.cs | 560 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace FourHeadRankingSystem
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
| mit |
Cysha/casino-holdem | tests/Game/ActionTest.php | 6720 | <?php
namespace Cysha\Casino\Holdem\Tests\Game;
use Cysha\Casino\Cards\CardCollection;
use Cysha\Casino\Cards\Deck;
use Cysha\Casino\Game\Chips;
use Cysha\Casino\Game\Client;
use Cysha\Casino\Holdem\Cards\Evaluators\SevenCard;
use Cysha\Casino\Holdem\Game\Action;
use Cysha\Casino\Holdem\Game\Dealer;
use Cysha\Casino\Holdem\Game\Player;
use Ramsey\Uuid\Uuid;
class ActionTest extends BaseGameTestCase
{
/**
* @expectedException InvalidArgumentException
* @test
*/
public function chips_passed_to_chips_attribute_needs_to_be_chip_object()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
new Action($player, Action::CALL, ['chips' => 0]);
}
/**
* @expectedException InvalidArgumentException
* @test
*/
public function cards_passed_to_communityCards_attribute_needs_to_be_cardCollection_object()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
new Action($player, Action::CALL, ['communityCards' => 0]);
}
/** @test */
public function can_get_player_from_action()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::CALL, ['chips' => Chips::fromAmount(250)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals(Action::CALL, $action->action());
$this->assertInstanceOf(Player::class, $action->player());
}
/** @test */
public function can_get_chips_from_action()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::CALL, ['chips' => Chips::fromAmount(250)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals(250, $action->chips()->amount());
}
/** @test */
public function can_create_action_for_check()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::CHECK);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has checked.', $action->toString());
$this->assertEquals('xLink has checked.', $action->__toString());
}
/** @test */
public function can_create_action_for_call()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::CALL, ['chips' => Chips::fromAmount(250)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has called 250.', $action->toString());
$this->assertEquals('xLink has called 250.', $action->__toString());
}
/** @test */
public function can_create_action_for_raise()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::RAISE, ['chips' => Chips::fromAmount(999)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has raised 999.', $action->toString());
$this->assertEquals('xLink has raised 999.', $action->__toString());
}
/** @test */
public function can_create_action_for_fold()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::FOLD);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has folded.', $action->toString());
$this->assertEquals('xLink has folded.', $action->__toString());
}
/** @test */
public function can_create_action_for_allin()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::ALLIN, ['chips' => Chips::fromAmount(2453)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has pushed ALL IN (2453).', $action->toString());
$this->assertEquals('xLink has pushed ALL IN (2453).', $action->__toString());
}
/** @test */
public function can_create_action_for_sb()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::SMALL_BLIND, ['chips' => Chips::fromAmount(25)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has posted Small Blind (25).', $action->toString());
$this->assertEquals('xLink has posted Small Blind (25).', $action->__toString());
}
/** @test */
public function can_create_action_for_bb()
{
$client = Client::register(Uuid::uuid4(), 'xLink');
$player = Player::fromClient($client);
$action = new Action($player, Action::BIG_BLIND, ['chips' => Chips::fromAmount(50)]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('xLink has posted Big Blind (50).', $action->toString());
$this->assertEquals('xLink has posted Big Blind (50).', $action->__toString());
}
/** @test */
public function can_create_action_for_flop_being_dealt()
{
$dealer = Dealer::startWork(new Deck(), new SevenCard());
$cards = CardCollection::fromString('4♥ 4♦ 5♠');
$action = new Action($dealer, Action::DEALT_FLOP, ['communityCards' => $cards]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('Dealer has dealt the flop (4♥ 4♦ 5♠).', $action->toString());
}
/** @test */
public function can_create_action_for_turn_being_dealt()
{
$dealer = Dealer::startWork(new Deck(), new SevenCard());
$cards = CardCollection::fromString('2♦');
$action = new Action($dealer, Action::DEALT_TURN, ['communityCards' => $cards]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('Dealer has dealt the turn (2♦).', $action->toString());
}
/** @test */
public function can_create_action_for_river_being_dealt()
{
$dealer = Dealer::startWork(new Deck(), new SevenCard());
$cards = CardCollection::fromString('6♥');
$action = new Action($dealer, Action::DEALT_RIVER, ['communityCards' => $cards]);
$this->assertInstanceOf(Action::class, $action);
$this->assertEquals('Dealer has dealt the river (6♥).', $action->toString());
}
}
| mit |
i12345/spacelator | Translatadora.TS/panels/panel.ts | 81 | interface Panel {
name: string;
html: HTMLElement;
id: number;
} | mit |
chncwang/FoolGo | src/board/position.cc | 1004 | #include "position.h"
#include <boost/format.hpp>
namespace foolgo {
using boost::format;
using std::string;
const BoardLen Position::STRAIGHT_ORNTTIONS[4][2] = { { 0, -1 }, { 1, 0 }, { 0,
1 }, { -1, 0 } };
const BoardLen Position::OBLIQUE_ORNTTIONS[4][2] = { { 1, -1 }, { 1, 1 }, { -1,
1 }, { -1, -1 } };
string PositionToString(const Position &position) {
return (boost::format("{%1%, %2%}") % static_cast<int>(position.x)
% static_cast<int>(position.y)).str();
}
std::ostream &operator<<(std::ostream &os, const Position &position) {
return os << PositionToString(position);
}
Position AdjacentPosition(const Position & position, int i) {
return Position(position.x + Position::STRAIGHT_ORNTTIONS[i][0],
position.y + Position::STRAIGHT_ORNTTIONS[i][1]);
}
Position ObliquePosition(const Position &position, int i) {
return Position(position.x + Position::OBLIQUE_ORNTTIONS[i][0],
position.y + Position::OBLIQUE_ORNTTIONS[i][1]);
}
}
| mit |
ZaoLahma/PyCHIP-8 | keyboard.py | 1323 | #!/usr/bin/env python3
import pygame
import threading
KEYS = {
0x0: pygame.K_KP0,
0x1: pygame.K_KP1,
0x2: pygame.K_KP2,
0x3: pygame.K_KP3,
0x4: pygame.K_KP4,
0x5: pygame.K_KP5,
0x6: pygame.K_KP6,
0x7: pygame.K_KP7,
0x8: pygame.K_KP8,
0x9: pygame.K_KP9,
0xA: pygame.K_a,
0xB: pygame.K_b,
0xC: pygame.K_c,
0xD: pygame.K_d,
0xE: pygame.K_e,
0xF: pygame.K_f,
}
class Keyboard(object):
def __init__(self):
self.pressedKeys = None
self.pressedKeysCond = threading.Condition()
def keyPressed(self, keyToCheck):
retVal = False
pressedKeys = pygame.key.get_pressed()
if pressedKeys[KEYS[keyToCheck]]:
retVal = True
return retVal
def keyPressedIndication(self, pressedKeys):
with self.pressedKeysCond:
self.pressedKeys = pressedKeys
self.pressedKeysCond.notifyAll()
def waitKeyPressed(self):
keyVal = None
keyPressed = False
while not keyPressed:
with self.pressedKeysCond:
self.pressedKeysCond.wait()
for keyVal, lookupKey in KEYS.items():
if self.pressedKeys[lookupKey]:
keyPressed = True
break
return keyVal
| mit |
GoodUncleFood/petite | test/integration/_tmpData.js | 144 | /*
* Dependencies
*
*/
var app = require('./../../index');
/*
* Config
*
*/
var data = {
};
/*
* Export
*
*/
module.exports = data; | mit |
MontealegreLuis/php-testing-tools | ui/web/tests/acceptance/_bootstrap.php | 162 | <?php declare(strict_types=1);
/**
* PHP version 7.4
*
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
| mit |
iAJTin/iExportEngine | source/library/iTin.Export.Core/Model/Resources/Conditions/Condition/WhenChangeConditionModel.designer.cs | 495 |
namespace iTin.Export.Model
{
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
[GeneratedCode("System.Xml", "4.0.30319.18033")]
[Serializable()]
//[DebuggerStepThrough()]
[DesignerCategory("code")]
[XmlType(Namespace = "http://schemas.itin.com/export/engine/2014/configuration/v1.0")]
public partial class WhenChangeConditionModel : BaseConditionModel
{
}
}
| mit |
Nuel631/Aulas_de_python | Nome e idade no vetor.py | 264 | #Armazena nome e idade no vetor.
i=0
n=[0,0,0,0,0,0,0,0,0,0]
I=[0,0,0,0,0,0,0,0,0,0]
print("Informe 10 nomes e 10 idades, a seguir.")
for i in range(10):
n[i]=input("Digite nome: ")
I[i]=input("Digite idade: ")
i=i+1
print(n)
print(I)
| mit |
RicardoJohann/frappe | frappe/public/js/frappe/form/controls/code.js | 2244 | frappe.ui.form.ControlCode = frappe.ui.form.ControlText.extend({
make_input() {
if (this.editor) return;
this.load_lib().then(() => this.make_ace_editor());
},
make_ace_editor() {
const ace_editor_target = $('<div class="ace-editor-target"></div>')
.appendTo(this.input_area);
// styling
ace_editor_target.addClass('border rounded');
ace_editor_target.css('height', 300);
// initialize
const ace = window.ace;
this.editor = ace.edit(ace_editor_target.get(0));
this.editor.setTheme('ace/theme/tomorrow');
this.set_language();
// events
this.editor.session.on('change', frappe.utils.debounce(() => {
const input_value = this.get_input_value();
this.parse_validate_and_set_in_model(input_value);
}, 300));
},
set_language() {
const language_map = {
'Javascript': 'ace/mode/javascript',
'JS': 'ace/mode/javascript',
'HTML': 'ace/mode/html',
'CSS': 'ace/mode/css'
};
const language = this.df.options;
const valid_languages = Object.keys(language_map);
if (!valid_languages.includes(language)) {
// eslint-disable-next-line
console.warn(`Invalid language option provided for field "${this.df.label}". Valid options are ${valid_languages.join(', ')}.`);
}
const ace_language_mode = language_map[language] || '';
this.editor.session.setMode(ace_language_mode);
},
parse(value) {
if (value == null) {
value = "";
}
return value;
},
set_formatted_input(value) {
this.load_lib().then(() => {
if (!this.editor) return;
if (!value) value = '';
if (value === this.get_input_value()) return;
this.editor.session.setValue(value);
});
},
get_input_value() {
return this.editor ? this.editor.session.getValue() : '';
},
load_lib() {
if (this.library_loaded) return this.library_loaded;
if (frappe.boot.developer_mode) {
this.root_lib_path = '/assets/frappe/node_modules/ace-builds/src-noconflict/';
} else {
this.root_lib_path = '/assets/frappe/node_modules/ace-builds/src-min-noconflict/';
}
this.library_loaded = new Promise(resolve => {
frappe.require(this.root_lib_path + 'ace.js', () => {
window.ace.config.set('basePath', this.root_lib_path);
resolve();
});
});
return this.library_loaded;
}
});
| mit |
laqs84/Geo | application/logs/log-2015-01-21.php | 219729 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
DEBUG - 2015-01-21 13:57:46 --> Config Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Hooks Class Initialized
DEBUG - 2015-01-21 13:57:46 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 13:57:46 --> Utf8 Class Initialized
DEBUG - 2015-01-21 13:57:46 --> URI Class Initialized
DEBUG - 2015-01-21 13:57:46 --> No URI present. Default controller set.
DEBUG - 2015-01-21 13:57:46 --> Router Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Output Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Security Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Input Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 13:57:46 --> Language Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Loader Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Helper loaded: url_helper
DEBUG - 2015-01-21 13:57:46 --> Helper loaded: file_helper
DEBUG - 2015-01-21 13:57:46 --> Helper loaded: form_helper
DEBUG - 2015-01-21 13:57:46 --> CI_Session Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 13:57:46 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 13:57:46 --> Encryption Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Database Driver Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Session: Regenerate ID
DEBUG - 2015-01-21 13:57:46 --> CI_Session routines successfully run
DEBUG - 2015-01-21 13:57:46 --> Controller Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 13:57:46 --> Form Validation Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Helper loaded: date_helper
DEBUG - 2015-01-21 13:57:46 --> Helper loaded: html_helper
DEBUG - 2015-01-21 13:57:46 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:46 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:46 --> File loaded: C:\xampp\htdocs\geovalores\application\views\Inicio.php
DEBUG - 2015-01-21 13:57:46 --> Final output sent to browser
DEBUG - 2015-01-21 13:57:46 --> Total execution time: 0.5462
DEBUG - 2015-01-21 13:57:48 --> Config Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Hooks Class Initialized
DEBUG - 2015-01-21 13:57:48 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 13:57:48 --> Utf8 Class Initialized
DEBUG - 2015-01-21 13:57:48 --> URI Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Router Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Output Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Security Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Input Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 13:57:48 --> Language Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Loader Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Helper loaded: url_helper
DEBUG - 2015-01-21 13:57:48 --> Helper loaded: file_helper
DEBUG - 2015-01-21 13:57:48 --> Helper loaded: form_helper
DEBUG - 2015-01-21 13:57:48 --> CI_Session Class Initialized
DEBUG - 2015-01-21 13:57:48 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 13:57:48 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 13:57:48 --> Encryption Class Initialized
DEBUG - 2015-01-21 13:57:49 --> Database Driver Class Initialized
DEBUG - 2015-01-21 13:57:49 --> CI_Session routines successfully run
DEBUG - 2015-01-21 13:57:49 --> Controller Class Initialized
DEBUG - 2015-01-21 13:57:49 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 13:57:49 --> Form Validation Class Initialized
DEBUG - 2015-01-21 13:57:49 --> Helper loaded: date_helper
DEBUG - 2015-01-21 13:57:49 --> Helper loaded: html_helper
DEBUG - 2015-01-21 13:57:49 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:49 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:49 --> Final output sent to browser
DEBUG - 2015-01-21 13:57:49 --> Total execution time: 0.4015
DEBUG - 2015-01-21 13:57:53 --> Config Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Hooks Class Initialized
DEBUG - 2015-01-21 13:57:53 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 13:57:53 --> Utf8 Class Initialized
DEBUG - 2015-01-21 13:57:53 --> URI Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Router Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Output Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Security Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Input Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 13:57:53 --> Language Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Loader Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Helper loaded: url_helper
DEBUG - 2015-01-21 13:57:53 --> Helper loaded: file_helper
DEBUG - 2015-01-21 13:57:53 --> Helper loaded: form_helper
DEBUG - 2015-01-21 13:57:53 --> CI_Session Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 13:57:53 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 13:57:53 --> Encryption Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Database Driver Class Initialized
DEBUG - 2015-01-21 13:57:53 --> CI_Session routines successfully run
DEBUG - 2015-01-21 13:57:53 --> Controller Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Model Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 13:57:53 --> Form Validation Class Initialized
DEBUG - 2015-01-21 13:57:53 --> Helper loaded: date_helper
DEBUG - 2015-01-21 13:57:53 --> Helper loaded: html_helper
DEBUG - 2015-01-21 13:57:53 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 13:57:53 --> Final output sent to browser
DEBUG - 2015-01-21 13:57:53 --> Total execution time: 0.3796
DEBUG - 2015-01-21 13:58:02 --> Config Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Hooks Class Initialized
DEBUG - 2015-01-21 13:58:02 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 13:58:02 --> Utf8 Class Initialized
DEBUG - 2015-01-21 13:58:02 --> URI Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Router Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Output Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Security Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Input Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 13:58:02 --> Language Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Loader Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Helper loaded: url_helper
DEBUG - 2015-01-21 13:58:02 --> Helper loaded: file_helper
DEBUG - 2015-01-21 13:58:02 --> Helper loaded: form_helper
DEBUG - 2015-01-21 13:58:02 --> CI_Session Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 13:58:02 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 13:58:02 --> Encryption Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Database Driver Class Initialized
DEBUG - 2015-01-21 13:58:02 --> CI_Session routines successfully run
DEBUG - 2015-01-21 13:58:02 --> Controller Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Helper loaded: date_helper
DEBUG - 2015-01-21 13:58:02 --> Helper loaded: html_helper
DEBUG - 2015-01-21 13:58:02 --> Model Class Initialized
DEBUG - 2015-01-21 13:58:02 --> Model Class Initialized
DEBUG - 2015-01-21 04:58:02 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 04:58:02 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 04:58:02 --> Final output sent to browser
DEBUG - 2015-01-21 04:58:02 --> Total execution time: 0.2749
DEBUG - 2015-01-21 14:12:16 --> Config Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:12:16 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:12:16 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:12:16 --> URI Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Router Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Output Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Security Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Input Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:12:16 --> Language Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Loader Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:12:16 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:12:16 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:12:16 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:12:16 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:12:16 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Session: Regenerate ID
DEBUG - 2015-01-21 14:12:16 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:12:16 --> Controller Class Initialized
DEBUG - 2015-01-21 14:12:16 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:12:16 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:12:16 --> Model Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Config Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:12:27 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:12:27 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:12:27 --> URI Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Router Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Output Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Security Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Input Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:12:27 --> Language Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Loader Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:12:27 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:12:27 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:12:27 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:12:27 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:12:27 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:12:27 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:12:27 --> Controller Class Initialized
DEBUG - 2015-01-21 14:12:27 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:12:27 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:12:27 --> Model Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Config Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:14:13 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:14:13 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:14:13 --> URI Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Router Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Output Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Security Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Input Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:14:13 --> Language Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Loader Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:14:13 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:14:13 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:14:13 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:14:13 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:14:13 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:14:13 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:14:13 --> Controller Class Initialized
DEBUG - 2015-01-21 14:14:13 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:14:13 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:14:13 --> Model Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Config Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:14:41 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:14:41 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:14:41 --> URI Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Router Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Output Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Security Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Input Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:14:41 --> Language Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Loader Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:14:41 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:14:41 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:14:41 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:14:41 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:14:41 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:14:41 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:14:41 --> Controller Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:14:41 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:14:41 --> Model Class Initialized
DEBUG - 2015-01-21 14:14:41 --> Model Class Initialized
DEBUG - 2015-01-21 05:14:41 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:14:41 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:14:41 --> Final output sent to browser
DEBUG - 2015-01-21 05:14:41 --> Total execution time: 0.4333
DEBUG - 2015-01-21 14:25:14 --> Config Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:25:14 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:25:14 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:25:14 --> URI Class Initialized
DEBUG - 2015-01-21 14:25:14 --> No URI present. Default controller set.
DEBUG - 2015-01-21 14:25:14 --> Router Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Output Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Security Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Input Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:25:14 --> Language Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Loader Class Initialized
DEBUG - 2015-01-21 14:25:14 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:25:14 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:25:14 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:25:14 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:25:15 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:25:15 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Session: Regenerate ID
DEBUG - 2015-01-21 14:25:15 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:25:15 --> Controller Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:25:15 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:25:15 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:25:15 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:15 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:15 --> File loaded: C:\xampp\htdocs\geovalores\application\views\Inicio.php
DEBUG - 2015-01-21 14:25:15 --> Final output sent to browser
DEBUG - 2015-01-21 14:25:15 --> Total execution time: 0.5644
DEBUG - 2015-01-21 14:25:16 --> Config Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:25:16 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:25:16 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:25:16 --> URI Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Router Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Output Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Security Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Input Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:25:16 --> Language Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Loader Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:25:16 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:25:16 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:25:16 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:25:16 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:25:16 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:25:16 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:25:17 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:25:17 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:25:17 --> Controller Class Initialized
DEBUG - 2015-01-21 14:25:17 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:25:17 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:25:17 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:25:17 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:25:17 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:17 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:17 --> Final output sent to browser
DEBUG - 2015-01-21 14:25:17 --> Total execution time: 1.1143
DEBUG - 2015-01-21 14:25:22 --> Config Class Initialized
DEBUG - 2015-01-21 14:25:22 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:25:22 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:25:22 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:25:22 --> URI Class Initialized
DEBUG - 2015-01-21 14:25:22 --> Router Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Output Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Security Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Input Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:25:23 --> Language Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Loader Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:25:23 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:25:23 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:25:23 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:25:23 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:25:23 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:25:23 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:25:23 --> Controller Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:25:23 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:25:23 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:25:23 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:25:23 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 14:25:23 --> Final output sent to browser
DEBUG - 2015-01-21 14:25:23 --> Total execution time: 0.2696
DEBUG - 2015-01-21 14:25:25 --> Config Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:25:25 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:25:25 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:25:25 --> URI Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Router Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Output Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Security Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Input Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:25:25 --> Language Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Loader Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:25:25 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:25:25 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:25:25 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:25:25 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:25:25 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:25:25 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:25:25 --> Controller Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:25:25 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:25:25 --> Model Class Initialized
DEBUG - 2015-01-21 14:25:25 --> Model Class Initialized
DEBUG - 2015-01-21 05:25:25 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:25:25 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:25:25 --> Final output sent to browser
DEBUG - 2015-01-21 05:25:25 --> Total execution time: 0.2787
DEBUG - 2015-01-21 14:26:16 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:16 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:16 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:16 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:16 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:16 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:16 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:16 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:16 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:16 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:16 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:16 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:16 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:16 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:16 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:16 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:16 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:16 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:16 --> Total execution time: 0.2670
DEBUG - 2015-01-21 14:26:23 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:23 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:23 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:23 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:23 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:23 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:23 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:23 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:23 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:23 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:23 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:23 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:23 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:23 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:23 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:23 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:23 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:23 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:23 --> Total execution time: 0.2895
DEBUG - 2015-01-21 14:26:27 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:27 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:27 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:27 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:27 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:27 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:27 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:27 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:27 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:27 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:27 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:27 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:27 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:27 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:27 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:27 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:27 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:27 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:27 --> Total execution time: 0.2692
DEBUG - 2015-01-21 14:26:29 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:29 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:29 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:29 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:29 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:29 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:29 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:29 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:29 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:29 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:29 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:29 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:29 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:29 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:29 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:29 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:30 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:30 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:30 --> Total execution time: 0.2463
DEBUG - 2015-01-21 14:26:31 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:31 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:31 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:31 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:31 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:31 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:32 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:32 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:32 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:32 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:32 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:32 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:32 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:32 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:32 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:32 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:32 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:32 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:32 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:32 --> Total execution time: 0.4085
DEBUG - 2015-01-21 14:26:33 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:33 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:33 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:33 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:33 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:33 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:33 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:33 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:33 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:33 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:33 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:33 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:33 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:33 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:33 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:33 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:33 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:33 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:33 --> Total execution time: 0.4416
DEBUG - 2015-01-21 14:26:34 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:34 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:34 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:34 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:34 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:34 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:34 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:34 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:34 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:34 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:34 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:34 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:34 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:34 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:34 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:34 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:34 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:34 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:34 --> Total execution time: 0.2523
DEBUG - 2015-01-21 14:26:36 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:36 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:36 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:36 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:36 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:36 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:36 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:36 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:36 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:36 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:36 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:36 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:36 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:36 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:36 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:36 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:36 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:36 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:36 --> Total execution time: 0.2639
DEBUG - 2015-01-21 14:26:38 --> Config Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:26:38 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:26:38 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:26:38 --> URI Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Router Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Output Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Security Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Input Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:26:38 --> Language Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Loader Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:26:38 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:26:38 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:26:38 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:26:38 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:26:38 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:26:38 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:26:38 --> Controller Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:26:38 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:26:38 --> Model Class Initialized
DEBUG - 2015-01-21 14:26:38 --> Model Class Initialized
DEBUG - 2015-01-21 05:26:38 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:26:38 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:26:38 --> Final output sent to browser
DEBUG - 2015-01-21 05:26:38 --> Total execution time: 0.2715
DEBUG - 2015-01-21 14:27:02 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:02 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:02 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:02 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:02 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:02 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:02 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:02 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:02 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:02 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:02 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:02 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:02 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:02 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:02 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:02 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:02 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:02 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:02 --> Total execution time: 0.2406
DEBUG - 2015-01-21 14:27:23 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:23 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:23 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:23 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:23 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:23 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:23 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:23 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:23 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:23 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:23 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:23 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:23 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:23 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:23 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:23 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:23 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:23 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:23 --> Total execution time: 0.2651
DEBUG - 2015-01-21 14:27:30 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:30 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:30 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:30 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:30 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:30 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:30 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:30 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:30 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:30 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:30 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:30 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:30 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:30 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:30 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:30 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:30 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:31 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:31 --> Total execution time: 0.2713
DEBUG - 2015-01-21 14:27:33 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:33 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:33 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:33 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:33 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:33 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:33 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:33 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:33 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:33 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:33 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:33 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:33 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:33 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:33 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:33 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:33 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:33 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:33 --> Total execution time: 0.2523
DEBUG - 2015-01-21 14:27:34 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:34 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:34 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:34 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:34 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:34 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:34 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:34 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:34 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:34 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:34 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:34 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:34 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:34 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:34 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:34 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:34 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:34 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:34 --> Total execution time: 0.2527
DEBUG - 2015-01-21 14:27:36 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:36 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:36 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:36 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:36 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:36 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:36 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:36 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:36 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:36 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:36 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:36 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:36 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:36 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:36 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:36 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:36 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:36 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:36 --> Total execution time: 0.2687
DEBUG - 2015-01-21 14:27:37 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:37 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:37 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:37 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:37 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:37 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:37 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:37 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:37 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:37 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:37 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:37 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:37 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:37 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:37 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:37 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:37 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:37 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:37 --> Total execution time: 0.2364
DEBUG - 2015-01-21 14:27:38 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:38 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:38 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:38 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:38 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:38 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:38 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:38 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:38 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:38 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:38 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:38 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:39 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:39 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:39 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:39 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:39 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:39 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:39 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:39 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:39 --> Total execution time: 0.2520
DEBUG - 2015-01-21 14:27:40 --> Config Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:27:40 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:27:40 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:27:40 --> URI Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Router Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Output Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Security Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Input Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:27:40 --> Language Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Loader Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:27:40 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:27:40 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:27:40 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:27:40 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:27:40 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:27:40 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:27:40 --> Controller Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:27:40 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:27:40 --> Model Class Initialized
DEBUG - 2015-01-21 14:27:40 --> Model Class Initialized
DEBUG - 2015-01-21 05:27:40 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:27:40 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:27:40 --> Final output sent to browser
DEBUG - 2015-01-21 05:27:40 --> Total execution time: 0.2415
DEBUG - 2015-01-21 14:28:08 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:08 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:08 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:08 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:08 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:08 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:08 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:08 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:08 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:08 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:08 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:08 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:08 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:08 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:08 --> Model Class Initialized
DEBUG - 2015-01-21 05:28:08 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:28:08 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:28:08 --> Final output sent to browser
DEBUG - 2015-01-21 05:28:08 --> Total execution time: 0.2499
DEBUG - 2015-01-21 14:28:34 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:34 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:34 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:34 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:34 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:34 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:34 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:34 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:34 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:34 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:34 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:34 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:34 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:34 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:34 --> Model Class Initialized
DEBUG - 2015-01-21 05:28:34 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:28:34 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 05:28:34 --> Final output sent to browser
DEBUG - 2015-01-21 05:28:34 --> Total execution time: 0.3767
DEBUG - 2015-01-21 14:28:37 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:37 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:38 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:38 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:38 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:38 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:38 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:38 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:38 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:38 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:38 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:38 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:38 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:28:38 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:28:38 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:38 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:38 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 14:28:38 --> Final output sent to browser
DEBUG - 2015-01-21 14:28:38 --> Total execution time: 0.2372
DEBUG - 2015-01-21 14:28:40 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:40 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:40 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:40 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:40 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:40 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:40 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:40 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:40 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:40 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:40 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:40 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:40 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:40 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:40 --> Model Class Initialized
DEBUG - 2015-01-21 05:28:40 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:28:40 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:28:40 --> Final output sent to browser
DEBUG - 2015-01-21 05:28:40 --> Total execution time: 0.2760
DEBUG - 2015-01-21 14:28:42 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:42 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:42 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:42 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:42 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:42 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:42 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:42 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:42 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:42 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:42 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:42 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:42 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:42 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:42 --> Model Class Initialized
DEBUG - 2015-01-21 05:28:42 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:28:42 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 05:28:42 --> Final output sent to browser
DEBUG - 2015-01-21 05:28:42 --> Total execution time: 0.2444
DEBUG - 2015-01-21 14:28:48 --> Config Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:28:48 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:28:48 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:28:48 --> URI Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Router Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Output Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Security Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Input Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:28:48 --> Language Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Loader Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:28:48 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:28:48 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:28:48 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:28:48 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:28:48 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:28:48 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:28:48 --> Controller Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:28:48 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:28:48 --> Model Class Initialized
DEBUG - 2015-01-21 14:28:48 --> Model Class Initialized
DEBUG - 2015-01-21 05:28:48 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:28:48 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:28:48 --> Final output sent to browser
DEBUG - 2015-01-21 05:28:48 --> Total execution time: 0.2522
DEBUG - 2015-01-21 14:30:54 --> Config Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:30:54 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:30:54 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:30:54 --> URI Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Router Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Output Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Security Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Input Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:30:54 --> Language Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Loader Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:30:54 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:30:54 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:30:54 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:30:54 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:30:54 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Session: Regenerate ID
DEBUG - 2015-01-21 14:30:54 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:30:54 --> Controller Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:30:54 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:30:54 --> Model Class Initialized
DEBUG - 2015-01-21 14:30:54 --> Model Class Initialized
DEBUG - 2015-01-21 05:30:54 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:30:54 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:30:54 --> Final output sent to browser
DEBUG - 2015-01-21 05:30:54 --> Total execution time: 0.3286
DEBUG - 2015-01-21 14:31:00 --> Config Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:31:00 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:31:00 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:31:00 --> URI Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Router Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Output Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Security Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Input Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:31:00 --> Language Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Loader Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:31:00 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:31:00 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:31:00 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:31:00 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:31:00 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:31:00 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:31:00 --> Controller Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:31:00 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:31:00 --> Model Class Initialized
DEBUG - 2015-01-21 14:31:00 --> Model Class Initialized
DEBUG - 2015-01-21 05:31:00 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:31:00 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 05:31:00 --> Final output sent to browser
DEBUG - 2015-01-21 05:31:00 --> Total execution time: 0.2422
DEBUG - 2015-01-21 14:31:01 --> Config Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:31:01 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:31:01 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:31:01 --> URI Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Router Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Output Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Security Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Input Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:31:01 --> Language Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Loader Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:31:01 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:31:01 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:31:01 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:31:01 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:31:01 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:31:01 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:31:02 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:31:02 --> Controller Class Initialized
DEBUG - 2015-01-21 14:31:02 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:31:02 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:31:02 --> Model Class Initialized
DEBUG - 2015-01-21 14:31:02 --> Model Class Initialized
DEBUG - 2015-01-21 05:31:02 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:31:02 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:31:02 --> Final output sent to browser
DEBUG - 2015-01-21 05:31:02 --> Total execution time: 0.2753
DEBUG - 2015-01-21 14:31:04 --> Config Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:31:04 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:31:04 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:31:04 --> URI Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Router Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Output Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Security Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Input Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:31:04 --> Language Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Loader Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:31:04 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:31:04 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:31:04 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:31:04 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:31:04 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:31:04 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:31:04 --> Controller Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:31:04 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:31:04 --> Model Class Initialized
DEBUG - 2015-01-21 14:31:04 --> Model Class Initialized
DEBUG - 2015-01-21 05:31:04 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:31:04 --> File loaded: C:\xampp\htdocs\geovalores\application\views\ventas/contrucciones.php
DEBUG - 2015-01-21 05:31:04 --> Final output sent to browser
DEBUG - 2015-01-21 05:31:04 --> Total execution time: 0.2687
DEBUG - 2015-01-21 14:31:07 --> Config Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:31:07 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:31:07 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:31:07 --> URI Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Router Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Output Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Security Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Input Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:31:07 --> Language Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Loader Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:31:07 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:31:07 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:31:07 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:31:07 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:31:07 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:31:07 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:31:07 --> Controller Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:31:07 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:31:07 --> Model Class Initialized
DEBUG - 2015-01-21 14:31:07 --> Model Class Initialized
DEBUG - 2015-01-21 05:31:07 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:31:07 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:31:07 --> Final output sent to browser
DEBUG - 2015-01-21 05:31:07 --> Total execution time: 0.2737
DEBUG - 2015-01-21 14:57:00 --> Config Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:57:00 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:57:00 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:57:00 --> URI Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Router Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Output Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Security Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Input Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:57:00 --> Language Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Loader Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:57:00 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:57:00 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:57:00 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:57:00 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:57:00 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Session: Regenerate ID
DEBUG - 2015-01-21 14:57:00 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:57:00 --> Controller Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:57:00 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:57:00 --> Model Class Initialized
DEBUG - 2015-01-21 14:57:00 --> Model Class Initialized
DEBUG - 2015-01-21 05:57:00 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:57:00 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 05:57:00 --> Final output sent to browser
DEBUG - 2015-01-21 05:57:00 --> Total execution time: 0.4510
DEBUG - 2015-01-21 14:57:22 --> Config Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:57:22 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:57:22 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:57:22 --> URI Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Router Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Output Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Security Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Input Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:57:22 --> Language Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Loader Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:57:22 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:57:22 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:57:22 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:57:22 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:57:22 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:57:22 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:57:22 --> Controller Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:57:22 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:57:22 --> Model Class Initialized
DEBUG - 2015-01-21 14:57:22 --> Model Class Initialized
DEBUG - 2015-01-21 05:57:22 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:57:22 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 05:57:22 --> Final output sent to browser
DEBUG - 2015-01-21 05:57:22 --> Total execution time: 0.4276
DEBUG - 2015-01-21 14:57:38 --> Config Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:57:38 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:57:38 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:57:38 --> URI Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Router Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Output Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Security Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Input Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:57:38 --> Language Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Loader Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:57:38 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:57:38 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:57:38 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:57:38 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:57:38 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:57:38 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:57:38 --> Controller Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:57:38 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:57:38 --> Model Class Initialized
DEBUG - 2015-01-21 14:57:38 --> Model Class Initialized
DEBUG - 2015-01-21 05:57:38 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:57:38 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 05:57:38 --> Final output sent to browser
DEBUG - 2015-01-21 05:57:38 --> Total execution time: 0.2865
DEBUG - 2015-01-21 14:58:37 --> Config Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:58:37 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:58:37 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:58:37 --> URI Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Router Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Output Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Security Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Input Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:58:37 --> Language Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Loader Class Initialized
DEBUG - 2015-01-21 14:58:37 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:58:37 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:58:37 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:58:37 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:58:38 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:58:38 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:58:38 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:58:38 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:58:38 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:58:38 --> Controller Class Initialized
DEBUG - 2015-01-21 14:58:38 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:58:38 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:58:38 --> Model Class Initialized
DEBUG - 2015-01-21 14:58:38 --> Model Class Initialized
DEBUG - 2015-01-21 05:58:38 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:58:38 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 05:58:38 --> Final output sent to browser
DEBUG - 2015-01-21 05:58:38 --> Total execution time: 0.2359
DEBUG - 2015-01-21 14:59:45 --> Config Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:59:45 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:59:45 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:59:45 --> URI Class Initialized
DEBUG - 2015-01-21 14:59:45 --> No URI present. Default controller set.
DEBUG - 2015-01-21 14:59:45 --> Router Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Output Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Security Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Input Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:59:45 --> Language Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Loader Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:59:45 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:59:45 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:59:45 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:59:45 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:59:45 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:59:45 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:59:45 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:59:46 --> Controller Class Initialized
DEBUG - 2015-01-21 14:59:46 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:59:46 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:59:46 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:59:46 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:59:46 --> Model Class Initialized
DEBUG - 2015-01-21 14:59:46 --> Model Class Initialized
DEBUG - 2015-01-21 14:59:46 --> File loaded: C:\xampp\htdocs\geovalores\application\views\Inicio.php
DEBUG - 2015-01-21 14:59:46 --> Final output sent to browser
DEBUG - 2015-01-21 14:59:46 --> Total execution time: 0.6325
DEBUG - 2015-01-21 14:59:47 --> Config Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:59:47 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:59:47 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:59:47 --> URI Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Router Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Output Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Security Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Input Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:59:47 --> Language Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Loader Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:59:47 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:59:47 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:59:47 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:59:47 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:59:47 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:59:47 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:59:48 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:59:48 --> Controller Class Initialized
DEBUG - 2015-01-21 14:59:48 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 14:59:48 --> Form Validation Class Initialized
DEBUG - 2015-01-21 14:59:48 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:59:48 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:59:48 --> Model Class Initialized
DEBUG - 2015-01-21 14:59:48 --> Model Class Initialized
DEBUG - 2015-01-21 14:59:48 --> Final output sent to browser
DEBUG - 2015-01-21 14:59:48 --> Total execution time: 0.7356
DEBUG - 2015-01-21 14:59:53 --> Config Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Hooks Class Initialized
DEBUG - 2015-01-21 14:59:53 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 14:59:53 --> Utf8 Class Initialized
DEBUG - 2015-01-21 14:59:53 --> URI Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Router Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Output Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Security Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Input Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 14:59:53 --> Language Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Loader Class Initialized
DEBUG - 2015-01-21 14:59:53 --> Helper loaded: url_helper
DEBUG - 2015-01-21 14:59:53 --> Helper loaded: file_helper
DEBUG - 2015-01-21 14:59:53 --> Helper loaded: form_helper
DEBUG - 2015-01-21 14:59:53 --> CI_Session Class Initialized
DEBUG - 2015-01-21 14:59:54 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 14:59:54 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 14:59:54 --> Encryption Class Initialized
DEBUG - 2015-01-21 14:59:54 --> Database Driver Class Initialized
DEBUG - 2015-01-21 14:59:54 --> CI_Session routines successfully run
DEBUG - 2015-01-21 14:59:54 --> Controller Class Initialized
DEBUG - 2015-01-21 14:59:54 --> Helper loaded: date_helper
DEBUG - 2015-01-21 14:59:54 --> Helper loaded: html_helper
DEBUG - 2015-01-21 14:59:54 --> Model Class Initialized
DEBUG - 2015-01-21 14:59:54 --> Model Class Initialized
DEBUG - 2015-01-21 05:59:54 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 05:59:54 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 05:59:54 --> Final output sent to browser
DEBUG - 2015-01-21 05:59:54 --> Total execution time: 0.9023
DEBUG - 2015-01-21 15:00:00 --> Config Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:00:00 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:00:00 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:00:00 --> URI Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Router Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Output Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Security Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Input Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:00:00 --> Language Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Loader Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:00:00 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:00:00 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:00:00 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:00:00 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:00:00 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:00:00 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:00:00 --> Controller Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:00:00 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:00:00 --> Model Class Initialized
DEBUG - 2015-01-21 15:00:00 --> Model Class Initialized
DEBUG - 2015-01-21 06:00:00 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:00:13 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/desactiva.php
DEBUG - 2015-01-21 06:00:26 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 06:00:26 --> Final output sent to browser
DEBUG - 2015-01-21 06:00:26 --> Total execution time: 26.5233
DEBUG - 2015-01-21 15:01:14 --> Config Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:01:14 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:01:14 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:01:14 --> URI Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Router Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Output Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Security Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Input Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:01:14 --> Language Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Loader Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:01:14 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:01:14 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:01:14 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:01:14 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:01:14 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:01:14 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:01:14 --> Controller Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:01:14 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:01:14 --> Model Class Initialized
DEBUG - 2015-01-21 15:01:14 --> Model Class Initialized
DEBUG - 2015-01-21 06:01:14 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:01:19 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/desactiva.php
DEBUG - 2015-01-21 06:01:19 --> Final output sent to browser
DEBUG - 2015-01-21 06:01:19 --> Total execution time: 5.3398
DEBUG - 2015-01-21 15:08:39 --> Config Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:08:39 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:08:39 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:08:39 --> URI Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Router Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Output Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Security Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Input Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:08:39 --> Language Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Loader Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:08:39 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:08:39 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:08:39 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:08:39 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:08:39 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:08:39 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:08:39 --> Controller Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:08:39 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:08:39 --> Model Class Initialized
DEBUG - 2015-01-21 15:08:39 --> Model Class Initialized
DEBUG - 2015-01-21 06:08:39 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:08:39 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:08:39 --> Final output sent to browser
DEBUG - 2015-01-21 06:08:39 --> Total execution time: 0.4914
DEBUG - 2015-01-21 15:11:56 --> Config Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:11:56 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:11:56 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:11:56 --> URI Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Router Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Output Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Security Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Input Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:11:56 --> Language Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Loader Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:11:56 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:11:56 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:11:56 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:11:56 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:11:56 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:11:56 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:11:56 --> Controller Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:11:56 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:11:56 --> Model Class Initialized
DEBUG - 2015-01-21 15:11:56 --> Model Class Initialized
DEBUG - 2015-01-21 06:11:56 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:11:56 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:11:56 --> Final output sent to browser
DEBUG - 2015-01-21 06:11:56 --> Total execution time: 0.3062
DEBUG - 2015-01-21 15:12:22 --> Config Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:12:22 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:12:22 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:12:22 --> URI Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Router Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Output Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Security Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Input Class Initialized
DEBUG - 2015-01-21 15:12:22 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:12:22 --> Language Class Initialized
ERROR - 2015-01-21 15:12:22 --> 404 Page Not Found: Cambiarestado/index
DEBUG - 2015-01-21 15:14:20 --> Config Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:14:20 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:14:20 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:14:20 --> URI Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Router Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Output Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Security Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Input Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:14:20 --> Language Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Loader Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:14:20 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:14:20 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:14:20 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:14:20 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:14:20 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:14:20 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:14:20 --> Controller Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:14:20 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:14:20 --> Model Class Initialized
DEBUG - 2015-01-21 15:14:20 --> Model Class Initialized
DEBUG - 2015-01-21 06:14:20 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:14:20 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:14:20 --> Final output sent to browser
DEBUG - 2015-01-21 06:14:21 --> Total execution time: 0.6306
DEBUG - 2015-01-21 15:15:04 --> Config Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:15:04 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:15:04 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:15:04 --> URI Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Router Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Output Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Security Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Input Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:15:04 --> Language Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Loader Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:15:04 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:15:04 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:15:04 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:15:04 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:15:04 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:15:04 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:15:04 --> Controller Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:15:04 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:15:04 --> Model Class Initialized
DEBUG - 2015-01-21 15:15:04 --> Model Class Initialized
DEBUG - 2015-01-21 06:15:04 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:15:04 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:15:04 --> Final output sent to browser
DEBUG - 2015-01-21 06:15:04 --> Total execution time: 0.4322
DEBUG - 2015-01-21 15:15:23 --> Config Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:15:23 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:15:23 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:15:23 --> URI Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Router Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Output Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Security Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Input Class Initialized
DEBUG - 2015-01-21 15:15:23 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:15:23 --> Language Class Initialized
ERROR - 2015-01-21 15:15:23 --> 404 Page Not Found: Cambiarestado/index
DEBUG - 2015-01-21 15:21:20 --> Config Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:21:20 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:21:20 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:21:20 --> URI Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Router Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Output Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Security Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Input Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:21:20 --> Language Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Loader Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:21:20 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:21:20 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:21:20 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:21:20 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:21:20 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:21:20 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:21:20 --> Controller Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:21:20 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:21:20 --> Model Class Initialized
DEBUG - 2015-01-21 15:21:20 --> Model Class Initialized
DEBUG - 2015-01-21 06:21:20 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:21:20 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:21:20 --> Final output sent to browser
DEBUG - 2015-01-21 06:21:20 --> Total execution time: 0.3374
DEBUG - 2015-01-21 15:21:27 --> Config Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:21:27 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:21:27 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:21:27 --> URI Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Router Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Output Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Security Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Input Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:21:27 --> Language Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Loader Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:21:27 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:21:27 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:21:27 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:21:27 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:21:27 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:21:27 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:21:28 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:21:28 --> Controller Class Initialized
DEBUG - 2015-01-21 15:21:28 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:21:28 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:21:28 --> Model Class Initialized
DEBUG - 2015-01-21 15:21:28 --> Model Class Initialized
DEBUG - 2015-01-21 06:21:28 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:21:28 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 06:21:28 --> Final output sent to browser
DEBUG - 2015-01-21 06:21:28 --> Total execution time: 0.4254
DEBUG - 2015-01-21 15:21:32 --> Config Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:21:32 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:21:32 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:21:32 --> URI Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Router Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Output Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Security Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Input Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:21:32 --> Language Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Loader Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:21:32 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:21:32 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:21:32 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:21:32 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:21:32 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:21:32 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:21:32 --> Controller Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:21:32 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:21:32 --> Model Class Initialized
DEBUG - 2015-01-21 15:21:32 --> Model Class Initialized
DEBUG - 2015-01-21 06:21:32 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:21:32 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:21:32 --> Final output sent to browser
DEBUG - 2015-01-21 06:21:32 --> Total execution time: 0.3914
DEBUG - 2015-01-21 15:21:46 --> Config Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:21:46 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:21:46 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:21:46 --> URI Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Router Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Output Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Security Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Input Class Initialized
DEBUG - 2015-01-21 15:21:46 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:21:46 --> Language Class Initialized
ERROR - 2015-01-21 15:21:46 --> 404 Page Not Found: Cambiarestado/index
DEBUG - 2015-01-21 15:22:23 --> Config Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:22:23 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:22:23 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:22:23 --> URI Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Router Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Output Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Security Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Input Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:22:23 --> Language Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Loader Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:22:23 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:22:23 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:22:23 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:22:23 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:22:23 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:22:23 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:22:23 --> Controller Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:22:23 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:22:23 --> Model Class Initialized
DEBUG - 2015-01-21 15:22:23 --> Model Class Initialized
DEBUG - 2015-01-21 06:22:23 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:22:23 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:22:23 --> Final output sent to browser
DEBUG - 2015-01-21 06:22:23 --> Total execution time: 0.3732
DEBUG - 2015-01-21 15:23:17 --> Config Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:23:17 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:23:17 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:23:17 --> URI Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Router Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Output Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Security Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Input Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:23:17 --> Language Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Loader Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:23:17 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:23:17 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:23:17 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:23:17 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:23:17 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:23:17 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:23:17 --> Controller Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:23:17 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:23:17 --> Model Class Initialized
DEBUG - 2015-01-21 15:23:17 --> Model Class Initialized
DEBUG - 2015-01-21 06:23:17 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:23:17 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:23:17 --> Final output sent to browser
DEBUG - 2015-01-21 06:23:17 --> Total execution time: 0.3077
DEBUG - 2015-01-21 15:23:29 --> Config Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:23:29 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:23:29 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:23:29 --> URI Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Router Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Output Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Security Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Input Class Initialized
DEBUG - 2015-01-21 15:23:29 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:23:29 --> Language Class Initialized
ERROR - 2015-01-21 15:23:29 --> 404 Page Not Found: Publicadas/Publicadas
DEBUG - 2015-01-21 15:24:05 --> Config Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:24:05 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:24:05 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:24:05 --> URI Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Router Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Output Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Security Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Input Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:24:05 --> Language Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Loader Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:24:05 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:24:05 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:24:05 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:24:05 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:24:05 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:24:05 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:24:05 --> Controller Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:24:05 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:24:05 --> Model Class Initialized
DEBUG - 2015-01-21 15:24:05 --> Model Class Initialized
DEBUG - 2015-01-21 06:24:05 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:24:05 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 06:24:05 --> Final output sent to browser
DEBUG - 2015-01-21 06:24:05 --> Total execution time: 0.3496
DEBUG - 2015-01-21 15:24:07 --> Config Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:24:07 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:24:07 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:24:07 --> URI Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Router Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Output Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Security Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Input Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:24:07 --> Language Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Loader Class Initialized
DEBUG - 2015-01-21 15:24:07 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:24:08 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:24:08 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:24:08 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:24:08 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:24:08 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:24:08 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:24:08 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:24:08 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:24:08 --> Controller Class Initialized
DEBUG - 2015-01-21 15:24:08 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:24:08 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:24:08 --> Model Class Initialized
DEBUG - 2015-01-21 15:24:08 --> Model Class Initialized
DEBUG - 2015-01-21 06:24:08 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:24:08 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:24:08 --> Final output sent to browser
DEBUG - 2015-01-21 06:24:08 --> Total execution time: 0.4539
DEBUG - 2015-01-21 15:24:12 --> Config Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:24:12 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:24:12 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:24:12 --> URI Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Router Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Output Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Security Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Input Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:24:12 --> Language Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Loader Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:24:12 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:24:12 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:24:12 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:24:12 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:24:12 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:24:12 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:24:13 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:24:13 --> Controller Class Initialized
DEBUG - 2015-01-21 15:24:13 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:24:13 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:24:13 --> Model Class Initialized
DEBUG - 2015-01-21 15:24:13 --> Model Class Initialized
DEBUG - 2015-01-21 06:24:13 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:24:13 --> Final output sent to browser
DEBUG - 2015-01-21 06:24:13 --> Total execution time: 0.5377
DEBUG - 2015-01-21 15:24:40 --> Config Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:24:40 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:24:40 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:24:40 --> URI Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Router Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Output Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Security Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Input Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:24:40 --> Language Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Loader Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:24:40 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:24:40 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:24:40 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:24:40 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:24:40 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:24:40 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:24:40 --> Controller Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:24:40 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:24:40 --> Model Class Initialized
DEBUG - 2015-01-21 15:24:40 --> Model Class Initialized
DEBUG - 2015-01-21 06:24:40 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:24:56 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/desactiva.php
DEBUG - 2015-01-21 06:24:56 --> Final output sent to browser
DEBUG - 2015-01-21 06:24:56 --> Total execution time: 16.3785
DEBUG - 2015-01-21 15:25:09 --> Config Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:25:09 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:25:09 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:25:09 --> URI Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Router Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Output Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Security Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Input Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:25:09 --> Language Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Loader Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:25:09 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:25:09 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:25:09 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:25:09 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:25:09 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:25:09 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:25:09 --> Controller Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:25:09 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:25:09 --> Model Class Initialized
DEBUG - 2015-01-21 15:25:09 --> Model Class Initialized
DEBUG - 2015-01-21 06:25:09 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:25:09 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 06:25:09 --> Final output sent to browser
DEBUG - 2015-01-21 06:25:09 --> Total execution time: 0.5523
DEBUG - 2015-01-21 15:25:12 --> Config Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:25:12 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:25:12 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:25:12 --> URI Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Router Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Output Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Security Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Input Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:25:12 --> Language Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Loader Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:25:12 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:25:12 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:25:12 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:25:12 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:25:12 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:25:12 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:25:12 --> Controller Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:25:12 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:25:12 --> Model Class Initialized
DEBUG - 2015-01-21 15:25:12 --> Model Class Initialized
DEBUG - 2015-01-21 06:25:12 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:25:12 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:25:12 --> Final output sent to browser
DEBUG - 2015-01-21 06:25:12 --> Total execution time: 0.4340
DEBUG - 2015-01-21 15:25:17 --> Config Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:25:17 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:25:17 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:25:17 --> URI Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Router Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Output Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Security Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Input Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:25:17 --> Language Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Loader Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:25:17 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:25:17 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:25:17 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:25:17 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:25:17 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:25:17 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:25:17 --> Controller Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:25:17 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:25:17 --> Model Class Initialized
DEBUG - 2015-01-21 15:25:17 --> Model Class Initialized
DEBUG - 2015-01-21 06:25:17 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:25:22 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/desactiva.php
DEBUG - 2015-01-21 06:25:22 --> Final output sent to browser
DEBUG - 2015-01-21 06:25:22 --> Total execution time: 5.3872
DEBUG - 2015-01-21 15:25:35 --> Config Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:25:35 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:25:35 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:25:35 --> URI Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Router Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Output Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Security Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Input Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:25:35 --> Language Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Loader Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:25:35 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:25:35 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:25:35 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:25:35 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:25:35 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:25:35 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:25:35 --> Controller Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:25:35 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:25:35 --> Model Class Initialized
DEBUG - 2015-01-21 15:25:35 --> Model Class Initialized
DEBUG - 2015-01-21 06:25:35 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:25:35 --> Final output sent to browser
DEBUG - 2015-01-21 06:25:35 --> Total execution time: 0.5331
DEBUG - 2015-01-21 15:25:42 --> Config Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:25:42 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:25:42 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:25:42 --> URI Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Router Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Output Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Security Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Input Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:25:42 --> Language Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Loader Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:25:42 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:25:42 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:25:42 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:25:42 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:25:42 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:25:42 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:25:42 --> Controller Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:25:42 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:25:42 --> Model Class Initialized
DEBUG - 2015-01-21 15:25:42 --> Model Class Initialized
DEBUG - 2015-01-21 06:25:42 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:25:42 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 06:25:42 --> Final output sent to browser
DEBUG - 2015-01-21 06:25:42 --> Total execution time: 0.3220
DEBUG - 2015-01-21 15:35:22 --> Config Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:35:22 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:35:22 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:35:22 --> URI Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Router Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Output Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Security Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Input Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:35:22 --> Language Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Loader Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:35:22 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:35:22 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:35:22 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:35:22 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:35:22 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:35:22 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:35:22 --> Controller Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:35:22 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:35:22 --> Model Class Initialized
DEBUG - 2015-01-21 15:35:22 --> Model Class Initialized
DEBUG - 2015-01-21 06:35:22 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:35:22 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:35:22 --> Final output sent to browser
DEBUG - 2015-01-21 06:35:22 --> Total execution time: 0.3758
DEBUG - 2015-01-21 15:35:25 --> Config Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:35:25 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:35:25 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:35:25 --> URI Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Router Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Output Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Security Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Input Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:35:25 --> Language Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Loader Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:35:25 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:35:25 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:35:25 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:35:25 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:35:25 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:35:25 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:35:25 --> Controller Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:35:25 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:35:25 --> Model Class Initialized
DEBUG - 2015-01-21 15:35:25 --> Model Class Initialized
DEBUG - 2015-01-21 06:35:25 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:35:26 --> Final output sent to browser
DEBUG - 2015-01-21 06:35:26 --> Total execution time: 0.3943
DEBUG - 2015-01-21 15:35:26 --> Config Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:35:26 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:35:26 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:35:26 --> URI Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Router Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Output Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Security Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Input Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:35:26 --> Language Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Loader Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:35:26 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:35:26 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:35:26 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:35:26 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:35:26 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:35:26 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:35:26 --> Controller Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:35:26 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:35:26 --> Model Class Initialized
DEBUG - 2015-01-21 15:35:26 --> Model Class Initialized
DEBUG - 2015-01-21 06:35:26 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:35:26 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:35:26 --> Final output sent to browser
DEBUG - 2015-01-21 06:35:26 --> Total execution time: 0.4141
DEBUG - 2015-01-21 15:36:35 --> Config Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:36:35 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:36:35 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:36:35 --> URI Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Router Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Output Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Security Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Input Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:36:35 --> Language Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Loader Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:36:35 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:36:35 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:36:35 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:36:35 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:36:35 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:36:35 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:36:35 --> Controller Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:36:35 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:36:35 --> Model Class Initialized
DEBUG - 2015-01-21 15:36:35 --> Model Class Initialized
DEBUG - 2015-01-21 06:36:35 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:36:35 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:36:35 --> Final output sent to browser
DEBUG - 2015-01-21 06:36:35 --> Total execution time: 0.3082
DEBUG - 2015-01-21 15:36:50 --> Config Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:36:50 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:36:50 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:36:50 --> URI Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Router Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Output Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Security Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Input Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:36:50 --> Language Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Loader Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:36:50 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:36:50 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:36:50 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:36:50 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:36:50 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:36:50 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:36:50 --> Controller Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:36:50 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:36:50 --> Model Class Initialized
DEBUG - 2015-01-21 15:36:50 --> Model Class Initialized
DEBUG - 2015-01-21 06:36:50 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:36:50 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:36:50 --> Final output sent to browser
DEBUG - 2015-01-21 06:36:50 --> Total execution time: 0.2893
DEBUG - 2015-01-21 15:39:06 --> Config Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:39:06 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:39:06 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:39:06 --> URI Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Router Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Output Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Security Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Input Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:39:06 --> Language Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Loader Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:39:06 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:39:06 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:39:06 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:39:06 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:39:06 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:39:06 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:39:06 --> Controller Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:39:06 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:39:06 --> Model Class Initialized
DEBUG - 2015-01-21 15:39:06 --> Model Class Initialized
DEBUG - 2015-01-21 06:39:06 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:39:06 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:39:06 --> Final output sent to browser
DEBUG - 2015-01-21 06:39:06 --> Total execution time: 0.3119
DEBUG - 2015-01-21 15:39:21 --> Config Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:39:21 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:39:21 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:39:21 --> URI Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Router Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Output Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Security Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Input Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:39:21 --> Language Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Loader Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:39:21 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:39:21 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:39:21 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:39:21 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:39:21 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:39:21 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:39:21 --> Controller Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:39:21 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:39:21 --> Model Class Initialized
DEBUG - 2015-01-21 15:39:21 --> Model Class Initialized
DEBUG - 2015-01-21 06:39:21 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:39:21 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:39:21 --> Final output sent to browser
DEBUG - 2015-01-21 06:39:21 --> Total execution time: 0.3100
DEBUG - 2015-01-21 15:39:32 --> Config Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:39:32 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:39:32 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:39:32 --> URI Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Router Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Output Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Security Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Input Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:39:32 --> Language Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Loader Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:39:32 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:39:32 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:39:32 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:39:32 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:39:32 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:39:32 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:39:32 --> Controller Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:39:32 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:39:32 --> Model Class Initialized
DEBUG - 2015-01-21 15:39:32 --> Model Class Initialized
DEBUG - 2015-01-21 06:39:32 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:39:32 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/favoritos.php
DEBUG - 2015-01-21 06:39:32 --> Final output sent to browser
DEBUG - 2015-01-21 06:39:32 --> Total execution time: 0.3424
DEBUG - 2015-01-21 15:39:39 --> Config Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:39:39 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:39:39 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:39:39 --> URI Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Router Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Output Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Security Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Input Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:39:39 --> Language Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Loader Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:39:39 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:39:39 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:39:39 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:39:39 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:39:39 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:39:39 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:39:39 --> Controller Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:39:39 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:39:39 --> Model Class Initialized
DEBUG - 2015-01-21 15:39:39 --> Model Class Initialized
DEBUG - 2015-01-21 06:39:39 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:39:39 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:39:39 --> Final output sent to browser
DEBUG - 2015-01-21 06:39:39 --> Total execution time: 0.2999
DEBUG - 2015-01-21 15:39:56 --> Config Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:39:56 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:39:56 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:39:56 --> URI Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Router Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Output Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Security Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Input Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:39:56 --> Language Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Loader Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:39:56 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:39:56 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:39:56 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:39:56 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:39:56 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:39:56 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:39:56 --> Controller Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:39:56 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:39:56 --> Model Class Initialized
DEBUG - 2015-01-21 15:39:56 --> Model Class Initialized
DEBUG - 2015-01-21 06:39:56 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:39:56 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 06:39:56 --> Final output sent to browser
DEBUG - 2015-01-21 06:39:56 --> Total execution time: 0.3731
DEBUG - 2015-01-21 15:40:07 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:07 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:07 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:07 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:07 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:07 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:07 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:07 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:07 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:07 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:07 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:07 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:40:07 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:40:07 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:07 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:07 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 15:40:07 --> Final output sent to browser
DEBUG - 2015-01-21 15:40:07 --> Total execution time: 0.3626
DEBUG - 2015-01-21 15:40:10 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:10 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:10 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:10 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:10 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:10 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:10 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:10 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:10 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:10 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:10 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:10 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:10 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:10 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:10 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:10 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:10 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:10 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:10 --> Total execution time: 0.3052
DEBUG - 2015-01-21 15:40:14 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:14 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:14 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:14 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:14 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:14 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:14 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:14 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:14 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:14 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:14 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:14 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:14 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:14 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:14 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:14 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:14 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:14 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:14 --> Total execution time: 0.5353
DEBUG - 2015-01-21 15:40:39 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:39 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:39 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:39 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:39 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:39 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:39 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:39 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:39 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:39 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:39 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:40 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:40 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:40:40 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:40 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:40 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:40 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:40 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:40 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:40 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:40 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:40 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:40 --> Total execution time: 0.3838
DEBUG - 2015-01-21 15:40:43 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:43 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:43 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:43 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:43 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:43 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:43 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:43 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:43 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:43 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:43 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:43 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:43 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:43 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:43 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:43 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:43 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:43 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:43 --> Total execution time: 0.4880
DEBUG - 2015-01-21 15:40:46 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:46 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:46 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:46 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:46 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:46 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:46 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:46 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:46 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:47 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:47 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:47 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:47 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:47 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:47 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:47 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:47 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:47 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:47 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:47 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:47 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:47 --> Total execution time: 0.3447
DEBUG - 2015-01-21 15:40:49 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:49 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:49 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:49 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:49 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:49 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:49 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:49 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:49 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:49 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:49 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:49 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:49 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:49 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:49 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:49 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:49 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:49 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:49 --> Total execution time: 0.2982
DEBUG - 2015-01-21 15:40:51 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:51 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:51 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:51 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:51 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:51 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:51 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:51 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:51 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:51 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:51 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:51 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:51 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:51 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:51 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:51 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:51 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:51 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:51 --> Total execution time: 0.2875
DEBUG - 2015-01-21 15:40:54 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:54 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:54 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:54 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:54 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:54 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:54 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:54 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:54 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:54 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:54 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:54 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:54 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:54 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:54 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:54 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:54 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:54 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:54 --> Total execution time: 0.3906
DEBUG - 2015-01-21 15:40:56 --> Config Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:40:56 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:40:56 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:40:56 --> URI Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Router Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Output Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Security Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Input Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:40:56 --> Language Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Loader Class Initialized
DEBUG - 2015-01-21 15:40:56 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:40:56 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:40:56 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:40:56 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:40:57 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:40:57 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:40:57 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:40:57 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:40:57 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:40:57 --> Controller Class Initialized
DEBUG - 2015-01-21 15:40:57 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:40:57 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:40:57 --> Model Class Initialized
DEBUG - 2015-01-21 15:40:57 --> Model Class Initialized
DEBUG - 2015-01-21 06:40:57 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:40:57 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:40:57 --> Final output sent to browser
DEBUG - 2015-01-21 06:40:57 --> Total execution time: 0.3475
DEBUG - 2015-01-21 15:41:26 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:26 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:26 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:26 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:26 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:26 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:26 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:26 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:26 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:26 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:26 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:26 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:26 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:26 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:26 --> Model Class Initialized
DEBUG - 2015-01-21 06:41:26 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:41:26 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:41:26 --> Final output sent to browser
DEBUG - 2015-01-21 06:41:26 --> Total execution time: 0.3299
DEBUG - 2015-01-21 15:41:31 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:31 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:31 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:31 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:31 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:31 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:31 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:31 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:31 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:31 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:31 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:31 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:31 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:31 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:31 --> Model Class Initialized
DEBUG - 2015-01-21 06:41:31 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:41:31 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:41:31 --> Final output sent to browser
DEBUG - 2015-01-21 06:41:31 --> Total execution time: 0.3945
DEBUG - 2015-01-21 15:41:35 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:35 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:35 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:35 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:35 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:35 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:35 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:35 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:35 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:35 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:35 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:35 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:35 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:41:36 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:36 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:36 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:36 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:36 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:36 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:36 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:36 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:36 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:36 --> A session cookie was not found.
DEBUG - 2015-01-21 15:41:36 --> Session: Creating new session (f2668a69ca449a1daf79f51860d12673)
DEBUG - 2015-01-21 15:41:36 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:36 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:41:36 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:36 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:36 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 15:41:36 --> Final output sent to browser
DEBUG - 2015-01-21 15:41:37 --> Total execution time: 0.4393
DEBUG - 2015-01-21 15:41:37 --> CI_Session Data Saved To DB
DEBUG - 2015-01-21 15:41:58 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:58 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:58 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:58 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:58 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:58 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:58 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:58 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:58 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:58 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:58 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:58 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:41:58 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:41:58 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:58 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:58 --> CI_Session Data Saved To DB
DEBUG - 2015-01-21 15:41:59 --> Config Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:41:59 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:41:59 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:41:59 --> URI Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Router Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Output Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Security Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Input Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:41:59 --> Language Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Loader Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:41:59 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:41:59 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:41:59 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:41:59 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:41:59 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:41:59 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:41:59 --> Controller Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Model Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:41:59 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:41:59 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:41:59 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:41:59 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 15:41:59 --> Final output sent to browser
DEBUG - 2015-01-21 15:41:59 --> Total execution time: 0.8305
DEBUG - 2015-01-21 15:42:00 --> Config Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:42:00 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:42:00 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:42:00 --> URI Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Router Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Output Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Security Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Input Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:42:00 --> Language Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Loader Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:42:00 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:42:00 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:42:00 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:42:00 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:42:00 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:42:00 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:42:00 --> Controller Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Model Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Model Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:42:00 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:42:00 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:42:00 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:42:00 --> File loaded: C:\xampp\htdocs\geovalores\application\views\admin.php
DEBUG - 2015-01-21 15:42:00 --> Final output sent to browser
DEBUG - 2015-01-21 15:42:00 --> Total execution time: 0.3059
DEBUG - 2015-01-21 15:42:02 --> Config Class Initialized
DEBUG - 2015-01-21 15:42:02 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:42:02 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:42:02 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:42:03 --> URI Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Router Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Output Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Security Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Input Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:42:03 --> Language Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Loader Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:42:03 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:42:03 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:42:03 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:42:03 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:42:03 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:42:03 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:42:03 --> Controller Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:42:03 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:42:03 --> Model Class Initialized
DEBUG - 2015-01-21 15:42:03 --> Model Class Initialized
DEBUG - 2015-01-21 06:42:03 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:42:03 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:42:03 --> Final output sent to browser
DEBUG - 2015-01-21 06:42:03 --> Total execution time: 0.3739
DEBUG - 2015-01-21 15:42:17 --> Config Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:42:17 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:42:17 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:42:17 --> URI Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Router Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Output Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Security Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Input Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:42:17 --> Language Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Loader Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:42:17 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:42:17 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:42:17 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:42:17 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:42:17 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:42:17 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:42:17 --> Controller Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:42:17 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:42:17 --> Model Class Initialized
DEBUG - 2015-01-21 15:42:17 --> Model Class Initialized
DEBUG - 2015-01-21 06:42:17 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:42:18 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:42:18 --> Final output sent to browser
DEBUG - 2015-01-21 06:42:18 --> Total execution time: 0.2927
DEBUG - 2015-01-21 15:43:16 --> Config Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:43:16 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:43:16 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:43:16 --> URI Class Initialized
DEBUG - 2015-01-21 15:43:16 --> No URI present. Default controller set.
DEBUG - 2015-01-21 15:43:16 --> Router Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Output Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Security Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Input Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:43:16 --> Language Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Loader Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:43:16 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:43:16 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:43:16 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:43:16 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:43:16 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:43:16 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:43:16 --> Controller Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:43:16 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:43:16 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:43:16 --> Model Class Initialized
DEBUG - 2015-01-21 15:43:16 --> Model Class Initialized
DEBUG - 2015-01-21 15:43:16 --> File loaded: C:\xampp\htdocs\geovalores\application\views\Inicio.php
DEBUG - 2015-01-21 15:43:16 --> Final output sent to browser
DEBUG - 2015-01-21 15:43:16 --> Total execution time: 0.5344
DEBUG - 2015-01-21 15:43:18 --> Config Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:43:18 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:43:18 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:43:18 --> URI Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Router Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Output Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Security Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Input Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:43:18 --> Language Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Loader Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:43:18 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:43:18 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:43:18 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:43:18 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:43:18 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:43:18 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:43:18 --> Controller Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 15:43:18 --> Form Validation Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:43:18 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:43:18 --> Model Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Model Class Initialized
DEBUG - 2015-01-21 15:43:18 --> Final output sent to browser
DEBUG - 2015-01-21 15:43:18 --> Total execution time: 0.5495
DEBUG - 2015-01-21 15:43:27 --> Config Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:43:27 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:43:27 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:43:27 --> URI Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Router Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Output Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Security Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Input Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:43:27 --> Language Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Loader Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:43:27 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:43:27 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:43:27 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:43:27 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:43:27 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:43:27 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:43:28 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:43:28 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:43:28 --> Controller Class Initialized
DEBUG - 2015-01-21 15:43:28 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:43:28 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:43:28 --> Model Class Initialized
DEBUG - 2015-01-21 15:43:28 --> Model Class Initialized
DEBUG - 2015-01-21 06:43:28 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:43:28 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:43:28 --> Final output sent to browser
DEBUG - 2015-01-21 06:43:28 --> Total execution time: 0.3256
DEBUG - 2015-01-21 15:44:26 --> Config Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:44:26 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:44:26 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:44:26 --> URI Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Router Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Output Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Security Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Input Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:44:26 --> Language Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Loader Class Initialized
DEBUG - 2015-01-21 15:44:26 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:44:26 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:44:26 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:44:26 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:44:27 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:44:27 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:44:27 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:44:27 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:44:27 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:44:27 --> Controller Class Initialized
DEBUG - 2015-01-21 15:44:27 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:44:27 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:44:27 --> Model Class Initialized
DEBUG - 2015-01-21 15:44:27 --> Model Class Initialized
DEBUG - 2015-01-21 06:44:27 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:44:27 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:44:27 --> Final output sent to browser
DEBUG - 2015-01-21 06:44:27 --> Total execution time: 0.3580
DEBUG - 2015-01-21 15:45:14 --> Config Class Initialized
DEBUG - 2015-01-21 15:45:14 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:45:14 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:45:14 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:45:14 --> URI Class Initialized
DEBUG - 2015-01-21 15:45:14 --> Router Class Initialized
DEBUG - 2015-01-21 15:45:14 --> Output Class Initialized
DEBUG - 2015-01-21 15:45:14 --> Security Class Initialized
DEBUG - 2015-01-21 15:45:14 --> Input Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:45:15 --> Language Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Loader Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:45:15 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:45:15 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:45:15 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:45:15 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:45:15 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:45:15 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:45:15 --> Controller Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:45:15 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:45:15 --> Model Class Initialized
DEBUG - 2015-01-21 15:45:15 --> Model Class Initialized
DEBUG - 2015-01-21 06:45:15 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:45:15 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:45:15 --> Final output sent to browser
DEBUG - 2015-01-21 06:45:15 --> Total execution time: 0.3135
DEBUG - 2015-01-21 15:45:19 --> Config Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:45:19 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:45:19 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:45:19 --> URI Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Router Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Output Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Security Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Input Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:45:19 --> Language Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Loader Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:45:19 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:45:19 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:45:19 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:45:19 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:45:19 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:45:19 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:45:19 --> Controller Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:45:19 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:45:19 --> Model Class Initialized
DEBUG - 2015-01-21 15:45:19 --> Model Class Initialized
DEBUG - 2015-01-21 06:45:19 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:45:19 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:45:19 --> Final output sent to browser
DEBUG - 2015-01-21 06:45:19 --> Total execution time: 0.2901
DEBUG - 2015-01-21 15:45:28 --> Config Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:45:28 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:45:28 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:45:28 --> URI Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Router Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Output Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Security Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Input Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:45:28 --> Language Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Loader Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:45:28 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:45:28 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:45:28 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:45:28 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:45:28 --> Controller Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:45:28 --> Model Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Model Class Initialized
DEBUG - 2015-01-21 06:45:28 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:45:28 --> Final output sent to browser
DEBUG - 2015-01-21 06:45:28 --> Total execution time: 0.3154
DEBUG - 2015-01-21 15:45:28 --> Config Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:45:28 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:45:28 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:45:28 --> URI Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Router Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Output Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Security Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Input Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:45:28 --> Language Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Loader Class Initialized
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:45:28 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:45:28 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:45:29 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:45:29 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:45:29 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:45:29 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:45:29 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:45:29 --> Controller Class Initialized
DEBUG - 2015-01-21 15:45:29 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:45:29 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:45:29 --> Model Class Initialized
DEBUG - 2015-01-21 15:45:29 --> Model Class Initialized
DEBUG - 2015-01-21 06:45:29 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:45:29 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:45:29 --> Final output sent to browser
DEBUG - 2015-01-21 06:45:29 --> Total execution time: 0.4174
DEBUG - 2015-01-21 15:46:41 --> Config Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:46:41 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:46:41 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:46:41 --> URI Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Router Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Output Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Security Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Input Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:46:41 --> Language Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Loader Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:46:41 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:46:41 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:46:41 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:46:41 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:46:41 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Session: Regenerate ID
DEBUG - 2015-01-21 15:46:41 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:46:41 --> Controller Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:46:41 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:46:41 --> Model Class Initialized
DEBUG - 2015-01-21 15:46:41 --> Model Class Initialized
DEBUG - 2015-01-21 06:46:41 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:46:41 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:46:41 --> Final output sent to browser
DEBUG - 2015-01-21 06:46:41 --> Total execution time: 0.4070
DEBUG - 2015-01-21 15:46:47 --> Config Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:46:47 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:46:47 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:46:47 --> URI Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Router Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Output Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Security Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Input Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:46:47 --> Language Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Loader Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:46:47 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:46:47 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:46:47 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:46:47 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:46:47 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:46:47 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:46:47 --> Controller Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:46:47 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:46:47 --> Model Class Initialized
DEBUG - 2015-01-21 15:46:47 --> Model Class Initialized
DEBUG - 2015-01-21 06:46:47 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:46:48 --> Final output sent to browser
DEBUG - 2015-01-21 06:46:48 --> Total execution time: 0.3884
DEBUG - 2015-01-21 15:46:48 --> Config Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Hooks Class Initialized
DEBUG - 2015-01-21 15:46:48 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 15:46:48 --> Utf8 Class Initialized
DEBUG - 2015-01-21 15:46:48 --> URI Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Router Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Output Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Security Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Input Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 15:46:48 --> Language Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Loader Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Helper loaded: url_helper
DEBUG - 2015-01-21 15:46:48 --> Helper loaded: file_helper
DEBUG - 2015-01-21 15:46:48 --> Helper loaded: form_helper
DEBUG - 2015-01-21 15:46:48 --> CI_Session Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 15:46:48 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 15:46:48 --> Encryption Class Initialized
DEBUG - 2015-01-21 15:46:48 --> Database Driver Class Initialized
DEBUG - 2015-01-21 15:46:48 --> CI_Session routines successfully run
DEBUG - 2015-01-21 15:46:49 --> Controller Class Initialized
DEBUG - 2015-01-21 15:46:49 --> Helper loaded: date_helper
DEBUG - 2015-01-21 15:46:49 --> Helper loaded: html_helper
DEBUG - 2015-01-21 15:46:49 --> Model Class Initialized
DEBUG - 2015-01-21 15:46:49 --> Model Class Initialized
DEBUG - 2015-01-21 06:46:49 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 06:46:49 --> File loaded: C:\xampp\htdocs\geovalores\application\views\misVentas/publicaciones.php
DEBUG - 2015-01-21 06:46:49 --> Final output sent to browser
DEBUG - 2015-01-21 06:46:49 --> Total execution time: 0.6335
DEBUG - 2015-01-21 16:03:20 --> Config Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Hooks Class Initialized
DEBUG - 2015-01-21 16:03:20 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 16:03:20 --> Utf8 Class Initialized
DEBUG - 2015-01-21 16:03:20 --> URI Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Router Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Output Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Security Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Input Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 16:03:20 --> Language Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Loader Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Helper loaded: url_helper
DEBUG - 2015-01-21 16:03:20 --> Helper loaded: file_helper
DEBUG - 2015-01-21 16:03:20 --> Helper loaded: form_helper
DEBUG - 2015-01-21 16:03:20 --> CI_Session Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 16:03:20 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 16:03:20 --> Encryption Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Database Driver Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Session: Regenerate ID
DEBUG - 2015-01-21 16:03:20 --> CI_Session routines successfully run
DEBUG - 2015-01-21 16:03:20 --> Controller Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Helper loaded: date_helper
DEBUG - 2015-01-21 16:03:20 --> Helper loaded: html_helper
DEBUG - 2015-01-21 16:03:20 --> Model Class Initialized
DEBUG - 2015-01-21 16:03:20 --> Model Class Initialized
DEBUG - 2015-01-21 07:03:20 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 07:03:21 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 07:03:21 --> Final output sent to browser
DEBUG - 2015-01-21 07:03:21 --> Total execution time: 0.4724
DEBUG - 2015-01-21 16:03:25 --> Config Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Hooks Class Initialized
DEBUG - 2015-01-21 16:03:25 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 16:03:25 --> Utf8 Class Initialized
DEBUG - 2015-01-21 16:03:25 --> URI Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Router Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Output Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Security Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Input Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 16:03:25 --> Language Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Loader Class Initialized
DEBUG - 2015-01-21 16:03:25 --> Helper loaded: url_helper
DEBUG - 2015-01-21 16:03:26 --> Helper loaded: file_helper
DEBUG - 2015-01-21 16:03:26 --> Helper loaded: form_helper
DEBUG - 2015-01-21 16:03:26 --> CI_Session Class Initialized
DEBUG - 2015-01-21 16:03:26 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 16:03:26 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 16:03:26 --> Encryption Class Initialized
DEBUG - 2015-01-21 16:03:26 --> Database Driver Class Initialized
DEBUG - 2015-01-21 16:03:26 --> CI_Session routines successfully run
DEBUG - 2015-01-21 16:03:26 --> Controller Class Initialized
DEBUG - 2015-01-21 16:03:26 --> Helper loaded: date_helper
DEBUG - 2015-01-21 16:03:26 --> Helper loaded: html_helper
DEBUG - 2015-01-21 16:03:26 --> Model Class Initialized
DEBUG - 2015-01-21 16:03:26 --> Model Class Initialized
DEBUG - 2015-01-21 07:03:26 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 07:03:26 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 07:03:26 --> Final output sent to browser
DEBUG - 2015-01-21 07:03:26 --> Total execution time: 0.9576
DEBUG - 2015-01-21 16:08:45 --> Config Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Hooks Class Initialized
DEBUG - 2015-01-21 16:08:45 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 16:08:45 --> Utf8 Class Initialized
DEBUG - 2015-01-21 16:08:45 --> URI Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Router Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Output Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Security Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Input Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 16:08:45 --> Language Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Loader Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Helper loaded: url_helper
DEBUG - 2015-01-21 16:08:45 --> Helper loaded: file_helper
DEBUG - 2015-01-21 16:08:45 --> Helper loaded: form_helper
DEBUG - 2015-01-21 16:08:45 --> CI_Session Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 16:08:45 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 16:08:45 --> Encryption Class Initialized
DEBUG - 2015-01-21 16:08:45 --> Database Driver Class Initialized
DEBUG - 2015-01-21 16:08:46 --> CI_Session routines successfully run
DEBUG - 2015-01-21 16:08:46 --> Controller Class Initialized
DEBUG - 2015-01-21 16:08:46 --> Helper loaded: date_helper
DEBUG - 2015-01-21 16:08:46 --> Helper loaded: html_helper
DEBUG - 2015-01-21 16:08:46 --> Model Class Initialized
DEBUG - 2015-01-21 16:08:46 --> Model Class Initialized
DEBUG - 2015-01-21 07:08:46 --> Session has already been instantiated as 'session'. Second attempt aborted.
DEBUG - 2015-01-21 07:08:46 --> Final output sent to browser
DEBUG - 2015-01-21 07:08:46 --> Total execution time: 0.6424
DEBUG - 2015-01-21 16:08:48 --> Config Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Hooks Class Initialized
DEBUG - 2015-01-21 16:08:48 --> UTF-8 Support Enabled
DEBUG - 2015-01-21 16:08:48 --> Utf8 Class Initialized
DEBUG - 2015-01-21 16:08:48 --> URI Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Router Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Output Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Security Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Input Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2015-01-21 16:08:48 --> Language Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Loader Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Helper loaded: url_helper
DEBUG - 2015-01-21 16:08:48 --> Helper loaded: file_helper
DEBUG - 2015-01-21 16:08:48 --> Helper loaded: form_helper
DEBUG - 2015-01-21 16:08:48 --> CI_Session Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2015-01-21 16:08:48 --> Encryption: OpenSSL initialized with method AES-128-CBC.
DEBUG - 2015-01-21 16:08:48 --> Encryption Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Database Driver Class Initialized
DEBUG - 2015-01-21 16:08:48 --> CI_Session routines successfully run
DEBUG - 2015-01-21 16:08:48 --> Controller Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Helper loaded: date_helper
DEBUG - 2015-01-21 16:08:48 --> Helper loaded: html_helper
DEBUG - 2015-01-21 16:08:48 --> Model Class Initialized
DEBUG - 2015-01-21 16:08:48 --> Model Class Initialized
DEBUG - 2015-01-21 07:08:48 --> Session has already been instantiated as 'session'. Second attempt aborted.
ERROR - 2015-01-21 07:08:48 --> Severity: Notice --> Undefined index: field_name C:\xampp\htdocs\geovalores\application\views\publicaciones\show.php 176
ERROR - 2015-01-21 07:08:48 --> Severity: Notice --> Undefined index: field_name C:\xampp\htdocs\geovalores\application\views\publicaciones\show.php 189
ERROR - 2015-01-21 07:08:48 --> Severity: Notice --> Undefined index: field_name C:\xampp\htdocs\geovalores\application\views\publicaciones\show.php 202
ERROR - 2015-01-21 07:08:48 --> Severity: Notice --> Undefined index: field_name C:\xampp\htdocs\geovalores\application\views\publicaciones\show.php 215
ERROR - 2015-01-21 07:08:48 --> Severity: Notice --> Undefined index: field_name C:\xampp\htdocs\geovalores\application\views\publicaciones\show.php 228
DEBUG - 2015-01-21 07:08:48 --> File loaded: C:\xampp\htdocs\geovalores\application\views\publicaciones/show.php
DEBUG - 2015-01-21 07:08:48 --> Final output sent to browser
DEBUG - 2015-01-21 07:08:48 --> Total execution time: 0.4685
| mit |
nickelkr/yfi | setup.py | 461 | from distutils.core import setup
setup(
name='yfi',
packages=['yfi'],
version='0.0.2',
license='MIT',
summary='Library for Yahoo YQL',
description="YFi allows you to create and run queries against Yahoo's YQL datatables",
author='Kyle Nickel',
url='https://github.com/nickelkr/yfi',
download_url='https://github.com/nickelkr/yfi/tarball/0.0.2',
keywords=['Yahoo', 'YQL', 'finance', 'data', 'open'],
classifiers=[],
) | mit |
cbaatz/knit | lib/upload.js | 5090 | /*globals console*/
var http = require('http'),
colors = require('colors'),
https = require('https'),
url = require('url'),
async = require('async'),
ensureResources = require('./utils').ensureResources,
force = require('./force');
function doForce (task, callback) {
"use strict";
force(task.generator, function (error, buffer) {
callback(error, buffer, task);
});
}
function doPut (task, callback) {
"use strict";
if (!callback) {
console.error(("CALLBACK missing: " + callback).red);
}
var options = url.parse(task.href), request, req;
options.method = 'PUT';
options.headers = task.buffer.headers || {};
options.headers.Expect = '100-continue';
request = (options.protocol === 'https:') ? https.request : http.request;
req = request(options, function (res) {
res.on('data', function (chunk) {});
res.on('end', function () {
switch (res.statusCode) {
case 307:
// Put to given location and reset retries
task.href = res.headers.location;
task.retries = 0;
doPut(task, callback);
break;
case 200:
callback(undefined, task);
break;
default:
if (task.retries < task.maxRetries) {
console.warn(
("RETRY " + task.pathname + " " + task.retries + "/" + task.maxRetries).yellow
);
task.retries++;
doPut(task, callback);
} else {
callback({
type: res.statusCode,
message: 'Failed after maximum retries.',
pathname: task.pathname
}, task);
}
}
});
});
// Abort if we time out. This will close and error. Don't think we
// need this if the server behaves and it results in some event
// emitter warning.
//
// req.setTimeout(3000, function () { req.abort(); });
req.on('continue', function () {
req.setTimeout(0); // Got continue, don't time out now.
req.end(task.buffer);
});
req.on('error', function (error) {
if (task.retries < task.maxRetries) {
task.retries++;
console.warn(
("RETRY " + task.pathname + " " +task.retries + "/" +
task.maxRetries + error.code + " : " + error.message).yellow
);
doPut(task, callback);
} else {
callback({
type: error.code,
message: error.message,
pathname: task.pathname
}, task);
}
});
req.write(''); // Send headers
}
exports = function (resourcesOrStructure, config, callback) {
"use strict";
// To upload, we first force the generator into a buffer, then PUT
// that buffer to the given URL.
config = config || {};
var resources = ensureResources(resourcesOrStructure),
href = config.href,
errors = [], pathname, i = 0,
forceQueue, forceConcurrency = 10,
putQueue, putConcurrency = 25;
// put task = { pathname, href, buffer, retries, maxRetries }
putQueue = async.queue(doPut, putConcurrency);
putQueue.drain = function () {
console.log("NOTHING MORE TO PUT.".green);
callback(errors.length > 0 ? errors : undefined);
};
// force task = { pathname, generator }
forceQueue = async.queue(doForce, forceConcurrency);
forceQueue.drain = function () { console.log("NOTHING MORE TO FORCE.".green); };
var putCallback = function (error, task) {
i++;
if (error) {
console.error((i.toString() + " FAILED PUT " + task.pathname).red);
errors.push(error);
} else {
console.log(
(i.toString() + " SUCCEEDED PUT " +
task.href.split('?', 1)[0] + task.buffer.length + "bytes").green
);
}
};
var forcedCallback = function (error, buffer, task) {
var header;
if (error) {
console.error("FAILED FORCING", task.pathname, "ABORTING.");
callback(error);
} else {
// TODO: Here we could in theory get the md5 sum and do a
// HEAD request to Amazon to see if we need to update.
for (header in config.headers)
buffer.headers[header] = config.headers[header];
console.log(("FORCED " + task.pathname + " " + buffer.length + " bytes").green);
putQueue.push({
pathname: task.pathname,
href: href + task.pathname,
buffer: buffer,
retries: 0,
maxRetries: 3
}, putCallback);
}
};
for (pathname in resources)
forceQueue.push({ pathname: pathname,
generator: resources[pathname] }, forcedCallback);
};
| mit |
PM-Master/PM | src/gov/nist/csd/pm/user/platform/win32/GDI32Ext.java | 4108 | package gov.nist.csd.pm.user.platform.win32;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.platform.win32.GDI32;
import com.sun.jna.platform.win32.WinDef.HBITMAP;
import com.sun.jna.platform.win32.WinDef.HDC;
import com.sun.jna.platform.win32.WinUser.SIZE;
import com.sun.jna.win32.W32APIOptions;
/**
* Extensions for the JNA GDI32 library interface. The current JNA GDI interface was missing several functions needed to provide policy machine's functionality. Ideally, these functions would be added into the GDI32 JNA interface.
* @author Administrator
*/
public interface GDI32Ext extends GDI32 {
/**
* Returns an instance of the GDI32Ext interface. This is your entry point into the Windows API.
* @uml.property name="iNSTANCE"
* @uml.associationEnd
*/
public static GDI32Ext INSTANCE = (GDI32Ext) Native.loadLibrary("GDI32", GDI32Ext.class, W32APIOptions.DEFAULT_OPTIONS);
/*
* Created a new BITMAPINFOHEADER structure to allow
* manual memory setting. There was an issue with the auto-allocated
* BITMAPINFOHEADER in the JNA libraries that I was not able to resolve
* without this workaround. I currently pass in a Memory with 100 bytes
* allocated, which seems to work. Ideally we should only allocate the
* exact amount of memory needed.
*
*/
public class BITMAPINFOHEADER_MANUAL extends Structure {
public int biSize = size();
public int biWidth;
public int biHeight;
public short biPlanes;
public short biBitCount;
public int biCompression;
public int biSizeImage;
public int biXPelsPerMeter;
public int biYPelsPerMeter;
public int biClrUsed;
public int biClrImportant;
/**
* Default constructor for this structure
* Requires a com.sun.jna.Pointer to com.sun.jna.Memory.
* This structure has only been tested with a Memory of at least 100 bytes.
* Using less memory than that may cause an invalid memory access. Caviat Emptor
* @param mem
*/
public BITMAPINFOHEADER_MANUAL(Pointer mem) {
super(mem);
}
}
/**
* Retrieves the dimension of the bitmap passed into it.
*
* @param hBitmap [in] A handle to a compatible bitmap (DDB).
* @param lpDimension [out]* A pointer to a SIZE structure to receive the bitmap dimensions. For more information, see Remarks.
* @return <b>true</b> if the function succeeds, <b>false</b> if the function fails.
* Remarks
* The function returns a data structure that contains fields for the height and width of the bitmap, in .01-mm units. If those dimensions have not yet been set, the structure that is returned will have zeroes in those fields
*/
public boolean GetBitmapDimensionEx(HBITMAP hBitmap, SIZE size);
/** The GetDIBits function retrieves the bits fo the specified compatible
* bitmap and copies them into a buffer as a DIB using the specified
* format.
* @param hdc A handle to the device context.
* @param hbmp A handle to the bitmap. This must be a compatible bitmap
* (DDB).
* @param uStartScan The first scan line to retrieve
* @param cScanLines The number of scan lines to retrieve.
* @param lpvBits A pointer to a buffer to receive the bitmap data. If
* this parameter is <code>null</code>, the function passes the dimensions
* and format of the bitmap to the {@link BITMAPINFOHEADER_MANUAL} structure pointed to
* by the <i>lpbi</i> parameter.
* @param lpbi A pointer to a {@link BITMAPINFOHEADER_MANUAL} structure that specifies
* the desired format for the DIB data.
* @param uUsage The format of the bmiColors member of the {@link
* BITMAPINFO} structure. This method will not return those as they don't exist in the BITMAPINFOHEADER
* structure.
*/
int GetDIBits(HDC hdc, HBITMAP hbmp, int uStartScan, int cScanLines, Pointer lpvBits, BITMAPINFOHEADER_MANUAL lpbi, int uUsage);
}
| mit |
umpirsky/zymfony-validator | src/Zymfony/Component/Validator/ValidatorPluginManager.php | 503 | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
namespace Zymfony\Component\Validator;
use Zend\Validator\ValidatorPluginManager as BaseValidatorPluginManager;
/**
* Used to build available validators list.
*
* @author Саша Стаменковић <[email protected]>
*/
class ValidatorPluginManager extends BaseValidatorPluginManager
{
public function getInvokableClasses()
{
return $this->invokableClasses;
}
}
| mit |
taiki3/grablu_casino | pokerReadGameData.py | 10887 | # -*- coding: utf-8 -*-
import pokerHandsClass
import pokerDoubleUp
def handName(hand_id):
if( hand_id == 11 ):
return u'役なし'
elif( hand_id == 10 ):
return u'ワンペア'
elif( hand_id == 9 ):
return u'ツーペア'
elif( hand_id == 8 ):
return u'スリーカード'
elif( hand_id == 7 ):
return u'ストレート'
elif( hand_id == 6 ):
return u'フラッシュ'
elif( hand_id == 5 ):
return u'フルハウス'
elif( hand_id == 4 ):
return u'フォーカード'
elif( hand_id == 3 ):
return u'ストレートフラッシュ'
elif( hand_id == 2 ):
return u'ファイブカード'
elif( hand_id == 1 ):
return u'ロイヤルストレートフラッシュ'
else:
return False
def readGameData(gameData):
if( gameData.has_key(u'errorPopFlag') ):
if( gameData.get(u'errorPopFlag')==True):
print u"Erorr: errorPopFlag=True"
print gameData
return {u'status':u'ERROR_POP_FLAG_TRUE',u'data':gameData}
if( gameData.has_key(u'mbp_limit_info') ):
print u"MyPage Loading"
return {u'status':u'MYPAGE_LOADING'}
elif( gameData.has_key(u'data') ):
if( gameData.has_key(u'option') ):
print u"MsgData Loading"
return {u'status':u'MSGDATA_LOADING'}
elif( gameData.get(u'data').has_key(u'se001') ):
print u"mp3Data Loading"
return {u'status':u'MP3DATA_LOADING'}
else:
print u"anyData Loading"
return {u'status':u'ANYDATA_LOADING'}
elif( gameData.has_key(u'other_game_play_flag') ):
print u"Check playing other games"
return {u'status':u'CHECK_PLAYING_OTHER_GAMES'}
elif( gameData.get(u'reason')==0 and gameData.get(u'result')==True ):
print u"Welcome Jewel Resort Casino"
return {u'status':u'WELCOME_CASINO'}
elif( gameData.get(u'game_flag')==u'0' or gameData.get(u'game_flag')==0):
print u"Poker Start"
return {u'status':u'POKER_START'}
elif( gameData.get(u'game_flag')==u'10'):
cards = _cardStrDictToCardClassList(gameData.get(u'card_list'))
hands = pokerHandsClass.Hands()
hands.setHands(cards)
print u"DealtHands:",
print hands.showCards()
print u"Hold:",
print hands.showHoldHandPos(1)
print u"Reason:",
print hands.showHandKeepingReason(0)
return {u'status':u'GAME_START',u'Hands':hands}
elif( gameData.get(u'game_flag')==u'15'):
cards = _cardStrDictToCardClassList(gameData.get(u'card_list'))
hands = pokerHandsClass.Hands()
hands.setHands(cards)
print u"ResultHands:",
print hands.showCards()
print u"Result:",
print handName(gameData.get(u'hand_id'))
print u"ダブルアップに挑戦しますか? YES!"
return {u'status':u'RESTART_GAME_WIN',u'Hands':hands}
elif( gameData.get(u'game_flag')==u'20'):
if( gameData.has_key(u'hand_list') ):
print u"+ダブルアップ挑戦中+"
card1 = _cardStrToCardClass(gameData[u'hand_list'].get(u'open_card'))
payMedal = int(gameData.get(u'pay_medal'))
remRound = 11-int(gameData.get(u'turn'))
doubleup = pokerDoubleUp.DoubleUp(card1,False,payMedal,remRound)
if( doubleup.judgeHiLow()==u'High' ):
print u"High"
return {u'status':u'RESTART_DOUBLEUP_HIGH'}
elif( doubleup.judgeHiLow()==u'Low' ):
print u"Low"
return {u'status':u'RESTART_DOUBLEUP_LOW'}
elif( gameData.get(u'game_flag')==u'22'):
print u"Restart Game"
print u"続行しますか? NextCard = ",
card1 = _cardStrToCardClass(gameData.get(u'hand_list').get(u'open_card_old'))
card2 = _cardStrToCardClass(gameData.get(u'hand_list').get(u'close_card_old'))
payMedal = int(gameData.get(u'pay_medal'))
remRound = 11-int(gameData.get(u'turn'))
doubleup = pokerDoubleUp.DoubleUp(card1,card2,payMedal,remRound)
print doubleup.card2.num
if( doubleup.isNextDoubleUp() ):
print u"YES"
return {u'status':u'IS_NEXT_DOUBLEUP_YES',u'DoubleUp':doubleup}
else:
print u"NO"
return {u'status':u'IS_NEXT_DOUBLEUP_NO',u'DoubleUp':doubleup}
elif( gameData.has_key(u'card_list') and gameData.has_key(u'result') ):
if( gameData.get(u'result')==u'win' ):
cards = _cardStrDictToCardClassList(gameData.get(u'card_list'))
hands = pokerHandsClass.Hands()
hands.setHands(cards)
print u"ResultHands:",
print hands.showCards()
print u"Result:",
print handName(gameData.get(u'hand_id'))
print u"ダブルアップに挑戦しますか? YES!"
return {u'status':u'GAME_WIN',u'Hands':hands,u'hand_name':handName(gameData.get(u'hand_id'))}
elif( gameData.get(u'result')==u'lose' ):
if( gameData.has_key(u'hand') ):
cards = _cardStrDictToCardClassList(gameData.get(u'card_list'))
hands = pokerHandsClass.Hands()
hands.setHands(cards)
print u"ResultHands:",
print hands.showCards()
print u"Result:",
print handName(gameData.get(u'hand_id'))
return {u'status':u'GAME_LOSE',u'Hands':hands,u'hand_name':handName(gameData.get(u'hand_id'))}
elif( gameData.has_key(u'next_game_flag') ):
if( gameData.get(u'next_game_flag') ):
if( gameData.get(u'result')==u'win' or gameData.get(u'result')==u'draw'):
print gameData.get(u'result')
print u"続行しますか? NextCard = ",
card1 = _cardStrToCardClass(gameData.get(u'card_first'))
card2 = _cardStrToCardClass(gameData.get(u'card_second'))
payMedal = int(gameData.get(u'pay_medal'))
remRound = 11-int(gameData.get(u'turn'))
doubleup = pokerDoubleUp.DoubleUp(card1,card2,payMedal,remRound)
print doubleup.card2.num
if( doubleup.isNextDoubleUp() ):
print u"YES"
return {u'status':u'IS_NEXT_DOUBLEUP_YES',u'result':gameData.get(u'result'),u'DoubleUp':doubleup}
else:
print u"NO"
return {u'status':u'IS_NEXT_DOUBLEUP_NO',u'result':gameData.get(u'result'),u'DoubleUp':doubleup}
elif( gameData.get(u'result')==u'lose' ):
print u"lose"
return {u'status':u'DOUBLEUP_LOSE'}
elif(not gameData.get(u'next_game_flag')):
if( gameData.get(u'result')==u'win' and gameData.has_key(u'pay_medal') ):
getMedal = gameData.get(u'pay_medal')
haveMedal = gameData.get(u'medal').get(u'number')
print u"win"
print u"ダブルアップ上限"
return {u'status':u'DOUBLEUP_MAX',u'get':getMedal,u'have_medal':haveMedal}
elif( gameData.get(u'result')==u'draw' ):
#10ラウンド目のダブルアップに引き分けた
getMedal = gameData.get(u'pay_medal')
haveMedal = gameData.get(u'medal').get(u'number')
print u"draw"
return {u'status':u'DOUBLEUP_10ROUND_DRAW',u'get':getMedal,u'have_medal':haveMedal}
elif( gameData.get(u'result')==u'lose' ):
#10ラウンド目のダブルアップに負けた
print u"lose"
return {u'status':u'DOUBLEUP_10ROUND_LOSE'}
elif( gameData.has_key(u'card_first') ):
print u"+ダブルアップ挑戦中+"
card1 = _cardStrToCardClass(gameData.get(u'card_first'))
payMedal = int(gameData.get(u'pay_medal'))
doubleup = pokerDoubleUp.DoubleUp(card1,False,payMedal,False)
if( doubleup.judgeHiLow()==u'High' ):
print u"High"
return {u'status':u'DOUBLEUP_HIGH'}
elif( doubleup.judgeHiLow()==u'Low' ):
print u"Low"
return {u'status':u'DOUBLEUP_LOW'}
elif( gameData.has_key(u'card_list') ):
print gameData.get(u'card_list')
cards = _cardStrDictToCardClassList(gameData.get(u'card_list'))
hands = pokerHandsClass.Hands()
hands.setHands(cards)
print u"DealtHands:",
print hands.showCards()
print u"Hold:",
print hands.showHoldHandPos(1)
print u"Reason:",
print hands.showHandKeepingReason(0)
return {u'status':u'GAME_START',u'Hands':hands}
elif( gameData.has_key(u'status') ):
#print gameData[u'status']
if( gameData[u'status'].has_key(u'get_medal') ):
getMedal = gameData[u'status'].get(u'get_medal')
haveMedal = gameData[u'status'].get(u'medal').get(u'number')
if( getMedal > 0):
print u"get medal!!!"
return {u'status':u'GET_MEDAL',u'get':getMedal,u'have_medal':haveMedal}
else:
print u"Error: 知らないパターン003"
print gameData
return {u'status':u'UNKNOWN',u'data':gameData,u'num':003}
else:
print u"Error: 知らないパターン004"
print gameData
return {u'status':u'UNKNOWN',u'data':gameData,u'num':004}
else:
print u"Error: 知らないパターン999"
print gameData
return {u'status':u'UNKNOWN',u'data':gameData,u'num':999}
def _cardStrToCardClass(cardStr):
cardInfo = cardStr.split(u"_")
suit = ""
num = int(cardInfo[1])
if( cardInfo[0] == u'1' ):
suit = u's'
elif( cardInfo[0] == u'2' ):
suit = u'h'
elif( cardInfo[0] == u'3' ):
suit = u'd'
elif( cardInfo[0] == u'4' ):
suit = u'c'
elif( cardInfo[0] == u'99' ):
suit = u'99'
else:
return False
newCard = pokerHandsClass.Card()
newCard.setCard(suit, num)
return newCard.getCard()
def _cardStrDictToCardClassList(cardDict):
cards = [_cardStrToCardClass(cardDict.get(u'1')),
_cardStrToCardClass(cardDict.get(u'2')),
_cardStrToCardClass(cardDict.get(u'3')),
_cardStrToCardClass(cardDict.get(u'4')),
_cardStrToCardClass(cardDict.get(u'5'))]
return cards
if __name__ == '__main__':
pass | mit |
dnialwill/project_3 | public/js/controllers/delete-profile.js | 2353 | angular.module('MyApp').controller('deleteProfileController', ['$http', '$scope', function ($http, $scope) {
// initialise needed variables
var ctrl = this;
this.showConfirm = false;
this.showMsg = false;
this.msgContent = '';
// function creates buttons to abort or confirm delete
this.confirmDelete = function () {
this.showConfirm = true;
};
// function removes buttons to abort or confirm delete
this.abortDelete = function () {
this.showConfirm = false;
};
// function for deleting account
this.deleteProfile = function () {
$http({ // http request to get sessions data
method: 'GET',
url: '/sessions'
}).then(
function (response) { // in case of success
console.log(response); // log response
if(response.data) { // if sessions data exists
$http({ // http request to delete account
method: 'DELETE',
url: '/users/' + response.data._id, // based on user id
// from sessions data
}).then(
function (response) { // in case of success
console.log(response); // log response
// show success message and hide confirm / abort button
ctrl.msgContent = 'Your profile was successfully deleted.'
ctrl.showMsg = true;
setTimeout(function() { // reload page after 3 seconds
$scope.viewCtrl.getSession();
$scope.viewCtrl.changeView('splash');
this.showConfirm = false;
}, 3000);
},
function (error) { // in case of failure
console.log(error); // log error
// show fail message and hide confirm / abort button
ctrl.msgContent = 'Sorry, something went wrong. Please try again.'
ctrl.showMsg = true;
this.showConfirm = false;
});
} else { // just for testing
console.log('not logged in');
// --> nothing happens if user not logged in
}
}, function (error) { // in case of failure
console.log(error); // log error
});
};
}]);
| mit |
NickTitle/starfield | app/constants.rb | 3354 | WINDOW_WIDTH = 1200
WINDOW_HEIGHT = 900
WIDTH = 640
HEIGHT = 480
WORLD_SIZE = 20000.0
# WORLD_SIZE = 500
# DEBUG = true
DEBUG = false
STORY = [
["It's all gone; it must be.", true], #0
["...and it's been weeks since I touched these controls.", true],
["( COMMA and PERIOD control the radio )", true],
["Just turn the radio on. ( press ' . ' )", true],
["Wait, this isn't just static! ( tune with ' . ' )", true],
["There must be someone out there...", true],
["...somewhere. (check the corner map if you get lost)", true],
["(find towers by tuning the radio, then follow the sonar)", true],
["It's time to start looking. ( press arrow keys to fly! )" , false],
["Hmm; there's nobody here,", true],
["... but there's more on the radio.", true],
["If I shut this thing down, I'll hear more radio signals.", true],
["( press SPACE )", true],
["It was nothing, just some old radio tower.", true],
["...but I know there's more of these.", true],
["...and maybe you escaped. ( tune with ' , ' and ' . ' )", false],
["This one is empty, too.", true],
["I'll shut it down and clear the radio some more.", true],
["( press SPACE )", true],
["Each empty artifact is just one less place to look.", true],
["Did what happened to me happen here too?", false],
["...and did what happened to me, happen to you?", true], #20
["( press SPACE )", true],
["(tune with ' , ' and ' . ' )", false],
["Are you out there looking, too? Cause you're not here.", true],
["( press SPACE )", true],
["Either way, I will keep looking.", true],
["I'll always be looking.", false],
["There's no one here, either.", true],
["( press SPACE )", true],
["Everything on this radio is terrible.", true],
["It's still better than static, though.", false], #30
["Dark windows. Another empty broadcast.", true],
["( press SPACE )", true],
["Am I really, truly, alone?", false],
["I still hope one of these signals is yours.", true],
["Are you broadcasting too?", true],
["( press SPACE )", true],
["There's only a handful of broadcasts left...", false],
["Chasing these signals is unbearable;", true],
["I still won't stop until there's only static left.", true],
["( press SPACE )", true],
["But what if I search them all", true],
["...and I don't find you?", false],
["I've checked this radio so many times now...", true],
["I know there's only a few more of these left.", true],
["( press SPACE )", true],
["Should I just turn this radio off?", true],
["Well...", true],
["...have you ever given up on me?", false],
["You're not here, but you're somewhere.", true],
["I can feel it.", true],
["( press SPACE )", true],
["...", true],
["I can only hear this one last signal.", true],
["... ... ... ... ... ...", false],
["...and it isn't you.", true],
["( press SPACE )", true],
["...", true],
["It wasn't you.", true],
["( turn the radio off with ' , ' )", false], #60
]
#radio cues need to reference the state before the one that triggers radio
# i.e. : if state is this, advance to next state which involves the radio
RADIO_CUES = [8,15,20,23,27,31,34,38,43,49,55]
#artifact cues reference the "press space action of each artifact"
ARTIFACT_CUES = [12,18,22,25,29,33,37,41,46,52,57]
| mit |
ocproducts/convertr | classes/FileSystem.php | 1817 | <?php /*
Convertr
Copyright (c) ocProducts, 2015-2015
*/
/**
* @license MIT Licence
* @copyright ocProducts Ltd
* @package Convertr
*/
namespace Convertr;
abstract class FileSystem
{
const DIFF_ONLY_IN_OLDER = 1;
const DIFF_ONLY_IN_NEWER = 2;
protected $id;
private $cached_diff_from;
abstract public function get_all_files();
abstract public function get_all_files_and_data();
abstract public function read($file);
abstract public function write($file, $data);
abstract public function delete($file);
abstract public function rename($from, $to);
protected function init()
{
$this->id = uniqid('');
$this->diff_from = array();
}
public function get_crc32()
{
$crc32 = array();
foreach ($this->get_all_files() as $file) {
$crc32[$file] = crc32($this->read($file));
}
return $crc32;
}
public function generate_diff_from_older($older_filesystem, $filename)
{
if (isset($this->cached_diff_from[$older_filesystem->id][$filename])) {
return $this->cached_diff_from[$older_filesystem->id][$filename];
}
$old = $older_filesystem->read($filename);
if (is_null($old)) {
return self::DIFF_ONLY_IN_NEWER;
}
$new = $this->read($filename);
if (is_null($new)) {
return self::DIFF_ONLY_IN_OLDER;
}
require_once(dirname(dirname(__FILE__)) . '/third_party/finediff.php');
$diff = new \FineDiff($old, $new, \FineDiff::$characterGranularity);
$this->cached_diff_from[$older_filesystem->id][$filename] = $diff->edits;
return $diff->edits;
}
protected function clear_caching()
{
$this->cached_diff_from = array();
}
}
| mit |
raideer/tweech-framework | src/Tweech/Chat/ChatHelper.php | 530 | <?php
namespace Raideer\Tweech\Chat;
class ChatHelper
{
protected $chat;
public function __construct(Chat $chat)
{
$this->chat = $chat;
}
public function send($message)
{
$this->chat->privmsg($message);
}
public function message($message)
{
$this->send($message);
}
public function whisper($user, $message)
{
$this->send("/w $user $message");
}
public function w($user, $message)
{
$this->whisper($user, $message);
}
}
| mit |
travishorn/valivore | index.js | 152 | 'use strict';
var valivore = {
cleanValidate: require('./lib/clean-validate'),
validate: require('./lib/validate'),
};
module.exports = valivore;
| mit |
mongorian-chop/progress | app/helpers/application_helper.rb | 479 | module ApplicationHelper
def select_by_model(object, method)
select object.class.name.downcase, method, build_model_list(method),
:selected => object.send(method.to_s)
end
private
def build_model_list(method)
default = [[t('Please select'), '']]
str = method.to_s.humanize
list = str.
constantize.
all.
collect {|e| [t("#{str.downcase}.#{e.name}"), e.id] }
default + list.sort {|a, b| a[1] <=> b[1] }
end
end
| mit |
nnaabbcc/exercise | windows/pw6e.official/CSharp/Chapter03/RoutedEvents6/RoutedEvents6/App.xaml.cs | 3618 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
namespace RoutedEvents6
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
sealed partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used when the application is launched to open a specific file, to display
/// search results, and so forth.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
if (!rootFrame.Navigate(typeof(MainPage), args.Arguments))
{
throw new Exception("Failed to create initial page");
}
}
// Ensure the current window is active
Window.Current.Activate();
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity
deferral.Complete();
}
}
}
| mit |
iurimatias/embark-framework | packages/core/utils/src/toposort.js | 2277 | // from https://github.com/marcelklehr/toposort
/**
* Topological sorting function
*
* @param {Array} edges
* @returns {Array}
*/
module.exports = function(edges) {
return toposort(uniqueNodes(edges), edges);
};
module.exports.array = toposort;
function toposort(nodes, edges) {
var cursor = nodes.length, sorted = new Array(cursor), visited = {}, i = cursor, outgoingEdges = makeOutgoingEdges(edges), nodesHash = makeNodesHash(nodes);
// check for unknown nodes
edges.forEach(function(edge) {
if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {
throw new Error('Unknown node. There is an unknown node in the supplied edges.');
}
});
while (i--) {
if (!visited[i]) visit(nodes[i], i, new Set());
}
return sorted;
function visit(node, i, predecessors) {
if(predecessors.has(node)) {
var nodeRep;
try {
nodeRep = ", node was:" + JSON.stringify(node);
} catch(e) {
nodeRep = "";
}
throw new Error('Cyclic dependency' + nodeRep);
}
if (!nodesHash.has(node)) {
throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node));
}
if (visited[i]) return;
visited[i] = true;
var outgoing = outgoingEdges.get(node) || new Set();
outgoing = Array.from(outgoing);
i = outgoing.length;
if (i) {
predecessors.add(node);
do {
var child = outgoing[--i];
visit(child, nodesHash.get(child), predecessors);
} while (i);
predecessors.delete(node);
}
sorted[--cursor] = node;
}
}
function uniqueNodes(arr){
var res = new Set();
for (var i = 0, len = arr.length; i < len; i++) {
var edge = arr[i];
res.add(edge[0]);
res.add(edge[1]);
}
return Array.from(res);
}
function makeOutgoingEdges(arr){
var edges = new Map();
for (var i = 0, len = arr.length; i < len; i++) {
var edge = arr[i];
if (!edges.has(edge[0])) edges.set(edge[0], new Set());
if (!edges.has(edge[1])) edges.set(edge[1], new Set());
edges.get(edge[0]).add(edge[1]);
}
return edges;
}
function makeNodesHash(arr){
var res = new Map();
for (var i = 0, len = arr.length; i < len; i++) {
res.set(arr[i], i);
}
return res;
}
| mit |
misshie/bioruby-ucsc-api | lib/bio-ucsc/cb3/chaincaerem2link.rb | 3085 | # Copyright::
# Copyright (C) 2011 MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
# License:: The Ruby licence (Ryby's / GPLv2 dual)
#
# this table is actually separated
# into "chr1_*", "chr2_*", etc. This class dynamically
# define *::Chr1_*, *::Chr2_*, etc. The
# Rmsk.find_by_interval calls an appropreate class automatically.
module Bio
module Ucsc
module Cb3
class ChainCaeRem2Link
KLASS = "ChainCaeRem2Link"
KLASS_S = KLASS[0..0].downcase + KLASS[1..-1]
Bio::Ucsc::Cb3::CHROMS.each do |chr|
class_eval %!
class #{chr[0..0].upcase + chr[1..-1]}_#{KLASS} < DBConnection
self.table_name = "#{chr[0..0].downcase + chr[1..-1]}_#{KLASS_S}"
self.primary_key = nil
self.inheritance_column = nil
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
find_first_or_all_by_interval(interval, :first, opt)
end
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
find_first_or_all_by_interval(interval, :all, opt)
end
def self.find_first_or_all_by_interval(interval, first_all, opt); interval = Bio::Ucsc::Gi.wrap(interval)
zstart = interval.zero_start
zend = interval.zero_end
if opt[:partial] == true
where = <<-SQL
tName = :chrom
AND bin in (:bins)
AND ((tStart BETWEEN :zstart AND :zend)
OR (tEnd BETWEEN :zstart AND :zend)
OR (tStart <= :zstart AND tEnd >= :zend))
SQL
else
where = <<-SQL
tName = :chrom
AND bin in (:bins)
AND ((tStart BETWEEN :zstart AND :zend)
AND (tEnd BETWEEN :zstart AND :zend))
SQL
end
cond = {
:chrom => interval.chrom,
:bins => Bio::Ucsc::UcscBin.bin_all(zstart, zend),
:zstart => zstart,
:zend => zend,
}
self.find(first_all,
{ :select => "*",
:conditions => [where, cond], })
end
end
!
end # each chromosome
def self.find_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
chr_klass = self.const_get("#{chrom}_#{KLASS}")
chr_klass.__send__(:find_by_interval, interval, opt)
end
def self.find_all_by_interval(interval, opt = {:partial => true}); interval = Bio::Ucsc::Gi.wrap(interval)
chrom = interval.chrom[0..0].upcase + interval.chrom[1..-1]
chr_klass = self.const_get("#{chrom}_#{KLASS}")
chr_klass.__send__(:find_all_by_interval, interval, opt)
end
end # class
end # module Hg18
end # module Ucsc
end # module Bio
| mit |
YoshinoriN/Kinugasa | Source/Shared/System/Kinugasa.Map/Properties/AssemblyInfo.cs | 1283 | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("Kinugasa.Map")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Kinugasa.Map")]
[assembly: AssemblyCopyright("Copyright ©Yoshinori.N 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("ja")]
// アセンブリのバージョン情報は次の 4 つの値で構成されています:
//
// メジャー バージョン
// マイナー バージョン
// ビルド番号
// リビジョン
//
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
| mit |
gliss/oscommerce-bootstrap | catalog/includes/modules/boxes/bm_currencies.php | 4674 | <?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
class bm_currencies {
var $code = 'bm_currencies';
var $group = 'boxes';
var $title;
var $description;
var $sort_order;
var $enabled = false;
var $pages;
function bm_currencies() {
$this->title = MODULE_BOXES_CURRENCIES_TITLE;
$this->description = MODULE_BOXES_CURRENCIES_DESCRIPTION;
if ( defined('MODULE_BOXES_CURRENCIES_STATUS') ) {
$this->sort_order = MODULE_BOXES_CURRENCIES_SORT_ORDER;
$this->enabled = (MODULE_BOXES_CURRENCIES_STATUS == 'True');
$this->pages = MODULE_BOXES_CURRENCIES_DISPLAY_PAGES;
$this->group = ((MODULE_BOXES_CURRENCIES_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right');
}
}
function execute() {
global $PHP_SELF, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && (count($currencies->currencies) > 1)) {
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if ( is_string($value) && ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$data = '<div class="ui-widget infoBoxContainer">' .
' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CURRENCIES_BOX_TITLE . '</div>' .
' <div class="ui-widget-content infoBoxContents">' .
' ' . tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') .
' ' . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>' .
' </div>' .
'</div>';
$oscTemplate->addBlock($data, $this->group);
}
}
}
function isEnabled() {
return $this->enabled;
}
function check() {
return defined('MODULE_BOXES_CURRENCIES_STATUS');
}
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Currencies Module', 'MODULE_BOXES_CURRENCIES_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_CURRENCIES_CONTENT_PLACEMENT', 'Right Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_CURRENCIES_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display in pages.', 'MODULE_BOXES_CURRENCIES_DISPLAY_PAGES', 'all', 'select pages where this box should be displayed. ', '6', '0','tep_cfg_select_pages(' , now())");
}
function remove() {
tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
}
function keys() {
return array('MODULE_BOXES_CURRENCIES_STATUS', 'MODULE_BOXES_CURRENCIES_CONTENT_PLACEMENT', 'MODULE_BOXES_CURRENCIES_SORT_ORDER', 'MODULE_BOXES_CURRENCIES_DISPLAY_PAGES');
}
}
?>
| mit |
bitzesty/import_csv | app/utils/csv_import_util.rb | 790 | class CsvImportUtil
# begin
# financial.currency = Currency.find_by!(code: attributes[:currency])
# rescue ActiveRecord::RecordNotFound => e
# financial.errors.add(:base, "Currency was not found - #{attributes[:currency]}")
# raise e
# end
def self.assign_belongs_to_relation(object, attribute, relation_klass, relation_finder_attributes)
begin
object.public_send "#{attribute}=", relation_klass.find_by!(relation_finder_attributes)
rescue ActiveRecord::RecordNotFound => e
object.errors.add(:base, "#{relation_klass} was not found by #{formatted_attributes relation_finder_attributes}")
raise e
end
end
def self.formatted_attributes(attributes)
attributes.map do |key, value|
"#{key}(#{value})"
end.join(", ")
end
end
| mit |
phpinpractice/event-store | src/Stream/Event.php | 5961 | <?php
namespace PhpInPractice\EventStore\Stream;
use PhpInPractice\EventStore\Stream\Event\Metadata;
use PhpInPractice\EventStore\Stream;
/**
* Immutable entity representing a single event from the event stream.
*
* When an instance of this class is created it is not associated with an Event Stream yet and some information may
* not be provided yet, such as the sequence number and stream. Using the `withStream` method it is possible to clone
* this event and associate it with a stream, which also gives it a sequence number and updates the sequence number
* of the stream.
*
* As a user you generally need not worry about the above; the withStream method is called by the EventStore once the
* event is persisted with an active stream.
*/
final class Event
{
/** @var Event\Id */
private $id;
/** @var Stream */
private $stream;
/** @var Metadata */
private $metadata;
/** @var \DateTimeInterface */
private $emittedAt;
/** @var Event\Payload */
private $payload;
/** @var integer|null */
private $sequence = null;
/**
* Initialize a new event with an identifier, payload and optionally the date at which it was originally emitted
* and some metadata.
*
* If the date is omitted than the event assumes it is emitted now or within a few moments and thus sets the
* emission date to now.
*
* @param Event\Id $id
* @param Event\Payload $payload
* @param \DateTimeInterface|null $emittedAt
* @param Metadata|null $metadata
*/
public function __construct(
Event\Id $id,
Event\Payload $payload,
\DateTimeInterface $emittedAt = null,
Metadata $metadata = null
) {
$emittedAt = $emittedAt ?: new \DateTimeImmutable();
$this->id = $id;
$this->payload = $payload;
$this->emittedAt = $emittedAt->setTimezone(new \DateTimeZone('UTC'));
$this->metadata = $metadata ?: new Metadata();
}
/**
* Returns the identifier for this event.
* @return Event\Id
*/
public function id()
{
return $this->id;
}
/**
* Returns the stream to which this event belongs or null if it isn't emitted yet.
*
* @return Stream|null
*/
public function stream()
{
return $this->stream;
}
/**
* The data that belongs to this event.
*
* Important: the payload object itself is not immutable. During design it was considered whether this should
* be immutable or not but at this stage I have left it mutable on purpose. This may however change so it is not
* recommended to rely on this while this notice is here.
*
* @return Event\Payload
*/
public function payload()
{
return $this->payload;
}
/**
* Returns the date at which this event was emitted.
*
* @return \DateTimeInterface
*/
public function emittedAt()
{
return $this->emittedAt;
}
/**
* Returns any meta-data that may be relevant for this event.
*
* Important: the metadata object itself is not immutable. During design it was considered whether this should
* be immutable or not but at this stage I have left it mutable on purpose. This may however change so it is not
* recommended to rely on this while this notice is here.
*
* @return Metadata
*/
public function metadata()
{
return $this->metadata;
}
/**
* Returns the position of this event in the event stream.
*
* The event stream maintains the positions of all events in the stream so that a stream may be snapshotted and
* rebuilt later from that point onwards, and optimistic locking may be implemented.
*
* The position indicators range from 1 to infinity where 1 is the first event and each event thereafter should
* follow in time. The sequence should never be broken so if a number is missing in the sequence than that event
* stream is compromised and should be inspected to see if something is wrong.
*
* If this event is not yet emitted then it will not yet have a sequence number and this method will return null.
*
* @return int|null
*/
public function sequence()
{
return $this->sequence;
}
/**
* Associates a clone of this event with the given stream and assigns it a new sequence number.
*
* @param Stream $stream
*
* @return Event
*/
public function withStream(Stream $stream)
{
$clone = clone $this;
$clone->stream = $stream;
$clone->sequence = $stream->incrementHead();
return $clone;
}
/**
* Creates a new event and populates it with the given data.
*
* @param Stream[]|string[] $data An array containing the following keys:
*
* - id, the UUID for this new event
* - payload, an array containing the data
* - emitted_at, a string representation of the (UTC) date and time at which the event was emitted, it is
* recommended to use the MySQL DateTime format (Y-m-d H:i:s) to be certain that the right moment is
* captured.
* - metadata, an array containing metadata associated with the event
* - sequence, the position in the stream of this event
* - stream, a Stream object to which this event belongs
*
* @return static
*/
public static function fromArray(array $data)
{
$event = new static(
Event\Id::fromString($data['id']),
new Stream\Event\Payload($data['payload']),
new \DateTimeImmutable($data['emitted_at']),
new Metadata($data['metadata'])
);
$event->sequence = (int)$data['sequence'];
$event->stream = $data['stream'];
return $event;
}
}
| mit |
ugent-cros/cros-core | test/UserTest.java | 18791 | import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import controllers.SecurityController;
import exceptions.IncompatibleSystemException;
import models.User;
import org.fest.assertions.Fail;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import play.libs.Json;
import play.mvc.Http;
import play.mvc.Result;
import play.test.FakeRequest;
import utilities.JsonHelper;
import controllers.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.fest.assertions.Assertions.assertThat;
import static play.test.Helpers.*;
import static utilities.JsonHelper.removeRootElement;
import controllers.*;
/**
* Created by yasser on 4/03/15.
*/
public class UserTest extends TestSuperclass {
// email format: [email protected]
@BeforeClass
public static void setup() {
startFakeApplication();
}
@AfterClass
public static void tearDown() {
stopFakeApplication();
}
@Test
// Exceptions should not be thrown
public void checkPassword_PasswordIsCorrect_TrueReturned() throws IncompatibleSystemException {
String password = "lolcats1";
User u = new User("[email protected]", password, "test", "student");
assertThat(u.checkPassword(password)).isTrue();
}
@Test
// Exceptions should not be thrown
public void checkPassword_PasswordIsWrong_FalseReturned() throws IncompatibleSystemException {
String password = "lolcats1";
User u = new User("[email protected]", password, "test", "student");
assertThat(u.checkPassword("lol")).isFalse();
}
@Test
public void create_UnauthorizedRequest_UnauthorizedReturned() {
User user = new User("[email protected]", "testtest", "Yasser", "Deceukelier");
FakeRequest create = fakeRequest().withJsonBody(Json.toJson(user));
Result result = callAction(routes.ref.UserController.create(), create);
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.create(), authorizeRequest(create, getUser()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.create(), authorizeRequest(create, getReadOnlyAdmin()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void create_AuthorizedInvalidRequest_BadRequestReturned() {
String email = "[email protected]";
User u = new User(email,"testtest","Yasser","Deceukelier");
ObjectNode objectNode = (ObjectNode) Json.toJson(u);
// Create json representation
JsonNode node = JsonHelper.createJsonNode(objectNode, User.class);
JsonNode empty = Json.toJson("lol");
FakeRequest create = fakeRequest().withJsonBody(empty);
Result result = callAction(routes.ref.UserController.create(), authorizeRequest(create, getAdmin()));
assertThat(status(result)).isEqualTo(BAD_REQUEST);
}
@Test
public void create_AuthorizedRequest_UserCreated() {
String email = "[email protected]";
User u = new User(email,"testtest","Yasser","Deceukelier");
ObjectNode objectNode = (ObjectNode) Json.toJson(u);
objectNode.put("password", "testtest");
// Create json representation
JsonNode node = JsonHelper.createJsonNode(objectNode, User.class);
FakeRequest create = fakeRequest().withJsonBody(node);
Result result = callAction(routes.ref.UserController.create(), authorizeRequest(create, getAdmin()));
assertThat(status(result)).isEqualTo(CREATED);
try {
User receivedUser =
Json.fromJson(removeRootElement(contentAsString(result), User.class, false), User.class);
u.setId(receivedUser.getId()); // bypass id because u has no id yet
assertThat(u).isEqualTo(receivedUser);
User createdUser = User.findByEmail(email);
assertThat(u).isEqualTo(createdUser);
createdUser.delete();
} catch(JsonHelper.InvalidJSONException ex) {
Assert.fail("Invalid Json exception: " + ex.getMessage());
}
}
@Test
public void update_UnauthorizedRequest_UnauthorizedReturned() {
// Create original user
String firstName = "John";
String lastName = "Doe";
String email = "[email protected]";
User u = new User(email, "password", firstName, lastName);
u.save();
// Send request to update this user
String newFirstName = "Jane";
u.setFirstName(newFirstName);
JsonNode data = Json.toJson(u);
Result result = updateUser(u.getId(), data, null);
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = updateUser(u.getId(), data, getUser());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = updateUser(u.getId(), data, getReadOnlyAdmin());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void update_AuthorizedInvalidRequest_BadRequestReturned() {
User u = new User("[email protected]", "password", "John", "Doe");
u.save();
JsonNode emptyNode = Json.toJson("invalid");
FakeRequest update = fakeRequest().withJsonBody(emptyNode);
Result result = callAction(routes.ref.UserController.update(u.getId()), authorizeRequest(update, getAdmin()));
assertThat(status(result)).isEqualTo(BAD_REQUEST);
}
@Test
public void updatePassword_AuthorizedRequest_UserUpdated() throws IncompatibleSystemException {
String email = "[email protected]";
User u = new User(email, "password", "John", "Doe");
u.save();
// Send request to update this user
JsonNode data = JsonHelper.createJsonNode(u, User.class);
ObjectNode user = (ObjectNode) data.get("user");
String newPassword = "newPassword";
user.put("password", newPassword);
Result result = updateUser(u.getId(), data, getAdmin());
assertThat(status(result)).isEqualTo(OK);
// Check if update was executed
User loginUser = User.authenticate(email, newPassword);
assertThat(loginUser).isNotNull();
assertThat(loginUser.getId()).isEqualTo(u.getId());
}
@Test
public void update_AuthorizedRequest_UserUpdated() {
User u = new User("[email protected]", "password", "John", "Doe");
u.save();
// Send request to update this user
u.setFirstName("Jane");
JsonNode data = JsonHelper.createJsonNode(u, User.class);
Result result = updateUser(u.getId(), data, getAdmin());
assertThat(status(result)).isEqualTo(OK);
// Check if update was executed
try {
User receivedUser =
Json.fromJson(removeRootElement(contentAsString(result), User.class, false), User.class);
assertThat(receivedUser).isEqualTo(u);
User fetchedUser = User.FIND.byId(u.getId());
assertThat(fetchedUser).isEqualTo(u);
} catch(JsonHelper.InvalidJSONException ex) {
Assert.fail("Invalid Json exception: " + ex.getMessage());
}
}
@Test
public void update_AuthorizedRequestByUser_UserUpdated() {
User u = new User("[email protected]", "password", "John", "Doe");
u.save();
// Send request to update this user
u.setFirstName("Jane");
JsonNode data = JsonHelper.createJsonNode(u, User.class);
Result result = updateUser(u.getId(), data, u);
assertThat(status(result)).isEqualTo(OK);
// Check if update was executed
try {
User receivedUser =
Json.fromJson(removeRootElement(contentAsString(result), User.class, false), User.class);
assertThat(receivedUser).isEqualTo(u);
User fetchedUser = User.FIND.byId(u.getId());
assertThat(fetchedUser).isEqualTo(u);
} catch(JsonHelper.InvalidJSONException ex) {
Assert.fail("Invalid Json exception: " + ex.getMessage());
}
}
private Result updateUser(Long id, JsonNode data, User requester) {
FakeRequest update = fakeRequest().withJsonBody(data);
if(requester != null) {
update = authorizeRequest(update, requester);
}
return callAction(routes.ref.UserController.update(id), update);
}
@Test
public void getAll_UnauthorizedRequest_UnauthorizedReturned() {
Result result = callAction(routes.ref.UserController.getAll(), fakeRequest());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.getAll(), authorizeRequest(fakeRequest(), getUser()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void getAll_AuthorizedRequest_SuccessfullyGetAllUsers() {
Result result = callAction(routes.ref.UserController.getAll(), authorizeRequest(fakeRequest(), getAdmin()));
assertThat(status(result)).isEqualTo(OK);
JsonNode response = Json.parse(contentAsString(result));
try {
ArrayNode list = (ArrayNode) removeRootElement(response, User.class, true);
List<User> usersFromDB = User.FIND.all();
// Assure equality
assertThat(usersFromDB.size()).isEqualTo(list.size());
Map<Long, String> userMap = new HashMap<>(usersFromDB.size());
for (User user : usersFromDB) {
userMap.put(user.getId(), user.getEmail());
}
for (JsonNode userNode : list) {
Long key = userNode.findValue("id").asLong();
String email = userNode.findValue("email").asText();
assertThat(userMap.get(key)).isEqualTo(email);
}
result = callAction(routes.ref.UserController.getAll(), authorizeRequest(fakeRequest(), getReadOnlyAdmin()));
assertThat(status(result)).isEqualTo(OK);
} catch(JsonHelper.InvalidJSONException ex) {
Assert.fail("Invalid Json exception: " + ex.getMessage());
}
}
@Test
public void delete_UnauthorizedRequest_UnauthorizedReturned() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.delete(user.getId()), fakeRequest());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.delete(user.getId()), authorizeRequest(fakeRequest(), getUser()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.delete(user.getId()), authorizeRequest(fakeRequest(), getReadOnlyAdmin()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
assertThat(User.FIND.byId(user.getId())).isNotNull();
}
@Test
public void delete_AuthorizedRequestNonExistingUser_NotFoundReturned() {
Long nonExistingId = (long)-1;
Result result = callAction(routes.ref.UserController.delete(nonExistingId), authorizeRequest(fakeRequest(), getAdmin()));
assertThat(status(result)).isEqualTo(NOT_FOUND);
}
@Test
public void delete_AuthorizedRequest_UserDeleted() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.delete(user.getId()), authorizeRequest(fakeRequest(), getAdmin()));
assertThat(status(result)).isEqualTo(OK);
assertThat(User.FIND.byId(user.getId())).isNull();
}
@Test
public void getAuthToken_UnauthorizedRequest_UnauthorizedReturned() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.getUserAuthToken(user.getId()), fakeRequest());
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.getUserAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getUser()));
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.getUserAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getAdmin()));
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.getUserAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getReadOnlyAdmin()));
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void getAuthToken_AuthorizedRequest_TokenReturned() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.getUserAuthToken(user.getId()),
authorizeRequest(fakeRequest(), user));
assertThat(status(result)).isEqualTo(OK);
JsonNode response = Json.parse(contentAsString(result));
String token = response.findValue(SecurityController.AUTH_TOKEN).asText();
assertThat(token).isEqualTo(user.getAuthToken());
}
@Test
public void invalidateAuthToken_UnauthorizedRequest_UnauthorizedReturned() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.invalidateAuthToken(user.getId()), fakeRequest());
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.invalidateAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getUser()));
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.invalidateAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getReadOnlyAdmin()));
assertThat(contentAsString(result)).doesNotContain(user.getAuthToken());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void invalidateAuthToken_AuthorizedRequest_TokenInvalidated() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
String oldToken = user.getAuthToken();
Result result = callAction(routes.ref.UserController.invalidateAuthToken(user.getId()),
authorizeRequest(fakeRequest(), user));
assertThat(status(result)).isEqualTo(OK);
user.refresh();
assertThat(oldToken).isNotEqualTo(user.getAuthToken());
oldToken = user.getAuthToken();
callAction(routes.ref.UserController.invalidateAuthToken(user.getId()),
authorizeRequest(fakeRequest(), getAdmin()));
assertThat(status(result)).isEqualTo(OK);
// getAuthToken should return a new generated token
user.refresh();
assertThat(oldToken).isNotEqualTo(user.getAuthToken());
}
@Test
public void currentUser_UnauthorizedRequest_UnauthorizedReturned() {
Result result = callAction(routes.ref.UserController.currentUser(),fakeRequest());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void currentUser_AuthorizedRequest_Ok() {
User user = new User("[email protected]", "password", "John", "Doe");
user.save();
Result result = callAction(routes.ref.UserController.currentUser(),
authorizeRequest(fakeRequest(), user));
assertThat(status(result)).isEqualTo(Http.Status.OK);
try {
JsonNode responseJson = JsonHelper.removeRootElement(Json.parse(contentAsString(result)), User.class, false);
assertThat(Json.fromJson(responseJson, User.class)).isEqualTo(user);
} catch (JsonHelper.InvalidJSONException e) {
e.printStackTrace();
Fail.fail(e.getMessage());
}
}
@Test
public void deleteAll_UnauthorizedRequest_UnauthorizedReturned() {
Result result = callAction(routes.ref.UserController.deleteAll(),fakeRequest());
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.deleteAll(),
authorizeRequest(fakeRequest(), getUser()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
result = callAction(routes.ref.UserController.deleteAll(),
authorizeRequest(fakeRequest(), getReadOnlyAdmin()));
assertThat(status(result)).isEqualTo(UNAUTHORIZED);
}
@Test
public void deleteAll_AuthorizedRequest_AllButUserDeleted() {
Result result = callAction(routes.ref.UserController.deleteAll(),
authorizeRequest(fakeRequest(), getAdmin()));
assertThat(status(result)).isEqualTo(OK);
List<User> allUsers = User.FIND.all();
assertThat(allUsers).hasSize(1);
assertThat(allUsers).contains(getAdmin()); // Equality check
}
@Test
public void total_UsersInDatabase_TotalIsCorrect() {
int correctTotal = User.FIND.all().size();
Result r = callAction(routes.ref.UserController.getTotal(), authorizeRequest(fakeRequest(), getAdmin()));
try {
JsonNode responseNode = JsonHelper.removeRootElement(contentAsString(r), User.class, false);
assertThat(correctTotal).isEqualTo(responseNode.get("total").asInt());
} catch (JsonHelper.InvalidJSONException e) {
e.printStackTrace();
Assert.fail("Invalid json exception" + e.getMessage());
}
}
}
| mit |
NikolayKostov-IvayloKenov/TripExchangeSystem | Client/app/js/controllers/TripDetailsCtrl.js | 1335 | 'use strict';
tripExchange.controller('TripDetailsCtrl', ['$scope', '$routeParams', '$location', 'identity', 'notifier', 'TripsResource',
function TripDetailsCtrl($scope, $routeParams, $location, identity, notifier, TripsResource) {
TripsResource.byId($routeParams.id)
.$promise
.then(function(trip) {
$scope.trip = trip;
$scope.passengers = trip.passengers.join(', ');
$scope.disableJoinButton = function(trip) {
if (trip.numberOfFreeSeats < 1) {
return true;
}
if (trip.departureDate < (new Date()).toISOString()) {
return true;
}
for (var i = 0; i <= trip.passengers.length; i++) {
if (trip.passengers[i] == identity.getCurrentUser().userName) {
return true;
}
}
return false;
};
});
$scope.joinTrip = function(id) {
TripsResource.join(id)
.then(function() {
notifier.success('Successfully joined the trip');
$location.path('/trips');
});
};
}]); | mit |
darkrasid/gitlabhq | app/assets/javascripts/main.js | 11106 | /* eslint-disable func-names, space-before-function-paren, no-var, quotes, consistent-return, prefer-arrow-callback, comma-dangle, object-shorthand, no-new, max-len, no-multi-spaces, import/newline-after-import, import/first */
/* global bp */
/* global Flash */
/* global ConfirmDangerModal */
/* global Aside */
import jQuery from 'jquery';
import _ from 'underscore';
import Cookies from 'js-cookie';
import Pikaday from 'pikaday';
import Dropzone from 'dropzone';
import Sortable from 'vendor/Sortable';
// libraries with import side-effects
import 'mousetrap';
import 'mousetrap/plugins/pause/mousetrap-pause';
import 'vendor/fuzzaldrin-plus';
// extensions
import './extensions/array';
// expose common libraries as globals (TODO: remove these)
window.jQuery = jQuery;
window.$ = jQuery;
window._ = _;
window.Pikaday = Pikaday;
window.Dropzone = Dropzone;
window.Sortable = Sortable;
// shortcuts
import './shortcuts';
import './shortcuts_blob';
import './shortcuts_dashboard_navigation';
import './shortcuts_navigation';
import './shortcuts_find_file';
import './shortcuts_issuable';
import './shortcuts_network';
// behaviors
import './behaviors/';
// blob
import './blob/create_branch_dropdown';
import './blob/target_branch_dropdown';
// templates
import './templates/issuable_template_selector';
import './templates/issuable_template_selectors';
// commit
import './commit/file';
import './commit/image_file';
// lib/utils
import './lib/utils/animate';
import './lib/utils/bootstrap_linked_tabs';
import './lib/utils/common_utils';
import './lib/utils/datetime_utility';
import './lib/utils/notify';
import './lib/utils/pretty_time';
import './lib/utils/text_utility';
import './lib/utils/type_utility';
import './lib/utils/url_utility';
// u2f
import './u2f/authenticate';
import './u2f/error';
import './u2f/register';
import './u2f/util';
// everything else
import './abuse_reports';
import './activities';
import './admin';
import './ajax_loading_spinner';
import './api';
import './aside';
import './autosave';
import AwardsHandler from './awards_handler';
import './breakpoints';
import './broadcast_message';
import './build';
import './build_artifacts';
import './build_variables';
import './ci_lint_editor';
import './commit';
import './commits';
import './compare';
import './compare_autocomplete';
import './confirm_danger_modal';
import './copy_as_gfm';
import './copy_to_clipboard';
import './create_label';
import './diff';
import './dispatcher';
import './dropzone_input';
import './due_date_select';
import './files_comment_button';
import './flash';
import './gfm_auto_complete';
import './gl_dropdown';
import './gl_field_error';
import './gl_field_errors';
import './gl_form';
import './group_avatar';
import './group_label_subscription';
import './groups_select';
import './header';
import './importer_status';
import './issuable';
import './issuable_context';
import './issuable_form';
import './issue';
import './issue_status_select';
import './issues_bulk_assignment';
import './label_manager';
import './labels';
import './labels_select';
import './layout_nav';
import './line_highlighter';
import './logo';
import './member_expiration_date';
import './members';
import './merge_request';
import './merge_request_tabs';
import './merge_request_widget';
import './merged_buttons';
import './milestone';
import './milestone_select';
import './mini_pipeline_graph_dropdown';
import './namespace_select';
import './new_branch_form';
import './new_commit_form';
import './notes';
import './notifications_dropdown';
import './notifications_form';
import './pager';
import './pipelines';
import './preview_markdown';
import './project';
import './project_avatar';
import './project_find_file';
import './project_fork';
import './project_import';
import './project_label_subscription';
import './project_new';
import './project_select';
import './project_show';
import './project_variables';
import './projects_list';
import './render_gfm';
import './render_math';
import './right_sidebar';
import './search';
import './search_autocomplete';
import './signin_tabs_memoizer';
import './single_file_diff';
import './smart_interval';
import './snippets_list';
import './star';
import './subbable_resource';
import './subscription';
import './subscription_select';
import './syntax_highlight';
import './task_list';
import './todos';
import './tree';
import './usage_ping';
import './user';
import './user_tabs';
import './username_validator';
import './users_select';
import './version_check_image';
import './visibility_select';
import './wikis';
import './zen_mode';
// eslint-disable-next-line global-require
if (process.env.NODE_ENV !== 'production') require('./test_utils/');
document.addEventListener('beforeunload', function () {
// Unbind scroll events
$(document).off('scroll');
// Close any open tooltips
$('.has-tooltip, [data-toggle="tooltip"]').tooltip('destroy');
});
window.addEventListener('hashchange', gl.utils.handleLocationHash);
window.addEventListener('load', function onLoad() {
window.removeEventListener('load', onLoad, false);
gl.utils.handleLocationHash();
}, false);
$(function () {
var $body = $('body');
var $document = $(document);
var $window = $(window);
var $sidebarGutterToggle = $('.js-sidebar-toggle');
var $flash = $('.flash-container');
var bootstrapBreakpoint = bp.getBreakpointSize();
var fitSidebarForSize;
// Set the default path for all cookies to GitLab's root directory
Cookies.defaults.path = gon.relative_url_root || '/';
// `hashchange` is not triggered when link target is already in window.location
$body.on('click', 'a[href^="#"]', function() {
var href = this.getAttribute('href');
if (href.substr(1) === gl.utils.getLocationHash()) {
setTimeout(gl.utils.handleLocationHash, 1);
}
});
if (bootstrapBreakpoint === 'xs') {
const $rightSidebar = $('aside.right-sidebar, .page-with-sidebar');
$rightSidebar
.removeClass('right-sidebar-expanded')
.addClass('right-sidebar-collapsed');
}
// prevent default action for disabled buttons
$('.btn').click(function(e) {
if ($(this).hasClass('disabled')) {
e.preventDefault();
e.stopImmediatePropagation();
return false;
}
});
$('.js-select-on-focus').on('focusin', function () {
return $(this).select().one('mouseup', function (e) {
return e.preventDefault();
});
// Click a .js-select-on-focus field, select the contents
// Prevent a mouseup event from deselecting the input
});
$('.remove-row').bind('ajax:success', function () {
$(this).tooltip('destroy')
.closest('li')
.fadeOut();
});
$('.js-remove-tr').bind('ajax:before', function () {
return $(this).hide();
});
$('.js-remove-tr').bind('ajax:success', function () {
return $(this).closest('tr').fadeOut();
});
$('select.select2').select2({
width: 'resolve',
// Initialize select2 selects
dropdownAutoWidth: true
});
$('.js-select2').bind('select2-close', function () {
return setTimeout((function () {
$('.select2-container-active').removeClass('select2-container-active');
return $(':focus').blur();
}), 1);
// Close select2 on escape
});
// Initialize tooltips
$.fn.tooltip.Constructor.DEFAULTS.trigger = 'hover';
$body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]',
placement: function (tip, el) {
return $(el).data('placement') || 'bottom';
}
});
$('.trigger-submit').on('change', function () {
return $(this).parents('form').submit();
// Form submitter
});
gl.utils.localTimeAgo($('abbr.timeago, .js-timeago'), true);
// Flash
if ($flash.length > 0) {
$flash.click(function () {
return $(this).fadeOut();
});
$flash.show();
}
// Disable form buttons while a form is submitting
$body.on('ajax:complete, ajax:beforeSend, submit', 'form', function (e) {
var buttons;
buttons = $('[type="submit"], .js-disable-on-submit', this);
switch (e.type) {
case 'ajax:beforeSend':
case 'submit':
return buttons.disable();
default:
return buttons.enable();
}
});
$(document).ajaxError(function (e, xhrObj) {
var ref = xhrObj.status;
if (xhrObj.status === 401) {
return new Flash('You need to be logged in.', 'alert');
} else if (ref === 404 || ref === 500) {
return new Flash('Something went wrong on our end.', 'alert');
}
});
$('.account-box').hover(function () {
// Show/Hide the profile menu when hovering the account box
return $(this).toggleClass('hover');
});
$document.on('click', '.diff-content .js-show-suppressed-diff', function () {
var $container;
$container = $(this).parent();
$container.next('table').show();
return $container.remove();
// Commit show suppressed diff
});
$('.navbar-toggle').on('click', function () {
$('.header-content .title').toggle();
$('.header-content .header-logo').toggle();
$('.header-content .navbar-collapse').toggle();
return $('.navbar-toggle').toggleClass('active');
});
// Show/hide comments on diff
$body.on('click', '.js-toggle-diff-comments', function (e) {
var $this = $(this);
var notesHolders = $this.closest('.diff-file').find('.notes_holder');
$this.toggleClass('active');
if ($this.hasClass('active')) {
notesHolders.show().find('.hide, .content').show();
} else {
notesHolders.hide().find('.content').hide();
}
$(document).trigger('toggle.comments');
return e.preventDefault();
});
$document.off('click', '.js-confirm-danger');
$document.on('click', '.js-confirm-danger', function (e) {
var btn = $(e.target);
var form = btn.closest('form');
var text = btn.data('confirm-danger-message');
e.preventDefault();
return new ConfirmDangerModal(form, text);
});
$('input[type="search"]').each(function () {
var $this = $(this);
$this.attr('value', $this.val());
});
$document.off('keyup', 'input[type="search"]').on('keyup', 'input[type="search"]', function () {
var $this;
$this = $(this);
return $this.attr('value', $this.val());
});
$document.off('breakpoint:change').on('breakpoint:change', function (e, breakpoint) {
var $gutterIcon;
if (breakpoint === 'sm' || breakpoint === 'xs') {
$gutterIcon = $sidebarGutterToggle.find('i');
if ($gutterIcon.hasClass('fa-angle-double-right')) {
return $sidebarGutterToggle.trigger('click');
}
}
});
fitSidebarForSize = function () {
var oldBootstrapBreakpoint;
oldBootstrapBreakpoint = bootstrapBreakpoint;
bootstrapBreakpoint = bp.getBreakpointSize();
if (bootstrapBreakpoint !== oldBootstrapBreakpoint) {
return $document.trigger('breakpoint:change', [bootstrapBreakpoint]);
}
};
$window.off('resize.app').on('resize.app', function () {
return fitSidebarForSize();
});
gl.awardsHandler = new AwardsHandler();
new Aside();
gl.utils.initTimeagoTimeout();
$(document).trigger('init.scrolling-tabs');
});
| mit |
kamil-mrzyglod/Scythe.Fody | Scythe.Fody/Scythes/ParametersCount.cs | 1094 | namespace Scythe.Fody.Scythes
{
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Mono.Cecil;
public class ParametersCount : IScythe
{
/// <summary>
/// Checks whether given method parameters count
/// is less than the defined threshold
/// </summary>
public IEnumerable<ErrorMessage> Check(MethodDefinition definition, XElement config)
{
var element = config.Elements("ParametersCount").FirstOrDefault();
if(element == null)
yield break;
var parameters = element.Attribute("Parameters").Value;
var severity = element.Attribute("Severity").Value;
if (definition.Parameters.Count > int.Parse(parameters))
yield return
new ErrorMessage(
$"Method {definition.FullName} contains {definition.Parameters.Count} parameters while max is {parameters}",
ErrorType.ParametersCount,
severity);
}
}
} | mit |
skeiter9/javascript-para-todo_demo | webapp/node_modules/webpack/benchmark/fixtures/752.js | 104 | require("./94.js");
require("./188.js");
require("./376.js");
require("./751.js");
module.exports = 752; | mit |
eloquent/lockbox-java | src/test/java/co/lqnt/lockbox/test/FunctionalTest.java | 12489 | /*
* This file is part of the Lockbox package.
*
* Copyright © 2013 Erin Millard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package co.lqnt.lockbox.test;
import co.lqnt.lockbox.BoundDecryptionCipher;
import co.lqnt.lockbox.BoundEncryptionCipher;
import co.lqnt.lockbox.Cipher;
import co.lqnt.lockbox.DecryptionCipher;
import co.lqnt.lockbox.EncryptionCipher;
import co.lqnt.lockbox.exception.DecryptionFailedException;
import co.lqnt.lockbox.key.KeyFactory;
import co.lqnt.lockbox.key.PrivateKey;
import co.lqnt.lockbox.key.PublicKey;
import co.lqnt.lockbox.key.exception.PrivateKeyReadException;
import co.lqnt.lockbox.util.SecureRandom;
import co.lqnt.lockbox.util.codec.Base64UriCodec;
import java.io.File;
import java.net.URI;
import java.nio.charset.Charset;
import org.bouncycastle.crypto.AsymmetricBlockCipher;
import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.digests.SHA1Digest;
import org.bouncycastle.crypto.encodings.OAEPEncoding;
import org.bouncycastle.crypto.engines.AESEngine;
import org.bouncycastle.crypto.engines.RSAEngine;
import org.bouncycastle.crypto.modes.CBCBlockCipher;
import org.bouncycastle.crypto.paddings.PKCS7Padding;
import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher;
import org.mockito.Mockito;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class FunctionalTest
{
public FunctionalTest() throws Throwable
{
this.encryptionCipher = new EncryptionCipher();
this.decryptionCipher = new DecryptionCipher();
this.cipher = new Cipher(this.encryptionCipher, this.decryptionCipher);
this.keyFactory = new KeyFactory();
this.exampleKeyFileUri = this.getClass().getClassLoader().getResource("pem/rsa-2048.private.pem").toURI();
}
@DataProvider(name = "specVectorData")
public Object[][] specVectorData()
{
return new Object[][]{
{
2048,
"",
"12345678901234567890123456789012",
"1234567890123456",
"QJyn73i2dlN_V9o2fVLLmh4U85AIEL5v" +
"Cch2sP5aw3CogMBn5qRpokg6OFjRxsYB" +
"xb_Oqe8n9GALxJsuuqyZgWXxSK0exA2P" +
"QnAECIcujG9EyM4GlQodJiJdMtDJh0Dd" +
"frp7s87w7YWgleaK_3JVqEpjRolj1AWr" +
"DjXeFDl_tGIZ1R95PD2mbq6OUgm1Q56M" +
"CRLZdZJOm3yixcGHQOV2wv73YIbOvOa8" +
"hEZ7ydX-VRHPMmJyFgUe9gv8G8sDm6xY" +
"UEz1rIu62XwMoMB4B3UZo_r0Q9xCr4sx" +
"BVPY7bOAp6AUjOuvsHwBGJQHZi3k665w" +
"mShg7pw8HFkr_Fea4nzimditNTFRhW3K" +
"MfhqusPDqWJ7K37AvEHDaLULPKBNj24c",
342
},
{
2048,
"1234",
"12345678901234567890123456789012",
"1234567890123456",
"MFq4hhLJN8_F6ODUWX20tO4RIJURlMHA" +
"mdujFMTyqc2Y3zHIXzmaK4CcoThggqZX" +
"44-4kbhjwk9ihwuzS4GAQuSCCdoh5xzT" +
"WfeboPu6zE51BrZQdz67VavvmvpHVdGg" +
"oQcSsa_GiZcc7aBYh-AhfCyHrPb-r1hN" +
"y_AWXv8hcO8mIS1fJ3Mvtr3Xxfwlydrn" +
"23YUwuOG-tX4FctKqh2eFFkrht53ZwVv" +
"7q67U3x774KjbUpB4LbML6APxe4ucghl" +
"DpY_A_DFLH2GlvvouVaT3jCibkY_yIMC" +
"1lNSBIdgpKGoAoZWy4bIpqDUu0SiLvDO" +
"mclpPRARakRr15F21a_MQ9wL_JNwnG1u" +
"T1zKZNgUcr2GaWk31ahOBKB0lfr-E7W2",
342
},
{
2048,
"1234567890123456",
"12345678901234567890123456789012",
"1234567890123456",
"oFqfBVNvWyUYThQiA54V_Lpx6Ka2zqEF" +
"QCQBxcYhnbG2uuShACbf3I31USwRCFDV" +
"mBLmfcO4ReMJFQzen-tRRuapOQ4Pjzdp" +
"IRw_T9wYjj0n3Sjs1NZnDbN3hbHCmXoq" +
"sl0byi0Lr5hwhmqOCj7Po5ey4EsPpuqb" +
"tPx38PPae-zOlnMrdYuKhV8jIMDSsslf" +
"VWMOgUlYnDOt9Pd1NEJkJE-GxYIYyzPB" +
"_NtxwQf5moDjsNzxtx5fzEejo8BGDQ5Q" +
"phjkQCBmMWd1fKN3Z3aBSNn_WS2HwxzU" +
"gl10lzaHityP9iZU2DY8qkQB_wSk7-pf" +
"h05CITq0DPIOHDQzVkcWlnuUZ55SZL-E" +
"BpxoZDMH74B7GmHK66rSGH0MoSGY1fZC" +
"hAWyjRKa0nWslBVkLoJRUg",
342
},
{
4096,
"1234567890123456",
"12345678901234567890123456789012",
"1234567890123456",
"rqA8g_yyA0eeLoun6rqnUxgy3JnIS9p8" +
"bAgZYf4774ZahHcFCOozwWbMU_0HVMS9" +
"sOlAmr-dQl6RqDaOLfAxrHq3mluFSlXf" +
"gcJXrvPtf27u_4NCHXuwm825ptpmprPx" +
"wl0z4tz6u-fqNBSfQuHApZ3MvAGsEa0v" +
"b0IftBX0q8tKL6sdCx6WpTGcynEdxLcZ" +
"Tx6cM4LRdcjL3SQZ5vk4VF69lS2r1WgJ" +
"h8eUa_VwgsqhTkoc7wJAECqxHBQSh6q-" +
"GOt6bpVnlaGkM_BfcrB5SJdtcEZd5BgG" +
"xG8QwQGwsT60jErxpd5rYLfBrG7kgVse" +
"yksfN-99-kUHQpkwCIS_zS5bpr3hLpBi" +
"UhSA4638Xgd2qyAZCgl3OBY56HSdncZq" +
"5o4xGycM69eN5hb-c852W-dP6S49BXSn" +
"3OpmEOkZoIeNw0EYHpLLpfaLwafIVdLC" +
"bQZX1g_szDcBDyyM-PN5-jnuaqySRywF" +
"rMj56U9vAvwtFMaHKY-ll4Qxf8PgoDWM" +
"7KogGgkztlZ0ZzaMwBLQeTDpjbNl5NXJ" +
"CxobJfGv8w6zQZmDz8J2K3DsQrDmZid_" +
"W6Gtsv7XsSnY-gl6TD4IkK1VEKnttqXa" +
"PfVdCNadtQ-Z1INiK2pa3F0NKs4POO-K" +
"PpW68kQ5l2qeUAVv6B-QdcwunyMh9XO_" +
"vGx8Wf8SrbZ7lGeeUmS_hAacaGQzB--A" +
"exphyuuq0hh9DKEhmNX2QoQFso0SmtJ1" +
"rJQVZC6CUVI",
684
}
};
}
@Test(dataProvider = "specVectorData")
public void testSpecVectorsEncryption(
final int bits,
final String data,
final String key,
final String iv,
final String encrypted,
final int rsaLength
)
throws Throwable
{
AsymmetricBlockCipher rsaCipher = new OAEPEncoding(
new RSAEngine(),
new SHA1Digest()
);
BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(
new CBCBlockCipher(new AESEngine()),
new PKCS7Padding()
);
SecureRandom random = Mockito.mock(SecureRandom.class);
Mockito.when(random.generate(32)).thenReturn(key.getBytes(Charset.forName("US-ASCII")));
Mockito.when(random.generate(16)).thenReturn(iv.getBytes(Charset.forName("US-ASCII")));
this.encryptionCipher = new EncryptionCipher(
new Base64UriCodec(),
rsaCipher,
aesCipher,
new SHA1Digest(),
random
);
PrivateKey privateKey = this.keyFactory.createPrivateKey(
this.getClass().getClassLoader().getResourceAsStream(String.format("pem/rsa-%d-nopass.private.pem", bits))
);
String actualEncrypted = this.encryptionCipher.encrypt(privateKey, data);
Assert.assertEquals(actualEncrypted.substring(rsaLength), encrypted.substring(rsaLength));
}
@Test(dataProvider = "specVectorData")
public void testSpecVectorsDecryption(
int bits,
String data,
String key,
String iv,
String encrypted,
int rsaLength
)
throws Throwable
{
PrivateKey privateKey = this.keyFactory.createPrivateKey(
this.getClass().getClassLoader().getResourceAsStream(String.format("pem/rsa-%d-nopass.private.pem", bits))
);
String decrypted = this.cipher.decrypt(privateKey, encrypted);
Assert.assertEquals(decrypted, data);
}
@Test
public void testEncryptDecryptWithGeneratedKey() throws Throwable
{
PrivateKey privateKey = this.keyFactory.generatePrivateKey();
String encrypted = this.cipher.encrypt(privateKey, "foobar");
String decrypted = this.cipher.decrypt(privateKey, encrypted);
Assert.assertEquals(decrypted, "foobar");
}
@Test
public void testEncryptDecryptWithLargeGeneratedKey() throws Throwable
{
PrivateKey privateKey = this.keyFactory.generatePrivateKey(4096);
String encrypted = this.cipher.encrypt(privateKey, "foobar");
String decrypted = this.cipher.decrypt(privateKey, encrypted);
Assert.assertEquals(decrypted, "foobar");
}
@Test
public void testDocumentationSyntaxGeneratingKeys()
{
KeyFactory keyFactory = new KeyFactory();
PrivateKey privateKey = keyFactory.generatePrivateKey();
/* System.out.println( */ privateKey.toPem(); // ); // outputs the key in PEM format
/* System.out.println( */ privateKey.toPem("password"); // ); // outputs the key in encrypted PEM format
PublicKey publicKey = privateKey.publicKey();
/* System.out.println( */ publicKey.toPem(); // ); // outputs the key in PEM format
}
@Test
public void testDocumentationSyntaxEncrypting()
{
String data = "Super secret data.";
KeyFactory keyFactory = new KeyFactory();
PrivateKey key;
try {
key = keyFactory.createPrivateKey(new File(this.exampleKeyFileUri), "password");
} catch (PrivateKeyReadException e) {
throw new RuntimeException("MISSION ABORT!", e); // this could be handled much better...
}
EncryptionCipher cipher = new EncryptionCipher();
String encrypted = cipher.encrypt(key, data);
}
@Test
public void testDocumentationSyntaxEncryptingMultiple()
{
String[] data = new String[] {
"Super secret data.",
"Extra secret data.",
"Mega secret data."
};
KeyFactory keyFactory = new KeyFactory();
PrivateKey key;
try {
key = keyFactory.createPrivateKey(new File(this.exampleKeyFileUri), "password");
} catch (PrivateKeyReadException e) {
throw new RuntimeException("MISSION ABORT!", e); // this could be handled much better...
}
BoundEncryptionCipher cipher = new BoundEncryptionCipher(key);
String[] encrypted = new String[data.length];
for (int i = 0; i < data.length; ++i) {
encrypted[i] = cipher.encrypt(data[i]);
}
}
@Test
public void testDocumentationSyntaxDecrypting()
{
String encrypted = "<some encrypted data>";
KeyFactory keyFactory = new KeyFactory();
PrivateKey key;
try {
key = keyFactory.createPrivateKey(new File(this.exampleKeyFileUri), "password");
} catch (PrivateKeyReadException e) {
throw new RuntimeException("MISSION ABORT!", e); // this could be handled much better...
}
DecryptionCipher cipher = new DecryptionCipher();
String data;
try {
data = cipher.decrypt(key, encrypted);
} catch (DecryptionFailedException e) {
// decryption failed
}
}
@Test
public void testDocumentationSyntaxDecryptingMultiple()
{
String[] encrypted = new String[] {
"<some encrypted data>",
"<more encrypted data>",
"<other encrypted data>"
};
KeyFactory keyFactory = new KeyFactory();
PrivateKey key;
try {
key = keyFactory.createPrivateKey(new File(this.exampleKeyFileUri), "password");
} catch (PrivateKeyReadException e) {
throw new RuntimeException("MISSION ABORT!", e); // this could be handled much better...
}
BoundDecryptionCipher cipher = new BoundDecryptionCipher(key);
String[] data = new String[encrypted.length];
for (int i = 0; i < encrypted.length; ++i) {
try {
data[i] = cipher.decrypt(encrypted[i]);
} catch (DecryptionFailedException e) {
// decryption failed
}
}
}
private EncryptionCipher encryptionCipher;
private DecryptionCipher decryptionCipher;
private Cipher cipher;
private KeyFactory keyFactory;
private URI exampleKeyFileUri;
}
| mit |
barumel/ultritium-radio-player | src/js/components/song/modal/Playlist.js | 2445 | import React from 'react';
import { Row, Col, Button, Modal, FormGroup, ControlLabel, ListGroup, ListGroupItem, Checkbox, ToggleButton } from 'react-bootstrap';
import { filter } from 'lodash';
export class PlaylistModal extends React.Component {
constructor() {
super();
this.state = {
active: []
}
}
activate(playlist) {
const { active } = this.state;
if (active.includes(playlist)) {
_.pull(active, playlist);
} else {
active.push(playlist);
}
this.setState({active});
}
isActive(playlist) {
const { active } = this.state;
return active.includes(playlist)
}
close() {
const { modal } = this.props;
let { active } = this.state;
const result = {
song: modal.song,
playlists: active
}
active = [];
this.setState({active});
modal.close(result);
}
dismiss() {
const { modal } = this.props;
const active = [];
this.setState({active});
modal.dismiss();
}
render() {
const { active } = this.state;
const { playlists } = this.props;
const disabled = _.filter(active, (value) => value).length == 0 ? true : false;
const children = playlists.map((playlist) => {
return(
<ListGroupItem onClick={this.activate.bind(this, playlist)}>
<strong>{playlist.title} <i class={"fa fa-check pull-right " + (this.isActive(playlist) ? '' : 'hidden')}></i></strong>
<p>{playlist.description}</p>
</ListGroupItem>
);
});
return(
<Modal {...this.props}>
<Modal.Header closeButton>
<Modal.Title id="contained-modal-title-lg">Select Playlist</Modal.Title>
</Modal.Header>
<Modal.Body>
<Row>
<ListGroup>
{children}
</ListGroup>
</Row>
</Modal.Body>
<Modal.Footer>
<Row>
<FormGroup>
<Col componentClass={ControlLabel} md={12} sm={12} xs={12}>
<Button bsStyle="success" bsSize="medium" disabled={disabled} onClick={this.close.bind(this)} block>Save</Button>
</Col>
<Col componentClass={ControlLabel} md={12} sm={12} xs={12}>
<Button bsStyle="warning" bsSize="medium" onClick={this.dismiss.bind(this)} block>Cancel</Button>
</Col>
</FormGroup>
</Row>
</Modal.Footer>
</Modal>
);
}
}
| mit |
Onefootball/onefootball-angular-components | src/filters/ofCyrillic2latin.filter.js | 1849 | angular
.module('onefootball.components.filters')
.filter('ofCyrillic2Latin', ofCyrillic2Latin);
function ofCyrillic2Latin() {
return function (input) {
var a = {
"Ё": "YO",
"Й": "I",
"Ц": "TS",
"У": "U",
"К": "K",
"Е": "E",
"Н": "N",
"Г": "G",
"Ш": "SH",
"Щ": "SCH",
"З": "Z",
"Х": "H",
"Ъ": "'",
"ё": "yo",
"й": "i",
"ц": "ts",
"у": "u",
"к": "k",
"е": "e",
"н": "n",
"г": "g",
"ш": "sh",
"щ": "sch",
"з": "z",
"х": "h",
"ъ": "'",
"Ф": "F",
"Ы": "I",
"В": "V",
"А": "a",
"П": "P",
"Р": "R",
"О": "O",
"Л": "L",
"Д": "D",
"Ж": "ZH",
"Э": "E",
"ф": "f",
"ы": "i",
"в": "v",
"а": "a",
"п": "p",
"р": "r",
"о": "o",
"л": "l",
"д": "d",
"ж": "zh",
"э": "e",
"Я": "Ya",
"Ч": "CH",
"С": "S",
"М": "M",
"И": "I",
"Т": "T",
"Ь": "'",
"Б": "B",
"Ю": "YU",
"я": "ya",
"ч": "ch",
"с": "s",
"м": "m",
"и": "i",
"т": "t",
"ь": "'",
"б": "b",
"ю": "yu"
};
return input.split('').map(function (char) {
return a[char] || char;
}).join("");
};
}
| mit |
cusmanof/fp_ci | application/controllers/Auth.php | 25948 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class Auth extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->database();
$this->load->library(array('ion_auth','form_validation'));
$this->load->helper(array('url','language'));
$this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth'));
$this->lang->load('auth');
}
// redirect if needed, otherwise display the user list
function index()
{
if (!$this->ion_auth->logged_in())
{
// redirect them to the login page
redirect('auth/login', 'refresh');
}
elseif (!$this->ion_auth->is_admin()) // remove this elseif if you want to enable this for non-admins
{
// redirect them to the home page because they must be an administrator to view this
return show_error('You must be an administrator to view this page.');
}
else
{
// set the flash data error message if there is one
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
//list the users
$this->data['users'] = $this->ion_auth->users()->result();
foreach ($this->data['users'] as $k => $user)
{
$this->data['users'][$k]->groups = $this->ion_auth->get_users_groups($user->id)->result();
}
$this->_render_page('auth/index', $this->data);
}
}
// log the user in
function login()
{
$this->data['title'] = "Login";
//validate form input
$this->form_validation->set_rules('identity', 'Identity', 'required');
$this->form_validation->set_rules('password', 'Password', 'required');
if ($this->form_validation->run() == true)
{
// check to see if the user is logging in
// check for "remember me"
$remember = (bool) $this->input->post('remember');
if ($this->ion_auth->login($this->input->post('identity'), $this->input->post('password'), $remember))
{
//if the login is successful
//redirect them back to the home page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect('/', 'refresh');
}
else
{
// if the login was un-successful
// redirect them back to the login page
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect('auth/login', 'refresh'); // use redirects instead of loading views for compatibility with MY_Controller libraries
}
}
else
{
// the user is not logging in so display the login page
// set the flash data error message if there is one
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
$this->data['identity'] = array('name' => 'identity',
'id' => 'identity',
'type' => 'text',
'value' => $this->form_validation->set_value('identity'),
);
$this->data['password'] = array('name' => 'password',
'id' => 'password',
'type' => 'password',
);
$this->_render_page('auth/login', $this->data);
}
}
// log the user out
function logout()
{
$this->data['title'] = "Logout";
// log the user out
$logout = $this->ion_auth->logout();
// redirect them to the login page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect('auth/login', 'refresh');
}
// change password
function change_password()
{
$this->form_validation->set_rules('old', $this->lang->line('change_password_validation_old_password_label'), 'required');
$this->form_validation->set_rules('new', $this->lang->line('change_password_validation_new_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]');
$this->form_validation->set_rules('new_confirm', $this->lang->line('change_password_validation_new_password_confirm_label'), 'required');
if (!$this->ion_auth->logged_in())
{
redirect('auth/login', 'refresh');
}
$user = $this->ion_auth->user()->row();
if ($this->form_validation->run() == false)
{
// display the form
// set the flash data error message if there is one
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
$this->data['min_password_length'] = $this->config->item('min_password_length', 'ion_auth');
$this->data['old_password'] = array(
'name' => 'old',
'id' => 'old',
'type' => 'password',
);
$this->data['new_password'] = array(
'name' => 'new',
'id' => 'new',
'type' => 'password',
'pattern' => '^.{'.$this->data['min_password_length'].'}.*$',
);
$this->data['new_password_confirm'] = array(
'name' => 'new_confirm',
'id' => 'new_confirm',
'type' => 'password',
'pattern' => '^.{'.$this->data['min_password_length'].'}.*$',
);
$this->data['user_id'] = array(
'name' => 'user_id',
'id' => 'user_id',
'type' => 'hidden',
'value' => $user->id,
);
// render
$this->_render_page('auth/change_password', $this->data);
}
else
{
$identity = $this->session->userdata('identity');
$change = $this->ion_auth->change_password($identity, $this->input->post('old'), $this->input->post('new'));
if ($change)
{
//if the password was successfully changed
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect('welcome', 'refresh');
}
else
{
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect('auth/change_password', 'refresh');
}
}
}
// forgot password
function forgot_password()
{
// setting validation rules by checking wheather identity is username or email
if($this->config->item('identity', 'ion_auth') != 'email' )
{
$this->form_validation->set_rules('identity', $this->lang->line('forgot_password_identity_label'), 'required');
}
else
{
$this->form_validation->set_rules('email', $this->lang->line('forgot_password_validation_email_label'), 'required|valid_email');
}
if ($this->form_validation->run() == false)
{
// setup the input
$this->data['email'] = array('name' => 'email',
'id' => 'email',
);
if ( $this->config->item('identity', 'ion_auth') != 'email' ){
$this->data['identity_label'] = $this->lang->line('forgot_password_identity_label');
}
else
{
$this->data['identity_label'] = $this->lang->line('forgot_password_email_identity_label');
}
// set any errors and display the form
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
$this->_render_page('auth/forgot_password', $this->data);
}
else
{
$identity_column = $this->config->item('identity','ion_auth');
$identity = $this->ion_auth->where($identity_column, $this->input->post('email'))->users()->row();
if(empty($identity)) {
if($this->config->item('identity', 'ion_auth') != 'email')
{
$this->ion_auth->set_error('forgot_password_identity_not_found');
}
else
{
$this->ion_auth->set_error('forgot_password_email_not_found');
}
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect("auth/forgot_password", 'refresh');
}
// run the forgotten password method to email an activation code to the user
$forgotten = $this->ion_auth->forgotten_password($identity->{$this->config->item('identity', 'ion_auth')});
if ($forgotten)
{
// if there were no errors
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect("auth/login", 'refresh'); //we should display a confirmation page here instead of the login page
}
else
{
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect("auth/forgot_password", 'refresh');
}
}
}
// reset password - final step for forgotten password
public function reset_password($code = NULL)
{
if (!$code)
{
show_404();
}
$user = $this->ion_auth->forgotten_password_check($code);
if ($user)
{
// if the code is valid then display the password reset form
$this->form_validation->set_rules('new', $this->lang->line('reset_password_validation_new_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[new_confirm]');
$this->form_validation->set_rules('new_confirm', $this->lang->line('reset_password_validation_new_password_confirm_label'), 'required');
if ($this->form_validation->run() == false)
{
// display the form
// set the flash data error message if there is one
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
$this->data['min_password_length'] = $this->config->item('min_password_length', 'ion_auth');
$this->data['new_password'] = array(
'name' => 'new',
'id' => 'new',
'type' => 'password',
'pattern' => '^.{'.$this->data['min_password_length'].'}.*$',
);
$this->data['new_password_confirm'] = array(
'name' => 'new_confirm',
'id' => 'new_confirm',
'type' => 'password',
'pattern' => '^.{'.$this->data['min_password_length'].'}.*$',
);
$this->data['user_id'] = array(
'name' => 'user_id',
'id' => 'user_id',
'type' => 'hidden',
'value' => $user->id,
);
$this->data['csrf'] = $this->_get_csrf_nonce();
$this->data['code'] = $code;
// render
$this->_render_page('auth/reset_password', $this->data);
}
else
{
// do we have a valid request?
if ($this->_valid_csrf_nonce() === FALSE || $user->id != $this->input->post('user_id'))
{
// something fishy might be up
$this->ion_auth->clear_forgotten_password_code($code);
show_error($this->lang->line('error_csrf'));
}
else
{
// finally change the password
$identity = $user->{$this->config->item('identity', 'ion_auth')};
$change = $this->ion_auth->reset_password($identity, $this->input->post('new'));
if ($change)
{
// if the password was successfully changed
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect("auth/login", 'refresh');
}
else
{
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect('auth/reset_password/' . $code, 'refresh');
}
}
}
}
else
{
// if the code is invalid then send them back to the forgot password page
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect("auth/forgot_password", 'refresh');
}
}
// activate the user
function activate($id, $code=false)
{
if ($code !== false)
{
$activation = $this->ion_auth->activate($id, $code);
}
else if ($this->ion_auth->is_admin())
{
$activation = $this->ion_auth->activate($id);
}
if ($activation)
{
// redirect them to the auth page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect("auth", 'refresh');
}
else
{
// redirect them to the forgot password page
$this->session->set_flashdata('message', $this->ion_auth->errors());
redirect("auth/forgot_password", 'refresh');
}
}
// deactivate the user
function deactivate($id = NULL)
{
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())
{
// redirect them to the home page because they must be an administrator to view this
return show_error('You must be an administrator to view this page.');
}
$id = (int) $id;
$this->load->library('form_validation');
$this->form_validation->set_rules('confirm', $this->lang->line('deactivate_validation_confirm_label'), 'required');
$this->form_validation->set_rules('id', $this->lang->line('deactivate_validation_user_id_label'), 'required|alpha_numeric');
if ($this->form_validation->run() == FALSE)
{
// insert csrf check
$this->data['csrf'] = $this->_get_csrf_nonce();
$this->data['user'] = $this->ion_auth->user($id)->row();
$this->_render_page('auth/deactivate_user', $this->data);
}
else
{
// do we really want to deactivate?
if ($this->input->post('confirm') == 'yes')
{
// do we have a valid request?
if ($this->_valid_csrf_nonce() === FALSE || $id != $this->input->post('id'))
{
show_error($this->lang->line('error_csrf'));
}
// do we have the right userlevel?
if ($this->ion_auth->logged_in() && $this->ion_auth->is_admin())
{
$this->ion_auth->deactivate($id);
}
}
// redirect them back to the auth page
redirect('auth', 'refresh');
}
}
// create a new user
function create_user()
{
$this->data['title'] = "Create User";
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())
{
redirect('auth', 'refresh');
}
$tables = $this->config->item('tables','ion_auth');
$identity_column = $this->config->item('identity','ion_auth');
$this->data['identity_column'] = $identity_column;
// validate form input
$this->form_validation->set_rules('identity',$this->lang->line('create_user_validation_identity_label'),'required|is_unique['.$tables['users'].'.'.$identity_column.']');
$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'required|valid_email');
$this->form_validation->set_rules('phone', $this->lang->line('create_user_validation_phone_label'), 'trim');
$this->form_validation->set_rules('bay', $this->lang->line('create_user_validation_bay_label'), 'trim');
$this->form_validation->set_rules('password', $this->lang->line('create_user_validation_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]');
$this->form_validation->set_rules('password_confirm', $this->lang->line('create_user_validation_password_confirm_label'), 'required');
if ($this->form_validation->run() == true)
{
$email = strtolower($this->input->post('email'));
$identity = $this->input->post('identity');
$password = $this->input->post('password');
$additional_data = array(
'bay' => $this->input->post('bay'),
'phone' => $this->input->post('phone'),
);
}
if ($this->form_validation->run() == true && $this->ion_auth->register($identity, $password, $email, $additional_data))
{
// check to see if we are creating the user
// redirect them back to the admin page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect("auth", 'refresh');
}
else
{
// display the create user form
// set the flash data error message if there is one
$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
$this->data['identity'] = array(
'name' => 'identity',
'id' => 'identity',
'type' => 'text',
'value' => $this->form_validation->set_value('identity
'),
);
$this->data['email'] = array(
'name' => 'email',
'id' => 'email',
'type' => 'text',
'value' => $this->form_validation->set_value('email'),
);
$this->data['bay'] = array(
'name' => 'bay',
'id' => 'bay',
'type' => 'text',
'value' => $this->form_validation->set_value('bay'),
);
$this->data['phone'] = array(
'name' => 'phone',
'id' => 'phone',
'type' => 'text',
'value' => $this->form_validation->set_value('phone'),
);
$this->data['password'] = array(
'name' => 'password',
'id' => 'password',
'type' => 'password',
'value' => $this->form_validation->set_value('password'),
);
$this->data['password_confirm'] = array(
'name' => 'password_confirm',
'id' => 'password_confirm',
'type' => 'password',
'value' => $this->form_validation->set_value('password_confirm'),
);
$this->_render_page('auth/create_user', $this->data);
}
}
// edit a user
function edit_user($id="")
{
if (empty($id)) {
$id = $this->ion_auth->get_user_id();
}
$this->data['title'] = "Edit User";
if (!$this->ion_auth->logged_in() || (!$this->ion_auth->is_admin() && !($this->ion_auth->user()->row()->id == $id)))
{
redirect('auth', 'refresh');
}
$user = $this->ion_auth->user($id)->row();
$groups=$this->ion_auth->groups()->result_array();
$currentGroups = $this->ion_auth->get_users_groups($id)->result();
if (isset($_POST) && !empty($_POST))
{
// do we have a valid request?
if ($this->_valid_csrf_nonce() === FALSE || $id != $this->input->post('id'))
{
show_error($this->lang->line('error_csrf'));
}
// update the password if it was posted
if ($this->input->post('password'))
{
$this->form_validation->set_rules('password', $this->lang->line('edit_user_validation_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]');
$this->form_validation->set_rules('password_confirm', $this->lang->line('edit_user_validation_password_confirm_label'), 'required');
}
$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'required|valid_email');
$this->form_validation->set_rules('phone', $this->lang->line('create_user_validation_phone_label'), 'trim');
$this->form_validation->set_rules('bay', $this->lang->line('create_user_validation_bay_label'), 'trim');
if ($this->form_validation->run() === TRUE)
{
$data = array(
'email' => $this->input->post('email'),
'phone' => $this->input->post('phone'),
'bay' => $this->input->post('bay'),
);
// update the password if it was posted
if ($this->input->post('password'))
{
$data['password'] = $this->input->post('password');
}
// Only allow updating groups if user is admin
if ($this->ion_auth->is_admin())
{
//Update the groups user belongs to
$groupData = $this->input->post('groups');
if (isset($groupData) && !empty($groupData)) {
$this->ion_auth->remove_from_group('', $id);
foreach ($groupData as $grp) {
$this->ion_auth->add_to_group($grp, $id);
}
}
}
// check to see if we are updating the user
if($this->ion_auth->update($user->id, $data))
{
// redirect them back to the admin page if admin, or to the base url if non admin
$this->session->set_flashdata('message', $this->ion_auth->messages() );
if ($this->ion_auth->is_admin())
{
redirect('auth', 'refresh');
}
else
{
redirect('/', 'refresh');
}
}
else
{
// redirect them back to the admin page if admin, or to the base url if non admin
$this->session->set_flashdata('message', $this->ion_auth->errors() );
if ($this->ion_auth->is_admin())
{
redirect('auth', 'refresh');
}
else
{
redirect('/', 'refresh');
}
}
}
}
// display the edit user form
$this->data['csrf'] = $this->_get_csrf_nonce();
// set the flash data error message if there is one
$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
// pass the user to the view
$this->data['user'] = $user;
$this->data['groups'] = $groups;
$this->data['currentGroups'] = $currentGroups;
$this->data['email'] = array(
'name' => 'email',
'id' => 'email',
'type' => 'text',
'value' => $this->form_validation->set_value('email', $user->email),
);
$this->data['phone'] = array(
'name' => 'phone',
'id' => 'phone',
'type' => 'text',
'value' => $this->form_validation->set_value('phone', $user->phone),
);
$this->data['bay'] = array(
'name' => 'bay',
'id' => 'bay',
'type' => 'text',
'value' => $this->form_validation->set_value('bay', $user->bay),
);
$this->data['password'] = array(
'name' => 'password',
'id' => 'password',
'type' => 'password'
);
$this->data['password_confirm'] = array(
'name' => 'password_confirm',
'id' => 'password_confirm',
'type' => 'password'
);
$this->_render_page('auth/edit_user', $this->data);
}
// create a new group
function create_group()
{
$this->data['title'] = $this->lang->line('create_group_title');
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())
{
redirect('auth', 'refresh');
}
// validate form input
$this->form_validation->set_rules('group_name', $this->lang->line('create_group_validation_name_label'), 'required|alpha_dash');
if ($this->form_validation->run() == TRUE)
{
$new_group_id = $this->ion_auth->create_group($this->input->post('group_name'), $this->input->post('description'));
if($new_group_id)
{
// check to see if we are creating the group
// redirect them back to the admin page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect("auth", 'refresh');
}
}
else
{
// display the create group form
// set the flash data error message if there is one
$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
$this->data['group_name'] = array(
'name' => 'group_name',
'id' => 'group_name',
'type' => 'text',
'value' => $this->form_validation->set_value('group_name'),
);
$this->data['description'] = array(
'name' => 'description',
'id' => 'description',
'type' => 'text',
'value' => $this->form_validation->set_value('description'),
);
$this->_render_page('auth/create_group', $this->data);
}
}
// edit a group
function edit_group($id)
{
// bail if no group id given
if(!$id || empty($id))
{
redirect('auth', 'refresh');
}
$this->data['title'] = $this->lang->line('edit_group_title');
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())
{
redirect('auth', 'refresh');
}
$group = $this->ion_auth->group($id)->row();
// validate form input
$this->form_validation->set_rules('group_name', $this->lang->line('edit_group_validation_name_label'), 'required|alpha_dash');
if (isset($_POST) && !empty($_POST))
{
if ($this->form_validation->run() === TRUE)
{
$group_update = $this->ion_auth->update_group($id, $_POST['group_name'], $_POST['group_description']);
if($group_update)
{
$this->session->set_flashdata('message', $this->lang->line('edit_group_saved'));
}
else
{
$this->session->set_flashdata('message', $this->ion_auth->errors());
}
redirect("auth", 'refresh');
}
}
// set the flash data error message if there is one
$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
// pass the user to the view
$this->data['group'] = $group;
$readonly = $this->config->item('admin_group', 'ion_auth') === $group->name ? 'readonly' : '';
$this->data['group_name'] = array(
'name' => 'group_name',
'id' => 'group_name',
'type' => 'text',
'value' => $this->form_validation->set_value('group_name', $group->name),
$readonly => $readonly,
);
$this->data['group_description'] = array(
'name' => 'group_description',
'id' => 'group_description',
'type' => 'text',
'value' => $this->form_validation->set_value('group_description', $group->description),
);
$this->_render_page('auth/edit_group', $this->data);
}
function _get_csrf_nonce()
{
$this->load->helper('string');
$key = random_string('alnum', 8);
$value = random_string('alnum', 20);
$this->session->set_flashdata('csrfkey', $key);
$this->session->set_flashdata('csrfvalue', $value);
return array($key => $value);
}
function _valid_csrf_nonce()
{
if ($this->input->post($this->session->flashdata('csrfkey')) !== FALSE &&
$this->input->post($this->session->flashdata('csrfkey')) == $this->session->flashdata('csrfvalue'))
{
return TRUE;
}
else
{
return FALSE;
}
}
function _render_page($view, $data=null, $returnhtml=false)//I think this makes more sense
{
$this->viewdata = (empty($data)) ? $this->data: $data;
$view_html = $this->load->view($view, $this->viewdata, $returnhtml);
if ($returnhtml) return $view_html;//This will return html on 3rd argument being true
}
}
| mit |
SuLab/scheduled-bots | scheduled_bots/inxight/load_data.py | 5648 | import base64
import datetime
import pickle
import time
from collections import defaultdict
from itertools import chain
import requests
from tqdm import tqdm
# url = "https://stitcher.ncats.io/api/stitches/v1/9ZOQ3TZI87"
# d = requests.get(url).json()
xref_keys = ['CAS', 'Cas', 'ChEMBL', 'ChemblId', 'CompoundCID', 'CompoundName', 'CompoundSmiles',
'CompoundUNII', 'DRUG BANK', 'DrugbankId', 'IUPHAR', 'InChIKey', 'Iupac',
'KeggId', 'MESH', 'NCI_THESAURUS', 'NDF-RT', 'PUBCHEM', 'RXCUI', 'SMILES', 'UNII', 'Unii',
'drugbank-id', 'smiles', 'unii']
combine_keys = [
('UNII', 'unii', 'Unii', 'CompoundUNII'),
('CAS', 'Cas'),
('DRUGBANK', 'DrugbankId', 'DRUG BANK', 'drugbank-id'),
('CHEMBL.COMPOUND', 'ChEMBL', 'ChemblId')
]
def download_stitcher():
url = "https://stitcher.ncats.io/api/stitches/v1?top=100&skip={}"
skip = 0
contents = []
t = tqdm(total=98244 / 100)
while True:
t.update()
d = requests.get(url.format(skip)).json()
if not d['contents']:
break
contents.extend(d['contents'])
skip += 100
time.sleep(1)
with open("stitcher_dump_{}.pkl".format(datetime.datetime.now().strftime("%Y-%m-%d")), "wb") as f:
pickle.dump(contents, f)
return contents
def alwayslist(value):
"""If input value if not a list/tuple type, return it as a single value list."""
if value is None:
return []
if isinstance(value, (list, tuple)):
return value
else:
return [value]
def organize_one_record(d):
node_xref = defaultdict(lambda: defaultdict(set))
for xref_key in xref_keys:
for node in alwayslist(d['sgroup']['properties'].get(xref_key, [])):
node_xref[node['node']][xref_key].add(node['value'])
node_xref = {k: dict(v) for k, v in node_xref.items()}
# combine these sets of keys together
# the first will be the prefix for curieutil and is what they get combined into
for xrefs_kv in node_xref.values():
for combine_key in combine_keys:
xrefs_kv[combine_key[0]] = set(chain(*[xrefs_kv.get(k, set()) for k in combine_key]))
for k in combine_key[1:]:
if k in xrefs_kv:
del xrefs_kv[k]
# Drug Products
targets_nv = alwayslist(d['sgroup']['properties'].get('Targets', []))
conditions_nv = alwayslist(d['sgroup']['properties'].get('Conditions', []))
for t in targets_nv:
t['actualvalue'] = json.loads(base64.b64decode(t['value']).decode())
for t in conditions_nv:
t['actualvalue'] = json.loads(base64.b64decode(t['value']).decode())
conditions = defaultdict(list)
for condition in conditions_nv:
conditions[condition['node']].append(condition['actualvalue'])
conditions = dict(conditions)
records = []
for k, v in conditions.items():
if k not in node_xref:
pass
else:
records.append({'xrefs': node_xref[k], 'conditions': v})
return records
def organize_data(contents):
records = []
for d in tqdm(contents):
records.extend(organize_one_record(d))
records = [x for x in records if len(x['xrefs'].get('CHEMBL.COMPOUND', [])) == 1]
for record in records:
for condition in record['conditions']:
condition['UNII'] = record['xrefs']['UNII']
d = {list(x['xrefs']['CHEMBL.COMPOUND'])[0]: x['conditions'] for x in records}
for key in d:
d[key] = [x for x in d[key] if x.get('HighestPhase') == "Approved"]
d[key] = [x for x in d[key] if x.get('TreatmentModality') == "Primary"]
d[key] = [x for x in d[key] if x.get('isConditionDoImprecise') is False]
d[key] = [x for x in d[key] if x.get('ConditionDoId') not in {None, "Unknown"}]
d[key] = [x for x in d[key] if x.get('ConditionFdaUse') not in {None, "Unknown"}]
d[key] = [x for x in d[key] if 'HighestPhaseComment' not in x]
# print(Counter([x.get('HighestPhaseComment') for x in chain(*d.values())]).most_common(20))
d = {k: v for k, v in d.items() if v}
"""
# Counter([x['TreatmentModality'] for x in chain(*d.values())])
TreatmentModality
Counter({'Primary': 1974, 'Palliative': 304, 'Preventing': 165, 'Diagnostic': 87, 'Secondary': 56, 'Inactive ingredient': 30})
isConditionDoImprecise
Counter({False: 2160, True: 456})
"""
keys_to_keep = ['ConditionDoId', 'ConditionProductDate', 'FdaUseURI', 'UNII']
for key in d:
d[key] = [{k: v for k, v in x.items() if k in keys_to_keep} for x in d[key]]
for x in chain(*d.values()):
for k, v in x.items():
if v == "Unknown":
x[k] = None
for k in keys_to_keep:
x[k] = x.get(k)
# 2012-12-07
x['ConditionProductDate'] = datetime.datetime.strptime(x['ConditionProductDate'], '%Y-%m-%d') if \
x['ConditionProductDate'] else None
x['ConditionDoId'] = "DOID:" + str(x['ConditionDoId']) if x['ConditionDoId'] else None
x['FdaUseURI'] = alwayslist(x['FdaUseURI']) if x['FdaUseURI'] else []
x['FdaUseURI'] = ["http://" + url if url.startswith("www.") else url for url in x['FdaUseURI']]
return d
def load_parsed_data():
d = pickle.load(open("stitcher_parsed_2018-10-23.pkl", 'rb'))
return d
def main():
contents = pickle.load(open("stitcher_dump_2018-10-11.pkl", 'rb'))
d = organize_data(contents)
with open("stitcher_parsed_{}.pkl".format(datetime.datetime.now().strftime("%Y-%m-%d")), "wb") as f:
pickle.dump(d, f)
if __name__ == '__main__':
main()
| mit |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.