Posts

Showing posts from March, 2012

mysql - How can I prevent SQL injection in PHP? -

if user input inserted without modification sql query, application becomes vulnerable sql injection , in following example: $unsafe_variable = $_post['user_input']; mysql_query("insert `table` (`column`) values ('$unsafe_variable')"); that's because user can input value'); drop table table;-- , , query becomes: insert `table` (`column`) values('value'); drop table table;--') what can done prevent happening? use prepared statements , parameterized queries. these sql statements sent , parsed database server separately parameters. way impossible attacker inject malicious sql. you have 2 options achieve this: using pdo (for supported database driver): $stmt = $pdo->prepare('select * employees name = :name'); $stmt->execute(array('name' => $name)); foreach ($stmt $row) { // $row } using mysqli (for mysql): $stmt = $dbconnection->prepare('select * employees name = ?');

java - Rdf and Taxonomie -

Image
i want display result of program tree. need hand finish work , thank in advance. the program works jdk 8 , version 3 jena. here code: private void jbutton4actionperformed(java.awt.event.actionevent evt) {//gen-first:event_jbutton4actionperformed jtextarea1.settext(""); model model = modelfactory.createdefaultmodel(); inputstream in = filemanager.get().open("c:/users/samsung/desktop/wicm2/projet/opus_august2007.rdf"); model m = model.read(in,null); nodeiterator nit = m.listobjects(); list<string> lclass = new arraylist<>(); map<string,list<string>> map = new hashmap<>(); stmtiterator si = m.liststatements(); while(si.hasnext()){ statement statement = si.next(); if(statement.getpredicate().getlocalname().equalsignorecase("subclassof")){ string mere = statement.getobject().tostring();

ruby - Comand Rails server -

i tried command rails server , error /usr/local/bin/rails:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/railties-4.2.6/bin/rails (loaderror) /usr/local/bin/rails:23:in `<main>' try these commands: gem update --system bundle install rails server or one-liner: gem update --system; bundle install; rails server

google play - Android "The publisher cannot purchase the item" -

i'm not testing in app purchase ! i have download app google play store , still can't buy of in app purchase within application. i have following error : "the publisher cannot purchase item". all in app purchase valid , active. i'm using same google account in google play developer console. i have read on google it's normal developer can't buy it's own items in testing mode (alpha or beta) here i'm using official version , still can't !! (it's first android application) what did wrong ? thanks, if have same account configured on device (the 1 using developer console) make sure removed. google play allow switching between google accounts added on device. also, before removing try switching directly in google play first account not developer account , purchase. if doesn't work you'll need remove developer account device if want make purchase fro own app.

Implement CCS for Android push messaging on Google App Engine using python -

i trying implement ccs server side of android application on google app engine. code works fine when hosted on local computer , able send push messages device. when deploy same on gae, throws following errors 2013-08-18 06:54:55.950 / 500 11ms 0kb mozilla/5.0 (macintosh; intel mac os x 10_7_5) applewebkit/537.36 (khtml, gecko) chrome/28.0.1500.95 safari/537.36 106.197.45.136 - - [18/aug/2013:06:54:55 -0700] "get / http/1.1" 500 0 - "mozilla/5.0 (macintosh; intel mac os x 10_7_5) applewebkit/537.36 (khtml, gecko) chrome/28.0.1500.95 safari/537.36" "mad-push.appspot.com" ms=12 cpu_ms=21 app_engine_release=1.8.3 instance=00c61b117c247a73c2df78d7e42f9a5653723e54 e 2013-08-18 06:54:55.941 invalid debugflag given: socket e 2013-08-18 06:54:55.942 debug: e 2013-08-18 06:54:55.943 debug: debug created /base/data/home/apps/s~mad-push/1.369591069415732344/xmpp/client.py e 2013-08-18 06:54:55.943 debug: flags defined: socket e 2013-08-18 06:54:55.944 debug: s

typescript - Hovered mini profile in Angular 2 -

i have list of users. when move mouse on each user, want show mini profile. @directive({ selector: '[mini-profile-directive]', host: { '(mouseenter)': 'onmouseenter($event)' } }) export class miniprofiledirective { private mouseenter = new eventemitter(); onmouseenter($event) {} } when use, use this: <div *ngfor="let user of users" mini-profile-directive><div> however, want show something, directive cannot show something. so create component. @component({ selector: '[mini-profile-component]', host: { '(mouseenter)': 'onmouseenter($event)' }, template: `` }) export class miniprofilecomponent { private mouseenter = new eventemitter(); onmouseenter($event) { // here won't run! } } then use this, wrong. <div *ngfor="let user of users" mini-profile-component></div> a way comes mind having both miniprofiledirective , miniprofilecompo

php - Notice: Undefined offset & Trying to get property of non-object -

i trying pull data json_decode array, have done before time getting issues. this json looks like. { "achievementpercentages": { "achievements": [ { "name": "tf_scout_long_distance_runner", "percent": 54.668815612792969 }, { "name": "tf_heavy_damage_taken", "percent": 47.104038238525391 }, { "name": "tf_get_consecutivekills_nodeaths", "percent": 44.668777465820312 }, { "name": "tf_pyro_camp_position", "percent": 36.480117797851563 }, { "name": "tf_kill_nemesis", "percent": 34.392494201660156 }, { "name": "tf_burn_playersinminimumtime", "percent": 33.5

excel - Simple VBA Script Error -

i'm still pretty new vba (learning work, coming js background) , need little this. goal is: loop through each worksheet (except "summary" sheet, although i'm not sure how exclude loop) in workbook , copy a2 in each sheet, last cell containing value in column l of each sheet, , paste next each other in columns , b on "summary sheet", respectively. i'm not expert vba syntax means, if has way refactor (i know don't need .select methods), appreciate it. right i'm getting "invalid or unqualified reference" error on line 28. goal learn, if have input appreciate short explanation of logic. thanks. sub macro7() ' ' macro7 macro ' ' keyboard shortcut: ctrl+c dim ws worksheet dim lastrow integer dim summaryrow integer summaryrow = 1 each ws in activeworkbook.worksheets 'copy item nu

java - Using undertow handler chaining, how do I catch exceptions in an http request that was dispatched to a worker thread? -

i'm using undertow security framework handle http request. details on can seen here : http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#security . my handler chain uses error handler first try catch block designed catch errors during handling of http request. worked prior implementing undertow security handlers. public void handlerequest(httpserverexchange exchange) throws exception { try { next.handlerequest(exchange); } catch ( exception e ) { //code } it hit error handler first, go through security handlers dispatch request. reaches mylogichandler throw exception based on null parameter. any exception thrown caught try/catch seen here : https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/connectors.java#l199 this throws 500 error, not want. purpose of errorhandler let me set response code based on types of errors. is there way errorhandler catch exceptions in requests dispatched xnio

javascript - Message passing between content scripts and background page -

i have injected content scripts frames. sent request background , receive response content scripts (frames have been injected). currently can receive 1 response, how receive responses content scripts? content script: chrome.runtime.onmessage.addlistener( function(request, sender, sendresponse) { if (request.bgreq == "windowinfo") alert("bgreq received : "+ window.location.host); }); background script: chrome.runtime.onmessage.addlistener(function(sentwords) { if (sentwords.words == "injection") { //send request content scritps chrome.tabs.query({active: true, currentwindow: true}, function(tabs) { chrome.tabs.sendmessage(tabs[0].id, {bgreq:"windowinfo"}); }); } }); you need explicitly send tabs in windows : chrome.windows.getall({},function(windows){ for( var win in windows ){ chrome.tabs.getallinwindow(win.id, function(tabs) { (var in tabs) {

simulated annealing - How does Matlab's simulannealbnd enforce bound constraints? -

i'm using simulannealbnd function of matlab finding minimum of function using simulated annealing. arguments 1 can pass lower , upper bounds of variables. in documentation described how simulated annealing works there nothing how bound constraints enforced. does know (or can imagine) how done in case?

google spreadsheet - Why do I have to also SELECT an aggregate column to be able to use GROUP BY, if the only SELECTed column is already in GROUP BY? -

in data used formula below, column c contains list of product titles (these not unique, , many blank); column q contains category each product, , column f contains product's sales. if possible, i'd avoid posting actual data (as belongs employer), can mock bogus rows in identical format if it's deemed necessary. what want produce list of non-blank product titles in category highest aggregate sales, sorted in descending order, limited 25 entries. the following formula seems me legitimate: =query('raw data'!a:q, "select c q = 'foo' , c != '' group c order sum(f) desc limit 25", 1) but isn't. error "cannot_group_without_agg". i've found make work, need select sum(f) well, so: =query('raw data'!a:q, "select c, sum(f) q = 'foo' , c != '' group c order sum(f) desc limit 25", 1) first of all, why this? documentation (found here ) states "if use group clause, every column liste

php - Laravel5: Receiving empty result for select on second database -

i'll try create small application in laravel5 , have 2 databases. i did set second connection in config/databases.php file , specified protected $connection = 'blog' in category model. i try select categories $categories = category::all(); in query log blog connection, i'll receive empty set while table holding 6 datasets. can't find reason, why doesn't return them. // model class category extends model { protected $connection = 'blog'; protected $visible = ['id', 'name']; } // controller class categorycontroller extends controller { public function list() { db::connection('blog')->enablequerylog(); $categories = category::all(); // $categories = db::connection('blog')->table('categories')->select('*')->get(); log::info(db::connection('blog')->getquerylog()); return view('category.list')->with(compact(

sql - SSRS Select All Causes URL to Exceed Max Length -

i have 250 items ids 6-7 characters long. have them organized 3 classes 8 sub classes in each class. when using report, users have ability use cascading drop down lists filter list of items. however, when report loads, users want items visible. the report parameters being passed via url web service retrieve data me. i have set items report parameter multiselect, have manually added value "all" default parameter , have included "all" option in list of resources using following query: select 'all' itemid union select itemid itemid (select distinct itemid itemmaster (itemsubclass in (@itemsubclass)) , itemclass in (@itemclass)) order itemid) derivedtbl_1 when program logic detects 'all' parameter items not filter items , sends full list report. there few problems have set up the 'all' selection appears buried in list of items. i.e. (select all) first, followed numerical items, followed 'all', followed a

javascript - What's the difference between Loopback's operation hooks vs events? -

loopback seems have overlapping concepts when handling points of time in model's lifecycle: https://docs.strongloop.com/display/public/lb/operation+hooks applied through model.observe vs https://docs.strongloop.com/display/public/lb/events#events-modelevents applied through model.on both seem have similar ways of handling crud events. what's difference between these 2 types of event systems? , when should use 1 on another? update : apparently overlapping model events have been deprecated in loopback v3, operation hooks should used: https://github.com/strongloop/loopback-datasource-juggler/blob/master/3.0-release-notes.md#remove-deprecated-model-hooks-and-model-events there's a number of differences. here's couple worth noting: operation hooks can invoke callback before or after events. example beforesave/aftersave operation hooks vs changed event invokes callback after change in model there events in model's lifecycle operation h

Q. Add Contact to Android Phone Book Via Tasker By running JAVA code at RuntTime -

Image
first of , sorry english. i tasker user. problem: want insert / create, new contact in android phone book. there no plugin has been created 1 such purbes. the method has run in background / there no autoinputs via sumealtion user input on screen. recently tasker support java @ runtime. tasker allows advanced user directly call java functions , work java objects themselves. it not allow 'write java code' ... combination of tasker's logic , flow control direct access android api sufficient automation purposes. source : http://tasker.dinglisch.net/userguide/en/java.html so @ point , kindly asking dev me line small source code in order test in tasker app insert new contact via java. i trid scenario dos not work.

How do I upload files to Google Cloud Storage in Objective-C/iOS? -

i've been looking documentation on how upload files 'bucket' in google cloud storage ios app, can't find @ on subject. no documentations, no tutorials, no example projects. blind? trying find way app-users upload file "public bucket", , url in return. can find chunks of http-protocols or json etc, , have no idea how use that, there's no reference either. feels author of documentations expects me know already. i've found osx-example codes, without documentation, , i've been trying read code have provided, no luck. what i'm looking this: (this code made up. it's want. noticed google used prefix gtl* classes) nsdata *datatoupload = ... ; //or uiimage or movie-format or whatever nsurl *destination; gtlstorageuploader *uploader = [gtlstorageuploader alloc]initwithbucket:@"mybucket" withhashorkeyorsomething:@"a1b2c3hashkeyorwhatever"]; destination = [uploader uploaddata:datatoupload];//inbackground etc.. it's ea

input - Java: How to disable JSpinner beeping -

when invalid input entered jspinner, beep played, , can't figure out how disable it. i'm using number spinner invalid input not being allowed typed in, so: public class spinnertester { public static void main(string[] args) { jspinner spinner = new jspinner(new spinnernumbermodel(1, 0, 100, 1)); //disable invalid input being typed spinner jformattedtextfield textfield = ((jspinner.numbereditor) spinner.geteditor()).gettextfield(); ((numberformatter) textfield.getformatter()).setallowsinvalid(false); jframe frame = new jframe(); frame.setdefaultcloseoperation(windowconstants.exit_on_close); frame.add(spinner); frame.setvisible(true); frame.pack(); } } i not know if there better way, 1 way make custom , feel disables beeping altogether. achieves desired effect, disables beeping entire program, not spinner. public class spinnertester { public static void main(string[] args

linux - What is the significance of "error: symbol lookup error: undefined symbol:" when loading libglib in debug mode? -

the following command succeeds without errors: python3 -c 'from gi.repository import glib' . however, when debugging glib-related segmentation faults, ran same command ld_debug=files (on multiple versions of debian , ubuntu) , bunch of errors related libglib , libgobject. these unmodified libraries directly repositories (see "environment" below details). question: significance of these errors? can safely ignored, , if so, why? or can contribute errors later on in program, , if so, there workaround fix this, or packages broken , must fixed modifying source? an example of errors: 16306: opening file=/lib/x86_64-linux-gnu/libglib-2.0.so.0 [0]; direct_opencount=1 16306: 16306: /lib/x86_64-linux-gnu/libglib-2.0.so.0: error: symbol lookup error: undefined symbol: g_module_check_init (fatal) 16306: /lib/x86_64-linux-gnu/libglib-2.0.so.0: error: symbol lookup error: undefined symbol: g_module_unload (fatal) environment tested on 5 different computers

java - How to validate when RadioButton is selected? -

i'm trying validate when select radiobutton inside jsp form , make selection refresh page content want. i'm planning use these radiobuttons way of selecting categories. this form code: <form name="login" action="procesaradd.do"> <br> <b>categoria</b> <br> <input type="radio" name="g1" value="per" checked="checked" />perfume <input type="radio" name="g1" value="joy" />joyas <input type="radio" name="g1" value="car" />bolso carteras <table border="1"> <tbody> <tr> <td>id producto</td> <td><input type="text" name="id" value="" /></td> </tr> <tr> <td>nom

qml - Can't get QtQuick AnimatedImage gif file to show in release version but works in debug -

Image
i trying deploy application uses pic.gif animatedimage. code works debug not release. i have qml files , main.cpp in folder called demo. have pictures in subfolder called images. have added qml , pic files resources error when executing release version qtcreator: qml animatedimage: error reading animated image file qrc:///images/bear_claw.gif. here qml.qrc: <qresource prefix="/"> <file>demo.qml</file> <file>animatedengine.qml</file> <file>images/bear_claw.gif</file> </qresource> here animatedengine.qml: ` import qtquick 2.1 rectangle { color: backgroundcolor focus: activefocus animatedimage { id: sprite anchors.centerin: parent source: "images/bear_claw.gif" } } i know novice issue , have tried many of recommended fixes found here , in other places adding alias in .qrc file , changing source have qrc:///, images/images/pic.gif etc none of reco

Read multiples files in R allocated in different directories but with the same name -

i trying solve little problem in r reading multiples files same name allocated in different directories. i have 100 files named r04 , extension .xlsx , allocated in 100 different directories, this: file 1: c:\general data\month1\r04.xlsx file 2: c:\general data\month2\r04.xlsx . . . file 100: c:\general data\month2\r04.xlsx my problem can't read these files. maybe possible read for , , due same name in 100 files don't know if possible name each 1 number related month, example in case of first file name should 01 due month 1, etc. i use list.files list files pattern. regular expression name files. for example: library(xlconnect) files.path <- list.files(pattern=".*r04.xlsx",full.names=true) setnames(lapply(files.path, function(x) read.xlsx(x,1)), gsub('.*/(.*)/r04.*','\\1_r04',files.path)) using data show how using gsub here: ll <- c("c:/general data/month1/r04.xlsx", "c

HTML AngularJs CSS Form submit -

i'm having problem when submit form. so.. fill data on formulary click save... data correctly saved, after submit, fields cleaned , inputs receive css because form submitted. don't keep formulary 'submitted' when correctly saved. my code going bellow. html code <form name="citizenform" ng-submit="citizensctrl.createcitizen(citizenform)" class="css-form" novalidate> <div class="form-group"> <label for="citizen_name">nome *</label> <input type="text" class="form-control" id="citizen_name" placeholder="nome" ng-model="citizensctrl.citizen.name" required> <div class="form-group"> <label for="citizen_birthday">nascimento *</label> <uib-datepicker ng-model="citizensctrl.citizen.birthday" class="well well-sm" datepicker-options="citizensctrl.dateo

c++ - MPI BMP Image comparison more efficient -

i made simple program in compare 2 images pixel pixel , determine if pictures same. i'm trying adapt mpi, i'm afraid communications taking long making way more inefficient sequential counterpart. have tried images of big resolution , result same: sequential code more efficient parallel code. there's way of making more efficient? sequential code: #include <stdio.h> #include <stdlib.h> #include <time.h> unsigned char* bmp(char* filename,int* sizes) { int i; file* f = fopen(filename, "rb"); unsigned char info[54]; fread(info, sizeof(unsigned char), 54, f); int ancho = *(int*)&info[18]; int alto = *(int*)&info[22]; int size = 3 * ancho * alto; *sizes = size; unsigned char* data = new unsigned char[size]; fread(data, sizeof(unsigned char), size, f); fclose(f); for(i = 0; < size; += 3) { unsig

youtube api - Where to generate OAuth 2.0 Secret Key for iOS? -

Image
where generate oauth 2.0 secret key ios application? here console screenshots: do miss something? know can generate oauth 2.0 secret key web oauth 2.0, not sure whether can used ios app. you not need oauth secret key ios app, can make auth of users client id only, please see https://developers.google.com/apps-script/guides/rest/quickstart/ios#step_1_turn_on_the_api_name on section this. step 1: turn on google apps script execution api hope helps you.

ios - Getting Active View in TabBarController -

i attempting active view controller in tabbarcontroller given user has selected tab. however, calling: override func viewdidload() { super.viewdidload() print(string(self.tabbarcontroller?.selectedviewcontroller?.title)) } is nil. how can note active view in tab?

backbone.js - Correct URLs in multipage app -

i have multiple page backbone app based off of example: https://github.com/asciidisco/grunt-requirejs/tree/master/examples/multipage-shim , working fine base url. problem comes when navigate page no longer @ root of domain. the directory structure looks this: scripts ├── app │   ├── controller │   │   ├── base.js │   │   ├── c1.js │   │   └── c2.js │   ├── lib.js │   ├── main1.js │   ├── main2.js │   ├── model │   │   ├── base.js │   │   ├── m1.js │   │   └── m2.js ├── common.js ├── page1.js └── page2.js so, e.g. if navigate http://localhost/ , loads correctly following script tag: <script data-main="/scripts/page1" src="/path/to/require.js"> (this loads page1, in turn loads common.js , main1.js). however, if navigate http://localhost/another/url/ , same script tag loads page1.js , common.js, when tries load main1.js, 404, because loading relative url (trying load http://localhost/another/url/scripts/app/main

python - How to use scapy "sendpfast" on windows? -

env:windows 7 python 2.6.6 e:\>pip list deprecation: python 2.6 no longer supported python core team, please dnet (1.12) gnuplot-py (1.8) numpy (1.3.0) pcap (1.1-scapy-20090720) pcapy (0.10.10) pip (8.0.2) pycrypto (2.1.0) pyreadline (1.5) pyx (0.12.1) scapy (2.2.0) setuptools (21.2.1) using pip version 8.0.2, version 8.1.2 available. i want simulate syn flood , icmp flood,just specify 1500-2000 packets per second >>> sendpfast(icmp,pps=2000) error: while trying exec [tcpreplay]: [error 2] it seems must install tcpreplay ,but tcpreplay used on linux/os x, there method sendpfast called on windows?

python - Can one function have multiple names? -

i'm developing bot on python (2.7, 3.4). defined 30+ dynamic functions used based on bot commands. while development, since not functions done, have define them empty functions (if not define code won't run) this: def c_about(): return def c_events(): return def c_currentlocation(): return etc. many dummy functions. question: it somehow possible in python define same function multiple names? this: def c_about(), c_events(), c_currentlocation(): return functions not intern (i.e., automatically share multiple references same immutable object), can share same name: >>> def a(): pass ... >>> <function @ 0x101c892a8> >>> def b(): pass ... >>> b <function b @ 0x101c89320> >>> c=a >>> c <function @ 0x101c892a8> # note physical address same 'a' so can do: >>> c=d=e=f=g=a >>> e <function @ 0x101c892a8> for case of functions not yet

html - Header 'div' not aligned exactly to the top of screen (Simple but frustrating) -

i adding header navbar html page.but problem not aligned top.there small gap between browser , navbar.i found solution setting margin:0;,but issue have work if code selecting whole div... like *{ margin:0;} why ? i found solution in stackoverflow question cant comment , ask because have low repuation.he stating because of sass.but how code becoming sass because using normal simple procedure css coding. linked soultion question.(please check comments in correct selected question) header not touching top of screen my code : <html> <head> <style> * { margin:0; } .new { width:100%; background-color: blue; } </style> </head> <body> <div class="new">new website</div> </body> </html> some browser have set user agent stylesheet @ "body" tag for chrome: body have margin: 8; on body tag, small gap between navbar. you

excel - How to tell if a cell exists on another Google Sheet -

i have 12 sheets in 1 google sheets document labeled each month (january - december). on each sheet column contains project number, e.g. "6091". i'm trying find function check of other sheets see if there duplicate cells in "project number" column of other sheets. so: "do of cells in column a, match of cells in column on other sheets". is there quick way this? the formula =arrayformula(iferror(match(a2:a, anothersheet!a2:a, 0))) checks each value in a2:a of present sheet being in a2:a of anothersheet. if it's there, returns position in anothersheet, otherwise output empty (the error #n/a suppressed iferror ). you can use above each of sheets separately. alternatively, if not interested in positions , want know entries a2:a found elsewhere, add results each sheet: =arrayformula(iferror(match(a2:a, anothersheet!a2:a, 0)) + iferror(match(a2:a, thirdsheet!a2:a, 0))) the output 0 there no match, , nonzero number if there is.

youtube - How to get runtimepermission in Android 6.0 -

i using method youtubeintents.createuploadintent , getting exception below, java.lang.runtimeexception: unable start activity componentinfo{com.google.android.youtube/com.google.android.apps.youtube.app.honeycomb.shell$uploadactivity}: java.lang.securityexception: uid 10075 not have permission uri 0 @ content://media/external/video/media/7757 this exception means youtube application not have permission read_external_storage。 how handle exception? you can use following class permission in runtime in marshmallow import android.manifest; import android.app.activity; import android.content.pm.packagemanager; import android.support.v4.app.activitycompat; import android.support.v4.content.contextcompat; import android.widget.toast; public class marshmallowpermission { public static final int record_permission_request_code = 1; public static final int external_storage_permission_request_code = 2; public static final int camera_permission_request_

python - Remove the outline of an oval in Tkinter? -

Image
by default, circle draw on canvas has black outline. i'm trying not use color, somehow make outline disappear. import tkinter class draw: def __init__(self): self._root_window = tkinter.tk() self._canvas = tkinter.canvas(master = self._root_window, width = 500, height = 500, background = '#1e824c') self._canvas.pack() self._canvas.create_oval(100,100,250,250, fill = 'white') self._root_window.mainloop if __name__ == '__main__': draw() add outline="" parameter create_oval method. then can create oval link that: self._canvas.create_oval(100,100,250,250, fill = 'white', outline="")

xml - xsl:for-each test a wildcard element -

i trying loop through xml until find element contains string of text. take simple xml example. <document> <item> <thing1>fee</thing1> <thing2>fi</thing2> <thing3>fo</thing3> <some blah="thingy">fum</some> <another>i smell</another> <other>someone</other> </item> </document> i want able search through element/s contains "thing", have seen done before attribute so... <xsl:for-each test="contains(@blah,'thingy')"></xsl:for-each> but want search "thing1, thing2, thing3" , obtain <xsl:value-of select"." /> fee, fi, , fo. need exclude other elements aren't going contain string "thing" try: <xsl:for-each select="*[contains(name(), 'thing')]"> or, better fit given example: <xsl:for-each select="*[starts-with(name(), 'thing&#

Routing error in laravel -

Image
i'm trying build web app in laravel 5.2 on windows platform wamp server installation. i'm trying call dashboard page following routes: route::get('nitsadmin/dashboard', function () { return view('nitsadmin.dashboard'); }); following route list: where file structure below: my virtual host configuration in httd-vhosts.conf file: <virtualhost *:80> documentroot "c:\wamp\www\nitsedit\public" servername nitseditor.dev </virtualhost> apache alias: alias /nitseditor.dev "c:/wamp/www/nitsedit/public" <directory "c:/wamp/www/nitsedit/public"> options indexes followsymlinks multiviews allowoverride order allow,deny allow </directory> don't know i'm getting problem i'm getting following error: you have wrong web server configuration, point web server public directory in lararel project root , restart web server.