Posts

Showing posts from September, 2010

c++ - What is the meaning of "qualifier"? -

c++ - What is the meaning of "qualifier"? - what meaning of "qualifier" , difference between "qualifier" , "keyword"? for volatile qualifier in c , can volatile keyword, meaning of "qualifier"? a qualifier adds "quality", such specifying volatility or constness of variable. they're similar adjectives: "a fickle man", "a volatile int", "an incorruptible lady", "a const double". or without qualifier, variable still occupies same amount of memory, , each bit has same interpretation or contribution state/value. qualifiers specify how may accessed or stored. keywords predefined reserved identifiers (arguably, see below) language assigns meaning to, rather leaving free utilize own purposes (i.e. naming variables, types, namespaces, functions...). examples volatile , const both qualifiers , keywords if , class , namespace keywords not qualifiers std , main , ios...

Risky to choose a non-standard Java code indentation style? -

Risky to choose a non-standard Java code indentation style? - does create difference if take non-standard indent style? this style see often: import java.io.fileinputstream; import java.io.fileoutputstream; import java.nio.bytebuffer; import java.nio.channels.filechannel; public class test { static public void main(string args[]) throws exception { fileinputstream fin = new fileinputstream("infile.txt"); fileoutputstream fout = new fileoutputstream("outfile.txt"); filechannel inc = fin.getchannel(); filechannel outc = fout.getchannel(); bytebuffer bb = bytebuffer.allocatedirect(1024); while (true) { int ret = inc.read(bb); if (ret == -1) break; bb.flip(); outc.write(bb); bb.clear(); } } } but prefer style starts on next line: import java.io.fileinputstream; import java.io.fileoutputstream; import java.nio....

c# - How do I get WPF control to mimic the disabled state? -

c# - How do I get WPF control to mimic the disabled state? - basically have custom wpf button disabled still able react button beingness pressed. i'd prefer not tie other event types if possible, because there's funny timing issues touch , hold going on already. thanks! this wound doing workaround: this.mylabel.foreground = brushes.darkgray; this.myseparator.borderbrush = brushes.darkgray; this.myotherlabel.foreground = brushes.darkgray; i'm not huge fan because it's hugely custom components of custom control, @ to the lowest degree quick programmatic way until has better. you can current template of command this: system.windows.markup.xamlwriter.save(mybutton.template, new filestream("c:\\bla.xml", filemode.append)); examine template triggers see changes if button disabled, , set properties accordingly. edit: ok, not it... :-) you set button disabled, , utilize snoop or show me templates inspect ...

c# - Manipulating input and output streams from one file to another -

c# - Manipulating input and output streams from one file to another - i have new file every few seconds looks this: 23 45 21 1 9 23 42 22 40 11 33 32 18 11 12 32 22 7 37 30 in text file read there 1 number per line between 1-40. these files generated several times minute. i trying order them ascending stringreader , stringwriter . logic must flawed nil shows in file intended send to. passed true append parameter still nil populated in sorted file. the goal read text file for loop iterates on 1-40 int values , compare each string or int file read , when found re-create read file sorted file in sorted order. i have been looking @ while , should work not. easier file reader/writer classes or streamreader/writer have done? public static void processdirectory() { int variable1; streamreader readtosort = new streamreader(@"c:write.txt"); streamwriter writesorted = new streamwriter(@"c:sorted_file.tx...

c# - How To Reconnect to Tcp server from tcp client upon connection failure -

c# - How To Reconnect to Tcp server from tcp client upon connection failure - i have server, sends info in irregular periods of time , sends heartbeats every 30 seconds of ideal time. i wrote tcp client connect server , read data. works ok, when wrong network , server becomes unavailable need next actions. when connection fails between client , server need seek reconnect server (repeat process 3 times 30 seconds interval if server not available after interval, on successful re-connection need go on working process else need display message server not available.) how can accomplish this? please help me. here's code. private void servicemethod(string port, string host) { seek { //create new client socket ... m_socclient = new socket(addressfamily.internetwork, sockettype.stream, protocoltype.tcp); string szipselected = host; string szport = port; int alport = system.convert.toint16(...

apache - What is the realtionship between HTTP Basic Auth and .htpasswd based Authentication? -

