Time |
S |
Nick |
Message |
00:00 |
|
sfisque |
though if you're using MDB you really don't need jca unless you're writing your own JMS impl |
00:00 |
|
whartung |
I wrote one for SMTP, but had issues having it share stuff with the EAR |
00:00 |
|
whartung |
No, I wanted to do some other listeners |
00:01 |
|
sfisque |
socket? |
00:01 |
|
whartung |
yea |
00:01 |
|
sfisque |
yah, gotta use jca |
00:01 |
|
whartung |
well, don't gotta -- I ported it to a servlet shell, and it works peachy :) |
00:01 |
|
whartung |
just "illegal" |
00:02 |
|
sfisque |
well, depends… soap was done like that |
00:02 |
|
sfisque |
@webservice |
00:02 |
|
sfisque |
but if you doing bidirectional, yeah you need jca |
00:02 |
|
sfisque |
so you can obey XA properly |
00:02 |
|
whartung |
no, I launch my socket in a ContextListener, and then post it the results to an MDB. |
00:02 |
|
sfisque |
definitely spend time mapping out "what" a transaction is and what the boundaries are. removes alot of headache later |
00:02 |
|
whartung |
sure |
00:03 |
|
sfisque |
o,O |
00:03 |
|
* sfisque |
slaps whartung with a wet noodle |
00:03 |
|
whartung |
I tired the jca route, but was having issues |
00:03 |
|
sfisque |
were you producing two artifacts? |
00:03 |
|
sfisque |
rar/sar + interface jar |
00:04 |
|
sfisque |
you deploy the rar/sar at the container level and your ear/war consumes the iface jar |
00:04 |
|
whartung |
I recall the RAR, but not an interface jar, since we weren't calling it via java |
00:04 |
|
whartung |
it was pushing to us. |
00:04 |
|
whartung |
well |
00:04 |
|
whartung |
no |
00:04 |
|
sfisque |
OH |
00:04 |
|
whartung |
hmm |
00:04 |
|
whartung |
yea, no |
00:04 |
|
sfisque |
ok |
00:04 |
|
whartung |
we told it the MDB to use |
00:04 |
|
whartung |
and that worked |
00:05 |
|
sfisque |
oh, so the jca consumed input and triggered a message? |
00:05 |
|
whartung |
yes |
00:05 |
|
sfisque |
nifty |
00:05 |
|
sfisque |
that solves alot of the transX boundary issues, since mdb's are asynch |
00:06 |
|
whartung |
yes |
00:06 |
|
sfisque |
that would have made my file listener cleaner. i'll have to go update my version in the repo |
00:12 |
|
whartung |
wish there was a way to find the latest of a deleted thing in svn |
00:14 |
|
sfisque |
if you know "what" was deleted, you know the revision it was deleted on, just go 1 back |
00:15 |
|
whartung |
I don't know what rev it was deleted on, that's the point |
00:15 |
|
sfisque |
svn log |
00:15 |
|
sfisque |
svn log deleted_file.java |
00:15 |
|
sfisque |
cd into the dir |
00:15 |
|
sfisque |
use CLI |
00:15 |
|
sfisque |
get the full log on the file, —stop-on-copy if it was merged/branched |
00:16 |
|
whartung |
I wonder how many terra gigs of crap are in our SVN … forever. |
00:17 |
|
sfisque |
i wonder how OS's are going to maintain pace. petabyte drives are not that far off, and petabyte nas's for retail will come sooner via disk striping or zfs clustering |
00:18 |
|
sfisque |
imagine a virus scan of a 3 petabyte nas … /shiver |
00:19 |
|
whartung |
yea... |
00:19 |
|
whartung |
whee |
00:19 |
|
whartung |
otd ttyt |
00:19 |
|
* sfisque |
waves |
00:19 |
|
sfisque |
code strong |
00:24 |
|
sfisque |
so i can see what the default producer template does (encodes the map as message headers, puts the template in the body). question now is, how does camel Message map to JMS Message. hopefully 1:1 |
00:25 |
|
tjsnell |
there should be no tranformation |
00:25 |
|
tjsnell |
what's in the body should be put in the jms message |
00:26 |
|
sfisque |
right and the header key/values are also mapped as headers in the JMS messages? |
00:27 |
|
sfisque |
in the case of sendBodyAndHEaders( end, body, <Map> headers); |
00:27 |
|
sfisque |
? |
00:27 |
|
sfisque |
i see the method walks the map and puts them into the camel Message headers |
00:27 |
|
sfisque |
do those then become JMS message headers? |
00:28 |
|
sfisque |
i don't have the plugin code, i'm looking at the core code atm |
00:28 |
|
sfisque |
and thank you for helping me with this. of course i could go digging, but it's expedient to have someone else to ask questions to :-) |
00:29 |
|
tjsnell |
yeah |
00:29 |
|
sfisque |
is my assumption about the headers spot on? |
00:29 |
|
tjsnell |
basically |
00:29 |
|
tjsnell |
one sec |
00:29 |
|
tjsnell |
some may not pass through |
00:29 |
|
sfisque |
oh, because the map is insensitive, right? |
00:30 |
|
tjsnell |
you using JMS or ActiveMQ endpoint? |
00:31 |
|
sfisque |
using the bundled AMQ with the camel server. so i guess i'll have to consume the AMQ driver in the container when i expose the endpoint in JNDI |
00:32 |
|
sfisque |
basically app deployed on GF -> GF -> JMS (amq) -> AMQ -> camel |
00:32 |
|
sfisque |
right now we're using the camel producertemplate and bootstrap in our app, but i'd like to make it camel agnostic and just send teh packet vanilla jms |
00:34 |
|
sfisque |
if i get this to work, i swear i'm going to write up a tutorial on how to do it, because i cannot be the only person who has desired to do this |
00:34 |
|
sfisque |
oh man, it's late. i'm punting, but i'll check the bot-log that pdurbin has running. be well and code strong! |
00:57 |
|
|
ibaca joined ##javaee |
01:58 |
|
|
sfisque joined ##javaee |
01:59 |
|
|
sfisque1 joined ##javaee |
02:00 |
|
|
sfisque1 joined ##javaee |
03:54 |
|
|
null_wp joined ##javaee |
05:07 |
|
|
ewong joined ##javaee |
05:09 |
|
ewong |
hi.. I'm new to java. I've looked at both Eclipse and NetBeans.. and I'm confused as to which one to use. Can anyone suggest which one I should use? |
05:11 |
|
sfisque |
both have advantages. matter of taste |
05:45 |
|
|
ewong joined ##javaee |
05:46 |
|
ewong |
sfisque: thanks! (sorry.. browser crashed) |
05:53 |
|
|
Administrator_ joined ##javaee |
07:44 |
|
|
AlexCzar joined ##javaee |
08:04 |
|
|
dangertools joined ##javaee |
08:04 |
|
|
dangertools joined ##javaee |
12:19 |
|
pdurbin |
happy my pull request got merged in: https://github.com/swordapp/JavaServer2.0/graphs/contributors |
12:24 |
|
|
jieryn joined ##javaee |
12:24 |
|
|
jieryn joined ##javaee |
12:48 |
|
|
tommmied joined ##javaee |
13:05 |
|
|
fern joined ##javaee |
13:40 |
|
|
Naros joined ##javaee |
13:41 |
|
|
WileTheCoyot joined ##javaee |
13:42 |
|
WileTheCoyot |
hello everyone |
13:42 |
|
WileTheCoyot |
is possible to write a function for getting the root of jour project (host/project)? |
13:43 |
|
WileTheCoyot |
i want to use it for relative links like <a href="<%=getBaseUrl()">Home</a> |
13:45 |
|
WileTheCoyot |
or <a href="<%getBaseUrl()+"/page.htm"%>">Home</a> |
13:52 |
|
pdurbin |
WileTheCoyot: something like http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getLocalName%28%29 perhaps |
13:54 |
|
WileTheCoyot |
if my project path is http://localhost:8080/project i want to write a static function that i can use for relative path (like htm page, images, jsp etc) |
13:55 |
|
WileTheCoyot |
unfortunately i can't use the request object because i'm writing a simple java class |
13:56 |
|
tjsnell |
that's a silly restriction |
13:58 |
|
WileTheCoyot |
i want somethink like this but one function for all my projects |
13:58 |
|
WileTheCoyot |
http://pastebin.com/N4qUL9QX |
13:58 |
|
WileTheCoyot |
an automated way .... |
14:03 |
|
Naros |
WileTheCoyot: writing a static method to give you a static result isn't complicated as your pastebin shows. Whatever "logic" you want to apply to that method of course is entirely within the scope of your own design naturally. |
14:04 |
|
Naros |
What I don't understand is 1) automated way how? and 2) be careful not to reinvent the wheel |
14:11 |
|
WileTheCoyot |
i want one function for different hosts |
14:12 |
|
WileTheCoyot |
something like getHostname()+getPort() |
14:21 |
|
Naros |
So write static methods that return those values based on some xml configuration or w/e |
14:21 |
|
Naros |
then your getBaseUrl() is just a static wrapper around those methods |
14:21 |
|
Naros |
But I don't see the value in doing this honestly. When you say something to use "for all my projects" - will they always be web projects? |
14:22 |
|
Naros |
If so, this kinda stuff is always available through the HttpServletRequest and ServletContext classes |
14:25 |
|
WileTheCoyot |
for example if i have two programs on two machine ip1:8080/p1 and ip2:8080/p2 i want to use the same function for both of them |
14:25 |
|
WileTheCoyot |
for now i simply return a string |
14:26 |
|
Naros |
Right but aren't you using the servlet api in these two programs? |
14:26 |
|
|
cem_ joined ##javaee |
14:26 |
|
cem_ |
hi |
14:26 |
|
* sfisque |
agrees with naros. unnecessary optimization |
14:26 |
|
Naros |
If you are using the servlet api in them, then I see this as unnecessary fluff |
14:26 |
|
Naros |
That stuff already exists :P |
14:27 |
|
WileTheCoyot |
no in that class |
14:27 |
|
Naros |
So what protocol are these two machines using? |
14:27 |
|
WileTheCoyot |
can you make me an exaple? thanks |
14:27 |
|
Naros |
you showed what appeared to be HTTP |
14:28 |
|
Naros |
I don't have the bandwidth to create an example and I'm sure the internet has more than sufficient examples |
14:28 |
|
WileTheCoyot |
http |
14:28 |
|
Naros |
Perhaps I don't understand your 'requirements' but to me it comes across as a lot of reinventing of wheels |
14:29 |
|
cem_ |
what is batch process when i need to use |
14:29 |
|
cem_ |
?????????????? |
14:29 |
|
WileTheCoyot |
sorry for my english |
14:29 |
|
cem_ |
Anyone ? |
14:30 |
|
sfisque |
can you explain a littler more cem_ |
14:30 |
|
WileTheCoyot |
i want something that return the base path: i don't want to use ../../ |
14:30 |
|
WileTheCoyot |
for example |
14:31 |
|
sfisque |
i guess it depends on what you mean by "base path". |
14:31 |
|
sfisque |
as naros says, this might already exist in various api's |
14:32 |
|
Naros |
WileTheCoyot: If you start up a web socket without any servlet stuff, you're goign to have to provide some base file path for your content if you're trying to create a HTTP server. |
14:32 |
|
Naros |
so for example http://www.mydomain.com points to /wwwroot on the filesystem |
14:33 |
|
Naros |
then when you get a request for say /somedirectory/somepage.html, you would transpose that for reading on the filesystem as /wwwroot/somedirectory/somepage.html and stream that back to the socket |
14:33 |
|
Naros |
like I said that is normally controlled via some type of domain or host configuration |
14:35 |
|
Naros |
But is there a particular reason why you want to create your own http server? |
14:35 |
|
WileTheCoyot |
for example if i'm in /pages/sub/sub/page.jsp it would be simpler if i can write baseUrl()+"home.jsp" istead of ../../../../index.jsp |
14:35 |
|
Naros |
rather than use a container or existing one? |
14:35 |
|
Naros |
Why not just write "/index.jsp" ? |
14:36 |
|
Naros |
You realize if the path starts with "/" that implies the root folder |
14:36 |
|
cem_ |
sfisque: My friend said to handle things in batch in backend , i didnt know what is that its not .bat he was talking about something on db but couldnt get it when i need it |
14:36 |
|
WileTheCoyot |
does it work for file like css and images too |
14:36 |
|
WileTheCoyot |
? |
14:36 |
|
WileTheCoyot |
because eclipse gives me a lot for error on this |
14:36 |
|
Naros |
It depends I suppose on whether you and I are both talking about the samething |
14:37 |
|
WileTheCoyot |
:) |
14:37 |
|
Naros |
So tell me, you're already parsing this HTTP request from the browser? |
14:38 |
|
WileTheCoyot |
no |
14:38 |
|
cem_ |
"So tell me, you're already parsing this HTTP request from the browser? " What this suppose to mean |
14:38 |
|
Naros |
wait, your path earlier had .jsp in it :P |
14:38 |
|
Naros |
Why not just use a servlet container ? |
14:38 |
|
WileTheCoyot |
yes |
14:39 |
|
WileTheCoyot |
maybe |
14:39 |
|
Naros |
Where do you plan to use this baseUrl() ? |
14:39 |
|
Naros |
inside the servlet code in doGet() ? |
14:40 |
|
Naros |
cem_: I'm struggling because his descriptions are vague and frankly make no sense to me. |
14:41 |
|
Naros |
I'm left with the impression of someone trying to write a tomcat server from scratch so-da-speak |
14:41 |
|
WileTheCoyot |
everywhere |
14:41 |
|
WileTheCoyot |
i want a standard way for relative links |
14:41 |
|
cem_ |
Naros i wrote my own server but in diff language haha |
14:42 |
|
Naros |
cem_: hehe, yah multi-threaded server technology was my original forte before transitioning into the java world some 10 years ago :P |
14:42 |
|
WileTheCoyot |
standard means identical |
14:43 |
|
Naros |
WileTheCoyot: Give me a concrete example |
14:43 |
|
WileTheCoyot |
i'm in index.jsp |
14:43 |
|
Naros |
k |
14:44 |
|
WileTheCoyot |
i wanto to write <a href="<=getBasePath()+"img/a.jpg"%>" |
14:44 |
|
Naros |
Ah now it all makes sense. |
14:45 |
|
cem_ |
WileTheCoyot: :P you made mistake |
14:45 |
|
WileTheCoyot |
just an easier way for links |
14:45 |
|
WileTheCoyot |
sorry guys |
14:45 |
|
Naros |
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getContextPath() |
14:45 |
|
WileTheCoyot |
could i extends servlet even if i don't initialize them? |
14:46 |
|
WileTheCoyot |
i am a newbie in j2ee |
14:46 |
|
WileTheCoyot |
:) |
14:46 |
|
Naros |
What are you running your java code within? Glassfish, Tomcat + TomEE, JBoss? |
14:46 |
|
pdurbin |
WileTheCoyot: j2ee is the old term. now it's java ee |
14:47 |
|
WileTheCoyot |
ok |
14:48 |
|
cem_ |
WileTheCoyot: are sure this will work ? <a href="<=getBasePath()+"img/a.jpg"%>" ? |
14:49 |
|
tjsnell |
ick! JSP :( |
14:50 |
|
WileTheCoyot |
i'm working on it |
14:50 |
|
WileTheCoyot |
:9 |
14:50 |
|
WileTheCoyot |
:) |
14:51 |
|
Naros |
This getBasePath() logic is basically what most web frameworks drop into some url or anchor taglib :P |
14:51 |
|
Naros |
e.g. <s:url action="router" namespace="/core"><s:param name="field">123</s:param></s:url> |
14:51 |
|
WileTheCoyot |
Naros: ? |
14:52 |
|
Naros |
creates a link to /whatever-the-app-context-is/core/router?field=123 |
14:52 |
|
cem_ |
Naros is there way we can do things statically ? |
14:53 |
|
Naros |
Wile I am just saying your logic behind your getBaseUrl() is similar to the transposition that web frameworks do to take the application context path and a given set of inputs and formulate a relative or absolute server path |
14:53 |
|
WileTheCoyot |
Naros: remember i am newbie in java ee |
14:53 |
|
Naros |
hehe, they're almost one in the same :P |
14:53 |
|
Naros |
one just looks more modern with taglibs |
14:54 |
|
WileTheCoyot |
ok |
14:55 |
|
cem_ |
"<cem_> Naros is there way we can do things st" |
14:55 |
|
Naros |
I think you should be using the request object |
14:56 |
|
cem_ |
huh? |
14:56 |
|
Naros |
you can write a scriptlet function, place it in a separate file and include that file at the top of all your jsps |
14:56 |
|
Naros |
it isn't "static" in the traditional sense but accomplishes what you're after |
14:57 |
|
cem_ |
thats more or less the same |
15:17 |
|
Naros |
sfisque: remember the aspect stuff from yesterday. |
15:19 |
|
Naros |
It looks like a majority of it basically just adds a few booleans and methods for set/get boolean state that the permissions evaluator sets based on object state. Sometimes these are used by service methods as guards but most of it is used by the web ui to guard including or excluding specific functionality |
15:19 |
|
Naros |
I'm just pondering if there is a better solution to all this since it does feel like spaghetti |
15:21 |
|
cem_ |
Naros: |
15:21 |
|
Naros |
yes |
15:22 |
|
Naros |
lol |
15:34 |
|
sfisque |
well the only real alternative i see, other than using a different annotation system would be to use the GuardedObject api in java.security, which is basically a decorator/proxy/delegate construct from what i remember (it's been a while since i looked through that api) |
15:38 |
|
Naros |
k |
15:38 |
|
Naros |
not sure i wanna mess with GuardedObject tho |
15:39 |
|
sfisque |
aye. java.security is not a simple api |
15:41 |
|
Naros |
In the end, we separated our entities to their own jar primarily so that multiple apps could interface with the database |
15:42 |
|
Naros |
But it feels like security in some cases needs to be pretty low-level to be shared or else I got some code dupe going on |
15:51 |
|
sfisque |
there is a reason that all enterprise security treatments always stress baking security in early rather than later. because i has to be deep and low level |
15:52 |
|
sfisque |
otherwise you get holes or voids that expose data/functionality in "surprising ways" |
15:57 |
|
whartung |
always depends on what kind of security you're looking for too |
16:03 |
|
sfisque |
yah, i'm assuming we're talking enterprise scale/quality |
16:04 |
|
sfisque |
and THEN there is the multi-tenancy issue. that one causes us all sorts of heartburn |
16:06 |
|
sfisque |
we have a two tier security model. every actor has a pool of perms that dictate actions and objects they can act ( person A can touch Object type C, etc.). then there is the second tier of what i call "per instance security" .. (person A can touch THIS INSTANCE of Object type C) |
16:07 |
|
sfisque |
members of the team seem to think we can somehow magicallly make that layer go away. they don't understand that it is a necessary artifact of multi-tenancy. but i'm done banging my head against the wall, and i am now going to watch them dream up all sorts of "schemes" and try to implement them |
16:08 |
|
whartung |
yea, they never seem to grok how much DETAIL there is in security |
16:09 |
|
* pdurbin |
is making some progress with the SAML details |
16:10 |
|
sfisque |
does saml address multi-tenancy? |
16:13 |
|
whartung |
it's a bunch of assertions, so it can support "anything" |
16:15 |
|
pdurbin |
I'm sure I'll grow to love SAML |
16:19 |
|
sfisque |
that sounds invasive from a programming standpoint |
16:20 |
|
whartung |
what does? |
16:21 |
|
sfisque |
feathering assertions throughout the code |
16:22 |
|
whartung |
no, the SAML is just a payload, that has assertions within it |
16:22 |
|
sfisque |
ah, so it's a meta layer |
16:22 |
|
whartung |
it's format, with profiles |
16:22 |
|
whartung |
*a |
16:26 |
|
|
fern left ##javaee |
16:32 |
|
|
AlexCzar joined ##javaee |
17:50 |
|
|
javascriptIsGrea joined ##javaee |
18:14 |
|
|
semiosis joined ##javaee |
18:15 |
|
* semiosis |
waves to pdurbin |
18:16 |
|
pdurbin |
semiosis: so you're a fan of JavaFX: http://irclog.greptilian.com/sourcefu/2013-10-16#i_31415 |
18:16 |
|
pdurbin |
semiosis: you can't really use JavaFX for web programming, can you? |
18:18 |
|
pdurbin |
the original question from sfisque: http://irclog.greptilian.com/javaee/2013-10-15#i_30914 |
18:19 |
|
semiosis |
afaik javafx isn't for web development |
18:20 |
|
semiosis |
but for writing "native" apps to run on windows mac & linux, i'm really digging javafx |
18:21 |
|
whartung |
yea, it's not for web apps |
18:21 |
|
whartung |
I haven't really looked in to it |
18:21 |
|
whartung |
is it Mo Betta(™) than Swing (not that that is particularly difficult, but…) I always though FX was more "Java Flash++" |
18:22 |
|
semiosis |
i think so, though i dont have as much experience with swing |
18:23 |
|
semiosis |
javafx is much more than java flash++ |
18:23 |
|
semiosis |
they dropped the fx script language, now it's just an xml markup language for describing UI views, and annotations to bind between xml & java |
18:23 |
|
semiosis |
very natural |
18:23 |
|
whartung |
heh |
18:24 |
|
semiosis |
and there's lots of conveniences provided for doing multithreaded gui stuff |
18:24 |
|
whartung |
I can't say I've ever heard "XML Binding" and "Java" used in the same sentence as "natural" |
18:24 |
|
pdurbin |
sounds a little like JSF |
18:25 |
|
semiosis |
whartung: here's an example... xml: <Button fx:id="loginButton" onAction="#doLogin" text="Login" /> and in java: @FXML private void doLogin() { ... |
18:26 |
|
whartung |
yea, sounds like jsf |
18:26 |
|
whartung |
with that comprehensive 1 line example :) lol |
18:26 |
|
semiosis |
hehe |
18:26 |
|
whartung |
"Let me judge in detail..." |
18:28 |
|
pdurbin |
semiosis: ever used JSF? |
18:28 |
|
semiosis |
no |
18:28 |
|
pdurbin |
semiosis: what do you use instead? |
18:28 |
|
semiosis |
using angularjs with a jax-rs api |
18:29 |
|
pdurbin |
semiosis: ok, anything else, in the past? |
18:29 |
|
SoniEx2 |
in Java, 0^0 (aka Math.pow(0,0)) = 1, it should be NaN/undefined |
18:29 |
|
semiosis |
iirc a^0 = 1 for all a |
18:29 |
|
whartung |
since when? |
18:30 |
|
whartung |
yea, what semiosis said |
18:30 |
|
semiosis |
pdurbin: struts :( |
18:32 |
|
pdurbin |
heh |
18:32 |
|
pdurbin |
semiosis: is it that bad? |
18:36 |
|
semiosis |
bad for me |
18:37 |
|
whartung |
struts 1 or 2? |
18:37 |
|
semiosis |
1 |
18:38 |
|
whartung |
I'm so sorry |
18:38 |
|
semiosis |
yep |
18:38 |
|
whartung |
so absolutely horrible |
18:38 |
|
whartung |
talk about trapped in time |
18:38 |
|
SoniEx2 |
semiosis: whartung: x^2 = x*x, x^1 = x^2 / x, x^0 = x^1 / x |
18:39 |
|
SoniEx2 |
0^1 = 0, 0^0 = 0/0 |
18:39 |
|
SoniEx2 |
so error |
18:39 |
|
itsucks |
|
18:39 |
|
semiosis |
x/x = 1 |
18:40 |
|
SoniEx2 |
not for 0 |
18:40 |
|
whartung |
"If the exponent is zero, some authors define 00 = 1, whereas others leave it undefined, as discussed below." |
18:40 |
|
whartung |
well, that's settled |
18:40 |
|
SoniEx2 |
http://www.youtube.com/watch?v=BRRolKTlF6Q |
18:41 |
|
itsucks |
SoniEx2: Hope you rewrite it because not only in java all programming do that |
18:41 |
|
semiosis |
http://www.math.hmc.edu/funfacts/ffiles/10005.3-5.shtml |
18:41 |
|
whartung |
http://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_power_of_zero |
18:42 |
|
itsucks |
Youvideo are all idiotic |
18:42 |
|
* itsucks |
youtube |
18:43 |
|
semiosis |
pdurbin: come to ##javaee for the programming, stay for the philosophy of math |
18:43 |
|
pdurbin |
I'm busy posting my lastest SAML findings: http://digitaliser.dk/forum/2526560#comment_2530113 |
18:43 |
|
whartung |
here ya go SoniEx2, you best start your adventure here: http://bugreport.sun.com/bugreport/ |
18:44 |
|
pdurbin |
whartung: OIOSAML works with 50% of IdPs I've tried :) |
18:44 |
|
whartung |
sweet |
18:44 |
|
whartung |
did I mention saml was fiddly? |
18:45 |
|
pdurbin |
whartung: your SP works with 100% of IdPs |
18:45 |
|
whartung |
Oh I wouldn't say that. But, we can tweak it as appropriate |
18:45 |
|
whartung |
different folks encode things differently |
18:55 |
|
SoniEx2 |
itsucks: you're right... youtube sucks... it won't let me post math on the comments :/ |
18:55 |
|
itsucks |
http://www.youtube.com/watch?v=yWiDVdK3B-E |
19:02 |
|
itsucks |
SoniEx2: youtube is good i know why the comments are made like that :P |
19:03 |
|
SoniEx2 |
what do you mean? you didn't read my comment |
19:03 |
|
SoniEx2 |
(or did you?) |
19:05 |
|
itsucks |
? |
19:11 |
|
SoniEx2 |
youtube thinks math equations are ASCII art |
19:12 |
|
pdurbin |
you guys might like this: Math ∩ Programming - Community - Google+ - https://plus.google.com/communities/101551468332631556735 |
19:13 |
|
pdurbin |
Philip Durbin - Google+ - Lucene scores documents using the Vector Space Model, which… - https://plus.google.com/107770072576338242009/posts/Eh2VtLXWRFE |
19:13 |
|
pdurbin |
Philip Durbin - Google+ - BOF7164 - Lessons from Mathematics Joseph Darcy - Member… - https://plus.google.com/107770072576338242009/posts/6mKaEDqByjf |
19:14 |
|
itsucks |
SoniEx2 Oh! lol they need to add that feature . |
19:15 |
|
pdurbin |
whartung: now the fun with interop begins: Windows Identity Foundation (WIF) Throws Exception: "ID6018: Digest verification failed for reference" - TechNet Articles - United States (English) - TechNet Wiki - http://social.technet.microsoft.com/wiki/contents/articles/1430.windows-identity-foundation-wif-throws-exception-id6018-digest-verification-failed-for-reference.aspx |
20:02 |
|
|
[[thufir]] joined ##javaee |
20:08 |
|
|
Selarius joined ##javaee |
20:11 |
|
whartung |
that looks like great fun pdurbin |
20:15 |
|
pdurbin |
lol |
20:15 |
|
pdurbin |
that's with the "working" IdP |
20:15 |
|
pdurbin |
well, my definition of working |
20:16 |
|
pdurbin |
i.e. when I upload the IdP metdata file to OIOSAML, the OIOSAML SP is able to expose its metadata |
20:17 |
|
pdurbin |
"non-working" means when I uploade the IdP metadata, OIOSAML gives me a NullPointerException when I try to download the SP metadata |
20:17 |
|
pdurbin |
but I think the TestShib guy just figured it out |
20:18 |
|
pdurbin |
http://www.testshib.org/metadata/testshib-providers.xml has multiple EntityDescriptor elements. one for the IdP and one for the SP |
20:18 |
|
pdurbin |
if I delete the SP EntityDescriptor element, OIOSAML can handle it. that is to say, it can handle the one EntityDescriptor element for the IdP |
20:19 |
|
pdurbin |
whartung: should I file a bug? should OIOSAML be able to support a metadata file that has multiple EntityDescriptor elements in it? |
20:20 |
|
whartung |
I would damaging it should, yea |
20:21 |
|
pdurbin |
ok |
20:21 |
|
whartung |
https://wiki.shibboleth.net/confluence/display/SHIB2/MetadataCorrectness |
20:21 |
|
whartung |
I'd look at that |
20:22 |
|
whartung |
so, here |
20:22 |
|
whartung |
A SAML metadata instance describes either a single entity or multiple entities. In the former case, the root element MUST be <EntityDescriptor>. In the latter case, the root element MUST be <EntitiesDescriptor>. |
20:22 |
|
whartung |
that's pretty clear |
20:25 |
|
pdurbin |
whartung: you're quoting some other doc, right? |
20:25 |
|
whartung |
http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf |
20:25 |
|
whartung |
that's the standard |
20:26 |
|
pdurbin |
2.3 Root Elements |
20:26 |
|
pdurbin |
thanks |
20:26 |
|
whartung |
yea, nice to have a reference for a bug report |
20:27 |
|
pdurbin |
absolutely |
20:35 |
|
|
Selarius left ##javaee |
20:36 |
|
pdurbin |
ok, I just summarized for the list: OIOSAML SP demo authenticating against the IdP from testshib.org - http://shibboleth.net/pipermail/users/2013-October/012558.html |
20:36 |
|
pdurbin |
whartung: thanks! |
20:36 |
|
whartung |
yw |
20:36 |
|
* pdurbin |
heads out to pick up the kids |
20:37 |
|
* whartung |
hopes they're pdurbin's kids, and not something…worse. |
20:37 |
|
pdurbin |
I heard that |
20:38 |
|
* whartung |
whistles tunelessly |
20:47 |
|
sfisque |
anyone want to posit why 0^0 has to map to 1? |
20:47 |
|
whartung |
Knuth says so -- good enough for me |
20:47 |
|
sfisque |
lolz |
20:47 |
|
sfisque |
the set that contains the empty set contains 1 element. |
20:48 |
|
sfisque |
simplest explanation i've ever encountered (my numerical analysis prof many years ago) |
21:45 |
|
sfisque |
on an unrelated note, does anyone know if there is any OS initiative to produce a javaee or java-based-stack that does what diaspora does (facebook minus facebook.com) |
21:45 |
|
sfisque |
i know diaspora is pretty much LAMP based and i'm interested in a javaee container equivalent |
21:47 |
|
whartung |
No, I haven't heard of one. |
21:47 |
|
whartung |
java tends to not be popular in those circles. |
21:52 |
|
sfisque |
tis a shame. an EE container would offer all the necessary facilities and standards based |
21:53 |
|
* sfisque |
in his best NPH voice... |
21:53 |
|
sfisque |
CHALLENGE ACCEPTED!!! |
21:54 |
|
whartung |
:) |
21:54 |
|
whartung |
what features/services are you thinking about? |
21:55 |
|
sfisque |
similar to FB. personalized blog/status/content management with a P2P (or i guess S2S) fabric support |
21:56 |
|
sfisque |
which is pretty much what diaspora does but it's all LAMP from what i saw when it first released |
21:56 |
|
whartung |
yea |
21:56 |
|
sfisque |
and i'm not a fan of php |
21:56 |
|
sfisque |
not that i dislike it, but i definitely prefer the facility of jee |
21:57 |
|
sfisque |
i would say, i'm kind of indifferent to php. it's useful, but not one of my favored tools |
21:57 |
|
tjsnell |
you ever get your camel issue figured out? |
21:57 |
|
tjsnell |
one thing you could do is write a simple consumer to grab and examine the message and headers I guess |
21:57 |
|
tjsnell |
php sucks! |
21:58 |
|
tjsnell |
I spent the last 18 months with it |
21:58 |
|
tjsnell |
never again :) |
21:58 |
|
tjsnell |
http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ says it well |
21:58 |
|
sfisque |
sort of. i think the issue i'm having is firewalling. the rar loads, but when i try to conf the pool/etc. i get connection issues. i'm looking to find a running instance in our WAN that is not protected by a content switch |
21:59 |
|
sfisque |
i walked thorugh the source code. it looks like a straight 1:1 mapping of AMQ Message -> JMS Message where "headers" are encoded as "Properties" |
22:00 |
|
sfisque |
once i find a reachable instance, i'll run some tests. if all goes well, expect a write up on my wiki and maybe a cross post on SO. does SO have a thread for "non questions"? |
22:00 |
|
whartung |
no…they're humorless about things like that. |
22:00 |
|
whartung |
"Not a question. CLOSED! STFU!" |
22:00 |
|
whartung |
"whatever" |
22:01 |
|
sfisque |
aye |
22:01 |
|
sfisque |
it's funny SO is actually quite invaluable, but yeah, you see quite a few "meat heads" post. |
22:01 |
|
whartung |
yea |
22:02 |
|
sfisque |
i've gotten the impression over the years that many "ranked" posters on SO spent time shoved into lockers in high school |
22:02 |
|
whartung |
haha |
22:02 |
|
whartung |
DID NOT! |
22:02 |
|
whartung |
; |
22:02 |
|
whartung |
:) |
22:02 |
|
sfisque |
ROFL |
22:03 |
|
sfisque |
i can say, i am glad mom and dad were tall. even burly football players shy away from a kid who stands 6'3" |
22:04 |
|
* sfisque |
pours one out for his mom and dad and homies |
22:04 |
|
sfisque |
but anywho…. CHALLENGE ACCEPTED… my new personal project will be a pure jee diaspora clone :P |
22:05 |
|
sfisque |
or rather FB clone since i do not know diaspora's full feature set |
22:05 |
|
sfisque |
or some red-headed-step-child-science-experiment-gone-wild version thereof |
22:05 |
|
whartung |
I'm on Page 14 of 60167 :) |
22:05 |
|
* sfisque |
wrings his hands like a mad scientist |
22:05 |
|
sfisque |
ALIVE!!! ALIVE!!!! |
22:06 |
|
sfisque |
WTF has 60k pages? |
22:06 |
|
whartung |
Users on SO |
22:06 |
|
sfisque |
oh, lolz |
22:06 |
|
sfisque |
is that by ranking or alpha? |
22:06 |
|
sfisque |
i'm probably somewhere around page 53k if i had to guess |
22:06 |
|
whartung |
ranking desc |
22:07 |
|
whartung |
reputation I should say |
22:07 |
|
sfisque |
aye |
22:07 |
|
whartung |
used to be more active. |
22:07 |
|
sfisque |
i think i had like 80 last i checked, which is better than zero :P |
22:15 |
|
whartung |
this is lame. maybe I'm doing it wrong. |
22:15 |
|
whartung |
in JAX-RS |
22:15 |
|
|
kinabalu joined ##javaee |
22:15 |
|
whartung |
they have a Response and ResponseBuilder |
22:16 |
|
whartung |
and you (can) use that to return an error code |
22:16 |
|
whartung |
but, apparently, unlike the Servlet, you can't add a tag say what the problem is(!!) |
22:26 |
|
|
kinabalu joined ##javaee |
22:35 |
|
pdurbin |
sfisque: not Java EE but how about https://github.com/e14n/pump.io ? It's something like Facebook and written in node.js |
22:42 |
|
sfisque |
it's not clear on the delivery mech. does JS talk directly to the database? |
22:43 |
|
sfisque |
oh nm, it has a dedicated daemon |
22:43 |
|
pdurbin |
it uses https://github.com/evanp/databank |
22:43 |
|
sfisque |
so it's a dedicated pipe exposed via JS |
22:44 |
|
sfisque |
right so it's a dedicated daemon fronting databank and exposing the data to JS in teh web page. :-/ |
22:44 |
|
sfisque |
nifty, but not really what i'm looking for |
22:45 |
|
pdurbin |
no? it uses this: Activity Streams - a format for syndicating social activities around the web - http://activitystrea.ms/ |
22:45 |
|
whartung |
I love node.js -- it gives everyone a need to rewrite everything, again, from scratch, again, and THIS TIME DO IT RIGHT!! (unlike that creaky java stuff…) |
22:45 |
|
sfisque |
aye i saw that mentioned in the treatment |
22:46 |
|
pdurbin |
sfisque: ok. start something in Java EE 7 and we'll send you pull requests :) |
22:46 |
|
sfisque |
i'm already dreaming up the boilerplate :P |
22:47 |
|
pdurbin |
:) |
22:48 |
|
sfisque |
i'm conceptualizing on an interesting paradigm that i've not seen done before (fragmented UI by doing a "per component" controller — i.e. "new feed widget backed by controller", menu widget backed by controller, etc. so the page becomes highly componentized, rather than semi componentized (multiple widgets fed by the same controller. not sure if it would work, but i'm willing to try it out and either fail amazingly or have s |
22:50 |
|
sfisque |
maybe leverage primefaces since they have some very nice ajax support in their custom widgets |
22:50 |
|
sfisque |
thoughts… thoughts….swirling in my head |
22:52 |
|
pdurbin |
primefaces seems like a good way to go |
22:54 |
|
sfisque |
on a side note, i'm almost done with my new android version of an old j2me app i write 5 years ago. it consumes the local bus/lightrail webservices so you can see "stop times" for stops stored in a local db. it now features a "nearby" button that uses location services to find the nearby bus/light rail stops. |
22:54 |
|
sfisque |
just have to do the i18n stuff and i can publish it |
22:54 |
|
whartung |
is there any commonality to those web services? |
22:55 |
|
sfisque |
one of the neat features of the local mass transit is the put gps in all the vehicles so the webservices publish upto to date arrival/departure times |
22:55 |
|
whartung |
yea |
22:56 |
|
whartung |
just wondering if southern california has similar facilities . I know they have their own app, dunno if they publish it to the world, dunno how close what they have is to what you use |
22:57 |
|
sfisque |
if it's SF, yes they do. they are partnered with trimet (pdx) here |
22:59 |
|
whartung |
this is a lovely website |
22:59 |
|
whartung |
http://bustime.mta.info/wiki/Developers/SIRIIntro |
23:02 |
|
pdurbin |
this is what I use: Just Hop On - SMS Text Messaging Service for MBTA Bus Route - http://justhopon.com |
23:10 |
|
pdurbin |
I really like that it supports SMS. so simple |
23:14 |
|
sfisque |
nifty |
23:16 |
|
whartung |
I live in OC, the Bus is basically unusable |
23:19 |
|
whartung |
yea, for me to take a bus home would be 1h 17m |
23:19 |
|
whartung |
for 6.7mi journey |
23:20 |
|
whartung |
barely faster than walking speed |
23:29 |
|
sfisque |
ouch |
23:48 |
|
pdurbin |
biking is twice as fast as the bus |
23:48 |
|
whartung |
yea |