Posts

html - Hidden web hit counter -

html - Hidden web hit counter - i know how can implement hidden nail counter. want because want have raspberry pi project lite goes on every time website hit, don't want show counter on website. it website right? can have counter within div this: <div class="hitcounter"></div> and hide using css: .hitcounter {display: none;} this way, counter nowadays in dom , won't visible in viewport. :) html website hitcounter

javascript - Why is the id not changing? -

javascript - Why is the id not changing? - i'm trying alter colour of text. alter id on div tag ,using javascrip,t different css rules apply. home.html <html> <head> <link rel="stylesheet" type="text/css" href="style-original.css" /> <meta charset="utf-8" /> <title>test</title> <script type="text/javascript"> <!-- function change() { document.getelementbyid("part1").classname = "part2" } //--> </script> </head> <body> hello.<br /> <div id="part1">test test.</div><br /> <input type='button' onclick='change()' value='form checker' /> </body> </html> style-original.css #part1 { color: #ff0000; } #part2 { ...

Read Matlab matrix into Python -

Read Matlab matrix into Python - when i'm trying read matlab matrix python, next error >>> scipy.io.loadmat("dynamical.mat") traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "/usr/lib/python2.7/dist-packages/scipy/io/matlab/mio.py", line 151, in loadmat mr = mat_reader_factory(file_name, appendmat, **kwargs) file "/usr/lib/python2.7/dist-packages/scipy/io/matlab/mio.py", line 105, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) file "/usr/lib/python2.7/dist-packages/scipy/io/matlab/miobase.py", line 221, in get_matfile_version % ret) valueerror: unknown mat file type, version 46, 48 the dynamical.mat file containing matrix % size = 30 30 % nonzeros = 252 zzz = zeros(252,3); zzz = [ 1 1 1.4019896354966477e+01 1 2 0.0000000000000000e+00 1 3 0.0000000000000000e+00 ... this question seems inactive while, allow 1 alte...

Basic Fluent NHibernate relationship issue -

Basic Fluent NHibernate relationship issue - the project working on @ moment using entity framework, there issues have come across , hence researching using nhibernate believe sort out bulk of issues have. anyway, have been replicating simple part of system, have ran assume simple problem one-to-many relationship giving unusual results. here entities: public class task : base.domain { private ilist<taskproperty> _taskproperties = new bindinglist<taskproperty>(); private string _name = string.empty; private string _description = string.empty; public virtual ilist<taskproperty> taskproperties { { homecoming _taskproperties; } set { if (_taskproperties == value) return; _taskproperties = value; onnotifiypropertychanged("taskproperties"); } } public virtual string name { { homecoming _name;...

osx - Using Git on Mac? I cant find git-svn -

osx - Using Git on Mac? I cant find git-svn - this question has reply here: can't find git-svn on mac os x leopard after installing via macports 3 answers i trying utilize git on mac os x , can't find git-svn like git-svn clone -s http://example.com/my_subversion_repo local_dir is git svn clone -s http://example.com/my_subversion_repo local_dir the same? though i've never used feature, believe 2 should equivalent. reasoning is: performing git svn results in error .git wasn't found, within script /usr/libexec/git-core/git-svn ; opening script in text edit reveals credit of author of git-svn: copyright (c) 2006, eric wong hence running git svn help gives: git-svn - bidirectional operations between single subversion tree , git osx git git-svn

android - ListView Not Working -

android - ListView Not Working - i have made simple listview , want buttons correspond new activity have used case statement happen heres code. bundle com.example.lookingatics; import android.app.activity; import android.content.intent; import android.os.bundle; import android.view.view; import android.widget.adapterview; import android.widget.adapterview.onitemclicklistener; import android.widget.arrayadapter; import android.widget.listview; import android.widget.textview; public class otheractivity extends activity{ @override protected void oncreate(bundle savedinstancestate) { // todo auto-generated method stub super.oncreate(savedinstancestate); setcontentview(r.layout.other_activity); listview listview = (listview) findviewbyid(r.id.mylist); final string[] values = new string[] { "science", "maths", "english", "history", "geography", "r.e", ...

php - Infinite redirect loop - rewriting URLs -

php - Infinite redirect loop - rewriting URLs - i getting infinite redirect loop when implementing rewrite of urls seo purposes. example url `<a><?php echo make_store_name_url($store_id); ?><?php echo $store_name; ?></a>` i have function rewrite dynamic urls - below example function make_store_name_url($store_id) { //build keyword rich url $url = site_url . '/store/' . $store_id .'/'; //return url homecoming $url; } //function redirect using 301 function fix_store_name_url() { $proper_url = get_proper_store_name_url(); if(site_url . $_server['request_uri'] != $proper_url) { header('http/1.1 301 moved permanently'); header('location: ' . $proper_url); exit(); } } function get_proper_store_name_url() { $store_id = $_get["store"]; $proper_url = make_store_name_url($store_id); homecoming $proper_url; } finally line in htaccess rewrite. ...