-
Replied To a Post in Manupilating a string in PHP
Are you quite sure its `\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),.*` and not `\((.+?),\s*(.+?),\s*(and|or)\),\s*?\((.+?),\s*(.+?),\s*(and|or\)),\s*?\((.+?),\s*(.+?),.*` ? (just kidding, but it's a great example of why regex syntax is someone's attempt at a joke that backfired with … -
Replied To a Post in Help with vb.net basic database connection, adding, deleting for ONE user
> a simple stand-alone database with only and forever ONE user. This is a family tree software Are you sure that an SQL database is the bext way to go? … -
Replied To a Post in Manupilating a string in PHP
Aren't we having fun trying to guess what the real scope and spec of the OP's problem really is! Anyway, my 2p's worth: I don't worry about OR. I happy … -
Replied To a Post in Manupilating a string in PHP
> We're assuming they're all and Not at all. The algorithm he has used copies whatever is in the boolean position in the input: and, or, xor(?) etc (with maybe … -
Replied To a Post in Manupilating a string in PHP
To drop the last boolean you could use `strrpos` to find the position of the last space (ie the character before the last boolean) and `substr` to extract all the … -
Replied To a Post in Manupilating a string in PHP
Just to be sure... is it the last boolean you want to drop or is it the first boolean? -
Replied To a Post in Manupilating a string in PHP
> the additional AND at the end of the string. Yes, I was curious about that as well. The input string has n boolean ops but the output string has … -
Replied To a Post in Manupilating a string in PHP
You need to loop through that array processing one line at a time. Each line can be exploded into the 3 words so you can put them all back together … -
Replied To a Post in Manupilating a string in PHP
You could use a strategy like Remove all the blanks. Remove the first and last paren. Split on ),( to give you each block of 3 words For each block … -
Replied To a Post in Manupilating a string in PHP
Are you missing a ] in the converted version, or is that deliberate? -
Replied To a Post in how to convert videos to blu-ray file and ISO Image?
No. Not Blu-ray for dvds, and not iso for a DVD player. There are apps for that, eg see https://www.howtogeek.com/howto/3061/burn-any-video-file-type-to-play-on-a-dvd-player/ Using a ChromeCast or similar is much easier and faster. -
Replied To a Post in how to play movies on the computer with home DVD player?
There are quite a few programs that will burn a video file into a standard DVD, but the process is tedious and slow. Why not get a ChromeCast or equivalent … -
Replied To a Post in Display certain resultset with javafx
The obvious JavaFX way to display a ResultSet is a TableView. You will find lots of examples with a quick Google, such as this one from GitHub https://github.com/seifallah/Dynamic-TableView--Java-Fx-2.0-/blob/master/DynamicTable.java -
Replied To a Post in Reguler Expression (regix) problems
> Don't know if something similar exists in Java How could you doubt it? https://docs.oracle.com/javase/10/docs/api/java/util/regex/package-summary.html -
Gave Reputation to Reverend Jim in Reguler Expression (regix) problems
I guess java doesn't have a `raw string` capability like python. I used [Regexper](https://regexper.com/) to generate the graphic. -
Replied To a Post in Reguler Expression (regix) problems
In a java string literal the backslash is an escape char, so to enter an actual backslash you need to code two backslashes -
Replied To a Post in Protocol a Software or Hardware
One is implemented in hardware, the other in software! Other differences follow from that, eg one is probably faster, but the other may be easier to update or fix. ps: … -
Replied To a Post in ComboBox in JTable Problems
Not sure exactly what behaviour you want, but if you set the editor but leave the default renderer then the combo box only shows when a cell is being edited … -
Created It lives, it lives!
Praises be to the gods! Just when I thought all hope was lost, not just one but two proper Java questions. Maybe the road to recovery starts here? -
Replied To a Post in How to add a new object to an existing file using a javaFx form
When you write the new Person to the output file you replace/overwrite the previous contents of the file, so the file only ever contains the last Person. You can't simply … -
Replied To a Post in ComboBox in JTable Problems
OK, I've loaded and run your code. The problem definitely seems to be in the shared renderer. If you simply comment out the line (~135) that sets the renderer then … -
Replied To a Post in ComboBox in JTable Problems
Renderer does not use latest value from model. -
Replied To a Post in ComboBox in JTable Problems
Sorry, I don't have the time to set up a multi-file project to try that... Can you strip it down to a single small file that demonstrates the problem? -
Replied To a Post in ComboBox in JTable Problems
Are you saying that the missing line was the fix for the problem (looks like it should be!), or do youy still have the problem with that line in place? -
Replied To a Post in ComboBox in JTable Problems
At a quick look it seems that all the cells in Col 0 share exactly the same renderer and editor , so they should all look exactly the same all … -
Gave Reputation to Susan_18 in How to set up a development environment for iOS
If recently we saw what we needed to set up a development environment for Android, now we will focus on everything we need to develop apps on Apple iOS, including … -
Replied To a Post in Changing sentence into indirect
> What method/algorithm do I need to use? or I know the logic Which? -
Replied To a Post in Biggest DaniWeb pain points
> I've been trying my very, very best to convey the benefits I see in Dazah for many years now. No one seems to fully grasp the concepts. Time for … -
Replied To a Post in Biggest DaniWeb pain points
Does it worry you that the people here who are your strongest and longest supporters have no idea what you are talking about? Did you ever consider that they constitute … -
Replied To a Post in Black screen with non-flashing white underscore upper left corner
5hubham, hibathir: I'm sure you are trying to be helpful but this topic is FOUR YEARS OLD! And, the problem was reported as having been SOLVED FOUR YEARS AGO! Do … -
Replied To a Post in Video chatting application in java
The previous posts are pre-JavaFX, which wold be vastly better for video display. A quick Google will give you lots of JavaFX video examples. Capturing the video from a webcam … -
Replied To a Post in What do you mean when you say hacker?
Seems to me that the essence of "hacking" is to gain access to some resource or capablility that the original software developer did not want you to access. As such … -
Gave Reputation to overwraith in Trump
Well, I do think my observations are related if you actually read post number 2 it justifies the assertations as being related to this topic. You don't suppose you just … -
Replied To a Post in C# gone out of Programming menu?
To make room for "encoding" and "error" perhaps? (Personally I'm not familiar with either language.) Not to mention "thermalprint" which appears in every single sub-heading. -
Replied To a Post in Boolean value in java
> I should use == operator to compare the equality of two strings Hopefully that's just a slip of the keyboard, but just in case... Yes, use `==` to test … -
Replied To a Post in How do i make a menu click down button?
> Here is the code i have Joking aside - we can't see any code, so cannot comment on it! -
Replied To a Post in convert C code to java
1. Do not hijack other people's topics 2. Do not revive years-old topics 3. Never ask others to do your work for you If you would like help in doing … -
Replied To a Post in how to create a music applicaiton
G'day to you too. Jim is right. We don't know if you are a complete beginner, a jedi master database wrangler, or anywhere else inbetween. So we have no idea … -
Replied To a Post in Biggest DaniWeb pain points
Please never never ban by ip address unless you know for certain that it’s a fixed ip. A few years ago I had all my emails blocked because someone else … -
Replied To a Post in errors in code recently purchased
Surely if you purchased this then you should go back to the vendor and insist they fix it or refund your money. -
Replied To a Post in Biggest DaniWeb pain points
> ... the least of my worries right now because that's all cosmetic ... and there is what's wrong. It should be the greatest of your worries. What the user … -
Replied To a Post in Biggest DaniWeb pain points
> Is there anything that could be done to encourage you... to post tutorials or code snippets instead? Yes, sure. A while back assertnull and I built and published a … -
Replied To a Post in Biggest DaniWeb pain points
> Ideas that I'm thinking of are: ... and how would each of those improve our Google visibility? > contemplating making some very drastic changes to DaniWeb You see these … -
Liked / Shared C programming
#include<stdio.h> int main() { int x=5; int y=50; do{ x = x + 10; }while (x <y); printf("%d\t%d", x,y); } I wonder why i compile is 55 50 why not … -
Replied To a Post in Computer working slow
How much RAM (main memory) do you have? -
Replied To a Post in javascript
We do not do homework for you. Posting the homework, with or without data, will get you nothing. Show what you have done so far and explain what's stopping you. … -
Replied To a Post in Biggest DaniWeb pain points
> what need or requirement exists that DaniWeb is well placed to satisfy I see DW as a resource primarily for learners. Unlike S.O. we are beginner friendly, and will … -
Gave Reputation to happygeek in Biggest DaniWeb pain points
There are three things wrong with DaniWeb: no traffic, no traffic and no traffic. Pain points were never an issue before Google sunk DaniWeb search results. I am at a … -
Replied To a Post in Help me please with .tdb file (Text database)
> I see rare symbols next to the texts Maybe the file is not text, but a binary fle of text strings, eg text: `Hello<CR>World<CR>` bin: `<fieldID=1, length= 5>Hello<fieldID=1, length= … -
Replied To a Post in Illegal start of expression in my toString
You evaluate all the multiplications before you evaluate any divisions. That’s wrong, you should evaluate them all left to right. In normal arithmetic this doesn’t matter, but with integer arithmetic …
The End.