Member Avatar

I bought [Iiyama XB2783HSU-B1DP](http://www.iiyama.com/gb_en/products/prolite-xb2783hsu-b1dp/) monitor. However I'm not able to connect my MacBook Pro 2015 from HDMI with [DisplayPort to HDMI](https://www.alza.co.uk/roline-displayport-hdmi-connection-shielded-2-m-d504901.htm?catid=18848641) cable. From monitor menu I am able to select DisplayPort, but monitor will fail to receive any signal from laptop. I tried to connect monitor with Asus laptop, DisplayPort no signal again, while connection through VGA port works fine. Any advice?

Member Avatar
+0 forum 3
Member Avatar

Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this. For these of you who would like to learn more or start with Java Microedition - JME (also known as J2ME) here are few tips What you need for development (download links) Your favourite IDE and [Sun Java Wireless Toolkit 2.5.2 for CLDC Download](http://java.sun.com/products/sjwtoolkit/download.html) (the latest available version as 13/07/2008) [NetBeans](http://download.netbeans.org/netbeans/6.1/final/) with integrated Mobility IntelliJ IDEA, Eclipse ( [setup](http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.mtj.doc.user/html/gettingstarted/gettingstarted.html) …

Member Avatar
+9 forum 7
Member Avatar

List followed by code snippet does not render properly. Example * Item One * Item Two * Item Three Log.i(MainActivity.class().getSimpleName(), SOME_MESSAGE); //info Log.d(MainActivity.class().getSimpleName(), SOME_MESSAGE); //debug Log.w(MainActivity.class().getSimpleName(), SOME_MESSAGE); //warning Log.e(MainActivity.class().getSimpleName(), SOME_MESSAGE); //error

Member Avatar
+3 forum 12
Member Avatar

I have four JTextFields where user is allowed to enter only numbers. Question is how do I do this?

Member Avatar
+0 forum 9
Member Avatar

Does anyone can recommend some application to play Blu-ray on pc? I have CyberLink PowerDVD 8 that came with optical drive, but often there is a lag (visible stop in playback). I would love if VLC player people added BR support to application, but at the moment libbluray is more of trouble then success

Member Avatar
+1 forum 7
Member Avatar

I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images. Question is - how do I include txt file which is used for reading and writing?

Member Avatar
+0 forum 11
Member Avatar
Reusable Code Snippet Check if array has duplicates

Simple code to see if array of primitives has duplicates. The aim is to only check if there are any duplicates, but not to check what element is repeated, or its position etc. PS: Do you know some handy snippet? Don't way, post it!

Member Avatar
+4 forum 5
Member Avatar

Can you please replace text fields in Edit profile for short bio and others to text area? Editing of more then 20 characters data is just impossible in current state

Member Avatar
+0 forum 7
Member Avatar

Two ints and a float are in a bar. They spot an attractive double on her own. The first int walks up to her. “Hey, baby”, he says, “my VM or yours”. She slaps him and he walks back dejected. The second int walks over. “Hey, cute-stuff, can I lick your Bean?”. After a quick slapping, he too walks back. The float then ambles over casually. “Were those two primitive types bothering you?”, he remarks. “Yes. I’m so glad you’re here”, she says. “They just had no Class!”

Member Avatar
+0 forum 6
Member Avatar

Can we possibly have pre-fix message to [B]Use the snippet textbox to post your working and fully tested code snippet. Do not use code tags as the snippet will automatically be Java syntax highlighted.[/B] that is showed once member switch from Discussion Thread to Code Snippet something along the line of: [I]Please do not use Code Snippet for posting question. Code Snippets are reserved for sharing functional code with community.[/I] This should be in red colour to catch the attention My reason, code snippets are mostly misused by new posters thinking that it is the way to post their question …

Member Avatar
+2 forum 1
Member Avatar

Since we are already mentioned in [URL="https://github.com/search?q=daniweb&type=Everything&repo=&langOverride=&start_value=1"]few projects[/URL] ;) could we get official account where we may actually upload tutorials and link them in posts? That will also mean that someone will have to actively monitored or perhaps mods or selected members would be contributors.

Member Avatar
+1 forum 10
Member Avatar
Reusable Code Snippet Multi-line ToolTipText

Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy. With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.).

Member Avatar
+2 forum 3
Member Avatar