apache - What is the realtionship between HTTP Basic Auth and .htpasswd based Authentication? - there several approachs of http authentication: basic authentication , digest access authentication , ntlm http authentication (any other ones)? on other side there .htaccess & .htpasswd based authenticazion on apache web servers , analog variant .htpasswd on nginx. i want understand: .htpasswd based authentication on apache , nginx actually. realtionship between , http basic authentication? "implementation" of concept? if yes, whuch other implementation there? the basic http authentication uses simle user:password schema. there 2 standard http authentication methods: basic access authentication (part of http/1.0 spec, rfc1945) , digest access authentication (latest according rfc2617). .htpasswd mutual name file of apache's flat-file format used store user credentials. managed either htpasswd (basic) or htdigest (digest) command-line utilities....

Spring-session clears attributes from session after pageContext.include -

Spring-session clears attributes from session after pageContext.include - i think have come across bug in spring-session want inquire here if bug. before forget https://github.com/paranoiabla/spring-session-issue.git here's github repository reproduces problem. have 2 controllers , 2 jsps, flow goes this: user opens http://localhost:8080/ , flow goes through homepagecontroller , puts 1 attribute in spring-session , returns homepage.jsp renders session id , number of attributes (1) the homepage.jsp has line within it: ${pagecontext.include("/include")} calls includecontroller invoked. the includecontroller finds session session repository , logs number of attributes (now absolutely weird logged 0) , returns include.jsp renders both session id , number of session attributes (0). session id in both jsps same, somehow after pagecontext.include phone call attributes reset empty map!!! can please confirm if bug. thank you. problem the problem ...

pip - Sharing a python script with module requirements? -

pip - Sharing a python script with module requirements? - i'm new python , curious if python had npm install pip install required packages script have. i've looked setup.py readme , looks geared creating tarball send pip, isn't want. i'd able check out source code , run it. stands when inquire coworkers utilize script run import failures , have manually pip install things poor experience. my setup.py file is #!/usr/bin/env python distutils.core import setup setup(name='add-webhook', version='1.0', description='adds webhooks git repos', author='devshorts', packages=['requests'], ) and when run it $ python setup.py install running install running build running build_py error: bundle directory 'requests' not exist i have little script sits next setup.py uses requests bundle , i'd installed on 'install' $ ls total 40 -rw-r--r-- 1 akropp jomax\domain...

Ruby on Rails Why do I get the error: undefined method `email' for 69:Fixnum when trying to send an email? -

Ruby on Rails Why do I get the error: undefined method `email' for 69:Fixnum when trying to send an email? - ok, in ror application have cinema scheme users have preferences, include saving favourite actor. trying when new cinema added, if users have of film's actors saved favourite email notifying them of film. @ min trying simplified version of 1 user emailed if cinema has actor liam neeson , email same 1 received when user sign's website (i have functionality working). films_controller: def create @film = film.new(film_params) if @film.save user = perference.where(actor: "liam neeson").pluck(:user_id).first if not user.blank? usermailer.welcome_email(user).deliver end redirect_to @film else render 'new' end end user_mailer: class usermailer < applicationmailer default from: 'no-reply@thorcinemas.com' def welcome_email(user) @user = user @url ...

sql - Using DBMS_SCHEDULER.CREATE_JOB within a procedure -

sql - Using DBMS_SCHEDULER.CREATE_JOB within a procedure - i trying create procedure perform updates on couple tables , schedule procedure run later revert them back. i'm running problem in using dbms_scheduler.create_job. code looks this: create or replace procedure my_procedure(p_duns in varchar2, p_plus_four in varchar2) *some variables* begin *do stuff* p_job_action := 'begin run_other_procedure(' || p_vendor_id || ', ' || p_ccrid || ', ' || nvl(to_char(p_inactive_date),'null') || ',' || nvl(to_char(p_end_date),'null') || '); end;'; dbms_scheduler.create_job(job_name => 'deactive_vendor_'||to_char(p_ccrid), job_type => 'plsql_block', job_action => p_job_action, start_date => sysdate+1, enabled => true, comments => 'calls pls...

jquery - facebox not working after $.post -

