Posts

Showing posts from August, 2014

How can I resize a TinyMCE popup when a select input changes? -

How can I resize a TinyMCE popup when a select input changes? - i have tinymce popup shows/hides elements when select input changes. there way can resize popup reflect new height of body instead of forcing user resize popup themselves? tinymcepopup.resizetoinnersize(); resizes popup original size, not new size (it cuts off elements shown). i solved adding command while creating plugin: ed.addcommand( 'pluginname_resize', function( ui, v ) { ed.windowmanager.params.mce_height = v.height + 10; } ); made body element have id body-id ( <body id="body-id">...</body> ) and when select input changes: var window = tinymcepopup.dom.getsize( 'body-id' ); tinymcepopup.execcommand( 'pluginname_resize', false, { height : window.h } ); tinymcepopup.resizetoinnersize(); resize popup tinymce

java - Security manager rarely used on server? -

java - Security manager rarely used on server? - a recent question on lead me older answer java security manager. question line in answer: the security manager impacts performances though, , used on server side. can please or refute? thought there always security manager, custom 1 or default , containers utilize time. in server-side code you write, can't think need utilize securitymanager, since if writing code perform operation in your application, it's unlikely need check if code has permissions have given it. for instance, lot of methods in securitymanager related io operations - checkdelete() , checkread() , checkwrite() , etc. jdk library classes phone call these methods when seek create/write/read/delete file, calling them pointless. so it's unlikely server-side code create much utilize of securitymanager. however, code code runs in - if deployed in servlet container instance - might create utilize of these methods, because interested i...

matlab - need a good edge detection procedure for rough surfaced overlapped objects -

matlab - need a good edge detection procedure for rough surfaced overlapped objects - i need observe border shape detection in project. using matlab comfertable opencv if gives improve output. here problem. sample image have has overlapped objects rough surface. using code , getting output roughness of surface still makes degrades output. amusing code in matlab: a = imread('d:\images\wheatstarch.jpg'); = rgb2gray(a); imshow(i) thresold = graythresh(i); se1=strel('diamond',2); i1=imerode(i,se1); bw = edge(i1,'canny'); figure; imshow(bw); i getting output: http://i49.tinypic.com/vg7fns.png ineed improve output such can utilize output shape detection. input image download http://www.profimedia.si/photo/wheat-starch-granules/profimedia-0035237439.jpg playing file in photoshop, photoshop find edges edges followed levels command gives output much more looking for. i'm not suggesting utilize photoshop, photoshop handy tool visualizing ...

android listview - Using UniversalImageLoader with widget's RemoteViewsFactory -

android listview - Using UniversalImageLoader with widget's RemoteViewsFactory - i using remoteviewsfactory populate listview in widget. the widget contains images. best approach load bitmaps , setimageview() on remote view? many thanks. the way load images synchronously (works 'loadimage(...)' , displayimage(...) ): final object lock = new object(); boolean loaded = false; imagesize targetimagesize = new imagesize(70, 70); imageloader.getinstance().loadimage(imageuri, targetimagesize, options, new simpleimageloadinglistener() { @override public void onloadingcomplete(string imageuri, view view, bitmap loadedimage) { loaded = true; // whatever want loadedimage synchronize(lock) { lock.notifyall(); } } }); if (!loaded) { synchronize(lock) { lock.wait(); } } android-widget android-listview universal-image-loader

qt creator - QtCreator with CMake: Access Denied when Reading Source Folder -

qt creator - QtCreator with CMake: Access Denied when Reading Source Folder - my cmakelists.txt file looks this: project(deadweight) # versioning set (deadweight_version_major 0) set (deadweight_version_minor 1) set( debug_build 1 ) add_definitions( -ddebug ) set(cmake_build_type debug) cmake_minimum_required(version 2.8) file(glob deadweight_src ./src "*.cpp") add_executable(${project_name} ${deadweight_src}) set_target_properties(${project_name} properties linker_language cxx) upon loading qtcreator , running cmake (completes without errors btw), unable open source folder in qtcreator view. when click source folder says: "cannot open reading. access denied." sure have read-write permissions folder in question. can please point out if globbing source files incorrectly? or doing else wrong? cmake error or qtcreator problem? edit: also, build fails saying: "missing source filename: file not found" error msvc++ 9 compiler. your...

