Skip to content
  • I just explained C to someone

    The Lounge design com graphics iot regex
    11
    0 Votes
    11 Posts
    0 Views
    B
    Yup -- every language can be used poorly. "Modern" languages try to make things idiot proof, but that will always fail. Any time anyone makes something idiot proof, someone else makes a better idiot. :laugh:
  • wrapping enum in namespace ?

    C / C++ / MFC devops regex question
    3
    0 Votes
    3 Posts
    4 Views
    M
    ahhhh yes, I've seen that before. thanks. :thumbsup: CI/CD = Continuous Impediment/Continuous Despair
  • 0 Votes
    2 Posts
    0 Views
    J
    I wonder how much of that has to do with interactions with test frameworks/suites. Ran into something odd this week where the fix was the classic wait await Task.Delay(TimeSpan.FromSeconds(1)); Since it is only in a test, not so bad. There was a time it would've bugged me enough to figure out where things were going south with threading. However much I do love some black boxes - that's a chief feature of a good one... You never notice it is one because you never need to look so far inside anyway. If Redmond is still not so sure it's all it could be, I'd be inclined to agree.
  • 0 Votes
    13 Posts
    0 Views
    J
    OriginalGriff wrote: Come on guys! If you have data which uniquely identifies a transaction and you are compiling a transaction report INCLUDE IT! If you have an "industry standard format" like Excel, use the modern version, not one 15 years out of date! Don't restrict the transaction count to an arbitrary number, restrict it to an arbitrary number or the end of a month / week / year whichever is appropriate! And whatever you do, don't add a further length limit to one particular format! I pointed all of that out to them. I suggested upgrades for years. I even wrote the tickets, added the designs, the breakdowns and estimates. But the architect and manager kept saying that no one actually uses that stuff and we really need more razzle dazzle for facebook. ------ I really have worked on multiple systems that would fail all the time because the original designer never even considered the possibility that a data dump might be too large at some point.
  • My New Friend

    The Lounge c++ linux regex help announcement
    14
    0 Votes
    14 Posts
    0 Views
    B
    Perhaps I should provide the code. I prefer them in the same order as declared in the class not shown as it is a class cTest global variable. void Random\_\_METHOD() { static const int last\_case = 96; // Random Number Generator auto \_case\_ = m\_cSCALAR\_RNG.operator() < int > (0, last\_case); switch(\_case\_) { default: throw einternal\_error\_eXception; case 0: Random\_\_default\_constructor(); break; case 1: Random\_\_primordialTimePoint(); break; case 2: Random\_\_DIAGNOSTIC\_SNAPSHOT\_HASH(); break; case 3: Random\_\_recordTermination\_time\_point\_node\_spec(); case 4: Random\_\_open\_with\_arguments(); break; case 5: Random\_\_open(); break; case 6: Random\_\_close(); break; case 7: Random\_\_is\_open(); break; case 8: Random\_\_set\_toNascentState(); break; case 10: Random\_\_swap(); break; case 11: Random\_\_startTransaction(); break; case 12: Random\_\_endTransaction(); break; case 13: Random\_\_cancelTransaction(); break; case 14: Random\_\_is\_activeTransaction(); break; case 15: Random\_\_activeTransaction\_ctransaction\_datum(); break; case 16: Random\_\_is\_saved(); break; case 17: Random\_\_save(); break; case 18: Random\_\_offset(); break; case 19: Random\_\_size(); break; case 20: Random\_\_eofOffset(); break; case 21: Random\_\_mirror(); break; case 22: Random\_\_archivesPaths(); break; case 23: Random\_\_archivesFilenames(); break; case 24: Random\_\_fullPath(); break; case 25: Random\_\_fileName(); break; case 26: if(m\_rfe) {} break; case 27: if(!m\_rfe) {} break; case 28: m\_rfe == m\_rfe; break; case 29: m\_rfe != m\_rfe; break; case 30: Random\_\_read(); break; case 31: Random\_\_output(); break; case 32: Random\_\_delete(); break; case 33: Random\_\_setOffset(); break; case 34: Random\_\_incOffset(); break; case 35: Random\_\_decOffset(); break; case 36: Random\_\_adjust\_eofOffset(); break; case 37: Random\_\_set\_eofOffset(); break; case 38: Random\_\_initializedIntervals(); break; case 39: Random\_\_uninitializedIntervals(); break; case 40: Random\_\_treeEmpty(); break; case 41: Random\_\_treeSize(); break; case 42: Random\_\_number\_ofUndosAvailable(); break; case 43: Random\_\_undo(); break; case 44: Random\_\_redo(); break; case 45: Random\_\_number\_ofRedoBranches(); break; case 46: Random\_\_undo\_node\_spec\_time\_point(); break; case 47: Random\_\_undo\_node\_spec\_ctransaction\_datum(); break; case 48: Random\_\_undo\_node\_spec\_time\_point\_vector\_cedit\_datum(); break; case 49: R
  • [WPF] ComboBox with RichTextBox

    WPF wpf csharp regex architecture tutorial
    2
    0 Votes
    2 Posts
    4 Views
    M
    I have a flat text file of which here is an example line: sample 1 : {Image1} blah {image2} blah. sample 2 : blah {Image1} blah sample 3 : blah blah sample 4 : {Image1} blah (each line may be different) With Image1 and Image2 which represents the name of the image file in the Images of the project.
  • C program(homework)

    C / C++ / MFC data-structures regex
    12
    0 Votes
    12 Posts
    1 Views
    R
    First run: ~~~~~~~~~~~~~~~~ Original strings: ∩╝æ∩╝ÿµ¡│πü¿∩╝ÿ∩╝浡│πü«ΘüòπüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½µ║║πéîπéïΣ║║πüºπÇü∩╝ÿ∩╝浡│πü»πüèΘó¿σæéπü½µ║║πéîπéïΣ║║πÇé∩╝æ∩╝ÿµ¡│πü»ΘüôπéÆΦ╡░πéèπÇüΘÇåπééπü╛πüƒτä╢πéèπÇé∩╝ÿ∩╝浡│πü«Σ║║πüîΦ╡░πüúπüªπüäπéïπÇé∩╝æ∩╝ÿµ¡│πü»σ┐âπüîπééπéìπüÅπÇü∩╝ÿ∩╝浡│πü»Θ¬¿πüîπééπéìπüäπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºσ┐âΦçôπüóπü╛πéëπü¬πüäπÇé ∩╝ÿ∩╝浡│πü«σ╜╝πü»Θú¢Φíîµ⌐ƒπ鯵¡óπéüπéëπéîπü¬πüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½τ¬Æµü»πüÖπéïπüôπü¿πüîπüºπüìπÇü∩╝ÿ∩╝浡│πü»Θñàπü½τ¬Æµü»πüÖπéïπüôπü¿πüîπüºπüìπéïπÇéσüÅσ╖«σÇñπüîµ░ùπü½πü¬πéïπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºπÇü∩╝ÿ∩╝浡│πüºΦíÇσ£ºπü¿ΦíÇτ│ûσÇñπ鯵░ùπü½πüùπüªπüäπéïπÇéπü╛πüáΣ╜òπééτƒÑπéëπü¬πüä∩╝æ∩╝ÿµ¡│πÇüπééπüåΣ╜òπééΦªÜπüêπüªπüäπü¬πüä∩╝ÿ∩╝浡│πÇé Φç¬σêåπ鯵Äóπüùπüªπüäπéï∩╝æ∩╝ÿµ¡│πü¿πÇüπü┐πéôπü¬π鯵Äóπüùπüªπüäπéï∩╝ÿ∩╝浡│πÇé Enter search string (up to 10 characters): 2 Enter replacement string (up to 10 characters): # Nothing is changed. Second run: ~~~~~~~~~~~ Original strings: ∩╝æ∩╝ÿµ¡│πü¿∩╝ÿ∩╝浡│πü«ΘüòπüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½µ║║πéîπéïΣ║║πüºπÇü∩╝ÿ∩╝浡│πü»πüèΘó¿σæéπü½µ║║πéîπéïΣ║║πÇé∩╝æ∩╝ÿµ¡│πü»ΘüôπéÆΦ╡░πéèπÇüΘÇåπééπü╛πüƒτä╢πéèπÇé∩╝ÿ∩╝浡│πü«Σ║║πüîΦ╡░πüúπüªπüäπéïπÇé∩╝æ∩╝ÿµ¡│πü»σ┐âπüîπééπéìπüÅπÇü∩╝ÿ∩╝浡│πü»Θ¬¿πüîπééπéìπüäπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºσ┐âΦçôπüóπü╛πéëπü¬πüäπÇé ∩╝ÿ∩╝浡│πü«σ╜╝πü»Θú¢Φíîµ⌐ƒπ鯵¡óπéüπéëπéîπü¬πüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½τ¬Æµü»πüÖπéïπüôπü¿πüîπüºπüìπÇü∩╝ÿ∩╝浡│πü»Θñàπü½τ¬Æµü»πüÖπéïπüôπü¿πüîπüºπüìπéïπÇéσüÅσ╖«σÇñπüîµ░ùπü½πü¬πéïπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºπÇü∩╝ÿ∩╝浡│πüºΦíÇσ£ºπü¿ΦíÇτ│ûσÇñπ鯵░ùπü½πüùπüªπüäπéïπÇéπü╛πüáΣ╜òπééτƒÑπéëπü¬πüä∩╝æ∩╝ÿµ¡│πÇüπééπüåΣ╜òπééΦªÜπüêπüªπüäπü¬πüä∩╝ÿ∩╝浡│πÇé Φç¬σêåπ鯵Äóπüùπüªπüäπéï∩╝æ∩╝ÿµ¡│πü¿πÇüπü┐πéôπü¬π鯵Äóπüùπüªπüäπéï∩╝ÿ∩╝浡│πÇé Enter search string (up to 10 characters): πéèπ Enter replacement string (up to 10 characters): ---- ∩╝æ∩╝ÿµ¡│πü¿∩╝ÿ∩╝浡│πü«ΘüòπüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½µ║║πéîπéïΣ║║πüºπÇü∩╝ÿ∩╝浡│πü»πüèΘó¿σæéπü½µ║║πéîπéïΣ║║πÇé∩╝æ∩╝ÿµ¡│πü»ΘüôπéÆΦ╡░πéèπÇüΘÇåπééπü╛πüƒτä╢πéèπÇé∩╝ÿ∩╝浡│πü«Σ║║πüîΦ╡░πüúπüªπüäπéïπÇé∩╝æ∩╝ÿµ¡│πü»σ┐âπüîπééπéìπüÅπÇü∩╝ÿ∩╝浡│πü»Θ¬¿πüîπééπéìπüäπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºσ┐âΦçôπüóπü╛πéëπü¬πüäπÇé ∩╝æ∩╝ÿµ¡│πü¿∩╝ÿ∩╝浡│πü«ΘüòπüäπÇé∩╝æ∩╝ÿµ¡│πü»µüïπü½µ║║πéîπéïΣ║║πüºπÇü∩╝ÿ∩╝浡│πü»πüèΘó¿σæéπü½µ║║πéîπéïΣ║║πÇé∩╝æ∩╝ÿµ¡│πü»ΘüôπéÆΦ╡░----ÇüΘÇåπééπü╛πüƒτä╢----Çé∩╝ÿ∩╝浡│πü«Σ║║πüîΦ╡░πüúπüªπüäπéïπÇé∩╝æ∩╝ÿµ¡│πü»σ┐âπüîπééπéìπüÅπÇü∩╝ÿ∩╝浡│πü»Θ¬¿πüîπééπéìπüäπÇéτºüπü»∩╝æ∩╝ÿµ¡│πüºσ┐âΦçôπüóπü╛πéëπü¬πüäπÇé Seems to be running as expected here.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    11 Posts
    3 Views
    F
    In the end it DID turn out to be a JavaScript issue. Last week someone pointed out that I was using replace instead of replace all which I missed not knowing much JaxaScript. This caused only the first comma to be replaced by a blank and second comma was left as a comma. When that string was put into tolocalestring there was a comma left and to locale string received at least one comma which made it fail. Once I used replaceall everything worked fine and I was able to type up to 12 digits with commas inserted correctly.
  • 0 Votes
    4 Posts
    3 Views
    L
    The excuse and instructions at the beginning of the generally messy question. Still can't (or won't) use <pre> tags properly. For some reason closed his previous account recently. So now comes back with a new id but the form of his question is the same as always.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    3 Posts
    0 Views
    A
    A joke being heard in India: It is actually a team of H1B visa holders in the US, which is currently playing cricket against the other national teams. Well ... this is not a joke, this is more of a reality.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    4 Posts
    0 Views
    L
    Thanks for reply. I have riposted this, hoping for help with constructing with C++ reg expression .
  • How to convert XML to text file

    C# help csharp design regex xml
    5
    0 Votes
    5 Posts
    0 Views
    OriginalGriffO
    To add to what the others say, you need to sit down and work out exactly what you expect to generate form your XML data. The reason being that XML is a text-based hierarchically structured data format, and it can be all in a single line: newlines (or any other whitespace) are not required by the XML specification, and "individual items" in XML can span multiple lines of text without any change in the data it encapsulates or an entire array of objects can occupy a single line of text - that's problem number one! The second problem is that the data contained in the XML itself doesn't "lend itself" to a flat file output - which is what an unformatted text file contains. If you look at a "basic XML" file like this example: W3Schools CD Catalog[^] you can see that what it contains isn't readily useful as a text file unless you actually convert that to a formatted file of some form. Just stripp[ing out the XML stuff doesN't give you any useful data: Empire BurlesqueBob DylanUSAColumbia10.901985Hide your heartBonnie TylerUKCBS Records9.901988Greatest HitsDolly PartonUSARCA9.901982Still got the bluesGary MooreUKVirgin records10.201990ErosEros RamazzottiEUBMG9.901997One night onlyBee GeesUKPolydor10.901998Sylvias MotherDr.HookUKCBS8.101973Maggie MayRod StewartUKPickwick8.501990RomanzaAndrea BocelliEUPolydor10.801996When a man loves a womanPercy SledgeUSAAtlantic8.701987Black angelSavage RoseEUMega10.9019951999 Grammy NomineesManyUSAGrammy10.201999For the good timesKenny RogersUKMucik Master8.701995Big Willie styleWill SmithUSAColumbia9.901997Tupelo HoneyVan MorrisonUKPolydor8.201971SoulsvilleJorn HoelNorwayWEA7.901996The very best ofCatStevensUKIsland8.901990StopSam BrownUKA and M8.901988Bridge of SpiesT'PauUKSiren7.901987Private DancerTina TurnerUKCapitol8.901983Midt om nattenKim LarsenEUMedley7.801983Pavarotti Gala ConcertLuciano PavarottiUKDECCA9.901991The dock of the bayOtis ReddingUSAStax Records7.901968Picture bookSimply RedEUElektra7.201985RedThe CommunardsUKLondon7.801987Unchain my heartJoe CockerUSAEMI8.201987 (I manually added the line breaks to prevent that showing as a single very long line!) So you need to work out what is in the XML that you are interested in, and how you will "present" that in your resulting file - otherwise it's just a waste of your time and effort! "I have no idea what I did, but
  • 0 Votes
    28 Posts
    0 Views
    J
    So stringing things together is great? Then you should try Lisp.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    6 Posts
    0 Views
    L
    Well, I am getting few "try it this way". I believe there are many ways to "skin a cat" , but these well meaning alternative suggestion are distraction from the task at hand. Actually I have to "back-paddle " in my "foreach"' approach. Before I can iterate I have to have a list and it better be of compatible type... That also applies if I use any of the Qt ways to iterate... Cheers
  • Thunderbird: Number of new mails doesn't match

    The Lounge question css regex help
    7
    0 Votes
    7 Posts
    0 Views
    E
    Is the single message you see SPAM? Could be a lazy spammer that is not bothering to change the Message-ID on the message. Sends the message 6 times. Mail client sees 6 messages on the server downloads them, but they all have the same Message-ID, so it correctly de-duplicates them. If that is the case, then my next question would be: Why didn’t the server de-duplicate them?