Posts

java - Trying to import NetBeans Project from an older version using .forms -

i'm trying import netbeans project older version (6.9.1) latest (8.0). i've gotten necessary forms few .java files too. try importing them .zip file tells "no netbeans projects added" after telling me exist. please help. thank :) perhaps file format has changed? there no backward compatibility guaranteed such a old nb version, coming from. but following should work: import 6.9.1 projects 7.0.1 , export them. import exported 7.1 , export gain. imported exported project (from 7.1) 7.2 , export... (you idea)

android - Saving user registation data to a database -

i'm trying data entered registration form saved database. here database: package com.nebulanewsco.gameofwin; import android.content.contentvalues; import android.content.context; import android.database.cursor; import android.database.sqlexception; import android.database.sqlite.sqlitedatabase; import android.database.sqlite.sqliteopenhelper; import android.util.log; public class gowdbadapter { public static final string key_username = "username"; public static final string key_password = "password"; public static final string key_rowid = "_id"; private static final string tag = "gowdbadapter"; private databasehelper mdbhelper; private sqlitedatabase mdb; /** * database creation sql statement */ private static final string database_create = "create table notes (_id integer primary key autoincrement, " + "title text not null, body text not null);"; ...

Symfony2 Form Type - how to set form CSS class as attribute? -

when set css class in form controller , pass $options array element works. private function createeditform(ordercard $entity) { $form = $this->createform(new ordercardtype($this->get('security.context') ->isgranted('role_super_admin')), $entity, array( 'action' => $this->generateurl('ordercard_update', array('id' => $entity->getid())), 'attr'=>array( 'class'=>'form-horizontal' ) )); return $form; } but when want have same effect using formtype not added form: public function buildform(formbuilderinterface $builder, array $options) { $builder // not works ->setattribute('attr', array('class' => 'form-horizontal')) // not works either ->setattribute('class', 'form-horizontal') //... what wrong?...

c# - How do I get the NVIDIA core temperature in an integer value? -

i taking arduino microcontroller class , i'm working on final project: automated computer cooling system works according case temperature. i unable nvidia gpu core temp using following sources: this msdn link or this nvidia link . how can value of temperature of gpu? my knowledge in c# basic , couldn't make heads tails on manual or code examples in msdn. i'm gonna go ahead , answer own question after long time of searching how found way data. using openhardwaremonitor.dll open source links able needed. this code used in windows c# application (it might not best way gets job done. hope finds helpful: using openhardwaremonitor.hardware; . . . public partial class mainwindow : form { computer mycomputer; public mainwindow() { initializecomponent(); mycomputer = new computer(); mycomputer.open(); mycomputer.gpuenabled = true; mycomputer.cpuenabled = true; foreach (var hardwareitem in my...

Excel - How to Convert / Reverse the Column Sequence from Right to Left -

i have got excel sheet around 50 columns in it. current data present in opposite sequence of required. now how reverse column sequence in such way column @ end on right side, becomes first column on left side , on. need reverse order of columns. i have found way display data in required format using method - file, options, advanced, tick: show sheet right left apply but changes display , not real data within, when copy paste data sheet, again shows data in original / wrong sequence only. please suggest how this. thanks lot. this small macro takes columns on sheet1 , copies them sheet2 in "flipped" order: sub columnflipper() dim s1 worksheet, s2 worksheet set s1 = sheets("sheet1") set s2 = sheets("sheet2") dim m long, n long, long n = 1 s1 m = .cells(1, columns.count).end(xltoleft).column = m 1 step -1 .cells(1, i).entirecolumn.copy s2.cells(1, n) n = n + 1 ne...

performance - Is timestamp in mysql cached when retrieved in different timezones? -

in mysql 5.6 manual, says: mysql converts timestamp values current time zone utc storage, , utc current time zone retrieval. but if have different connections different timezones, timestamp value cached? according oz_ here : another 1 difference: queries "native" datetime not cached, queries timestamp - be. – oz_ apr 28 '11 @ 17:37 but cannot find confirmation of googling, , doesn't provide link.

javascript - How to use my own option configurations for concat and uglify with grunt-usemin -

for example: im using current configuration below uglify js scripts in gruntfile: uglify: { options: { report: "min", //"gzip", sourcemap: true, preservecomments: false, //"some", "all" }, application: { options: { // expand: true, banner: '<%= app.banner %>', preservecomments: "some" }, src: 'dist/js/application.js', dest: ".tmp/js/application.min.js" }, dependencies: { options: { sourcemap: false }, src: ['dist/js/dependencies.js'], dest: ".tmp/js/dependencies.min.js" }, im aware grunt-usemin generates src , dest options code block in html file declared in useminprepare gruntfile option, example: <!-- build:js js/app.js -...