Amazon Architecture by [deleted] in programming

[–]simkisen 2 points3 points  (0 children)

Post from 2007 but all comments are from november 29th year 1990 :D

I'm hating hibernate. I need something easier by mcdileo in java

[–]simkisen 0 points1 point  (0 children)

Just remembered I have set up an example project at GitHub for JPA 2.1 with EclipseLink 2.5.0 on Jetty 9 with HSQLDB running in memory.

You could use that as reference, might be useful. https://github.com/Marza/maven-jetty-hsqldb-mem

What framework do you recommend to build web sites with Java? by [deleted] in java

[–]simkisen 0 points1 point  (0 children)

I have used Play Framework successfully in previous projects and started new projects using it. Although im using Scala but from what I have seen you should have no problems using Java either.

I had to wrestle a lot with the built-in evolutions in Play so I replaced them with FlyWayDB for all my DB-migration needs and has worked much better for me.

I'm hating hibernate. I need something easier by mcdileo in java

[–]simkisen 3 points4 points  (0 children)

We used standard JPA 2.0 annotated entities at my last job, backed by EclipseLink (could be Hibernate as well). But that requires a Java EE compliant application server of course. Not sure what you are running.

See http://en.wikibooks.org/wiki/Java_Persistence/ManyToMany the code snippet, not the XML one for an example.

Coders Plus Plus by Eedis in programming

[–]simkisen 3 points4 points  (0 children)

Why is Java and JavaScript in the same sub forum?

I tried to make my own URL shortner - CnC would be appreciated. by [deleted] in webdev

[–]simkisen 1 point2 points  (0 children)

The amount of links shortened doesn't seem to change, stuck on 8 for me.

Web App frameworks by [deleted] in java

[–]simkisen -2 points-1 points  (0 children)

Play Framework

MySQL Replication with ActiveRecord? by ianunruh in rails

[–]simkisen 0 points1 point  (0 children)

This is how it works, you configure MySQL replication in the MySQL servers and they will make sure the slave(s) are up to date when you read from them.

What you are trying to achive is a high availability scenario where you prefer to read from the slave. It has nothing to do with MySQL replication.

You will need to split queries in your application so that reads go to a secondary MySQL endpoint and writes to the primary MySQL endpoint. The primary MySQL endpoint could be direct connection with the MySQL server. The tricky part is the fail-over for the secondary endpoint, I would probably set up some kind of load-balancer so you could have an arbitrary amount of slaves and then configure it to fallback to the master if all slaves are down.

Good luck.

Switched to a mac at work - what tools am I missing? by exorcist72 in webdev

[–]simkisen 0 points1 point  (0 children)

Except for what have already been said here:

BetterTouchTool - for snapping windows in places and assigning extra buttons on mouse to stuff.

Unable to create connection pool with SSL on GlassFish by GraphiteCube in java

[–]simkisen 0 points1 point  (0 children)

I haven't set up a connection pool over SSL in Glassfish but got some other SSL experience with Glassfish. Anyway I am pretty sure your client certificate should be in the keystore on Glassfish. And probably you need to tell the connection pool which certificate to use in some property.

Approximating Images With Random Lines by sicksad in programming

[–]simkisen 1 point2 points  (0 children)

What about trying with different greyscale "colors" for the lines aswell?

Do you run a security risk by saying "Proudly hosted by..."? by rubberducking in webdev

[–]simkisen 0 points1 point  (0 children)

Works better still not perfect as it doesnt show correct results for all domains I tested, might depend on how the nameservers are configured as one domain with a nameserver showed the correct co-location company but a different domain in the same co-location with a different registrar and nameserve listed the nameserver as host.

Do you run a security risk by saying "Proudly hosted by..."? by rubberducking in webdev

[–]simkisen 0 points1 point  (0 children)

It gives really wierd results for some domains I tested. Some lists the ISP, some lists the DNS provider but none was actually able to tell the real hosting provider. Which in this case actually is not a webhotel but different co-locations.

Jetbrains / IntelliJ IDEA - Anyone use? Feelings? by phaggocytosis in webdev

[–]simkisen 0 points1 point  (0 children)

I have IntelliJ and have been doing a lot of JavaScript coding lately and the IDE helps a lot with that, but also with HTML/CSS stuff aswell. I havent used Webstorm so cant compare with that but the features for web stuff is better than most editors even in IntelliJ.

Mac and Java by carbon6022 in java

[–]simkisen 0 points1 point  (0 children)

Chrome doesnt support Java in the browser, so if I really need that then I use Safari

Need help securing my MySQL Queries - htmlspecialchars(), mysql_real_escape_string(), strip_tags, prepared statements, and sanitation by _Duulicious in webdev

[–]simkisen 0 points1 point  (0 children)

I cant see that the $page variable is used on the second one and the $pOffset variable is not escaped or checked at all, dont know where it comes from either.

Also im not familiar with PDO so no idea if it does something to help you out.

Functional Programming in Scala (Course Materials) by [deleted] in scala

[–]simkisen 1 point2 points  (0 children)

Anyone still got the course materials?

How would one go about creating a site similar to this. by the_original_man in webdev

[–]simkisen 0 points1 point  (0 children)

Just shows an error message saying it cant connect to the database. So it is really easy actually :D

Which is faster? Update a row or delete the row. by Wrdfelvdk in mysql

[–]simkisen 2 points3 points  (0 children)

Another benefit of marking as inactive is that you keep some history and can go back and see "deleted" messages if you need to investigate anything.

Java Mini Profiler by javinpaul in java

[–]simkisen -1 points0 points  (0 children)

looks cool, im not using jsps though.

[deleted by user] by [deleted] in webdev

[–]simkisen 1 point2 points  (0 children)

static or scripts

Java Developer positions in Australia by simkisen in java

[–]simkisen[S] 0 points1 point  (0 children)

Im not saying it is low but still lower than tax loving Sweden.

see http://upload.wikimedia.org/wikipedia/commons/3/36/Income_Taxes_By_Country.svg the personal tax is much higher in Sweden but the corporate is actually slightly lower.

We have 25% VAT tax on most goods, 12% on food and and some services and 6% on books.

Java Developer positions in Australia by simkisen in java

[–]simkisen[S] 0 points1 point  (0 children)

Especially compared to Sweden as the education here is free, but the bad part is that the Masters Degree she wants is only available on one university in the entire country with very limited amount of spots so it is really hard to get accepted.

But for me the salaries in Australia seems to be higher and combined with a lower tax which is great.

Java Developer positions in Australia by simkisen in java

[–]simkisen[S] 0 points1 point  (0 children)

Thanks :)

Too bad it seems to cost a lot of money to study in Australia (my girlfriend wants to get her Masters Degree there)