Posts

java - Can a transaction have many threads? -

Normally We have some business logic that has a bottle neck Due to a set of business logic data within a transaction (read only), it queries the database, executes it, and returns an object. In a given request, it should be done multiple times with different parameters. Can we break every business logic call into a separate thread? Specially EJB object (part of an HTTP request on a JBoss application server) of objects that apply to the refundable - Creates (call system called business logic method) Using an ExecutorService Each Refund object invokes the business logic which uses a PreparedStatement POJOs We use a question in the PostgreSQL database - Resolverized Objects from Objects that come from Postgrassel - Haman After this we get errors of postgres, whose names portals do not exist, whenever we limit our thread to one: Previous> Error: Cursor "& lt; Unknown Portal 777 & gt;" Does not exist STATEMENT: FETCH ALL IN "& lt; anonymou...

ruby on rails - Send Facebook notification to user who registered on my site via facebook connect -

I'm unsure of the developer documentation for Facebook. bad. I am using the plugin in Facebook so that Facebook can connect with Facebook. Now when there are some things, I want to send some information through Facebook to some users. I have heard something that the information should go from one user to another, but I have seen the evidence otherwise. I signed up on the site through FB Connect, and now they send me daily annoyingly daily information about new things on my site. Also, when using an annotation widget on your site, when an anonymous user leaves the comment, I am also informed about it. So uh, how do you do this? I am rounding the whole week and nothing can be found. It seems that I would like to send a notification to a user from my app. The API call you're looking for is called what's called. The only thing is that they will disable it soon, so it is possible that it does not make any sense in applying it in your application.

sql - How do I rename primary key values in Oracle? -

Our application uses an Oracle 10g database where many primary keys come in front of the end user, product code and such misfortune It is late in doing anything with it because there are so many reports and custom scripts that we do not have control. We can not redefine the primary key or mess up the database structure. Now some customers want to change some primary key values. They initially wanted to call P23A1, now it should be called Cat 23 MOD 1 (not a real example, but you get my meaning.) Is there an easy way to do this? I prefer a script that can be parametred to fit other tables and keys, but external equipment will be acceptable if there is no other way. The problem is probably with foreign keys in terms of PK Settle the obstacles Modify the parent, in the form described in this Tom Kite article, you should define foreign keys as "instant in the beginning". Modify child values ​​ Earn changes Simple.

zend db table - duplicated column name when using join with Zend_Db_table -

I have two tables, both have a column called 'title' when I enter the two tables to add the following code I use the snippet, so I can not reach a title column. Select $ = $ this-> gt; Select (Zend_Db_Table :: SELECT_WITH_FROM_PART); $ Select- & gt; SetIntegrityCheck (wrong); $ Select- & gt; Join ("service", "service.id = lecture.service_id"); Select Return; Is there any way to access both columns? You need to rename one of the columns, so that does not conflict with the other If you pass an alternate third argument to pass another array, you can specify which columns can be retrieved from the included table. If there are one or more entries in the array, the hash key will be used as the property name. With the code below, you can specify the title column of the service table as "service_chitel" in your query results. If you want other columns from the service table, add it to the array, either as desired or without Add wi...

What's the best python idiom for grouping a list of items into groups of a specific max size? -

I want to type a function that takes the item from the list and creates a group in the size n group. For Ie, n = 5, [1, 2, 3, 4, 5, 6, 7] [[1, 2, 3, 4, 5], [6, 7] Will go What is the best idol of Python to do this? I do not know a good command to do this, but to understand it with a list of One way: l = [1,2,3,4,5,6,7] n = 5 new list = [in the range for [i: i + n] (0, Lane (L), N)] Edit: As a commentator has been told, I accidentally put [i: I + n] in a list.

c# - Running Rake from a .NET windows service -

I am a developer on the OSSS project which is the other OSS Creating projects determines to reduce the pain I We make a ruby ​​gem horn like experience One of Horn's many challenges is to deal with all the different build engines like Nanhent, Powerhale, MSBield and Rack, which is the point of this post. There are 2 expressions in the horn, it runs in the form of a CMD line tool and it also runs as a window service where it creates all the different packages that can be downloaded from the website. Some OSS projects use rakes to create their source code, which ultimately gives me the rank. I can not get the rake process to run from the Windows service, while the exact same code can start the rake process without any problems while running from the command line. The reason for this is that the rake can be run with the CMD line tool because it is connected to a window, although I can say right. No exception is thrown, but this process does not start. The funny thing is t...

language agnostic - Transferring data between Remote Desktop and Client -

I have an application that people use through remote desktop / terminal server This application supports digital signature Well, the digital sign pad is on the client, but the program runs on the server. The signature pad does not support sharing as a device through a remote desktop (not listed with "Supported Plug and Play Devices" in local resources). What is the best way to be able to send signatures from the client machine to the server? Preferably keeping the minimum set of setup for users (there are many customers in it and this should be done in a reasonable amount of server) My best idea is still sharing the clipboard. Message from the server to the client (with the client application "clipping" clipboard for a particular clipboard format) I think it is not very fast or stable, although I do not Got that the remote desktop was designed for it. In addition, we are open to [proper] language options like C / C ++, C #, Delphi (applications are written...