677 Posted Topics

Member Avatar for Dani

I use snippets heavily. For non-work stuff, Github's [gists](http://gist.github.com/) are perfect. You can [add multiple files](https://gist.github.com/peteryates/d859f6ed14f9b7d13515) to a single gist (which would help if some of the code you're pasting is spread across a model, controller and view), and everything's syntax highlighted. Github allows [gists to be embedded](https://help.github.com/articles/about-gists/). Perhaps this …

Member Avatar for Dani
0
470
Member Avatar for gkumaravel

Of course it's possible, but just do everyone (yourself included) a favour and use an existing client. What advantage is there of having your own? Written by a non-expert, without having thousands (or millions, billions) of hours of hands-on testing, your client is likely to be pretty poor.

Member Avatar for Dani
0
490
Member Avatar for Dani

So two things are happening here, first you're searching for a row and if you find one, you're updating the timestamp (and if not, doing an insert). It's unlikely that it's the insert that's slow, so let's check the query first: explain select * from articles_read where member_id = 314062 …

Member Avatar for pty
0
262
Member Avatar for pty

It would appear that too many notifications are added to the feed for certain events, making it difficult to sort the wheat from the chaff. Take the example of this annoying spammer creating a post: ![Screen_Shot_2017-01-26_at_15_16_46.png](/attachments/large/0/70f9ca54d7b9fe3b576a82ab688e0d74.png "align-center") Aside from the fact he's a waste of oxygen, that's more than one …

Member Avatar for Dani
2
382
Member Avatar for bharathi_2

So basically, you probably want to store the *time* that you serve the question to them and the *time* at which they submit an answer. You can determine how long it took them to answer by subtracting the former from the latter.

Member Avatar for diafol
0
188
Member Avatar for massivefermion

> What if I want to modify the third party module? Where can I find it? `pip show unidecode` Metadata-Version: 2.0 Name: Unidecode Version: 0.4.20 Summary: ASCII transliterations of Unicode text Home-page: UNKNOWN Author: Tomaz Solc Author-email: tomaz.solc@tablix.org Installer: pip License: GPL Location: /usr/local/lib/python2.7/site-packages Requires: Classifiers: License :: OSI Approved …

Member Avatar for pty
0
514
Member Avatar for Violet_82

