• Member Avatar for pty
    pty

    Replied To a Post in I am interested in funding a prototype for true "Social" media

    It's not difficult to get something with Facebook-like functionality up and going on a small scale. I could build a working prototype in a couple of days. The difficult bit …
  • Member Avatar for pty
    pty

    Replied To a Post in Searching files for a file format

    I use `fd` for this kind of thing. https://github.com/sharkdp/fd
  • Member Avatar for pty
    pty

    Replied To a Post in Upgrade from Fedora 28 to Fedora 32

    You might want to consider moving `/home` to its own partition. Then you can replace the OS at will without needing to go through the copying everything to an external …
  • Member Avatar for pty
    pty

    Replied To a Post in Filter by annoyance

    This is difficult because even though the experience has been improved (thanks) it's not massively intuitive. For example, if I'm browsing around looking for an interesting thread to read/contribute to, …
  • Member Avatar for pty
    pty

    Replied To a Post in Delete files matching pattern

    Also, in addition to `find -exec` (which is awesome) there's `xargs` - it works in a very similar fashion but can be used anywhere to do.. anything. https://en.wikipedia.org/wiki/Xargs
  • Member Avatar for pty
    pty

    Replied To a Post in Delete files matching pattern

    If you're using the latest version of macOS where the default shell changed to zsh you can glob it /tmp ❯ mkdir -p omg/wtf/bbq /tmp ❯ touch omg/wtf/bbq/{1,2,3,4,5,6,7,8,9,10}.css /tmp ❯ …
  • Member Avatar for pty
    pty

    Replied To a Post in MySQL lcase vs lower differences?

    They are synonymous, if you check the official docs it says as much. The reason they're both there is for familiarity, SQL Server and DB2 use `lcase`, Oracle and PostgreSQL …
  • Member Avatar for pty
    pty

    Replied To a Post in The DW Homepage shows duplicates and isn't useful.

    While you're at it Dani, I think there should be a preference somewhere to hide (or group, maybe) the "began watching a topic" and "viewed a topic" cards. Am more …
  • Member Avatar for pty
    pty

    Replied To a Post in MySQL transactions

    Did lowering the transaction isolation level to `READ COMMITTED` make any difference to the timing?
  • Member Avatar for pty
    pty

    Replied To a Post in Editing Date format in javascript

    I'd just use [toLocaleTimeString](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString). let options = {weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'}; let now = new Date(); console.debug(now.toLocaleTimeString("en-GB", options)); If you need more formatting control then you …
  • Member Avatar for pty
    pty

    Replied To a Post in MySQL transactions

    All RDBMs have more-or-less the same [Transaction Isolation Levels](https://en.wikipedia.org/wiki/Isolation_(database_systems)) but sometimes they go by slightly different names and MySQL has a few extra oddities. Before going further understanding what a …
  • Member Avatar for pty
    pty

    Replied To a Post in MySQL bulk insert timestamp

    MySQL binds `current_timestamp()`/`now()` at the beginning of the statement so I believe all of your records would have the same `created_at` value. If you wanted them to differ I think …
  • Member Avatar for pty
    pty

    Replied To a Post in what is the use of filter in google analytics?

    You can also use filters to *filter out* data from your own networks. This will prevent internal use of your site/app by employees/testers from influencing statistics.
  • Member Avatar for pty
    pty

    Replied To a Post in jQuery does not support mobile touch

    These days, just build responsive. jQuery Mobile has always been a kludge, I wish it didn't have the jQuery name because that made people think it was actually good. It's …
  • Member Avatar for pty
    pty

    Replied To a Post in CodeIgniter redis sessions

    The bugs I linked to are present in the PHP Redis driver, `phpredis`. CodeIgniter's Sessions functionality uses it to connect to Redis. There is even a caveat [in the documentation …
  • Member Avatar for pty
    pty

    Replied To a Post in Show error.... How to copy a store proc one to between database same server

    This is a really weird use-case, I wouldn't recommend it. A better approach is to use a single database and make your dynamic objects (views, functions, procedures etc) aware of …
  • Member Avatar for pty
    pty

    Replied To a Post in CodeIgniter redis sessions

    Looks like this has been a problem in PHP for a [long time](https://github.com/phpredis/phpredis/issues/37). On a brighter note, it looks like [a fix is on the way](https://github.com/phpredis/phpredis/issues/1267).
  • Member Avatar for pty
    pty

    Replied To a Post in DaniWeb: The Next Generation

    Yep looks really good! In making this reply I encountered a slight bug. I typed some words into the box, hit "post reply" and it took me to the login …
  • Member Avatar for pty
    pty

    Recommended Can you tell me how to burn a DVD DL using Windows 10?

    Can you tell me how to burn a DVD DL using Windows 10 and Cyberlink Media Suite, IMGBurn, Express Burn, Winx DVD Author, Wondershare or Windows 10 own burning software. …
  • Member Avatar for pty
    pty

    Gave Reputation to happygeek in How do I compare & merge two Microsoft Access 2007 databases

    Dani was testing stuff, and this thread was used as part of that which caused it to appear in the feed.
  • Member Avatar for pty
    pty

    Replied To a Post in How do I compare & merge two Microsoft Access 2007 databases

    I just realised this thread is six years old. I had no idea that was the case when I answered above. For some reason it was in the main feed …
  • Member Avatar for pty
    pty

    Replied To a Post in How do I compare & merge two Microsoft Access 2007 databases

    So you have a target database (the one you'll be left with at the end) and a source database, the one you'll copy *from*. Take a backup of both of …
  • Member Avatar for pty
    pty

    Replied To a Post in How can i show my website only display on a mobile phone not in pc

    No, that's not how the web works. If I want to browse 2gud.com (I don't, but bare with me) I can just override my user agent at the click of …
  • Member Avatar for pty
    pty

    Replied To a Post in New Employee Training. USA. "Active Shooter Training Module."

    Violence at football matches isn't really a thing now. Yes, it happens but incidents are isolated and infrequent. I'd say the most violent times are Friday and Saturday nights in …
  • Member Avatar for pty
    pty

    Replied To a Post in What is the latest most important trend in digital marketing?

    I think the next big thing is to sign up for forums with a female name and fake avatar and make nothing posts with links to shit websites that like …
  • Member Avatar for pty
    pty

    Replied To a Post in Tory party conference app with ZERO login security hacked by pranksters

    And these clowns want companies to add backdoors and to circumvent encryption. I hope the GPDR gives them a nice kick up the arse while we embarrass ourselves on the …
  • Member Avatar for pty
    pty

    Gave Reputation to rproffitt in python program

    I was able to write this in one line. Here it is. print "9\n89\n789\n6789\n56789\n456789\n3456789\n23456789\n123456789\n" In case this doesn't fit your top post's requirement, I would be guessing if more was …
  • Member Avatar for pty
    pty

    Gave Reputation to rproffitt in python program

    I was able to write this in one line. Here it is. print "9\n89\n789\n6789\n56789\n456789\n3456789\n23456789\n123456789\n" In case this doesn't fit your top post's requirement, I would be guessing if more was …
  • Member Avatar for pty
    pty

    Replied To a Post in Insert into not working in my php code

    I still find it funny that *the* place to go for online tech discussion ([Hacker News](https://news.ycombinator.com/news)) still uses nested tables for all layout. I know it's wrong but it works …
  • Member Avatar for pty
    pty

    Gave Reputation to benanamen in Insert into not working in my php code

    Tables for layout went out in the 90's. We use CSS now.
  • Member Avatar for pty
    pty

    Gave Reputation to Reverend Jim in Convert The numerical string to regular expression? How?

    I've had a few of those. I learned that end-users can be very lazy when it comes to saying what they want so I would write up a spec and …
  • Member Avatar for pty
    pty

    Replied To a Post in Convert The numerical string to regular expression? How?

    I have *optimised* this even more so you don't need to worry about those pesky patterns and stuff. Just use `(.*)`.
  • Member Avatar for pty
    pty

    Replied To a Post in Sorting and loops in Ruby

    Additionally, I forgot the sorting element. For an array of hashes you'll notice that if you try to sort directly the comparison will fail: [{name: "Ringo"}, {name: "John"}, {name: "Paul"}, …
  • Member Avatar for pty
    pty

    Replied To a Post in Sorting and loops in Ruby

    You have made a decent start. In addition to looping you need to think about how you might store the user-entered results. In order to loop you're probably best using …
  • Member Avatar for pty
    pty

    Gave Reputation to AndrisP in jQuery Datepicker: Set Current Date

    I see you are using `<input type="date" />` - do not need set date by jQuery, just add value (format `YYYY-MM-DD`), e.g. `<input type="date" value="2018-09-24" />`
  • Member Avatar for pty
    pty

    Replied To a Post in SQL Query with SUM and Groupby

    Excluding your aggregate columns you need to `group by` all you `select` by. That's just the way it works.
  • Member Avatar for pty
    pty

    Replied To a Post in Visual Studio solution Code comparison

    Before you start doing any work, if at all possible, create a commit for the last developer with all her changes explaining what happened, then you're starting your own work …
  • Member Avatar for pty
    pty

    Replied To a Post in I can't display images from database MySQL

    Also you should be supplying a relative path and not exposing your file structure. If the root of your server is `img_mysql` your path should start with `images`
  • Member Avatar for pty
    pty

    Replied To a Post in create friend request system

    Of course. For one to one tuition you'll need to pay by day rate though. Or you can buy a book, read the documentation and learn without wasting people's time.
  • Member Avatar for pty
    pty

    Replied To a Post in New Chrome version

    They did a whole visual refresh as part of their tenth birthday celebration. Hard to imagine that eleven years ago Firefox was fast catching up to IE and it looked …
  • Member Avatar for pty
    pty

    Replied To a Post in create friend request system

    So what's missing? [Your app needs to call your API with a couple of parameters](http://loopj.com/android-async-http/), your API should respond with success or failure.
  • Member Avatar for pty
    pty

    Replied To a Post in Is this a good way to learn programming?

    I agree with Jim. Hands-on learning is the best way by far. If you're just getting started I'd recommend [CodeAcademy](https://www.codecademy.com). Finally, in the UK is [national coding week](https://codingweek.org) this week, …
  • Member Avatar for pty
    pty

    Replied To a Post in My Website web address is IPaddress/my/login.asp(How to change it to names?

    You need to buy a domain name if you don't have one already. Once you have one, you need to modify the DNS settings so that it points at your …
  • Member Avatar for pty
    pty

    Replied To a Post in Firebase to MySql

    Change the database settings perhaps?
  • Member Avatar for pty
    pty

    Replied To a Post in Canon printer won't print colors

    Did you remove the tape/film from the new colour cartridge before you inserted it?
  • Member Avatar for pty
    pty

    Replied To a Post in Social networking site

    Isn't it funny how all the replies have little to no valuable content plus links to shitty SEO and marketing companies in their signatures? Oh, no it isn't.
  • Member Avatar for pty
    pty

    Replied To a Post in How to pass a string from c# to c++?

    When you say "side of the app" I assume you mean a `dll`. In that case you can use [PInvoke and DllImportAttribute](https://docs.microsoft.com/en-gb/cpp/dotnet/calling-native-functions-from-managed-code#pinvoke-and-the-dllimport-attribute). If you have a separate binary running elsewhere …
  • Member Avatar for pty
    pty

    Gave Reputation to FarrisFahad in How to create a rating system using MySQL and PHP, like 9gag?

    Thank you the second article helped, Sorry I guess I was looking for something simpler than link 1.
  • Member Avatar for pty
    pty

    Replied To a Post in How to create a rating system using MySQL and PHP, like 9gag?

    No problem. The Hacker News one may be a little *advanced* but it was written by [Paul Graham](https://en.wikipedia.org/wiki/Paul_Graham_(programmer)) so it's to be expected. The Reddit one is definitely more digestable …

The End.