Good Afternoon, everyone. I am new to this forum so I honestly don't know what to expect. But I wanted to see if I could get some help here with a project that I am working on (No! it is NOT homework). Without giving all the specifies, which would take to much time up, I would like to jump in and give you the details of what I am trying to do. This application I am going to be showing off some of my work with a slide show of sort with a slide effect. In the click event handler …

Member Avatar
Member Avatar
+0 forum 1

A few days ago, i made a hangman game and I really want to complete it in any aspect. One of my ideas now is to "import" words from a file. Currently what I have is an Array of Strings (just a few words inside for testing) and what I want is a file containing those 2: `Word` `Hint` word1 Hint1 with spaces word2 Hint2 with spaces What I am wondering now is can I import the file and all its context into an array maybe? and then when the game starts use regular expressions such as randomly take a …

Member Avatar
Member Avatar
+0 forum 10

Hello I have folders Admin -la -la1 customer -he -he other files And i have an an upper menu that i use <h:form> <div class="upmenuOption"> <h:commandLink action="/index.xhtml?faces-redirect=true" value="Αρχική σελίδα"/> </div> <h:panelGroup layout="block" class="upmenuOption" rendered="#{request.isUserInRole('administrator')}"> Πελατολόγιο <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div class="subUpmenu" id="test2"> <div class="SubUpmenuOption"> <h:commandLink action="/admin/index.xhtml?faces-redirect=true" value="Πελάτες"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/admin/rantevou.xhtml?faces-redirect=true" value="Ραντεβού"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/admin/history.xhtml?faces-redirect=true" value="Ιστορικό ασκήσεων"/> </div> </div> </h:panelGroup> <h:panelGroup layout="block" class="upmenuOption" rendered="#{request.isUserInRole('customer')}"> Η εκμάθησή μου <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div class="subUpmenu" id="test2"> <div class="SubUpmenuOption"> <h:commandLink action="/customer/index.xhtml?faces-redirect=true" value="Ραντεβού"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/customer/history.xhtml?faces-redirect=true" value="Ιστορικό ασκήσεων"/> </div> </div> </h:panelGroup> <div class="upmenuOption" style="width: 220px;"> Tai Υi <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div …

Member Avatar
+0 forum 0

Hello Community, I'm trying to use dynamic subdomains which works but I'm only wanting .htaccess to to send subdomains without letters, numbers and underscores (_) to the 404 page. Here is my code. Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / #Remove www. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L] #Example: http://example.com/directory/name RewriteRule ^([a-z0-9_]+)$ http://example.com/directory/index.php?name=$1 [P,L] #vv This Section vv #Example: http://name.example.com RewriteCond %{HTTP_HOST} ^([a-z0-9_]+).example.com [NC] RewriteRule ([a-z0-9_]+) http://example.com/directory/index.php?name=%1 [P,L] #^^ This Section ^^ #Remove .php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*?)/?$ $1.php [L] So if someone tries to use a subdomain that doesn't (only) contain letters, numbers …

Member Avatar
+1 forum 0

Greetings everybody, I would like to ask you which C++ libraries you use for ethernet communication? In web I found several; [boost.asio](http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio.html) [Nut/OS](http://www.ethernut.de/api/index.html) [Sockets](http://www.alhem.net/Sockets/index.html) Is there another and easy? By the way, which one of these three libraries are easier to use :) . Thanks in advance

Member Avatar
Member Avatar
+0 forum 3

I have the following queries (as examples): ~~~ sql SELECT articles.* FROM articles WHERE articles.forumid IN (2,8,118,9,61,58,34,114,112,113,125,124,4,134,42,14,71,181) ORDER BY lastpost DESC LIMIT 0, 30 ~~~ ~~~ sql SELECT articles.* FROM articles WHERE articles.forumid IN (2,8,118,9,61,58,34,114,112,113,125,124,4,134,42,14,71,181) AND NOT deleted ORDER BY lastpost DESC LIMIT 0, 30 ~~~ ~~~ sql SELECT articles.*, IF(articles.forumid = 8, articles.sticky, 0) AS show_sticky FROM articles WHERE articles.forumid IN (8) ORDER BY show_sticky DESC, lastpost DESC LIMIT 0, 30 ~~~ I have an index on the articles table as such: (forumid, deleted, lastpost, sticky). None of these queries will use this index. When I do `EXPLAIN SELECT` …

Member Avatar
Member Avatar
+0 forum 9

The End.