408 Posted Topics

Member Avatar for den_3

So lets be clear - no one is going to do the work for you without compensation - that said, I will try to give you some ideas on how to solve your problem as a "programmer" would. 1 - Identify what you need -- Table for Personnel -- Either …

Member Avatar for den_3
0
311
Member Avatar for ryantroop

Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know …

Member Avatar for ryantroop
0
302
Member Avatar for Arjen_2

Well.. lets begin.. First, arrays in most languages (and it looks like you're using PHP, and PHP is one of them) start at 0. So first, $b = 0; Second, <= 6 is not what you think it's doing. Since we start at 0 (i.e., $count[0]), when you get up …

Member Avatar for ryantroop
0
446
Member Avatar for hrushi9

I dont think there is a good way to do this with pure CSS. It likely requires some javascript, using a "data-" tag on the parent element, and show which item you want displayed. the Javascript click event would then update the data- tag value to whichever element should be …

Member Avatar for pdsubbu
0
311
Member Avatar for destiny_3

First, this function is depricated - it may be time to learn about MySQLi or other something more modern in the PHP world. Second, take a look here: http://php.net/manual/en/function.mysql-fetch-array.php You should be passing ($selcat, FLAG), as $selcat is the "resource" it is expecting (i.e, the result of a query). For …

Member Avatar for t_thakar
0
411
Member Avatar for Seef_1

You could find a way to use the DISTINCT keyword, or a group - likely the latter will have better performance. Of course, your query will have to change to meet the grouping mechanism. However, your desired output is a bit odd in terms of data - your 1st - …

Member Avatar for pty
0
384
Member Avatar for wai.yan.9678

The first paragraph here will help get you started: http://docs.python.org/py3k/library/turtle.html This will help understand triangles: http://www.freemathhelp.com/feliz-angles-triangle.html The key part is understanding that all triangles will have a total of 180* as the sum of all angles. That means, given your 3 inputs, if they don't add up to 180* then …

Member Avatar for JamesCherrill
0
28K
Member Avatar for Dani

If you are doing some sort of script that outputs values for an insert, eg... insert table ( a, b ) --start script --> values ( 1, 2 ), ( 3, 4 ).... then your options are likely limited. Even if that was the case, or you have another setup …

Member Avatar for Geek-Master
0
420
Member Avatar for John_145

You can also apply what you know towards something you enjoy. Like books? Make a simple program that interfaces with a database that allows you to put info in. It doesn't matter if your program is useful to anyone other than you, or if it even succeeds - it's the …

Member Avatar for rubberman
0
393
Member Avatar for akrati

Depending on what you are searching through, the root form of storage tends to be some sort of database - and SQL is how you generally interact with those. Then you need methods for quickly searching data, as well as making searches relevant, considering human error - so the basics …

Member Avatar for Dani
0
309
Member Avatar for k_manimuthu

what have you tried? It looks like you can do it with some subqueries and a NOT IN, but that would likely be very inefficient.. perhaps joining against itself and doing some sort of group by?

Member Avatar for diafol
0
556
Member Avatar for phphp

instead of doing the redirect, do a var_dump on $_SESSION and see whats in there. Then, do the same on index.php as well. Something obviously isnt being set, or carrying over - it may be that headers have been sent before your session begins (but that would cause an error). …

Member Avatar for diafol
0
342
Member Avatar for rajesh_26

In particular, I believe you are talking about the header image -- You have it set to width 100% which means on a 1980 width screen, you image (which is 948px) gets stretched to over double its size. You cant just set width to 100% without a container that has …

Member Avatar for ryantroop
0
220
Member Avatar for ryantroop

NOTE: Viewed and tested in MS Edge 25.10586.627.0 MS EdgeHTML 13.10586 https://jsfiddle.net/qgg86g7y/1/ As you can see in the fiddle, if 50 elements are displayed and calculated, a scroll bar will appear. 51 or more and the scrollbar will not appear, and scrolling is impossible. Is anyone else seeing this behavior? …

Member Avatar for rproffitt
0
442
Member Avatar for Siberian
Member Avatar for JeremyJ

You arent far off... however, you leave some interesting questions.. such as why use a decimal for a ClientNumber? Doesn't matter, though.. DECLARE @Template_Account decimal(10,0) = 8, @Field1 nvarchar(max), @Field2 nvarchar(max), @Save1 bit, @Checkin1 bit, @Sandbox1 nvarchar(max) SELECT @Field1 = Field1, @Field2 = Field2, @Save1 = Save1, @Checkin1 = Checkin1, …

Member Avatar for kalxas
0
1K
Member Avatar for Dani

scope is fine, but intent is not clear in my opinion :-/ If you plan to use a variable outside of a loop, it should be declared outside even if null. That way, in the future, some fool who has to read it will understand what you meant to do, …

Member Avatar for ryantroop
0
376
Member Avatar for phphp

https://jsfiddle.net/j5Lrqmxd/ you should be able to modify this to meet your need. In short, use display: inline-block and vertical-align: middle

Member Avatar for ryantroop
0
192
Member Avatar for Reverend Jim

It also depends on the target audience, and the marketing staff that determines what comprises that audience. At 62, they obviously feel you are no longer part of their target, and they no longer need to cater to you (or rather, your age group or particular vision acuity)... ageism on …

Member Avatar for AssertNull
0
403
Member Avatar for Aeonix

I know this was marked fixed already, but if you have the option to skip JS timing all together, you might as well just use CSS and let the hardware / browser do the heavy lifting for you. The transition for opacity is pretty good, and the timing is very …

Member Avatar for ryantroop
0
496
Member Avatar for Venkatesh Achar

You're asking server side logic 101 here... You can make the login page the same page that processes the login, have the form post to itself. On success, redirect, on failure post a message inline to the page. You can use AJAX and send data over the wire, and return …

Member Avatar for ryantroop
0
262
Member Avatar for janicemurby

The explode function does not return a value by reference. Set the output of the explode to a variable, then pass the variable into the end() function.

Member Avatar for ryantroop
0
755
Member Avatar for Anmol_4

Well... the most straight forward way is let first arr = $aArr; let second arr = $aArr2; $aArr[0][1]['user_nicename'] = $aArr2[0][0]['user_nicename']; However, this is assuming the same data every time... what I can't devise is what your data structure looks like, or how they relate - and if they are all …

Member Avatar for ryantroop
0
215
Member Avatar for shany0786

Goggle document.createElement and Element.appendChild You can dynamically build pretty much whatever you want in script.

Member Avatar for gentlemedia
0
289
Member Avatar for Ivan_13

based on the link you provided, and what I think you described, it looks like you have it working. What am I missing?

Member Avatar for ryantroop
0
238
Member Avatar for zebnoon1

function dateDifference($date_1 , $date_2 , $differenceFormat = '%a' ) echo "<td>".dateDifference('edate','ldate',$differenceFormat = '%d' )."</td>"; Your function expects 2 dates as the first parameters. When you invoke the function, you are passing strings. I think you meant: echo "<td>".dateDifference($row['edate'],$row['ldate'],$differenceFormat = '%d' )."</td>";

Member Avatar for zebnoon1
0
496
Member Avatar for lytonia
Member Avatar for Spyderbane

Are they linked servers? SQL Server or MySQL? If linked, you can do as suggested here: http://stackoverflow.com/questions/1144051/selecting-data-from-two-different-servers-in-sql-server That link also gives examples on how to set them up, but it looks like its MSSQL specific. Short of it, make a linked server, and then use the full linked path when …

Member Avatar for ryantroop
0
206
Member Avatar for SimonIoa

Well... for one, you can not use 3rd party code that has errors. If that's not an option, you can look to ensure that you are implementing their code appropriately, and including appropriately as to not cause XSS errors. If that's not an option / isnt' the problem, then start …

Member Avatar for ryantroop
0
306
Member Avatar for James_62

well... if you are using sessions, where is your session start? It should always be before headers are set. Other than that, you are simply replacing the one time super-global $_SESSION and inline declaring it an assoc array. Other than that, it doesn't look like anything else is out of …

Member Avatar for ryantroop
0
1K
Member Avatar for Aeonix

Heh.. you want to build a personal one drive? That's kinda neat.. I might try and figure that out, too...

Member Avatar for cereal
0
2K
Member Avatar for Rishi_3
Member Avatar for wikit

Sounds like a job for javascript instead of php imo. However.. What seems to be your problem with this? Have you tried it yourself yet?

Member Avatar for Phaelax
0
476
Member Avatar for mblan180131

So... aside from etiquette issues, has anyone considered that google may be actively blocking the use of their site inside a frame? Has any other site been able to load into the iframe? If so, it's google that's actively blocking you. Just a consideration :-/

Member Avatar for Matt_17
0
451
Member Avatar for Aarav

Doing a pure client side (javascript only) captcha will not enhance security. Since all of your code would be visible to the client, even minified, someone could simply bypass it by forcing the output check to "true" or whatever you decide, and move on with their day. No matter how …

Member Avatar for ryantroop
0
126
Member Avatar for Joe_10

If you have an up to date version of mySQL you can have PHP write something like this: insert tableName (a, b) values (c,d), (e,f), (g,h) .... (y,z); http://dev.mysql.com/doc/refman/5.5/en/insert.html Alternatively, you can have PHP write a batch for you, and submit a batch (but that's less efficient than using the …

Member Avatar for ryantroop
0
537
Member Avatar for Brett_2

Im not sure why you are doing this, but "\" is an escape delimiter in PHP - so if you type \" it will treat the " as a string literal. If you are NOT intending this, then your string is invalid, as you would have 3 quotes in your …

Member Avatar for Atli
0
207
Member Avatar for Sohil_2
Re: soap

are you sure you have the correct URL? Are you sure they exist?

Member Avatar for Sohil_2
0
142
Member Avatar for jovillanuev

If that's the same calculation each time in that case statement, why not do it once as its own output, and use that value's alias in your case statement. You are then only doing the calculation once, and its a scalar compare in the case statement. As for the rest …

Member Avatar for ryantroop
0
262
Member Avatar for ZeroEddy

When posting questions like this, it really does help to have a "live" demo page available. That said... A couple comments on what I do see... you have a "fixed" footer, which removes it from the page flow no matter what - which means being structured inside the "container" element …

Member Avatar for ZeroEddy
0
464
Member Avatar for skullscript

Try including plateNo, Make, and Model into your group by. Im not sure how you would have multiple matching rows, but this may be your issue :-/

Member Avatar for ryantroop
0
233
Member Avatar for James_43

To answer your question - yes, you would limit to only the last 10 posts with your query. You query would look something like this: select U.UserKey, M.MessageKey from User U LEFT OUTER JOIN Message M ON M.UserKey = U.UserKey where M.MessageKey IN (select M2.MessageKey from Message M2 where M2.UserKey …

Member Avatar for ryantroop
0
192
Member Avatar for anupamjamatia

turn your array into a string, make your column a blob. On the retrieve, you will have to unstringify your array. The php methods you are looking for implode() and explode()

Member Avatar for radow
0
646
Member Avatar for Aeonix

On a "modern" machine, probably not. You will have a longer delay simply downloading the data. However, if this is the path you plan on taking, I would let PHP format it into the array so that the browser just has to JSON.parse() the value and then you don't have …

Member Avatar for ryantroop
0
304
Member Avatar for Aeonix

inline-block and width: calc(100% - 230px) or, use floats, and put overflow: hidden on the parent div.

Member Avatar for Aeonix
0
175
Member Avatar for Stefce

SSL will do a number of things for you, including encrypting any plain text data moving between client and server. If you simply want to obscure (or have a referential pointer to) data, you can do this very easily - but it's not security (most call it security through obscurity; …

Member Avatar for Stefce
-1
2K
Member Avatar for du_ebrithil

Well... you can read about the API... https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API You split your "canvas area" into the dimensions of your grid requirements, and you draw lines or just use math :-/ You can also look at this fine demo: http://codepen.io/solartic/pen/qEGqNL (not mine. This is done kindly by Kimani Walters) And then there's …

Member Avatar for ryantroop
0
162
Member Avatar for Aeonix

Likely it's just the memory used by the script. While it may not be much when compiled down, it's still memory and cycles required to turn it into machine code and have the pointers available for reference. If memory isn't an issue (in most cases it is not) and CPU …

Member Avatar for ryantroop
0
395
Member Avatar for RudyM

It really depends on how you plan on consuming and using the data. Why do you need encryption over a hash? Will you be applying the SSN for any given application or is it simply an identifier? If it's only an identifier, then hash it and store the hash. That …

Member Avatar for RudyM
0
223
Member Avatar for paula12

To put it in other words, I believe what you are being asked is to take all the values from the first two rows and multiply them. If you think of your 3x3 array as an array of arrays: //demonstrative int A[3][3] == [ [a,b,c], [d,e,f], [h,i,j] ]; You know …

Member Avatar for ryantroop
0
117

The End.