jquery - facebox not working after $.post - i'm using facebox open remote page, included jquery , facebox.js , facebox.css , set in document.ready jquery(document).ready(function ($) { $('a[rel*=facebox]').facebox({ loadingimage: 'imgs/loading.gif', closeimage: 'imgs/closelabel.png' }); }); everything works till phone call function function lecfunc(year) { var name = year + '_lec'; $.post('php/scripts/lecclickscript.php', { matyear: year, mattype: name }, function (data) { document.getelementbyid("lecs_tbody").innerhtml = data; document.getelementbyid("lecs_boxbody").style.display = 'block'; document.getelementbyid("qus_boxbody").style.display = 'none'; }); } the facebox doesn't work more edit :: solved actully problem was using 2 jquery versions read qustion can-i-use-multiple-versions-of...

html - Increase width of seach textbox inside navbar-header -

html - Increase width of seach textbox inside navbar-header - i have search textbox in navbar-header, on collapse, width of textbox fine. in total screen, textbox width reduced. how can increment width in total screen mode? i know there lot of questions, on , web. however, have tried suggestions, none has helped me. here code, can tell i'm doing wrong? thanks. class="snippet-code-css lang-css prettyprint-override"> .navbar .navbar-form { padding: 0 15px; border: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-inverse { background: #465f62; border: none; } .navbar-inverse .navbar-brand { color: white; font-size: 40px; } .navbar-inverse .navbar-nav > li > { color: white; font-size: 18px; } class="snippet-code-html lang-html prettyprint-override"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//...

asp.net mvc - How to retain the values of object fields not updated in a form -

