Posts

wordpress - comment_author also returns the ip -

i have plugin, gets comment authors name "$comment->comment_author", apparently gives authors ip , gateway, etc. is normal behaviour or there way stop this? this how email looks: autor: carlotta (ip: xxx.xxx.xxx , xxxx.adsl.highway.telekom.at) e-mail : xxx@student.tugraz.at url: whois: http://whois.arin.net/rest/ip/xx.114.244.129 thanks in advance if site administrator wordpress send information default, site admin sees it, , not average user.

c# - Use separate file to extend documentation -

i using doxygen document huge projects written in c#. existing documentation in these projects should not changed. is there way extend existing documentation , provide doxygen commands classes or methods in separate file? for example, lets there class viewmodel.cs, documented this: /// <summary> /// defines viewmodel can bound treelist control. /// </summary> public abstract class viewmodel : iviewmodel { /// <summary> /// gets root elements displayed in treelist. /// </summary> public observablecollection<itreenode> elements { get; protected set; } } is there way create separate file (.dox) linked class , extends existing documentation? e.g. group class specific module \ingroup command. to knowledge, no such tool exists. c# uses assemblies , namespaces conceptual grouping of apis. defining manual grouping separately serve confuse users familiar language. for best results, should use c# documentation comments along la...

android - Error inflating class set in xml -

i'm trying create textview slides screen , creates error, don't know why. xml: <set xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillafter="true"> <scale android:duration="500" android:fromxscale="1.0" android:fromyscale="1.0" android:interpolator="@android:anim/linear_interpolator" android:toxscale="1.0" android:toyscale="0.0" /> <textview android:id="@+id/scroll_message" android:text="@string/scroll_text" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:minlines="1" ...

ruby on rails - Search by empty list for many-to-many relation using ransack -

i searched how pass empty array ransack, example: @search = promotionsretailer.search(retailer_id_in: []) this sql statement: "select `promotions_retailers`.* `promotions_retailers` " i found link , add -1 empty array, used search(retailer_id_in: ([] + [-1])) . any solution better solution? how search using retailer_id in promotion table, if have many-to-many relation between promotions/retailers without using breaking table promotionsretailer ransack gem ? first part of question vital. should separate question. unfortunately, there in no more elegant way cope it, than: search(retailer_id_in: ([] + [-1])) the problem lays somewhere in gem. , if pass empty array, or array filled nil values parameter, there join in sql, conditions ignored, e.g.: ruby: article.ransack({authors_id_in: [nil, nil, nil]}).result sql: select "articles".* "articles" left outer join "articles_authors" on "articles_authors...

c++ - Reading depth buffer in Android native code, using OpenGL ES 3.0 -

i'm creating application render image offscreen , need read depth buffer. pc version of application easy, since can use glgetteximage or glreadpixels (using gl_depth_component). need port application android, have issues, since gl es not support glgetteximage @ all, , glreadpixel can used read color buffer (as understood). many people suggest render depth buffer color buffer (or render depth value color buffer), understand, glreadpixel can read 8 bit per channel values, , need @ least 16 bit per depth values. my target android device supporting opengl es, reading pixel buffer object, seams pbos faster method of transferring data gpu, read depth map still need use glreadpixels transfer depth map pbo (which not possible). i thinking maybe creating eglimage (wrappening own buffer) , use depth texture in fbo might solution, don't have experience eglimages, i'm not sure if possible or not (and work on android, need have different implementations pc , android). so, be...

sql server - SQL Select Top and Random Fill -

i select , insert top 4650 fields table column g table b column e. how can randomly fill column data table column g? how replace data exist in column e? easier in multiple parts? if single column should work you. insert tableb (columne) select top(4650) columng tablea if there relationship between tables this update x set columne = y.columng tableb x inner join (select top(4650) id tablea) y on x.id = y.id you utilize cte ;with ( select top (4650) id,columng tablea ) y update x set columne = y.columng tableb x inner join y on x.id = y.id we need structure of tables answer question

rails jquery.turbolinks javascript not firing after page change -

realise issue (or flavours of it) documented despite investigation , reading still can't resolve issue, being... rails 4 application following gems installed: using rake 10.3.2 using i18n 0.6.11 using json 1.8.1 using minitest 5.4.1 using thread_safe 0.3.4 using tzinfo 1.2.2 using activesupport 4.1.4 using builder 3.2.2 using erubis 2.7.0 using actionview 4.1.4 using rack 1.5.2 using rack-test 0.6.2 using actionpack 4.1.4 using mime-types 1.25.1 using polyglot 0.3.5 using treetop 1.4.15 using mail 2.5.4 using actionmailer 4.1.4 using activemodel 4.1.4 using arel 5.0.1.20140414130214 using activerecord 4.1.4 using execjs 2.2.1 using autoprefixer-rails 3.0.1.20140826 using bcrypt 3.1.7 using sass 3.2.19 using bootstrap-sass 3.2.0.2 using bootstrap-select-rails 1.6.2 using thor 0.19.1 using railties 4.1.4 using bootswatch-rails 3.2.4 using breadcrumbs_on_rails 2.3.0 using cancan 1.6.10 using coffee-script-source 1.8.0 using coffee-script 2.3.0 using coffee-rails 4.0.1 using da...