People did any of you come across good tutorials on hash tables??? What I got from schools is useless and teacher is not able to explain properly. Thanx for help

Member Avatar
+0 forum 8
Member Avatar

For these whom may be interested in new stuff about Java 7 here is web broadcast from few days back [URL="http://www.oracle.com/us/corporate/events/java7/index.html"]Java 7 Celebration Webcats[/URL] PS: Didn't watch it yet so have no idea if any good :D

Member Avatar
+2 forum 2
Member Avatar

Anyone following IIHF World Championship 2011 from Slovakia?

+0 forum 0
Member Avatar

I'm trying to find some "common" human understandable resources in regards of memory management, beside resources from Sun/Oracle that are sort hard to digest. There are plenty of short articles and blog entries, but they mostly touch just certain aspects of this subject

+0 forum 0
Member Avatar

I'm trying to get hang of custom events and listeners. I found example of single event-listener, but I'm curious how to extend from single method to multiple that are related. [code=Java]public interface CountListener{ public void countEvent(int count); public void multiplyEvent(int multi); }[/code] [code=Java]public class Counter implements CountListener{ public void countEvent(int count){ System.out.println("Counter: "+count); } public void multiplyEvent(int multi){ System.out.println("Multiply: " +multi*multi); } }[/code] [code=Java]import java.util.*; import java.lang.reflect.Method; public class CountTest { ArrayList listeners; public void addCountListener(CountListener c){ listeners.add(c); } public void removeCountListener(CountListener c){ if(listeners.contains(c)){ listeners.remove(listeners.indexOf(c)); } } public void fireEvent(int count, Object methodObj){ Iterator i = listeners.iterator(); while(i.hasNext()){ //((CountListener)i.next()).countEvent(count); Object …

Member Avatar
+0 forum 9
Member Avatar

I have file that contains Unicode characters from Latin-1 and Latin Extended A sets (link to [URL="http://unicode.org/charts/"]Unicode charts[/URL]). How do I read it so that these unicodes are converted to proper characters? I tried [code=Java] public void readFile(File file) { try { BufferedReader in = new BufferedReader(new FileReader(file)); String noneUTF; while ((noneUTF = in.readLine()) != null) { byte[] utfBytes = noneUTF.getBytes("UTF8"); String str = new String(utfBytes, "UTF8"); jta.append(str + "\n"); } in.close(); } catch (IOException ioe) { ioe.printStackTrace(); } }[/code] and [code=Java] public void readFile(File file) { StringBuffer buffer = new StringBuffer(); try { FileInputStream fis = new FileInputStream(file); InputStreamReader …

Member Avatar
+0 forum 13
Member Avatar

1. Keep It Organized - Do not hijack old threads by posting a new question as a reply to an old one 2. Keep It Organized - Do provide evidence of having done some work yourself if posting questions from schoolwork assignments 3. [URL="http://www.daniweb.com/forums/announcement8-2.html"]We only give homework help to those who show effort[/URL]

+0 forum 0
Member Avatar

I have VLC running on my laptop which does happily plays CDs and movies on the local disk. However I'm not able to play DVDs. In the Preferences under Input & Codecs Settings where default disk device can be set I'm getting 2 question marks in diamond shape and the browse button next to text field doesn't respond. I have distinct feeling that Ubuntu is not picking my DVD driver correctly and misplacing it with CD drive. Suggestion how to solve this issue?

Member Avatar
+0 forum 6
Member Avatar

Would be possible to create "generic" sub-forum in Databases where we can place any db related stuff which doesn't fit into any of our present options?(MySQL, MS SQL, Oracle, MS Access and FileMaker Pro, Database Desing) Having something similar to Software Development sub-forum Legacy and Other Languages. Reason: Often there is no real place to move questions on SQLite, Derby, DB2, HSQLDB, Postgres, MongoDB and many others and have to leave them either in Software Development section with language they are used or IT Professionals' lounge. This is pointless specially if asked question is on user or admin side instead …

Member Avatar
+0 forum 15
Member Avatar

Ahh, long time since I was on pposting end :D Ok here it goes. The code bellow show mobile application that takes string from user and past it on to servlet. Servlet read it add extra data on front of message and send it back to mobile device that display this new message. My problem is the red marked part. I'm able to read correct length of sent bytes from server, I'm able to store it in byte array but can not convert back to string. application system calls will be like this [code]before transmit name=Peter length = 23 reading …

Member Avatar
+0 forum 10
Member Avatar

It was brought to my attention that Announcements like [URL="http://www.daniweb.com/forums/announcement8-2.html"]We only give homework help to those who show effort[/URL] link does not work for some people. For example javaAddict in [URL="http://www.daniweb.com/forums/post1301935.html#post1301935"]this post[/URL]. However I don't have such problem

Member Avatar
+0 forum 10
Member Avatar

I have table something like [ID, ITEM_ID, URI, IMAGE_FILE_NAME, UPDATED_AT etc.]. I need to compare URI that can be something like /system/images/777/medium/Debrecen_-_University.jpg?1279547675 with IMAGE_FILE_NAME that is as Debrecen_-_Protestant_Great_Church.jpg Is there a way so I can provide IMAGE_FILE_NAME as sort of substring of URI and check if that substring is part of the string?

Member Avatar
+0 forum 4
Member Avatar

When I created new project I went to [I]Solution Explorer[/I] and in [I]Properties[/I] I double clicked on [I]Resources.resx[/I]. Here I clicked on [I]Add Resource[/I] and [I]Add Existing File[/I]. Selected images been added and I can use them for darg&drop on form. My problem is I need to create sort of rollover effect on pictureBox. PictureBox image property is set to none for start. When I go with mouse over pictureBox I want to upload image from resources. How do I do it? [code] pictureBox.Image = [COLOR="Red"]? ? ? ? ?[/COLOR][/code] PS: Any good place with C# tutorials?

Member Avatar
+0 forum 7
Member Avatar

I have this long winded query [code=sql]select i.id,i.name, i.item_type_id, (select it.name from items it, relations rel, relation_types relType where it.id=rel.to_id and rel.from_id=i.id and rel.relation_type_id=relType.id and relType.name='CityCtountry') as cityCountry from items i where i.item_type_id=2;[/code] Cut the long story short, we inherited database from customer that hasn't been happy with other company, but so far they refuse to let as redesign it so we have to deal with what we have. At the moment there is some 8k entries and about half of them are cities that I need to get from DB including a name of country they belong to. Above …

Member Avatar
+0 forum 7
Member Avatar

There is problem with viewing menu option while in Control panel. Please attached screenshot [attach]15003[/attach] Also having start new thread button on the top rather at the bottom would be more preferable.

+1 forum 0
Member Avatar
Reusable Code Snippet jQuery forward array to server

In my current project we need to provide drag&drop functionality of items from left to right and vice-versa and on click of the button send array of item IDs to server. Main problem was that we couldn't get array across to server and online examples that we found did not work. Above snippet will grab "id" attribute of all list elements (order/unorder list) from container with ID of "sortable2". Push IDs from listed elements to array "ids". After that, it will get currently selected value from drop down menu and store it in "id" variable that is used in next …

+2 forum 0
Member Avatar

I have little bizarre problem. Working in Java web development we have project that we use plenty of templates from Velocity. Where one template can refresh section of it self and display one or more templates. My problems is that in parent template I have to pop up window with message if in child template and item from group A been moved to group B or vice-versa. Anyone has any idea how change on child template can be propagated up to parent?

Member Avatar
+0 forum 3
Member Avatar

I running my little blog on Tomcat 6 server. My hosting company allows me to set up multiple sub domains. I was trying to do for last few hours, but no luck. Having started with [code=xml] <Engine name="Catalina" defaultHost="mydomain.co.uk"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="mydomain.co.uk" appBase="/home/user/public_html" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>www.mydomain.co.uk</Alias> <Context path="" reloadable="true" docBase="/home/user/public_html" /> <Context path="/manager" docBase="/usr/local/tomcat/users/user/tomcat/webapps/manager" privileged="true" antiResourceLocking="false" antiJARLocking="false" reloadable="true" /> </Host> </Engine>[/code] I added new host to engine as [code=xml] <Host name="code.mydomain.co.uk" appBase="/home/user/code_public_html" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>code.mydomain.co.uk</Alias> <Context path="" reloadable="true" docBase="/home/user/code_public_html" /> </Host>[/code] I tried to also follow Virtual Hosting and Tomcat [URL="http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html"]1[/URL] and [URL="http://www.ex-parrot.com/pete/tomcat-vhost.html"]2[/URL] (2nd …

Member Avatar
+0 forum 1

The End.