Posts

Showing posts from March, 2012

SQL Server: how to generate comma separated string for distinct values in aggregated columns in group by statement -

Image
this question has answer here: how use group concatenate strings in sql server? 16 answers i generate comma separated string distinct occurrences aggregated column in group statement. have: select column1, ???statement involving column2??? mytable group column1 i can't figure out put between questions marks. assuming have got following tables: use tsql2012 if object_id('teststackoverflow') not null drop table teststackoverflow create table teststackoverflow( column1 varchar(100) not null, column2 varchar(100) not null, constraint pk2 primary key(column1,column2) ) insert teststackoverflow(column1,column2) values ('value1','t1'), ('value1','t2'), ('value1','t3'), ('value2','t5'), ('value2','t6'), ('v...

ruby on rails - redirect_to not working with ajax -

i have created ajax form in bootstrap modal creates new post database. form is: <%= form_for @post, remote:true, :html => {:id => "share-needs-form"} |f| %> <div class="modal-body"> <div id="shareneedsmodalfirststep"> <div class="row" style="margin-bottom: 10px"> <ul class="error-alert hidden share-needs-form-errors col-lg-10 col-centered" id="share-needs-error-alerts"></ul> </div> <div class="row"style="margin-bottom: 10px;"> <div class="col-lg-10 col-centered"> <%= f.text_field(:title, :class => "form-control", :placeholder => "add title e.g need designer, in return can code you", :id => "title") %> </div> </div> <div class="row" style="margin-bottom: 10px;"> ...

python - need to access a manytomanyfield in django templates -

so have these models: class cofifiuser(models.model): user = models.onetoonefield(user) class quoteidea(models.model): creator = models.foreignkey(cofifiuser,related_name="creator") text = models.textfield(max_length=250) votes = models.charfield(max_length=100,default="0") votes_received = models.manytomanyfield(cofifiuser) created_at = models.datetimefield(auto_now_add=true) and want: if request.user.username in item.votes_received.all <button class="disabled">button</button> else <button class="btn btn-primary">button</button> is same thing button on facebook . cannot give more 1 page ( in python/django ) please need here :) something that's important keep in mind here performance implication of having query many-to-many relationship each comparison, or pre-loading of m2m data see if user in votes_received queryset. in case this, opt de-normalized way boolean comparison. cr...

How to make Python refuse negative index values? -

basically working on script want neighbouring values 2d list. implementing simple version, take index , add , subtract 1 in directions , catch out of range indexing try except . try: keys.append(keyboard[index[0]][index[1]-1]) except indexerror: pass try: keys.append(keyboard[index[0]][index[1]+1]) except indexerror: pass try: keys.append(keyboard[index[0]-1][index[1]-1]) keys.append(keyboard[index[0]-1][index[1]]) keys.append(keyboard[index[0]-1][index[1]+1]) except indexerror: pass try: keys.append(keyboard[index[0]+1][index[1]-1]) keys.append(keyboard[index[0]+1][index[1]]) keys.append(keyboard[index[0]+1][index[1]+1]) except indexerror: pass but of course, when ran wasn't catching exceptions when subtracting 1 0, indexing last element of list instead. i test 0 values, means i'm using 2 different tests determine what's valid index, , using if statements way feel messier (as i'd have nesting in case). plus fee...

java - Run scheduled tasks chain -

i need run scheduled tasks 1 one different delays after previous task being executed. example. there tasks list , delays list. torun = {task1, task2, ..., taskn} delays = {100, 9, 22, ..., 1000} now need run task1 throgh 100ms, task2 after task1 through 9ms, task3 after task2 through 22ms , on. i using javafx. task can use ui update methods, changing nodes positions. forces me use platform.runlater() method, because if don't, have exception "not on fx application thread". know method runs runnable object after undefined amount of time. , depending of how time can vary have 2 ways. 2.1 continue use platform.runlater() method if call time < 1-2ms. 2.2 find solution, don't have yet. shortly actual task. record user actions mouse move, mouse click, , application events. after need replay actions. go through every action using scheduledexecutorservice.schedule() , , inside of every action task put next task scheduler. , goes wrong every time, or n...

