Posts

Showing posts from July, 2015

eclipse - Android google Map Api V2 Crashes on runtime -

i trying add map fragment android layout using google map api v2. have followed several tutorials, 1 google has , has been pointed post here. app crashes after starting layout. files are manifest (in [my key] there actual key google console using debug code , package name: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.publicthreadsmap" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <permission android:name="com.example.publicthreadsmap.permission.maps_receive" android:protectionlevel="signature"/> <uses-permission android:name="com.example.publicthreadsmap.permission.maps_receive"/> <uses-permission android:name="and

actionscript 3 - Action Script 3. Timer MM:SS doesn't work -

i'm creating app , need show game time mm:ss format. don't know why timer doesn't wrok shows 0:00.359 (359 of miliseconds) , not change. problem? can't find it. thank you. var timer:timer; //import flash.utils.timer; var txttime:textfield; var tmptime:number; //this store time when game started //your constructor: public function memorygame() { timer = new timer(1000); //create new timer ticks every second. timer.addeventlistener(timerevent.timer, tick, false, 0, true); //listen timer tick txttime = new textfield(); addchild(txttime); tmptime = flash.utils.gettimer(); timer.start(); //start timer //....the rest of code } private function tick(e:event):void { txttime.text = showtimepassed(flash.utils.gettimer() - tmptime); } //this function format time stopwatch function showtimepassed(starttime:int):string { var leadingzeroms:string = ""; //how many leading 0's put in front of miliseconds var

c++ - Reduce memory usage in boost build -

i'm trying build c++ library on linux system constrained memory resources, using g++ 4.6. library uses boost heavily. i've seen various threads here , in other websites regarding compilation speed, i'm interested in tips , tricks make g++ less demanding on memory resources, though means loosing speed. edit: i've tried using precompiled headers boost, improves build speed, still requires same amount of memory. you have play garbage collector settings. parameters ggc-min-expand , ggc-min-heapsize . set ulimit ulimit 65536 (or whatever) reduce heap size (rlimit_as). lots of information on in gcc manual here a setting may set ggc-min-expand param 0 , ggc-min-heapsize param 8192 , try that... cxxflags="$(cxxflags) --param ggc-min-expand=0 --param ggc-min-heapsize=8192" or such value.

Converting XML file elements into a PHP array -

i'm trying convert steam group members list xml file array using php. xml file is: http://steamcommunity.com/groups/starhawk/memberslistxml/?xml=1.xml the elements member's steam ids, such 76561198000264284 how can go doing this? edit: far i've used this: $array = json_decode(json_encode((array)simplexml_load_string($xml)),1); it outputs first few elements, not ones this should return accessible array: $get = file_get_contents('http://steamcommunity.com/groups/starhawk/memberslistxml/?xml=1.xml'); $arr = simplexml_load_string($get); print_r($arr); you can access items this: echo $arr->groupid64; echo $arr->members->steamid64; edit: parse streamid, can loop $ids = $arr->members->steamid64; foreach($ids $id) { echo $id; }

iframe - Mootools absolute TIP positioning -

i need position mootool events calendar inside iframe. unfortunately tool tip appears on date events, cut boundary of iframe. how can set tooltip position it's @ x=0 , y=0 of container div (here "calcontainer")? here piece of code generates tip if (this.showtip) { newtip = new tips(eventdiv, { fixed: true }); eventdiv.store('tip:title', time).store('tip:text', this.options.cevents[i].title + '<br /><i>' + this.options.cevents[i].location +'</i>') ; } here html <div class="calcontainer" > <div id="calbody"></div> </div> calbody div containing calendar thanks why want tooltips positioned 0,0 container ? people not understand tooltip relevant date. you set fixed:true - fixed flag sais if tooltip follow mouse or stay fixed. what can either enlarge iframe contains gap of tooltips or use tips attribute offset or windowpadding can read in tips doc

knockout.js - knockout dynamic master details -

in quest of dynamic create, read,update, delete through knockoutjs part of continuation of question fellow expert ( dynamic column , rows knockoutjs ) <script type="text/javascript"> var columndefs = [{ "$id": "1", "columnname": "id", "system_type_id": 56, "primarycol": 1 }, { "$id": "2", "columnname": "inv_id", "system_type_id": 231, "primarycol": 0 }, { "$id": "3", "columnname": "acx_no", "system_type_id": 175, "primarycol": 0 }, { "$id": "4", "columnname": "acx_name", "system_type_id": 175, "primarycol": 0 }, { "$id

ubuntu - Error with 'pcap-lex' while using make for Android OS compilation -

when run . build/envsetup.sh lunch full-eng make i following error target executable: tcpdump (out/target/product/generic/obj/executables/tcpdump_intermediates/linked/tcpdump) prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/static_libraries/libpcap_intermediates/libpcap.a(grammar.o): in function pcap_parse:y.tab.c:1711: error: undefined reference 'pcap_lex' collect2: ld returned 1 exit status make: *** [out/target/product/generic/obj/executables/tcpdump_intermediates/linked/tcpdump] error 1 i have flex , bison installed. i'm running ubuntu 11.10 on 32 bit machine. how solve error?

JAVA - store an image blob with a fixed size -

i'm trying save entity (hibernate) contains blob field. this blob may vary in size.. my goal persist fixed size (10 kb). format of images jpeg, , keep original width \ height rather reducing them (compress not re-size) losing original image quality not issue. (on side note - blob being created form byte array, maybe process of size reduction supposed executed on byte array instead of blob? either way help..) thanks! this has nothing hibernate , persistence. image should reduced before, in business logic layer. resulting byte array should stored in persistent entity. find image manipulation library can compress jpegs. – jb nizet

How to suppress initial validation error in ASP.NET MVC3 -

asp.net mvc3 view displays validation error if request invoked. how show validation error if post request used in mvc2 ? view: <%= html.validationsummary(false, "error") %> controller: namespace store.controllers { public class checkoutcontroller : myapp.controllers.controllerbase { [httpget] public actionresult address() { return view(new addressviewmodel()); } [httppost, validateantiforgerytoken] public actionresult address(addressviewmodel model, string name) { if (!modelstate.isvalid) return view(model); return redirecttoaction("payment"); } } }

sql - How to use group by <<colName>> properly in MySQL? -

below data in table | count(*) | system | | 2 | sys1 | | 7 | sys2 | | 6 | sys1 | i want output below | count(*) | system | | 8 | sys1 | | 7 | sys2 | how do that? below query using. can tell me wrong in this? select * (select count(*),system tbl1 creationdate < curdate() , creationdate >= curdate() - interval 1 day group system union select count(*),system tbl2 creationdate < curdate() , creationdate >= curdate() - interval 1 day group system) tbl3 group system; you need use sub-query achieve this: try this: select sum(total) `count`, system ( select count(*) total, system tbl1 creationdate < curdate() , creationdate >= curdate() - interval 1 day group system union select count(*) total, system tbl2 creationdate < curdate() , creationdate >= curdate() - interval 1 day group system ) group system output: | count |

save - c#: reduced image quality when saving JPEG at 100% quality -

i'm loading jpeg image , saving without manipulation it. image quality noticeably reducing. here code: bitmap imgoutput = new bitmap(@"d:\image.jpg"); graphics outputgraphics = graphics.fromimage(imgoutput); encoderparameters myencoderparameters = new encoderparameters(3); myencoderparameters.param[0] = new encoderparameter(system.drawing.imaging.encoder.quality, 100l); myencoderparameters.param[1] = new encoderparameter(system.drawing.imaging.encoder.scanmethod, (int)encodervalue.scanmethodinterlaced); myencoderparameters.param[2] = new encoderparameter(system.drawing.imaging.encoder.rendermethod, (int)encodervalue.renderprogressive); imagecodecinfo[] codecs = imagecodecinfo.getimageencoders(); imagecodecinfo ici = null; foreach (imagecodecinfo codec in codecs) { if (codec.mimetype == "image/jpeg") ici = codec; } imgoutput.save(@"d:\result.jpg", ici, myencoderparameters); and get: http://i.imgur.com/5bg1tpm.jpg zoom: ht

visual studio - How to ignore the error message "cannot find pdb files"? -

i asking question because have searched internet , whenever guy puts question missing dll files common answer "to ignore it" because not error warning. want know how that, because see no such option , code doesn't run. i have tried loading symbols microsoft symbol server. worked me in many cases unfortunately not in case of "'c:\program files (x86)\nvidia corporation\coprocmanager\nvdxgiwrap.dll'. cannot find or open pdb file." (coz nvedia symbols has not microsoft servers)and after error application/code exits without starting. didn't work "nvinit.dll". have idea pdb file is.also have tried changing code release mode , changed properties accordingly changing incremental linkage "no" , debug info "no" , may not have use pdb files nothing helped......my code still not running.so option ignore error.. or warning must say,which unable to.. thanks in advance. too ignore something, literally "ignore it

Files not found after uploading to appfog -

i used isotope thumbnail images. works fine in development server. after have updated files in appfog using "af update". above page spits out error in inspect element. failed load resource: server responded status of 404 (not found) http://neudev.hp.af.cm/static/plugin/css/isotope.css failed load resource: server responded status of 404 (not found) http://neudev.hp.af.cm/static/plugin/js/isotope.init.js failed load resource: server responded status of 404 (not found) http://neudev.hp.af.cm/static/plugin/js/isotope.js failed load resource: server responded status of 404 (not found) http://neudev.hp.af.cm/portfolio/undefined?1367668124923 i try check inside appfog directory , found out files mentioned above exists advitor@ubuntu:~/workstation/neudev$ af files neudev app/neudev/staticfiles/plugin/js --all ====> [0: app/neudev/staticfiles/plugin/js] <==== camera.js 66.7k camera.min.js 38.4k isotope.init.

OpenGL rendering does not work correctly with OpenCV using GLSL shaders -

Image
i have coded small opengl program using opengl , glsl shaders. here's screen of application : now, objective mix opengl frame , 1 webcam in unique frame using opencv. before glsl shaders, tried make simple program drawing colored triangle basic opengl functions (glbengin, glvertex, etc.). static int initgl() { if (!glfwinit()) return (-1); if (!glfwopenwindow(500, 500, 8, 8, 8, 0, 24, 0, glfw_window)) { glfwterminate(); return (-1); } glenable(gl_projection); glloadidentity(); gluperspective(45.0f, 500.0f / 500.0f, 0.1f, 100.0f); glulookat(0.0f, 0.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f); return (0); } static void drawgl() { glbegin(gl_triangles); glcolor3ub(255, 0, 0); glvertex3f(-1.0f, 0.0f, 0.0f); glcolor3ub(0, 255, 0); glvertex3f(0.0f, 1.0f, 0.0f); glcolor3ub(0, 0, 255); glvertex3f(1.0f, 0.0f, 0.0f); glend(); } int main(void) { initgl(); cvca

c# - Background in TreeViewItem not full width -

Image
i new wpf forms , ran across issue when trying set background in treeviewitem. <window x:class="wpf_test.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" height="350" width="525"> <window.resources> <!--styles--> <style x:key="guientity" targettype="{x:type control}"> <setter property="minwidth" value="150" /> <setter property="maxwidth" value="150" /> </style> <style targettype="treeviewitem"> <setter property="isexpanded" value="true" /> </style> <!--data sources--> <x:array x:key="booleanlistdata" type="sys:string" xmlns:sy

jQuery Mobile and Textpattern - Comment form -

i'm working textpattern commenting system using jquery mobile framework. @ moment when loading individual article page " http://www.elisabettaclaudio.com/maestro-conte " form in popup won't let me post preview. instead form works when getting article page, let's url " http://www.elisabettaclaudio.com/oh-my-blog " , go " http://www.elisabettaclaudio.com/maestro-conte " , i'm able post preview. any ideas? thanks!

c++ - GLSL glass effect plus depth peeling -

i'm working on rendering scene potentially has multiple intersecting transparent objects. makes standard method of sorting , drawing front problematic (even sorting triangles wouldn't work if triangles intersect). i've implemented depth peeling using glsl fragment shader second depth test. it's works great. now want able apply effects using shaders. 1 of objects in scene syringe, , apply glass effect. if drawing front, easy - start shader when draw syringe, since behind in frame buffer. however, when using depth peeling approach won't work. so questions are: how apply shader effects single object in scene when using depth peeling? how combine effect shaders depth peeling shader (assuming need run @ same time)? i should note i'm pretty new @ using shaders, code examples appreciated! i'd surprised if that's possible without ray tracing. far know, way use refraction shaders texture lookups in environment map. map can either precomput

maven - how to upload video to youtbue using YouTube Direct Lite App for Android -

i'm try upload video youtube without using intent in previous q using youtube data in android project ibrahim ulukaya proposed use in example https://code.google.com/p/ytd-android/ at time add project receive message " built path contains duplicate entry 'src' project "youtube direct ..." this after include google play services library project (this fix compile error exapt "error generating final archive: found duplicate file apk: resources.arsc") in form saw problem cause marven plug in add m2eclipse plugin maven-android-plugin but dont understand after red marvel introdution what marvel , project need plug in ??? currently in state can not start project because of compilation problem. someone in situation , know need resolve , start working project??? ibrahim ulukaya told me don't need whole project, can use uploadservice.java , resumableupload.java. deleted other files did not help i think maven tool, if want

javascript - Line not following x os correctly & first tick isn't being shown -

see: http://jsfiddle.net/bqhjj/ following green line, circles should vertically aligned x axis, of them moved few pixels right. the x axis isn't showing it's first tick, should 01.05.2013. my x axis settings: var xaxis = d3.svg.axis().scale(x).ticks(d3.time.days, 1).tickformat(d3.time.format("%d.%m.%y")); graph.append("svg:g") .attr("class", "x axis") .attr("transform", "translate(0," + h + ")") .call(xaxis) .selectall("text") .style("text-anchor", "end") .attr("dx", "-.8em") .attr("dy", ".15em") .attr("transform", function (d) { return "rotate(-65)" }); can tell me what's wrong? your date parsing function not correct, seems mess time zones, since new date(string) apparently assumes utc. work: var format = d3.time.f

c# - Reduce flickering By Turning off WS_CLIPCHILDREN -

i have developed windows application interface has multiple text boxes , of them placed in 1 panel (the panel have background image). whenever panel being loaded, window(with these textboxes) flickering. i read lot of suggestions minimize flickering, 1 of suggested solutions following, setstyle(controlstyles.userpaint, true); setstyle(controlstyles.allpaintinginwmpaint, true); setstyle(controlstyles.doublebuffer, true); but not work me, i read turning off ws_clipchildren using code: protected override createparams createparams { { var parms = base.createparams; parms.style &= ~0x02000000; // turn off ws_clipchildren return parms; } } this code people faced same problem. want use don't know paste it, mean, read should pasted not in form, in the usercontrol's code . don't know how that, controls used not custom controls. take here & see 1st answer: how fix flickering in user controls thanks in advance, you might con

Does Android have an accessible error log -

i (trying to) develop application plots user's track. to i'm using locationlistener keeps crashing no obvious reason. i'm reasonably sure there bad inter-action between , other aspects of application causing problem but, unfortunately, nature of app, happens when i'm out , , not tethered pc , i'm finding difficult track down. i've scattered try/catches throughout program but, far, have not trapped error. does android operating system keep sort of error log of application crashes and, if so, accessible? you can use logcat. add log.v , log.d , log.w , or log.e code , log messages show in eclipse. v verbose, d debug, w warning, , e error.

jquery - IE not receiving data when receiving json response -

am running javascript function gets data rest server , returns function. on chrome , firefox working on version of ie(why not suprised) function doesn't work...below code function gettotalcounts() { var swings = ''; var serviceurl = 'http://urldata.com/getdata'; $.ajax({ type: "get", cache: false, contenttype: "application/json; charset=utf-8", url: serviceurl, data: "{}", async: false, datatype: "json", success: function (data) { jquery.each(data.interactiveblocklist, function (i, val) { swings = new array(val.activationday, val.grassblockcount, val.grasssquaremeters, val.instagramcount, val.publictweetcount, val.swingcount); var gettotalcounts; }); grassification(swings) } }); } any idea on doing wrong? i not surprised problem come fact sending string &qu

get - 2 different answers from google -

why 2 different answers? https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=paris%20hilton&cr=countryus&lr=lang_en&hl=en : 1- http://www.parishilton.com/ 2- http://en.wikipedia.org/wiki/paris_hilton 3- https://twitter.com/parishiltonhttps://twitter.com/parishilton 4- http://www.tmz.com/person/paris-hilton/ 5- http://perezhilton.com/category/paris-hilton https://www.google.com/search?q=paris+hilton&cr=countryus&lr=lang_en&hl=en : 1- http://en.wikipedia.org/wiki/paris_hilton 2- https://twitter.com/parishilton 3- http://www.parishilton.com/ 4- http://www.tmz.com/person/paris-hilton/ 5- http://perezhilton.com/category/paris-hilton how can 2 same answer?

Return json from python -

i have simple module in drupal expecting 4 values in json python script. believe python script collecting data need fine: # information easy via xpath html ids tree = etree.html(tree) make = tree.xpath('//div[@id="makedata"]')[0] model = tree.xpath('//div[@id="modeldata"]')[0] manufacture_year = tree.xpath('//div[@id="manufactureyeardata"]')[0] engine_size = tree.xpath('//div[@id="enginesizedata"]')[0] now need return data drupal module can catch this: // execute script , store output in variable $py_output = shell_exec($cmd); // assuming output json string. $data = drupal_json_decode($py_output); i don't know python, searching around lead me try this: return json.dumps({'make': make, 'model': model, 'year': year, 'engine': engine}) that doesn't seem work. appreciated!

XSLT for XML to XML quandary -

i have been assigned new project use xslt stylesheet convert 1 xml document xml format. i have spent last 4 hours trawling through archives on stackoverflow , elsewhere online try find out how achieve desired results, nothing can find points me right direction. here's original document format: <?xml version="1.0"?> <podordersheet_main> <estimate> <customer>linfnc</customer> <jobtype>5020</jobtype> <jobparts> <jobpart> <jobpart>01</jobpart> <contactnum/> <jobnotes> <jobnote> <department>001</department> <jobpart>01</jobpart> <note><![cdata[rush order]]></note> </jobnote> </jobnotes> </jobpart>

android - SOLVED_Android: Crash start application using api google maps -

hi i'm following https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api learn use google map api. this manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dude.uniplaces" android:versioncode="1" android:versionname="1.0" > <uses-feature android:glesversion="0x00020000" android:required="true"/> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <permission android:name="com.dude.uniplaces.permission.c2d_message" android:protectionlevel="signature" /> <uses-permission android:name="com.dude.uniplaces.permission.c2d_message" /> <uses-permission android:name="com.google.android.

styles - Multiline with clause in Python -

how can spread long with clause in python on multiple lines? right now, have self.context_manager_one(some, parameters, that, are, passed) \ return_value_one, \ self.context_manager_two(self.p, slice(none), none) \ return_value_two: i follow google's python style guide , proscribes backslash line continuation.

Reading from a .txt file dynamically with Python -

i have text file populated depending on radio button selected user in php i reading same text file, whenever find new line has been added python script prints it. printing it. send out message on gsm modem based on new records in .txt file. right i'm printing make sure can identify new record. here's code i'm using. works fine. def main(): flag = 0 count = 0 while flag == 0: f = open('test.txt', 'r') open('test.txt') f: i, l in enumerate(f): pass nol = + 1 if count < nol: while count <= nol: f = open('test.txt', 'r') = f.readlines(count) if count == 0: print a[0] count = count+2 else: print a[count-1] count = count+1 if __name__ == '__main__': main() i wondering if there better wa

android - Contact name and phone number in an EditText - filtered typing -

what want have edittext, there can type name (so appears filtered list names correspond have typed far). choose contact. edittext shall display name had chosen, send message (sms) number corresponds contact chosen. here code, not complete: of course have settings in androidmanifest file.. public class sendsmsactivity extends activity { button buttonsend; edittext textphoneno; edittext textsms; string sms =""; listadapter ladapter; @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.sendsms); buttonsend = (button) findviewbyid(r.id.buttonsend); textphoneno = (edittext) findviewbyid(r.id.edittextphoneno); textphoneno.addtextchangedlistener(new textwatcher() { @override public void ontextchanged(charsequence s, int start, int before, int count) { // todo auto-generated method stub string srchname = textphoneno.gettext().tostring();

Call ruby script from another user not using rvm -

when need run script linux user "user1", following commands (right after login "user1"): rvm use 1.9.3 cd /var/proj ruby main.rb when developing script, have created bundle bundle install , reading gemfile (containing httparty , other stuff). this working fine (no reason not work :) ) when log user "user2", i'd execute script cannot have working: cd /var/proj /home/user1/.rvm/rubies/ruby-1.9.3-p327/bin/ruby main.rb the error get: /home/user1/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- httparty (loaderror) /home/user1/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' main.rb:3:in `<main>' it seems cannot see bundle created other user. idea of needs changed ? i'd run script within supervisor same thing. it not recommended can use rvm other a/c . set rvm required path in user a/c.

vb.net - Objects within Arrays, and changing their properties -

this program seat booking system , having problems when checking availability of each seat. when form loads, array created , stores seat names in. each seat check box displayed button. sql statement runs , finds records null customer id field, seat id of seat , show date of friday. if number of records returned = 1, color of check box button turn green, else turn red. the code check availability works perfectly, i'm not sure how change colour of checkbox in position of array change. believe because array holding strings, not objects. have done lot of research on , cannot seem find solution. what need name of seat (a1,a2, etc.) stored in array can used in sql statement, way change color of seat. there 197 seats in total, why going need array. i appreciate solution problem , provide information below including screenshot of database table, screenshot of form design , code. database table: http://gyazo.com/0cf669a1c2144b7174066bdbbd29d3a3 form design: http://gyazo.com/

c++ - How to run below codes inside the Student.cpp through a class? -

// main.cpp #include <iostream> #include <vector> #include <string> #include "student.h" using namespace std; void fillvector(vector<student>&); void printvector(const vector<student>&); int main() { vector<student> myclass; fillvector(myclass); printvector(myclass); return 0; } void fillvector(vector<student>& newmyclass) { string name; char grade; cout << "how many students in class? "; int classsize; cin >> classsize; (int i=0; i<classsize; i++) { cout<<"enter student name: "; cin>>name; cout<<"enter student grade: "; cin>>grade; student newstudent(name, grade); newmyclass.push_back(newstudent); cout<<endl; } cout<<endl; } void printvector(const vector<student>& newmyclass) { int size = newmyclass.size();

android - Can't Find nullpointer please assist -

this class gain null pointer points line 65. public class searchlist extends listactivity { @override protected void oncreate(bundle savedinstancestate) { // todo auto-generated method stub super.oncreate(savedinstancestate); new loadsomestuff().execute(); } public class loadsomestuff extends asynctask<string, integer, string[]> { progressdialog dialog; protected void onpreexecute() { dialog = new progressdialog(searchlist.this); dialog.setprogressstyle(progressdialog.style_spinner); dialog.setmax(100); dialog.show(); } @override protected string[] doinbackground(string... arg0) { // todo auto-generated method stub for(int =0; i<20; i++) { publishprogress(5); try { thread.sleep(80); } catch(interruptedexception e) { e.printstacktrace(); } } dialog.dismiss(); int loops = search_page.ret

Highslide gallery thumbnails issue -

i in process of updating website, uses highslide , thumbnail strip on bottom. old website works ilke charm new 1 fails. on test website (newer layout) thumbnail strip shows last picture 5 times. page on original website page issue the problem on every detail page, not visible on 1 page. referenced libraries identical on both servers. hope can point me in right direction. first step, run new page through validator. have unclosed <a href> , , unclosed <div> sections, , think may throwing things loop. validation of page - click here

linux - Apache Test page showed up out from nowhere -

i've been working on web page while on centos 6.3 server fine, page accessible etc. screwing around trying pchart working, didnt except adding new folder in /var/www/html; tried installing gd, dont think worked. everytime go web-page url apache test page. it giving me dont have permissions access / on server help please /var/www directory owned user "apache" , group "apache", case had changed reason

sql - DMBS: Union, intersection and difference with PhpMyAdmin and MySql opninons -

i'm learning sql , friend adviced me instal xampp it's preconfigured , ready use. well, installed , created 2 databases on exercise through phpmyadmin. said, i'm trying 2 things: a)sets operationsunion, intersect, difference. available in phpmyadmin (and therefore mysql guess, since noticed phpmyadmin based on mysql) union. intersect , difference keywords not exist. how then? b)using directly mysql.exe console. try use commands use databasename , on, says "access denied user ''@'localhost 'databasename' i tried put connect commands in flavours possible (connect user pass host db, connect user pass db, , kind of combinations) no avail. how that? seems phpmyadmin set own passwords databases. put empty password , checked in phpmyadmin password empty passwords. doing wrong? union keyword work fine on phpmyadmin. phpmyadmin interface mysql. try use "sql" view in phpmyadmin directly test sql queries. if comes mysql.exe, tr