Tuesday, 8 April 2014

stepping in Intern organic tests

My doubt is how can one put breakpoints in organic tests? Is it illusory
in Intern? I'm controlling a testcases locally on WebDriver, and carrying
'debugger;' breakpoints will palliate my testcase development.
execute(function () { debugger; }) should run in browser and act on
'debugger;' in it, though it doesn't stop a execution...

Thursday, 3 April 2014

Django 1.5.4 syncdb not formulating some fields in PostgreSQL 9.1/PostGIS 2 tables

I have a Django denote like this:class Company(models.Model):
name=models.CharField(max_length=256, default=''),
user=models.ForeignKey(User), logo=models.ImageField(upload_to='logos')
def __unicode__(self): relapse unicode(self.name)after
controlling syncdb, we get this PostgreSQL tableCREATE TABLE myapp_company
( id integer NOT NULL, trademark impression varying(100) NOT
NULL);So, no name field, conjunction user id. The same thing happens with
other denote classes: blank fields. And feeling random. For example, this
is weird. This modelclass MapLayer(models.Model): cartodb_layer =
models.ForeignKey('CartoDBLayer'), work_map =
models.ForeignKey('WorkMap'), overlie =
models.BooleanField(default=False), min_zoom =
models.IntegerField(default=4), max_zoom =
models.IntegerField(default=14), opacity =
models.FloatField(default=0.6), anti_aliasing =
models.FloatField(default=0.5)Generates this PostgreSQL tableCREATE TABLE
myapp_maplayer ( id integer NOT NULL, anti_aliasing double pointing
NOT NULL);So, since only a id and a final domain (a float), though not any
other field?? Same problem perplexing to run a schemamigration --initial
around South 0.8.2. But a fact even a rudimentary syncdb fails creates me
cruise it's not a South issue.My program versions:Django 1.5.4South
0.8.2PostgreSQL 9.1 + PostGIS 2Any clues?

Tuesday, 1 April 2014

reversing list equipment gives wrong position in getview()

I am unequivocally new in Android.I am stranded to a problem that we have
a adapter.and i have to stock my list in shelter orderbut when a position
is not vibrated as listItems.here is my codepublic PageListAdapter(Context
context) { super(); this.context = context; arr = new
ArrayList(); // FilesInFolder = GetFiles("/sdcard/Download");
filePath = Environment.getExternalStorageDirectory() + "/openedpages/";
record = new File(filePath); if (file.exists()) { filenew =
file.listFiles(); for (int i = 0; i < file.listFiles().length; i++)
{ arr.add(filenew[i].getName()); } }
Collections.reverse(arr);}@Overridepublic View getView(final int position,
View convertView, ViewGroup parent) { if (convertView == null) {
inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View rowview =
inflater .inflate(R.layout.listelement, parent, false);
pagename = (TextView) rowview.findViewById(R.id.listitem); //
pagename.setText(arr.get(position)); arrnum.add(position);
relapse rowview; } else relapse convertView;}here i vibrated
my arraylist..but a position of listitems are opening as opposing
order.new total vigilant is not removing a position 0.Please assistance me
out.thanks.