How to send a newsletter with mailjet's Rest Java API? -

i see in v3 reference in mailjet's site http://dev.mailjet.com/email-api/v3/newsletter-send/ there following example: curl -s -x post \ --user "$mj_apikey_public:$mj_apikey_private" \ https://api.mailjet.com/v3/rest/newsletter/:id/send but can't find in code example how should done mailjet java api https://github.com/mailjet/mailjet-apiv3-java ? according response of mailjet's support java wrapper not completed , majority of rest api still don't cover. if going use mailjet-apiv3-java library should ready implement rest commands.

sql server - EF6 - Generating unneeded nested queries -

i have following tables: main_tbl: col1 | col2 | col3 ------------------ | b | c d | e | f and: ref_tbl: ref1 | ref2 | ref3 ------------------ | g1 | foo d | g1 | bar q | g2 | xyz i wish write following sql query: select m.col1 main_tbl m left join ref_tbl r on r.ref1 = m.col1 , r.ref2 = 'g1' m.col3 = 'c' i wrote following linq query: from main in dbcontext.main_tbl join refr in dbcontext.ref_tbl on "g1" equals refr.ref2 refrlookup refr in refrlookup.defaultifempty() main.col1 == refr.col1 select main.col1 and generated sql was: select [main_tbl].[col1] (select [main_tbl].[col1] [col1], [main_tbl].[col2] [col2], [main_tbl].[col3] [col3] [main_tbl]) [extent1] inner join (select [ref_tbl].[ref1] [ref1], [ref_tbl].[ref2] [ref2], [ref_tbl].[ref3] [ref3] [ref_tbl]) [extent2] on [extent1].[col1] = [extent2].[ref1] ('g1' = [extent2].[...

loops - How to restart a program in python? -

im student, , started learning python month back, right now, have learnt basics. teacher had given me qeustion this, , problem is, dont know how rerun program, suppose, after finding area of particular shape, want loop printing first statement. there way of doing without rerunning program using "f5" key? thankyou. print "1. triangle" print "2. circle" print "3. rectangle" shape= input("please select serial number =") if shape==1: a=input("base =") b=input("height =") area=0.5*a*b print area if shape==2: a=input("radius =") area=3.14*a*a print area if shape==3: a=input("width") b=input("length") area=a*b print area if want restart, use simple while loop. while true: # lovely code then put validation @ end: again = raw_input("play again? ") if again.startswith('n') or again.s...

javascript - angularjs ng-controller doesn't work -

i'm trying work angularjs, , "ng-controller" doesn't work. <!doctype html> <html> <head> <script type="text/javascript" src="lib/angular.js"></script> </head> <body ng-app> <h1>add user</h1> <form action="adduser" method="post"> <input type="text" name="pseudo" placeholder="pseudo"> <input type="password" name="password" placeholder="password"> <input type="submit" value="envoyer"> </form> {{1 + 2}} <div ng-controller="mycontroller"> {{ name }} </div> <a href="./remove">supression</a> <script type="text/javascript"> function mycontroller($scope){ alert("test"); $scope.name = 't...

html - Using nth-last-child() to hide last pages of will-paginate not working -

i wanted hide last pages of paginate instead of this: prev | 1 2 .. 5 6 7 .. 30 31 | next it this: prev | 1 2 .. 5 6 7 .. | next the html code generated will-paginate follows <ul class="pagination pagination"> <li class="prev"> <a rel="prev" href="/videos?page=5">← previous</a> </li> <li> <a rel="start" href="/videos?page=1">1</a> </li> <li> <a href="/videos?page=2">2</a> </li> <li class="disabled"> <span>…</span> </li> <li> <a rel="prev" href="/videos?page=5">5</a> </li> <li class="active"> <span>6</span> </li> <li> <a rel="next" href="/videos?page=7">7</a> </li> <li class="dis...

Unable to start RCP Eclipse 4.4.2 application with Java 1.8 on Linux x86_64 -

we have rcp eclipse plugin based ui console developed in eclipse 3.7.2 java 1.7. porting eclipse 4.4.2 java 1.8. unable start rcp eclipse 4.4.2 application java 1.8 on linux x86_64. when try launch application, application crashes after display of splash screen pop-up saying log created. please find below snippet of log file: !entry org.eclipse.osgi 4 0 2015-06-04 21:27:59.594 !message error occurred while automatically activating bundle com.biz.client.ui (66). !stack 0 org.osgi.framework.bundleexception: error loading bundle activator. @ org.eclipse.osgi.internal.framework.bundlecontextimpl.start(bundlecontextimpl.java:711) @ org.eclipse.osgi.internal.framework.equinoxbundle.startworker0(equinoxbundle.java:936) @ org.eclipse.osgi.internal.framework.equinoxbundle$equinoxmodule.startworker(equinoxbundle.java:319) @ org.eclipse.osgi.container.module.dostart(module.java:571) @ org.eclipse.osgi.container.module.start(module.java:439) @ org.eclipse.osgi.framewo...

PHP - error when joining fields from different SQL databases -

i trying build query return results 3 different tables per following: events table datetime, direction, devicename tenants tenantname individuals firstname, lastname initially i've returned fields first 2 tables following sql: select eventtime, devicename, comment, tenantname taclogdata.dbo.event inner join inetdb.dbo.tenants on taclogdata.dbo.event.tenant = inetdb.dbo.tenants.tenantid taclogdata.dbo.event.eventtime between '01/04/2014 16:00:00' , '01/04/2014 16:00:59 i've joined both event , tenants tables using tenantid field. i needed return fields firstname , lastname (from individuals table), tried using sql below: select eventtime, devicename, comment, tenantname, firstname, lastname taclogdata.dbo.event inner join inetdb.dbo.tenants on taclogdata.dbo.event.tenant = inetdb.dbo.tenants.tenantid inner join inetdb.dbo.tenants on inet.dbo.tenants.tenantid = inet.dbo.individuals.te...

vbscript - Cannot convert Group Description to String Variable -

i have following code: set objholdgroup = getobject("ldap://" & objgroup) strgroupdesc = (objholdgroup.description) wscript.echo(strgroupdesc) the variable strgroupdesc returns nothing when echoed. can output description directly need further processing. thoughts? explanation: apparently script sets option explicit (good), didn't tell (bad). option makes defining variables before can use them mandatory (good). raise "undefined variable" error, though. since doesn't seem happen code, seem have on error resume next somewhere in code ( very bad), which, again, chose keep quiet (bad). next time please don't omit parts of code vital troubleshooting problem. , don't use on error resume next .

r - RStudio V0.99.441 - no leading or trailing or multiple spaces in View? -

Image
reinstalled rstudio , r ( r 3.2.0) , found out rstudio (version 0.99.441) viewer strips leading, trailing, , multiple spaces strings. critical in project , should visible. here's example: qqq = " test 1 space 2 space 3 space " view(qqq) result: in addition, it's not possible copy/paste view column names anymore, data frame can copied viewer. or headers w/o first (empty) box row.numbers should have been - results in shifted headers in pasted content. example: is there box in options haven't marked? thanks! note: both features worked previous rstudio (cannot tell version @ time)

elasticsearch - How to exclude inherited object properties from mappings -

i'm trying setup mapping object looks this: class testobject { public long testid { get; set; } [elasticproperty(type = fieldtype.object)] public dictionary<long, list<datetime>> items { get; set; } } i use following mapping code (where client ielasticclient ): this.client.map<testobject>(m => m.mapfromattributes()); i following mapping result: { "mappings": { "testobject": { "properties": { "items": { "properties": { "comparer": { "type": "object" }, "count": { "type": "integer" }, "item": { "type": "date", "format": "dateoptionaltime" }, "keys": { "properties": { "count": { ...

database - How Do I make access to automatically update multiple fields in one table based on the value of a field from another table? -

so have 2 tables in database: a : "daily activities" b : "list of beneficiaries" a has multiple fields can see in picture: http://i.stack.imgur.com/xmvic.png likewise, b has own fields: http://i.stack.imgur.com/9iq8y.png as can see, both table share 3 fields namely, “case_no”, “names” , “nature of case” . can assign fields let me take values 1 table another, don't want that. want input case no in table a , want access automatically fill next 2 fields “name” , “nature of case” pulling respective data sister table, b based on value of given case no. possible? if how can achieve that? in advance! thanks above tip-off @gene, managed achieve results wanted whole thing work in first place. little awkward, yes helpful. : )

rust - Which library to use for Weak references -

i realize things still in flux, why weak referenced in 2 different places in documentation? std::rc::weak - http://doc.rust-lang.org/stable/std/rc/struct.weak.html alloc::rc::weak - http://doc.rust-lang.org/stable/alloc/rc/struct.weak.html maybe i'm missing something, difference see in 2 fmt function signatures: impl<t> debug weak<t> t: debug fn fmt(&self, f: &mut formatter) -> result<(), error> vs impl<t: debug> debug weak<t> fn fmt(&self, f: &mut formatter) -> result so 1 should use? they're both marked "unstable". rust's standard library made of multiple, interconnected crates. std , aside containing of own functionality, acts "facade" on these other crates, publicly re-exporting bits have been stabilised. there is, in fact, 1 weak : 1 in alloc . it's std re-exports it. 1 use: if available through std , use through std : that's path that's unlikely chan...

C - matrix rotation -

i'm writing program in c , need m x n matrix rotate clockwise. tried algorithms, work in n x n matrices. the matrix {(1,4), (2,5), (3,6)} should become {(3,2,1), (6,5,4)} : 1 4 2 5 -> 3 2 1 3 6 6 5 4 i wrote piece of code transpose matrix, , don't know how swap columns: void transpose(int matrix[max][max], int m, int n) { int transpose[max][max], d, c; (c = 0; c < m; c++) for( d = 0 ; d < n ; d++) transpose[d][c] = matrix[c][d]; (c = 0; c < n; c++) for(d = 0; d < m; d++) matrix[c][d] = transpose[c][d]; } here's idea. i've implemented in java, should work in same manner in c. idea read array row major wise end, , fill other array column major wise, beginning . int a[][]={{1,4},{2,5},{3,6}}; int m=3,n=2; //you need edit , calculate rows , columns. int b[][]=new int[n][m]; for(int i=m-1; i>=0; i--) for(int j=0; j<n; j++) ...

asp.net mvc - Can you use the same token in ADFS for 2 different relying parties? -

currently have 2 relying parties setup in same adfs server; 1 web api , 1 setup mvc application. when token authenticating in mvc app capture token send web api authentication well. token not work web api. if make new call relying party(web api) work think setup correctly in adfs... there configuration issue in adfs not not allow same token work both? is possible? is wrong architecture in adfs? should use 1 relying party both apps? you can use identity delegation helps in scenarios app calls service instead of user. this similar question has resources: pass adfs token service

javascript - Having issues using a scope in Jquery -

so i'm trying pass freemarker variable value (${item.uid}) on click of link in order launch modal same unique id value. although functions can access value of uid , when run $('body').append($('div.disclaimer' + outervar).remove()); outervar shows undefined . javascript var outervar = uid; $('body').append($('div.disclaimer' + outervar).remove()); function showdisclaimer(uid) { var x = uid; $('div.disclaimer' + x).show(); } function closedisclaimer(uid) { var x = uid; // clear form , close modal $('div.disclaimer' + x).hide(); } html <a onclick="showmodal('${item.uid}')">call function</a> <div class="modal${item.uid}" style="display:none;"> <div class="content"> test content here </div> </div>

c# - DataTable does not release memory -

i have data loading process load big amount of data datatable data process, every time when job finished dataloader.exe(32bit, has 1.5g memory limit) not release memory being used. i tried 3 ways release memory: datatable.clear() call datatable.dispose() (release 800 mb memory still increase 200 mb memory every time data loading job finish, after 3 or 4 times of data loading, out of memory exception thrown because exceeds 1.5 g memory in total) set datatable null (no memory released, , if choose load more data, out of memory exception thrown) call datatable.dispose() directly (no memory released, , if choose load more data, out of memory exception thrown) following code tried testing(in real program not called recursively, triggered directory watching logic. code testing. sorry confusion.): using system; using system.collections.generic; using system.linq; using system.text; using system.data; namespace datatable_memory_test { class program { static void main(strin...

c++ - imshow is not working -

i used loop reading 300 frames , accumulating them.i gave imshow command inside print frames continuously not printed during loop processing comes single image here's code: enter code here #include<iostream> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include<stdlib.h> #include<stdio.h> using namespace cv; using namespace std; int main() { char k; int learningframes=300; videocapture cap(0); if(cap.isopened()==0) { cout<<"error"; return -1; } //while(1) //{ mat frame; cap>>frame; mat frameaccf,frameacc,framethr32,framehsv,framethr; frameaccf=mat::zeros(frame.size(),cv_32fc1); for(int i=0;i<=learningframes;i++) { cap>>frame; imshow("nn",frame); cvtcolor(frame,framehsv,cv_bgr2hsv); inrange(framehsv,scalar(0,30,0),scalar(50,150,255),framethr); framethr.convertto(framethr,cv_32f); accumulate(frameth...

javascript - Update the todo list without refreshing the page in express nodejs app -

i newbee express nodejs applications. want make todo list. how looks far. question when add todo, takes time show change since reloads page. how can see change in realtime without reloading page. in advance. in tasks.jade h1= title .list .item.add-task div.action form(action='/tasks', method='post', id='12345') input(type='hidden', value='true', name='all_done') input(type='hidden', value=locals._csrf, name='_csrf') input(type='submit', class='btn btn-success btn-xs', value='all done') form(action='/tasks', method='post') input(type='hidden', value=locals._csrf, name='_csrf') div.name input(type='text', name='name', placeholder='add new task') div.delete input.btn.btn-primary.btn-sm(type="submit", value='add') if (...

javascript - Handling multiple jQuery Ajax requests -

i trying handle aborted status in using jquery/ajax. i making multiple ajax calls. if 1 of ajax call success (like 1 of status 200 ok in snapshot) need display success message. if ajax call aborted status, need display failure message. but not working way; hence bit confused. please guide. i think, can solve problem without async:false . use promise synchronize multiple requests: $(function() { $("#btnsubmit").click(function() { var dfd = new $.deferred(); var proms = []; var errs = 0; (var = 8078; < 8085; i++) { var port = i; proms.push(jquery.ajax({ url: 'http://localhost:' + port + '/test/', datatype: 'jsonp' }) .then(function(resp) { dfd.resolve(resp); return resp; }, function ( err ) { errs++; if ( errs === proms.length ) dfd.reject( err ); })); } dfd.promise() .then(function ...

excel - Choose active page in Visio -

edited: didn't phrase will.. trying open visio (working) , open page in document of choosing. thanks dim fname string dim vsapp object on error resume next set vsapp = getobject(, "visio.application") if vsapp nothing set vsapp = createobject("visio.application") if vsapp nothing msgbox "can't connect visio" exit sub end if end if on error goto 0 fname = "c:\myfile.vsd" if not intersect(target, range("c2")) nothing vsapp.documents.open fname vsapppage = "mypage" cancel = true elseif not intersect(target, range("c4")) nothing vsapp.documents.open fname vspage = "mypage2" vsapp.activepage = vspage cancel = true end if but code trying rename active page. select page name in quotes. try: vsapp.activewindow.page = vspage if doesn't work, try: vsapp.activewindow.page = vsapp.documents.open(fname).pages(vspage)

Arduino temperature sensor negative temperatures -

when measuring negative temperatures not show me correct values on led output. see 4983. need advice code. i using arduino uno. type of senzor: ds18b20 code: #include <spi.h> #include <wire.h> #include <adafruit_gfx.h> #include <adafruit_ssd1306.h> #define oled_mosi 9 #define oled_clk 10 #define oled_dc 11 #define oled_cs 12 #define oled_reset 13 adafruit_ssd1306 display (oled_mosi, oled_clk, oled_dc, oled_reset, oled_cs); #define numflakes 10 #define xpos 0 #define ypos 1 #define deltay 2 #define logo16_glcd_height 16 #define logo16_glcd_width 16 static const unsigned char progmem logo16_glcd_bmp [] = {b00000000, b11000000, b00000001, b11000000, b00000001, b11000000, b00000011, b11100000, b11110011, b11100000, b11111110, b11111000, b01111110, b11111111, b00110011, b10011111, b00011111, b11111100, b00001101, b01110000, b00011011, b10100000, b00111111, b11100000, b00111111, b11110000, b01111100, b11110000, b01110000, b01110000, b00000000, b00110000}; #...

php - RSS Feed fetch as a JSON object -

this php file named testclient **public function getxml() { $xml = simplexml_load_file('https:/.............'); $feed1 = '<h3>' . $xml->channel->title . '</h3>'; foreach ($xml->channel->item $item) { $feed1 .= '<h4><a href="' . $item->link . '">' . $item->title . "</a></h4>"; } $xml = simplexml_load_file('https://rumble.com/rss.php?target=sprinklevideo'); $feed2 = '<h3>' . $xml->channel->description . '</h3>'; foreach ($xml->channel->item $item) { $feed2 .= '<h4><a href="' . $item->link . '">' . $item->description . "</a></h4>"; } $xml = simplexml_load_file('https://rumble.com/rss.php?target=sprinklevideo'); $feed3 = '<h3>' . $...

mysql - Join Tables to fetch user activity -

i have 3 tables users , users_followers , user_activity . users have data user, email, username, password etch user_followers have following who and user_activity stores activity of user, ex. "wrote post" im having hard time figure out how join tables output have activity user i'm following. so lets adam follows steve , curt. steve make post , few minutes curt uploads image, steve comments. i fetch db in sorted timestamp. ex steve commented on picture curt uploaded image steve made post i have sql fiddle here http://sqlfiddle.com/#!9/59adf/4 help appreciated! select u1.user_name `user_name being followed`, u2.user_name `follower_name followes`, ua.* users u1 join users_followers uf on uf.user_id=u1.user_id join users u2 on u2.user_id = uf.follower_id join user_activity ua on ua.user_id = u2.user_id u1.user_name='demo' order ua.activity_timestamp

ruby on rails - Need to store query result instead of storing query in ActiveRecord -

i having following function find of selected records public pages. def find_public_page(title) @footer_public_pages ||= publicpage.where(title: %w(welcome_to_toylist terms_of_services buying_a_toy selling_a_toy requesting_a_toy ad_guildelines)) @footer_public_pages.find_by(title: title) end what need @footer_public_pages should store result set in first time , on next time directly hit find_by query instead of firing 2 queries. any appreciated. you can try this. hope you. def find_public_page(title) @footer_public_pages ||= publicpage.where(title: %w(welcome_to_toylist terms_of_services buying_a_toy selling_a_toy requesting_a_toy ad_guildelines)).group_by(&:title) @footer_public_pages[title].first unless @footer_public_pages[title].blank? end

genetic programming - Island Model in ECJ -

in genetic programming (gp), when island model used, mean split population size between islands? for example, if in parameters file have pop.subpop.0.size = 4000 and have 4 islands, mean each island have population of size 1000? if put line of code in parameters file of each island? possible have different population size each island? i'm using java , ecj package implement island models in gp. no, in example have defined 1 island of 4000 individuals. number never automatically splited. there 2 ways use islands model in ecj: using interpopulationexchanger class: one unique java process share variables. islands subpopulations of population object. therefore, need set sizes each subpopulation in parameter file. in example, have set island (subpopulation) 0 4000 individuals, should set other sizes. example, 10 islands of 4000 individuals each: exch = ec.exchange.interpopulationexchange pop.subpops = 10 pop.subpop.0.size = 4000 pop.subpop.1.size = 4000 p...

c# - Find control in Web Forms inside a repeater -

i'm unable find literal inside repeater in usercontrol. i have following usercontrol: <nav role="navigation"> <ul> <li><a href="/"<asp:literal id="litnavhomeactive" runat="server" />>home</a></li> <asp:repeater id="rpt_navitem" runat="server" onitemdatabound="rpt_onitemdatabound"> <itemtemplate> <li><a href="/<asp:literal id="lit_url" runat="server" />/"<asp:literal id="lit_navactive" runat="server" />><asp:literal id="lit_title" runat="server" /></a></li> </itemtemplate> </asp:repeater> </ul> <div class="cb"></div> </nav> this placed inside masterpage , contentpage, i'm trying find "lit_navactive" , hide it. i using this: repeater rpt = ((theme)page.master).findcontrol...

java - Applet is not loaded properly in browser.need to refresh the browser -

i have made jar file based applet. i have used quick time java api. applet hosted in cisco camera. when open camera url java applet not loaded. need refresh browser. kindly suggest solution. this problem not happen frequently.sometime works perfectly. sometimes need refresh browser manually.

java - How to generate eclipse project from maven with "Maven Dependencies" instead of "Referenced Libraries" "M2_REPO/.." -

how can generate eclipse project maven : mvn eclipse:eclipse but need .classpath file : <classpathentry kind="con" path="org.eclipse.m2e.maven2_classpath_container"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/web-inf/lib"/> </attributes> </classpathentry> instead of having dependencies pom : <classpathentry kind="var" path="m2_repo/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar" sourcepath="m2_repo/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-sources.jar"> <attributes> <attribute value="jar:file:/home/tr/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-javadoc.jar!/" name="javadoc_location"/> </attributes> .... the problem...

php - Propel 1.6 has some trouble to generate schema from Sybase 15.7 -

with php zf2 project have generate schema of database (sybase 15.7) propel 1.6, after propel connected database has problem generate schema. i have error message: [ propel - schema - reverse ] reading database structure... [ propel - schema - reverse ] there error building xml message frim sql server [208] (severity 16) [select table_name information_schema.tables table_type = 'base table' , table_name <> 'dtproperties'] there propel configuration: propel.project = {{projectname}} propel.database = mssql propel.database.url = dblib:driver=freetds; host={{ipserver}}:{{portserver}}; propel.database.user = {{user}} propel.database.password = {{password}} propel.schema.dir = ${project.build} propel.conf.dir = ${project.build} propel.namespace.om = om propel.namespace.map = map propel.namespace.autopackage = true propel.packageobjectmodel = true sounds propel try generate schema mysql request rather sybase request don't handle configurate. ...

java - Errors in named queries: findByName in JBoss AS7 with Hibernate 3.6 and OJdbc6 -

i trying migrate ejb application oc4j jboss as7, application using ojdbc 6 , hibernate 3, jboss runs on hibernate 4, configured jboss support hibernate 3.6. while deploying ear getting below error in console(application using oracle 11g database): 19:23:21,794 info [org.hibernate.cfg.configuration] (serverservice thread pool -- 51) hibernate validator not found: ignoring 19:23:21,893 info [org.hibernate.validator.internal.util.version] (serverservice thread pool -- 51) hv000001: hibernate validator 4.3.2.final-redhat-1 19:23:22,131 info [org.hibernate.cfg.search.hibernatesearcheventlistenerregister] (serverservice thread pool -- 51) unable find org.hibernate.search.event.f ulltextindexeventlistener on classpath. hibernate search not enabled. 19:23:22,146 info [org.hibernate.connection.connectionproviderfactory] (serverservice thread pool -- 51) initializing connection provider: org.hibernate.ejb.co nnection.injecteddatasourceconnectionprovider 19:23:22,160 info [org.hibernat...