html - Floats in IE not aligning correctly -

html - Floats in IE not aligning correctly - i'm trying divs float correctly in ie. great in chrome , firefox, ie chews code. can see jsfiddle here: http://jsfiddle.net/vlyandra/kem3r/ basically, image div not line horizontally entry div, , table @ bottom (despite having max width) not resizing. code generate posts below: <article id="post-<?php the_id(); ?>" <?php post_class(); ?>> <div class="bordered centered"> <p class="negative-margin alignleft header"><?php the_title(); ?></p><p class="negative-margin alignright date"><?php the_date(); ?></p><div style="clear:both;"></div> <?php if ( is_search() ) : // display excerpts search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-conte...

How to label percentage values inside stacked bar plot using R-base -

How to label percentage values inside stacked bar plot using R-base - this question has reply here: how label percentage values within stacked bar plot using r-base 1 reply i new r. others explain me how add together absolute values within individual stacked bars in consistent way using basic r plotting function (r base). tried plot stacked bar graph using r base of operations values appear in inconsistent/illogical way in such way supposed 100% each small town don't sum 100%. here info working on: village 100 200 300 400 500 male 68.33333 53.33333 70 70 61.66667 female 31.66667 46.66667 30 30 38.33333 in summary, there 5 villages , info showing head of household interviewed sex. i have used next command towards plotting graph: barplot(mydata,col=c("yellow","green") x...

java - eclipse configuration with pmd -

java - eclipse configuration with pmd - i trying configure pmd plugin in eclipse (window8) after 50% progress error occures . i using in path http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ i need configure pmd code review, resource's found pmd useful. and code analyzer. if new eclipse ide, it's improve know how install plugin it: start eclipse ide (screenshot eclipse java ee ide web developers, version: helios service release 2) select help –>install new software.... in eclipse menu item. the install window open. on there, click "add.." button. in "add repository" window, come in name , location (plugin url) pmd plugin: http://pmd.sf.net/eclipse then click "ok" button. select pmd eclipse 3 , apache xerces in "select features install" list , click next. take terms of license agreements , click next. verify install location in eclipse installation directory, otherwise select righ...

asp.net - How to let users login to my site using SoundCloud -