I'm not sure exactly what you'll be visualising, so it's difficult to suggest anything, but I'm sure that [d3](https://d3js.org/) will have you covered. It's immensely powerful and incredibly well-designed.

Member Avatar for pty
0
453
Member Avatar for Reverend Jim

For Unix-like system users, there are quite a few options here. Classically, `find` (super super powerful but doesn't use any index) and `locate` (uses an index but has fewer options for searching). However, 99% of the time I know roughly where the file is; it's usually in the project I'm …

Member Avatar for rubberman
2
680
Member Avatar for haria_kishore

select * from company where has_made_profit_every_year_for_the_last_five_years = 1; Hope this helps.

Member Avatar for pty
0
103
Member Avatar for phphp

I'm no PHP expert, so forgive my ignorance. If you test in a basic manner, rather than by using AJAX, what happens? By using your browser's inspector, you can see that doing: $.ajax({ url: "my_service", data: {f_date1: "yesterday", t_date1: "today"}, success: function(msg) { console.debug("yay") } }); will result in a …

Member Avatar for pty
0
5K
Member Avatar for amith_ami

What probably happened is that your customer created an order, then while the above code was running they created another. As you're using `max` to work out which number to allocate and you've not yet saved the first record, both have the same `id`. Without knowing your [transaction isolation level](https://dev.mysql.com/doc/refman/5.7/en/innodb-transaction-isolation-levels.html) …

Member Avatar for diafol
1
406
Member Avatar for vitaquous

Also, you shouldn't need to use suffixes to identify object types. `Tb` is already inconsistent; your link tables don't have it, but what if you add a link table with another attribute?

Member Avatar for rubberman
0
310
Member Avatar for fazal_1

I was going to help, but rather than just help you in the way that you want (that'd be too boring) I thought I'd give the answer in Ruby. [2,4,6,3,2,4,3,8] .group_by{|i| i} .select{|_,matches| matches.count > 1} .keys => [ [0] 2, [1] 4, [2] 3 ]

Member Avatar for fazal_1
0
506
Member Avatar for hinaraees

@hinaraees I'll show you what you need to know. Just send me your Facebook login and password and I'll send you everything you need!

Member Avatar for happygeek
0
441
Member Avatar for mldardy
Member Avatar for lolafuertes
0
348
Member Avatar for Sharadha_1

I suggest you use the [HTML Agility Pack](http://www.nuget.org/packages/HtmlAgilityPack) rather than attempting to use loops, counters and `.IndexOf`. It will allow you to use [XPath](https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx) which will be more efficient and require less complex code to achieve. Or, if you're doing this as a one off, copy it into a `.csv` …

Member Avatar for pty
0
350
Member Avatar for Dani

Remember that `UNION` (and its cousins `INTERSECT` and `EXCEPT`) essentially require each of the provided queries to be run separately and the results collated. In this example (using PostgreSQL, but the same applies in MySQL), we can see exactly what's happening. I have a small table with some users and …

Member Avatar for Lee_15
0
182
Member Avatar for John_141

I doubt it's your query that's slow. What happens if you simply run the query `select * from Doopgegevens;` in a shell? For ~10k rows, providing your table is holding 'normal' data (and not base64 encoded movie files or something) it should be *fast*. If it is fast, try changing …

Member Avatar for Lee_15
0
2K
Member Avatar for pty

I've made a couple of lengthy posts over the last couple of days and have noticed a few bugs with the editor. Nothing show-stopping but some make the editing process more difficult or some content vanish! (I added the 'nerd' Emoji in one of my posts, it saved without errors …

Member Avatar for Dani
0
272
Member Avatar for Dani

It sounds like you aren't working to the strengths of the database. MySQL, unlike Oracle, PostgreSQL etc doesn't support [arrays](https://www.postgresql.org/docs/9.6/static/arrays.html), and searching on text is unlikely to be optimal. I don't know the context of the original query, so it's difficult to suggest a solution, but it could be something …

Member Avatar for pty
0
9K
Member Avatar for anupam_smart
Member Avatar for nathanpacker

[QUOTE=nathanpacker;400933]Hey everyone, I'm looking for a free tool to administer MySQL databases. I currently use PHPMyAdmin, which is great, but I'm looking for the same functionality in a desktop software. I've actually found quite a few, but wondered if you any of you could recommend one for me. My only …

Member Avatar for diafol
0
215
Member Avatar for nithysony

If you know your stuff nothing should phase you. If you don't know the answer to a question don't guess, just say you don't know. You'll look less of an idiot. Questions that always get me are like "Why do you want to work for this company?" "Erm.. money?"

Member Avatar for normantyago
1
504
Member Avatar for linux

[QUOTE=happygeek;335076][B]Fade[/B] to Grey - Visage[/QUOTE] [b]Grey[/b] Day - Madness

Member Avatar for <M/>
0
3K
Member Avatar for bobby08

[QUOTE=bobby08;245229]Hello, I was wondering if there anyway to Select rows where the date column falls into a certain range? For example, heres a table [code] The date field is generated automatically by MySQL with the DATE function Heres the table: [user] . [wins]. [date] bobby.......4..... 2006-08-21 boby1.......3..... 2006-08-22 boby2.......6..... 2006-08-24 …

Member Avatar for Lavish Dubey
0
8K
Member Avatar for g.prabu

[QUOTE=g.prabu;317097]how to delete duplicate record in a table by using SQL query[/QUOTE] duplicate of what? all duplicates? why don't you have a unique identifier? do you have any validation? why are you here? why am i answering you?

Member Avatar for msi
0
929
Member Avatar for ndeniche
Member Avatar for Scottie_uk

I've not used Delphi for a while but is it something like [code] Length(anArray) [/code]

Member Avatar for Smileydog
0
6K
Member Avatar for Gandalfs_beard

You don't need AV on Mac OSX. To install software you have to enter a password. So long as you think before putting your password in the little box your computer will be safe.

Member Avatar for dioioib
0
310
Member Avatar for John A

Great tutorial Joe I'll just add that on Debian (based) systems you may want to use 'checkinstall' (available via apt) rather than 'make install'; it will create a .deb and allow you to remove/upgrade/distribute the package using debian's standard package management tools.

Member Avatar for beeho
6
482
Member Avatar for sweetyp

[QUOTE=sweetyp]How do i insert multiple rows in database. for example: I have 3 list: list1: a1,a2,a3,a4 list2: b1,b2,b3,b4 list3: c1,c2,c3,c4 I want to insert a1,b1,c1 in 1st row. a2,b2,c2 in 2nd row,... How do I write one sql insert statement to do that?[/QUOTE] i'd imagine making a stored procedure to …

Member Avatar for joe_bolla
0
752
Member Avatar for TheNNS

[QUOTE=TheNNS;289404]Not really, just that I need to screw up my friend's computer at work. We're always attacking each other on the computer, but this time it's gone too far. He put a script on my computer so that every time I log on, the computer restarts, or logs off, making …

Member Avatar for Narue
0
635
Member Avatar for Serunson

[QUOTE=nieves22;378880]I like Travis. Though sometimes their music make me sleepy...[/QUOTE] I listen to pretty much all genres except classical, rnb and heavy metal. Recently I mostly listen to late 80s early 90s hip hop; modern rock/indie/pop seems boring. Travis' first album (Good Feeling) was excellent, it is still one I …

Member Avatar for blackcathacker
0
1K
Member Avatar for sham51

[QUOTE=sham51;330798]hi guys !!!! if any one can let me knw where i can find a unix downloadable file tat would be really helpful.... i dont mind the version , though would prefer the latest.... plz take immediate notice and help me!!!1 am in a bit of a hurry.... thank u …

Member Avatar for conbot
0
231
Member Avatar for kc9788

[QUOTE=goldeagle2005]or, my personal fave: format C: /u <hehehehehe> No, seriously. If you need to bering it back to the "new computer stage", I'd suggest you get your hands on the OS media and format the HD completely. Then, setup your OS afresh.[/QUOTE] yes. if it came with a recovery disk …

Member Avatar for michael mcnair
-3
1K
Member Avatar for alaa sam

[url=http://en.wikipedia.org/wiki/Linux#Unix]This[/url] should help explain the differences between UNIX and Linux.

Member Avatar for alaa sam
0
182
Member Avatar for jlego

If you have a lot of internal software that utilises Exchange, Google Business Apps may not be what you're looking for. Depending on what this software does it may not work at all with Google Apps or you may need to change the way you work. I have used Google …

Member Avatar for pty
0
207
Member Avatar for mike.mclennan

[QUOTE=Sturm;371377]isn't he supposed to be called the "hobgoblin"=[/QUOTE] Thats another character who uses the Green Goblin's equipment. I think they need to stop spiderman before it goes downhill batman style; the companies behind it though will pump out another couple cos its guaranteed to do well. Overall the film was …

Member Avatar for john.cooper
0
404
Member Avatar for desiguru

[QUOTE=desiguru;346160]Is there anyway I can type wget command into a php and that will download file directly from another server to my own server?[/QUOTE] [code] <?php $foo = system('wget http://www.myserver.com/file.txt ~',$output); ?> [/code]

Member Avatar for ctsjoe
0
1K
Member Avatar for bellsforher

[QUOTE=bellsforher]I'm working from a powerbook operating OSX and I've not been able to log into MSN Messenger for Mac since I installed it (several times, mind!). This has been about two months. MSN have been spectacularly unhelpful over this two month period, taking at least a week or two to …

Member Avatar for ticohen
-1
597
Member Avatar for vegaseat

what do they call vegitarian pot-noodles in Korea? not poodles. ahahahahaha

Member Avatar for crunchie
0
858
Member Avatar for qweiop

you probably have a better chance writing to the crew/cast who may wish to give their only fan a copy.

Member Avatar for p1gp3n2
0
228
Member Avatar for Johnrob29

[url=http://www.zen-cart.com/]zen cart[/url] [url=http://dev.subimage.com/projects/substruct]substruct[/url]

Member Avatar for Tapori
0
399
Member Avatar for jbennet
Member Avatar for elephantrange
0
242
Member Avatar for titotoms

A log file is a record of what has happened. On linux/unix they tend to be in /var/log. As a developer I use them when stuff goes wrong and I want to find out why. IT use them to keep tabs on things, monitor network use etc. Web masters use …

Member Avatar for Lalchand Saini
0
123
Member Avatar for mattb0611

Is the installer on the minimal and universal disks a graphical one too? Or is it just the Live CD install (like Ubuntu)?

Member Avatar for uJen2u
0
754
Member Avatar for Harry smith

[QUOTE=Harry smith;273600]Guys which is good CMS (content management system) Joomla or Mambo? why is it so? What you like of it?:?:[/QUOTE] Personally, although both similar Joomla seems to have more active development (probably due to the old Mambo devs working on it). For that reason along I'd go for Joomla

Member Avatar for meo_spt
0
164
Member Avatar for happygeek
Member Avatar for tobes

[QUOTE=tobes;305679]Can someone help. I need to find the sco openserver licence version on our server. I tried going into "scoadmin" .... it only gives the licence number... not the version number. I know we are on Openserver 5 but Ima not sure whether it is version 5.2 or 5.4..... :confused:[/QUOTE] …

Member Avatar for bbuchen
0
196
Member Avatar for DeViAnT\gAmEr

[QUOTE=DeViAnT\gAmEr;368033] Shes running 32 bit Vista Hoe Premium... [/QUOTE] Don't let her know that you're saying such things on the internet! /i am immature.

Member Avatar for DeViAnT\gAmEr
0
504

The End.