asp.net mvc - How to retain the values of object fields not updated in a form - i have next object, values filled out in 2 separate forms. public class myobject { public int id { get; set; } //filled pupil [stringlength(20)] public string field1 { get; set; } //approved teacher public bool approve { get; set; } } students create initial record field1 filled in form. later, in sec form, teacher reviews , approves record clicking approve checkbox , submits form. here cshtml sec form: @using (html.beginform()) { @html.antiforgerytoken() <div class="form"> <div class="row"> <div class="form-group"> <label class="control-label">field1</label> <br/> @html.displayfor(model => model.field1) </div> </div> <div class="row"> <di...

javascript - Can I create two canvas spaces in a unique html page? -

javascript - Can I create two canvas spaces in a unique html page? - i trying create html page has 2 canvas spaces, i. e. 2 rectangles objects can displayed. in html code have line, represents rectangle of dimensions 540x600 dp on left side of page: <canvas id="canvas" width="540" height="600"></canvas> but apart that, want generate canvas space on right side. possible? how it? you can define many canvas elements want in page. give them unique id , create context each 1 of them: <canvas id="canvas1" width="540" height="600"></canvas> <canvas id="canvas2" width="540" height="600"></canvas> they placed default inline . then in javascript code: var ctx1 = document.getelementbyid("canvas1").getcontext("2d"); var ctx2 = document.getelementbyid("canvas2").getcontext("2d"); example class=...

c - requestedExecutionLevel in manifest file and failing CopyFile() function -

c - requestedExecutionLevel in manifest file and failing CopyFile() function - just trying re-create file using copyfile() function current directory c:\windows\system32\drivers. i wrote manifest "requestedexecutionlevel level="highestavailable"" in , run mt add together resulting executable. when seek run it, windows 7 uac dialog popping out, press "yes", copyfile() returning "access denied" error. wrong? should check? my manifest file: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0"> <v3:trustinfo xmlns:v3="urn:schemas-microsoft-com:asm.v3"> <v3:security> <v3:requestedprivileges> <v3:requestedexecutionlevel level="requireadministrator" uiaccess="false"/> </v3:requestedprivileges> </v3:secu...

Get Relative message number from UID in IMAP? -

Get Relative message number from UID in IMAP? - in imap it's pretty straightforward uid single message if happen have relative message number: fetch 1 (uid) but suppose had uid , later wanted determine relative message number message? imap provide way that? i'm not seeing obvious in spec allow relative message number single message. uid fetch 1:* (uid) and parse , search through results find it, seems overkill (not mention exponentially slow). pretty simple: tag uid fetch <uid> (uid) the response include message number, not in fetch info initial part of response tag <messagenumber> fetch (uid <uid>) imap

c++ - ERROR LNK1120: 1 unresolved externals & ERROR LNK2019: unresolved external symbol ! While Compiling -

c++ - ERROR LNK1120: 1 unresolved externals & ERROR LNK2019: unresolved external symbol ! While Compiling - this question has reply here: what undefined reference/unresolved external symbol error , how prepare it? 23 answers i error lnk1120: 1 unresolved externals & error lnk2019: unresolved external symbol ! while compiling some threads - end while searching - class definitions , other .cpp / .h files the errors: error lnk1120: 1 unresolved externals. error lnk2019: unresolved external symbol "public: __thiscall bandera_triang::~bandera_triang(void)" (??1bandera_triang@@qae@xz) referenced in function _main. here code: #include <iostream> using namespace std; class bandera_triang { private: float aside, bside, cside; public: bandera_triang(){ //cost. sin param... aside = 0; bside = 0; cside =...

java - Tomcat timesout when it's working -

java - Tomcat timesout when it's working - first of - i'm little experienced servlets , other java ee stuff. i trying create simple chat room, before tried making simple udp server , client. works, except 1 thing after 45 seconds tomcat timesout , turns off. have single contextlistener calls udp server class. is because have no servlets, or ?.. here's udp server class: public udpserver() { system.out.println("constructor reached"); seek { connect(); } grab (exception e) { e.printstacktrace(); } } public void connect() throws exception { int serverport = 9123; system.out.println("server starting"); datagramsocket serversocket = new datagramsocket(serverport); system.out.println("server started"); byte[] receivedata = new byte[1024]; byte[] senddata = new byte[1024]; while(true) { datagrampacket receivepacket = new datagrampacket(recei...

LinkedIn Rest API doesn't parse document in the same way when sharing in a company page, account and group -

LinkedIn Rest API doesn't parse document in the same way when sharing in a company page, account and group - recently, noticed unusual behavior linkedin rest api. xml parsing working in 2 different ways when want publish: a company or business relationship share and grouping post here bellow xml text shared in company or account. <?xml version="1.0" encoding="utf-8" standalone="yes"?><share> <comment>🎯 text</comment> <content> <title>🎯 text</title> <description> </description> <submitted-url>link</submitted-image-url> </content> <visibility> <code>anyone</code> </visibility> </share> when post https://api.linkedin.com/v1/companies/company_id/shares or https://api.linkedin.com/v1/people/~/shares , next error. understand doesn't 🎯 <?xml version="1.0" encoding="utf-8" standal...

android - How can i use fragment xml tag in layout for another fragment? -

android - How can i use fragment xml tag in layout for another fragment? - i'm trying 3 page contains list fragment in activity. of pages fragment(from v4 back upwards library) need list fragment within them. when tried have encountered problem(viewpager gives error if turn page) have done research , learned there can not fragment(i mean xml fragment tag not adding dynamically nested fragment) in fragment. instance, in lastly android update of whatsapp there 3 page in 1 activity , 1 of them has list fragment(chat list) wonder how whatsapp have done that? thanks. my xml layout contains list fragment: <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height=...

Proguard in Android Studio are not removing logging -

Proguard in Android Studio are not removing logging - using android studio 1.2 beta, proguard 4.7, i'm not able optimize (remove) log.d. using tools d2j-dex2jar , jd-gui can see log.d remains in apk. any wise comments on problem? the proguard-rules.pro used because -dontwarn working. my proguard-rules.pro: -assumenosideeffects class android.util.log { public static *** v(...); public static *** i(...); public static *** w(...); public static *** d(...); public static *** e(...); } -dontwarn com.google.common.** -dontwarn javax.annotation.** -dontwarn javax.inject.** -dontwarn sun.misc.unsafe -dontwarn org.joda.time.** this worked me -assumenosideeffects class android.util.log { public static boolean isloggable(java.lang.string, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public static int e(...); } android android-studio proguard

jQuery flot ...how to fill splines? -

jQuery flot ...how to fill splines? - i using jquery flot plugin , trying fill splines. can fill when set show: false in lines , causes sec line show. doing wrong? i have code this: $(function () { $.plot($("#flotcontainer"), [{ data: data9_1, label: "page views", color: "#e74c3c" } ],{ series: { lines: { show: true, fill: 0.3, linewidth: 1, fillcolor: "#d5d5d5" }, splines: { show: true, tension: 0.4, linewidth: 1, fill: 1 }, points: { radi...

qt - QTransform: How to iteratively map composition of transformation matrices to object? -

qt - QTransform: How to iteratively map composition of transformation matrices to object? - i've tried everything, still have no thought how map composition of 3 transformation matrices line iteratively first 2 iterations of koch curve. let me explain problem. i've got 3 input parameters: base object (this object stored in list "0. iteration") list of transformation matrices (every matrix can composed more basic matrices of scaling, rotation , translation) iteration number now algorithm should following: initialize empty list of new objects - size of list count of transformation matrices multiplied count of list of objects previous iteration loop through matrices map current matrix base of operations object store transformed object in list after end of loop list of new objects become current iteration. goto 1. until required iteration number achieved let's take illustration koch curve - first 3 iterations: parameters: base object = line ...

encryption - MD5Hash encrypt a list of emails via terminal for an outside vendor -

encryption - MD5Hash encrypt a list of emails via terminal for an outside vendor - i have list of emails in txt file vendor requesting md5hash encrypted. understanding md5hash isn't encryption i'm unsure how this. is there terminal command take txt file , md5hash every single email in file "encrypted"? the terminal command know regarding md5hash , result when md5hash file below: md5 -r /users/me/desktop/test_file.txt result is: 0240da8148f06ae774de0831eda20eee /users/me/desktop/test_file.txt anyone know of method (i guess) md5hash every single email in file? there 20k emails, doing each 1 individually isn't option. or misunderstanding how md5hash should used email list? , fyi i'm using terminal on mac. thanks! i guess don't want transport plain text emails. later compare hashes of emails file. for examle emails.txt: a@a.com b@b.com c@c.com d@d.com command writes md5-s of each e-mail new file: cat emails.txt | wh...

c# - Check duplicate user name with client-side validation -

c# - Check duplicate user name with client-side validation - i have 1 input type , button, used come in username sql database via ajax. now want accomplish validation checks duplicate names. if duplicate exists error message shown, help regarding this <div id="div1"> <label>formname</label> <input type="text" id="text1" placeholder="type form name here" class="form-control" /> </div> <div id="div2" style="float: right;"> <input type="button" id="button2" class="btn btn-default" style="" value="save form" /> <input type="button" id="button3" class="btn btn-success" style="" value="add section" /> </div> this how look: back end prepare sql query check duplicates expose on server, perhaps restful api or wcf front end add aj...

Elixir, IO.inspect to not trim a long list -

Elixir, IO.inspect to not trim a long list - when do: io.inspect [:right, :top, :left, ...very_long_list] i first items (it's list of moves solve 15-puzzle) this: [:right, :top, :left, :bot, :bot, :left, :top, :top, :right, :right, :bot, :left, :bot, :left, :top, :right, :bot, :right, :top, :top, :left, :bot, :left, :top, :right, :right, :bot, :bot, :left, :top, :top, :left, :bot, :right, :top, :right, :bot, :left, :left, :top, :right, :bot, :right, :top, :left, :left, :bot, ...] # => see '...' instead finish list how can tell io.inspect not trim list ? there alternative or ? you can pass limit: :infinity print elements: io.inspect(list, limit: :infinity) it not appear in documentation inspect.opts , can found in source code. elixir inspect

rally - Filter Control for Grid/TreeGrid -

rally - Filter Control for Grid/TreeGrid - is filter command component available grid/treegrid (similar filter within portfolio items dashboard)? per sdk 2.0 documentation, seems component available gridboard. gridboard wrapper around treegrid or board, , filtercontrol plugin should work treegrid. here illustration of tree grid enablehierarchy set true , rallygridboardcustomfiltercontrol plugin: ext.define('customapp', { extend: 'rally.app.app', componentcls: 'app', launch: function() { ext.create('rally.data.wsapi.treestorebuilder').build({ models: ['userstory'], autoload: true, enablehierarchy: true }).then({ success: this._onstorebuilt, scope: }); }, _onstorebuilt: function(store) { var modelnames = ['userstory']; var context = this.getcontext(); this.add({ xtype: 'rallyg...

Random port for a Windows service -

Random port for a Windows service - is there way assign random port number windows service, , communicate client application? my motivation avoid potential collision other services, stated here. windows service port

debugging - Errors when using Lazarus IDE on OS X -

debugging - Errors when using Lazarus IDE on OS X - i'm trying utilize lazarus os x finish pascal programming assignment, , reason, maintain getting next debugger error. debugger error ooops, debugger entered error state. save work now! hit stop, , hope best, we're pulling plug. even though tells me "project built :)" after compiling, give me debugger error. when rescan fpc source directory, error well, though installed fpc bundle http://sourceforge.net/projects/freepascal/files/mac%20os%20x/2.2.4/. the error is: error the project uses target os=darwin , cpu=i386. system.ppu target not found in fpc binary directories. create sure fpc installed correctly target , fpc.cfg contains right directories. then i'll click "ok" , error after: fpc source directory error please check freepascal source directory. i'm pretty sure these errors somehow related. any help lazarus/pascal noob ...

ruby on rails - Change public_activity collection name with Mongoid -

ruby on rails - Change public_activity collection name with Mongoid - so https://github.com/pokonski/public_activity/wiki/%5bhow-to%5d-change-table-name-for-activities not specify how alter collection name in mongoid. have activity collection. also method mentioned here not work https://github.com/pokonski/public_activity/issues/87. throws error; undefined method collection_name= #<publicactivity::config:0x007fd57423f7e8> (nomethoderror) i see have included store_in collection: publicactivity.config.table_name in /public_activity/orm/mongoid/activity.rb . but after setting table_name in initializer; publicactivity.config.table_name = "public_events" i'm getting error when creating object of tracked model; problem: attempted set value 'key' not allowed on model activity. summary: without including mongoid::attributes::dynamic in model , attribute not exist in attributes hash, attempting phone call activity#key= not allowed. triggered p...

mysql - Python MySQLdb: table does not get deleted immediately -

mysql - Python MySQLdb: table does not get deleted immediately - in code seek delete table database (delete_table function). right after this, check if table has been deleted or not (check_table_from_db function). when this, table gets deleted check_table_from_db function shows not. when process in 2 different runs (two different programs). result correct. next code check_table_from_db: def check_table_from_db(table_name): import mysqldb mdb try: exists = false con = mdb.connect('localhost', 'user', '123', 'test') cur = con.cursor() s = "show tables '%s'" % (table_name) cur.execute(s) exists = (cur.rowcount > 0) except mdb.error, e: print "error %d: %s" % (e.args[0],e.args[1]) sys.exit(1) finally: if con: cur.close() con.close() homecoming exists edit: since has been requested pos...

Error while populate an ExpandableListView from SQLite Database in android -

Error while populate an ExpandableListView from SQLite Database in android - am trying create expandablelistview populated info sqlite database , have 2 tables , , want create subjects_col column contents header of expandablelistview , , contents of other table kid of expandablelistview the mainactivity class public class mainactivity extends actionbaractivity { button badd; alertdialog.builder builder; expandablelistview exlv; database db; sqlitedatabase w; cursor cursor; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); badd = (button) findviewbyid(r.id.baddrule); exlv = (expandablelistview) findviewbyid(r.id.expandablelistview); badd.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { builder = new alertdialog.builder(main...

Microservices Architecture: Cross Service data sharing -

Microservices Architecture: Cross Service data sharing - consider next micro services online store project: users service keeps business relationship info store's users (including first name, lastly name, email address, etc') purchase service keeps track of details user's purchases. each service provides ui viewing , managing it's relevant entities. purchase service index page lists purchases. each purchase item should have next fields: id, total name of purchasing user, purchased item title , price. furthermore, part of index page, i'd have search box allow store manager search purchases purchasing user name. it not clear me how info purchase service not hold - example: user's total name. problem gets worse when trying more complicated things search purchases purchasing user name. i figured can solve syncing users between 2 services broadcasting sort of event on user creation (and saving relevant user properties on purchase service end)....

php - How to stop mail goes spam folder? -

php - How to stop mail goes spam folder? - this question has reply here: how create sure email send programmatically not automatically marked spam? 18 answers when trigger mail service function , mail service goes 'spam' folder not 'inbox'. can u please figure out whats problem? function send_user_email($mail, $to_email,$password, $first_name) { $html = "hi $first_name, <br /><br />"; $html = $html . "<p> have been registered system. please find login details below. </p>"; $html = $html . "user name - $to_email <br />"; $html = $html . "password - $password <br /> <br />"; $html = $html . "regards, <br />"; $html = $html . "team"; $mail->issmtp(); // telling class utilize smtp $mail->host = "smtpout.xxx.xxx.xxx"; // sets gma...

jquery - Colorbox (lightbox plug-in) limiting number of photos in array -

jquery - Colorbox (lightbox plug-in) limiting number of photos in array - i implemented colorbox plug-in on 1 of clients' sites recently, , it's limiting number of photos loads lightbox five. steps reproduce problem: load page click 1 of big images (not thumbnails) load lightbox click through previous/next navigation or click lightbox image advance the image set loops @ 5 when should display nine example page 1 example page 2 on each page, there greater 5 photos in set. can click on big photo #6 or greater, , loads image, there no navigation , no "photo x of x" numbering. looks class triggering colorbox on has 5 images 'group1'. see screenshot. each div there has 'group1' class inside. add together additional divs images '.rscontainer' have listed in screenshot? jquery colorbox

c# - Demand load web based images on background thread? -

c# - Demand load web based images on background thread? - i have application loads objects , displays them in grid. 1 of objects preview image either local image file or image file on web location. right working performance isn't when scrolling because whenever new item scrolls view has load preview takes sec or two. what trying accomplish box preview show , start loading preview on background thread when scrolled view. when image loaded notify (via property alter event in view model) , image come place. way ui remains responsive , preview blank until loads , shows up. have getter bound property starting backgroundworker if image isn't cached, , worker routine follows (_previewcache backing property bound preview): void bw_loadpreview_dowork(object sender, doworkeventargs e) { bitmapimage _tempcache = new bitmapimage(new uri(previewimagepath, urikind.relativeorabsolute)); if (_tempcache.canfreeze) { _tempcache.freeze...

makefile - /usr/bin/ld: cannot find -lsqlite3 -

makefile - /usr/bin/ld: cannot find -lsqlite3 - while installing nix getting error.when doing make. ld src/libstore/libnixstore.so /usr/bin/ld: cannot find -lsqlite3 /usr/bin/ld: cannot find -lbz2 collect2: error: ld returned 1 exit status make: *** [src/libstore/libnixstore.so] error 1 i set ldflags directory containing libsqlite3.* , libbz2.* update: here output of create v=1 makefile:28: makefile.config: no such file or directory rm -f makefile.config && ./config.status --quiet --file=makefile.config g++ -o /home/kapil/nix/src/nix-1.8/src/libstore/libnixstore.so -shared -wl,--no-copy-dt-needed-entries src/libstore/build.o src/libstore/derivations.o src/libstore/gc.o src/libstore/globals.o src/libstore/local-store.o src/libstore/misc.o src/libstore/optimise-store.o src/libstore/pathlocks.o src/libstore/references.o src/libstore/remote-store.o src/libstore/store-api.o -lsqlite3 -lbz2 -wl,-z,defs -wl,-soname=libnixstore.so -wl,-rpath,/home/kapil/nix/sr...

r - How to add multiple figures across multiple pages in a chunk using knitr and RMarkdown? -

r - How to add multiple figures across multiple pages in a chunk using knitr and RMarkdown? - i using loop create multiple big figures across multiple pages in 1 chunk knitr , rmarkdown. works fine word , html outputs, has 1 problem in pdf output. this minimal rmarkdown illustration reproduce problem. --- title: "knitr test" date: "6 apr 2015" output: pdf_document --- ```{r, echo=false, fig.width=6.5,fig.height=10} library(ggplot2) (i in seq(1, 4)){ p <- ggplot(cars, aes(speed, dist)) + geom_point() print(p) } ``` the generated pdf file looks this. 2 figures printed in page. if alter fig.height, add together few section in rmd file, 2 figures still printed in same page different arrangement. --- title: "knitr test" output: pdf_document date: "6 apr 2015" --- ## section row b ```{r plot_phenotype, echo = false, fig.height=8, fig.width=6.5} library(ggplot2) (i in seq(1, 4)) { p <- ggplot(cars, aes(sp...

groovy - Perl 5.8 cascading null checks -

groovy - Perl 5.8 cascading null checks - let's have next groovy code: string name = child.getparent()?.getparent()?.getname(); note getparent() may homecoming null , , in case code continues work without null pointer exceptions beingness thrown. is there way in 1 line in perl 5.8? open writing generic helper method accomplish this. i'm running situations have several nested objects , having like: my $name = $child && $child->getparent && $child->getparent->getparent && $child->getparent->getparent->getname; yes in 1 line, fugly imo. in my opinion, original groovy code on boundary of readability anyway. implement rather differently, similar look in perl be my $name = ( $node = $node->get_parent or $node = $node->get_parent or $node->get_name ); the utility of language isn't defined ability represent complex constructs in few characters perl groovy null