Ed Herrero

Greenhorn
+ Follow
since Apr 02, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ed Herrero

I've been struggling with this problem for quite some time now as it's my very first time doing an application related to streaming and I just can't figure out why. Here's the problem...

What I'm trying to achieve is to send a command's output as an input for the next one, which is basically what the pipe operator does. As I knew this couldn't be executed directly with Exec library from Apache Commons I started looking for ways to solve this. I've seen quite a few examples of similar things to this but none of them covers my situation:

I have two Java applications separated, one is the main application and the second one is initialized by the first one. This second applications sends to the Standard Output bytes, which FFMPEG should receive.



My current workaround to this problem is the following one. (Related parts of the problem are below.)



As is modified twice during execution time, what I did was to instantiate another (executorFFMPEG) to see if processing separatedly both commands was the solution to this, but it seems that I'm not getting anything from that workaround neither.

Then, who sends the bytes? This is the piece of code which sends them (), which basically is an indeterminate amount of bytes.



(more code and other things around here)



At the moment, no communication seems to be made between both commands as ffmpeg isn't receiving anything.

Hope you guys can tell what I'm missing out, or if I'm incorrectly working with the Apache Commons Exec library thinking it works in a way when it works in another one.
7 years ago
Hello guys,

I'm struggling to read the data that comes out of the speakers. The only thing that I can do is just reading the line-in built-in laptop microphone data and stream it into a file for testing.

Is there any way to capture what goes through SourceDataLine objects in the speakers or soundcards mixer? What I pretend to do is changing the TargetDataLine by SourceDataLine in order to capture the bytes going through, but I have no idea how to do it. Any clues?

This is the code I have so far (just for reading line-in devices).

7 years ago
Well, not that I do it from my main server so I manipulate their machines and run a server on them, but more like they download a developed software that starts a server with a given funcionality, something like SHOUTcast does.
7 years ago
Thinking about it a little bit more yes, it is more client/server than P2P, but they won't share their bandwidth among them to download a file in this case, it is just important the bandwidth of the host, sorry for that.

I'm not that lost in that matter... how could I implement a webapp / homepage in the external's IP of the user + a shared folder or directory which contains the files? Any project or libaries for that or should I just create like a mini-JEE project within the server app?

PS: Thanks a lot for the Apache River project info, didn't know about it, will learn a little more about it.
7 years ago
Hello guys,

The subject isn't too clear as I don't know how to describe this without going into detail. What I'm trying to do is a software that acts as a P2P server, that when started creates a webpage in the external IP of the given device with some info, info about shared files... And from the given website, how can you set up a root folder or a concrete folder to the given files such as "http://127.0.0.1:1234/test.txt" or "http://127.0.0.1:1234/shared/test.txt"?

Do you know any third party libraries or core ones that are useful for such a task?

Sorry if this question has been covered before but I haven't found any info about it and I'm just starting in P2P-oriented development.
7 years ago
Hello!

Currently I'm looking forward to create a Java webapp from scratch, throw it into the net and have a real webapp working, but I don't know if pure Java and Play Framework will be more than enough for a good looking website.

I mean, I can for sure make a site with pure Java and HTML, some CSS to make it look good and more or less decent but I think that it will not look good enough if compared to todays standards (real time username checking, instant message notifications, animations for buttons and all those things that make a website look pro).

So I would like to know, which are the technologies that I should learn in order to, after developing the basic functionality with Java, make the website evolve to the next level? I've been looking around about AJAX, JS, jQuery... which one is really worth learning? And also what about the learning curve (I've been using Java for 3 years now, since I started my degree?

I've been also investigating about the "realtime username checking" and I've found plenty of examples with PHP... I would like to hide from PHP, please, wouldn't like to use it even with a bridge!
8 years ago
Problem solved :). It seems that in the business layer, the method in charge of sending a User object with the values of the one who is login was sending an empty one.
8 years ago
JSF
That it will return the reference to the session that exists, and null if it doesn't exist one. But I've already tried changing it to false and the hashcode for the getSession method keeps changing, and if it already finds that there's one created, the hashcode should be the same, or not?
8 years ago
JSF
I've done two methods to check both getSessionMap and getSession as I was not sure.



And while the hashCode for the SessionMap remains the same, the one for the Session changes, then the session is not the same it seems...

Now I don't really have any idea what's going on here... Why would the session change between pages if its the same user who is navigating through it? Is there any way to solve it?
8 years ago
JSF

Arun Kumarr wrote:When you move from one page to another, are you sure you have the same session object?



Hm... It shouldn't change (I hope), I don't modify the user bean anytime and being a session bean should take care of it until the session is finished. How can I check the session object between pages?
8 years ago
JSF
Hello,

I'm currently trying to retrieve all the data from the user that is logged in so I can use it for example listing his emails or his contacts, or to modify or add new ones.

At the beginning, in the login screen, I use a method to put that user in session.



And to retrieve that user to show in a page his personal data in order to modify and update it, I use the following one in a call inside a .xhtml page, so as it returns "exito" (success) it will take me to the edit page.



I try to set the bean values to the user in session, but no data is shown.

I also try to retrieve it inside other beans, like to save a given email inside the users account (so I need his or her ID)



But it doesn't work like the previous case, no values are shown in the page where I want to edit the information of the user logged in. It doesn't show also the emails of that person.

Hope you can help me out a little bit with this.
8 years ago
JSF