Wednesday, June 29, 2011

I.T Student you need help..?

Just post your problem in any programming language then wait for the response. We are junior developer trying to help student like you..

16 comments:

Cris said...

We have a project in school on developing a library system using php. Any advise?

Anonymous said...

Hello,

Can you help me with my Alfresco project in school? How will I able to use CRON Jobs on Alfresco?


Looking forward for your reply!

bluestella said...

Hey Chok!

Great way to start blogging! Keep it up! :)

Project Desk said...

@cris just go in your librarian and ask for the information that will help you to develop a library sysytem.

Example:
How much the penalty of the book per day.

Just think what all the possible information you need to complete your project..

Project Desk said...

About the CRON JOBS project just send me your e-mail and i will send you a PDF tutorial..

Anonymous said...

I am trying to sort through a list of SOCKS proxies, and figure out which ones have a connect and read time of less than 1000ms, here is my code

for(Proxy p : proxies) {
try {
URLConnection testConnection = testUrl.openConnection(p);
testConnection.setConnectTimeout(TIMEOUT_VALUE);
testConnection.setReadTimeout(TIMEOUT_VALUE);
success.add(p);
} catch(SocketTimeoutException ste) {
System.out.println("Proxy " + p.address().toString() + " timed out.");
}
}

But every single one of them passes the test, even when I do TIMEOUT_VALUE = 1; What am I doing wrong? Thanks for any help.

mike said...

In java I have put one byte like this. How do I reserve next 3 bytes? I heard that it's better to pack data in multiples of 4 bytes

final byte PACKET_TYPE = 3;
bBuffer.put(PACKET_TYPE);

Also, if I want to fix a string data field as 48 bytes then how do I handle if string data is less than 48 bytes? I don't want to add the size of string...

Thanks in advance...

Project Desk said...

add this line then look for the value return.

testConnection.getConnectTimeout();

hope this line will help..

Anonymous said...

but its not workin... anything else?

gillyhuang said...

I'm the one who asked about CRON jobs, and here is my email.

gillyhuang@guerillamail.org

Anonymous said...

We have a application which is installed by root user on a Solaris 10 server. if we start the application services by using following command, it works perfectly, and no problem at. but if we use "sudo -u root" to restart the services, it will have all sorts of permission issues, can any one tell me the difference bewteen

"sudo su - " and "sudo -u root"

blue said...

Can you help me on this?


Please correct the errors below then click Finish.

Failed to create content due to error: 05300002 Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnCreateNodePolicy.onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef) in transaction df2326d6-a50c-4419-817d-c711f0961760

chinggay said...

Any idea on how I'll do MVC framework in ASP.net?

Phil Rasmussen said...

I am using Coldfusion9 to interact with a 3rd party SOAP service with which I need to both send and receive SOAP with attachments. I am having no issue in receiving the SOAP which may or may not have binary attachments by using ToString() around the HTTP content to convert the SOAP Body into a usable string, however the service requires that I send my response back using attachments as well which is where I am coming undone. I've just never done this in ColdFusion and i'm not exactly sure how I should be presenting this to the originating service so that the SOAP body is referenced via an ID.

Below is the parsing of the incoming SOAP data with attachments







#http_item#: #StructFind(soapData.headers, http_item)# #chr(10)##chr(13)#

request_method: #soapData.method# #chr(10)##chr(13)#
server_protocol: #soapData.protocol# #chr(10)##chr(13)#
http_content --- #chr(10)##chr(13)#
#toString(soapData.content)#





Now I am currently presenting the response as a full SOAP XML response containing the body as inline XML with the required STATUSCODE (see below).






00






[\s]*<)','><','ALL'))>


#strResponse#
The above response is throwing an error because the SOAP service requires the response to be sent referencing the body message as an attachment exactly like follows from the documentation:

HTTP/1.1 200 OK
Date: Thu, 01 Apr 2010 09:30:25 GMT
Server: Jetty/5.1.4 (Windows XP/5.1 x86 java/1.5.0_15
Content-Type: multipart/related; boundary=soaptestserver; type="text/xml"; start=""
SOAPAction: ""
Content-Length: 796
Connection: close

--soaptestserver
Content-ID:
Content-Transfer-Encoding: 8bit
Content-Type: text/xml; charset=utf-8
Content-Length: 442



--soaptestserver
SOAP Interface
www.travelsolutions.com 123
travel solutions online V14.0 External System Integration
Content-ID:
Content-Transfer-Encoding: 8bit
Content-Type: text/xml; charset=utf-8
Content-Length: 65

00
--soaptestserver--


Any help would be greatly appreciate as i'm really hitting my head up against a wall on this one. Thanks!

Project Desk said...

@chinggay
try this blog http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx

just follow the instruction and you can make MVC framework in asp.net.

Anonymous said...

I'm retrieving recurrent events from a Google calendar using the Google APIs Client Library for Java. Using the Data API Atom Reference, one option is to get recurrences in expanded form with singleevents=true, but I'd also like to look at the alternative of retrieving them as a series of Whens, as the Reference recommends:

Specifically, each recurring event is represented by a element in the result feed, and each of those elements includes a element for each occurrence of that event that falls between the start time and the end time. Looking at elements is much simpler than parsing recurrences and exceptions yourself...

I'm sure it is, but how do I get at them? I've put this into my EventEntry class:

@Key("gd:recurrence")
public Object recurrence;

which gives me back the recurrence in iCalendar format. I presume I need instead:

@Key("gd:recurrence")
public Recurrence recurrence;

where Recurrence will be something like:

public class Recurrence {
@Key("???")
public List whens;
}

but what do I need instead of "???" ? Or is this the wrong approach entirely?