asp.net - How to let users login to my site using SoundCloud - i want allow users authenticate via soundcloud asp.net mvc 4 project. since there no .net sdk, wrote custom oauth2client handle authentication. after adding client authconfig.cs , appropriately showed alternative login. problem is, when click on button login, returns login failure. unsuccessful login service. without asking me login in soundcloud. problem? implemented similar client github , worked no problems. here client: public class soundcloudoauth2client : oauth2client { private const string enduserauthlink = "https://soundcloud.com/connect"; private const string tokenlink = "https://api.soundcloud.com/oauth2/token"; private readonly string _clientid; private readonly string _clientsecret; public soundcloudoauth2client(string clientid, string clientsecret) : base("soundcloud") { if (string.isnullorwhitespace(clientid)) { ...

How can I add a counter in android, whenever I press a button the counter increments by one -

How can I add a counter in android, whenever I press a button the counter increments by one - kindly, saving internal file , reading after using file input/output stream respectively. want during saving add together counter every time press save counter increments one. in advance use activity level counter , increment value. in case need persist it, onpause , retriave on onresumt using shared preferences. android counter

CakePHP - ACL and Setting ACO -

CakePHP - ACL and Setting ACO - i'm implementing acl in cakephp app have , seem struggling setting acos. i've been next simple acl controlled application tutorial , i've set aros, acos , aros_acos tables fine, , adding aros via groups/add , users/add works great - added aros table. now i'm @ part have set acos, , i'm bit lost if i'm honest. tutorial uses console plugin register acos. however, net tuts adds them manually using: $aco = new aco(); $aco->create(); $aco->save(array( 'model' => 'user', 'foreign_key' => null, 'parent_id' => null, 'alias' => 'user' )); $aco->create(); $aco->save(array( 'model' => 'post', 'foreign_key' => null, 'parent_id' => null, 'alias' => 'post' )); using manual code we're creating acos user , post controllers whole - that. if wan...

Azure WCF Webrole error: The remote server returned an unexpected response: (413) Request Entity Too Large -

Azure WCF Webrole error: The remote server returned an unexpected response: (413) Request Entity Too Large - i have windows azure webrole (wcf) webservice. have method upload files window azure blob storage. works well, little ( < 30 kb) files. <operationcontract()> function uploadfilev1(byval applicationsessionguid string, byval usersessionguid string, byval filecontent byte(), byval filename string, byval filedescription string, byval filedisplayname string, byval ispublic boolean) dataset if part: byval filecontent byte() bigger 30 kb error when phone call webservice. the remote server returned unexpected response: (413) request entity large. if run webservice local debugging , set breakpoint on method doesn't there. i found simular topics, not in windows azure context. the web.config in wcf project pretty empty...

c++ - Getting a string from a map of a list of a list of strings -

c++ - Getting a string from a map of a list of a list of strings - got question on how simplify code in c++. so we're given lab in cs course of study have generate big sentence based on input file, storing read lines in map of list of list of strings (whew!). have search using recursive function. so map key string. first list collection of lines, , sec list collection of strings parsed file. map<string, list<list<string> > > i need downwards list of strings reconstruct 1 string. i've set iterators downwards i'm getting "segmentation fault 11" when reaches declaration of iterators. "grammar" map has been given input , passed reference. "incomplete" string equal key passed function. code snippet: string found = ""; map<string, list<list<string> > >::iterator section = grammar.find(incomplete); list<list<string> > listitem = section->second; list<list<s...

gpu - Multiple processes launching CUDA kernels in parallel -

gpu - Multiple processes launching CUDA kernels in parallel - i know nvidia gpus compute capability 2.x or greater can execute u pto 16 kernels concurrently. however, application spawns 7 "processes" , each of these 7 processes launch cuda kernels. my first question expected behavior of these kernels. execute concurrently or, since launched different processes, execute sequentially. i confused because cuda c programming guide says: "a kernel 1 cuda context cannot execute concurrently kernel cuda context." brings me sec question, cuda "contexts"? thanks! a cuda context virtual execution space holds code , info owned host thread or process. 1 context can ever active on gpu current hardware. so reply first question, if have 7 separate threads or processes trying found context , run on same gpu simultaneously, serialised , process waiting access gpu blocked until owner of running context yields. there is, best of knowledge, no time s...

database - Server design for social app -

database - Server design for social app - i designing app upload , download files server. want know type of server implement robust plenty handle lot of info per user , lot of users. i realise broad , naive question. i have done research think have sql server , create web service database , implement rest scheme interfacing service on device side. regards, j it's not naive question per se, need provide way more info that. if transfer files: why not go simple, effective ftp-protocol? database

Possible to Manipulate Chrome app "webview" dom with javascript/jquery/AngularJS or some otherway -

Possible to Manipulate Chrome app "webview" dom with javascript/jquery/AngularJS or some otherway - hello fellow stack on flow geniuses. hope have hope simple question. creating packaged app , have access info not need parse javascript re represent info in new way plain jane view. more acceptable so question is: is possible access dom of "web view"( chromes packaged app reply iframe) java script or jquery or angular , manipulate , sense of info beingness projected in iframe( web view) ? any sample code appreciated. if above question not create sense have provided more elaborate explanation here ** ignore if don't care why setting way **: i have page uses ajax update list of info dynamically internal systems. each scheme spits out info in no organized fashion. info supplied very... well... how set it.... bland haha. goal 1 remove browser side view tab not open; while keeping functionality , integrity of info intact server side...

c# - How to convert smalldatetime retrieved from database back to smalldatetime to be reposted to the database -

c# - How to convert smalldatetime retrieved from database back to smalldatetime to be reposted to the database - i have form takes item database of "smalltime" type , re add together database "smalldatetime" problem ran is reading item string. not sure approach take convert here have far: var checkoutdate = convert.todatetime(ddlcheckoutdate.text); sl.reqcheckoutdate = checkoutdate; can help me on hurdle? the issue reporting due civilization difference. using formatted date , current civilization set uk or similar thinks using day/month/year , makes 12/14/2013 day=12 month=14 year=2013 , hence invalid. using datetime.parseexact allow command exact conversion of date: cultureinfo provider = cultureinfo.invariantculture; string dateastext = "12/14/2012 12:00:00 pm"; datetime = datetime.parseexact(dateastext, "mm/dd/yyyy hh:mm:ss tt", provider); c# sql visual-studio

cql - Cassandra - Column family exists but is not visible via describe or OpsCenter -

cql - Cassandra - Column family exists but is not visible via describe or OpsCenter - i'm evaluating cassandra upcoming project , trying head around basics. i have issue when creating column family via cql shell - column family created usable not appear when issue describe command cli tool or when looking @ cluster via datastax opscenter. i've created keyspace such: create keyspace testing replication = {'class': 'simplestrategy', 'replication_factor' : 1}; and defined column family as: create table sampletable( id int primary key, name text, othervalue int ); i can insert , select info sampletable not show describe command or in opscenter. i can create visible column family using cli command line, or api in fluentcassandra utilize cql approach. this day 1 cassandra i'm sure i'm missing simple. pointers? column families created cql3 not show when using thrift api. see next issues more information: https://is...

java - Need help getting lookup from MySQL with Hibernate working after using Hibernate create POJOs -

java - Need help getting lookup from MySQL with Hibernate working after using Hibernate create POJOs - i had project using spring, hibernate , mysql , works working great until firm wanted utilize classes came out of hibernate reverse engineering. trying find way them working. first old working code: dao: @transactional(readonly=true, propagation=propagation.required) public memberinquirylookup getmemberinquirylookup(string requester) { log.debug("looking info for:" + requester); memberinquirylookup dr = (memberinquirylookup) sessionfactory.getcurrentsession() .get(memberinquirylookup.class, requester); if (dr == null) { log.debug("no info :" + requester + " found."); dr = new memberinquirylookup(); } homecoming dr; } old bean worked: @entity @table(name = " member_inquiry_lookup") public class memberinquiryinformatio...

Fetching breeze metadata is slow in Chrome, fast in IE -

Fetching breeze metadata is slow in Chrome, fast in IE - it appears fetching metadata model extremely slow in chrome, fast in ie. my dbcontext contains around 35 entities lots of navigation properties , each entity add together adds delay. delay around 20 seconds, starting after query has returned raw metadata, , it's exclusively cpu working heavily, memory usage stays stable. i've got i7 processor , ample memory. i know there differences in how javascript engine geared in these 2 browsers, chrome javascript jit compiler beingness optimised floating point operations (which why webgl graphics one thousand times faster in chrome ie) - having impact on work fetchmetadata has do? has else noticed slowness? relationships wrong? 1 time delay on works though, i'm doubting relationships problem. found problem , solution! thank taking time @ this, after reply decided strip whole project downwards basics reproduce problem , interference. this older project...

Using i and j as variables in Matlab -

Using i and j as variables in Matlab - i , j popular variable names (see e.g., this question , this one). for example, in loops: for i=1:10, % something... end as indices matrix: mat( i, j ) = 4; why shouldn't used variable names in matlab? because i , j both functions denoting imaginary unit: http://www.mathworks.co.uk/help/matlab/ref/i.html http://www.mathworks.co.uk/help/matlab/ref/j.html so variable called i or j override them, potentially silently breaking code complex maths. possible solutions include using ii , jj loop variables instead, or using 1i whenever i required represent imaginary unit. matlab variables naming-conventions

jQuery Animate plays backwards? -

jQuery Animate plays backwards? - i trying utilize fadein+slidedown script found here on stackoverflow. $('#topmenu').animate({ "height": "toggle", "opacity": "toggle" }, "slow"); $('.post').delay(1000).animate({ "height": "toggle", "opacity": "toggle" }, "slow"); for reason 2 animations playing backwards here... can help me figure reason out? #topmenu , .post need hidden able fade in , slide downwards when using toggle option. example, #topmenu, .post { display: none; } in case, since elements visible, toggle alternative fade , slide them out. you can utilize .hide() before animations. but, still believe using css optimal solution here. note: can create utilize of "show" , "hide" instead of "toggle" if applying one-time effect. jquery jquery-animate

python - py2exe can't find .py -

python - py2exe can't find .py - sorry if stupid question, how py2exe find module wish convert? maintain getting error: c:\python27\lib\distutils\dist.py:267: userwarning: unknown distribution option: 'dist_dir' warnings.warn(msg) running py2exe creating c:\users\david\workspace\setup\src\dist *** searching required modules *** error: pygame.py: no such file or directory i looked many pygame .exe tutorials or problems others have had, problem seemed occur after created .exe file... can't create one. used exact same code 1 found on http://pygame.org/wiki/pygame2exe except changed: class buildeexe: def __init__(self): #name of starting .py self.script = "myapps.py" into class buildexe: def __init__(self): #name of starting .py self.script = "pygame.py" my pygame.py exists in "c:\users\"username"\workspace\pygame\src". please help. you can seek putting in .py file: from dis...

sql - Is there a way for VBA UDF to "know" what other functions will be run? -

sql - Is there a way for VBA UDF to "know" what other functions will be run? - assume have udf used in worksheet 100,000+ times. there way, within function, know how many more times going called in batch? want have every function create to-do list of work do. want like: if remaining functions executed after 1 = 0 ... is there way this? background: i want create udf perform sql queries user giving parameters(date, hour, node, type). pretty easy create if you're willing execute sql query every time function run. know easy because did , ridiculously slow. new thought have function first see if info looking exists in global cache variable , if isn't add together global variable "job-list". what want when lastly function called go through job list , perform fewest number of sql queries , fill global cache variable. 1 time cache variable total table refresh create other functions called 1 time again since on subsequent phone call th...

ios - UIButtonTypeDetailDisclosure : unrecognised selector sent to instance -

ios - UIButtonTypeDetailDisclosure : unrecognised selector sent to instance - i have custom button class: custombutton.h file: @interface custombutton : uibutton @property (nonatomic, retain) nsstring* info; @end custombutton.m file: #import "custombutton.h" @implementation custombutton @synthesize info; - (id)initwithframe:(cgrect)frame { self = [super initwithframe:frame]; if (self) { // initialization code } homecoming self; } @end in main view controller: custombutton* btn = [custombutton buttonwithtype:uibuttontypedetaildisclosure]; [btn setinfo:@"foobar"]; nslog(@"%@", [btn info]); [self.view addsubview:btn]; if it's simple button ( [custombutton new] ) don't error. if take buttonwithtype:uibuttontypedetaildisclosure error: *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[uibutton setinfo:]: unrecognized selector sent instance 0x753c8c...

Trying to remove index.php from URL in codeigniter -

Trying to remove index.php from URL in codeigniter - this question has reply here: remove “index.php” url - codeigniter 12 answers i trying remove 'index.php' url. have tried making $config['uri_protocol'] = 'auto'; as $config['uri_protocol'] = 'request_uri'; and $config['index_page'] = 'index.php'; as $config['index_page'] = ''; and tried putting rewriteengine on rewritecond $1 !^(index\.php|[javascript / css / image root folder name(s)]|robots\.txt) rewriterule ^(.*)$ /project/index.php/$1 [l] in .htaccess file, not working me. can please tell me going wrong? in advance.. given you've told me you're using ubuntu... use .htaccess configuration provided ayman. open terminal , type sudo a2enmod rewrite enable mod_rewrite on machine. open 000-default s...

django - Selected number of transactions per page is not working -

django - Selected number of transactions per page is not working - i'm creating selected options user can select number of transactions want show in each page. sample: <select class="select compact" onchange="location = this.options[this.selectedindex].value;"> <option value="{% url transactions:transaction %}?page=1" {% if page == 1 %}selected{% endif %}> 1 transaction </option> <option value="{% url transactions:transaction %}?page=2" {% if page == 2 %}selected{% endif %}> 2 transactions </option> <option value="{% url transactions:transaction %}?page=3" {% if page == 3 %}selected{% endif %}> 3 transactions </option> </select> views page = 1 if request.get.get('page'): per_page = request.get.get('page') transactions = ba_transactions(request.user).unassigned() paginator = paginator(transactions, page)...

c# - Join two tables sortby user click count then everyone click count using linq -

c# - Join two tables sortby user click count then everyone click count using linq - i'm new linq , need join. have 2 tables pages want bring together linq like userfavorites table: page.id userclickcount page table: id everyoneclickcount a user favorite created when it's clicked or made favorite there amount of links. want show results both tables, sort them clicked user, clicked everyone. i have right sorts count. pages = (from page in context.page bring together ps in (from favs in context.userfavorites select favs) on page.id equals ps.page.id temp t in temp.defaultifempty() orderby t.userclickcount descending, t.page.everyoneclickcount descending, t.page.pagename ascending select dash).tolist(); i'm not sure go here. try this: var pages = context.pages.select(page => new { pagedata = page, ...

django-registration vs scratch registration implementation for admin-activated accounts -

django-registration vs scratch registration implementation for admin-activated accounts - i need implement simple registration workflow: user fills registration request (form). admin(s) recieves notification registration request. (maybe) admin(s) activates desired users django-admin interface. user recieves notification activation of account. i've been reading django-registration application. from i've read, seems app used i'm not sure of advantages. so, question is: next options (i'm open other alternatives well), improve in case? implement registration scratch. extend 1 of backends on django-registration. write django-registration backend scratch. also, reasons supporting selection please. you might want take @ django inspectional registration fits utilize case perfectly. it's enhanced version of django registration since latter doesn't have function approve/deny user's registration. django django-registration user-regis...

Extending c++ with a new keyword -

Extending c++ with a new keyword - i want extend c++ keywords, example, "property", add together properties class/object (like visual studio extend c++ in "managed" version). code example: class illustration { public: [...] property int size { get: { homecoming __size; } set: { if( value > 0 ) __size = value; else throw new exception("invalid size"); } }; }; use: [...] int totalsize = example1.size + example2.size + example3.size; example1.size = 2 * example1.size; what want utilize form of translator translate c++ "extended" source code "normal" source code, qt moc do, parses c++ source code , generated c++ source code, qt "things" translated bare c++. of course, need extend translator (write code c...

android - ListView returning incorrect position inside getView() -

android - ListView returning incorrect position inside getView() - i have listview having checkedtextview , textview item in each textview. checkedtextview value populated database table. each value there column having timer value 10,15,30 in database. 1 time checkedtextview checked check there value in timer column , if nowadays set textview timer value updated each second. problem if first element has timer value, textview populated timer mm:ss value. when scroll downwards there other listview item populated same value incorrect. is because position returning wrong value? had read somewhere view refreshes when scroll. example:if item 1 gets populated value, when scroll find element 6 having value below adapter class public class methodlazyadapter extends baseadapter { activity activity; private string[] preparationsteps; private string[] timetoprepare; private string[] arrowvalue; private int [] noofstepsflag; string recipeid; listview list; intent intent; context con...

javascript - How to avoid nested asynchronous callbacks due to Ext Direct and dynamic locale loading? -

javascript - How to avoid nested asynchronous callbacks due to Ext Direct and dynamic locale loading? - i'm using ext js 4.1 create crm-type application. connect server side, i'm using ext direct via remotingprovider . before application launches , renders, want retrieve global variables server via ext direct, configured language of logged in user , configured permissions. then, depending on language of user (from result), need load both ext js locale file , own custom locale file. (note must loaded before component created, because won't applied afterwards.) so, procedure is: get globals via ext.php.globals.getglobals get ext locale via ext.loader.loadscript , get app locale via ext.loader.loadscript setup viewport since 1.-3. asynchronous, saw no other way nest callbacks: ext.application({ name: 'myapp', launch: function() { var app = this; // welcome callback hell... ext.php.globals.getglobals(function(data) { // insert ...

How to setup amazon s3 for amazon developer toolkit -

How to setup amazon s3 for amazon developer toolkit - i installed amazon toolkit in salesforce developer org , created object of type aws credentials. in ec2consolecontroller, specified name of aws credential object after when seek open ec2 console tab giving me error too many script statements: 200001 error in look '{!constructor}' in component <apex:page> in page ec2console why facing error , how rid of this? please help code of ec2console page <apex:page controller="ec2consolecontroller" sidebar="true" action="{!constructor}"> <!-- <apex:messages /> --> <apex:pagemessages /> <apex:form > <apex:pageblock title="amazon ec2 console"> <apex:pageblockbuttons > <apex:commandbutton action="{!refreshinstances}" value="refresh" rerender="instancestable" status="instances...

php - Echo Session variable not working -

php - Echo Session variable not working - i have problem passing session variable 'login' other pages. have been using session_is_registered, had move on because of php5. here login.php $login=$_post['login']; $heslo=$_post['heslo']; // ochrana proti mysql injection + mysql query $login = stripslashes($login); $heslo = stripslashes($heslo); $login = mysql_real_escape_string($login); $heslo = mysql_real_escape_string($heslo); $md5heslo=md5($heslo); $sql="select * uzivatele login='$login' , heslo='$md5heslo'"; $result=mysql_query($sql); //zjištění id uživatele pro přiřazení session $query = mysql_query("select * uzivatele login='$login'"); $row = mysql_fetch_array($query); $id = $row['id']; // mysql_num_row počítá řádky $count=mysql_num_rows($result); // jestliže výsledek($result) se shoduje s $login $heslo, musí být první řádek if($count==1){ // zapsání proměnných login, přesměrování ná "log...

iphone - How to safely rename iOS Distribution Profile? -

iphone - How to safely rename iOS Distribution Profile? - i submitted first app couple of hours ago , in status "waiting review" but had made 1 error - i had named distribution provisioning profile my company distribution profile . should have done instead named distribution provisioning profile my game distribution profile . now app pending approval, , plan create future updates apps, there way can safely rename distribution provisioning profile? as in... i'm worried re-naming current distribution profile.... never able create updates submitted app? if adamant changing provisioning name while app pending, can go ahead , reject binary. changes in provisioning name , incorporate in app going submit , re-submit binary again. might lose place have in line waiting reviewed not create much of difference. suggest reject binary , changes re-submit. iphone ios xcode app-store provisioning-profile

javascript - set width of column in percentage in highcharts -

javascript - set width of column in percentage in highcharts - how set width of column in percentage in highcharts options = { chart: { renderto: 'container', type: 'column' }, title: { text: 'data extracted html table in page' }, xaxis: { }, yaxis: { title: { text: 'units' } }, tooltip: { formatter: function() { homecoming '<b>'+ this.series.name +'</b><br/>'+ this.y +' '+ this.x.tolowercase()+''+this.percentage; } }, plotoptions: { column: { pointwidth: 50 } } }; unfortunately, percent point width not supported. javascript highcharts

arrays - C matrix function segmentation fault -

arrays - C matrix function segmentation fault - i have piece of code gives me segmentation fault when function loadrow(tmppop,bestof4route,k,n); called 5th time. in particular, function called correctly @ first loop of fro (when p=3). it' ok every value of k. don't understand why, sec time execute loop (p=7), first time called (k=0), homecoming segmentation f when seek access matric tmppop. randperm(popsize,randomorder); for(p = 3;p<popsize;p+=4) { load_rtes(rtes,pop,randomorder,n,p); load_dists(dists,totaldist,randomorder,p); find_min(dists, 4,&m,&idx); for(j=0;j<n;j++) bestof4route[j]=rtes[j][idx]; x = rand_range(1,5); y = rand_range(1,5); for(k =0;k<4;k++) //mutate best 3 new routes { loadrow(tmppop,bestof4route,k,n); switch(k) { case 1: //flip flipmutation(tmppop,k,x,y); b...

xcode - valid signing identity not found for distribution -

xcode - valid signing identity not found for distribution - i wanted submit first iphone app app store. hence created provisioning profile distribution. however, after installing in xcode, tells me "valid signing identity not found". how repair this? this current situation described in pictures: what have do? xcode distribution provisioning