Posts

linux - sybase ase database is it free -

linux - sybase ase database is it free - we want utilize sybase database, of these versions: 12, 12.5, 12.5.1, 12.5.2, , 12.5.3 i'm not sure if sybase ase linux free production utilize without cpu or disk limitation? if mean ase adaptive server enterprise, "express" , "developer" editions free. more details on sybase website: http://www.sybase.com/products/databasemanagement/adaptiveserverenterprise linux sybase-ase

java - Math line only running once in a loop -

java - Math line only running once in a loop - this first interaction site, have heard things , hope can find reply looking for. learning java , using eclipse ide in computer science class @ high school , came across problem neither teacher or can solve. here instructions. "the high german mathematician gottfriedleibniz developed follow method approximate value of π. π/4 = 1 - 1/3 + 1/5 - 1/7 + ... write programme allows user specify number if iterations used in approximation , displays resulting value." now code. import java.util.scanner; public class gottfriedleibnizpi { public static void main(string[] args) { scanner reader = new scanner(system.in); system.out.print("enter how many iterations want go to: "); int iterations = reader.nextint(); double pi = 0; if (iterations >= 0) { (int count = 0; count <= iterations - 1; count++) { system.out.println(...

asp.net - jQuery script not recognised when injected in my view (.cshtml) -

asp.net - jQuery script not recognised when injected in my view (.cshtml) - usually create javascript file (myfile.js) scripts. example: /// <reference path="../../scripts/jquery/jquery-1.5.1.js" /> $(document).ready(function () { // bind 'myform' , provide simple callback function $('#uploadbackgroundform').ajaxform({ iframe: true, datatype: "json", success: backgrounduploadedsuccess, error: backgrounduploadederror }); }); now place script straight in view (.cshtml) in section (< script type="text/javascript">.....< / script >). example: ...my view goes here... <script type="text/javascript"> /// <reference path="../../scripts/jquery-1.5.1.js" /> $(document).ready(function () { // bind 'myform' , provide simple callback function $('#uploadbackgroundform').aj...

c# - How to apply Graphics scale and translate to the TextRenderer -

c# - How to apply Graphics scale and translate to the TextRenderer - i'm using scaling , transforming graphics object when painting custom control, in order apply zooming , scrolling. utilize following: matrix mx = new matrix(); mx.scale(mzoomfactor, mzoomfactor); mx.translate(-clip.x + mgraphicsoffsetx, -clip.y + mgraphicsoffsety); e.graphics.clip = new region(this.bounds); e.graphics.transform = mx; then when paint strings using: graphics g = ... g.drawstring(...) the scalling , transforming correctly applied strings, zoomed out , in , on. however if utilize next paint strings: textrenderer.drawtext(...) the text not correctly scaled , transformed. do know how apply concepts textrenderer ? the comments above accurate-- textrenderer.drawtext , beingness gdi, has limited back upwards coordinate transformation given resolution dependence. you've noticed, coordinate translation s...

mysql - understanding indexs with a simple select query -

mysql - understanding indexs with a simple select query - i'm trying understand how work indexes basic queries. example: i have table 'testme' next columns: id int primary key username varchar(20) data1 int data2 int data3 int data_order int if select username,data1,data2 testme data3=5 order data_order; which kind of indexes can utilize speed query ? i tried adding index on clumns data3 , data_order result of 'explain' query shows doesn't utilize index. update: using mysql cluster (ndb) think of index 2 things... 1. order in info stored 2. quick way lookup specific pieces of info (like book index) in example, having index on (data3, data_order) create easy find info want, , have in right order. it still needs go table after searching index, fields username, data1, data2 . reason may include them in index well. makes index bigger, using more space , more effort update. cost means index isn't beingness jo...

tomcat7 - java.lang.IllegalArgumentException on startup after moving to tomcat 7 -

tomcat7 - java.lang.IllegalArgumentException on startup after moving to tomcat 7 - after moving jbilling (www.jbilling.org) tomcat 7, not start anymore , throws next exception on startup: java.lang.illegalargumentexception: taglib definition not consistent specification version @ org.apache.catalina.startup.tagliblocationrule.begin(webruleset.java:1164) @ org.apache.tomcat.util.digester.digester.startelement(digester.java:1276) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.startelement(abstractsaxparser.java:501) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scanstartelement(xmldocumentfragmentscannerimpl.java:1363) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2756) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:648) @ com.sun.org.apache....

C++: Can I write a template class that derives from T? -

C++: Can I write a template class that derives from T? - i'm not sure how word in english, want this: template <class t> class derived: public t { blah }; where basically, have template class, i'm deriving new class class specified in template? i.e. wouldn't know class @ compile time. is possible? if so, semantics this? for example, i'm trying write "parent" class. purposes of example, let's it's tree parent. tree parent, tree (so inherits tree), has vector of references kid trees.however, parent class doesn't have tree; class, such write like: parent<tree> treeparent; parent<shrub> shrubparent; yes. possible. seek doing that. i wouldn't know class @ compile time. i think, mean "i wouldn't know class @ time of defining class template." by time compile, you've defined class template, , used in code, passing template argument it, means know class (i.e template argument) @ ...